/* ============================================================
   JP ATELIER — UNIVERSAL COMPONENTS
   Mega Menu · Header · Footer · Shared UI
   ============================================================ */

/* ============================================================
   MEGA MENU NAVIGATION
   ============================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background-color 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out),
                height 0.3s var(--ease-out);
}

.site-header.is-scrolled {
    background-color: rgba(8, 8, 8, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 169, 107, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .nav-container { padding: 0 var(--space-md); }
}

/* ---- Logo ---- */
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 1001;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-monogram {
    font-family: var(--font-logo);
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    transition: color 0.2s;
}

.logo-wordmark {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.5625rem;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    margin-top: -2px;
    transition: color 0.2s;
}

.nav-logo:hover .logo-monogram,
.nav-logo:hover .logo-wordmark { color: var(--color-gold-light); }

/* ---- Primary Nav Links ---- */
.nav-links {
    display: none;
    align-items: center;
    gap: 0;
    list-style: none;
    flex: 1;
    justify-content: center;
}

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

/* Nav item with dropdown trigger */
.nav-item {
    position: relative; /* CRITICAL: anchors simple-dropdown below this item */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 0 18px;
    height: var(--nav-height);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
    font-family: var(--font-body);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 18px; right: 18px;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item.is-active > .nav-link {
    color: var(--color-gold);
}

.nav-link:hover::after,
.nav-item.is-active > .nav-link::after {
    transform: scaleX(1);
}

/* Dropdown arrow */
.nav-arrow {
    width: 10px; height: 10px;
    color: currentColor;
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
}

.nav-item.is-open > .nav-link .nav-arrow { transform: rotate(180deg); }

/* ============================================================
   MEGA DROPDOWN PANEL
   ============================================================ */
.mega-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(6, 6, 6, 0.97);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(200, 169, 107, 0.12);
    z-index: 999;
    overflow: hidden;
    /* Premium animation: slide down + fade */
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    transition:
        opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.35s;
    pointer-events: none;
}

.nav-item.is-open > .mega-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
}

.mega-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px var(--space-lg);
    display: grid;
    gap: 48px;
}

/* Collections mega: 4-column */
.mega-collections { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
/* Story mega: 3-column */
.mega-story       { grid-template-columns: 1fr 1fr 1.5fr; }
/* Shop mega: 3-column */
.mega-shop        { grid-template-columns: 1fr 1fr 1.5fr; }

@media (max-width: 1200px) {
    .mega-collections { grid-template-columns: 1fr 1fr 1fr; }
    .mega-collections .mega-featured { display: none; }
}

.mega-col-title {
    font-family: var(--font-body);
    font-size: 0.5625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(200,169,107,0.5);
    margin-bottom: 20px;
    font-weight: 500;
}

.mega-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-links li a,
.mega-links li button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: rgba(246, 241, 232, 0.65);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.2s, padding-left 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(200,169,107,0.04);
}

.mega-links li a:hover,
.mega-links li button:hover {
    color: var(--color-gold);
    padding-left: 8px;
}

.mega-links li a span,
.mega-links li button span {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-left: auto;
    white-space: nowrap;
}

/* Mega featured product card */
.mega-featured {
    border-left: 1px solid rgba(200,169,107,0.08);
    padding-left: 48px;
}

.mega-featured-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.mega-featured-img-wrap {
    position: relative;
    overflow: hidden;
    background: #111;
    aspect-ratio: 4/3;
}

.mega-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s var(--ease-out), filter 0.3s;
}

.mega-featured-card:hover .mega-featured-img-wrap img {
    transform: scale(1.06);
    filter: brightness(1);
}

.mega-featured-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--color-gold);
    color: var(--color-black);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 8px;
    font-family: var(--font-body);
}

.mega-featured-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-ivory);
    font-weight: 400;
    margin-bottom: 2px;
}

.mega-featured-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    line-height: 1.5;
    margin-bottom: 4px;
}

.mega-featured-price {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    color: var(--color-gold);
}

.mega-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-family: var(--font-body);
    margin-top: 4px;
    transition: gap 0.2s;
}

