@font-face {
    font-family: 'Optima';
    src: url('Fonts/Optima/Woff2/Optima_Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'Optima';
    src: url('Fonts/Optima/Woff2/Optima_Italic.woff2') format('woff2');
    font-weight: 400; font-style: italic;
}
@font-face {
    font-family: 'Optima';
    src: url('Fonts/Optima/Woff2/Optima_Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal;
}
@font-face {
    font-family: 'Optima';
    src: url('Fonts/Optima/Woff2/Optima_Bold_Italic.woff2') format('woff2');
    font-weight: 700; font-style: italic;
}
@font-face {
    font-family: 'Optima';
    src: url('Fonts/Optima/Woff2/Optima_ExtraBlack.woff2') format('woff2');
    font-weight: 900; font-style: normal;
}

@font-face {
    font-family: 'Chronicle';
    src: url('Fonts/Chronicle/Chronicle Display Roman.otf') format('opentype');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'Chronicle';
    src: url('Fonts/Chronicle/Chronicle Display Semibold.otf') format('opentype');
    font-weight: 600; font-style: normal;
}
@font-face {
    font-family: 'Chronicle';
    src: url('Fonts/Chronicle/Chronicle Display Black.otf') format('opentype');
    font-weight: 900; font-style: normal;
}
@font-face {
    font-family: 'Chronicle';
    src: url('Fonts/Chronicle/Chronicle Display Light Italic.otf') format('opentype');
    font-weight: 300; font-style: italic;
}
@font-face {
    font-family: 'Zodiak';
    src: url('Fonts/Zodiak/Zodiak-Thin.otf') format('opentype');
    font-weight: 100; font-style: normal;
}
@font-face {
    font-family: 'Zodiak';
    src: url('Fonts/Zodiak/Zodiak-Light.otf') format('opentype');
    font-weight: 300; font-style: normal;
}
@font-face {
    font-family: 'Zodiak';
    src: url('Fonts/Zodiak/Zodiak-Regular.otf') format('opentype');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'Zodiak';
    src: url('Fonts/Zodiak/Zodiak-Bold.otf') format('opentype');
    font-weight: 700; font-style: normal;
}
@font-face {
    font-family: 'Zodiak';
    src: url('Fonts/Zodiak/Zodiak-Extrabold.otf') format('opentype');
    font-weight: 800; font-style: normal;
}
@font-face {
    font-family: 'Zodiak';
    src: url('Fonts/Zodiak/Zodiak-Black.otf') format('opentype');
    font-weight: 900; font-style: normal;
}

/* ---------- Design Tokens ---------- */
:root {
    --header-font: 'Optima', 'Chronicle', 'Georgia', serif;
    --body-font: 'Optima', 'Zodiak', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --navy: #232753;
    --navy-deep: #0d113e;
    --navy-text: #1B1C1C;
    --gold: #d39e4f;
    --gold-light: #fec571;
    --grey-mid: #767676;
    --grey-border: #C6C6CD;
    --grey-label: #45464D;
    --off-white: #F5F3F3;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: var(--body-font);
    background: #fff;
    color: var(--navy);
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

a { text-decoration: none; transition: color 0.2s; }

/* ---------- Layout Helpers ---------- */
.container { max-width: 1290px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 40px 0; text-align: center; }

h2 {
    font-family: var(--header-font);
    font-size: 18px;
    font-weight: 700; /* Optima Bold */
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
    column-gap: 40px;
}

.logo { width: 200px; height: auto; margin: 0; }
.logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.desktop-nav { display: flex; gap: 40px; flex-wrap: nowrap; }
.nav-link {
    font-family: var(--header-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey-mid);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

.btn-bespoke-sm {
    font-family: var(--header-font);
    background: var(--gold-light);
    padding: 12px 32px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
    white-space: nowrap;
    display: inline-block;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.icon-btn img {
    width: 24px; height: 24px;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: brightness(0) saturate(100%) invert(13%) sepia(18%) saturate(5412%) hue-rotate(213deg) brightness(96%) contrast(95%);
}
.icon-btn:hover img { transform: scale(1.1); }

.cart-btn { position: relative; }
.cart-btn img { width: 24px; height: 24px; }
.cart-count {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    width: 16px; height: 16px;
    font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.profile-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.profile-icon.desktop-only { display: block; }
.icon-btn:hover .profile-icon { transform: scale(1.1); }

/* ---------- Mobile Nav Toggle ---------- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}
.hamburger-icon {
    display: block;
    width: 24px; height: 2px;
    background-color: var(--navy);
    position: relative;
    transition: background-color 0.3s ease;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%; height: 2px;
    background-color: var(--navy);
    left: 0;
    transition: transform 0.3s ease;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after  { top:  8px; }
.mobile-nav-toggle.active .hamburger-icon { background-color: transparent; }
.mobile-nav-toggle.active .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle.active .hamburger-icon::after  { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile Nav Drawer ---------- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 17, 62, 0.6);
    backdrop-filter: blur(4px);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: none;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; cursor: pointer; }

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    z-index: 150;
    display: none; /* Hidden on desktop screens */
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
    visibility: hidden;
}

.mobile-nav.open {
    left: 0;
    visibility: visible;
}

.mobile-menu-header {
    padding: 20px 24px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid var(--off-white);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--navy);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 16px;
    font-family: var(--header-font);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 62, 0.45); /* Dark overlay to ensure white text pops */
    z-index: -1;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--gold);
}

.mobile-menu-profile {
    color: #fff;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 13px;
    text-transform: none; /* Changed to Title Case */
    letter-spacing: 0.15em;
    text-align: center;
    border: none;
    transition: background 0.3s;
}

.user-profile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px; /* Pulls the block higher up */
}

.user-profile-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 12px;
    border-radius: 4px;
    background: var(--off-white);
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s;
}

.user-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-circle img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(13%) sepia(18%) saturate(5412%) hue-rotate(213deg) brightness(96%) contrast(95%);
}

.user-details-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.goto-dashboard {
    font-size: 10px;
    color: var(--grey-mid);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.user-name-display {
    font-family: var(--header-font);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: var(--navy);
}


.btn-logout-mobile {
    margin-top: 4px;
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
    height: 50px;
    background: #fff;
    border: 1px solid #e74c3c;
    padding: 0 24px;
    color: #e74c3c;
    font-family: var(--body-font);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout-mobile:hover {
    background: #e74c3c;
    color: #fff;
}

.mobile-nav-item[data-bg-image="home"]        { background-image: url('Assets/Home page.png'); }
.mobile-nav-item[data-bg-image="shop"]        { background-image: url('Assets/Shop page.png'); }
.mobile-nav-item[data-bg-image="collections"] { background-image: url('Assets/Collection page.png'); }
.mobile-nav-item[data-bg-image="pricing"]     { background-image: url('Assets/Pricing.png'); }
.mobile-nav-item[data-bg-image="bespoke"]     { background-image: url('Assets/Get a Bespoke.png'); }

.mobile-menu-socials { display: none !important; } /* Removed Socials */
.mobile-menu-socials a {
    width: 34px; height: 34px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}
.mobile-menu-socials a:hover { background-color: var(--gold); border-color: var(--gold); }
.mobile-menu-socials img { width: 16px; height: 16px; transition: filter 0.2s; }
.mobile-menu-socials a:hover img { filter: brightness(0) invert(1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    font-family: var(--header-font);
    background: var(--gold-light);
    padding: 18px 48px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
    display: inline-block;
}
.btn-outline {
    font-family: var(--header-font);
    background: rgba(255,255,255,0.9);
    border: 1px solid #fff;
    padding: 18px 48px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy-deep);
    display: inline-block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateX(100%);
    z-index: 1;
    pointer-events: none;
}
.hero-bg.active { 
    transform: translateX(0); 
    z-index: 3; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}
.hero-bg.prev { 
    transform: translateX(-100%); 
    z-index: 2; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}

.hero-content { 
    position: relative; 
    text-align: center; 
    z-index: 10;
    opacity: 0; /* Handled by animation */
    pointer-events: none; /* Allows clicks to pass through if needed, but buttons override this */
}
.hero-content > * { pointer-events: auto; }


.hero-content.animate {
    animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: var(--header-font);
    font-size: clamp(52px, 8vw, 110px);
    font-weight: 700;
    color: var(--navy);
    text-shadow: 0 2px 15px rgba(255,255,255,0.4); /* Ensures legibility without overlay */
    line-height: 1;
    margin-bottom: 48px;
}
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PRODUCT CARDS (shared — home & shop)
   ============================================================ */
.product-grid, .related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 24px;
    max-width: 1290px;
    margin: 0 auto;
}

.essentials-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 24px;
}

.product-card {
    width: 100%; /* Make card fluid */
    min-width: 0; /* Important fix: allows card to shrink below content width in Grid */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.product-img {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #eee;
    overflow: hidden;
    width: 100%;
}
.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
}
.product-img .secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card:hover .product-img .secondary-img {
    opacity: 1;
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}
.product-card:hover .product-card-overlay { opacity: 1; pointer-events: auto; }

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #fff;
    padding: 6px 13px;
    font-family: var(--header-font);
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 0.05em;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .discount-badge {
    transform: scale(1.1);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.price-row .price { margin-top: 0 !important; }
.regular-price {
    text-decoration: line-through;
    color: var(--grey-mid) !important;
    font-weight: 400 !important; /* Optima Regular */
    font-size: 14px !important;
}

 .product-card-hover-icon {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 48px;
    height: 48px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3;
    pointer-events: none; /* Let the stretched link handle the click */
 }

 .product-card:hover .product-card-hover-icon {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
 }

 .product-card-hover-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
 }

.product-info { 
    margin-top: 20px; 
    width: 100%; 
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 12px;
}

