* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    /* Dynamic height for mobile browsers */
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
}

body.lock-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* --- GLOBAL STYLES --- */
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

:root {
    --gold: #022950;
    --gold-deep: #E6C687;
    --navy: #7A0538;
    --blue-theme: #970747;
    --surface-warm: #faf8f2;
    --dark-text: #282C3F;
    --gray-text: #666;
    --light-border: #eee;
    --white: #ffffff;
    --bg: #faf9f5;
    --surface: #ffffff;
    --surface-alt: #faf3e0;
    --surface-strong: #f5f0e6;
    --text-primary: #282C3F;
    --text-secondary: #444444;
    --menu-link-hover: rgba(2, 41, 80, 0.05);
    --menu-header-text: var(--white);
    --menu-overlay-bg: rgba(0, 0, 0, 0.4);
    --menu-bg: var(--white);
    --header-height: 80px;
    /* marquee(35) + header-bar(68) + desktop-nav(45) */
}

body.theme-dark {
    --bg: #081725;
    --surface: #0e1f3a;
    --surface-alt: #12274b;
    --surface-strong: #17325f;
    --text-primary: #f5f5f5;
    --text-secondary: #d0d4db;
    --blue-theme: #cfa4d1;
    --gold: #f5dbaf;
    --gold-deep: #dfba73;
    --menu-link-hover: rgba(255, 255, 255, 0.08);
    --menu-header-text: #ffffff;
    --menu-overlay-bg: rgba(0, 0, 0, 0.65);
    --menu-bg: #0c1b36;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    /* Automatically matches the header height to prevent gaps or overlaps */
    padding-top: var(--header-height) !important;
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- 2. LUXE HEADER SYSTEM --- */

.luxe-header {
    position: fixed;
    /* Or 'sticky' if you prefer */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    /* Keeps it above everything else */
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Adds a nice subtle shadow when scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 100%;
    max-width: 100%;
}

.header-item {
    display: flex;
    align-items: center;
    /* Ensures individual buttons inside the items are centered */
    flex: 1;
}

.header-item.left {
    justify-content: flex-start;
}

.header-item.center {
    justify-content: center;
    flex: 3;
}

.header-item.right {
    justify-content: flex-end;
}



.menu-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--blue-theme);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-marquee {
    background: var(--blue-theme);
    color: var(--gold);
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 10020 !important;
    height: 35px;
    /* Fixed height for the marquee */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.marquee-content {
    display: inline-flex;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding-right: 120px;
    /* GAP BETWEEN MARQUEE ITEMS */
}

/* The Animation Logic — seamless loop with duplicated content */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

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

/* --- 3. SIDEBARS & NAVIGATION --- */

#menu-overlay,
#cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--menu-overlay-bg);
    z-index: 10025;
}

.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--menu-bg);
    color: var(--text-primary);
    z-index: 10030;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-side-menu.open {
    left: 0;
}


/* Fix for Side Menu - Unified & Theme-Aware */
.mobile-side-menu {
    font-family: 'Outfit', sans-serif !important;
}

.menu-header {
    padding: 25px 25px 20px;
    /* Added top padding to prevent cutting */
    background: var(--blue-theme) !important;
    color: var(--white) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Keeps text aligned even with extra padding */
}

.menu-section-title {
    padding: 15px 25px 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.menu-link {
    display: block;
    width: 100%;
    padding: 12px 25px;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary) !important;
    /* Forces theme color */
    font-size: 15px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.menu-link:hover {
    background-color: var(--menu-link-hover);
    padding-left: 32px;
    color: var(--blue-theme) !important;
}

.menu-link.active-category {
    background-color: var(--menu-link-hover);
    color: var(--blue-theme) !important;
    font-weight: 700;
    border-left: 4px solid var(--blue-theme);
}

.side-menu-inner {
    flex: 1;
    display: block !important;
    overflow-y: auto;
    padding: 10px 0 20px;
}

.submenu-container {
    background-color: var(--surface-alt) !important;
    padding-left: 15px;
}

.review-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-width: 320px;
    flex: 1;
    transition: all 0.4s ease;
    border: 1px solid var(--light-border);
    color: var(--text-primary);
}

.review-card.video-testimonial {
    background: var(--surface-alt);
    border: 1px solid var(--light-border);
}

.review-video-container video {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-video-container:hover video {
    transform: scale(1.02);
}

.video-overlay-btn {
    transition: opacity 0.3s ease;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-menu-btn:hover {
    color: var(--white);
    transform: rotate(90deg);
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
    /* Ensures footer is always pushed to the bottom */
    padding: 10px;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 350px;
    max-width: 85%;
    height: 100%;
    background: white;
    z-index: 11000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


.cart-sidebar.open {
    right: 0;
    visibility: visible;
    /* Shows it only when open */
}

/* --- SEARCH MODAL --- */
#search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 10021;
}

#search-overlay.open {
    display: block !important;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: white;
    z-index: 10021;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 25px;
    border-radius: 0 0 16px 16px;
}

.search-modal.open {
    display: flex;
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.search-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--blue-theme);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(2, 41, 80, 0.5);
    z-index: 9999;
    border: none;
    transition: all 0.3s ease;
}

.search-close-btn:hover {
    box-shadow: 0 0 25px rgba(2, 41, 80, 0.8);
    transform: rotate(90deg) scale(1.1);
}

.search-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-modal-header h2 {
    font-size: 2rem;
    color: var(--blue-theme);
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--blue-theme);
    font-size: 20px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    color: var(--blue-theme);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--blue-theme);
    background: white;
    box-shadow: 0 0 0 3px rgba(2, 41, 80, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.quick-search {
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-bottom: 30px;
}

.quick-search-label {
    display: inline-block;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.quick-search-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-tag {
    padding: 10px 20px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: var(--blue-theme);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover,
.search-tag.active {
    background: var(--blue-theme);
    color: white;
    border-color: var(--blue-theme);
}


.search-results {
    width: 100%;
    max-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.search-result-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-card:hover {
    transform: translateY(-2px);
}

/* Hero area sits flush right below the header - no gaps */
/* Hero area styling consolidated below in Section 7 */

/* --- 4. PRODUCT GRID (Home/Category Page) --- */
#product-grid {
    margin-top: 0 !important;
    padding-top: 20px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
    align-content: start !important;
    row-gap: 20px !important;
    min-height: unset !important;
    height: auto !important;
}

.product-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-bottom: 0 !important;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.product-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Sophisticated layered shadow */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.product-card:hover::after {
    opacity: 1;
}

.product-info-box {
    padding-bottom: 5px !important;
    /* Reduces the space at the very bottom of the card */
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.product-title {
    flex-grow: 1 !important;
}

.product-grid-container {
    display: grid !important;
    /* This creates a centered grid of cards that don't stretch excessively */
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px)) !important;
    gap: 30px !important;
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: start;
    /* Left-aligns partial last rows so no empty gaps appear */
}

@media (min-width: 1024px) {
    .product-grid-container {
        /* On desktop, we can allow up to 4 columns more strictly if desired, 
           but auto-fit is often more professional for small catalogs */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 30px !important;
    }
}

/* Removed redundant hover */


.product-card img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

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

.quick-add-btn {
    width: 100% !important;
    background: linear-gradient(135deg, var(--blue-theme) 0%, var(--navy) 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px !important;
    margin-top: 15px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(2, 41, 80, 0.4);
    transition: all 0.3s ease;
}

.quick-add-btn:hover {
    box-shadow: 0 0 20px rgba(30, 75, 138, 0.6);
    transform: scale(1.02);
}

@keyframes button-shine {
    0% {
        left: -60%;
    }

    20% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* --- 5. PRODUCT MODAL (The PDP System) --- */
#checkout-modal.modal-overlay {
    z-index: 10050 !important;
    background: #f4f5f7 !important;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

#checkout-modal.modal-overlay.active,
#checkout-modal.modal-overlay[style*="block"],
#checkout-modal.modal-overlay[style*="flex"] {
    display: block !important;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10022 !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.close-pdp {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--blue-theme);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(2, 41, 80, 0.5);
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-pdp:hover {
    box-shadow: 0 0 25px rgba(2, 41, 80, 0.8);
    transform: scale(1.1);
}

.pdp-section-label {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background-color: transparent;
    color: var(--blue-theme);
    border: 2px solid var(--blue-theme);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.back-btn::before {
    content: '←';
    display: none !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.back-btn:hover {
    background-color: var(--blue-theme);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(2, 41, 80, 0.12);
}

/* MOBILE DEFAULT STYLES */
.pdp-grid {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.pdp-sticky {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: 20px;
}

#main-product-image {
    width: 100%;
    max-height: 60vh;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
    background-color: #f9f9f9;
    transition: opacity 0.3s ease-in-out;
}

#thumb-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 10px;
    margin-top: 15px;
}

/* Fix for Thumbnails */
.pdp-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.pdp-thumb:hover {
    border-color: #040d21;
}

.product-info-box {
    padding: 15px;
    text-align: center;
}

/* --- 6. BUTTONS, QTY & SWATCHES --- */
qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--navy);
    border-radius: 25px;
    width: fit-content;
    padding: 5px 15px;
    margin: 20px auto;
}

qty-control button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

qty-control input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
}

.navy-buy-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--blue-theme) 0%, var(--navy) 100%);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(2, 41, 80, 0.4);
    transition: all 0.3s ease;
}

.navy-buy-btn:hover {
    box-shadow: 0 0 25px rgba(2, 41, 80, 0.6);
    transform: translateY(-2px);
}

/* WhatsApp Customize Button */
.whatsapp-customize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    font-family: 'Outfit', sans-serif;
}

.whatsapp-customize-btn i {
    font-size: 1.2rem;
}

