/* ==========================================================================
   Smuggler's Batch — core stylesheet
   Design language lifted directly from the bottle label:
   aged parchment, black slate panels, brass ornament, chilli red.
   ========================================================================== */

:root{
  /* Palette sampled from the label artwork */
  --parchment:      #deb672;
  --parchment-lt:   #f0ddb6;
  --parchment-md:   #c9a367;
  --parchment-dk:   #a67f44;
  --ink:            #100f0d;
  --ink-2:          #1a1815;
  --ink-3:          #26221c;
  --brass:          #a8823c;
  --brass-lt:       #d3ad63;
  --red:            #e63423;
  --red-lt:         #ff5a44;
  --red-dk:         #8f1a16;
  --seal:           #5a0202;
  --leather:        #3b2a16;

  --font-display: "Rye", "Playfair Display", Georgia, serif;
  --font-body:    "Arvo", Georgia, "Times New Roman", serif;
  --font-accent:  "Trocchi", Georgia, serif;

  --maxw: 1240px;
  --radius: 3px;
  --shadow-deep: 0 18px 44px rgba(0,0,0,.55);
  --shadow-card: 0 10px 26px rgba(0,0,0,.42);

  --tex-parchment: url("../img/parchment.png");
  --tex-slate:     url("../img/slate.png");
}

*,*::before,*::after{ box-sizing:border-box; }

/* Components below set display:flex/grid, which would otherwise beat the
   browser default for [hidden] and show panels that are meant to be closed. */
[hidden]{ display:none !important; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.7;
  color:var(--parchment-lt);
  background-color:var(--ink);
  background-image:var(--tex-slate);
  background-size:760px auto;
  background-repeat:repeat;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:var(--brass-lt); text-decoration:none; }
a:hover{ color:var(--red-lt); }
button{ font-family:inherit; }

h1,h2,h3,h4{ font-family:var(--font-display); font-weight:400; line-height:1.12; letter-spacing:.01em; margin:0 0 .55em; }
h1{ font-size:clamp(2.4rem,6vw,4.4rem); }
h2{ font-size:clamp(1.8rem,3.6vw,2.9rem); }
h3{ font-size:1.35rem; }

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:24px; }
.center{ text-align:center; }
.muted{ color:rgba(240,221,182,.62); }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* --- Ornamental divider (mirrors the diamond rules on the label) --------- */
.rule{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin:14px 0 26px; color:var(--brass);
}
.rule::before,.rule::after{
  content:""; height:1px; flex:1 1 auto; max-width:180px;
  background:linear-gradient(90deg,transparent,var(--brass));
}
.rule::after{ background:linear-gradient(270deg,transparent,var(--brass)); }
.rule i{ font-style:normal; letter-spacing:.5em; font-size:.7rem; }

.eyebrow{
  font-family:var(--font-body); font-size:.72rem; font-weight:700;
  letter-spacing:.34em; text-transform:uppercase; color:var(--brass);
  margin:0 0 10px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:.85em 1.9em; border:1px solid var(--brass); border-radius:var(--radius);
  font-family:var(--font-display); font-size:.95rem; letter-spacing:.06em;
  background:transparent; color:var(--parchment-lt); cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.45); color:#fff; }