.product-text-stack { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.product-name-link { text-decoration: none; color: inherit; display: block; position: static; }

.product-info .product-title {
    font-family: var(--header-font);
    font-size: 16px;
    font-weight: 700; /* Optima Bold */
    color: var(--navy);
    line-height: 1.1 !important;
    margin: 0 0 10px 0 !important; /* Fixed 10px spacing for cards */
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

.product-info .price {
    font-family: var(--header-font);
    font-size: 16px;
    font-weight: 700; /* Optima Bold */
    color: var(--navy);
    margin: 0 !important;
    line-height: 1 !important;
    letter-spacing: normal;
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.add-to-cart-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none; /* Hidden by default, shown in single layout */
}

.add-to-cart-btn-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(13%) sepia(18%) saturate(5412%) hue-rotate(213deg) brightness(96%) contrast(95%);
}

.product-info .description {
    display: none;
    font-family: var(--body-font);
    font-size: 15px;
    color: var(--grey-mid);
    line-height: 1.6;
}


/* Wishlist button */
.wishlist-btn {
    background: none; border: none; cursor: pointer;
    padding: 8px; border-radius: 50%; 
    margin-top: -6px; /* Visually aligns the icon with the first line of the title */
    display: flex; align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5; /* Ensures it stays above the stretched link */
}
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-icon {
    width: 26px; height: 26px;
    background-color: var(--navy);
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 21V5q0-.825.588-1.412T7 3h10q.825 0 1.413.588T19 5v16l-7-3z'/%3E%3C/svg%3E");
    --svg-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.5' d='M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
    -webkit-mask-image: var(--svg-outline);
    mask-image: var(--svg-outline);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.wishlist-btn.active .wishlist-icon,
.wishlist-btn-large.active .wishlist-icon {
    background-color: var(--gold);
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
}

/* Notification toast */
div.notification-toast { /* Added div to increase specificity */
    position: fixed;
    top: 100px; right: 24px;
    background: var(--navy);
    color: #fff;
    padding: 16px 32px;
    font-family: var(--body-font);
    font-size: 14px;
    letter-spacing: 0.05em;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.notification-toast.show { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.section-footer { margin-top: 64px; }

/* ============================================================
   NEW ARRIVALS / ESSENTIALS
   ============================================================ */
.new-arrivals, .essentials { margin-bottom: 60px; }
.collection-launch { margin-bottom: 0; }

/* Essential cards */
.essential-card {
    position: relative;
    width: 311px; height: 302px;
    overflow: hidden;
    cursor: pointer;
}
.essential-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.essential-card:hover img { transform: scale(1.06); filter: grayscale(100%); }
.card-overlay { position: absolute; inset: 0; background: rgba(35,39,83,0.71); }
.essential-content {
    position: absolute;
    bottom: 32px; left: 32px; right: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.essential-content p {
    font-family: var(--header-font);
    font-size: 30px; font-weight: 900;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.btn-shop-now {
    font-family: var(--body-font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gold-light);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}
.essential-card:hover .btn-shop-now { opacity: 1; transform: translateY(0); pointer-events: auto; }
.essential-card:hover .essential-content p { transform: translateY(-10px); }

/* ============================================================
   COLLECTION LAUNCH
   ============================================================ */
.exclusive-collection-wrapper {
    position: relative;
    width: 100%;
    height: 909px;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
}

.exclusive-frame {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.exclusive-img {
    position: absolute;
    object-fit: cover;
    transition: opacity 1.2s ease-in-out;
}

.frame-left .exclusive-img {
    width: 173%; /* Mimics 1667px width */
    height: 229%; /* Mimics 2084px height */
    left: -17%;
    top: -36%;
}

.frame-right .exclusive-img {
    width: 116%; /* Mimics 1119px width */
    height: 153%; /* Mimics 1399px height */
    left: -8%;
    top: -9%;
}

.exclusive-content-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.exclusive-content-overlay h3 {
    width: 288px;
    font-family: var(--header-font);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 72px;
}

.exclusive-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 255px;
    height: 60px;
    background: var(--gold-light);
    color: var(--navy);
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 540;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    transition: background 0.3s;
}

.exclusive-btn:hover {
    background: var(--gold);
}

/* ============================================================
   LEGACY
   ============================================================ */
.legacy {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('Assets/Collection Images/IMG_2209.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 24px;
    margin-bottom: 60px;
}
.stats-container { display: flex; gap: 160px; justify-content: center; flex-wrap: wrap; }
.stat-item {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2,1,0.3,1), transform 0.8s cubic-bezier(0.2,1,0.3,1);
}
.stat-item.reveal { opacity: 1; transform: translateY(0); }
.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.25s; }
.stat-item:nth-child(3) { transition-delay: 0.4s; }
.stat-num { font-family: var(--header-font); font-size: 64px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.stat-label { font-family: var(--header-font); font-size: 14px; color: var(--grey-mid); letter-spacing: 0.15em; text-transform: uppercase; }

/* ============================================================
   BESPOKE BANNER
   ============================================================ */
.bespoke-banner {
    position: relative;
    min-height: 500px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: 60px;
}
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: rgba(35,39,83,0.65); }
.banner-content { position: relative; z-index: 1; text-align: center; padding: 80px 24px; }
.banner-content h2 {
    font-family: var(--header-font);
    font-size: clamp(36px, 5vw, 64px);
    color: #fff; line-height: 1.3;
    margin-bottom: 56px;
    text-transform: none;
}

/* ============================================================
   SHOP PAGE — UTILITY BAR & FILTERS
   ============================================================ */
.utility-bar {
    max-width: 1290px;
    height: 48px;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end; /* Align search to the right */
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.utility-bar::-webkit-scrollbar { display: none; }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
.breadcrumb-item {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--grey-label);
    transition: color 0.3s;
}
a.breadcrumb-item:hover { color: var(--navy); }
.breadcrumb-item.active { font-weight: 700; color: var(--navy); }
.breadcrumb-separator {
    width: 8.75px; height: 8.75px;
    background: var(--grey-label);
    opacity: 0.6;
    display: block;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
}

/* Catalog search */
.catalog-search { position: relative; width: 320px; height: 48px; flex-shrink: 0; }
.catalog-search { width: 100%; max-width: 320px; } /* Ensure search doesn't exceed 320px or screen width */
.catalog-search input {
    width: 100%; height: 100%; display: block;
    padding: 16px 16px 16px 40px;
    border: 1px solid var(--grey-border);
    background: #fff;
    outline: none;
    font-family: var(--body-font);
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--navy);
}
.catalog-search input::placeholder { color: #6B7280; }
.search-bar-icon {
    position: absolute;
    width: 18px;
    left: 12px;
    top: 50%; transform: translateY(-50%);
    filter: brightness(0) saturate(100%) invert(13%) sepia(18%) saturate(5412%) hue-rotate(213deg) brightness(96%) contrast(95%);
}

/* Filter tabs */
.filter-tabs-container {
    width: 100%; 
    margin-top: 40px; /* Added for spacing below banner */
    margin-bottom: 40px; 
}

.filter-tabs-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    height: 48px;
}
.filter-nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 48px; min-width: 48px; height: 48px;
    border: 1px solid var(--grey-border);
    border-radius: 9999px;
    background: #fff;
    cursor: pointer;
    flex: none;
}
.filter-nav-btn.prev svg { transform: scaleX(-1); }

.filter-scroll-area { flex-grow: 1; height: 40px; position: relative; overflow: hidden; }
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 32px;
    height: 40px;
    border: 1px solid var(--grey-border);
    background: #fff;
    font-family: var(--body-font);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--grey-label);
    cursor: pointer;
    white-space: nowrap;
    flex: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.filter-btn:hover:not(.active) { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.filter-btn.active {
    background: var(--gold-light);
    color: var(--navy);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254,197,113,0.3);
}
.fade-gradient {
    position: absolute;
    width: 168px; height: 100%; top: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}
.fade-gradient-right { right: 0; background: linear-gradient(270deg, #fff 19%, transparent 98%); }
.fade-gradient-left  { left:  0; background: linear-gradient(90deg,  #fff 19%, transparent 98%); }

/* Controls bar */
.controls-bar {
    width: 100%;
    height: 102px;
    border-top: 1px solid var(--grey-border);
    border-bottom: 1px solid var(--grey-border);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 30;
}
.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.controls-right { display: flex; align-items: center; gap: 16px; }
.filter-results-summary {
    max-width: 1290px; margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--navy);
    border-bottom: 1px solid var(--grey-border);
}
.filter-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0; 
    align-items: center; 
}
.filter-tag {
    background: none;
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-deep);
    text-transform: capitalize; /* Ensures summary text is not all caps */
    display: inline-flex;
    align-items: center;
}
.remove-filter-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    margin-left: 6px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.remove-filter-btn:hover { color: var(--navy-deep); }
.filter-results-summary .clear-filters-btn {
    background: none;
    border: none;
    color: var(--gold);
    padding: 0 0 0 4px;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.filter-results-summary .separator { padding: 0 10px; color: var(--grey-border); font-weight: 400; }
.filter-results-summary .count-text { font-weight: 400; color: var(--grey-mid); }

/* No Results State */
.no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    text-align: center;
    gap: 24px;
}
.no-results h3 {
    font-family: var(--header-font);
    font-size: clamp(24px, 4vw, 32px);
    color: var(--navy);
    text-transform: uppercase;
}
.no-results p { font-size: 16px; color: var(--grey-mid); max-width: 480px; line-height: 1.6; }

.controls-left { display: flex; align-items: center; gap: 32px; }
.filter-trigger {
    display: flex; align-items: center;
    padding: 8px 24px;
    gap: 12px;
    height: 40px;
    border: 1px solid var(--grey-border);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}
.filter-trigger:hover { border-color: #1B1C1C; }
.filter-text { font-family: var(--body-font); font-weight: 600; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy-text); }

.grid-density { display: flex; align-items: center; gap: 16px; }
.density-btn {
    background: none; border: none; cursor: pointer;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.density-btn.active, .density-btn:hover { opacity: 1; }
.density-btn svg { width: 16px; height: 16px; display: block; }
.density-btn svg rect { stroke: var(--grey-label); transition: stroke 0.2s; }
.density-btn.active svg rect, .density-btn:hover svg rect { stroke: var(--navy-text); }

/* Sort dropdown */
.sort-dropdown {
    position: relative;
    border: 1px solid var(--grey-border);
    height: 40px;
    min-width: 277px;
    cursor: pointer;
}
.sort-options { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 0 24px; height: 100%; }
.sort-label { font-family: var(--body-font); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy-text); }
.sort-menu {
    position: absolute;
    top: 100%; left: -1px; right: -1px;
    background: #fff;
    border: 1px solid var(--grey-border);
    border-top: none;
    z-index: 110;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.sort-dropdown.open .sort-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sort-item {
    padding: 16px 24px;
    font-family: var(--body-font);
    font-size: 13px;
    color: var(--grey-label);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    cursor: pointer;
    border-bottom: 1px solid rgba(198,198,205,0.5);
    transition: all 0.2s;
    position: relative;
    background: #fff;
}
.sort-item:last-child { border-bottom: none; }
.sort-item:hover { background: #fcfcfc; color: var(--navy); }
.sort-item.active { color: var(--navy); font-weight: 700; }
.sort-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--navy);
}

/* ============================================================
   SHOP GRID LAYOUTS
   ============================================================ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 60px; /* Increased column spacing for better separation */
    row-gap: 100px; /* Increased row spacing */
    padding: 40px 24px;
    max-width: 1290px;
    width: 100%;
    margin: 0 auto;
    transition: opacity 0.3s ease-in-out;
}
.shop-grid .product-card { width: 100%; }
.shop-grid.grid-2-col { grid-template-columns: repeat(2, 1fr); }
.shop-grid.grid-3-col { grid-template-columns: repeat(3, 1fr); }
.shop-grid.grid-4-col { grid-template-columns: repeat(4, 1fr); column-gap: 32px; row-gap: 80px; } /* Adjusted for 4-col specific */

/* Skeleton Loader */
.skeleton-card { pointer-events: none; }
.skeleton-img-placeholder { width: 100%; aspect-ratio: 3 / 4; background: var(--off-white); margin-bottom: 20px; }
.skeleton-text-placeholder { height: 20px; background: var(--off-white); margin-bottom: 10px; }
.skeleton-text-placeholder.short { width: 60%; }
.skeleton-shimmer { position: relative; overflow: hidden; }
.skeleton-shimmer::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* List view */
.shop-grid.grid-list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 60px 24px;
}
.shop-grid.grid-list-view .product-card {
    flex-direction: row !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto;
    align-items: center;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(35,39,83,0.1);
}
.shop-grid.grid-list-view .product-img { width: 320px; flex-shrink: 0; }
.shop-grid.grid-list-view .product-info { margin-top: 0; }
.shop-grid.grid-list-view .product-info .description { display: block; animation: fade-in 0.5s ease-out 0.1s forwards; }
.shop-grid.grid-list-view .product-info .name { font-size: 16px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0 100px;
    gap: 15px;
}
.page-btn {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px;
    border: 1px solid rgba(35,39,83,0.1);
    background: #fff;
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--navy);
    transition: all 0.2s;
}
.page-btn.active { background: var(--gold-light); border-color: var(--gold-light); font-weight: 700; }
.page-btn:hover:not(.active) { border-color: var(--navy); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-main {
    padding-top: 120px; /* Header height offset to prevent content from falling beneath */
    background: #fff;
}

/* Breadcrumbs section on product page */
.breadcrumbs-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

/* Product layout: two-column on desktop */
.product-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
    align-items: start;
}

