
/* ════════════════════════════════════════════════════════════
   TOKENS
   ════════════════════════════════════════════════════════════ */
:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
    --brand:        #fff;
    --black:        #000;
    --accent:       #fff;
    --accent-light: #f5f0e8;
    --muted:        #6b6b66;
    --border:       #e8e6e0;
    --nav-h-top:    48px;   /* top utility bar */
    --nav-h-main:   68px;   /* main nav */
    --mega-radius:  12px;
    --shadow-mega:  0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
    --transition:   .22s cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

/* ════════════════════════════════════════════════════════════
   TOP UTILITY BAR  (desktop only)
   ════════════════════════════════════════════════════════════ */
.top-bar {
    background: var(--brand);
    color: rgba(255,255,255,.7);
    height: var(--nav-h-top);
    display: flex;
    align-items: center;
    font-size: 12.5px;
    letter-spacing: .02em;
}
.top-bar a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.top-bar a:hover { color: #fff; }
.top-bar .accent-text { color: var(--accent); font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   DESKTOP MAIN NAVBAR
   ════════════════════════════════════════════════════════════ */
.main-nav {
    background: #000;
    height: var(--nav-h-main);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav .inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo */
.nav-logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: -.3px;
    white-space: nowrap;
    margin-right: 40px;
    flex-shrink: 0;
}
.nav-logo em { font-style: italic; color: var(--accent); }

/* ── Nav items ───────────────────────────────────────────── */
.nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    flex: 1;
    height: 100%;
    gap: 0;
    margin-bottom: 0;
}

.nav-item {
    position: static;   /* mega menu needs full-width, positioned on .main-nav */
    display: flex;
    align-items: stretch;
}

/* Each top-level link */
.nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--brand);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    cursor: pointer;
    position: relative;
}
.nav-item > .nav-link .chevron {
    font-size: 10px;
    transition: transform var(--transition);
    opacity: .5;
    margin-top: 1px;
}
.nav-item:hover > .nav-link {
    color: var(--brand);
    border-bottom-color: var(--accent);
}
.nav-item:hover > .nav-link .chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Highlight "Sale" */
.nav-item.sale > .nav-link { color: #c0392b; }
.nav-item.sale:hover > .nav-link { color: #c0392b; border-bottom-color: #c0392b; }

/* ── Mega menu panel ─────────────────────────────────────── */
/*
  Pure CSS: opacity + pointer-events + translateY.
  The panel is a child of .nav-item but positioned relative
  to .main-nav via left:0/right:0 + top:100%.
  We use :hover on .nav-item to show it — no JS needed.
*/
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-mega);
    border-radius: 0 0 var(--mega-radius) var(--mega-radius);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 999;
}
/* Small dropdown (for items with fewer links) */
.mega-panel.sm {
    left: auto;
    right: auto;
    width: 220px;
    border-radius: var(--mega-radius);
    border-top: 1px solid var(--border);
}
.nav-item:hover > .mega-panel {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Mega inner layout */
.mega-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 32px 40px;
    display: grid;
    gap: 32px;
}
/* Column counts via modifier classes */
.mega-inner.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-inner.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-inner.cols-5 { grid-template-columns: 2fr repeat(4, 1fr); }
.mega-inner.cols-2 { grid-template-columns: 1fr 1fr; }

/* Column heading */
.mega-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Mega links */
.mega-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
}
.mega-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 14px;
    color: #3a3a38;
    border-radius: 7px;
    transition: background var(--transition), color var(--transition);
}
.mega-links a:hover {
    background: var(--accent-light);
    color: var(--black);
}
.mega-links a .link-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent);
    flex-shrink: 0;
}
.mega-links a:hover .link-icon {
    background: var(--accent);
    color: #fff;
}
.mega-links a.featured {
    font-weight: 600;
    color: var(--accent);
}

/* Featured image card inside mega */
.mega-feature {
    background: var(--accent-light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    position: relative;
    padding: 20px;
}
.mega-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
}
.mega-feature .feature-body { position: relative; z-index: 1; }
.mega-feature .feature-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.mega-feature .feature-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand);
    margin-bottom: 12px;
}
.mega-feature .feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: #fff;
    padding: 7px 16px;
    border-radius: 99px;
    transition: background var(--transition), color var(--transition);
}
.mega-feature:hover .feature-cta {
    background: var(--accent);
    color: #fff;
}