.btn--primary{
  background:linear-gradient(180deg,var(--red) 0%,#b8261a 100%);
  border-color:#7d1610; color:#fff5ee;
  text-shadow:0 1px 0 rgba(0,0,0,.4);
}
.btn--primary:hover{ background:linear-gradient(180deg,var(--red-lt) 0%,#c72a1d 100%); }
.btn--ghost:hover{ background:rgba(168,130,60,.16); }
.btn--dark{ background:var(--ink-2); border-color:#4a3d26; }
.btn--sm{ padding:.55em 1.1em; font-size:.82rem; }
.btn--full{ width:100%; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; transform:none; }

/* --- Header / nav -------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(12,11,10,.93);
  backdrop-filter:blur(7px);
  border-bottom:1px solid rgba(168,130,60,.35);
}
.site-header::after{
  content:""; display:block; height:3px;
  background:repeating-linear-gradient(90deg,var(--brass) 0 10px,transparent 10px 20px);
  opacity:.35;
}
.nav{
  display:flex; align-items:center; gap:22px; height:82px;
  transition:height .3s cubic-bezier(.2,.7,.3,1);
}
.nav__brand{ display:flex; align-items:center; gap:12px; margin-right:auto; }
/* The logo artwork is black ink drawn for a parchment label, so on the dark
   chrome it needs its own parchment plate to read at all. */
.nav__brand img{
  height:52px; width:auto; padding:5px 7px;
  background-color:var(--parchment); background-image:var(--tex-parchment);
  background-size:cover; border:1px solid rgba(168,130,60,.55); border-radius:2px;
  box-shadow:0 2px 6px rgba(0,0,0,.5);
}
.nav__brand span{
  font-family:var(--font-display); font-size:1.12rem; color:var(--parchment-lt);
  letter-spacing:.04em; line-height:1;
}
.nav__brand span small{ display:block; font-size:.58rem; letter-spacing:.3em; color:var(--brass); font-family:var(--font-body); margin-top:4px; }
.nav__links{ display:flex; gap:28px; list-style:none; margin:0; padding:0; }
.nav__links a{
  position:relative;
  font-family:var(--font-body); font-size:.78rem; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--parchment-lt);
  padding:6px 0;
  transition:color .2s ease;
}
/* Underline wipes out from the centre rather than blinking on. */
.nav__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--red);
  transform:scaleX(0); transform-origin:center;
  transition:transform .28s cubic-bezier(.2,.7,.3,1);
}
.nav__links a:hover,.nav__links a[aria-current="page"]{ color:var(--red-lt); }
.nav__links a:hover::after,.nav__links a[aria-current="page"]::after{ transform:scaleX(1); }
.nav__cart{
  position:relative; display:inline-flex; align-items:center; gap:8px;
  padding:.5em 1.1em; border:1px solid var(--brass); border-radius:var(--radius);
  font-family:var(--font-body); font-size:.75rem; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--parchment-lt); background:rgba(168,130,60,.1);
}
.nav__cart:hover{ background:rgba(230,52,35,.18); border-color:var(--red); color:#fff; }
.nav__cart b{
  min-width:21px; height:21px; padding:0 5px; border-radius:11px;
  background:var(--red); color:#fff; font-size:.72rem; line-height:21px; text-align:center;
}
.nav__toggle{ display:none; background:none; border:1px solid var(--brass); color:var(--parchment-lt); border-radius:var(--radius); padding:.45em .7em; cursor:pointer; }

@media (max-width:900px){
  /* height:auto so the open menu grows the header instead of spilling
     out of its background and floating over the hero. */
  .nav{ height:auto; min-height:70px; flex-wrap:wrap; padding-block:12px; }
  .nav__toggle{ display:inline-block; order:3; }
  .nav__links{
    order:4; flex-basis:100%; flex-direction:column; gap:0;
    max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  .nav__links a{ display:block; padding:14px 0; border-bottom:1px solid rgba(168,130,60,.2); }
  .nav[data-open="true"] .nav__links{ max-height:400px; }
  .nav__brand img{ height:42px; }
}

@media (max-width:480px){
  /* Keep brand, cart and burger on one row instead of wrapping the header.
     At 375px the three of them come to within a few pixels of the available
     width, so these are sized with a little room to spare rather than to fit
     exactly — a font that renders a fraction wider must not push the burger
     onto its own line. */
  .nav{ gap:8px; }
  .nav__brand{ gap:8px; }
  .nav__brand span{ font-size:.84rem; }
  .nav__brand span small{ display:none; }
  .nav__cart{ padding:.4em .6em; letter-spacing:.06em; font-size:.7rem; }
  .nav__toggle{ padding:.4em .6em; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero{
  position:relative; overflow:hidden;
  min-height:min(88vh,760px);
  display:flex; align-items:center;
  background:#0c0b0a;
}
.hero__bg{
  position:absolute; inset:0;
  background-image:var(--tex-parchment);
  background-size:cover; background-position:center;
}
.hero__figure{
  position:absolute; inset:0;
  background:url("../img/smuggler.png") center/cover no-repeat;
  mix-blend-mode:multiply; opacity:.85;
}
.hero__veil{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(222,182,114,.30) 0%, rgba(12,11,10,.72) 62%, rgba(8,7,6,.96) 100%);
}
.hero__inner{ position:relative; z-index:2; width:100%; padding:80px 0; text-align:center; }
.hero__lockup{
  width:min(420px,72vw); margin:0 auto 8px;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.75));
}
.hero__tag{
  font-family:var(--font-accent); font-size:clamp(1rem,2.2vw,1.4rem);
  color:var(--parchment-lt); letter-spacing:.04em; margin:0 0 6px;
}
.hero__shout{
  font-family:var(--font-display); color:var(--red);
  font-size:clamp(1.9rem,5.4vw,3.6rem); letter-spacing:.03em;
  text-shadow:0 2px 0 #5c0f09, 0 10px 26px rgba(0,0,0,.7);
  margin:.1em 0 .5em;
}
.hero__blurb{ max-width:620px; margin:0 auto 30px; color:rgba(240,221,182,.85); }
.hero__cta{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.hero__seal{
  position:absolute; right:5%; bottom:7%; width:clamp(84px,11vw,142px); z-index:3;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.7));
  animation:sway 7s ease-in-out infinite;
}
@keyframes sway{ 0%,100%{ transform:rotate(-7deg); } 50%{ transform:rotate(4deg); } }
@media (max-width:760px){ .hero__seal{ width:78px; right:4%; bottom:4%; } }
@media (prefers-reduced-motion:reduce){ .hero__seal{ animation:none; } }

