/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-primary: #022a5e; /* Exact Dark Blue from SVG Logo */
    --color-primary-hover: #153969;
    --color-secondary: #6B7280; /* Medium Grey - Structure */
    --color-bg-light: #F5F7FA; /* Light Grey - Backgrounds */
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;
    --color-text-main: #111827;
    --color-text-muted: #4B5563;
    --color-success: #10B981; /* For stock status */
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Symmetrical Typography Scale */
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-md: 1.125rem;    /* 18px */
    --font-size-lg: 1.25rem;     /* 20px */
    --font-size-xl: 1.5rem;      /* 24px */
    --font-size-2xl: 1.75rem;    /* 28px */
    --font-size-3xl: 2.25rem;    /* 36px */
    
    /* Structure */
    --border-radius: 3px; /* Strict, minimal rounding for B2B */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Layout */
    --container-max-width: 1400px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Enforce tabular numbers globally for data alignment */
table, .price, .stock-count {
    font-variant-numeric: tabular-nums;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    font-family: var(--font-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

/* ==========================================================================
   Utility Header (Top Bar)
   ========================================================================== */
.utility-top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 0.5rem 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 101;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 0.5rem;
}

.contact-info .divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

.highlight-link {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   Main Navigation (Sticky Header)
   ========================================================================== */
.main-header {
    background-color: #D0D8E4;
    border-bottom: 1px solid #B0BDD0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 6px 12px rgba(71, 85, 105, 0.28);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 80px; /* Increased scaling for prominence */
    width: auto;
    display: block;
}

.search-container {
    flex-grow: 1;
    max-width: 50%; /* 40-50% of the middle space */
    position: relative;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 600px;
    height: 46px;
    background-color: #FFFFFF;
    border: 1.5px solid #0F2C59;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 44, 89, 0.08);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.search-form:hover {
    box-shadow: 0 4px 14px rgba(15, 44, 89, 0.14);
}

.search-form:focus-within {
    border-color: #0F2C59;
    box-shadow: 0 0 0 4px rgba(15, 44, 89, 0.15);
}

/* Autocomplete styling */
.autocomplete-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 44, 89, 0.1);
    border: 1px solid #E2E8F0;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid #E2E8F0;
    transition: background-color 0.2s;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #F8FAFC;
    cursor: pointer;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
}

.search-result-info {
    flex-grow: 1;
    overflow: hidden;
}

.search-result-title {
    color: #0F2C59;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-result-sku {
    color: #64748B;
    font-size: 12px;
}

.search-category {
    display: none;
}

.search-category:focus, .search-category:active {
    outline: none;
}

.search-input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    padding: 0 1rem 0 1.5rem;
    height: 100%;
    font-size: var(--font-size-base);
    color: #1E293B;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: #94A3B8; /* Modern lighter silver/grey */
    opacity: 1;
}

.search-input:focus, .search-input:active {
    outline: none; /* Neutralize default browser square outline */
}

.search-btn {
    background-color: #0F2C59;
    color: var(--color-white);
    border: none;
    padding: 0 1.75rem;
    height: 100%;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
    flex-shrink: 0;
    border-radius: 0 50px 50px 0;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #0a1f42;
}

.right-tools {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tool-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-primary); /* Deep charcoal or dark blue */
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.tool-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.tool-link:hover {
    opacity: 0.8;
}

.cart-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: inherit;
}

.cart-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #EF4444; /* Alert red */
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

/* ==========================================================================
   Hero Section: Smart Carousel (Coverflow)
   ========================================================================== */
.hero-section {
    background-color: var(--color-bg-light); /* Or transparent */
    padding: 0;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    max-width: 100%;
    margin: 40px auto; /* Generous vertical margins */
    position: relative;
    height: 350px;
    max-height: 350px; /* Slim panoramic aspect ratio */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    width: 60%;
    max-width: 800px;
    height: 100%;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth), z-index var(--transition-smooth);
    opacity: 0.5;
    z-index: 1;
    transform: scale(0.85) translateX(0);
    border-radius: 20px; /* Modern smooth corners */
    box-shadow: var(--shadow-md);
    cursor: pointer;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 3;
    transform: scale(1) translateX(0);
    box-shadow: 0 20px 40px rgba(2, 42, 94, 0.15); /* Soft, expansive liftoff shadow */
    cursor: default;
}