.whatsapp-customize-btn:hover {
    background: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* --- ORDER SUCCESS / THANK YOU PAGE --- */
.order-success-page {
    text-align: center;
    padding: 10px 0 5px;
}

.order-success-hero {
    background: linear-gradient(135deg, var(--surface-warm) 0%, var(--surface-alt) 100%);
    border: 1.5px solid rgba(201, 160, 53, 0.25);
    border-radius: 16px;
    padding: 28px 20px 24px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.order-success-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 50%, var(--gold) 100%);
}

.order-success-icon-wrap {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-theme) 0%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(2, 41, 80, 0.25);
    border: 3px solid var(--gold);
}

.order-success-icon-wrap i {
    font-size: 2.4rem;
    color: var(--gold);
}

.order-success-title {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.order-success-subtitle {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

.order-success-card {
    background: var(--white);
    border: 1.5px solid var(--light-border);
    border-radius: 12px;
    padding: 6px 18px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 4px 18px rgba(8, 30, 76, 0.06);
}

.order-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.88rem;
}

.order-success-row:last-child {
    border-bottom: none;
}

.order-success-row span {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.72rem;
}

.order-success-row strong {
    color: var(--blue-theme);
    font-weight: 800;
    font-size: 0.95rem;
    text-align: right;
}

.order-success-steps {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: left;
}

.order-success-steps h4 {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.order-success-steps ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-success-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.order-success-steps li i {
    color: var(--gold);
    font-size: 0.95rem;
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.order-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.order-success-actions .navy-buy-btn {
    width: 100%;
    max-width: 280px;
    margin-bottom: 0;
}

.order-success-link {
    color: var(--blue-theme);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    border-bottom: 1.5px solid rgba(2, 41, 80, 0.25);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.order-success-link:hover {
    color: var(--gold-deep);
    border-color: var(--gold);
}

.outline-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--navy) !important;
    background: transparent;
    color: var(--blue-theme);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 8px;
}


.swatch-dot.active-dot {
    border: 2px solid #050a37;
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(5, 10, 55, 0.3);
}

/* This class will override the background color for multicolor items */
.swatch-multicolor {
    background: conic-gradient(#ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff, #ffc6ff, #ffadad) !important;
    border: 1px solid #e0e0e0;
}

#modal-product-price {
    color: var(--blue-theme) !important;
    /* Your signature Navy */
    font-weight: 800;
    font-size: 1.8rem;
    display: inline-block;
}

/* Hide any leftover dynamic/gold price classes from your previous code */
#total-price-display,
.price-gold {
    display: none !important;
}


/* Ensures the right-side info container fills height and stays aligned */
.pdp-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns content to the top */
    padding: 0 20px;
}

/* Fixes the horizontal price row alignment */
.price-row {
    display: flex;
    align-items: baseline;
    /* This is the key for Y-alignment of different font sizes */
    gap: 12px;
    margin-bottom: 25px;
}

/* Ensures images and info stay aligned at the top of the grid */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}


/* --- SWATCH CONTAINER ALIGNMENT --- */
.variant-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    margin-top: 20px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    display: block;
    /* Ensures it stays above the dots */
}

#variant-swatch-list {
    display: flex !important;
    /* Forces row layout */
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    min-height: 40px;
    /* Reserves space so it doesn't disappear */
    align-items: center;
}

/* Logic for the 'Active' dot used in your JS */
.swatch-dot.active-dot,
.swatch-dot[style*="border-color: rgb(4, 13, 33)"] {
    border: 2px solid var(--navy) !important;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px white, 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Multicolor/Rainbow logic if applicable */
.swatch-multicolor {
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red) !important;
}


/* --- 7. MEDIA QUERIES - ORGANIZED BY BREAKPOINT --- */

/* DESKTOP / LARGE SCREEN */
@media (min-width: 1024px) {

    /* 1. Visibility & Branding */
    .laptop-only {
        display: flex !important;
    }

    .mobile-only {
        display: none !important;
    }



    /* 2. Hero & Main Grid */
    .hero-section {
        padding: 80px 5%;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
    }

    .hero-main-title {
        font-size: 3.8rem;
    }

    .product-grid-container,
    #product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 350px)) !important;
        gap: 35px !important;
        justify-content: center;
    }

    #subcategory-area {
        display: none;
        padding: 20px 0;
        margin: 0 auto;
    }

    #sub-grid-content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 220px));
        gap: 20px;
        justify-content: center;
    }

    #product-grid {
        display: none;
    }

    /* 3. Product Modal (PDP) Fixes */
    .pdp-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        max-width: 1200px;
        margin: 40px auto;
        padding: 20px;
        align-items: start;
    }

    .pdp-sticky {
        position: sticky;
        top: 20px;
        width: 100% !important;
        margin-left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #main-product-image {
        width: 100% !important;
        height: 600px !important;
        object-fit: contain !important;
        object-position: left top !important;
        background-color: transparent !important;
        border-radius: 12px;
        margin-left: 0 !important;
    }

    #thumb-container {
        display: flex !important;
        justify-content: flex-start !important;
        margin-top: 15px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        gap: 12px;
        width: 100% !important;
    }

    .product-info-box,
    .pdp-info {
        text-align: left !important;
        padding: 0 !important;
    }

    .header-logo {
        display: block;
        position: absolute;
        top: 14px;
        left: 18px;
        width: 150px;
        max-width: 150px;
    }





    .header-side.right i {
        font-size: 18px;
    }
}

/* TABLET: 601px to 1023px */
@media (min-width: 601px) and (max-width: 1023px) {
    #product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* LAPTOP-SPECIFIC ICON STYLING (769px and up) */
@media screen and (min-width: 769px) {
    .header-side.right i {
        font-size: 18px;
    }

    .laptop-only {
        display: block;
    }

    .header-icons .icon-btn[title="Login"],
    .header-icons .icon-btn[title="Wishlist"] {
        display: block !important;
    }
}

/* GENERAL MOBILE (max-width: 1023px) */
@media (max-width: 1023px) {
    .header-logo {
        display: none;
    }

    .main-nav.laptop-only {
        display: none !important;
    }



    .header-side.left {
        order: 1;
        flex: 1 !important;
        justify-content: flex-start !important;
        margin-right: 0;
    }

    .header-side.center {
        display: flex !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        order: 2;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-side.right {
        order: 3;
        display: flex !important;
        flex: 1 !important;
        justify-content: flex-end !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
        /* Proper visual gap */
    }

    .header-icons {
        display: flex !important;
        gap: 0 !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .header-icons .icon-btn[title="Login"],
    .header-icons .icon-btn[title="Wishlist"] {
        display: none !important;
    }

    .header-logo {
        display: block !important;
        position: static !important;
        width: 110px !important;
        max-width: 110px !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 auto !important;
    }





    .pdp-grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px !important;
        gap: 0 !important;
    }

    .pdp-sticky {
        position: relative !important;
        top: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-bottom: 10px !important;
    }

    #main-product-image {
        max-height: 45vh !important;
        width: 100% !important;
        object-fit: contain !important;
        background-color: #ffffff;
        margin-bottom: 15px !important;
    }

    .product-info-box,
    .pdp-info {
        width: 100% !important;
        padding: 1px !important;
        text-align: left !important;
    }

    #variant-swatch-list {
        display: flex !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .outline-btn,
    .buy-now-btn,
    .modal-add-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
        margin: 8px 0 !important;
        display: block !important;
        border-radius: 8px !important;
    }

    .buy-now-btn {
        background-color: #ffffff !important;
        color: var(--blue-theme) !important;
        border: 2px solid var(--blue-theme) !important;
    }

    .modal-add-btn {
        background: linear-gradient(135deg, var(--blue-theme) 0%, var(--navy) 100%) !important;
        color: #ffffff !important;
        border: none !important;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(2, 41, 80, 0.4);
    }

    .bestseller-badge {
        background: linear-gradient(135deg, var(--blue-theme) 0%, var(--navy) 100%) !important;
        color: #C9A035 !important;
        border: 1px solid #C9A035 !important;
        position: absolute;
    }

    #thumb-container {
        justify-content: center !important;
        padding-bottom: 15px;
    }

    #product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    .laptop-only {
        display: none !important;
    }

    /* Toolbar & Filter Styles */
    .toolbar-container {
        flex-direction: column;
        gap: 16px;
    }

    .filter-group,
    .sort-group {
        justify-content: space-between;
        width: 100%;
        padding: 12px 14px;
    }

    .shop-toolbar {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 12px 10px;
        margin: 24px 0 20px;
        display: none;
    }

    .custom-select select,
    select {
        min-width: 120px;
    }

    .product-count-display {
        justify-self: start;
        width: fit-content;
    }

    .mobile-bottom-filter-bar,
    .mobile-filter-overlay,
    .mobile-filter-panel {
        display: block;
    }

    .mobile-bottom-filter-bar {
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(30, 50, 90, 0.12);
        border-radius: 18px;
        margin: 20px 12px 16px;
    }

    .mobile-filter-button {
        flex: 1;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(2, 41, 80, 0.18);
        padding: 12px 14px;
        border-radius: 999px;
        background: #ffffff;
        color: #10234a;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.95rem;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-filter-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(2, 41, 80, 0.08);
    }

    .mobile-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 10050;
        display: none;
    }

    .mobile-filter-overlay.open {
        display: block;
    }

    .mobile-filter-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateY(110%);
        transition: transform 0.3s ease;
        z-index: 10060;
        background: #ffffff;
        border-top-left-radius: 22px;
        border-top-right-radius: 22px;
        max-height: 88vh;
        overflow: hidden;
        box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
        display: flex !important;
        flex-direction: column !important;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-filter-panel.open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-filter-panel .panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 18px 0;
    }

    .mobile-filter-panel .panel-title {
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.6px;
        color: #10234a;
    }

    .mobile-filter-panel .panel-close {
        background: none;
        border: none;
        font-size: 28px;
        color: #10234a;
        cursor: pointer;
    }

    .mobile-filter-panel .panel-body {
        padding: 16px 18px 22px;
        display: grid;
        gap: 18px;
    }

    .mobile-filter-panel .panel-row {
        display: grid;
        gap: 10px;
    }

    .mobile-filter-panel .panel-row label {
        font-size: 0.82rem;
        font-weight: 700;
        color: #2b3d64;
        letter-spacing: 0.7px;
        text-transform: uppercase;
    }

    .mobile-filter-panel .panel-row .custom-select select {
        width: 100%;
    }

    .mobile-filter-panel .panel-action {
        padding: 0 18px 18px;
    }

    .mobile-filter-panel .panel-action button {
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
        background: #10234a;
        color: #ffffff;
        border: none;
        font-weight: 700;
        cursor: pointer;
    }

    .header-icons .icon-btn i,
    .cart-icon i {
        font-size: 1.2rem;
        color: #333;
        transition: color 0.3s ease;
    }

    .header-icons .icon-btn:hover i,
    .cart-wrapper:hover i {
        color: #ff6b6b;
    }

    #cart-count {
        font-family: Arial, sans-serif;
        font-weight: bold;
        margin-left: 5px;
    }
}

