/* Override Bootstrap Primary Red to Diesel Blue and Warning Orange for Contrast */
:root, [data-bs-theme=light] {
    --bs-primary: #001F3F;
    --bs-primary-rgb: 0, 31, 63;
    --bs-primary-bg-subtle: #ccd2d9;
    --bs-primary-border-subtle: #99a5b3;
    --bs-primary-text-emphasis: #000c19;
    --bs-link-color: #001F3F;
    --bs-link-hover-color: #00172e;
    
    /* Darker orange for better contrast on white */
    --bs-warning: #e65100;
    --bs-warning-rgb: 230, 81, 0;
}
.text-primary {
    color: #001F3F !important;
}
.text-warning {
    color: #e65100 !important;
}
.bg-primary {
    background-color: #001F3F !important;
}
.border-primary {
    border-color: #001F3F !important;
}
.btn-primary {
    --bs-btn-bg: #001F3F;
    --bs-btn-border-color: #001F3F;
    --bs-btn-hover-bg: #00172e;
    --bs-btn-hover-border-color: #001429;
    --bs-btn-active-bg: #001429;
    --bs-btn-active-border-color: #001124;
    --bs-btn-disabled-bg: #001F3F;
    --bs-btn-disabled-border-color: #001F3F;
}
.btn-outline-primary {
    --bs-btn-color: #001F3F;
    --bs-btn-border-color: #001F3F;
    --bs-btn-hover-bg: #001F3F;
    --bs-btn-hover-border-color: #001F3F;
    --bs-btn-active-bg: #001F3F;
    --bs-btn-active-border-color: #001F3F;
}
.btn-warning {
    --bs-btn-bg: #e65100;
    --bs-btn-border-color: #e65100;
    --bs-btn-hover-bg: #cc4800;
    --bs-btn-hover-border-color: #bf4300;
}
.btn-outline-warning {
    --bs-btn-color: #e65100;
    --bs-btn-border-color: #e65100;
    --bs-btn-hover-bg: #e65100;
    --bs-btn-hover-border-color: #e65100;
}

html, body {
    overflow-x: hidden;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9fe;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: bottom; }
.material-symbols-outlined.fill { font-variation-settings: 'FILL' 1; }

.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 76px; /* navbar height */
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/adblue-hero-section.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.product-card {
    transition: all 0.2s ease;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.product-img-wrapper {
    height: 200px;
    padding: 1rem;
    position: relative;
}
.product-img-wrapper img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}
.sku-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    font-family: SFMono-Regular, Consolas, Monaco, monospace;
}

.qty-group {
    display: flex;
    overflow: hidden;
}
.qty-btn {
    background: none;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-input {
    width: 100%;
    text-align: center;
    border: none;
    font-weight: bold;
    background: transparent;
    padding: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sidebar-card {
    overflow: hidden;
}

#order-summary-card {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}