.mega-featured-card:hover .mega-featured-cta { gap: 10px; }

/* Mega story visual */
.mega-story-visual {
    border-left: 1px solid rgba(200,169,107,0.08);
    padding-left: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-story-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.8);
    transition: filter 0.3s;
}

.mega-story-visual:hover .mega-story-img { filter: brightness(0.8) saturate(1); }

.mega-story-caption {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--color-ivory);
    line-height: 1.5;
}

.mega-story-sub {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 300;
}

/* ---- Simple dropdown (for smaller menus) ---- */
.simple-dropdown {
    position: absolute;           /* anchors to .nav-item (position:relative) */
    top: calc(var(--nav-height) - 4px);
    left: 0;
    min-width: 210px;
    background: rgba(6, 6, 6, 0.97);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(200,169,107,0.12);
    border-top: 2px solid var(--color-gold);
    padding: 10px 0;
    /* Premium animation */
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
        opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.28s;
    pointer-events: none;
    z-index: 999;
}

.nav-item.is-open > .simple-dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
}

/* Stagger-animate each link as dropdown opens */
.simple-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(246,241,232,0.8);
    text-decoration: none;
    transition: color 0.2s, background 0.2s, padding-left 0.25s;
    letter-spacing: 0.05em;
    border-left: 2px solid transparent;
}

.simple-dropdown a::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.simple-dropdown a:hover {
    color: var(--color-gold);
    background: rgba(200,169,107,0.05);
    padding-left: 24px;
    border-left-color: var(--color-gold);
}

.simple-dropdown a:hover::before { opacity: 1; }

/* ---- Nav Actions ---- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1001;
    flex-shrink: 0;
}

.nav-icon-btn {
    color: var(--color-text-muted);
    transition: color 0.2s;
    padding: 8px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover,
.nav-icon-btn:focus-visible { color: var(--color-gold); }

.cart-count {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--color-gold);
    color: var(--color-black);
    font-size: 0.5rem;
    font-weight: 700;
    width: 14px; height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

/* ---- Nav CTA button ---- */
.nav-cta {
    display: none;
    padding: 9px 20px;
    background: var(--color-gold);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

@media (min-width: 1200px) { .nav-cta { display: flex; align-items: center; } }
.nav-cta:hover { background: var(--color-gold-light); transform: translateY(-1px); }

/* ---- Hamburger ---- */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    border: none;
    background: none;
}

@media (min-width: 1024px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--color-gold);
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile Nav Overlay ---- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #060606;
    z-index: 998;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.mobile-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-nav-inner {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--nav-height) + 16px) 24px 16px;
}

.mobile-nav-section {
    border-bottom: 1px solid rgba(200,169,107,0.08);
}

/* Accordion toggle button */
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-cream);
}

.mobile-nav-toggle svg {
    color: rgba(200,169,107,0.4);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-nav-label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(246,241,232,0.9);
}

/* Collapsible links container */
.mobile-nav-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-nav-collapsible.is-expanded {
    max-height: 500px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
}

.mobile-nav-links a {
    display: block;
    padding: 10px 0 10px 16px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(246,241,232,0.8);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    line-height: 1.4;
}

.mobile-nav-links a:active,
.mobile-nav-links a:hover {
    color: var(--color-gold);
    padding-left: 20px;
}

/* Direct links (no accordion) */
.mobile-nav-section--direct {
    display: flex;
    flex-direction: column;
    border-bottom: none;
    padding-top: 8px;
}

.mobile-nav-direct {
    display: block;
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(246,241,232,0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(200,169,107,0.08);
    transition: color 0.2s;
}

.mobile-nav-direct:last-child { border-bottom: none; }
.mobile-nav-direct:active,
.mobile-nav-direct:hover { color: var(--color-gold); }

/* CTA at bottom */
.mobile-nav-cta {
    flex-shrink: 0;
    padding: 16px 24px calc(env(safe-area-inset-bottom, 16px) + 16px);
    background: #060606;
    border-top: 1px solid rgba(200,169,107,0.08);
}

.mobile-nav-cta a {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--color-gold);
    color: var(--color-black);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
}