/* SMALLER PHONES (max-width: 768px) */
@media (max-width: 768px) {
    /* Mobile hero styling moved and consolidated into Section 7 */

    .hero-slider {
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }

    .hero-slide img {
        border-radius: 0 !important;
    }

    .hero-main-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }

    .hero-text {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
    }

    .hero-container {
        /* Override old padding — now positioned absolutely at bottom of slide */
        padding: 20px 20px 30px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .laptop-only {
        display: none !important;
    }



    .header-side.left {
        order: 1;
        flex: 1 !important;
        justify-content: flex-start !important;
        padding-right: 0 !important;
    }

    .header-side.center,
    .header-center {
        order: 2;
        display: flex !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .header-logo {
        display: block !important;
        width: 110px !important;
        max-width: 110px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .header-side.right {
        order: 3;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 !important;
        margin: 0 !important;
        /* Removes auto margin that breaks flex distribution */
        padding: 0 !important;
        gap: 8px !important;
        /* Good spacing between search and cart */
    }

    .header-icons {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .header-side.right i {
        font-size: 15px !important;
        color: #001f3f;
    }

    .icon-btn {
        background: none !important;
        border: none !important;
        padding: 2px !important;
        /* Reduced search button size */
        margin: 0 !important;
        transform: scale(0.9);
        /* Makes the overall search button noticeably smaller */
    }

    #cart-count {
        font-size: 10px;
        margin-left: 2px;
        font-weight: bold;
    }

    .icon-btn,
    .cart-wrapper,
    .cart-icon {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 5px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #cart-count {
        background: #ff6b6b;
        color: white;
        font-size: 9px;
        min-width: 14px;
        height: 14px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: -5px;
        margin-top: -10px;
    }
}

/* EXTRA SMALL PHONES (max-width: 600px) */
@media (max-width: 600px) {
    #sub-grid-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
}


/* Base style for the color swatch */
.swatch-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Hover & Active Ring (The "Circle Around" look) */
.swatch-dot:hover,
.swatch-dot.active {
    /* White gap (2px) then Purple Ring (2px) */
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--blue-theme);
    transform: scale(0.9);
    /* Makes the center feel tucked in */
}


/* Base style for the Style selection boxes */
.variant-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 12px;
    margin-bottom: 10px;
    border: 1px solid #d1d1d1;
    /* Light grey border */
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #444;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    text-align: center;
    min-width: 80px;
}

/* Hover effect for better user experience */
.variant-btn:hover {
    border-color: #311678;
    color: #311678;
}

/* The Active Selection (Solid Purple Box) */
.variant-btn.active {
    background-color: var(--blue-theme) !important;
    /* DM Brand Purple */
    color: #ffffff !important;
    /* White text for contrast */
    border-color: var(--blue-theme) !important;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Secondary Options (Pill shaped sizes) */
.secondary-option-btn {
    display: inline-block;
    padding: 8px 24px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #777;
    border-radius: 999px;
    /* Pill shape */
    cursor: pointer;
    font-size: 0.95rem;
    color: #222;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    text-align: center;
    min-width: 60px;
}

.secondary-option-btn:hover {
    border-color: #111;
    color: #111;
}

.secondary-option-btn.active {
    background-color: #151515 !important;
    color: #ffffff !important;
    border-color: #151515 !important;
    font-weight: 600;
}

/* All variant containers */
#variant-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* The Side Menu Container */
#side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    /* Start hidden on the left */
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: left 0.3s ease-in-out;
    /* Smooth slide effect */
    overflow-y: auto;
}

/* When the 'open' class is added via JavaScript */
#side-menu.open {
    left: 0;
}

/* The Overlay (Darkens the background when menu is open) */

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1999;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    background: #ffffff;
}

/* --- 3. MARQUEE --- */
.header-marquee {
    background: var(--blue-theme);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding-right: 120px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* --- 4. HEADER & NAV --- */




.header-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-side.left {
    justify-content: flex-start;
}

.header-side.center,
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.header-logo {
    display: block;
    max-width: 150px;
    height: auto;
}

.header-side.right {
    justify-content: flex-end;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icons .icon-btn {
    background: transparent;
    border: none;
    padding: 10px;
    width: auto;
    height: auto;
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    color: var(--blue-theme);
    font-size: 1.15rem;
}

.header-icons .icon-btn:hover {
    background: rgba(2, 41, 80, 0.08);
    color: var(--blue-theme);
    transform: none;
}

.search-wrapper {
    display: flex;
    align-items: center;
    width: min(100%, 300px);
    max-width: 320px;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d6d6d6;
    background: #ffffff;
    color: var(--dark-text);
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input::placeholder {
    color: #9b9b9b;
}

.search-input:focus {
    border-color: var(--blue-theme);
    box-shadow: 0 0 0 4px rgba(2, 41, 80, 0.08);
}

.cart-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--blue-theme);
    font-size: 1rem;
    background: transparent;
    padding: 5px;
    border: none;
    transition: transform 0.2s ease;
}

.cart-wrapper:hover {
    transform: translateY(-1px);
    color: #ff6b6b;
}

.cart-icon {
    font-size: 1.35rem;
}

#cart-count {
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -5px;
    margin-top: -12px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    justify-content: center;
    border-top: 1px solid #f9f9f9;
    background: var(--white);
}

.nav-links {
    list-style: none;
    display: flex;
    /* Reduced gap from 30px to 20px so 7 items fit better across the screen */
    gap: 20px;
    padding: 15px 0;
    /* Keeps everything in a straight line */
    flex-wrap: nowrap;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-text);
    /* 12px is perfect for 7 items */
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s ease;
    /* CRITICAL: Prevents "Personalized Gifts" from wrapping into two lines */
    white-space: nowrap;
}

.nav-links li a:hover {
    color: var(--blue-theme);
}

/* --- 5. SQUARE SUB-CATEGORY GRIDS --- */
/* --- BREADCRUMB NAVIGATION --- */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 10px 0 14px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.2px;
}

.breadcrumb-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.breadcrumb-link {
    color: var(--blue-theme);
    cursor: pointer;
    white-space: nowrap;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.breadcrumb-link:hover {
    background: rgba(2, 41, 80, 0.08);
    color: var(--blue-theme);
    text-decoration: underline;
}

.breadcrumb-current {
    color: #888;
    white-space: nowrap;
    padding: 3px 2px;
    font-weight: 600;
}

.breadcrumb-sep {
    color: #ccc;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    user-select: none;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 0.7rem;
        padding: 8px 0 10px 0;
    }
}

/* --- END BREADCRUMB --- */

.subcategory-section {
    padding: 30px 5%;
    background: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
    animation: fadeIn 0.5s ease-out;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .section-title {
        align-items: center;
        gap: 12px;
    }
    .section-title h2 {
        font-size: 0.9rem !important;
        line-height: 1.3;
    }
    .section-title p {
        font-size: 0.75rem !important;
    }
    .section-title .back-btn {
        padding: 8px 14px !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
    }
}

.sub-grid-square {
    display: grid;
    /* Use auto-fit to collapse empty tracks and justify-content to center the remaining ones */
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    gap: 24px;
    padding: 20px 0;
    justify-content: center;
    /* This is the key to removing the right-side gap */
    max-width: 1200px;
    margin: 0 auto;
}

.sub-tile-square {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 220px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sub-tile-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This is key to keeping images looking sharp */
}

.sub-tile-square .label-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 5px;
    text-align: center;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--dark-text);
    text-transform: uppercase;
}

.sub-tile-square:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.sub-tile-square:hover img {
    transform: scale(1.08);
}

/* --- 7. HERO SLIDER SYSTEM --- */
#hero-area {
    position: relative;
    width: 100%;
    /* 16:9 for Laptop as requested */
    aspect-ratio: 16 / 9;
    max-height: 85vh;
    min-height: 400px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 0 !important;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f4f7f9 100%);
}

