/* ============================================================
   NAJI COLLECTIONS — Shared Design System
   "Beauty that never wilts."
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

/* ---- Tokens ---- */
:root {
  /* Warm neutrals — never pure black/white */
  --alabaster:   #F6F1EA;  /* page canvas */
  --cream:       #EFE7DA;  /* secondary panels */
  --ivory:       #FBF8F3;  /* hero negative space */
  --aubergine:   #3B2A35;  /* primary text / footer */
  --aubergine-90: #4a3743;
  --blush:       #D8A9A0;  /* signature accent — sparing */
  --petal:       #E7C6BE;  /* soft tint */
  --olive:       #4C4938;  /* secondary text (darkened for legibility) */
  --gold:        #C8A96A;  /* hairlines + monogram only */
  --gold-soft:   rgba(200, 169, 106, 0.4);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  /* Spacing — 8px base */
  --s1: 8px;  --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px; --s6: 64px;  --s7: 96px;  --s8: 128px; --s9: 160px;

  --maxw: 1400px;
  --gutter: clamp(24px, 5vw, 80px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   ALTERNATE COLOUR THEMES
   Apply by adding data-theme="sage" or data-theme="mauve"
   to the <html> tag. (No attribute = the original warm palette.)
   ============================================================ */
:root[data-theme="sage"] {
  --alabaster:   #EFEEE6;  /* canvas — soft sage off-white */
  --cream:       #E3E4D8;  /* panels — pale sage */
  --ivory:       #F8F8F2;  /* nav / hero */
  --aubergine:   #36413B;  /* primary text / footer — deep eucalyptus */
  --aubergine-90:#45524B;
  --blush:       #BD7E66;  /* accent — terracotta clay */
  --petal:       #D8C3B4;
  --olive:       #4B5142;  /* secondary text — muted olive */
  --gold:        #9C8B5E;  /* hairlines / accent — antique brass */
  --gold-soft:   rgba(156, 139, 94, 0.4);
}
:root[data-theme="mauve"] {
  --alabaster:   #F2EEEE;  /* canvas — soft mauve greige */
  --cream:       #E7E0E2;  /* panels — mauve grey */
  --ivory:       #FAF7F8;  /* nav / hero */
  --aubergine:   #3A2F39;  /* primary text / footer — deep plum */
  --aubergine-90:#4A3C48;
  --blush:       #C78793;  /* accent — dusty rose */
  --petal:       #E1C7CE;
  --olive:       #4E4750;  /* secondary text — plum grey */
  --gold:        #B98E84;  /* hairlines / accent — rose gold */
  --gold-soft:   rgba(185, 142, 132, 0.4);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--alabaster);
  color: var(--aubergine);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Typography ---- */
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; letter-spacing: -0.01em; }

.hero-type { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.015em; }
.h1 { font-size: clamp(40px, 5vw, 56px); }
.h2 { font-size: clamp(30px, 3.6vw, 40px); }
.h3 { font-size: clamp(23px, 2.4vw, 28px); }

.lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.5; color: var(--olive); font-weight: 400; }
.body-l { font-size: 19px; line-height: 1.75; }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--olive);
}
.label-gold { color: var(--gold); }

.italic { font-style: italic; }
.muted { color: var(--olive); }
.text-blush { color: var(--blush); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 160px); }
.section-sm { padding-block: clamp(56px, 8vw, 112px); }
.grid { display: grid; gap: var(--s5); }
.center { text-align: center; }

.divider { width: 100%; height: 1px; background: var(--gold-soft); border: 0; }
.rule-gold { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0; }

/* ---- Monogram / wax seal ---- */
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  aspect-ratio: 5/6;
}
.monogram.sm { width: 34px; font-size: 15px; }
.monogram.md { width: 58px; font-size: 24px; }
.monogram.lg { width: 92px; font-size: 40px; }
.monogram.seal { border-width: 1px; box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px var(--gold-soft); }

/* ---- Buttons ---- */
.btn {
  --pad-y: 15px; --pad-x: 34px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.2em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .45s var(--ease);
  position: relative;
}
.btn-primary { background: var(--aubergine); color: var(--ivory); }
.btn-primary:hover { background: var(--aubergine-90); transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(59,42,53,.7); }
.btn-ghost { background: transparent; color: var(--aubergine); border-color: var(--gold-soft); }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }

/* text link with gold underline reveal */
.link-gold { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--aubergine); }
.link-gold::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.link-gold:hover::after { transform: scaleX(1); }
.link-gold .arrow { transition: transform .5s var(--ease); }
.link-gold:hover .arrow { transform: translateX(5px); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: var(--aubergine); color: var(--cream);
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; padding: 10px var(--gutter);
}
.announce .dot { color: var(--gold); margin: 0 12px; }
@media (max-width: 600px) { .announce { font-size: 10.5px; letter-spacing: .1em; } .announce .dot { margin: 0 7px; } }

/* ============================================================
   NAVIGATION  (solid, sticky)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
  padding: 22px var(--gutter);
  background: var(--ivory);
  border-bottom: 1px solid var(--gold-soft);
  transition: padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.condensed {
  padding: 14px var(--gutter);
  box-shadow: 0 6px 24px -18px rgba(59,42,53,.5);
}
.nav-links { display: flex; gap: clamp(22px, 2.2vw, 40px); align-items: center; order: 2; flex: 1; justify-content: center; }
.nav-links a { font-size: 13.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--aubergine); position: relative; padding-block: 4px; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-links .nav-brand { margin-inline: clamp(8px, 1.2vw, 22px); }
.nav-brand .wordmark { font-family: var(--serif); font-size: 25px; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; }

/* ---- Wordmark logo (refined serif name + spaced subtitle with gold rules) ---- */
.wordmark-logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--aubergine); }
.wm-name { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; }
.wm-sub { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 500; font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase; margin-top: 9px; color: var(--gold); }
.wm-sub::before, .wm-sub::after { content: ""; width: 16px; height: 1px; background: var(--gold-soft); }

.nav .wordmark-logo { transition: all .4s var(--ease); }
.nav .wm-name { font-size: 27px; }
.nav.condensed .wm-name { font-size: 23px; }
.nav.condensed .wm-sub { margin-top: 6px; }
.drawer-top .wm-name { font-size: 25px; }

.footer .wordmark-logo { color: var(--cream); align-items: flex-start; }
.footer .wm-name { font-size: 34px; }
.footer .wm-sub { color: var(--gold); }
.footer .wm-sub::before, .footer .wm-sub::after { background: rgba(200,169,106,.5); }

.wordmark-lg .wm-name { font-size: clamp(40px, 5vw, 64px); }
.wordmark-lg .wm-sub { font-size: 11px; margin-top: 14px; }

@media (max-width: 1080px) { .nav .wm-name { font-size: 24px; } }
.nav-utils { display: flex; gap: 22px; align-items: center; order: 3; }
.nav-utils .ico { color: var(--aubergine); display: inline-flex; transition: opacity .3s; }
.nav-utils .ico:hover { opacity: 0.55; }
.cart-dot { position: relative; }
.cart-dot::after { content: ""; position: absolute; top: -3px; right: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--blush); }
.nav-burger { display: none; background: none; border: 0; padding: 6px; color: var(--aubergine); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: var(--ivory); transform: translateX(100%); transition: transform .55s var(--ease); display: flex; flex-direction: column; padding: 28px var(--gutter); }
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-links { display: flex; flex-direction: column; gap: 6px; margin-top: 56px; }
.drawer-links a { font-family: var(--serif); font-size: 34px; color: var(--aubergine); padding-block: 10px; border-bottom: 1px solid var(--gold-soft); }
.drawer-utils { margin-top: auto; display: flex; gap: 28px; padding-top: 28px; }
.drawer-utils a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

/* ============================================================
   IMAGE PLACEHOLDERS  (toned blocks + monospace labels)
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(59,42,53,0.035) 0px, rgba(59,42,53,0.035) 1px,
      transparent 1px, transparent 11px);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
}
.ph.tone-petal  { background-color: var(--petal); }
.ph.tone-blush  { background-color: var(--blush); }
.ph.tone-ivory  { background-color: var(--ivory); }
.ph.tone-cream  { background-color: var(--cream); }
.ph.tone-auber  { background-color: var(--aubergine); color: var(--cream); }
.ph .ph-label {
  font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 11px; letter-spacing: 0.04em; text-transform: lowercase;
  padding: 5px 11px; border: 1px solid currentColor; border-radius: 2px;
  opacity: 0.62; max-width: 80%; text-align: center; line-height: 1.4;
}

/* ---- Lit / unlit reveal pair ---- */
/* images filling frames */
.frame > img, .reveal-pair > img, .gallery-main > img, .ph > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.ph > img { position: absolute; inset: 0; }
.frame { overflow: hidden; }
.img-frame { position: relative; overflow: hidden; }