/* ---- Overlay backdrop ---- */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   UNIVERSAL FOOTER
   ============================================================ */

.universal-footer {
    background: #060606;
    border-top: 1px solid rgba(200,169,107,0.08);
}

/* Pre-footer strip */
.footer-pre {
    border-bottom: 1px solid rgba(200,169,107,0.06);
    padding: 40px 0;
}

.footer-pre-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(200,169,107,0.04);
}

@media (max-width: 900px) {
    .footer-pre-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .footer-pre-inner { grid-template-columns: 1fr; }
}

.footer-pre-item {
    background: #060606;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.3s;
}

.footer-pre-item:hover { background: #0a0a0a; }

.footer-pre-icon {
    width: 40px; height: 40px;
    border: 1px solid rgba(200,169,107,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    flex-shrink: 0;
    transition: transform 0.3s, border-color 0.3s;
}

.footer-pre-item:hover .footer-pre-icon {
    transform: scale(1.1);
    border-color: var(--color-gold);
}

.footer-pre-title {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-ivory);
    font-weight: 400;
    margin-bottom: 2px;
}

.footer-pre-sub {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 300;
}

/* Footer main grid */
.footer-main {
    padding: 64px 0 48px;
}

/* DESKTOP: brand | links × 3 | newsletter — always 5-col on wide screens */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
    gap: 48px;
}

/* 1300px → collapse to brand+newsletter top, links below */
@media (max-width: 1300px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
        gap: 36px;
    }
}

/* 1100px → 2-row: top=brand(left)+newsletter(right), bottom=3 link cols */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 32px;
        row-gap: 40px;
    }
    .footer-brand { grid-column: 1 / 2; grid-row: 1; }
    .footer-newsletter-col { grid-column: 4 / 5; grid-row: 1; }
    .footer-links-col:nth-child(3) { grid-column: 2 / 3; grid-row: 1; }
    .footer-links-col:nth-child(4) { grid-column: 3 / 4; grid-row: 1; }
    .footer-links-col:nth-child(5) { grid-column: 1 / -1; grid-row: 2; }
}

/* 900px → brand full top, then 3 cols, then newsletter */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 28px;
    }
    .footer-brand { grid-column: 1 / -1; grid-row: 1; max-width: 100%; }
    .footer-links-col:nth-child(3) { grid-column: 1; grid-row: 2; }
    .footer-links-col:nth-child(4) { grid-column: 2; grid-row: 2; }
    .footer-links-col:nth-child(5) { grid-column: 3; grid-row: 2; }
    .footer-newsletter-col { grid-column: 1 / -1; grid-row: 3; }
    .footer-nl-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
    .footer-nl-input { flex: 1; min-width: 200px; }
    .footer-nl-btn { width: auto; }
}

/* 600px → 2 cols for links */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-links-col:nth-child(3) { grid-column: 1; grid-row: auto; }
    .footer-links-col:nth-child(4) { grid-column: 2; grid-row: auto; }
    .footer-links-col:nth-child(5) { grid-column: 1; grid-row: auto; }
    .footer-newsletter-col { grid-column: 1 / -1; }
    .footer-nl-form { flex-direction: column; }
    .footer-nl-btn { width: 100%; }
}

/* 400px → single column */
@media (max-width: 400px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand,
    .footer-links-col:nth-child(n),
    .footer-newsletter-col { grid-column: 1; grid-row: auto; }
}

/* Brand column */
.footer-brand { max-width: 320px; }