/* Simple dropdown panel */
.simple-panel {
    position: absolute;
    top: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 999;
}
.nav-item:hover > .simple-panel {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.simple-panel a {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    color: #3a3a38;
    border-radius: 7px;
    transition: background var(--transition), color var(--transition);
}
.simple-panel a:hover { background: var(--accent-light); color: var(--accent); }
.simple-panel .divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ── Right icons ─────────────────────────────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    color: var(--brand);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    position: relative;
    background: none;
    border: none;
}
.nav-icon:hover { background: var(--accent-light); color: var(--accent); }
.cart-dot {
    position: absolute;
    top: 5px; right: 5px;
    width: 16px; height: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Desktop search inline */
.nav-search {
    position: relative;
    margin-left: 8px;
}
.nav-search input {
    height: 36px;
    width: 368px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    padding: 0 36px 0 14px;
    font-size: 13.5px;
    color: var(--black);
    background: #fafaf8;
    outline: none;
    transition: border-color var(--transition), width var(--transition), background var(--transition);
}
.nav-search input:focus {
    border-color: var(--accent);
    background: #fff;
    width: 400px;
}
.nav-search .search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--muted);
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   MOBILE NAVBAR  (< lg)
   ════════════════════════════════════════════════════════════ */
.mobile-nav {
    height: 56px;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.mobile-logo {
    flex: 1;
    text-align: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: -.3px;
}
.mobile-logo em { font-style: italic; color: var(--accent); }
.mob-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: var(--brand);
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}
/* Mobile search collapse */
#searchBar {
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    z-index: 999;
}
.search-bar-inner {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}
.search-bar-inner .search-form{
    width: 100%;
}
.search-bar-inner input {
    flex: 1;
    height: 42px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    padding: 0 18px;
    font-size: 15px;
    width: 100%;
    outline: none;
    background: #fafaf8;
    transition: border-color var(--transition);
}
.search-bar-inner button {
    height: 35px;
    padding: 5px 5px 5px 5px;
    border: none;
    border-radius: 99px;
    color: #282525;
    position: absolute;
    font-weight: 500;
    font-size: 20px;
    right: 7px;
    top: 1px;
    background: #fafaf8;
}

/* ════════════════════════════════════════════════════════════
   OFFCANVAS MOBILE MENU
   ════════════════════════════════════════════════════════════ */
.offcanvas.offcanvas-start { width: 300px !important; }
.oc-header {
    padding: 8px 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.oc-logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
}
.oc-logo em { font-style: italic; color: var(--accent); }

.oc-nav { overflow-y: auto; flex: 1; }

/* Simple links */
.oc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.oc-link:hover, .oc-link.active {
    color: var(--accent);
    background: var(--accent-light);
    border-left-color: var(--accent);
}
.oc-link i { font-size: 16px; opacity: .5; }
.oc-link.sale-link { color: #c0392b; }

/* Accordion inside offcanvas */
.oc-accordion .accordion-item { border: none; background: transparent; }
.oc-accordion .accordion-button {
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    background: transparent;
    box-shadow: none;
    border-left: 3px solid transparent;
    gap: 10px;
}
.oc-accordion .accordion-button:not(.collapsed) {
    color: var(--black);
    background: var(--accent-light);
    border-left-color: var(--accent);
}
.oc-accordion .accordion-button::after { margin-left: auto; }
.oc-accordion .accordion-button i { font-size: 16px; opacity: .5; }
.oc-accordion .accordion-body {
    padding: 4px 0 8px;
    background: #fafaf8;
}
.menu-col-2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.oc-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px 9px 34px;
    font-size: 14px;
    color: #4a4a47;
    transition: color var(--transition), background var(--transition);
    border-left: 3px solid transparent;
}
.oc-sub-link:hover {
    color: var(--accent);
    background: var(--accent-light);
}
.oc-sub-link.red { color: #c0392b; font-weight: 500; }

/* Section label */
.oc-section-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 14px 20px 5px;
}

/* Footer */
.oc-footer {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-oc-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 99px;
    border: 1.5px solid var(--brand);
    background: transparent;
    color: var(--brand);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-oc-outline:hover { background: var(--brand); color: #fff; }
.btn-oc-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 99px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}
.btn-oc-fill:hover { background: #a07c40; color: #fff; }

/* ════════════════════════════════════════════════════════════
   DEMO HERO
   ════════════════════════════════════════════════════════════ */
.demo-hero {
    background: linear-gradient(135deg, #1a1a18 0%, #2d2d2a 60%, #3a3020 100%);
    color: #fff;
    padding: 100px 32px;
    text-align: center;
}
.demo-hero .eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.demo-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 20px;
}
.demo-hero p {
    color: rgba(255,255,255,.65);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 36px;
}
.demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 500;
    transition: background var(--transition);
}
.demo-cta:hover { background: #a07c40; color: #fff; }