.reveal-pair { position: relative; overflow: hidden; }
.reveal-pair .state { position: absolute; inset: 0; transition: opacity 1.1s var(--ease); }
.reveal-pair .state.unlit { opacity: 1; }
.reveal-pair .state.lit { opacity: 0; }
.reveal-pair .sizer { position: relative; visibility: hidden; }
.reveal-pair:hover .state.unlit,
.reveal-pair.is-lit .state.unlit { opacity: 0; }
.reveal-pair:hover .state.lit,
.reveal-pair.is-lit .state.lit { opacity: 1; }

/* candlelight glow for lit state */
.lit-glow { position: relative; }
.lit-glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 55% 45% at 50% 42%,
    rgba(255, 224, 168, 0.55) 0%,
    rgba(216, 169, 160, 0.18) 38%,
    transparent 72%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.reveal-pair:hover .lit-glow::after,
.reveal-pair.is-lit .lit-glow::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-pair.is-lit .lit-glow::after,
  .reveal-pair:hover .lit-glow::after { animation: flicker 3.4s ease-in-out infinite; }
}
@keyframes flicker {
  0%,100% { opacity: 1; }
  42% { opacity: 0.86; }
  58% { opacity: 0.96; }
  73% { opacity: 0.8; }
}

/* static lit glow (product gallery main image) */
.lit-glow.is-lit-static::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .lit-glow.is-lit-static::after { animation: flicker 3.4s ease-in-out infinite; }
}

/* tiny tag that flips on lit state */
.state-tag { position: absolute; top: 16px; left: 16px; z-index: 3; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); background: rgba(59,42,53,.55); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; pointer-events: none; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card { display: flex; flex-direction: column; gap: 18px; }
.product-card .frame { aspect-ratio: 4/5; border-radius: 6px; }
.product-card .pc-name { font-family: var(--serif); font-size: 25px; line-height: 1.1; }
.product-card .pc-desc { color: var(--olive); font-size: 15px; line-height: 1.6; }
.product-card .pc-price { font-size: 14px; letter-spacing: 0.04em; color: var(--aubergine); margin-top: 2px; }
.product-card .pc-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--aubergine); color: var(--cream); }
.footer a { color: var(--cream); opacity: 0.8; transition: opacity .3s; }
.footer a:hover { opacity: 1; }
.footer .label { color: rgba(239,231,218,0.55); }
.footer-hairline { height: 1px; background: rgba(200,169,106,0.35); border: 0; }
.footer .monogram { border-color: var(--gold); color: var(--gold); }

/* ---- Inputs ---- */
.field { background: transparent; border: 0; border-bottom: 1px solid var(--gold-soft); padding: 12px 2px; font-family: var(--sans); font-size: 15px; color: var(--aubergine); width: 100%; transition: border-color .4s; }
.field::placeholder { color: var(--olive); opacity: .6; }
.field:focus { outline: none; border-color: var(--gold); }
.footer .field { color: var(--cream); border-bottom-color: rgba(200,169,106,0.4); }
.footer .field::placeholder { color: rgba(239,231,218,0.5); }

/* ============================================================
   SHOP COMPONENTS  (The Naat–style)
   ============================================================ */
/* section header */
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.sec-head p { color: var(--olive); max-width: 52ch; margin: 16px auto 0; }
.sec-head.left { text-align: left; }
.sec-head.left p { margin-inline: 0; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-grid-2 { grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 32px); max-width: 820px; margin-inline: auto; }
.cat-grid-3 { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); max-width: 1080px; margin-inline: auto; }
.cat-grid-4 { grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.cat { display: block; text-align: center; }
.cat .cat-img { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; position: relative; }
.cat .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.05); }
.cat .cat-name { margin-top: 14px; font-family: var(--serif); font-size: 19px; }
.cat .cat-count { font-size: 12px; color: var(--olive); letter-spacing: .04em; }