.footer-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo .logo-monogram { font-size: 1.25rem; }
.footer-logo .logo-wordmark { font-size: 0.5rem; }

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(246,241,232,0.8);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social-link {
    width: 44px; height: 44px;
    min-width: 44px; min-height: 44px;
    border: 1px solid rgba(200,169,107,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.footer-certifications {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-cert-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(200,169,107,0.12);
    padding: 5px 10px;
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200,169,107,0.6);
    font-family: var(--font-body);
}

/* Footer link columns */
.footer-col-title {
    font-family: var(--font-body);
    font-size: 0.5625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(200,169,107,0.5);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-col-links li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 0;
    font-size: 0.875rem;
    color: rgba(246,241,232,0.75);
    font-family: var(--font-body);
    font-weight: 300;
    text-decoration: none;
    border-bottom: 1px solid rgba(200,169,107,0.04);
    transition: color 0.2s, padding-left 0.2s;
    letter-spacing: 0.02em;
}

.footer-col-links li a:hover {
    color: var(--color-gold);
    padding-left: 8px;
}

/* Footer newsletter column */
.footer-newsletter-col {}

.footer-nl-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.footer-nl-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,169,107,0.15);
    color: var(--color-ivory);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color 0.3s;
}

.footer-nl-input::placeholder { color: rgba(246,241,232,0.25); }
.footer-nl-input:focus { border-color: rgba(200,169,107,0.4); }

.footer-nl-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.footer-nl-btn:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

.footer-nl-note {
    font-size: 0.625rem;
    color: rgba(246,241,232,0.25);
    font-family: var(--font-body);
    line-height: 1.5;
}

/* Footer bottom bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(200,169,107,0.06);
    padding: 24px 0;
}

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

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copyright {
    font-size: 0.6875rem;
    color: rgba(246,241,232,0.25);
    font-family: var(--font-body);
}

.footer-made-in {
    font-size: 0.6875rem;
    color: rgba(246,241,232,0.2);
    font-family: var(--font-body);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.6875rem;
    color: rgba(246,241,232,0.25);
    font-family: var(--font-body);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ============================================================
   PAGE HERO (reusable for inner pages)
   ============================================================ */
.page-hero {
    padding: calc(var(--nav-height) + 80px) 0 100px;
    background: #080808;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(200,169,107,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-overline {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
    display: block;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-ivory);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.page-hero-sub {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

/* Gold decorative line */
.deco-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto;
    max-width: 200px;
}

.deco-line::before, .deco-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,169,107,0.3));
}

.deco-line::after {
    background: linear-gradient(90deg, rgba(200,169,107,0.3), transparent);
}