/* Gallery */
.product-gallery-side {
    display: flex;
    flex-direction: row; /* Desktop: Thumbnails left, Main right */
    gap: 16px;
}
.thumb-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 90px;
}
.thumb-btn {
    width: 90px;
    aspect-ratio: 3 / 4;
    border: 1px solid transparent;
    cursor: pointer;
    background: #eee;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.3s;
}
.thumb-btn.active { border: 2px solid var(--navy) !important; }
.thumb-btn:hover { opacity: 0.8; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.main-view-container {
    position: relative;
    flex: 1;
    aspect-ratio: 3 / 4;
    background: #eee;
    overflow: hidden;
}
/* Main Image Viewport */
.main-view-container img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }

/* Overlaid Controls */
.gallery-controls { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 16px; z-index: 2; pointer-events: none; }
.gallery-nav-btn, .gallery-zoom-btn { background: rgba(255,255,255,0.85); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; pointer-events: auto; transition: background 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.gallery-nav-btn:hover, .gallery-zoom-btn:hover { background: #fff; }
.gallery-nav-btn img, .gallery-zoom-btn img { width: 18px; height: 18px; }
.gallery-zoom-btn { position: absolute; top: 16px; right: 16px; z-index: 2; }

/* Share Modal Styling */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 62, 0.85); /* Brand navy-deep dimmed */
    z-index: 2500;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.share-modal-overlay.open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}
.share-modal-container {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
    border-radius: 4px;
}
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.share-modal-header h3 {
    font-family: var(--header-font);
    font-size: 20px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.share-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
}
.share-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.share-opt {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.share-opt:hover { opacity: 0.7; }
.share-opt img {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(13%) sepia(18%) saturate(5412%) hue-rotate(213deg) brightness(96%) contrast(95%);
}
.share-opt span {
    font-size: 10px;
    color: var(--grey-mid);
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Product details sidebar */
.product-details-side { display: flex; flex-direction: column; gap: 24px; }

.product-title-price { display: flex; justify-content: space-between; align-items: flex-start; }

.product-header-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }

.product-title {
    font-family: var(--header-font);
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.02em;
    color: var(--navy);
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.1 !important;
    text-transform: none;
}
.price-tag {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 0 !important;
}

/* Aggressive Desktop Override */
@media (min-width: 1025px) {
    .product-page .product-title { margin-bottom: 0 !important; font-size: 24px !important; }
    .product-page .price-tag { font-size: 24px !important; }
}

.product-detail-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; margin-left: auto; }

.wishlist-btn-large, .share-product-btn {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    align-self: center !important; /* Forces vertical centering within flex row containers */
    flex-shrink: 0;
    transition: transform 0.2s;
}
.wishlist-btn-large:hover { transform: scale(1.1); } /* Keep hover effect for icon */

.wishlist-btn-large .wishlist-icon {
    width: 32px;
    height: 32px;
    background-color: var(--navy); /* Keep icon color */
    /* Mask image is already defined in .wishlist-icon */
}
.share-product-btn:hover { transform: scale(1.05); }
.share-product-btn img {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(13%) sepia(18%) saturate(5412%) hue-rotate(213deg) brightness(96%) contrast(95%);
}

.btn-buy-now-large { /* Buy Now button styling */
    background: var(--gold-light); /* Solid pastel orange/gold */
    color: var(--navy); /* Dark bold text */
    border: none; /* No border */
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    display: flex; align-items: center; justify-content: center;
    height: 56px;
    flex: 0 0 45%; /* Takes up ~45% width */
    max-width: 45%; /* Ensure it doesn't grow too much */
}
.btn-buy-now-large:hover { background: var(--gold); }

.wishlist-btn-large.active { background-color: transparent !important; }

.selector-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-mid);
    margin-bottom: 12px;
    display: block;
}

.size-chip.active { background: var(--gold-light) !important; color: #fff !important; border-color: var(--gold-light) !important; } /* Active state for size chips */

/* Variant and Qty row */
.variant-qty-row {
    display: flex;
    gap: 20px;
    width: 100%;
}
.variant-col { flex: 1; position: relative; } /* Added position relative for select caret */

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--grey-border);
    height: 56px;
    padding: 0 16px;
}
.color-swatch-indicator { 
    width: 24px; height: 24px; border-radius: 50%; 
    background: #D9D9D9; flex-shrink: 0; margin-right: 12px; 
}
.variant-select { 
    border: none; background: transparent; width: 100%; height: 100%; 
    font-family: 'Hanken Grotesk', var(--body-font); font-size: 16px; 
    font-weight: 600;
    color: #1B1C1C; outline: none; appearance: none; 
}
.select-caret { position: absolute; right: 16px; width: 14px; pointer-events: none; opacity: 0.6; } /* Down-caret arrow */

/* CTA Row refinement */
/* Consolidated into the block above to prevent conflicts */

.btn-buy-now-large { flex: 0 0 auto; width: 180px; }
.add-to-cart-large.ghost { 
    flex: 0 0 auto;
    width: 240px; /* Wider than Buy Now */
    background: #fff; 
    color: var(--navy); 
    border: 1px solid var(--grey-border); 
    height: 56px; 
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* Trust Badges refine */
.delivery-grid { margin-top: 32px; display: flex; gap: 16px; } /* Trust badges grid */
.delivery-item { background: var(--off-white); flex: 1; padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; } /* Individual badge card */
.badge-icon { width: 32px; height: 32px; filter: brightness(0) saturate(100%) invert(49%) sepia(10%) saturate(2716%) hue-rotate(359deg) brightness(96%) contrast(87%); } /* Icon styling for badges (gold) */
.delivery-item h4 { color: var(--gold); font-size: 11px; letter-spacing: 1px; font-weight: 700; margin: 0; text-transform: uppercase; } /* Header styling for badges */
.delivery-item p { font-size: 12px; color: var(--grey-mid); line-height: 1.5; margin: 0; } /* Text styling for badges */

.product-size-selector { margin-top: 0; }
.selector-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.58px;
    text-transform: uppercase;
    color: #1B1C1C;
    margin-bottom: 14px;
}
.size-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.size-chip {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--grey-border);
    background: #fff;
    font-family: var(--body-font);
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.size-chip.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.size-chip:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

/* Actions grouping */
.product-actions { display: flex; gap: 12px; align-items: center; }

