/* ============================================================
   The Whisky Nest — Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1c1a17;
  --paper: #f6efe4;
  --cream: #fbf7ef;
  --orange: #e8552b;
  --orange-dark: #c8431f;
  --teal: #1f6f6b;
  --gold: #c8902a;
  --muted: #6b655c;
  --line: #e3d9c8;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(28, 26, 23, 0.12);
  --shadow-sm: 0 6px 18px rgba(28, 26, 23, 0.1);
  --max: 1180px;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
/* When .section/.section--tight share an element with .container (checkout,
   success, dashboard), the "padding: x 0" above would zero the container's
   side gutters and content hits the screen edge. Restore the gutters. */
.container.section,
.container.section--tight { padding-left: 24px; padding-right: 24px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }

/* Subscribe page — "sample vs bottle" intro text above the plans */
.sub-callout { max-width: 760px; margin: 56px auto 0; }
body[data-page="subscribe"] #all-plans { margin-top: 0; }
.sub-callout-text {
  white-space: pre-line;
  margin: 0;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 12px;
}
.topbar span { margin: 0 18px; opacity: 0.85; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-logo { height: 36px; width: auto; display: block; }
.site-footer .brand-logo { height: 30px; }
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: 1.05rem;
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--orange); }
.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.cart-btn {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 9px 18px 9px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cart-count {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.72rem;
  display: inline-grid;
  place-items: center;
}
/* Hamburger button (hidden on desktop, shown in the mobile breakpoint) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 0; margin-left: 2px; flex: none;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; display: block;
  width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle .bars::after  { position: absolute; top:  7px; left: 0; }
.site-header.nav-open .nav-toggle .bars { background: transparent; }
.site-header.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle .bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--block { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.btn--sm { padding: 10px 18px; font-size: 0.74rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f9dcc6 0%, #f3c5a3 60%, #eeb188 100%);
  border-radius: var(--radius);
  margin-top: 28px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.01em;
}
.hero h1 .hl { color: var(--orange); }
.hero p { font-size: 1.1rem; color: #5a2a12; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Full-width photo banner (homepage) */
.hero.hero--image {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(20,16,12,0.82) 0%, rgba(20,16,12,0.55) 40%, rgba(20,16,12,0.12) 68%, rgba(20,16,12,0) 100%),
    url('../assets/hero.jpg');
  background-size: cover;
  background-position: 70% center;
  display: flex;
  align-items: center;
  min-height: 480px;
}
.hero--image .hero-content { max-width: 540px; }
.hero--image .eyebrow { color: #f0c9a6; }
.hero--image h1 { color: #fff; }
.hero--image p { color: rgba(255,255,255,0.92); }
.hero--image .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.85); }
.hero--image .btn--ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 620px) {
  .hero.hero--image {
    min-height: 440px;
    background-image:
      linear-gradient(180deg, rgba(20,16,12,0.45) 0%, rgba(20,16,12,0.55) 55%, rgba(20,16,12,0.8) 100%),
      url('../assets/hero.jpg');
    background-position: 60% center;
    align-items: flex-end;
  }
}
.hero-card {
  background: var(--orange);
  border-radius: 22px;
  padding: 26px;
  color: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  max-width: 320px;
  margin-left: auto;
}
.hero-card .pouch-top {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85;
}
.hero-card h3 { font-size: 1.7rem; margin: 8px 0 4px; }
.hero-card .batch { font-size: 0.8rem; opacity: 0.9; }
.hero-card .swatch {
  height: 8px; border-radius: 4px; margin: 16px 0;
  background: linear-gradient(90deg, #ffd66b, #ffb347, #c8431f);
}
.hero-card .brandline {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em;
  margin-top: 10px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.step .icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 2rem;
  margin-bottom: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); }

/* Centre the step cards (icon, headline & text) everywhere they appear —
   home "how it works", subscribe "how your subscription works" + "also included". */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* "Also included each month" — full-width orange band with white text */
.section--included {
  background: var(--orange);
  color: #fff;
  padding: 72px 0;
}
.section--included .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section--included h2 { color: #fff; }
.section--included .step h3 { color: #fff; }
.section--included .step p { color: rgba(255, 255, 255, 0.92); }
.section--included .step .icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}
/* Centre the items so the final row isn't left-aligned with a right gap */
.section--included .steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px 36px;
}
.section--included .steps .step { flex: 0 1 300px; }
@media (max-width: 620px) { .section--included { padding: 56px 0; } }