/* product card (shoppable) */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.card { display: flex; flex-direction: column; }
.card .card-img { aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; background: var(--cream); }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card .badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; background: var(--ivory); color: var(--olive); padding: 5px 10px; border-radius: 999px; }
.card .badge.sale { background: var(--blush); color: var(--aubergine); }
.card .badge.out { background: rgba(59,42,53,.7); color: var(--cream); }
.card .cat-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 16px 0 6px; }
.card .card-name { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.card .card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.card .price { font-size: 16px; color: var(--aubergine); }
.card .price s { color: var(--olive); opacity: .7; margin-right: 7px; font-size: 14px; }
.card .add {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--aubergine); color: var(--ivory);
  border: 1px solid var(--aubergine); border-radius: 999px; padding: 9px 16px;
  transition: all .4s var(--ease); white-space: nowrap;
}
.card .add:hover { background: var(--aubergine-90); transform: translateY(-2px); }
.card .add.done { background: var(--olive); border-color: var(--olive); }

/* 4-step how to order */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.step .step-num { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.step h3 { font-size: 20px; margin: 14px 0 9px; }
.step p { color: var(--olive); font-size: 15px; line-height: 1.65; }
.step { position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -20px; width: 14px; height: 1px; background: var(--gold-soft); }

/* founder story */
.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.founder-grid .founder-img { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; }
.founder-grid .founder-img img { width: 100%; height: 100%; object-fit: cover; }
.founder-copy h2 { margin: 14px 0 22px; max-width: 18ch; }
.founder-copy p { color: var(--olive); max-width: 52ch; margin-bottom: 16px; }
.founder-sign { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--aubergine); margin-top: 8px; }

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gold-soft); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); color: var(--aubergine); cursor: pointer; }
.faq-q .ico-pm { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform .4s var(--ease); }
.faq-q .ico-pm::before, .faq-q .ico-pm::after { content: ""; position: absolute; background: var(--gold); transition: opacity .3s; }
.faq-q .ico-pm::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq-q .ico-pm::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq-item.open .ico-pm::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { color: var(--olive); padding: 0 0 22px; margin: 0; max-width: 64ch; font-size: 15px; }

