:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --promo-bg: #f5f5f5;
    --btn-bg: #ffffff;
    --btn-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
    background-color: #000; /* v141 - Absolute dark base to prevent top-edge leaks */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color); /* v154 - Restored global background to prevent product page ruin */
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

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

.promo-bar {
    background-color: #880808;
    color: #ffffff;
    padding: 6px 0;
    font-size: 0.75rem;
    line-height: 1.2;
    min-height: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    margin-top: -2px; /* v140 - Overlap ensures zero gaps between navbar and promo */
    position: relative;
    z-index: 10;
    /* v154 - Added container safety here only */
    border-top: 2px solid var(--bg-color);
}

.marquee-content {
    display: inline-flex;
    gap: 3rem;
    width: max-content;
    animation: scroll-right 20s linear infinite; /* v132 - News Ticker Speed */
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: #ffffff;
    color: #000000;
    position: relative; 
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid #f0f0f0;
}

.navbar .logo-img {
    height: 40px;
}

/* Homepage Transparent Sticky Navbar */
body.homepage .navbar {
    background-color: transparent;
    position: fixed; 
    top: 0;
    border-bottom: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.homepage .navbar .logo-img {
    filter: invert(1) brightness(2);
    height: 50px;
}

body.homepage .navbar.scrolled {
    padding: 0.8rem 5%;
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.homepage .navbar.scrolled .logo-img {
    filter: none;
    height: 40px;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 40px;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit; /* v192 - Inherit from navbar (White initially, Black on scroll) */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
}

/* Buttons */
.btn-pill {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.75rem 2.5rem; /* v191 - Sleeker, wider horizontal profile */
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem; /* v191 - Slightly smaller text for designer look */
    border: 2px solid var(--text-primary);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh; /* v193 - Dynamic Viewport Height for mobile stability */
    min-height: 550px;
    background-color: #000;
    display: flex;
    align-items: flex-end;
    padding: 3rem 5% 4rem 5%;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    will-change: transform, height; /* v193 - Accelerated properties */
}

/* Adding a strong gradient so white text/buttons pop if image is bright */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    z-index: 0;
}

.hero-slideshow::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
}

.hero-content {
    position: absolute;
    bottom: 32vh; /* v194 - Lifted higher to clear the 115vh bleed and mobile toolbars */
    left: 5%;
    z-index: 2;
    max-width: 600px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero h1 {
    font-size: clamp(3.2rem, 10vw, 6rem); /* v191 - Ultra-bold editorial scale */
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 0.75rem;
    letter-spacing: -3px; /* v191 - Tighter editorial tracking */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem; /* v191 - Larger, more legible subtext */
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}


/* Common Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem; /* v134 - Tightened */
}

.section-header h2 {
    font-size: clamp(2.5rem, 12vw, 6rem); /* v149 - Ultra-wide gargantuan headlines on desktop */
    font-weight: 900;
    margin-bottom: 0.25rem;
    letter-spacing: -3px; /* v149 - High-impact editorial tracking */
    white-space: nowrap; 
    text-transform: uppercase;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* The Lineup / Product Grid */
.lineup {
    padding: 6rem 5% 1rem 5%;
    margin-top: 0;
    position: relative;
    z-index: 100;
    background: #ffffff;
    border-radius: 60px 60px 0 0; /* v189 - Even more dramatic premium curve */
    box-shadow: 0 -30px 60px rgba(0,0,0,0.15);
    will-change: transform; 
}

body.homepage .lineup {
    margin-top: -120px; /* v189 - Ultra-deep overlap for 115vh hero integration */
}

.grid {
    display: grid;
    /* v181 - auto-fill prevents single items from stretching into giant shoes */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 2rem; 
    max-width: 1400px; 
    margin: 0 auto;
    width: 100%;
}

.grid-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.grid-item:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.img-wrapper {
    position: relative;
    width: 100%;
    /* v176 - Standardized sizing to match home lineup */
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; 
    border-radius: 8px;
    overflow: hidden;
}

.img-wrapper img {
    width: 80%; /* v179 - Boutique framing (20% smaller) */
    height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
    transform: translateY(-2%); 
}

.grid-item:hover .img-wrapper img {
    transform: scale(1.05) translateY(-10px);
}

.grid-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.grid-item p {
    color: #444;
    font-weight: 500;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e60000;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3);
}