.deco-diamond {
    width: 6px; height: 6px;
    background: var(--color-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.page-breadcrumb {
    padding: 16px 0;
    background: #080808;
    border-bottom: 1px solid rgba(200,169,107,0.05);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
}

.breadcrumb-inner a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-inner a:hover { color: var(--color-gold); }
.breadcrumb-inner span { color: rgba(200,169,107,0.3); }
.breadcrumb-current { color: var(--color-gold); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    background: rgba(10,10,10,0.9);
    border: 1px solid rgba(200,169,107,0.2);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 800;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
    pointer-events: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover { border-color: var(--color-gold); }

/* ============================================================
   MOBILE RESPONSIVE AUDIT — All pages
   ============================================================ */

/* PDP sticky panel: collapse to static image strip on mobile */
@media (max-width: 900px) {
    .pdp-sticky-panel {
        position: relative;
        top: unset;
        height: 56vw;
        min-height: 260px;
        max-height: 400px;
    }
    .pdp-main-img-wrap { width: 52%; max-width: 240px; }
    .pdp-scroll-panel { padding: 32px 20px 60px; }
    .pdp-title { font-size: clamp(2rem,8vw,3rem); }
    .size-option-btn { flex: 1 1 calc(50% - 10px); min-width: 110px; }
}

/* Story / notes / ingredients two-col → one-col */
@media (max-width: 900px) {
    .story-grid, .notes-grid, .gcms-wrap, .pyramid-wrap, .learn-two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .story-section,.notes-section,.ingredient-tour,
    .pdp-reviews,.pdp-faq,.pdp-related,.scent-timeline,
    .learn-section,.pyramid-section,.gcms-section,.glossary-section {
        padding: 56px 0;
    }
    .cinematic-break { height: 50vw; min-height: 240px; }
    .cinematic-break-text { left: 20px; right: 20px; max-width: 100%; }
    .cinematic-break-text h2 { font-size: clamp(1.25rem,5vw,2rem); }
}

/* Ingredient grid */
@media (max-width: 700px) { .ingredient-grid { grid-template-columns:1fr 1fr; } .ingredient-card { padding:24px 18px; } }
@media (max-width: 480px) { .ingredient-grid { grid-template-columns:1fr; } }

/* Reviews */
@media (max-width: 800px) {
    .reviews-grid { grid-template-columns:1fr; }
    .reviews-summary { grid-template-columns:1fr; gap:20px; }
    .reviews-score-big { padding:20px 24px; display:flex; align-items:center; gap:20px; text-align:left; }
    .score-num { font-size:3rem; }
}

/* Related */
@media (max-width: 600px) { .related-grid { grid-template-columns:1fr; } }

/* Trust badges */
@media (max-width: 500px) { .trust-badges-row { grid-template-columns:repeat(2,1fr); } }

/* Timeline */
@media (max-width: 700px) { .timeline-track { padding:0 8px; } .t-dot { width:10px; height:10px; } }

/* FAQ */
@media (max-width: 600px) { .faq-question { font-size:.9rem; padding:16px 0; } }

/* Pull quote */
@media (max-width: 600px) { .pull-quote { font-size:1.125rem; padding:14px 18px; } }

/* Learn hero */
@media (max-width: 768px) {
    .learn-hero { height:100vh; min-height:560px; }
    .learn-hero-title { font-size:clamp(1.75rem,9vw,3rem); }
    .learn-hero-body { font-size:.9375rem; }
    .learn-toc-link { padding:6px 10px; font-size:.5rem; }
}

/* Fragrance families */
@media (max-width: 900px) { .families-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 480px) { .families-grid { grid-template-columns:1fr; } }

/* Concentration track */
@media (max-width: 700px) { .concentration-track { flex-direction:column; gap:2px; } .conc-bar { display:none; } }

/* India grid */
@media (max-width: 800px) { .india-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 480px) { .india-grid { grid-template-columns:1fr; } }

/* Apply steps */
@media (max-width: 600px) { .apply-step { grid-template-columns:1fr; gap:8px; padding:24px 20px; } }

/* Myths grid */
@media (max-width: 700px) { .myths-grid { grid-template-columns:1fr; } }

/* Collection steps */
@media (max-width: 900px) { .collection-steps { grid-template-columns:1fr 1fr; } }
@media (max-width: 500px) { .collection-steps { grid-template-columns:1fr; } }

/* Glossary grid */
@media (max-width: 800px) { .glossary-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 480px) { .glossary-grid { grid-template-columns:1fr; } }

/* Learn CTA */
@media (max-width: 500px) { .learn-cta-btns { flex-direction:column; align-items:center; } .btn-gold,.btn-outline { width:100%; text-align:center; } }

/* Section headings */
@media (max-width: 600px) { .section-h2 { font-size:clamp(1.375rem,6vw,2rem); } }

/* Footer grid responsive */
@media (max-width: 768px) { .footer-grid { grid-template-columns:1fr 1fr; gap:40px 24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns:1fr; } }

/* Newsletter form */
@media (max-width: 500px) {
    .form-group { flex-direction:column; }
    .form-group input { border-right:1px solid rgba(200,169,107,.15); border-bottom:none; }
    .form-group .btn-gold { width:100%; justify-content:center; }
}

/* Prevent overflow */
body { overflow-x:hidden; max-width:100vw; }
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width:100%; height:auto; }

/* PDP breadcrumb / origin tags small screens */
@media (max-width: 400px) {
    .pdp-breadcrumb { flex-wrap:wrap; font-size:.5rem; }
    .origin-tag { font-size:.45rem; padding:3px 6px; }
}

/* Touch targets — 44px minimum */
@media (max-width: 1024px) {
    .nav-icon-btn, .mobile-nav-links a,
    .pdp-add-btn, .btn-gold, .btn-outline, .size-option-btn,
    .pdp-add-btn { min-height:44px; }
}

/* Shop / collections grids */
@media (max-width: 900px) { .shop-grid,.products-grid { grid-template-columns:repeat(2,1fr) !important; } }
@media (max-width: 500px) { .shop-grid,.products-grid { grid-template-columns:1fr !important; } }

/* ---- CINEMATIC BREAK MOBILE FIXES ---- */
@media (max-width: 768px) {
    .cinematic-break { min-height: 280px !important; height: 40vh !important; }
    .cinematic-break-text h2 { font-size: clamp(1.25rem, 5vw, 2rem) !important; }
    .cinematic-break-text p { font-size: 0.8125rem !important; }
    /* Inline cinematic breaks */
    [style*="height:50vh"], [style*="height:45vh"], [style*="height:40vh"],
    [style*="height:55vh"] {
        min-height: 260px !important;
        height: 35vh !important;
    }
    [style*="left:clamp(24px,8vw,120px)"] {
        left: 20px !important;
        right: 20px !important;
        max-width: calc(100vw - 40px) !important;
    }
}

/* Review ticker mobile */
@media (max-width: 600px) {
    .review-tile { width: 280px !important; min-width: 280px; }
    .review-text { font-size: 0.8125rem !important; }
}
@media (max-width: 400px) {
    .review-tile { width: 240px !important; min-width: 240px; }
}

/* Channel cards mobile (contact) */
@media (max-width: 768px) {
    .channels-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .channels-grid { grid-template-columns: 1fr !important; }
}

/* Guarantee strip mobile */
@media (max-width: 600px) {
    .guarantees-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .guarantee-item { padding: 16px 12px !important; }
    .guarantee-item-name { font-size: 0.625rem !important; }
    .guarantee-item-desc { font-size: 0.6875rem !important; }
}

/* Gift cards mobile */
@media (max-width: 600px) {
    .gifts-grid { grid-template-columns: 1fr !important; }
}

/* Hero text mobile */
@media (max-width: 600px) {
    .page-hero-title { font-size: clamp(1.5rem, 7vw, 2.5rem) !important; }
    .page-hero-sub { font-size: 0.8125rem !important; max-width: 100% !important; }
    .section-heading { font-size: clamp(1.25rem, 5vw, 2rem) !important; }
    .section-sub { font-size: 0.8125rem !important; }
}

/* Inline images mobile - prevent overflow */
@media (max-width: 600px) {
    [style*="max-width:700px"], [style*="max-width:800px"],
    [style*="max-width:900px"], [style*="max-width:760px"] {
        max-width: 100% !important;
        padding: 0 12px;
    }
}

/* Horizontal scrolling containers */
.review-ticker-track, .concentration-track {
    -webkit-overflow-scrolling: touch;
}

/* Prevent table/vs-table overflow */
@media (max-width: 768px) {
    .vs-table { flex-direction: column !important; gap: 16px !important; }
    .vs-col { width: 100% !important; }
}

/* ---- MOBILE SECTION SPACING ---- */
@media (max-width: 768px) {
    section, .section { padding-top: 48px !important; padding-bottom: 48px !important; }
    .cinematic-break { margin: 32px 0 !important; }
    .story-content, .contact-grid { gap: 40px !important; }
    .gift-card { padding: 28px 20px !important; }
}
@media (max-width: 480px) {
    section, .section { padding-top: 36px !important; padding-bottom: 36px !important; }
}

/* ---- MICRO TEXT MOBILE FIXES ---- */
@media (max-width: 768px) {
    .product-category, .product-badge, .note-pill, .size-option,
    .origin-tag, .badge, .tier-label, .duration-label {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
    .size-option, .size-btn {
        padding: 12px 16px !important;
        min-height: 44px;
        font-size: 0.75rem !important;
    }
}

/* ---- MOBILE BOTTOM NAV BAR ---- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: rgba(6,6,6,0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(200,169,107,0.1);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1024px) {
    .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: center; }
    body { padding-bottom: 64px; }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(246,241,232,0.7);
    font-family: var(--font-body);
    font-size: 0.5625rem;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    transition: color 0.2s;
}

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

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.bottom-nav-item.active svg {
    stroke-width: 2;
}