@media (max-width: 1024px) {
    #hero-area {
        aspect-ratio: auto !important;
        height: 520px !important;
        min-height: unset !important;
        max-height: none !important;
        padding: 10px 15px !important;
        margin-bottom: 50px !important;
        overflow: visible !important;
        display: block !important;
        box-sizing: border-box;
    }

    .hero-slider {
        border-radius: 22px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
        height: 520px !important;
        width: 100% !important;
        position: relative !important;
        display: block !important;
    }

    #hero-slider-content {
        height: 100% !important;
        width: 100% !important;
    }

    /* MOBILE SPLIT LAYOUT: image top 60%, text bottom 40% */
    .hero-slide {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        background: #fff !important;
        animation: none !important;
    }

    /* Image fills top 50% */
    .hero-slide img,
    .hero-slide video {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 50% !important;
        object-fit: cover !important;
        object-position: center center;
        flex-shrink: 0;
        z-index: 2;
    }

    /* Text panel fills bottom 50% */
    .hero-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 50% !important;
        padding: 14px 18px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-align: left !important;
        z-index: 10 !important;
        flex-shrink: 0;
    }

    /* No dark gradient overlay on mobile — text is below the image */
    .hero-slide::before {
        display: none !important;
    }

    /* No blur bg needed on mobile */
    .hero-bg-blur {
        display: none !important;
    }

    /* No gleam effect on mobile */
    .hero-slide::after {
        display: none !important;
    }

    /* Dark text since background is white */
    .hero-main-title {
        color: var(--blue-theme) !important;
        text-shadow: none !important;
        font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
    }

    .hero-text {
        color: #555 !important;
        text-shadow: none !important;
        font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
        margin: 0 0 10px 0 !important;
        line-height: 1.4 !important;
    }

    .hero-action-btns {
        margin-top: 8px !important;
        justify-content: flex-start !important;
        flex-direction: row !important;
    }

    .hero-action-btns .shop-now-btn {
        font-size: 0.75rem !important;
        padding: 10px 22px !important;
        height: auto !important;
        min-width: unset !important;
        background: var(--blue-theme) !important;
        color: #fff !important;
    }

    .hero-dots {
        bottom: -35px !important;
    }

    .hero-dot {
        background: rgba(2, 41, 80, 0.2) !important;
        border: none !important;
    }

    .hero-dot.active {
        background: var(--blue-theme) !important;
    }
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s ease-in-out;

    /* ULTRA PREMIUM GLOSSY BACKGROUND */
    background: linear-gradient(-45deg, #f0f4f8, #ffffff, #e6ecf3, #ced4da, #ffffff);
    background-size: 400% 400%;
    animation: premiumShineBG 12s ease infinite;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.hero-slide img,
.hero-slide video {
    position: absolute;
    top: 0;
    left: 0;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    filter: none !important;
    z-index: 2;
}

/* =====================================================
   MOBILE TOP/BOTTOM SPLIT — placed AFTER base rules
   Uses #hero-slider-content ID for higher specificity
   to WIN over .hero-slide img { height:100% !important }
   ===================================================== */
@media (max-width: 1024px) {

    /* Make slide a vertical flex column */
    #hero-slider-content .hero-slide {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        background: #ffffff !important;
        animation: none !important;
    }

    /* TOP 50% — image */
    #hero-slider-content .hero-slide img,
    #hero-slider-content .hero-slide video {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 50% !important;
        object-fit: cover !important;
        object-position: center center;
        flex-shrink: 0 !important;
        z-index: 2;
    }

    /* BOTTOM 50% — text panel */
    #hero-slider-content .hero-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 50% !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-align: left !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    /* Hide dark overlay — text is no longer on the image */
    #hero-slider-content .hero-slide::before {
        display: none !important;
    }

    #hero-slider-content .hero-bg-blur {
        display: none !important;
    }

    #hero-slider-content .hero-slide::after {
        display: none !important;
    }

    /* Match desktop colors: gold title, dark description */
    #hero-slider-content .hero-main-title {
        color: #c9a035 !important;
        text-shadow: none !important;
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        font-weight: 800 !important;
    }

    #hero-slider-content .hero-text {
        color: #444444 !important;
        text-shadow: none !important;
        font-size: clamp(0.72rem, 2.8vw, 0.88rem) !important;
        margin: 0 0 14px 0 !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        font-weight: 400 !important;
    }

    #hero-slider-content .hero-action-btns {
        margin-top: auto !important;
        padding-top: 10px !important;
        justify-content: flex-start !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    #hero-slider-content .hero-action-btns .shop-now-btn {
        font-size: 0.72rem !important;
        padding: 8px 18px !important;
        height: auto !important;
        min-width: unset !important;
        background: var(--blue-theme) !important;
        color: #fff !important;
    }
}


@keyframes premiumShineBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: glassGleam 6s infinite linear;
    z-index: 1;
    pointer-events: none;
}

@keyframes glassGleam {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }

    /* Pauses for a few seconds before gleaming again */
}

.hero-bg-blur {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    /* Nylaa style: Liquid light effect. High blur + High scale makes it look like lighting, not a sidebar */
    filter: blur(80px) brightness(1.1) saturate(2);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
    /* Blends with the silk background for depth */
    transform: scale(1.1);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient at bottom so text is readable on mobile */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Transparent overlay - zero interference with your image */
    background: transparent;
    z-index: 2;
}

.hero-container {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
}

@media (max-width: 1200px) {
    .hero-container {
        /* desktop medium screens - keep default */
    }
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 20px;
    /* Removed heavy blur */
}