/* ---------- Plans ---------- */
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 44px;
}
.plan {
  flex: 1 1 280px;
  max-width: 380px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow);
}
.plan .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.plan .plan-img {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px;
}
.plan h3 { font-size: 1.5rem; margin-bottom: 2px; }

/* Points-earnable hint on cards */
.earn-pts {
  display: inline-block;
  background: rgba(31, 111, 107, 0.1);
  color: var(--teal);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 10px 0 4px;
}
.plan .tagline { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.plan .price small { font-size: 0.95rem; color: var(--muted); font-family: var(--font-body); }
.plan .pours {
  display: inline-block; margin: 12px 0 18px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px; font-size: 0.8rem; font-weight: 600;
}
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 0.92rem; border-bottom: 1px dashed var(--line); }
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--teal); font-weight: 700;
}

/* ---------- Product grid ---------- */
.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 26px 0 34px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-size: 4.4rem;
  position: relative;
  overflow: hidden;
}
.card .thumb .thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ci-thumb { overflow: hidden; }
.ci-thumb .ci-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.card .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--orange); color: #fff;
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card .region { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.18rem; margin: 4px 0 6px; }
.card .stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 8px; }
.card .desc { font-size: 0.86rem; color: var(--muted); flex: 1; }
.card .notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.card .note-pill {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; font-size: 0.7rem; font-weight: 600;
}
.card .price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
}
.card .price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.card .meta { font-size: 0.74rem; color: var(--muted); }

/* Out of stock */
.card .tag--oos { left: auto; right: 14px; background: var(--ink); }
.card.is-oos .thumb-img, .card.is-oos .thumb > span { opacity: 0.5; }
.card.is-oos .price { color: var(--muted); }
.card .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Clickable cards → product pages; clamp the preview blurb to 3 tidy lines */
.card .thumb { text-decoration: none; cursor: pointer; }
.card h3 a.card-title { color: inherit; text-decoration: none; }
.card h3 a.card-title:hover { color: var(--orange); }
.card .desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; margin-top: 22px; }
.product-detail .pd-media {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--cream); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 7rem;
}
.product-detail .pd-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .pd-cat {
  display: inline-block; background: var(--orange); color: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.product-detail h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 6px; }