/* Purchase row */
.purchase-row { display: flex; gap: 16px; align-items: center; justify-content: flex-start; margin-top: 32px; flex-wrap: nowrap; width: 100%; }
.qty-box {
    display: flex;
    flex-shrink: 0; /* Prevent shrinking */
    width: 140px; height: 56px;
    border: 1px solid var(--grey-border);
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    flex-shrink: 0;
}
.qty-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; transition: opacity 0.2s; }
.qty-btn:hover { opacity: 0.6; }
.qty-btn img { width: 16px; }
.quantity-display { font-family: var(--body-font); font-weight: 600; font-size: 16px; color: #1B1C1C; min-width: 24px; text-align: center; }
.add-to-cart-large { flex-shrink: 1; } /* Allow it to shrink if needed */

/* Delivery Item Icons */
.delivery-item h4 {
    margin-bottom: 8px;
    white-space: normal;
}
.delivery-item-icon {
    width: 40px;
    height: 40px;
    filter: none;
}

.add-to-cart-large {
    flex: 1;
    min-width: 200px;
    height: 56px;
    background: var(--gold-light);
    color: var(--navy);
    border: none;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.add-to-cart-large:hover { background: #fdb94e; }

/* Delivery grid */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.delivery-item {
    background: var(--off-white);
    border: 1px solid rgba(198,198,205,0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.delivery-grid { margin-top: 24px; }
.delivery-item h4 {
    color: var(--gold);
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.delivery-item p { font-size: 13px; line-height: 1.6; color: var(--grey-label); }

/* Quick links */
.product-quick-links { 
    display: flex;
    align-items: center;
    gap: 24px; 
    padding-top: 12px; 
}
.quick-link-btn {
    font-family: var(--body-font);
    font-size: 12px;
    color: var(--gold);
    text-decoration: underline;
    background: none; border: none;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
}
.quick-link-btn img {
    width: 16px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(10%) saturate(2716%) hue-rotate(359deg) brightness(96%) contrast(87%);
}

/* Accordion */
.product-details-accordion { border-top: 1px solid var(--grey-border); margin: 60px auto; }
.accordion-item { border-bottom: 1px solid var(--grey-border); }
.accordion-header {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0;
    background: none; border: none; cursor: pointer;
}
.accordion-title {
    font-family: var(--header-font);
    font-size: 22px;
    font-weight: 450;
    letter-spacing: 1px;
    color: var(--navy);
    text-align: left;
}
.accordion-icon { transition: transform 0.3s ease; width: 20px; }
.accordion-content { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.accordion-body { padding-bottom: 24px; font-size: 16px; line-height: 1.7; color: var(--grey-label); }
.additional-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
.additional-info-row { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.info-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); width: auto; flex-shrink: 0; }
.info-value { font-size: 15px; color: var(--navy); }

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 62, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.image-lightbox.open { display: flex; }
.lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    cursor: default;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
}

.image-lightbox.open .lightbox-content {
    animation: lightboxZoom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes lightboxZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--gold); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2010;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); color: var(--gold); }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* Related products */
.related-products-section { padding: 60px 0 100px; }
.related-products-heading {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 50px;
    text-align: center;
}
.related-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.related-products-grid .product-card { width: 100%; }

/* Filter Drawer */
.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.filter-drawer-overlay.open { opacity: 1; visibility: visible; cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'></line><line x1='6' y1='6' x2='18' y2='18'></line></svg>") 16 16, pointer; }

.filter-drawer {
    position: fixed;
    top: 0; left: -400px;
    width: 400px; 
    max-width: 90%;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.filter-drawer.open { left: 0; }

/* Cart Popup (shared) */
.cart-popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.cart-popup-overlay.open { opacity: 1; visibility: visible; }
.cart-popup {
    position: fixed; top: 0; right: -400px; width: 400px; max-width: 100%; height: 100vh;
    background: #fff; z-index: 1001; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column;
}
.cart-popup.open { right: 0; }
.cart-popup-header { padding: 32px 24px; border-bottom: 1px solid var(--off-white); display: flex; justify-content: space-between; align-items: center; }
.cart-popup-header h3 { font-family: var(--header-font); text-transform: uppercase; letter-spacing: 1px; font-size: 18px; }
.cart-popup-close { background: none; border: none; cursor: pointer; color: var(--navy); }
.cart-popup-content { flex: 1; overflow-y: auto; padding: 24px; }
.cart-popup-content::-webkit-scrollbar { width: 4px; }
.cart-popup-content::-webkit-scrollbar-thumb { background: var(--off-white); }

.cart-popup-item {
    display: grid;
    grid-template-columns: auto 80px 1fr;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--off-white);
}
.cart-popup-item:last-child { border-bottom: none; }

.cart-popup-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-row-1, .cart-item-row-2, .cart-item-row-3 {
    display: flex;
    justify-content: space-between; /* Keep for row 1 and 2 */
    align-items: center;
}

.cart-item-row-1 h4 {
    font-family: var(--header-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    letter-spacing: 0.5px; /* Removed text-transform: uppercase; */
    line-height: 1.4;
}

.cart-item-row-2 p {
    font-size: 12px;
    color: var(--grey-mid);
    margin: 0;
}

.cart-item-row-3 {
    justify-content: flex-start; /* Align items to the start */
    gap: 12px;
    margin-top: 4px;
}

/* New styling for the price label within row 3 */
.cart-item-row-3 .price-label-in-row {
    font-family: var(--header-font);
    font-size: 14px;
    font-weight: 600; /* Bold as title */
    color: var(--navy); /* Same color as title */
    margin: 0;
    white-space: nowrap; /* Keep price from wrapping */
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-item-qty {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--grey-mid);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-item-price {
    /* This class is no longer used for the price display as it's moved to .price-label-in-row */
    /* Keeping it here for reference in case it's used elsewhere, but it's effectively overridden */
    font-family: var(--header-font);
    font-size: 14px; /* Original size */
    font-weight: 900; /* Original weight */
    color: var(--gold); /* Original color */
}

.btn-buy-now-mini {
    background: var(--gold-light); /* Matching the 'View Cart' button */
    color: var(--navy); /* Text color for contrast */
    border: none;
    padding: 6px 14px;
    font-family: var(--header-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-buy-now-mini:hover { background: var(--gold); }

/* Checkbox styling for cart items */
.cart-item-checkbox {
    display: flex;
    align-items: center;
    padding-left: 4px;
}
.cart-item-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1px solid var(--grey-border);
    border-radius: 0;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
}
.cart-item-checkbox input[type="checkbox"]:checked {
    background: var(--navy);
    border-color: var(--navy);
}
.cart-item-checkbox input[type="checkbox"]:checked::after {
    content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.cart-popup-footer { padding: 24px; border-top: 1px solid var(--grey-border); display: flex; flex-direction: column; gap: 12px; }
.cart-popup-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 700; color: var(--navy); }
.cart-subtotal { color: var(--gold); }
.cart-popup-footer .btn-primary, .cart-popup-footer .btn-outline { width: 100%; text-align: center; margin-top: 0; }

/* Search Popup (shared) */
.search-popup-overlay {
    position: fixed; inset: 0; background: rgba(13,17,62,0.92); z-index: 2100;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.search-popup-overlay.open { opacity: 1; visibility: visible; }

.search-popup {
    position: fixed; inset: 0;
    background: transparent; z-index: 2200; 
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; align-items: center;
    padding: 120px 24px;
}
.search-popup.open { opacity: 1; visibility: visible; }

.search-popup-close { 
    position: absolute; top: 32px; right: 32px; 
    background: none; border: none; font-size: 40px; 
    color: #fff; cursor: pointer; line-height: 1;
    
    transition: all 0.3s ease;
 }

.search-popup-close:hover { transform: scale(1.2); color: var(--gold-light); }

.search-popup-content { width: 100%; max-width: 900px; text-align: center; }
.search-popup-header { margin-bottom: 60px; }
.search-popup-header h3 { color: #fff; font-family: var(--header-font); font-size: 20px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.8; }

.search-form { position: relative; width: 100%; }
.search-form input {
    width: 100%; padding: 24px 0; border: none; border-bottom: 2px solid rgba(255,255,255,0.2);
    font-size: clamp(28px, 5vw, 48px); font-family: var(--header-font); outline: none; 
    background: transparent; color: #fff; text-align: center;
    transition: all 0.4s ease;
}
.search-form input:focus { border-bottom-color: #fff; }
.search-form input::placeholder { color: rgba(255,255,255,0.3); font-weight: 300; }

.search-form button { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 10px; }
.search-form button img { width: 32px; height: 32px; filter: brightness(0) invert(1); transition: opacity 0.3s; }


/* Loading Spinner */
.search-loader {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}
.search-form.loading .search-loader { display: block; }
.search-form.loading button img { opacity: 0; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.search-live-count {
    display: block;
    margin-top: 30px;
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.search-live-count.visible { opacity: 1; }

/* Search Results Preview Grid */
.search-results-preview {
    background: #fff; /* Brighter background when results appear */
    margin-top: 60px;
    padding: 40px;
    width: 100%;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 32px;
    max-height: 50vh;
    overflow-y: auto;
    opacity: 0; transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}
.search-popup.has-results .search-results-preview { opacity: 1; transform: translateY(0); pointer-events: auto; }

.search-preview-item {
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s;
}
.search-preview-item:hover { transform: translateY(-5px); }
.search-preview-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; margin-bottom: 10px; }
.search-preview-item h4 { font-family: var(--header-font); font-size: 13px; color: var(--navy); margin-bottom: 4px; text-transform: uppercase; }
.search-preview-item p { font-family: var(--header-font); font-weight: 700; font-size: 12px; color: var(--gold); }

/* No Results in Search Modal */
.search-no-results {
    display: none; margin-top: 40px; color: #fff;
    font-family: var(--header-font); font-size: 16px; text-transform: uppercase;
}

.filter-drawer-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--off-white);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.filter-drawer-header h3 { font-family: var(--header-font); text-transform: uppercase; letter-spacing: 1px; font-size: 18px; }
.filter-drawer-close { background: none; border: none; cursor: pointer; color: var(--navy); }

.filter-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-section { border-bottom: 1px solid var(--off-white); margin-bottom: 0; }
.filter-section-trigger, .filter-nested-trigger {
    width: 100%;
    padding: 20px 0;
    background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--body-font);
    font-weight: 700; font-size: 14px;
    text-transform: uppercase; color: var(--navy);
    cursor: pointer;
}
.filter-section-trigger .chevron, .filter-nested-trigger .chevron {
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 8px;
}
.filter-section-trigger.active .chevron, .filter-nested-trigger.active .chevron { transform: rotate(-135deg); }

.filter-section-content, .filter-nested-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; gap: 18px;
}
.filter-section-content.open, .filter-nested-content.open {
    max-height: 1000px;
    padding-bottom: 24px;
}

/* Checkbox & Label Styling */
.filter-drawer input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1px solid var(--grey-border);
    border-radius: 0; /* Square for a modern look */
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.filter-drawer input[type="checkbox"]:checked {
    background: var(--navy);
    border-color: var(--navy);
}
.filter-drawer input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-section-content label, .filter-nested-content label, .filter-item label {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--grey-label); cursor: pointer;
    font-family: var(--body-font);
    justify-content: flex-start; 
    padding-right: 5px; /* Space for the count */
    transition: color 0.2s ease;
}
.filter-section-content label:hover, .filter-nested-content label:hover {
    color: var(--navy);
}
/* Move checkbox to the front (right side) */
.filter-drawer label input[type="checkbox"] {
    order: 0;
    margin-left: 0;
}
.filter-count {
    order: 3;
    margin-left: auto;
}

.filter-nested { padding-left: 12px; margin-bottom: 8px; border-left: 1px solid var(--grey-border); }

.filter-count {
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
}

.filter-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--grey-border);
    display: block;
}
.btn-clear-filters { background: #f5f5f5; border: 1px solid var(--grey-border); padding: 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 12px; width: 100%; }
.btn-apply-filters { background: var(--navy); color: #fff; border: none; padding: 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 12px; }

/* Price Slider */
.price-range-container { padding: 10px 0 10px; }
.price-values { display: flex; justify-content: space-between; margin-bottom: 30px; font-weight: 700; color: var(--gold); font-family: var(--header-font); font-size: 14px; letter-spacing: 1px; }

.dual-range-slider {
    position: relative;
    height: 2px;
    width: 100%;
    background: var(--off-white);
    border-radius: 1px;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    pointer-events: none;
    outline: none;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 16px; height: 16px;
    background: var(--navy);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #fff;
    position: relative;
    z-index: 2;
}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
    width: 100%;
    height: 160px;
    background-color: var(--off-white);
    margin-top: 80px; /* Accounts for fixed header */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    border-bottom: 1px solid rgba(118, 119, 125, 0.1);
}

.banner-content {
    text-align: center;
}

.banner-content h1 {
    font-family: var(--header-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.banner-breadcrumbs {
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 540;
    color: var(--grey-mid);
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 1.5px;
}

.banner-breadcrumbs a {
    color: var(--grey-mid);
}

.banner-breadcrumbs a:hover {
    color: var(--navy);
}

.banner-breadcrumbs span {
    margin: 0 10px;
    line-height: 1;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .page-banner { height: 120px; margin-top: 70px; }
    .banner-content h1 { font-size: 32px; margin: 0; line-height: 1; }
    .banner-breadcrumbs { margin-top: 4px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer { padding: 60px 24px 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { flex: 1 0 280px; max-width: 420px; }
.contact-info { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: var(--grey-mid); line-height: 1.6; }
.get-direction {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--navy); font-weight: 700;
    border-bottom: 1px solid var(--gold);
    width: fit-content; padding-bottom: 4px;
}
.get-direction img { width: 8px; height: 8px; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a {
    width: 34px; height: 34px;
    border: 1px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}
.social-links a:hover { background-color: var(--gold); border-color: var(--gold); }
.social-links a:hover img { filter: brightness(0) invert(1); }
.social-links img { width: 16px; height: 16px; transition: filter 0.2s; }

.footer-links { flex: 0 0 160px; }
.footer-links h3, .footer-newsletter h3 {
    font-family: var(--header-font);
    font-size: 18px; font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.footer-links a { display: block; font-size: 13px; color: var(--grey-mid); margin-bottom: 14px; }
.footer-links a:hover { color: var(--navy); }

.footer-newsletter { flex: 1 0 280px; max-width: 360px; }
.footer-newsletter p { font-size: 13px; color: var(--grey-mid); line-height: 1.6; margin-bottom: 20px; }
.newsletter-input { position: relative; display: flex; align-items: center; }
.newsletter-input input {
    width: 100%;
    padding: 16px 120px 16px 18px;
    border: 1px solid var(--grey-mid);
    font-family: inherit; font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-input input:focus { border-color: var(--gold); }
.newsletter-input button {
    position: absolute; top: 6px; bottom: 6px; right: 6px;
    background: var(--navy); color: #fff;
    border: none; cursor: pointer;
    padding: 0 20px; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.newsletter-btn-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; filter: brightness(0) invert(1); }

.footer-bottom {
    border-top: 1px solid rgba(35,39,83,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; font-size: 13px;
}
.payments { height: 28px; object-fit: contain; }

/* Mobile footer dropdowns — toggle hidden by default on desktop */
.dropdown-toggle { display: none; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* Header: show hamburger, hide desktop nav */
    .mobile-nav-toggle { display: block; grid-column: 1; justify-self: start; }
    .desktop-nav { display: none; }
    .btn-bespoke-sm { display: none; }
    .profile-icon.desktop-only { display: none; } /* Hide desktop profile icon on mobile */
    .header-actions .icon-btn:has(img[alt="Profile"]) { /* Target the profile button specifically */
        display: none;
    }
    .mobile-nav { display: flex; }
    .mobile-menu-overlay { display: block; }
    .mobile-menu-socials { display: flex; }

    /* Shop grid: 4-col → 3-col */
    .shop-grid.grid-4-col { grid-template-columns: repeat(3, 1fr); }
    .density-btn[data-grid-cols="4"] { display: none; }

    /* Product page: single column */
    .product-layout-grid { grid-template-columns: 1fr; padding: 0 16px; }
    .product-gallery-side { flex-direction: column-reverse; align-items: flex-start; }
    .thumb-stack { flex-direction: row; width: 100%; justify-content: flex-start; }
    .thumb-btn { width: 80px; }
    .main-view-container { width: 100%; }
    .product-details-side { padding: 0; }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    html, body { 
        overflow-x: hidden; 
        width: 100%; 
        position: relative; 
    }
    .container { 
        padding-left: 16px !important; 
        padding-right: 16px !important; 
        width: 100% !important; 
        max-width: 100vw !important; 
        box-sizing: border-box; 
    }
    .section-padding { padding: 60px 0; }
    h2, .banner-content h1 { font-size: 24px; margin-bottom: 16px; }

    .header-content {
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        height: auto; 
        padding: 16px !important;
        column-gap: 10px; 
        box-sizing: border-box;
    }
    .mobile-nav-toggle { flex: 1; display: flex; justify-content: flex-start; }
    .header-content .logo { width: 154px; height: auto; margin: 0; flex: 0 0 auto; }
    .header-actions { flex: 1; }
    .header-actions { gap: 16px; }
    .header-actions .icon-btn { padding: 0; display: flex; } /* Remove internal padding to align content with container edge */
    .mobile-nav-toggle { padding: 0; } /* Remove internal padding to align content with container edge */
    .cart-count { top: -6px; right: -6px; } /* Offset badge on mobile since button padding is 0 */

    /* Ensure search icon is visible in header on mobile */
    .header-actions .icon-btn:has(img[alt="Search"]) { display: flex; }
    .search-icon-fixed { display: block; }

    /* Remove category tabs row on mobile */
    .filter-tabs-container { display: none; }

    /* Hero */
    .hero { min-height: 500px; }
    .hero h1 { font-size: clamp(40px, 10vw, 80px); margin-bottom: 30px; }
    .hero-btns a { padding: 15px 30px; font-size: 11px; }

    /* Product grids */
    .product-grid, .essentials-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px; /* Increased by 4px for better mobile separation */
        padding: 0 16px;
    }
    .product-grid { gap: 40px 16px; } 
    .shop-grid,
    .shop-grid.grid-3-col,
    .shop-grid.grid-4-col { 
        grid-template-columns: repeat(2, 1fr); 
        column-gap: 16px; /* Increased by 4px */
        row-gap: 70px;
        padding: 40px 16px; /* Added horizontal padding to prevent edge-touching */
    }
    .shop-grid.grid-list-view { display: flex; }
    
    .density-btn[data-grid-cols="3"],
    .density-btn[data-grid-cols="4"] { display: none !important; }
    .grid-density { gap: 12px; }
    .product-card { 
        width: 100%; 
        max-width: 100%; 
        overflow: hidden; 
        box-sizing: border-box; 
    }
    .shop-grid.grid-1-col {
        grid-template-columns: 1fr !important;
        row-gap: 40px !important;
    }
    .product-text-stack { min-width: 0; } /* Prevents titles from breaking card width */
    .product-info .product-title {
        font-size: 12px;
        font-weight: 700; /* Optima Bold */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-info .price {
        font-size: 12px;
        font-weight: 700; /* Optima Bold */
    }
    .regular-price { font-size: 12px !important; }

    /* Essentials */
    .essential-card { width: 100%; max-width: none; height: 280px; }
    .essential-content { bottom: 20px; left: 20px; right: 20px; gap: 8px; }
    .essential-content p { font-size: 18px; }

    /* Utility bar */
    .utility-bar { margin-top: 90px; }
    .utility-bar .breadcrumbs { display: none; }
    .catalog-search { width: 100%; max-width: 100%; }

    /* Controls bar & Sort button */
    .sort-dropdown { min-width: 160px; }
    .controls-right { gap: 8px; }
    .sort-label { font-size: 12px; }
    .remove-filter-btn { display: none; }
    .filter-trigger .filter-text { display: none; }
    .filter-trigger { padding: 8px 12px; gap: 0; color: var(--navy); }

    /* Stats */
    .stats-container { gap: 60px; flex-direction: column; }
    .stat-num { font-size: 42px; }
    .stat-label { font-size: 12px; }

    /* Shop list view */
    .shop-grid.grid-list-view .product-card {
        flex-direction: row !important;
        gap: 16px;
        text-align: left;
        align-items: flex-start;
        padding: 24px 0;
    }
    .shop-grid.grid-list-view .product-img { width: 130px !important; height: 170px !important; flex-shrink: 0; }
    .shop-grid.grid-list-view .product-info { margin-top: 0; }
    .shop-grid.grid-list-view .product-info .name { font-size: 14px; }
    .shop-grid.grid-list-view .product-info .description { font-size: 13px; margin-top: 8px; }

    /* Product detail page */
    .main-view-container { aspect-ratio: 4 / 5; }
    .thumb-btn { aspect-ratio: 4 / 5; width: 70px; }
    .product-layout-grid { 
        display: flex;
        flex-direction: column;
        gap: 32px; /* Fixed 32px space between thumbnails (gallery) and details side */
        margin-bottom: 40px; 
        width: 100%; 
        padding: 0; /* Removing redundant padding as .container handles it */
    }
    .product-gallery-side { width: 100%; }

    /* --- Product Details Page Specific Overrides (Scoped to .product-page) --- */
    .product-details-side { width: 100%; padding: 0; }
    .product-header-stack { 
        margin-bottom: 24px; 
        text-align: left; 
        text-align: left; 
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .product-page .product-title, 
    .product-page h1.product-title, 
    .product-page .product-details-side h1 { /* Target h1 specifically for product page */
        font-size: 24px; margin-bottom: 10px !important; 
        text-align: left;
    } 

    /* Restricted to just the main detail price to prevent catalog bleed */
    .product-page .price-tag { 
        font-size: 24px; 
        text-align: left;
    }

    .selector-label {
        text-align: left !important; /* Ensure selector label is left-aligned on product page */
    }
    .wishlist-btn-large,
    .share-product-btn { width: 40px !important; height: 40px !important; }
    .product-utility-icons { gap: 10px !important; display: flex !important; margin-left: 5px !important; }
    .wishlist-btn-large .wishlist-icon,
    .share-product-btn img { width: 28px; height: 28px; }
    .purchase-row { 
        flex-direction: row; 
        flex-wrap: nowrap; 
        gap: 12px; 
        align-items: center; 
        justify-content: flex-start; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
    }
    .btn-buy-now-large, .add-to-cart-large.ghost { width: auto; min-width: 120px; flex: 0 0 auto; height: 48px; }
    .add-to-cart-large { height: 48px; font-size: 11px; }

    #product-option-col { display: block; } /* Restore option dropdown */
    .variant-qty-row { display: flex; margin-bottom: 0; } /* Restore variant qty row */
    .variant-qty-row .qty-box { width: 140px; max-width: none; }

    .delivery-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .delivery-item { padding: 20px; gap: 12px; }
    .delivery-item-icon { width: 40px; height: 40px; }
    .delivery-item h4 { font-size: 13px; }
    .delivery-item p { font-size: 13px; line-height: 1.6; }
    .product-quick-links { gap: 24px; padding-top: 12px; }
    .quick-link-btn { font-size: 12px; justify-content: flex-start; }
    .accordion-title { font-size: 22px; }

    .product-details-accordion { margin: 60px auto; }
    .additional-info-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .related-products-heading { font-size: 28px; margin-bottom: 50px; }

    /* Collection grid */
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(250px, auto);
        gap: 20px; 
        padding: 0 24px;
    }
    .collection-item-1 {
        grid-column: 1; 
        grid-row: span 2; 
    }
    .collection-item-2 { grid-column: 2; grid-row: 1; } 
    .collection-item-3 { grid-column: 3; grid-row: 1; } 
    .collection-item-view-all {
        grid-column: span 2; 
        grid-row: 2;
        padding: 20px;
    }
    .collection-item-view-all h3 { font-size: 20px; margin-bottom: 20px; }
    .collection-item-view-all .btn-primary { padding: 18px 48px; font-size: 12px; width: auto; }

    /* Lightbox nav for mobile */
    .lightbox-nav { width: 64px; height: 64px; background: rgba(255,255,255,0.05); }
    .lightbox-prev { left: 40px; }
    .lightbox-next { right: 40px; }

    .legacy {
        padding: 70px 24px; 
    }

    /* Footer */
    .main-footer { padding: 60px 0 32px; }  
    .footer-top { gap: 30px; padding: 0; } 
    .footer-brand, .footer-links, .footer-newsletter { flex: 1 0 280px; max-width: 420px; }
    .logo { margin: 0; }
    .footer-bottom { flex-direction: row; text-align: left; gap: 16px; padding-top: 24px; }

    /* Mobile footer dropdowns */
    .dropdown-toggle { display: none; }

    /* --- Shop Catalog Rebuild (Strictly Scoped) --- */
    .shop-page, .shop-page-wrapper { background-color: #fff !important; }
    
    /* Top Spacing: Header Bottom -> SHOP Text = Exactly 16px */
    .shop-page .page-banner { 
        height: 120px !important; 
        margin-top: 70px !important; 
        padding: 0 !important; 
        background-color: var(--off-white) !important;
        border-bottom: 1px solid rgba(118, 119, 125, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .shop-page .banner-content { text-align: center !important; padding: 0 !important; }
    .shop-page .banner-content h1 { font-size: 32px !important; margin: 0 !important; }
    
    /* Spacing: Breadcrumbs Bottom -> Filter Bar Top = Exactly 16px */
    .shop-page .banner-breadcrumbs { margin: 4px 0 0 0 !important; }

    .shop-page .controls-bar {
        margin-top: 40px !important;
        height: 102px !important;
        padding: 0 !important;
        background-color: #fff !important;
        border-color: var(--grey-border) !important;
    }

    /* 2-Column Product Grid Rebuild */
    .shop-page .shop-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 16px !important;
        row-gap: 70px !important;
        padding: 40px 16px !important;
        background-color: #fff !important;
        margin-top: 0 !important;
        list-style: none !important;
    }

    .shop-page .shop-grid.grid-1-col {
        grid-template-columns: 1fr !important;
        row-gap: 32px !important;
    }

    .shop-page .shop-grid.grid-1-col .product-card {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 16px !important;
        border-bottom: 1px solid var(--off-white);
        padding-bottom: 16px !important;
    }

    .shop-page .shop-grid.grid-1-col .product-img {
        width: 130px !important;
        flex-shrink: 0 !important;
    }

    .shop-page .shop-grid.grid-1-col .product-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top: 0 !important;
        padding-top: 4px;
        gap: 16px !important;
    }

    .shop-page .shop-grid.grid-1-col .add-to-cart-btn-icon {
        display: flex !important;
        padding: 0;
    }

    .shop-page .shop-grid.grid-1-col .wishlist-btn {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Product Card Clean-up */
    .shop-page .product-card { padding: 0 !important; background: #fff !important; overflow: hidden !important; }
    .shop-page .product-img { aspect-ratio: 3/4 !important; width: 100% !important; position: relative !important; }

    .shop-page .product-info {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-top: 20px !important;
        width: 100% !important;
    }

    .shop-page .product-title {
        font-size: 12px !important;
        font-weight: 700 !important;
        margin: 0 0 4px 0 !important;
        color: var(--navy) !important;
        text-align: left !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .shop-page .price,
    .shop-page .amount {
        font-size: 12px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: var(--navy) !important;
        text-align: left !important;
    }

    .shop-page .wishlist-btn { padding: 8px !important; margin: -6px 0 0 0 !important; flex-shrink: 0 !important; }
    .shop-page .wishlist-icon { width: 26px !important; height: 26px !important; }

    .shop-page .wishlist-btn { padding: 0 !important; margin: -2px 0 0 8px !important; flex-shrink: 0; }
    .shop-page .wishlist-icon { width: 22px; height: 22px; }

    /* Corrected Page container offsets for non-catalog layouts */
    .product-main { padding-top: 83px !important; margin-top: 0 !important; overflow-x: hidden; max-width: 100vw; width: 100%; }
    .product-main .container { padding: 0; } 
    .pricing-main .container { padding-top: 0 !important; }
    .add-to-cart-large { height: 52px; font-size: 12px; }

    #product-option-col { display: none !important; } /* Removing unstyled dropdown */
    .variant-qty-row { display: block; margin-bottom: 20px; }
    .variant-qty-row .qty-box { width: 100%; max-width: none; }

    .delivery-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .delivery-item { padding: 12px; gap: 8px; }
    .delivery-item-icon { width: 24px; height: 24px; }
    .delivery-item h4 { font-size: 11px; }
    .delivery-item p { font-size: 10px; line-height: 1.4; }
    .product-quick-links { gap: 24px; padding-top: 8px; }
    .quick-link-btn { font-size: 11px; justify-content: center; }
    .accordion-title { font-size: 18px; }

    .product-details-accordion { margin: 40px 0; }
    .additional-info-grid { grid-template-columns: 1fr; gap: 20px; }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .related-products-heading { font-size: 22px; margin-bottom: 32px; }

    .new-arrivals, .essentials { margin-bottom: 60px; }
    .collection-launch { margin-bottom: 0; }


    /* Collection Exclusive Layout Mobile */
    .exclusive-collection-wrapper { height: 600px; flex-direction: column; }
    .exclusive-frame { width: 100%; flex: none; height: 50%; }
    .exclusive-content-overlay h3 { font-size: 28px; width: 80%; }
    .exclusive-btn { width: 220px; height: 52px; font-size: 10px; }

    /* Lightbox nav for mobile */
    .lightbox-nav { width: 48px; height: 48px; background: rgba(255,255,255,0.1); }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .legacy {
        padding: 130px 16px;
        background-attachment: scroll; /* Disables fixed background on mobile for performance */
    }

    /* Footer */
    .main-footer { padding: 60px 0 32px; } 
    .footer-top { gap: 40px; padding: 0; } /* Remove nested container padding to avoid double-padding */
    .footer-brand, .footer-links, .footer-newsletter { flex: 1 0 100%; max-width: 100%; }
    .logo { margin: 0 0 24px 0; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; padding-top: 20px; }

    /* Mobile footer dropdowns */
    .dropdown-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
    .footer-dropdown-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .footer-dropdown-header h3 { margin-bottom: 0; }
    .footer-dropdown-content { display: none; padding-top: 16px; }
    .footer-dropdown-content.open { display: block; }
    .dropdown-toggle.active svg path { d: path("M8 1V15"); }
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    padding: 40px 0;
    align-items: flex-start;
}
.cart-items-list { 
    border-top: none; 
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--grey-border);
    background: #fff;
    align-items: center;
}
.cart-item-img { width: 120px; height: 160px; object-fit: cover; flex-shrink: 0; }
.cart-item-details-main { flex-grow: 1; }
.cart-item-details-main h3 {
    font-family: var(--header-font);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 8px;
}
.cart-item-details-main p { font-size: 15px; color: var(--grey-mid); margin-bottom: 12px; }
.cart-item-price-label {
    font-family: var(--header-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 12px;
}
.product-utility-icons { display: flex !important; flex-direction: row !important; gap: 10px; align-items: center; flex-shrink: 0; margin-left: 10px; }
.cart-item-actions-full .qty-box { width: 120px; height: 48px; }
.cart-item-remove-btn {
    background: none; border: none; cursor: pointer;
    color: var(--grey-mid); font-size: 14px; text-decoration: underline;
    transition: color 0.2s;
}
.cart-item-remove-btn:hover { color: var(--navy); }

.cart-summary {
    background: var(--off-white);
    padding: 32px;
    border: 1px solid rgba(198,198,205,0.3);
}
.cart-summary h3 {
    font-family: var(--header-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    text-align: center;
}
.summary-row {
    display: flex; justify-content: space-between;
    font-size: 16px; color: var(--navy);
    margin-bottom: 12px;
}
.summary-row.total {
    font-family: var(--header-font);
    font-size: 22px;
    font-weight: 900;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-border);
}
.cart-summary .btn-primary { width: 100%; text-align: center; margin-top: 24px; }

@media (max-width: 1024px) {
    .cart-page-layout { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
    .cart-item { gap: 16px; padding: 24px 0; }
    .cart-item-img { width: 100px; height: 130px; }
    .cart-item-details-main h3 { font-size: 20px; }
    .cart-item-price-total { font-size: 18px; }
    .cart-item-actions-full { gap: 16px; }
    .cart-summary { padding: 24px; }
}

@media (max-width: 768px) {
    .cart-popup { width: 100%; right: -100%; }
    .cart-popup.open { right: 0; }
    .cart-popup-header { padding: 16px; }
    .cart-popup-header h3 { font-size: 16px; }
    .cart-popup-content { padding: 16px; }
    .cart-popup-footer { padding: 16px; }

    .cart-page-layout { padding: 16px; }
    .cart-item { flex-wrap: wrap; text-align: center; justify-content: center; }
    .cart-item-img { width: 100%; max-width: 150px; height: auto; }
    .cart-item-details-main { text-align: center; }
    .cart-item-actions-full { justify-content: center; }
}

/* ============================================================
   FLOATING SUPPORT BUTTON
   ============================================================ */
.floating-support-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366; /* WhatsApp green */
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.floating-support-btn img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* Make icon white */
}

@media (max-width: 768px) {
    .floating-support-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .floating-support-btn img { width: 24px; height: 24px; }
}

/* ============================================================
   SHARED FORM COMPONENTS
   ============================================================ */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label {
    display: block;
    font-size: 14px;
    color: var(--grey-label);
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--grey-border);
    font-family: var(--body-font);
    font-size: 15px;
    color: var(--navy);
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row > div { flex: 1; }

@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding: 60px 0;
    align-items: flex-start;
}
.dashboard-sidebar {
    background: var(--off-white);
    padding: 24px;
    border: 1px solid rgba(198,198,205,0.3);
}
.dashboard-sidebar h3 {
    display: none;
}
.dashboard-nav-links a {
    display: block;
    padding: 12px 0;
    color: var(--grey-label);
    font-size: 24px;
    border-bottom: 1px solid rgba(35,39,83,0.05);
    transition: color 0.2s;
}
.dashboard-nav-links a:last-child { border-bottom: none; }
.dashboard-nav-links a:hover,
.dashboard-nav-links a.active {
    color: var(--navy);
    font-weight: 600;
}
.dashboard-content {
    padding: 24px;
    border: 1px solid var(--grey-border);
    background: #fff;
}
.dashboard-content h2 { font-size: 28px; margin-bottom: 32px; text-align: left; }
.dashboard-section { display: none; }
.dashboard-section.active { display: block; }
.btn-save-changes {
    background: var(--navy);
    color: #fff;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
.btn-save-changes:hover { background: var(--navy-deep); }
.address-card, .payment-card {
    border: 1px solid var(--grey-border);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--off-white);
}
 
/* Designated frame for Paystack Embedded Iframe */
#gateway-element-container {
    display: none;
    min-height: 100px;
    border: 1px dashed var(--grey-border);
    align-items: center;
    justify-content: center;
    background: #fafafa;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.address-card p, .payment-card p { margin-bottom: 8px; font-size: 15px; color: var(--grey-label); }
.address-card .actions, .payment-card .actions { margin-top: 15px; }
.address-card .actions button, .payment-card .actions button {
    background: none; border: none; color: var(--gold); text-decoration: underline;
    cursor: pointer; margin-right: 15px; font-size: 14px;
}

@media (max-width: 1024px) {
    .dashboard-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
    .dashboard-nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 30px;
        border-bottom: 1px solid var(--grey-border);
        padding-bottom: 16px;
    }
    .dashboard-nav-links a {
        flex: 1 1 auto;
        min-width: 140px;
        text-align: center;
        border: 1px solid var(--grey-border);
        padding: 12px 10px;
        font-size: 14px;
        border-bottom: 1px solid var(--grey-border);
    }
    .dashboard-nav-links a.active {
        background-color: var(--gold-light);
        border-color: var(--gold-light);
    }
}

@media (max-width: 768px) {
    .dashboard-nav-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .dashboard-nav-links a {
        min-width: unset;
        font-size: 11px;
        padding: 10px 5px;
    }
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-main { padding-top: 0; padding-bottom: 80px; }
.checkout-progress-line-container { display: flex; align-items: center; justify-content: center; margin: 40px 0 60px; }
.progress-step-simple { font-family: var(--header-font); font-size: 14px; font-weight: 700; color: var(--grey-mid); text-transform: uppercase; letter-spacing: 1px; }
.progress-step-simple.active { color: var(--navy); }
.progress-connector { width: 120px; height: 1px; background: var(--grey-border); margin: 0 32px; position: relative; }
.progress-connector::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; background: var(--navy); width: 0; transition: width 0.5s ease; }
.progress-line-active .progress-connector::after { width: 100%; }

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: flex-start; }
.checkout-section { display: none; padding: 0 0 40px; margin-bottom: 40px; }
.checkout-section.active { display: block; }

.section-header-simple { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; border-bottom: 1px solid var(--off-white); padding-bottom: 16px; }
.form-title { font-family: var(--header-font); font-size: 28px; color: var(--navy); text-transform: uppercase; margin: 0; }
.btn-text-link { background: none; border: none; color: var(--gold); text-decoration: underline; cursor: pointer; font-family: var(--body-font); font-size: 14px; font-weight: 600; }

.form-group-simple { margin-bottom: 24px; }
.form-group-simple label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--grey-label); margin-bottom: 8px; letter-spacing: 0.5px; }
.form-group-simple label .required { color: var(--gold); margin-left: 2px; }
.form-group-simple input, .form-group-simple select { width: 100%; padding: 14px 16px; border: 1px solid var(--grey-border); background: #fff; font-family: var(--body-font); font-size: 16px; outline: none; transition: border-color 0.3s; }
.form-group-simple input:focus { border-color: var(--navy); }

.checkbox-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: var(--navy); }
.checkbox-label input { width: 18px; height: 18px; }

/* Boxed Account Option */
.account-info-boxed-opt {
    background: #fff;
    border: 1px solid var(--grey-border);
    padding: 24px;
    margin-bottom: 32px;
}

.account-summary-box {
    display: none;
    padding: 32px;
    background: var(--off-white);
    margin-bottom: 32px;
    line-height: 1.8;
}
.account-summary-box p { font-size: 15px; color: var(--navy); }

/* Sticky Sidebar Summary */
.checkout-sidebar-sticky { position: sticky; top: 120px; }
.order-summary-simple { background: var(--off-white); padding: 40px; }
.summary-title { font-family: var(--header-font); font-size: 20px; text-transform: uppercase; margin-bottom: 32px; border-bottom: 1px solid rgba(35,39,83,0.1); padding-bottom: 16px; }
.summary-item-simple { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.summary-item-simple img { width: 48px; height: 60px; object-fit: cover; border: 1px solid rgba(0,0,0,0.05); }
.item-name { font-size: 16px; font-weight: 400; color: var(--navy); margin-bottom: 4px; }
.item-meta { font-size: 12px; color: var(--grey-mid); }
.item-price { font-family: var(--header-font); font-weight: 700; color: var(--navy); font-size: 16px; margin-bottom: 4px; }

.summary-totals-simple { margin-top: 32px; border-top: 1px solid rgba(35,39,83,0.1); padding-top: 24px; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--grey-mid); }

.subtotal-preview {
    font-size: 20px;
    color: var(--navy);
    font-weight: 400;
}

.shipping-preview {
    font-size: 14px;
    color: var(--grey-mid);
}

.grand-total-final {
    font-family: var(--header-font);
    font-size: 24px;
    color: var(--navy);
    margin-top: 20px;
}
.grand-total-final span:first-child { font-weight: 400; }
.grand-total-final span:last-child { font-weight: 700; }

.sidebar-shipping-summary { 
    margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(35,39,83,0.1); 
    animation: fadeIn 0.4s ease;
}
.sidebar-shipping-summary h4 { font-family: var(--header-font); font-size: 12px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; letter-spacing: 1px; }
.sidebar-shipping-summary p { font-size: 14px; color: var(--navy); line-height: 1.5; margin-bottom: 4px; }
#summary-shipping-name { font-weight: 700; }
#summary-shipping-address { font-size: 13px; color: var(--grey-mid); }

/* Payment styles */
.payment-selector-simple { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.payment-radio { display: flex; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--grey-border); cursor: pointer; transition: 0.3s; }
.payment-radio:hover { border-color: var(--navy); }
.payment-radio input:checked + .radio-label { font-weight: 700; color: var(--navy); }
.payment-detail-box { padding: 24px; background: var(--off-white); border-left: 4px solid var(--gold); font-size: 14px; line-height: 1.6; }

/* Review styles */
.review-grid-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.review-col h4 { font-family: var(--header-font); font-size: 14px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.review-col p { font-size: 14px; color: var(--grey-label); line-height: 1.5; margin: 0; }
.review-item-row { transition: background 0.2s ease; }
.review-item-row:hover { background: #eee !important; }

@media (max-width: 1024px) {
    .checkout-layout { 
        display: flex;
        flex-direction: column;
        padding: 32px 24px; 
    }
    .checkout-sidebar-sticky { 
        order: -1; /* Moves the order preview to the top */
        position: static; 
        margin-top: 0; 
        margin-bottom: 40px; 
    }
    .checkout-forms {
        order: 1;
    }
}

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page {
    padding: 80px 0 120px;
    background: #fff;
}
.auth-container { 
    max-width: 480px; 
    margin: 0 auto; 
    text-align: center; 
}
.auth-view h2 { 
    font-family: var(--header-font); 
    font-size: 36px; 
    font-weight: 700; 
    color: var(--navy); 
    margin-bottom: 40px; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}
.auth-view { display: none; }
.auth-view.active { display: block; }

.password-input-wrapper { position: relative; width: 100%; }
.password-input-wrapper input { padding-right: 45px !important; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
    display: flex; align-items: center; opacity: 0.5; transition: opacity 0.2s;
}
.password-toggle:hover { opacity: 0.8; }
.password-toggle img { width: 20px; height: 20px; }

.btn-auth-submit { width: 100%; background: var(--navy); color: #fff; padding: 15px 24px; border: none; cursor: pointer; font-size: 16px; text-transform: uppercase; margin-top: 10px; }
.social-auth-divider { display: flex; align-items: center; text-align: center; margin: 30px 0; color: var(--grey-mid); font-size: 14px; }
.social-auth-divider::before, .social-auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--grey-border); margin: 0 10px; }
.btn-google-auth { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 24px; border: 1px solid var(--grey-border); background: #fff; font-weight: 600; cursor: pointer; }
.btn-google-auth img { width: 32px; height: 32px; margin-right: 12px; object-fit: contain; flex-shrink: 0; }
.forgot-password { display: block; text-align: right; font-size: 14px; color: var(--grey-mid); margin-top: 10px; }
.auth-switch-text { margin-top: 30px; font-size: 15px; color: var(--grey-mid); }
.auth-switch-text a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-main { padding-top: 20px; padding-bottom: 80px; }
.pricing-intro { /* This section is now removed from HTML, but keeping styles for reference */
    text-align: center; /* Center align as requested */
    margin-bottom: 60px; /* Revert to 60px as in original inline style */
    max-width: 800px;
    margin-left: auto; /* Center the block */
    margin-right: auto; /* Center the block */
}
.pricing-intro h1 {
    font-family: var(--header-font);
    font-size: clamp(36px, 5vw, 64px);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
}
.pricing-intro p {
    font-family: var(--body-font); /* Ensure body font is used */
    font-size: 18px;
    color: var(--grey-mid);
    line-height: 1.6;
}
.pricing-tabs-container { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 64px; max-width: 1120px; margin-left: auto; margin-right: auto; }
.pricing-tabs { display: flex; justify-content: center; gap: 48px; border-bottom: 1px solid rgba(118, 119, 125, 0.2); width: 100%; }
.pricing-tab-btn {
    background: none; border: none; font-family: var(--header-font); font-size: 16px; font-weight: 400; color: var(--grey-label);
    cursor: pointer; padding: 0px 0px 16px; transition: all 0.3s ease; position: relative;
}
.pricing-tab-btn.active { color: var(--gold); }
.pricing-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--gold); }
.pricing-tab-content { display: none; width: 100%; }
.pricing-tab-content.active { display: flex; flex-direction: column; animation: fadeIn 0.5s ease; }

.bespoke-card {
    display: flex; flex-direction: row; align-items: center; padding: 32px; gap: 32px;
    background: var(--off-white);
    border: 1px solid rgba(118, 119, 125, 0.1);
    width: 100%;
    margin-bottom: 40px;
}
.bespoke-card:last-child { margin-bottom: 0; }

.card-info-block { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-info-block h3 { font-family: var(--header-font); font-weight: 450; font-size: 20px; color: #1B1C1C; }
.card-desc { font-family: var(--body-font); font-size: 16px; line-height: 24px; color: var(--grey-mid); }
.card-price-block { width: 220px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.price-label { font-family: var(--body-font); font-size: 16px; text-transform: uppercase; color: var(--grey-label); }
.price-value { font-family: var(--body-font); font-size: 20px; color: var(--gold); }
.btn-bespoke-action {
    width: auto; min-width: 260px; height: 56px; background: var(--navy); color: #FFFFFF; border: none;
    font-family: var(--header-font); font-weight: 600;
    padding: 0 50px; 
    text-align: center;
    font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-bespoke-action:hover { background: var(--gold); color: var(--navy); }


.package-group { display: flex; flex-direction: column; gap: 24px; width: 100%; margin-bottom: 64px; } /* Adjusted gap for package groups */
.package-group-title { 
    font-family: var(--header-font); 
    font-size: 24px;
    font-weight: 700; 
    text-align: center; 
    color: var(--navy); 
    text-transform: uppercase; 
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.package-row {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 32px;
    background: #FBF9F8; width: 100%; border: 1px solid rgba(118, 119, 125, 0.1); /* No margin-bottom here, gap on parent handles it */
}
.package-row:last-child { margin-bottom: 0; }

.package-row.dark { background: var(--navy); box-shadow: 0px 0px 0px 4px rgba(254, 214, 91, 0.1); } /* Kept for potential future use, though removed from HTML */
.package-info { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.package-id { font-family: var(--body-font); font-size: 16px; letter-spacing: 4.8px; text-transform: uppercase; color: #735C00; }
.dark .package-id { color: var(--gold); }
.package-title { font-family: var(--body-font); font-weight: 540; font-size: 20px; color: #1B1C1C; }
.dark .package-title { color: #FFFFFF; }
.package-subtitle { font-family: var(--body-font); font-size: 16px; color: var(--grey-mid); }
.dark .package-subtitle { color: #E4E2E2; }
.package-v-border { padding: 0 32px; border-left: 1px solid rgba(118, 119, 125, 0.1); display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.dark .package-v-border { border-left-color: rgba(255, 255, 255, 0.1); }
.package-btn {
    min-width: 180px; height: 52px; background: var(--navy); color: #FFFFFF; 
    font-family: var(--header-font); font-weight: 600;
    padding: 0 32px;
    font-size: 14px; text-transform: uppercase; letter-spacing: 1.6px; 
    display: flex; align-items: center; justify-content: center; 
    border: none; cursor: pointer;
    transition: background-color 0.3s ease;
}
.package-btn:hover { background: var(--gold); color: var(--navy); }
.dark .package-btn { background: var(--gold-light); color: var(--navy); }

.groomsmen-row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 32px; background: rgba(228, 226, 226, 0.1); width: 100%; gap: 24px; /* No margin-bottom here, gap on parent handles it */ }
.groomsmen-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.groomsmen-price { font-family: var(--body-font); font-size: 20px; color: #1B1C1C; min-width: 150px; text-align: right; }

@media (max-width: 1024px) {
    .bespoke-card { flex-direction: column; align-items: flex-start; gap: 24px; }
    .card-price-block { align-items: flex-start; width: 100%; }
    .card-btn-block { width: 100%; }
    
    .package-row, .groomsmen-row { padding: 24px; gap: 20px; }
    .package-v-border { padding: 0 0 0 20px; min-width: 160px; }
    .groomsmen-price { min-width: 120px; font-size: 18px; }
}

@media (max-width: 768px) {
    .pricing-tabs { gap: 24px; }
    .pricing-tab-btn { font-size: 14px; padding-bottom: 12px; }

    .package-row, .groomsmen-row { flex-direction: column; align-items: flex-start; text-align: left; }
    .package-v-border { 
        border-left: none; border-top: 1px solid rgba(118, 119, 125, 0.1); 
        padding: 16px 0 0 0; width: 100%; 
    }
    .dark .package-v-border { border-top-color: rgba(255, 255, 255, 0.1); }
    .groomsmen-price { text-align: left; width: 100%; padding-top: 12px; border-top: 1px solid rgba(118, 119, 125, 0.1); }
    .btn-bespoke-action, .package-btn { width: 100%; min-width: unset; }
}

/* ============================================================
   CONSULTATION MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 62, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 48px;
    position: relative;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
}

/* Size Guide Specific */
.size-guide-container { max-width: 700px; }
.size-guide-content { overflow-x: auto; margin-top: 20px; }
.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--body-font);
}
.size-chart-table th, .size-chart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--grey-border);
}
.size-chart-table th {
    background-color: var(--off-white);
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}
.size-chart-table td {
    font-size: 14px;
    color: var(--grey-label);
}
.size-chart-table tr:last-child td { border-bottom: none; }

.modal-overlay.open .modal-container {
    animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------- Loading Splash Screen ---------- */
.loading-splash-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(35, 39, 83, 0.8);
    backdrop-filter: blur(20px);
    z-index: 9999; /* Ensure it's on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body:not(.loading-splash) .loading-splash-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Allow interaction with content below */
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: heartbeatOpacity 2.5s ease-in-out infinite;
}

.loader-crown {
    /* Original: 85.44px by 37.4px. Reduced by 60% means 40% of original size. */
    width: 41.0112px; /* 85.44 * 0.4 * 1.2 */
    height: 17.952px; /* 37.4 * 0.4 * 1.2 */
    filter: brightness(0) saturate(100%) invert(71%) sepia(46%) saturate(497%) hue-rotate(353deg) brightness(89%) contrast(92%);
    /* Original: 8px. Reduced by 60% means 40% of original size. Increased by 20% from that. */
    margin-bottom: 3.84px; /* 8 * 0.4 * 1.2 */
}

.loader-o {
    /* Original: 123.26px by 123.02px. Reduced by 60% means 40% of original size. */
    width: 59.1648px; /* 123.26 * 0.4 * 1.2 */
    height: 59.0496px; /* 123.02 * 0.4 * 1.2 */
    filter: brightness(0) saturate(100%) invert(71%) sepia(46%) saturate(497%) hue-rotate(353deg) brightness(89%) contrast(92%);
    transform-origin: center center; /* Ensure rotation is around its center */
    animation: rotateO 2.5s ease-in-out infinite; /* Reduced total cycle to 2.5s to speed up loop frequency */
}

.loader-est {
    font-family: var(--header-font);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 24px;
}

@keyframes heartbeatOpacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes rotateO {
    0% {
        transform: rotate(0deg);
    }
    16% { /* End of initial 0.4s delay (0.4s / 2.5s = 16%) */
        transform: rotate(0deg);
    }
    32% { /* First 180deg rotation over 0.4s (16% duration) */
        transform: rotate(-180deg); /* Anti-clockwise */
    }
    36% { /* End of 0.1s delay (4% duration) */
        transform: rotate(-180deg);
    }
    52% { /* Second 180deg rotation over 0.4s (16% duration), completing 360deg */
        transform: rotate(-360deg); /* Anti-clockwise */
    }
    64% { /* End of 0.3s delay before next loop (Reduced by 50% from 0.6s) */
        transform: rotate(-360deg); 
    }
    100% { /* Hold briefly until the end of the 2.5s cycle */
        transform: rotate(-360deg); /* Anti-clockwise */
    }
}

/* ---------- Product Page Loader ---------- */
.product-loading-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s;
}

body:not(.loading) .product-loading-overlay {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--off-white);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-family: var(--header-font);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.modal-close:hover { color: var(--gold); }
.modal-header { margin-bottom: 32px; text-align: center; }
.modal-header h2 { margin-bottom: 12px; font-size: 32px; text-transform: none; letter-spacing: normal; font-family: var(--header-font); }
.modal-header p { font-family: var(--body-font); color: var(--grey-mid); line-height: 1.6; }
.modal-submit { width: 100%; border: none; cursor: pointer; margin-top: 10px; }

@media (max-width: 768px) {
    .modal-container { padding: 32px 20px; }
    .modal-header h2 { font-size: 24px; }
}

/* ---------- Status Notifications ---------- */
.status-toast {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    min-width: 320px;
    max-width: 450px;
    border-left: 5px solid var(--navy);
    pointer-events: none;
}

.status-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.status-toast.success { border-left-color: transparent; }
.status-toast.error { border-left-color: transparent; }

.status-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.status-toast-title {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
}

.status-toast-msg {
    font-size: 13px;
    color: var(--grey-mid);
    line-height: 1.5;
}

/* ---------- Floating Cart Bar ---------- */
.floating-cart-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 16px 0;
}
.floating-cart-bar.visible { transform: translateY(0); }

.floating-cart-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.floating-cart-info { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.floating-cart-img { width: 48px; height: 64px; object-fit: cover; background: var(--off-white); }
.floating-cart-name { font-family: var(--header-font); font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.floating-cart-price { font-family: var(--header-font); font-size: 14px; font-weight: 700; color: var(--gold); }

.floating-cart-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    justify-content: flex-end;
}
.floating-size-selector select {
    height: 48px; padding: 0 16px;
    border: 1px solid var(--grey-border);
    font-family: var(--body-font);
    font-size: 14px; color: var(--navy);
    background: #fff; outline: none; cursor: pointer;
}
.floating-qty-box { height: 48px; width: 120px; }
.floating-add-btn { height: 48px; padding: 0 32px; margin: 0; flex: none; font-size: 11px; }
.floating-actions { display: flex; gap: 8px; }
.floating-wishlist-btn, .floating-share-btn {
    width: 48px !important;
    height: 48px !important;
}

@media (max-width: 1024px) {
    .floating-cart-info { display: none; }
}
@media (max-width: 768px) {
    .floating-cart-bar { padding: 12px 0; }
    .floating-cart-controls { 
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        flex-grow: 1;
    }
    .floating-size-selector, .floating-qty-box { flex: 1 1 calc(50% - 6px); }
    .floating-size-selector select { width: 100%; padding: 0 8px; font-size: 12px; }
    .floating-qty-box { width: auto !important; padding: 0 8px; }
    .floating-qty-box .quantity-display { font-size: 14px; }
}
.floating-buy-btn, .floating-add-btn { flex: 1 !important; height: 48px !important; padding: 0 12px !important; font-size: 10px !important; min-width: unset !important; margin: 0 !important; }