.hero-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 8px;
    text-transform: capitalize;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8rem, 2.5vw, 1.15rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 0 16px 0;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-action-btns {
    position: relative;
    margin-top: 12px;
    display: flex !important;
    gap: 12px;
    z-index: 20;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-action-btns {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

/* Button Consolidation removed - moved to section 2300 */

.custom-btn {
    padding: 18px 45px;
    background: transparent;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.custom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

/* Desktop Half Partition Layout: Image left, Text right */
@media (min-width: 1025px) {
    .hero-slide {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        padding: 0;
        overflow: hidden;
    }

    /* Left side: image fills exactly half */
    .hero-slide img,
    .hero-slide video {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 50% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center;
        border-radius: 0 !important;
        box-shadow: none !important;
        flex-shrink: 0;
    }

    /* Right side: text content */
    .hero-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 50%;
        padding: 0 50px;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        background: linear-gradient(-45deg, #f0f4f8, #ffffff, #f5f0e8);
        background-size: 400% 400%;
        animation: premiumShineBG 12s ease infinite;
    }

    /* Override frosted bottom gradient for desktop - use side fade instead */
    .hero-slide::before {
        background: linear-gradient(90deg,
                transparent 50%,
                rgba(240, 244, 248, 0.3) 65%,
                rgba(240, 244, 248, 0.8) 78%,
                #f5f3ef 100%) !important;
    }

    .hero-text {
        color: #444;
        text-shadow: none;
        margin: 0 0 25px 0;
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-main-title {
        color: #c9a035;
        text-shadow: none;
        font-size: clamp(1.6rem, 2.5vw, 2.8rem);
        margin-bottom: 12px;
    }

    .hero-action-btns {
        justify-content: flex-start;
        margin-top: 20px;
    }

    .hero-action-btns .shop-now-btn {
        background: var(--blue-theme) !important;
        color: #fff !important;
    }

    .hero-action-btns .custom-btn {
        color: var(--blue-theme);
        border-color: var(--blue-theme);
        background: transparent;
    }

    .hero-action-btns .custom-btn:hover {
        background: var(--blue-theme);
        color: #fff;
    }

    /* Hide blur bg on desktop since we have clean layout */
    .hero-bg-blur {
        display: none;
    }

    /* Clean up the gleam effect on desktop */
    .hero-slide::after {
        display: none;
    }
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    width: 35px;
    border-radius: 10px;
}

/* --- HERO NAVIGATION ARROWS --- */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 30;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-nav-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-btn.prev {
    left: 40px;
}

.hero-nav-btn.next {
    right: 40px;
}

@media (max-width: 1024px) {
    .hero-nav-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 105px;
        /* marquee(35) + mobile-header-bar(70) - no nav */
    }

    body {
        padding-top: var(--header-height) !important;
    }

    .luxe-header {
        height: var(--header-height) !important;
    }

    .hero-section {
        /* 3:1 ratio - clean compact e-commerce banner, professional look */
        aspect-ratio: 3 / 1 !important;
        min-height: 120px !important;
        max-height: 180px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        overflow: hidden;
    }

    .hero-main-title {
        font-size: 1.15rem !important;
        /* Perfectly scaled for mobile frame */
        margin-bottom: 5px !important;
    }

    .hero-text {
        font-size: 0.72rem !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }

    .hero-action-btns {
        bottom: 10px;
        left: 10px;
        top: auto;
        margin-top: 0 !important;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .shop-now-btn {
        padding: 8px 20px !important;
        height: 35px !important;
        font-size: 0.65rem !important;
        min-width: 120px !important;
    }

    .hero-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .hero-nav-btn.prev {
        left: 15px;
    }

    .hero-nav-btn.next {
        right: 15px;
    }
}

.shop-now-btn,
.custom-btn {
    height: 50px;
    min-width: 160px;
    padding: 0 28px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.shop-now-btn {
    background: var(--blue-theme) !important;
    color: #ffffff !important;
    padding: 18px 45px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(2, 41, 80, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-now-btn:hover {
    background: #ffffff !important;
    color: var(--blue-theme) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
}

.custom-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}



.custom-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.force-hide,
#subcategory-area.force-hide,
#hero-area.force-hide {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* Hero action buttons layout consolidated in previous sections */

/* Ensure both buttons have the same height for a clean look */
.shop-now-btn,
.custom-btn {
    height: 45px;
    min-width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.menu-parent {
    font-size: 18x;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    /* Elegant Serif Font */
    color: var(--blue-theme);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 20px 8px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 1.3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 35px;
    /* Indented to show hierarchy */
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}

.menu-link:hover,
.menu-link:focus {
    background-color: var(--menu-link-hover);
    color: var(--blue-theme);
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Space between Availability and Price */
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

/* Style the text "Filter:" and "Sort by:" */
.controls-label {
    font-weight: 500;
    color: #333;
}

/* Style the dropdowns */
.controls-row select {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    padding-right: 20px;
}

/* Push the '679 products' count to the far right */
.product-total-count {
    margin-left: auto;
    color: #5a637f;
    font-size: 14px;
}

.shop-toolbar {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 15px auto 25px;
    max-width: 1240px;
}

.toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group,
.sort-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: none;
    background: transparent;
}

.sort-group {
    justify-self: end;
}

.toolbar-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1b2a48;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.custom-select select,
select {
    padding: 10px 12px;
    border: 1px solid rgba(30, 50, 90, 0.16);
    border-radius: 10px;
    background: #ffffff;
    color: #1b2a48;
    font-size: 0.95rem;
    min-width: 160px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select select:focus,
select:focus {
    border-color: rgba(2, 41, 80, 0.24);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.product-count-display {
    color: #1b2a48;
    background: rgba(2, 41, 80, 0.06);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-bottom-filter-bar,
.mobile-filter-overlay,
.mobile-filter-panel {
    display: none;
}


.count-display {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

/* Filter/Sort Controls Row - Global Default Base */
.search-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px 0 0px 0;
}

.search-filter-btn,
.search-sort-btn {
    flex: 1;
    padding: 11px 16px;
    background: var(--blue-theme);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(2, 41, 80, 0.15);
}

.search-filter-btn:hover,
.search-sort-btn:hover {
    background: #1a1f4a;
    box-shadow: 0 4px 10px rgba(2, 41, 80, 0.25);
    transform: translateY(-2px);
}

.search-filter-btn:active,
.search-sort-btn:active {
    background: #0d1530;
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(2, 41, 80, 0.2);
}


/* --- SEARCH MODAL RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 90vh;
        background: white;
        z-index: 10021;
        display: none;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
    }

    .search-modal.open {
        display: flex;
    }

    .search-modal-content {
        padding: 8px 12px 12px;
    }

    .search-close-btn {
        top: 10px;
        right: 10px;
        position: absolute;
        display: flex;
        z-index: 9999;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .search-modal-header {
        display: block;
        margin-top: 8px;
        margin-bottom: 8px !important;
    }

    .search-modal-header h2 {
        font-size: 1.1rem !important;
    }

    .search-input-wrapper {
        max-width: 100%;
        margin-bottom: 8px;
    }

    .search-icon {
        left: 12px;
        font-size: 14px;
    }

    .search-input {
        padding: 8px 10px 8px 34px;
        font-size: 13px;
        border-radius: 6px;
    }

    .search-controls {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        padding: 6px 0 0;
    }

    .search-filter-btn,
    .search-sort-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* trending tags tighter on mobile */
    #trending-searches {
        margin-bottom: 8px !important;
    }

    #trending-searches p {
        margin-bottom: 6px !important;
        font-size: 10px !important;
    }

    #trending-searches div {
        gap: 6px !important;
    }

    .search-tag {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    .quick-search {
        display: none;
    }

    .search-results {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-top: 0;
        border-top: none;
    }

    .search-result-card {
        padding: 6px;
    }

    .search-result-card h4 {
        font-size: 11px !important;
        margin-bottom: 3px !important;
    }

    .search-result-card p {
        font-size: 10px !important;
    }

    .search-results>p:first-child {
        font-size: 11px !important;
    }
}

@media (min-width: 769px) {
    .search-modal-content {
        padding: 20px;
    }

    .search-modal-header h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .search-controls {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        padding: 0;
    }

    .search-filter-btn,
    .search-sort-btn {
        flex: 1;
        padding: 13px 20px;
        font-size: 12px;
        font-weight: 700;
    }

    .search-input-wrapper {
        max-width: 700px;
        margin-bottom: 25px;
    }

    .search-input {
        padding: 16px 20px 16px 50px;
        font-size: 16px;
    }

    .quick-search {
        max-width: 700px;
        margin-bottom: 25px;
    }

    .quick-search-label {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .quick-search-tags {
        gap: 12px;
    }

    .search-tag {
        padding: 10px 20px;
        font-size: 14px;
    }

    .search-results {
        max-width: 100%;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding-top: 30px;
        border-top: 1px solid #eee;
    }

    .search-result-card {
        padding: 10px;
    }

    .search-result-card h4 {
        font-size: 13px !important;
        margin-bottom: 3px !important;
    }

    .search-result-card p {
        font-size: 11px !important;
    }

    .search-results>p:first-child {
        font-size: 13px !important;
    }

    .search-add-to-cart {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Desktop search modal - dropdown style below header */
    .search-modal {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 900px;
        height: auto;
        max-height: 85vh;
        background: white;
        z-index: 10021;
        display: none;
        flex-direction: column;
        overflow-y: auto;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 1px solid #eee;
        padding-top: 25px;
    }

    .search-modal.open {
        display: flex;
    }

    #search-overlay {
        background: rgba(0, 0, 0, 0.3);
    }

    #search-overlay.open {
        display: block;
    }

    .search-close-btn {
        top: 15px;
        right: 15px;
        position: absolute;
    }

    .search-modal-content {
        position: relative;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 40px;
    }

    .search-modal-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .search-modal-header h2 {
        font-size: 1.8rem;
        color: var(--blue-theme);
        margin: 0;
        font-weight: 800;
        letter-spacing: 1px;
    }
}


/* --- OVERLAYS --- */
#view-similar-overlay,
#wishlist-overlay,
#login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10025;
    /* above cart sidebar which might be 10020 */
}

/* --- LOGIN MODAL --- */
.login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 10030;
    overflow: hidden;
}

.login-modal-content {
    padding: 40px 30px;
    text-align: center;
}

.login-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

#recaptcha-container {
    margin-bottom: 10px;
}

/* --- VIEW SIMILAR SIDEBAR --- */
.view-similar-sidebar {
    /* Uses .cart-sidebar styling but customized z-index and position if necessary */
    z-index: 10030;
    right: -100%;
    /* The transition is handled by cart-sidebar class but let's ensure it maps right */
}

.view-similar-sidebar.open {
    right: 0;
}

/* --- PRODUCT CARD ICONS --- */
.card-icon-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.card-icon-btn:hover {
    color: var(--blue-theme);
    background: #f9f9f9;
}

.card-icon-btn i {
    font-size: 14px;
}

.card-label-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* .card-label-btn:hover {} */

.search-result-card {
    padding: 10px;
}

.search-result-card h4 {
    font-size: 13px !important;
    margin-bottom: 3px !important;
}

.search-result-card p {
    font-size: 11px !important;
}

.search-results>p:first-child {
    font-size: 13px !important;
}

.search-add-to-cart {
    padding: 12px 16px;
    font-size: 14px;
}

/* Desktop search modal - dropdown style below header */
.search-modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 85vh;
    background: white;
    z-index: 10021;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    padding-top: 25px;
}

.search-modal.open {
    display: flex;
}

#search-overlay {
    background: rgba(0, 0, 0, 0.3);
}

#search-overlay.open {
    display: block;
}

.search-close-btn {
    top: 15px;
    right: 15px;
    position: absolute;
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
}

.search-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.search-modal-header h2 {
    font-size: 1.8rem;
    color: var(--blue-theme);
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}



/* --- OVERLAYS --- */
#view-similar-overlay,
#wishlist-overlay,
#login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10025;
    /* above cart sidebar which might be 10020 */
}

/* --- LOGIN MODAL --- */
.login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 10030;
    overflow: hidden;
}

.login-modal-content {
    padding: 40px 30px;
    text-align: center;
}

.login-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

#recaptcha-container {
    margin-bottom: 10px;
}

/* --- VIEW SIMILAR SIDEBAR --- */
.view-similar-sidebar {
    /* Uses .cart-sidebar styling but customized z-index and position if necessary */
    z-index: 10030;
    right: -100%;
    /* The transition is handled by cart-sidebar class but let's ensure it maps right */
}

.view-similar-sidebar.open {
    right: 0;
}

/* --- PRODUCT CARD ICONS --- */
.card-icon-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.card-icon-btn:hover {
    color: var(--blue-theme);
    background: #f9f9f9;
}

.card-icon-btn i {
    font-size: 14px;
}

.card-label-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.card-label-btn:hover {
    color: var(--blue-theme);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- SCROLL LOCKING --- */
body.lock-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* HOME MULTI-SECTION STYLES */
.home-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4% 60px 4%;
}

.home-section-title {
    font-size: 1.6rem;
    color: var(--blue-theme);
    margin-bottom: 25px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    /* Or matching your brand font */
    letter-spacing: 0.5px;
}

.category-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-mini-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

.category-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.category-mini-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.category-mini-card .card-footer {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    color: #444;
    font-size: 0.95rem;
}