.product-detail .pd-meta { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; }
.product-detail .pd-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: 16px 0; }
.product-detail .pd-desc { white-space: pre-line; line-height: 1.75; color: #2c2a26; margin: 10px 0 18px; }
.product-detail .note-pill {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; font-size: 0.72rem; font-weight: 600;
}
.product-detail .pd-media { position: relative; }
.product-detail .pd-media.is-oos img, .product-detail .pd-media.is-oos > span { opacity: 0.5; }
.product-detail .pd-oos-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 6px 16px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.product-detail .pd-oos { font-weight: 700; color: var(--orange-dark); margin: 6px 0 0; }
.product-detail .pd-oos a { color: var(--orange-dark); }
.product-detail .pd-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--cream); overflow: hidden;
}
.qty-stepper button {
  width: 42px; height: 46px; border: none; background: transparent;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.qty-stepper button:hover { background: rgba(0, 0, 0, 0.05); }
.qty-stepper span { min-width: 36px; text-align: center; font-weight: 700; font-size: 1rem; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--orange); color: #fff; }
.testimonials .eyebrow { color: #ffd9cb; }
.testimonials h2 { color: #fff; }
.tgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
}
.quote {
  background: #fff; color: var(--ink);
  border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow-sm);
}
.quote .stars { color: var(--gold); margin-bottom: 10px; }
.quote p { font-size: 0.92rem; }
.quote .who { font-weight: 700; font-size: 0.85rem; margin-top: 14px; }

/* Testimonials carousel — auto-scrolls, drag to browse, no scrollbar/arrows
   (auto-enabled when there are more than 3 reviews) */
.tgrid.is-carousel {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  gap: 20px;
  cursor: grab;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old Edge */
  -webkit-overflow-scrolling: touch;
}
.tgrid.is-carousel::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
.tgrid.is-carousel.dragging { cursor: grabbing; user-select: none; }
.tgrid.is-carousel .quote { flex: 0 0 clamp(260px, 30%, 340px); }

/* ---------- Feature band ---------- */
.band {
  background: var(--orange); color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.band p { color: #ffe3d6; }
.band .pouch {
  background: var(--ink);
  border-radius: 20px; padding: 30px; text-align: center;
  transform: rotate(-3deg); box-shadow: var(--shadow);
}
.band .pouch .brandline { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.band .pouch .swatch { height: 8px; border-radius: 4px; margin: 14px 0;
  background: linear-gradient(90deg, #ffd66b, #ffb347, #c8431f); }

/* ---------- Perks strip ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.perk { text-align: center; }
.perk .icon { font-size: 2rem; }
.perk h4 { font-size: 1.1rem; margin: 10px 0 6px; }
.perk p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Logos ---------- */
.logos {
  display: flex; flex-wrap: wrap; gap: 34px; justify-content: center; align-items: center;
  opacity: 0.6; margin-top: 30px;
}
.logos span { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.05em; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius);
  text-align: center;
  padding: 60px 40px;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cfc8bb;
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}

/* Footer newsletter sign-up (Mailchimp-ready) */
.footer-signup {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 18px 40px; padding-bottom: 34px; margin-bottom: 36px; border-bottom: 1px solid #38342d;
}
.footer-signup-text h4 {
  color: #fff; font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: normal; text-transform: none; margin: 0 0 6px; max-width: 540px;
}
.footer-signup-sub { font-size: 0.9rem; color: #cfc8bb; margin: 0; max-width: 480px; }
.footer-signup-form { min-width: 290px; flex: 1; max-width: 420px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px;
  border: 1px solid #4a463d; background: #211e1a; color: #fff;
  font-family: inherit; font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: #8c867b; }
.newsletter-form input:focus { outline: none; border-color: var(--orange); }
.newsletter-form .btn { flex: none; }
.newsletter-msg { font-size: 0.84rem; margin: 10px 0 0; }

/* Footer "Recommended by" logo */
.footer-recommended { margin-top: 22px; }
.footer-recommended-label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8c867b; margin-bottom: 10px;
}
.footer-recommended-img { max-width: 180px; height: auto; opacity: 0.95; }

/* Footer Trustpilot link */
.footer-trustpilot { margin-top: 30px; }
.footer-trustpilot a { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 0.92rem; font-weight: 600; }
.footer-trustpilot .tp-stars { color: #00b67a; letter-spacing: 1px; }
.footer-trustpilot a:hover { color: var(--orange); }
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; font-size: 0.9rem; color: #cfc8bb; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; font-size: 1.4rem; }
.footer-tagline { font-size: 0.9rem; max-width: 280px; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid #38342d; margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: #8c867b;
}

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 90;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; font-size: 1.3rem; }
.drawer-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

.cart-line {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-line .ci-thumb {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.6rem;
}
.cart-line .ci-name { font-weight: 700; font-size: 0.92rem; }
.cart-line .ci-sub { font-size: 0.78rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.ci-price { font-weight: 700; font-size: 0.95rem; text-align: right; }
.ci-remove { background: none; border: none; color: var(--muted); font-size: 0.74rem; cursor: pointer; text-decoration: underline; margin-top: 6px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-empty .big { font-size: 3rem; }

/* ---------- Page header ---------- */
.page-hero {
  background: linear-gradient(160deg, #f9dcc6, #f0bb95);
  border-radius: var(--radius);
  margin-top: 28px;
  padding: 54px 48px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero p { color: #5a2a12; max-width: 560px; margin: 0 auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow); z-index: 120;
  transition: transform 0.28s ease; display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: start; margin-top: 30px; }
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 1.3rem; }

/* Dashboard order history */
.order-list { margin-top: 8px; }
.order-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.order-row:last-child { border-bottom: none; }
.order-date { font-weight: 700; font-size: 0.95rem; }
.order-desc { font-size: 0.82rem; color: var(--muted); }
.order-ref { font-size: 0.74rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.order-ref code { font-family: monospace; word-break: break-all; color: var(--ink); }
.order-ref .order-track { color: var(--orange-dark); font-weight: 700; white-space: nowrap; text-decoration: none; }
.order-ref .order-track:hover { text-decoration: underline; }
.order-right { display: flex; align-items: center; gap: 14px; }
.order-amount { font-family: var(--font-display); font-weight: 700; }
.order-status { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); }
.order-status.is-refunded { color: var(--muted); }
.order-receipt { font-size: 0.8rem; color: var(--orange-dark); white-space: nowrap; }

/* My coupons */
.coupon-list { margin-top: 10px; }
.coupon-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.coupon-row:last-child { border-bottom: none; }
.coupon-row.is-spent { opacity: 0.55; }
.coupon-code { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 1.5px; }
.coupon-meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.coupon-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.coupon-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.coupon-status.is-available { color: var(--teal); }
.coupon-status.is-spent { color: var(--muted); }

/* ---------- Whisky-pour loader (reused on success + account checks) ---------- */
.twn-loading { text-align: center; padding: 70px 20px; }
.pour-anim { width: 140px; height: 128px; display: block; margin: 0 auto 10px; }
.pour-anim .liquid { animation: twn-fill 2.6s ease-in-out infinite; }
.pour-anim .stream { transform-box: fill-box; transform-origin: top center; animation: twn-pour 2.6s ease-in-out infinite; }
.pour-anim .drop   { transform-box: fill-box; transform-origin: center; animation: twn-drop 2.6s ease-in-out infinite; }
@keyframes twn-fill { 0%{transform:translateY(46px);opacity:1} 55%{transform:translateY(8px);opacity:1} 84%{transform:translateY(8px);opacity:1} 100%{transform:translateY(8px);opacity:0} }
@keyframes twn-pour { 0%{opacity:0;transform:scaleY(0)} 9%{opacity:1;transform:scaleY(1)} 55%{opacity:1;transform:scaleY(1)} 63%{opacity:0;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1)} }
@keyframes twn-drop { 0%,60%,100%{opacity:0;transform:translateY(0)} 66%{opacity:1;transform:translateY(0)} 80%{opacity:0;transform:translateY(12px)} }
@media (prefers-reduced-motion: reduce) {
  .pour-anim .liquid { animation: none; transform: translateY(8px); }
  .pour-anim .stream, .pour-anim .drop { animation: none; opacity: 0; }
}

/* Free-shipping progress bar (cart drawer + checkout) */
.ship-bar { margin: 0 0 16px; }
.ship-bar-msg { font-size: 0.84rem; margin-bottom: 9px; color: var(--ink); }
.ship-track { position: relative; height: 8px; background: var(--line); border-radius: 999px; }
.ship-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 999px; background: var(--orange);
  transition: width 0.35s ease;
}
.ship-bar.is-done .ship-fill { background: var(--teal); }
.ship-van {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  font-size: 1.15rem; line-height: 1; transition: left 0.35s ease;
}

/* Age-confirmation checkbox + validation notice (checkout) */
.age-check {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  accent-color: var(--orange);
  cursor: pointer;
}
.age-label.has-error .age-check { outline: 2px solid var(--orange-dark); outline-offset: 2px; }
.age-error {
  display: block;
  margin-top: 14px;
  padding: 11px 13px;
  background: #fcebe6;
  border: 1px solid var(--orange);
  border-radius: 10px;
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.age-error[hidden] { display: none; }
@media (max-width: 620px) {
  .age-check { width: 26px; height: 26px; margin-top: 0; }
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font-size: 0.95rem; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; }
.summary-line.total { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 14px; font-size: 1.2rem; font-weight: 700; }
.success-box { text-align: center; padding: 40px; }
.success-box .big { font-size: 4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .checkout-grid, .band { grid-template-columns: 1fr; }
  .steps, .plans, .grid, .tgrid, .perks { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { margin: 0 auto; }
}

/* Tablet / mobile nav: collapse links into a hamburger dropdown */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-join { display: none; }              /* the "Join the Nest" CTA moves into the menu */
  .nav-actions { gap: 10px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 6px 24px 18px;
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links > li:not(.nav-cta-mobile) > a {
    display: block;
    padding: 14px 2px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links > li:not(.nav-cta-mobile) > a:hover,
  .nav-links > li:not(.nav-cta-mobile) > a.active {
    color: var(--orange);
    border-bottom-color: var(--line);
  }
  .nav-cta-mobile { display: block; margin-top: 14px; }
}

@media (max-width: 620px) {
  .steps, .plans, .grid, .tgrid, .perks, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero, .band, .page-hero, .cta-banner { padding: 32px 22px; }
  .section { padding: 60px 0; }
  .topbar span:nth-child(n+2) { display: none; }
}

/* Small phones: trim the top bar so nothing wraps */
/* Phones: keep the 🛒 icon + count, drop the word "Cart" to save space */
@media (max-width: 520px) {
  .cart-label { display: none; }
  .cart-btn { padding: 9px 12px; }
}
@media (max-width: 420px) {
  .nav { height: 62px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand .mark { width: 30px; height: 30px; font-size: 0.95rem; }
  .nav-actions { gap: 8px; }
}

/* ---------- Scroll reveal (subtle fade-up) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