/* --- Marquee strip -------------------------------------------------------
   Two identical sets sit end to end inside the track. The track slides left
   by exactly half its width — one whole set — then snaps back to the start,
   which lands on a pixel-identical frame, so the loop has no visible seam.
   The track must carry no gap of its own or that 50% stops being one set.
   ------------------------------------------------------------------------- */
.strip{
  position:relative; overflow:hidden;
  padding:11px 0;
  color:#ffe9df;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(0,0,0,0) 42%, rgba(0,0,0,.22) 100%),
    var(--red-dk);
  border-block:1px solid #5c0f09;
  box-shadow:inset 0 0 34px rgba(0,0,0,.42);
}

/* Feathered ends, so words arrive and leave rather than being chopped off. */
.strip::before,.strip::after{
  content:""; position:absolute; top:0; bottom:0; width:70px; z-index:2;
  pointer-events:none;
}
.strip::before{ left:0;  background:linear-gradient(90deg,var(--red-dk),transparent); }
.strip::after{ right:0; background:linear-gradient(270deg,var(--red-dk),transparent); }

.strip__track{
  display:flex;
  width:max-content;
  gap:0;
  animation:strip-scroll 42s linear infinite;
  will-change:transform;
}

.strip__set{
  display:flex; align-items:center;
  list-style:none; margin:0; padding:0;
}
.strip__set li{
  display:flex; align-items:center; gap:20px;
  padding:0 20px; white-space:nowrap;
  font-family:var(--font-body); font-size:.74rem; font-weight:700;
  letter-spacing:.26em; text-transform:uppercase;
  text-shadow:0 1px 0 rgba(0,0,0,.35);
}
.strip__set li img{
  width:15px; height:auto; flex:none;
  transform:rotate(-28deg);
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

@keyframes strip-scroll{
  from{ transform:translate3d(0,0,0); }
  to  { transform:translate3d(-50%,0,0); }
}

/* Let someone stop it to actually read a line. */
.strip:hover .strip__track,
.strip:focus-within .strip__track{ animation-play-state:paused; }

/* --- Sections ------------------------------------------------------------ */
.section{ padding:clamp(56px,8vw,104px) 0; }
/* Sticky header would otherwise cover the target of an in-page anchor. */
.section[id],[id]:target{ scroll-margin-top:100px; }
.section--parchment{
  background-color:var(--parchment);
  background-image:var(--tex-parchment);
  background-size:cover;
  color:#2c1e0d;
  position:relative;
  /* The wax stamp deliberately hangs past its container. Clip rather than let
     it push a horizontal scrollbar onto the whole page at middling widths.
     `clip` instead of `hidden` so no scroll container is created here. */
  overflow-x:clip;
}
.section--parchment h2,.section--parchment h3{ color:#1d1409; }
.section--parchment .eyebrow{ color:#7b5a22; }
.section--parchment .muted{ color:rgba(44,30,13,.72); }
.section--parchment .rule{ color:#7b5a22; }
.section--parchment .rule::before{ background:linear-gradient(90deg,transparent,#7b5a22); }
.section--parchment .rule::after{ background:linear-gradient(270deg,transparent,#7b5a22); }
.section--parchment .btn{ color:#2c1e0d; border-color:#7b5a22; }
.section--parchment .btn--primary{ color:#fff5ee; }
.section--edge::before,.section--edge::after{
  content:""; position:absolute; left:0; right:0; height:16px;
  background:repeating-linear-gradient(90deg,rgba(0,0,0,.28) 0 3px,transparent 3px 9px);
  opacity:.5;
}
.section--edge::before{ top:0; }
.section--edge::after{ bottom:0; }

.section__head{ max-width:720px; margin:0 auto 46px; text-align:center; }

/* --- Product / bottle-label card ---------------------------------------- */
.grid{
  display:grid; gap:28px;
  grid-template-columns:repeat(auto-fill,minmax(268px,1fr));
}
.card{
  position:relative; display:flex; flex-direction:column;
  background:var(--ink-2);
  border:1px solid rgba(168,130,60,.34);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-deep); border-color:var(--brass); }
.card__body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1 1 auto; }
.card__name{ font-family:var(--font-display); font-size:1.18rem; color:var(--parchment-lt); margin:0; }
.card__desc{ font-size:.86rem; color:rgba(240,221,182,.68); margin:0; flex:1 1 auto; }
.card__foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; }
.card__price{ font-family:var(--font-accent); font-size:1.28rem; color:var(--parchment-lt); }
.card__price s{ font-size:.85rem; color:rgba(240,221,182,.45); margin-right:8px; }

/* Bottle-label artwork, composed the same way as the physical label */
.label{
  position:relative; aspect-ratio:4/5; overflow:hidden;
  background-color:var(--parchment);
  background-image:var(--tex-parchment);
  background-size:cover; background-position:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:16px 14px; text-align:center;
  border-bottom:1px solid rgba(0,0,0,.35);
}
.label::before{
  content:""; position:absolute; inset:9px;
  border:1px solid rgba(60,40,15,.55);
  box-shadow:inset 0 0 0 3px rgba(222,182,114,.4), inset 0 0 34px rgba(60,40,15,.42);
  pointer-events:none;
}
.label::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 40%,rgba(255,255,255,.10),rgba(40,26,10,.42) 78%);
  pointer-events:none;
}
.label__mark{ width:52%; max-width:150px; margin-bottom:6px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.label__flavour{
  font-family:var(--font-display); color:var(--red);
  font-size:clamp(.95rem,2.4vw,1.35rem); line-height:1.1; letter-spacing:.02em;
  text-shadow:0 1px 0 rgba(255,235,215,.55), 0 2px 5px rgba(0,0,0,.28);
  margin:2px 0 4px; max-width:96%;
}
.label__sub{
  font-family:var(--font-body); font-size:.56rem; font-weight:700;
  letter-spacing:.26em; text-transform:uppercase; color:#4a3418;
}
.label__vol{
  position:absolute; right:14px; bottom:13px; z-index:2;
  font-family:var(--font-accent); font-size:.72rem; color:#2c1e0d;
  background:rgba(240,221,182,.78); padding:1px 7px; border:1px solid rgba(60,40,15,.4);
}
.label__ribbon{
  position:absolute; top:14px; left:-34px; z-index:3;
  transform:rotate(-38deg); transform-origin:center;
  background:var(--red); color:#fff; font-family:var(--font-body);
  font-size:.6rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  padding:4px 38px; box-shadow:0 3px 10px rgba(0,0,0,.4);
}
.label__ribbon--gold{ background:var(--brass); color:#241a08; }
.label__ribbon--out{ background:#4c4a45; }

/* --- Heat meter ---------------------------------------------------------- */
.heat{ display:inline-flex; align-items:center; gap:3px; }
.heat img{ width:15px; height:auto; }
.heat--lg img{ width:26px; }
.heat__val{
  font-family:var(--font-accent); font-size:.82rem; color:rgba(240,221,182,.7); margin-left:7px;
}
.section--parchment .heat__val,.label .heat__val,.note .heat__val{ color:#4a3418; }

/* --- Filter bar ---------------------------------------------------------- */
.filters{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
  padding:18px 20px; margin-bottom:34px;
  background:rgba(26,24,21,.86);
  border:1px solid rgba(168,130,60,.34); border-radius:var(--radius);
}
.filters__label{
  font-family:var(--font-body); font-size:.68rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--brass); margin-right:4px;
}
.chip{
  padding:.42em 1em; border:1px solid rgba(168,130,60,.5); border-radius:20px;
  background:transparent; color:var(--parchment-lt); cursor:pointer;
  font-family:var(--font-body); font-size:.76rem; letter-spacing:.06em;
  transition:all .16s ease;
}
.chip:hover{ border-color:var(--brass-lt); background:rgba(168,130,60,.14); }
.chip[aria-pressed="true"]{ background:var(--red); border-color:var(--red); color:#fff; }
.filters__spacer{ flex:1 1 auto; }
.select{
  background:var(--ink); color:var(--parchment-lt);
  border:1px solid rgba(168,130,60,.5); border-radius:var(--radius);
  padding:.5em .8em; font-family:var(--font-body); font-size:.8rem;
}

/* --- Product detail ------------------------------------------------------ */
.pdp{ display:grid; gap:52px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }
@media (max-width:900px){ .pdp{ grid-template-columns:1fr; gap:34px; } }
.pdp__media .label{ aspect-ratio:4/5; border-radius:var(--radius); box-shadow:var(--shadow-deep); }
.pdp__thumbs{ display:flex; gap:12px; margin-top:16px; }
.pdp__thumbs img{
  width:88px; border:1px solid rgba(168,130,60,.4); border-radius:var(--radius);
  background:var(--ink-2); padding:4px;
}
.pdp__price{ font-family:var(--font-accent); font-size:2rem; color:var(--parchment-lt); margin:0 0 4px; }
.pdp__row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:22px 0; }
.qty{ display:inline-flex; align-items:center; border:1px solid var(--brass); border-radius:var(--radius); overflow:hidden; }
.qty button{
  width:40px; height:44px; background:var(--ink-2); border:0; color:var(--parchment-lt);
  font-size:1.15rem; cursor:pointer;
}
.qty button:hover{ background:rgba(230,52,35,.3); }
.qty input{
  width:52px; height:44px; text-align:center; border:0; background:var(--ink);
  color:var(--parchment-lt); font-family:var(--font-accent); font-size:1rem;
  -moz-appearance:textfield;
}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.specs{ list-style:none; margin:26px 0 0; padding:0; border-top:1px solid rgba(168,130,60,.28); }
.specs li{
  display:flex; justify-content:space-between; gap:20px; padding:12px 2px;
  border-bottom:1px solid rgba(168,130,60,.18); font-size:.88rem;
}
.specs li span:first-child{
  font-family:var(--font-body); font-size:.7rem; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--brass);
}

/* --- Parchment note card (ingredients / shake well etc.) ----------------- */
.note{
  position:relative; padding:34px 30px;
  background-color:var(--parchment-lt);
  background-image:var(--tex-parchment);
  background-size:cover; background-blend-mode:multiply;
  color:#2c1e0d; border-radius:var(--radius);
  box-shadow:var(--shadow-card), inset 0 0 30px rgba(90,60,20,.35);
}
.note::before{
  content:""; position:absolute; inset:8px; border:1px solid rgba(60,40,15,.5);
  box-shadow:inset 0 0 0 2px rgba(222,182,114,.5); pointer-events:none;
}
.note h3{ color:#1d1409; margin-bottom:.4em; }
.note ul{ margin:0; padding-left:1.1em; }

/* --- The Tale (label's left panel, verbatim) ----------------------------- */
.tale{ display:grid; grid-template-columns:1.05fr 1fr; gap:56px; align-items:center; }
@media (max-width:900px){ .tale{ grid-template-columns:1fr; gap:34px; } }
.tale__copy p{ font-size:1.02rem; }
.tale__copy .lede::first-letter{
  float:left; font-family:var(--font-display); font-size:3.4rem; line-height:.82;
  padding:6px 10px 0 0; color:var(--red);
}
.tale__art{ position:relative; }
.tale__art img{
  width:100%; border:8px solid rgba(60,40,15,.6);
  box-shadow:var(--shadow-deep); border-radius:2px;
}
.tale__stamp{
  position:absolute; right:-24px; bottom:-24px; width:132px;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.6));
}
@media (max-width:1120px){ .tale__stamp{ right:-10px; bottom:-16px; } }
@media (max-width:600px){ .tale__stamp{ width:92px; right:-8px; bottom:-14px; } }

/* --- Feature trio -------------------------------------------------------- */
.trio{ display:grid; gap:26px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.trio__item{
  text-align:center; padding:32px 24px;
  border:1px solid rgba(168,130,60,.3); border-radius:var(--radius);
  background:rgba(26,24,21,.6);
}
.trio__item h3{ font-size:1.1rem; margin-bottom:.5em; }
.trio__item p{ font-size:.88rem; color:rgba(240,221,182,.68); margin:0; }
.trio__icon{ font-size:1.8rem; color:var(--brass); margin-bottom:10px; letter-spacing:.2em; }

/* --- Heat scale explainer ------------------------------------------------ */
.scale{ display:grid; gap:14px; }
.scale__row{
  display:grid; grid-template-columns:150px auto 1fr; gap:18px; align-items:center;
  padding:14px 18px; border:1px solid rgba(60,40,15,.35); border-radius:var(--radius);
  background:rgba(255,246,225,.34);
}
.scale__row b{ font-family:var(--font-display); font-weight:400; font-size:1rem; }
.scale__row span{ font-size:.86rem; }
@media (max-width:700px){ .scale__row{ grid-template-columns:1fr; gap:8px; } }

/* --- Cart / tables ------------------------------------------------------- */
.cart{ display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr); gap:40px; align-items:start; }
@media (max-width:960px){ .cart{ grid-template-columns:1fr; } }
.cart__line{
  display:grid; grid-template-columns:96px 1fr auto; gap:18px; align-items:center;
  padding:18px 0; border-bottom:1px solid rgba(168,130,60,.22);
}
.cart__line .label{ aspect-ratio:4/5; border-radius:2px; padding:8px 6px; }
.cart__line .label__mark{ width:66%; margin-bottom:2px; }
.cart__line .label__flavour{ font-size:.5rem; }
.cart__line .label__sub,.cart__line .label__vol,
.cart__line .heat,.cart__line .label__ribbon{ display:none; }
.cart__meta h3{ font-size:1.02rem; margin:0 0 4px; }
.cart__meta p{ margin:0; font-size:.8rem; color:rgba(240,221,182,.6); }
.cart__actions{ display:flex; align-items:center; gap:14px; }
.link-danger{ background:none; border:0; color:rgba(240,221,182,.55); cursor:pointer; font-size:.76rem; text-decoration:underline; }
.link-danger:hover{ color:var(--red-lt); }

.panel{
  padding:28px 26px; border:1px solid rgba(168,130,60,.34); border-radius:var(--radius);
  background:rgba(26,24,21,.9); box-shadow:var(--shadow-card);
  position:sticky; top:108px;
}
.panel h3{ margin-bottom:.7em; }
.totals{ list-style:none; margin:0 0 20px; padding:0; }
.totals li{ display:flex; justify-content:space-between; padding:9px 0; font-size:.92rem; border-bottom:1px dashed rgba(168,130,60,.24); }
.totals li.is-total{ border:0; padding-top:16px; font-family:var(--font-accent); font-size:1.3rem; color:var(--parchment-lt); }

.field{ margin-bottom:16px; }
.field label{
  display:block; font-family:var(--font-body); font-size:.68rem; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--brass); margin-bottom:6px;
}
.field input,.field textarea,.field select{
  width:100%; padding:.72em .85em; background:var(--ink);
  border:1px solid rgba(168,130,60,.42); border-radius:var(--radius);
  color:var(--parchment-lt); font-family:var(--font-body); font-size:.92rem;
}
.field input:focus,.field textarea:focus,.field select:focus{ outline:2px solid var(--red); border-color:var(--red); }
.field--split{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field .err{ display:block; margin-top:5px; font-size:.74rem; color:var(--red-lt); }

.empty{ text-align:center; padding:70px 20px; }
.empty img{ width:110px; margin:0 auto 20px; opacity:.85; }

/* --- Notices / badges ---------------------------------------------------- */
.notice{
  display:flex; gap:12px; align-items:flex-start;
  padding:14px 16px; border-radius:var(--radius); font-size:.83rem;
  border:1px solid rgba(168,130,60,.4); background:rgba(168,130,60,.12);
}
.notice--warn{ border-color:rgba(230,52,35,.5); background:rgba(230,52,35,.12); }
.notice b{ color:var(--brass-lt); }

.paybadge{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:16px; }
.paybadge span{
  padding:.34em .7em; border:1px solid rgba(168,130,60,.4); border-radius:3px;
  font-size:.64rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(240,221,182,.7);
}

/* --- Newsletter ---------------------------------------------------------- */
.signup{ display:flex; gap:12px; max-width:520px; margin:0 auto; flex-wrap:wrap; }
.signup input{
  flex:1 1 240px; padding:.85em 1em; border:1px solid rgba(60,40,15,.5);
  background:rgba(255,247,228,.7); color:#2c1e0d; border-radius:var(--radius);
  font-family:var(--font-body);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer{
  border-top:1px solid rgba(168,130,60,.3);
  background:rgba(8,7,6,.9); padding:58px 0 30px;
}
.footer__grid{ display:grid; gap:34px; grid-template-columns:1.4fr repeat(3,1fr); }
@media (max-width:820px){ .footer__grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer__grid{ grid-template-columns:1fr; } }
.footer__grid h4{
  font-family:var(--font-body); font-size:.7rem; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase; color:var(--brass); margin-bottom:1.1em;
}
.footer__grid ul{ list-style:none; margin:0; padding:0; }
.footer__grid li{ margin-bottom:9px; font-size:.86rem; }
.footer__grid a{ color:rgba(240,221,182,.75); }
.footer__grid a:hover{ color:var(--red-lt); }
.footer__brand img{
  width:170px; margin-bottom:16px; padding:14px 16px;
  background-color:var(--parchment); background-image:var(--tex-parchment);
  background-size:cover; border:1px solid rgba(168,130,60,.5); border-radius:2px;
  box-shadow:var(--shadow-card);
}
.footer__brand p{ font-size:.84rem; color:rgba(240,221,182,.55); max-width:280px; }
.footer__base{
  margin-top:40px; padding-top:22px; border-top:1px solid rgba(168,130,60,.2);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:.75rem; color:rgba(240,221,182,.45);
}

/* --- Toast --------------------------------------------------------------- */
.toast{
  position:fixed; right:22px; bottom:22px; z-index:120;
  display:flex; align-items:center; gap:12px;
  padding:14px 20px; border:1px solid var(--brass); border-radius:var(--radius);
  background:var(--ink-2); color:var(--parchment-lt); box-shadow:var(--shadow-deep);
  transform:translateY(140%); opacity:0; transition:transform .3s ease, opacity .3s ease;
  max-width:min(340px,86vw); font-size:.88rem;
}
.toast[data-show="true"]{ transform:translateY(0); opacity:1; }
.toast img{ width:32px; }

/* --- Reveal on scroll ---------------------------------------------------- */
/* ui.js sets an inline transition-delay so a row of cards arrives in sequence. */
.reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in{ opacity:1; transform:none; }


/* ==========================================================================
   MOTION
   Everything below is decoration. The site reads correctly with all of it
   switched off, which is exactly what happens for anyone who has asked their
   system to reduce motion — see the block at the very bottom.
   ========================================================================== */

@keyframes rise{
  from{ opacity:0; transform:translateY(20px); }
  to  { opacity:1; transform:none; }
}

/* --- Hero ---------------------------------------------------------------- */

/* The lockup, the shout and the buttons land one after another instead of
   appearing all at once with the page. */
.hero__lockup{ animation:rise .85s .05s cubic-bezier(.2,.7,.3,1) both; }
.hero__shout { animation:rise .85s .20s cubic-bezier(.2,.7,.3,1) both; }
.hero__blurb { animation:rise .85s .32s cubic-bezier(.2,.7,.3,1) both; }
.hero__cta   { animation:rise .85s .44s cubic-bezier(.2,.7,.3,1) both; }
.hero__seal  { animation:rise .8s .6s cubic-bezier(.2,.7,.3,1) both,
                         sway 7s .6s ease-in-out infinite; }

/* A very slow push on the background art. Long enough that you notice the
   scene has moved without ever catching it moving. */
.hero__figure{ animation:drift 40s ease-in-out infinite alternate; }
.hero__bg{ animation:drift-back 40s ease-in-out infinite alternate; }

@keyframes drift{
  from{ transform:scale(1.05) translate3d(0,0,0); }
  to  { transform:scale(1.13) translate3d(-1.6%,-1.4%,0); }
}
@keyframes drift-back{
  from{ transform:scale(1.02) translate3d(0,0,0); }
  to  { transform:scale(1.06) translate3d(1%,.8%,0); }
}

/* --- Header -------------------------------------------------------------- */

/* Condenses once you scroll, giving the content more room without the nav
   ever going away. ui.js sets data-scrolled. */
.site-header{ transition:background .3s ease, box-shadow .3s ease; }
.site-header[data-scrolled="true"]{
  background:rgba(10,9,8,.97);
  box-shadow:0 10px 30px rgba(0,0,0,.45);
}
/* Desktop only. Below 900px the nav wraps and sizes itself, so pinning a
   height there pushes the menu out of the header box. */
@media (min-width:901px){
  .site-header[data-scrolled="true"] .nav{ height:66px; }
  .site-header[data-scrolled="true"] .nav__brand img{ height:42px; }
}

.nav__brand img{ transition:height .3s cubic-bezier(.2,.7,.3,1), transform .3s ease; }
.nav__brand:hover img{ transform:rotate(-3deg) scale(1.04); }

/* Cart badge kicks when the count changes, so a quiet add is still noticed. */
@keyframes badge-bump{
  0%  { transform:scale(1); }
  35% { transform:scale(1.4); }
  60% { transform:scale(.92); }
  100%{ transform:scale(1); }
}
.nav__cart b{ transition:background .2s ease; }
.nav__cart b.is-bumped{ animation:badge-bump .45s cubic-bezier(.3,1.4,.5,1); }

/* --- Buttons ------------------------------------------------------------- */

/* A slow highlight crosses the button on hover, like light over waxed paper. */
.btn{ position:relative; overflow:hidden; }
.btn::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-18deg); pointer-events:none; opacity:0;
}
.btn:hover::after{ animation:sheen .75s ease-out; }
@keyframes sheen{
  from{ left:-60%; opacity:1; }
  to  { left:130%; opacity:0; }
}
.btn:active{ transform:translateY(0) scale(.985); }

/* --- Product cards ------------------------------------------------------- */

/* The label creeps forward under the card's own lift — two speeds reading as
   depth rather than one flat move. */
.card .label{ transition:transform .6s cubic-bezier(.2,.7,.3,1); }
.card:hover .label{ transform:scale(1.045); }

.card__name a{ color:inherit; transition:color .2s ease; }
.card:hover .card__name a{ color:var(--red-lt); }

/* Chillies warm up in sequence when you hover the card. */
.card .heat img{ transition:transform .35s cubic-bezier(.3,1.4,.5,1); }
.card:hover .heat img:nth-child(1){ transform:translateY(-3px); transition-delay:0ms; }
.card:hover .heat img:nth-child(2){ transform:translateY(-3px); transition-delay:45ms; }
.card:hover .heat img:nth-child(3){ transform:translateY(-3px); transition-delay:90ms; }
.card:hover .heat img:nth-child(4){ transform:translateY(-3px); transition-delay:135ms; }
.card:hover .heat img:nth-child(5){ transform:translateY(-3px); transition-delay:180ms; }

/* Ribbon settles in when the card first appears. */
@keyframes ribbon-drop{
  from{ opacity:0; transform:rotate(-38deg) translateY(-14px); }
  to  { opacity:1; transform:rotate(-38deg) translateY(0); }
}
.reveal.is-in .label__ribbon{ animation:ribbon-drop .5s .25s cubic-bezier(.3,1.2,.5,1) both; }

/* --- Ornament ------------------------------------------------------------ */

/* The diamond rule breathes, at a rate slow enough to feel like candlelight. */
.rule i{ animation:glow 5.5s ease-in-out infinite; }
@keyframes glow{ 0%,100%{ opacity:.55; } 50%{ opacity:1; } }

.rule::before,.rule::after{ transition:max-width .6s ease; }

/* Wax seal on the tale settles as it comes into view. */
@keyframes stamp{
  from{ opacity:0; transform:rotate(-24deg) scale(1.5); }
  to  { opacity:1; transform:rotate(-6deg) scale(1); }
}
.tale__stamp{ animation:stamp .7s .2s cubic-bezier(.3,1.2,.5,1) both; }

/* --- Small stuff --------------------------------------------------------- */

.trio__item{ transition:transform .3s ease, border-color .3s ease, background .3s ease; }
.trio__item:hover{
  transform:translateY(-4px);
  border-color:var(--brass); background:rgba(26,24,21,.85);
}

.scale__row{ transition:transform .25s ease, background .25s ease; }
.scale__row:hover{ transform:translateX(5px); background:rgba(255,246,225,.55); }

.chip{ transition:transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease; }
.chip:active{ transform:scale(.95); }

.specs li{ transition:background .2s ease, padding-left .2s ease; }
.specs li:hover{ background:rgba(168,130,60,.07); padding-left:8px; }

.footer__grid a{ display:inline-block; transition:color .2s ease, transform .2s ease; }
.footer__grid a:hover{ transform:translateX(4px); }

.field input,.field textarea,.field select{
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus,.field textarea:focus,.field select:focus{
  box-shadow:0 0 0 4px rgba(230,52,35,.14);
}

.cart__line{ transition:opacity .3s ease, transform .3s ease; }
.cart__line .label{ transition:transform .4s cubic-bezier(.2,.7,.3,1); }
.cart__line:hover .label{ transform:scale(1.06); }

.pdp__thumbs img{ transition:transform .3s ease, border-color .3s ease; }
.pdp__thumbs img:hover{ transform:translateY(-3px); border-color:var(--brass); }

/* Toast arrives with a slight overshoot rather than sliding to a dead stop. */
.toast{ transition:transform .38s cubic-bezier(.3,1.3,.5,1), opacity .3s ease; }


/* ==========================================================================
   REDUCED MOTION

   Anyone whose operating system is set to reduce motion gets a completely
   static site — including the marquee, which stops rather than scrolling past
   unread. This is deliberate: for some people moving content causes nausea or
   triggers migraines, and a decorative banner is not worth that.

   Note that this means the banner will look frozen on YOUR machine too if you
   have that setting on (macOS: Accessibility > Display > Reduce motion;
   Windows: Settings > Accessibility > Visual effects > Animation effects).

   To override it and animate for everyone regardless, put data-motion="always"
   on the <html> tag:   <html lang="en" data-motion="always">
   Only do that if you have decided the banner matters more than the setting.
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  html:not([data-motion="always"]) *,
  html:not([data-motion="always"]) *::before,
  html:not([data-motion="always"]) *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  html:not([data-motion="always"]) .reveal{ opacity:1 !important; transform:none !important; }
  html:not([data-motion="always"]) .strip__track{ animation:none !important; transform:none !important; }
  html:not([data-motion="always"]) .hero__figure,
  html:not([data-motion="always"]) .hero__bg{ animation:none !important; transform:none !important; }
}