.carousel-slide.prev {
    transform: scale(0.85) translateX(-70%); /* Pushed further edges */
    z-index: 2;
    filter: blur(4px) brightness(0.6);
}

.carousel-slide.next {
    transform: scale(0.85) translateX(70%); /* Pushed further edges */
    z-index: 2;
    filter: blur(4px) brightness(0.6);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FFFFFF;
    border: none;
    color: var(--color-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.carousel-nav:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.05); /* Slight pop on hover */
}

.carousel-nav.prev {
    left: 20%;
    transform: translate(-50%, -50%);
}

.carousel-nav.prev:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.carousel-nav.next {
    right: 20%;
    transform: translate(50%, -50%);
}

.carousel-nav.next:hover {
    transform: translate(50%, -50%) scale(1.05);
}

.carousel-dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #E2E8F0; /* Soft Light Grey */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-fast), width var(--transition-fast);
}

.dot.active {
    background-color: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}

/* ==========================================================================
   Brand Trust Bar
   ========================================================================== */
.brand-trust-bar {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    margin-top: 60px;
    margin-bottom: 60px;
}

.brand-track-container {
    overflow: hidden;
    position: relative;
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scrollBrands 30s linear infinite;
    will-change: transform;
    /* Duplicate content logic in JS for seamless scroll */
}

@keyframes scrollBrands {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* Assumes track is 2x width */
}

.brand-track:hover {
    animation-play-state: paused;
}

.brand-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.brand-logo-img:hover {
    transform: scale(1.05);
}


/* ==========================================================================
   Smart Delivery Banner
   ========================================================================== */
.smart-delivery-section {
    margin-top: 32px;
    margin-bottom: 16px !important;
    display: flex;
    justify-content: center;
}

.delivery-banner {
    width: 60%; /* Matches carousel width perfectly */
    max-width: 800px;
    min-height: 90px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    overflow: hidden; /* Restricts columns to border radius */
}

.delivery-left {
    background-color: var(--color-primary); /* Dark Blue */
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    padding: 1.25rem 1rem;
    position: relative;
}

.delivery-line-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
}

.delivery-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-truck {
    font-size: 1.35rem;
    animation: truckBobble 0.5s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.speed-lines {
    position: absolute;
    right: 115%;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
}

.speed-lines::before,
.speed-lines::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    height: 1.5px;
    border-radius: 2px;
    animation: speedWind 0.6s linear infinite;
}

.speed-lines::before {
    top: 2px;
    width: 8px;
}

.speed-lines::after {
    bottom: 2px;
    width: 12px;
    animation-delay: 0.3s;
}

@keyframes truckBobble {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1.5px); }
}