/* Strikethrough Price */
.compare-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 500;
}

/* Trending Section */
.trending {
    padding: 2rem 0 0; /* v134 - More compact top padding */
    background-color: #fff; /* v110 - Text is now on white */
    color: var(--text-primary);
}

.lookbook-carousel {
    background-color: #000; 
    padding: 0; 
    margin-top: 1rem; /* v134 - Controlled gap above carousel */
    display: flex;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
}

.trending-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.trending .section-header {
    padding: 0 5%;
    margin-bottom: 1.5rem; /* v134 - Tightened specifically for trending */
}

.trend-card {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    background-color: #222;
}

.trend-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    max-width: 400px;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 3rem calc(4rem + env(safe-area-inset-bottom));
    background-color: #000;
    color: #fff;
    font-weight: 500;
    /* v111 - Fills bottom overscroll without adding scrollable height */
    box-shadow: 0 500px 0 500px #000;
}

/* --- CART DRAWER --- */
.cart-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: all 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

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

.empty-cart {
    text-align: center;
    color: #666;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: #f5f5f5;
    border-radius: 4px;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 600;
    color: #000;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eaeaea;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    text-align: center;
    display: block;
}

.cart-icon-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #880808;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    display: none;
}

/* --- PRODUCT PAGE --- */
.product-page {
    padding: 4rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Square image box — product centered inside with natural whitespace */
.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-scroll-container img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    padding: 2rem;
    box-sizing: border-box;
}

.video-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    display: flex;
    gap: 0;
    padding: 0;
    z-index: 10;
    background: rgba(0,0,0,0.1);
}

.video-segment {
    flex: 1;
    height: 100%;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.video-segment-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #000;
    transition: width 0.3s ease;
}

.video-segment.active .video-segment-fill {
    width: 100%;
}

/* Thumbnail strip for multi-image products */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.product-thumbnails .thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f0f0f0;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.product-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnails .thumb.active {
    border-color: #111;
}