/* config (product page) */
.cfg { margin: 28px 0; }
.cfg .cfg-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 12px; display: block; }
.cfg-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg-opt { font-family: var(--sans); font-size: 13px; padding: 9px 16px; border: 1px solid var(--gold-soft); border-radius: 999px; background: var(--ivory); color: var(--olive); cursor: pointer; transition: all .3s; }
.cfg-opt:hover { border-color: var(--gold); }
.cfg-opt.on { background: var(--aubergine); color: var(--ivory); border-color: var(--aubergine); }
.swatch { width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 1px solid var(--gold-soft); cursor: pointer; transition: transform .3s, box-shadow .3s; }
.swatch.on { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--gold); transform: scale(1.05); }

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:not(:last-child)::after { display: none; }
  .founder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card .card-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fx { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fx.in { opacity: 1; transform: none; }
.fx-2 { transition-delay: .08s; }
.fx-3 { transition-delay: .16s; }
.fx-4 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .fx { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .reveal-pair .state { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  body { font-size: 16px; }
  /* keep the logo, hide every text link (incl. the dynamic category links
     nested in the display:contents spans), show the hamburger */
  .nav-links a:not(.nav-brand) { display: none; }
  /* centre the logo; cart + menu sit on the right */
  .nav { position: relative; }
  .nav-links .nav-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin-inline: 0; }
  .nav-utils { margin-left: auto; }
  .nav-utils .ico.hide-mobile { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 1081px) {
  .drawer { display: none; }
}
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}

/* ============================================================
   CART DRAWER  (slide-in "gift tray" — checkout via WhatsApp)
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(59, 42, 53, 0.32); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed; top: 0; right: 0; z-index: 260;
  width: min(440px, 100vw); height: 100%;
  background: var(--ivory); border-left: 1px solid var(--gold-soft);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .55s var(--ease);
  box-shadow: -18px 0 60px -40px rgba(59, 42, 53, .6);
}
.cart-panel.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); border-bottom: 1px solid var(--gold-soft);
}
.cart-head h2 { font-size: 24px; }
.cart-head .cart-close { background: none; border: 0; padding: 6px; color: var(--aubergine); display: inline-flex; }
.cart-head .cart-close:hover { opacity: .55; }

.cart-body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.cart-empty { color: var(--olive); text-align: center; padding: 56px 0; font-family: var(--serif); font-size: 19px; }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--gold-soft); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--cream); }
.cart-line .cl-name { font-family: var(--serif); font-size: 18px; line-height: 1.15; margin: 0; }
.cart-line .cl-size { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 3px 0 0; }
.cart-line .cl-controls { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.cart-line .cl-qty { display: inline-flex; align-items: center; border: 1px solid var(--gold-soft); border-radius: 999px; }
.cart-line .cl-qty button { background: none; border: 0; width: 28px; height: 28px; color: var(--aubergine); font-size: 15px; line-height: 1; }
.cart-line .cl-qty button:hover { color: var(--gold); }
.cart-line .cl-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.cart-line .cl-remove { background: none; border: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.cart-line .cl-remove:hover { color: var(--blush); }
.cart-line .cl-price { font-size: 15px; color: var(--aubergine); white-space: nowrap; align-self: start; }

.cart-foot { padding: 22px var(--gutter); border-top: 1px solid var(--gold-soft); background: var(--ivory); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cart-total .ct-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.cart-total .ct-val { font-family: var(--serif); font-size: 26px; color: var(--aubergine); }
.cart-note { font-size: 12.5px; color: var(--olive); line-height: 1.5; margin: 0 0 16px; }
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: #1f7a4d; color: var(--ivory); border: 0; border-radius: 999px;
  padding: 15px 24px; font-family: var(--sans); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .18em; transition: all .4s var(--ease);
}
.btn-wa:hover { background: #1a6a42; transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(31, 122, 77, .8); }
.btn-wa[disabled] { opacity: .4; pointer-events: none; }
.cart-clear { display: block; width: 100%; text-align: center; background: none; border: 0; margin-top: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.cart-clear:hover { color: var(--blush); }

/* cart count badge shows only when items present */
.cart-num { font-size: 10px; line-height: 1; position: absolute; top: -7px; right: -9px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--blush); color: var(--ivory); display: none; align-items: center; justify-content: center; }
.cart-num.has { display: inline-flex; }
.cart-dot { position: relative; cursor: pointer; }
.cart-dot.has-items::after { display: none; }

/* ============================================================
   LIGHTBOX  (click a product photo to zoom / see the full image)
   ============================================================ */
.gallery-main { cursor: zoom-in; background: var(--ivory); }
/* show the WHOLE product photo (incl. the NF logo at the top) — never crop it */
.gallery-main > img { object-fit: contain; }
.gallery-main::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(59,42,53,.55) no-repeat center;
  backdrop-filter: blur(4px); pointer-events: none; opacity: .85; transition: opacity .3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23FBF8F3' stroke-width='1.5'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='M12 12l4 4M8 6v4M6 8h4'/%3E%3C/svg%3E");
}
.img-frame.gallery-main { position: relative; }
.gallery-main:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(24, 17, 21, 0.93); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: 4px; cursor: zoom-in;
  transform: scale(1); transition: transform .35s var(--ease);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.lightbox-img.zoomed { transform: scale(2.3); cursor: zoom-out; transition: transform .2s var(--ease); }
.lb-btn {
  position: absolute; background: rgba(251,248,243,.1); border: 1px solid rgba(251,248,243,.25);
  color: var(--ivory); width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .3s, transform .3s; z-index: 2;
}
.lb-btn:hover { background: rgba(251,248,243,.22); transform: scale(1.06); }
.lightbox-close { top: 22px; right: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 30px; line-height: 1; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: clamp(12px, 3vw, 40px); }
.lb-next { right: clamp(12px, 3vw, 40px); }
.lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(239,231,218,.85); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
@media (max-width: 600px) { .lb-nav { width: 40px; height: 40px; font-size: 24px; } .lightbox-close { top: 14px; right: 14px; } }