@keyframes speedWind {
    0% { transform: translateX(12px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(-8px); opacity: 0; }
}

.fast-text {
    font-weight: 600;
    font-size: var(--font-size-md);
    letter-spacing: 0.02em;
}

.delivery-line-bottom {
    display: flex;
    justify-content: center;
}

.service-text {
    font-weight: 400;
    font-size: var(--font-size-base);
    opacity: 0.9;
}

.delivery-right {
    background-color: #F5F7FA; /* Light Grey off-white */
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 2rem;
    color: var(--color-primary); /* Dark Blue */
}

.delivery-question {
    font-weight: 400;
    font-size: var(--font-size-base);
    margin-bottom: 0.15rem;
    color: var(--color-text-main);
}

.delivery-answer {
    font-weight: 400;
    font-size: var(--font-size-md);
    line-height: 1.4;
}

.restrictions {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

@media (max-width: 900px) {
    .delivery-banner {
        width: 90%;
        flex-direction: column;
    }
    .delivery-left, .delivery-right {
        width: 100%;
        text-align: center;
        align-items: center;
    }
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-us-section {
    background-color: #F8FAFC;
}

.about-us-container {
    width: 100%;
}

.about-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

.about-headline {
    color: #0F2C59;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
    letter-spacing: -0.2px;
}

.about-accent-line {
    width: 60px;
    height: 3px;
    background-color: #0F2C59;
    margin: 16px auto;
}

.about-subheadline {
    color: #475569;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-body {
    color: #475569;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

.about-body p {
    margin-bottom: 16px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Category Matrix (The Core 10)
   ========================================================================== */
.category-matrix-section {
    margin-top: 16px;
    padding: 0 0 4rem;
}

.section-title {
    font-size: 26px;
    color: #0F2C59;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.category-card {
    background-color: transparent;
    padding: 1.5rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.category-card:hover .category-icon {
    transform: translateY(-8px);
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.15));
}

.category-name {
    font-weight: 600;
    color: #0F2C59;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
}

/* ==========================================================================
   Featured Inventory (Table View)
   ========================================================================== */
.featured-inventory-section {
    padding: 0 0 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-responsive {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.inventory-table th {
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.inventory-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.inventory-table tbody tr {
    transition: background-color var(--transition-fast);
}

.inventory-table tbody tr:hover {
    background-color: var(--color-bg-light);
}

.col-checkbox {
    width: 40px;
    text-align: center;
}

.col-img {
    width: 80px;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    cursor: pointer;
}

.col-details {
    min-width: 250px;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-title {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 1rem;
}

.identifier-tag {
    display: inline-block;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-muted);
}

.identifier-tag strong {
    color: var(--color-text-main);
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

.moq-badge {
    display: inline-block;
    background-color: #FEF3C7; /* Warning light */
    color: #92400E; /* Warning dark */
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
}

/* Tiered Pricing */
.pricing-tiers {
    font-size: 0.9rem;
}

.tier-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.tier-row.highlight {
    font-weight: 700;
    color: var(--color-primary);
}

/* Action Column */
.qty-action-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: center;
    font-family: inherit;
}

.btn-add-row {
    background-color: var(--color-white);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-row:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Account Gated Pricing Blurring */
.gated-pricing {
    filter: blur(4px);
    user-select: none;
    cursor: pointer;
    position: relative;
}

.gated-pricing::after {
    content: "Login to View";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    filter: none;
    white-space: nowrap;
    background: rgba(255,255,255,0.8);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-primary);
}

/* ==========================================================================
   Slide-out Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background-color: var(--color-white);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.freight-progress {
    padding: 1rem 1.5rem;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.progress-bar-container {
    height: 8px;
    background-color: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-success);
    transition: width var(--transition-smooth);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-message {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-fast);
}

.checkout-btn:hover {
    background-color: var(--color-primary-hover);
}

/* ==========================================================================
   B2B Checkout Demo
   ========================================================================== */
.checkout-demo-section {
    padding: 2rem 0 4rem;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.b2b-checkout-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-light);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.checkout-address-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.address-col h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.form-input, input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    font-family: inherit;
}

.form-input:disabled {
    background-color: #E5E7EB;
    cursor: not-allowed;
}

.payment-options {
    background: var(--color-white);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.payment-options h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.payment-options label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #d2d8e3;
    color: #475569;
    padding: 0;
    margin-top: 4rem;
}

/* Footer Newsletter Row */
.footer-newsletter-row {
    background-color: #0F2C59;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
}

.footer-newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-newsletter-text {
    flex: 1 1 450px;
}

.footer-newsletter-text h3 {
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.footer-newsletter-text p {
    color: #94A3B8;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.newsletter-inline-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.email-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease-in-out;
}

.newsletter-inline-form input[type="email"] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 12px 16px 12px 44px;
    border-radius: 6px 0 0 6px;
    width: 300px;
    margin-bottom: 0;
    outline: none;
    transition: all 0.2s ease-in-out;
    font-size: var(--font-size-sm);
}

.newsletter-inline-form input[type="email"]::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.newsletter-inline-form input[type="email"]:focus {
    background-color: #FFFFFF;
    color: #0F2C59;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.newsletter-inline-form input[type="email"]:focus ~ .input-icon {
    color: #0F2C59;
}

.newsletter-inline-form button {
    background: #FFFFFF;
    color: #0F2C59;
    padding: 12px 24px;
    border: none;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    font-size: var(--font-size-sm);
}

.newsletter-inline-form button:hover {
    background: #E2E8F0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    max-height: 56px;
    margin-bottom: 1rem;
    display: block;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: #0F2C59;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-address {
    font-style: normal;
    font-size: var(--font-size-sm);
    line-height: 1.45;
    color: #475569;
    display: block;
}

.footer-col h4 {
    color: #0F2C59;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #475569;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: #0F2C59;
}

.footer-col p {
    color: #475569;
    font-size: var(--font-size-sm);
    line-height: 1.45;
    margin-bottom: 8px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    font-size: var(--font-size-sm);
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.footer-contact-list li i {
    color: #0F2C59;
    width: 14px;
    text-align: center;
    font-size: var(--font-size-xs);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-icons a {
    color: #475569;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(15, 44, 89, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.social-icons a:hover {
    background-color: #0F2C59;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.sub-footer {
    border-top: 1px solid rgba(15, 44, 89, 0.1);
    padding: 20px 0;
    color: #475569;
}

.sub-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
}

.payment-icons {
    display: flex;
    gap: 12px;
    font-size: 24px;
    color: #0F2C59;
}

/* ==========================================================================
   Product Controls Toolbar
   ========================================================================== */
.product-controls-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 24px;
}

.pagination-info {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.controls-right select {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.controls-right select:focus {
    border-color: #0F2C59;
}

.view-toggles {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-toggles svg {
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.view-toggles svg:hover {
    color: #475569;
}

/* ==========================================================================
   Product Controls Toolbar
   ========================================================================== */
.product-controls-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 24px;
}

.pagination-info {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.controls-right select {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.controls-right select:focus {
    border-color: #0F2C59;
}

.view-toggles {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-toggles svg {
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.view-toggles svg:hover {
    color: #475569;
}

.view-toggles svg.active {
    color: #0F2C59;
}

/* ==========================================================================
   List View Logic
   ========================================================================== */
.catalog-grid.list-view {
    grid-template-columns: 1fr !important;
}

.catalog-grid.list-view .catalog-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 16px;
    text-align: left;
}

.catalog-grid.list-view .card-img-wrapper {
    width: 150px !important;
    flex-shrink: 0;
    height: 150px !important;
    margin-bottom: 0;
}

.catalog-grid.list-view .card-img-wrapper img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain;
}

.catalog-grid.list-view .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.catalog-grid.list-view .card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.catalog-grid.list-view .card-inventory {
    margin-bottom: 12px;
}

.catalog-grid.list-view .btn-card-gated {
    margin-top: auto;
    width: auto;
    padding: 0.5rem 1.5rem;
}

/* ==========================================================================
   Trending Products Section
   ========================================================================== */
.trending-products-section {
    padding: 40px 0 60px;
    background-color: var(--color-bg-light);
}

.trending-headline {
    color: #0F2C59;
    font-size: 26px;
    font-weight: 600;
    text-align: left;
    margin: 0 0 12px 0;
    letter-spacing: -0.2px;
}

.trending-subheadline {
    color: #475569;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    max-width: 700px;
    margin: 0 0 32px 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-newsletter-text {
        flex: 1 1 auto;
        width: 100%;
    }

    .newsletter-inline-form {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .email-input-wrapper {
        width: 100%;
    }

    .newsletter-inline-form input[type="email"] {
        width: 100%;
        border-radius: 6px;
    }

    .newsletter-inline-form button {
        width: 100%;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
}

.trending-card-minimal {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.trending-card-minimal:hover {
    transform: translateY(-4px);
}

.trending-img-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    padding: 16px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.trending-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trending-title {
    text-align: center;
    font-size: 16px;
    color: #0F2C59;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   Supplier Trust Grid
   ========================================================================== */
.supplier-trust-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

.supplier-trust-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0F2C59;
    text-align: center;
    margin-bottom: 40px;
}

.supplier-logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.supplier-logo-grid img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.supplier-logo-grid img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Team Banner Section
   ========================================================================== */
.team-banner-section {
    background-color: #FFFFFF;
    padding: 40px 20px 80px 20px;
}

.team-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 44, 89, 0.08);
    border: 1px solid #E2E8F0;
}

/* ==========================================================================
   B2B Legal & Policy Page Styles
   ========================================================================== */
.policy-page-wrapper {
    background-color: #F8FAFC;
    padding: 60px 20px;
    min-height: 60vh;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 60px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(15, 44, 89, 0.05);
}

.policy-container h1 {
    color: #0F2C59;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.policy-container h2 {
    color: #0F2C59;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}

.policy-container p, 
.policy-container li {
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.policy-container ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: disc;
}

.policy-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #475569;
    margin-top: -30px;
    margin-bottom: 30px;
}

.policy-meta-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 40px;
    text-align: center;
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .policy-container {
        padding: 30px 20px;
    }
    .policy-container h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    .policy-container h2 {
        font-size: 20px;
        margin-top: 30px;
    }
}

/* ==========================================================================
   B2B Enterprise Login Page Styles
   ========================================================================== */

.login-page {
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.login-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* --- Left Column: Form --- */
.login-left-col {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.login-error-toast {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #F87171;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.login-logo-link {
    display: inline-block;
    margin-bottom: 40px;
}

.login-logo {
    height: 48px;
    width: auto;
}

.login-heading {
    font-size: 32px;
    color: #0F2C59;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.login-subtext {
    font-size: 16px;
    color: #555555;
    margin-bottom: 32px;
    line-height: 1.5;
}

.login-form .form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.login-form label {
    font-size: 14px;
    font-weight: 600;
    color: #0F2C59;
    margin-bottom: 8px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    background-color: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 16px;
    color: #0F2C59;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #0F2C59;
    background-color: #FFFFFF;
}

.password-group .password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 48px; /* space for icon */
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #777777;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: #0F2C59;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.forgot-password-link {
    font-size: 14px;
    color: #0F2C59;
    text-decoration: underline;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: #D32F2F;
}

.login-submit-btn {
    background-color: #0F2C59;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    width: auto;
    display: inline-block;
    min-width: 180px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 24px;
}

.login-submit-btn:hover {
    background-color: #1A4073;
}

.login-register-prompt {
    text-align: center;
    font-size: 15px;
    color: #555555;
}

.login-register-prompt a {
    color: #0F2C59;
    font-weight: 600;
    text-decoration: underline;
}

.login-register-prompt a:hover {
    color: #D32F2F;
}

/* --- Right Column: Brand Value Proposition --- */
.login-right-col {
    background-color: #0F2C59;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.value-prop-content {
    max-width: 400px;
}

.value-prop-heading {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 32px 0;
    line-height: 1.2;
}

.value-prop-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-prop-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.value-prop-list li i {
    color: #D32F2F;
    margin-right: 16px;
    font-size: 20px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .login-grid-container {
        grid-template-columns: 1fr;
    }
    
    .login-right-col {
        display: none;
    }

    .login-left-col {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Product PDP & Category Grid Mobile Fixes
   ========================================================================== */
.product-pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.pdp-image-container {
    background: #fff;
    padding: 20px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    overflow: hidden;
}

.pdp-image-container img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pdp-image-container:hover img {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .product-pdp-layout {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .pdp-image-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr !important;
    }
}