.product-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 767px) {
    .product-row-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .category-row-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* --- CUSTOMER REVIEWS SECTION --- */
.reviews-section {
    background: #fffafa;
    padding: 40px 0;
    margin-top: 20px;
    text-align: center;
}

.section-subtitle {
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.reviews-wrapper {
    position: relative;
    max-width: 1300px;
    /* Fixed width to fit 3 cards + gaps perfectly */
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

.reviews-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scroll-behavior: smooth;
}

.reviews-grid::-webkit-scrollbar {
    display: none;
}

.review-card {
    /* Exact calculation for 4 cards: (100% of wrapper - 90px of gaps) / 4 */
    min-width: calc((100% - 90px) / 4);
    max-width: calc((100% - 90px) / 4);
    flex: 0 0 auto;
    background: #fff;
    padding: 25px;
    /* Reduced from 35px */
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    border: 1px solid #f9f0f0;
}

@media (max-width: 1200px) {
    .review-card {
        min-width: calc((100% - 60px) / 3);
        /* 3 cards on smaller laptops */
        max-width: calc((100% - 60px) / 3);
    }
}

@media (max-width: 900px) {
    .review-card {
        min-width: calc((100% - 30px) / 2);
        /* 2 cards on tablets */
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .review-card {
        min-width: 100%;
        /* 1 card on mobile */
        max-width: 100%;
        padding: 20px;
        /* Reduced from 35px */
        min-height: 200px;
        /* More compact */
    }

    .reviews-grid {
        gap: 15px;
    }

    .reviews-section {
        padding: 40px 5% !important;
        /* Half of desktop padding */
    }
}

.review-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 14px;
}

.review-text {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Reduced from 25px */
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

@media (max-width: 768px) {
    .connect-section {
        padding: 40px 5%;
    }

    .connect-grid {
        gap: 15px;
        margin: 20px auto;
    }

    .connect-pill {
        padding: 15px 20px;
        gap: 12px;
    }

    .connect-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.connect-pill {
    background: #fdfeff;
    padding: 25px 30px;
    border-radius: 999px;
    /* Gives it the nice pill shape */
    border: 1px solid #f0f4f8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.connect-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(2, 41, 80, 0.08);
    border-color: var(--blue-theme);
}

.connect-icon-box {
    background: rgba(2, 41, 80, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--blue-theme);
    transition: all 0.3s ease;
}

.connect-pill:hover .connect-icon-box {
    background: var(--blue-theme);
    color: #fff;
}

.connect-info {
    text-align: left;
}

.connect-info h4 {
    color: var(--blue-theme);
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 4px 0;
}

.connect-info p {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}

.trust-statement {
    margin-top: 50px;
    color: #888;
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- 16. HOME SECTION SYSTEMS --- */
.home-section-container {
    padding: 25px 0;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5%;
}

/* --- SCROLL NAVIGATION BUTTONS (Laptop/Tablet) --- */
.scroll-nav-container {
    display: none;
    /* Hidden on mobile by default */
    gap: 10px;
}

@media (min-width: 1024px) {
    .scroll-nav-container {
        display: flex;
    }
}

.scroll-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scroll-nav-btn:hover {
    background: var(--blue-theme);
    color: #fff;
    border-color: var(--blue-theme);
    transform: scale(1.1);
}

.scroll-nav-btn i {
    pointer-events: none;
}

.home-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-theme);
    letter-spacing: 0.5px;
    margin: 0;
}

.section-tagline {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    padding: 0 5%;
}

/* --- HORIZONTAL GRID SCROLL ENGINE (Bestsellers) --- */
.horizontal-grid-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 15px);
    /* 2 per view on mobile */
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5% 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    cursor: grab;
}

/* Specific styling for Featured Collections Portrait Tiles */
.featured-large-tiles {
    grid-auto-columns: calc(45% - 15px) !important;
    /* 2.2 per view on mobile */
}

@media (min-width: 768px) {
    .featured-large-tiles {
        grid-auto-columns: calc(25% - 20px) !important;
        /* 4 per view on tablet */
    }
}

@media (min-width: 1024px) {
    .featured-large-tiles {
        grid-auto-columns: calc(20% - 20px) !important;
        /* 5 per view on desktop */
    }
}

.featured-large-tiles .category-mini-card .img-container {
    aspect-ratio: 9 / 16 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.featured-large-tiles .category-mini-card:hover .img-container {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(2, 41, 80, 0.2);
}

.featured-large-tiles .category-mini-card img {
    transition: transform 0.6s ease;
}

.featured-large-tiles .category-mini-card:hover img {
    transform: scale(1.1);
}

.horizontal-grid-scroll:active {
    cursor: grabbing;
}

@media (min-width: 768px) {
    .horizontal-grid-scroll {
        grid-auto-columns: calc(33.33% - 20px);
        /* 3 per view on tablet */
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .horizontal-grid-scroll {
        grid-auto-columns: calc(25% - 15px);
        /* Exactly 4 per view (100% / 4) with gap adjustment */
        gap: 20px;
    }
}

/* Modifier for icon-based grids */
.horizontal-grid-scroll.is-icon-grid {
    grid-auto-columns: 120px;
    gap: 10px;
}

@media (min-width: 768px) {
    .horizontal-grid-scroll.is-icon-grid {
        grid-auto-columns: 150px;
        gap: 20px;
    }
}

/* Modifier for full-width review grids */
.horizontal-grid-scroll.is-review-grid {
    grid-auto-columns: 100%;
    gap: 0;
    scroll-snap-type: x mandatory;
}

.horizontal-grid-scroll .product-card,
.horizontal-grid-scroll .category-mini-card {
    scroll-snap-align: start;
    width: 100% !important;
    /* Force card to fill grid cell */
}

.horizontal-grid-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- AUTO-SCROLLING TICKER (New Arrivals) --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 10px 0 30px;
    position: relative;
}

.ticker-content {
    display: flex;
    width: max-content;
    animation: ticker-dance 60s linear infinite;
    /* Slower, smoother */
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-content .product-card {
    width: 260px !important;
    margin-right: 20px;
    flex-shrink: 0;
}

@keyframes ticker-dance {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- BESTSELLERS POWER ROW --- */
.power-row {
    background: linear-gradient(180deg, #fdf8eb 0%, #ffffff 100%);
    padding: 30px 0;
    border-top: 1px solid rgba(201, 160, 53, 0.1);
    border-bottom: 1px solid rgba(201, 160, 53, 0.1);
    margin: 20px 0;
}

.power-row .product-card {
    border: 2px solid rgba(201, 160, 53, 0.1);
    background: #fff;
    box-shadow: 0 10px 25px rgba(201, 160, 53, 0.08);
}

.power-row .product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(201, 160, 53, 0.15);
}

/* --- CATEGORY ICON GRID (Image 1 Style) --- */
.category-ref-row {
    display: flex;
    gap: 20px;
    padding: 20px 5%;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff0f3;
    /* Light pink from reference */
}

.category-ref-row::-webkit-scrollbar {
    display: none;
}

.ref-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    scroll-snap-align: center;
    width: 100% !important;
}

.ref-category-tile:hover {
    transform: translateY(-5px);
}

.ref-category-tile .img-box {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    /* Premium rounded look */
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
}

@media (min-width: 768px) {
    .ref-category-tile .img-box {
        width: 130px;
        height: 130px;
    }
}

.ref-category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-category-tile span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- BADGES (Image 3 Style) --- */
.hot-selling-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #a6585f;
    /* Muted red from image */
    color: #fff;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 5;
    text-transform: capitalize;
}

/* --- AUTO-SCROLLING TICKER (Universal) --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 10px 0 30px;
    position: relative;
}

.ticker-content {
    display: flex;
    width: max-content;
    animation: ticker-dance-ltr 60s linear infinite;
    /* Default LTR */
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* Direction: Left to Right */
@keyframes ticker-dance-ltr {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Direction: Right to Left (Classic) */
@keyframes ticker-dance-rtl {
    0% {
        transform: translateX(0);
    }

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

.reviews-ticker .ticker-content {
    animation-duration: 80s;
    /* Slower so users can read the reviews */
}

.review-card-mini {
    width: 300px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

/* --- VIEW ALL BUTTON --- */
.view-all-container {
    text-align: center;
    padding: 30px 0;
    background: #fff;
}

.huge-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 45px;
    background: var(--blue-theme);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(2, 41, 80, 0.2);
}

.huge-view-all-btn:hover {
    background: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(201, 160, 53, 0.3);
}

.huge-view-all-btn i {
    font-size: 1.2rem;
}

/* --- FOOTER STYLES --- */

.main-footer {
    background: var(--bg);
    color: var(--dark-text);
    padding: 60px 5% 30px;
    font-size: 0.9rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto 40px;
}

.footer-brand-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo {
    width: 100px;
    margin-bottom: 12px;
}

.footer-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    line-height: 1;
}

.footer-brand-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.footer-brand-desc {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
    margin: 0;
}

.footer-col h3 {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-text);
    font-size: 0.8rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--dark-text);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .main-footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        /* Double Column for compactness */
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-col:first-child {
        grid-column: span 2;
        /* Logo section stays full width */
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-brand-content {
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Extra narrow screens (320px Galaxy S9+, iPhone SE small) */
@media (max-width: 400px) {
    .main-footer {
        padding: 30px 12px 16px;
        overflow-x: hidden;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-col:first-child {
        grid-column: span 1 !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-col {
        text-align: left;
    }

    .footer-links li {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .footer-links {
        font-size: 0.85rem;
    }

    .footer-col h3 {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 0.75rem;
    }

    .footer-brand-title {
        font-size: 0.9rem;
    }

    .footer-brand-tagline {
        font-size: 0.78rem;
    }

    .footer-brand-desc {
        font-size: 0.8rem;
    }

    .footer-logo {
        width: 70px;
    }
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 160, 53, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(201, 160, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(201, 160, 53, 0);
    }
}

@keyframes liquidShine {
    0% {
        transform: translateX(-100%) skewX(-30deg);
    }

    100% {
        transform: translateX(200%) skewX(-30deg);
    }
}

/* --- LUXURY TAG SYSTEM (Professional Corner Tabs) --- */
.new-arrival-badge,
.bestseller-badge {
    position: absolute;
    left: 0;
    top: 0;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    /* Tab Shape: Sharp at the top-left, rounded at bottom-right */
    border-radius: 0 0 12px 0;
    overflow: hidden;
}

.new-arrival-badge {
    background: #e91e63 !important;
    /* Brand Red / Logo Color */
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.bestseller-badge {
    top: 25px;
    /* Directly below the New Arrival tab */
    background: linear-gradient(135deg, var(--blue-theme) 0%, var(--navy) 100%) !important;
    color: #ffffff !important;
    /* Unified White */
    border-right: 1px solid rgba(201, 160, 53, 0.3) !important;
    border-bottom: 1px solid rgba(201, 160, 53, 0.3) !important;
}

/* If ONLY Bestseller exists, snap it to the very top edge */
.product-card:not(:has(.new-arrival-badge)) .bestseller-badge {
    top: 0;
}

.new-arrival-badge::after,
.bestseller-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: liquidShine 3s infinite linear;
}

/* --- MULTI-DEVICE GRID OPTIMIZATION --- */
.product-row-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 30px;
    padding: 20px 0;
}

.category-row-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
}

.card-icon-btn {
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.card-icon-btn:hover {
    transform: scale(1.15) rotate(5deg);
}

/* --- HOVER REVEAL SYSTEM --- */
.card-label-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(8px);
    background: white;
    color: var(--blue-theme);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Lighter border */
    padding: 3px 8px;
    /* Ultra tight padding */
    font-size: 8.5px;
    /* The 'Sweet Spot' for luxury text */
    font-weight: 900;
    /* Extra bold so it's readable at tiny sizes */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.product-card:hover .card-label-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Slides up into position */
}

/* On Touch Devices (Mobile/Tablet), always show it or reveal on tap */
@media (max-width: 1024px) {
    .card-label-btn {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* --- 15. RESPONSIVE MASTER SYSTEM --- */

/* GLOBAL GRID ENGINE */
.product-row-grid,
#product-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px;
    padding: 20px 0;
}

.category-row-grid,
.subcategory-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
}

/* TABLET SYSTEM (Up to 1024px) */
@media (max-width: 1024px) {

    .product-row-grid,
    #product-grid,
    .mobile-2-col-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    .mobile-horizontal-scroll {
        display: flex !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 10px 15px 25px 15px !important;
        scroll-snap-type: x mandatory;
        margin-left: -15px;
        margin-right: -15px;
    }

    .mobile-horizontal-scroll .product-card {
        flex: 0 0 calc(45% - 20px) !important;
        scroll-snap-align: start;
    }

    .luxe-header {
        height: auto;
    }

}

/* MOBILE SYSTEM (Up to 768px) */
@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2rem !important;
    }

    .product-grid-container {
        padding: 15px 3%;
    }
}

/* SMARTPHONE SYSTEM (Up to 600px) */
@media (max-width: 600px) {

    .product-row-grid,
    #product-grid,
    .mobile-2-col-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .category-row-grid,
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .mobile-horizontal-scroll .product-card {
        flex: 0 0 calc(75% - 20px) !important;
    }

    .main-footer {
        padding: 40px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .home-section-title {
        font-size: 1.3rem !important;
    }
}

/* Product Card Overlay Actions */
.card-overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    transition: bottom 0.3s ease;
    z-index: 10;
}

.product-img-wrapper:hover .card-overlay-actions {
    bottom: 0;
}

.card-icon-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.card-icon-btn:hover {
    transform: scale(1.1);
}

/* ============================================================
   MASTER HEADER & TOOLBAR OVERHAUL (THE FINAL WORD)
   ============================================================ */

/* 1. UNIVERSAL HEADER RESET */




/* 2. DESKTOP LAYOUT (> 768px) */
@media (min-width: 769px) {
    .header-side.left {
        display: flex !important;
        justify-content: flex-start !important;
    }

    .header-side.center {
        display: flex !important;
        justify-content: center !important;
        position: static !important;
        transform: none !important;
    }

    .header-side.right {
        display: flex !important;
        justify-content: flex-end !important;
    }





    /* Hide mobile-specific items */
    .mobile-only {
        display: none !important;
    }

    .mobile-bottom-filter-bar {
        display: none !important;
    }

    .shop-toolbar.active-toolbar {
        display: block !important;
    }
}

/* 3. MOBILE LAYOUT (<= 768px) */
@media (max-width: 768px) {

    .header-side.center {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
    }

    .header-logo {
        max-height: 48px !important;
        margin-bottom: 0 !important;
    }


    .laptop-only {
        display: none !important;
    }

    .shop-toolbar {
        display: none !important;
    }

    .mobile-bottom-filter-bar.active-toolbar {
        display: flex !important;
    }

    body {
        padding-bottom: 90px !important;
    }
}

/* 4. SCROLL & VIEWPORT FIXES */
html,
body {
    width: 100%;
    min-height: 100dvh;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* --- THE ULTIMATE HEADER STRUCTURE FIX --- */


.header-side.left {
    display: flex !important;
    justify-content: flex-start !important;
}

.header-side.center {
    display: flex !important;
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
}

.header-side.right {
    display: flex !important;
    justify-content: flex-end !important;
}

.main-nav.laptop-only {
    display: block !important;
    width: 100% !important;
    background: white !important;
    padding: 5px 0 !important;
}

.nav-links {
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}

@media (max-width: 768px) {

    .main-nav {
        display: none !important;
    }

    .header-side.center {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* --- BRAND TEXT SAFETY ALIGNMENT --- */




/* --- THE FINAL TAGLINE SMASH --- */




/* ============================================================
   OFFICIAL BRAND HEADER SYSTEM (Fixed Breakpoints)
   ============================================================ */

/* 💻 DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .main-header {
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        padding: 10px 0 !important;
    }

    .header-inner {
        display: grid !important;
        grid-template-columns: 250px 1fr 250px !important;
        align-items: center !important;
        max-width: 1300px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .header-side.left {
        display: flex !important;
        justify-content: flex-start !important;
    }

    .header-side.center {
        display: flex !important;
        justify-content: center !important;
    }

    .header-side.right {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .brand-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .brand-title {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        color: var(--navy) !important;
        display: block !important;
        margin: 0 !important;
    }

    .brand-tagline {
        font-size: 1.02rem !important;
        color: #D4A853 !important;
        display: block !important;
        margin: 0 !important;
    }

    .laptop-only {
        display: flex !important;
    }

    .mobile-only {
        display: none !important;
    }
}

/* 📟 TABLET (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .header-side.center {
        position: static !important;
        transform: none !important;
    }

    .brand-title {
        font-size: 1.3rem !important;
    }

    .brand-tagline {
        font-size: 0.9rem !important;
        color: #D4A853 !important;
    }

    .laptop-only {
        display: flex !important;
    }

    .mobile-only {
        display: none !important;
    }
}

/* 📱 MOBILE (0px - 767px) */
@media (max-width: 767px) {
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        padding: 5px 15px !important;
    }

    .header-side.center {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .brand-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .brand-title {
        display: none !important;
    }

    .brand-tagline {
        font-size: 10px !important;
        margin-top: -3px !important;
        font-weight: 700 !important;
        color: #D4A853 !important;
    }

    .laptop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* --- HEADER TIGHTEN & MOBILE CLEANUP --- */
.main-header {
    padding: 0 !important;
}

.header-inner {
    padding: 5px 20px !important;
}

.brand-container {
    margin: 0 !important;
}

/* Strictly hide category links on mobile/tablet screens */
@media (max-width: 1023px) {

    .main-nav,
    .laptop-only,
    #desktop-nav-links {
        display: none !important;
    }

    .main-header {
        min-height: 50px !important;
    }

    body {
        padding-top: 85px !important;
    }

    /* Corrected padding for tighter header */
}

/* --- FINAL HEADER GAP REMOVAL --- */
.main-header {
    top: 35px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.header-inner {
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 20px !important;
}

body {
    padding-top: 85px !important;
}

@media (max-width: 767px) {
    body {
        padding-top: 75px !important;
    }

    .main-header {
        padding: 2px 0 !important;
    }
}

/* --- HEADER UNITY & ALIGNMENT FIX --- */
.main-header {
    padding-top: 5px !important;
}

.header-inner {
    padding: 15px 30px !important;
}

.header-logo {
    max-height: 55px !important;
    transition: transform 0.3s ease;
}

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

.brand-container {
    margin-top: 5px !important;
}

@media (min-width: 1024px) {
    .header-side.left {
        padding-top: 5px !important;
    }
}

/* --- LOGO RE-ANCHORING FIX --- */
.header-logo-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
}

.header-side.left {
    align-items: center !important;
}

.header-logo {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    margin: 0 !important;
    max-height: 60px !important;
}

@media (min-width: 1024px) {
    .main-header {
        top: 35px !important;
    }

    .header-inner {
        padding: 10px 40px !important;
    }
}

/* --- HEADER COMPACT ATTACHMENT FIX --- */
.main-header {
    padding: 0 !important;
    top: 35px !important;
    min-height: 0 !important;
    height: auto !important;
}

.header-inner {
    padding: 5px 40px !important;
    min-height: 0 !important;
    height: auto !important;
    gap: 0 !important;
}

.brand-container {
    margin: 0 !important;
    padding: 0 !important;
}

.brand-title {
    font-size: 1.4rem !important;
    margin-bottom: 0 !important;
}

.brand-tagline {
    margin-top: -2px !important;
}

body {
    padding-top: 100px !important;
}

/* Adjusting body padding for slimmer header */
@media (max-width: 767px) {
    body {
        padding-top: 85px !important;
    }
}

/* --- MOBILE LOGO & SYMBOL CLEANUP --- */
@media (max-width: 767px) {
    .laptop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .header-side.left .header-logo-container {
        display: none !important;
    }
}

/* --- DOUBLE LOGO ELIMINATOR --- */
@media (min-width: 1024px) {
    .mobile-only {
        display: none !important;
    }

    .header-side.center .header-logo {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .laptop-only {
        display: none !important;
    }

    /* Hide logo image everywhere on mobile/tablet */
    .header-side.left .header-logo-container {
        display: none !important;
    }

    /* Hide logo image in center too — show text instead */
    .header-side.center .header-logo {
        display: none !important;
    }

    /* Hide ::before pseudo logo on all mobile/tablet */
    .brand-container::before {
        display: none !important;
    }

    /* Always show text brand name on mobile/tablet */
    .brand-title {
        display: block !important;
        font-size: 1.5rem !important;
        font-weight: 900 !important;
        color: var(--navy) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    .brand-tagline {
        font-size: 0.96rem !important;
        font-weight: 600 !important;
        color: #D4A853 !important;
        margin-top: 2px !important;
    }
}


/* ============================================================
   PROFESSIONAL REDESIGN: THE FINAL HEADER SYSTEM
   ============================================================ */

/* 1. UNIVERSAL HEADER RESET */
.main-header {
    position: fixed !important;
    top: 35px !important;
    left: 0 !important;
    width: 100% !important;
    background: white !important;
    z-index: 10010 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.header-inner {
    display: grid !important;
    grid-template-columns: 250px 1fr 250px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
}

.brand-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
}

.brand-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--navy) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.brand-tagline {
    font-size: 1.14rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #D4A853 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    position: static !important;
}

.header-logo {
    max-height: 55px !important;
    width: auto !important;
}

/* 2. LAPTOP LAYOUT (1024px+) */
@media (min-width: 1024px) {
    .header-side.left {
        display: flex !important;
        justify-content: flex-start !important;
    }

    .header-side.center {
        display: flex !important;
        justify-content: center !important;
    }

    .header-side.right {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .main-nav {
        display: block !important;
        width: 100% !important;
        padding-bottom: 10px !important;
    }

    .nav-links {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .laptop-only {
        display: flex !important;
    }

    .mobile-only {
        display: none !important;
    }
}

/* 3. TABLET LAYOUT (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-inner {
        grid-template-columns: 1fr auto 1fr !important;
        padding: 8px 15px !important;
    }

    /* TABLET: Show text bigger */
    .brand-title {
        font-size: 1.7rem !important;
    }

    .brand-tagline {
        font-size: 1.26rem !important;
        font-weight: 700 !important;
        color: #D4A853 !important;
    }

    .main-nav {
        display: none !important;
    }

    .laptop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* 4. MOBILE LAYOUT (0px - 767px) */
@media (max-width: 767px) {
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        padding: 5px 15px !important;
    }

    .header-side.left .header-logo-container {
        display: none !important;
    }

    .header-side.center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        flex: 1 !important;
    }

    /* MOBILE: Show text instead of logo image */
    .brand-container::before {
        display: none !important;
    }

    .brand-title {
        display: block !important;
        font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
        font-weight: 900 !important;
        color: var(--navy) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .brand-tagline {
        font-size: clamp(1.14rem, 4.2vw, 1.14rem) !important;
        font-weight: 900 !important;
        -webkit-text-stroke: 0.3px #D4A853 !important;
        letter-spacing: 0.2px !important;
        color: #D4A853 !important;
        margin-top: 2px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .main-nav {
        display: none !important;
    }

    .laptop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* ============================================================
   UNIFIED HEADER SYSTEM (Laptop vs. Mobile/Tablet)
   ============================================================ */

/* 1. SHARED BASE STYLES */
.main-header {
    position: fixed !important;
    top: 35px !important;
    left: 0 !important;
    width: 100% !important;
    background: white !important;
    z-index: 10010 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    padding: 0 !important;
    height: auto !important;
}

.header-inner {
    display: grid !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 8px 20px !important;
}

.header-logo {
    max-height: 55px !important;
    width: auto !important;
}

.brand-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.brand-tagline {
    font-size: 0.96rem !important;
    color: #D4A853 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* 2. LAPTOP MODE (1024px+) */
@media (min-width: 1024px) {
    .header-inner {
        grid-template-columns: 250px 1fr 250px !important;
    }

    .mobile-tablet-only {
        display: none !important;
    }

    .laptop-only {
        display: flex !important;
    }

    .header-side.left {
        justify-content: flex-start !important;
    }

    .header-side.center {
        justify-content: center !important;
    }

    .header-side.right {
        justify-content: flex-end !important;
    }

    .brand-title {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        color: var(--navy) !important;
        margin: 0 !important;
        display: block !important;
    }

    .main-nav {
        display: block !important;
        border-top: 1px solid #eee !important;
        padding: 8px 0 !important;
    }

    .nav-links {
        display: flex !important;
        justify-content: center !important;
        gap: 25px !important;
        list-style: none !important;
        margin: 0 !important;
    }

    body {
        padding-top: 135px !important;
    }
}

/* 3. MOBILE & TABLET MODE (< 1024px) */
@media (max-width: 1023px) {
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        padding: 5px 15px !important;
    }

    .laptop-only {
        display: none !important;
    }

    .mobile-tablet-only {
        display: flex !important;
    }

    .header-side.center {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .brand-title {
        display: none !important;
    }

    .brand-container::before {
        content: '' !important;
        display: block !important;
        width: 140px !important;
        height: 50px !important;
        background: url('assets/images/DM_LogoFinal.png') no-repeat center !important;
        background-size: contain !important;
        margin-bottom: 2px !important;
    }

    .brand-tagline {
        font-size: 10px !important;
        font-weight: 700 !important;
        margin-top: -2px !important;
        color: #D4A853 !important;
    }

    .header-logo {
        max-height: 48px !important;
    }

    .main-nav {
        display: none !important;
    }

    body {
        padding-top: 90px !important;
    }
}

/* --- THE DOUBLE LOGO STRIKE --- */
.header-marquee {
    overflow: hidden !important;
    z-index: 10020 !important;
}

.header-marquee img {
    display: none !important;
}

/* Kill any logo leakage in marquee */

@media (max-width: 1023px) {

    .laptop-only,
    .header-logo-container.laptop-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    .mobile-tablet-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (min-width: 1024px) {
    .mobile-tablet-only {
        display: none !important;
        visibility: hidden !important;
    }

    .laptop-only {
        display: flex !important;
    }
}



.variant-number-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    color: #333;
    margin-right: 12px;
    margin-bottom: 10px;
}

.variant-number-btn:hover {
    border-color: var(--blue-theme);
    color: var(--blue-theme);
}

.variant-number-btn.active {
    background-color: var(--blue-theme) !important;
    color: white !important;
    border-color: var(--blue-theme) !important;
    transform: scale(1.05);
}


/* Size variant buttons */
.variant-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    background: white;
    color: #333;
    margin-right: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.variant-size-btn:hover {
    border-color: var(--blue-theme);
    color: var(--blue-theme);
    background: #f0f5ff;
}

.variant-size-btn.active {
    background: var(--blue-theme) !important;
    color: white !important;
    border-color: var(--blue-theme) !important;
    transform: scale(1.05);
}


/* Out-of-stock swatch styles */
.swatch-out-of-stock {
    opacity: 0.4;
    position: relative;
    cursor: not-allowed;
}

.swatch-out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 2px;
    background: rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 2px;
}

.variant-out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: auto;
}


/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.3s ease forwards, toast-out 0.3s ease 2.7s forwards;
    pointer-events: auto;
}

.toast.error {
    background: var(--navy);
    color: #ffffff;
    border-left: 5px solid var(--blue-theme);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    padding: 15px 20px;
}

.toast.error i {
    font-size: 1.4rem;
    color: #ffffff;
}

.toast.success {
    background: var(--blue-theme);
    border-left: 4px solid #2ecc71;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.toast.info {
    background: var(--blue-theme);
    border-left: 4px solid #3498db;
}

@keyframes toast-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* --- PAGINATION STYLING --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px auto;
    padding: 10px;
    width: 100%;
}

.pagination-btn {
    background-color: var(--white);
    border: 1.5px solid var(--blue-theme);
    color: var(--blue-theme);
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover {
    background-color: var(--blue-theme);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2, 41, 80, 0.15);
}

.pagination-btn.active {
    background-color: var(--blue-theme);
    color: var(--white);
    border-color: var(--blue-theme);
    box-shadow: 0 4px 10px rgba(2, 41, 80, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ddd;
    color: #999;
}

.pagination-btn.disabled:hover {
    background-color: var(--white);
    color: #999;
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ===================================================
   FLOATING WHATSAPP BUTTON
   =================================================== */
#whatsapp-float-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2.5s ease-in-out infinite;
}

#whatsapp-float-btn i {
    font-size: 2rem;
    color: #ffffff;
    line-height: 1;
}

#whatsapp-float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* Tooltip label */
.wa-tooltip {
    position: absolute;
    right: 68px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.78rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(8px);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a1a;
    border-right: none;
}

#whatsapp-float-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse ring animation */
@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #whatsapp-float-btn {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    #whatsapp-float-btn i {
        font-size: 1.7rem;
    }

    /* Hide tooltip on mobile (tap opens directly) */
    .wa-tooltip {
        display: none;
    }
}

/* NUCLEAR OVERRIDE: Hide all logos below 1024px */
@media (max-width: 1023px) {

    .header-logo,
    .header-logo-container,
    .brand-container::before {
        display: none !important;
        background-image: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        content: none !important;
    }

    /* Force show the text title and its containers */
    .brand-container,
    .brand-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .brand-title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: var(--navy) !important;
        font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
        font-weight: 900 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}

/* Checkout - Order Summary responsive */
.order-summary-card {
    position: sticky;
    top: 20px;
    padding: 12px;
    background: #fafbfc;
    border: 1px solid #eef0f5;
}

/* Keep Grand Total & Place Order button stuck at bottom of summary */
.order-summary-card .grand-total-row {
    background: #fafbfc;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #eee;
}

/* Mobile: collapse to single column, remove sticky */
@media (max-width: 600px) {
    .order-summary-card {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

/* Tiny screens (like Galaxy S8 / 360px) header adjustments */
@media (max-width: 400px) {
    .main-header {
        padding: 12px 3% !important;
    }
    /* Let flexbox handle spacing so they NEVER overlap */
    .header-side.center, .header-center {
        position: static !important;
        transform: none !important;
        flex: 1 !important;
    }
    .brand-title {
        font-size: 1rem !important;
        letter-spacing: 0px !important;
        line-height: 1.1 !important;
        text-align: center;
    }
    /* Hide tagline to save space */
    .brand-tagline {
        display: none !important;
    }
    .header-icons .icon-btn {
        padding: 2px !important;
    }
    .cart-wrapper {
        padding: 2px !important;
    }
    .header-side.right {
        gap: 2px !important;
        flex: 0 0 auto !important;
    }
    .header-side.left {
        flex: 0 0 auto !important;
    }
}

/* --- OUT OF STOCK OVERLAY & BLUR EFFECT --- */
.out-of-stock-card {
    cursor: not-allowed !important;
    user-select: none;
}

.out-of-stock-card .product-img-wrapper img {
    filter: grayscale(0.2) !important;
    opacity: 0.88 !important;
    transition: opacity 0.3s ease;
}

.out-of-stock-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    border-radius: 8px;
}

.out-of-stock-badge-text {
    background: rgba(0, 0, 0, 0.82);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}