.product-details {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.product-details h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.selector-section {
    margin-bottom: 1.5rem;
}

.selector-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.color-options {
    display: flex;
    gap: 1rem;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 0 0 1px #ccc;
}

.color-btn.selected {
    border-color: white;
    box-shadow: 0 0 0 2px #000;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.size-btn.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

.size-btn:disabled,
.size-btn[disabled] {
    opacity: 0.35;
    text-decoration: line-through;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #aaa;
    border-color: #ddd;
    pointer-events: none;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.trust-badges {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.trust-item {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.trust-item:last-child {
    margin-bottom: 0;
}

.accordion details {
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 0;
}

.accordion summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.accordion p {
    margin-top: 1rem;
    color: #666;
    line-height: 1.5;
}

/* v152 - Premium Redesigned Footer */
footer {
    background-color: #0a0a0a;
    color: #888;
    padding: 4rem 5% 2rem;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a1a;
    -webkit-overflow-scrolling: touch; /* Momentum scroll for touch devices */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p, .footer-section a {
    color: #888;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 1.5rem 5%;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .product-gallery {
        height: auto;
    }

    .main-image-wrapper {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .hero {
        padding: 2rem 5%;
    }

    .product-details {
        display: contents; /* Allows children to participate in the container's layout */
    }

    .section-header h2 {
        font-size: 2.2rem; /* v151 - Scaled for perfect mobile harmony */
        letter-spacing: -1px; /* v151 - Breathable tracking for small screens */
        white-space: nowrap;
        margin-bottom: 0.1rem;
    }

    .mobile-sticky-dock {
        position: sticky;
        bottom: 20px;
        z-index: 200;
        display: flex;
        justify-content: flex-end;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .add-to-cart-btn {
        width: 100%;
        height: 56px;
        padding: 0;
        font-size: 1rem;
        border: 2px solid #000;
        background: transparent;
        color: #000;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* The magical Genie transition */
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* The "Floating" state when viewing images */
    .add-to-cart-btn.floating {
        width: 130px;
        height: 48px;
        font-size: 0.85rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        background: #000;
        color: #fff;
        border: none;
        border-radius: 24px;
    }

    .add-to-cart-btn:hover {
        background: #000;
        color: #fff;
    }
}

/* --- CHECKOUT PAGE --- */
.checkout-page {
    padding: 6rem 5% 4rem; /* v158 - Restored to match homepage 5% logic */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.checkout-form-section h2,
.order-summary-section h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* v155 - Prevents iOS auto-zoom on tap */
    box-sizing: border-box;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.payment-option:has(input:checked) {
    border-color: #000;
    background: #f8f9fa;
    box-shadow: 0 0 0 1px #000;
}

.mt-2 {
    margin-top: 2rem;
}

.checkout-submit-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0 auto;
    padding: 1.2rem;
    font-size: 1.1rem;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-summary-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-items {
    max-height: 400px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.checkout-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    background: #fff;
    border-radius: 4px;
}

.checkout-info {
    flex: 1;
    min-width: 0;
}

.checkout-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-info p {
    font-size: 0.8rem;
    color: #666;
}

.checkout-price {
    font-weight: 600;
    margin-left: auto;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        padding: 0; /* v158 - Container no longer needs internal padding, page handles it */
        box-sizing: border-box;
    }
    
    .checkout-page {
        padding: 4rem 5%; /* v158 - Perfectly matches homepage mobile padding */
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons .btn-pill {
        flex: 1;
        padding: 0.8rem 0.2rem;
        font-size: 0.8rem;
        text-align: center;
        white-space: nowrap;
        min-width: 0;
    }
}

/* Lookbook Slideshow */
.lookbook-carousel {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: #f0f0f0;
}

.lookbook-carousel::-webkit-scrollbar {
    display: none;
}

.lookbook-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .lookbook-carousel {
        height: 500px;
    }
}

/* Grid View Toggle */
@media (max-width: 768px) {
    .grid.grid-view-active {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .grid.grid-view-active .grid-item {
        padding: 1rem !important;
    }

    .grid.grid-view-active .grid-item h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
    }

    .grid.grid-view-active .grid-item p {
        font-size: 0.8rem !important;
    }

    .grid.grid-view-active .sale-badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-search {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-search:hover {
    color: #000;
}

.search-container {
    width: 95%;
    max-width: 800px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

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

.search-input-wrapper i {
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: #ccc;
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 0 15px 40px;
    font-size: 2rem;
    border: none;
    border-bottom: 2px solid #eee;
    background: transparent;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: border-color 0.3s ease;
}

.search-input-wrapper input:focus {
    border-color: #000;
}

.search-live-results {
    margin-top: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.search-live-results::-webkit-scrollbar {
    width: 0;
}

.live-result-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    text-decoration: none;
    color: #000;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.live-result-item:hover {
    background: #f9f9f9;
}

.live-result-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
}

.live-result-info h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.live-result-info p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #888;
}

.search-no-results {
    padding: 3rem 0;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer Contact Styles */
footer {
    padding: 6rem 5% 4rem;
    background: #000;
    color: #fff;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-family: 'Inter', sans-serif;
    color: #888;
    font-size: 0.95rem;
}

.footer-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    line-height: 1.5;
}

.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-divider {
    width: 30px;
    height: 1px;
    background: #222;
    margin: 1.5rem 0;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.footer-credit {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: #333;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

.footer-credit a {
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #888;
}

@media (max-width: 600px) {
    .footer-info-grid {
        font-size: 0.85rem;
    }
    .footer-divider {
        display: none;
    }
}

