/* ============================================
   LILLY BUNTERS — TEA ROOM & CAKERY
   Design tokens drawn from the brand's own
   sage/rose/cream palette, script wordmark and
   the chalkboard tags + tiered cake stands seen
   in the shop itself.
   ============================================ */

:root {
  /* Colour */
  --cream:        #FAF3E9;
  --cream-deep:   #F1E7D8;
  --rose-soft:    #F4E0DC;
  --rose:         #D98C92;
  --rose-deep:    #C26F76;
  --sage:         #6F8C73;
  --sage-deep:    #4F6B53;
  --ink:          #3A2E28;
  --ink-soft:     #6B5D54;
  --gold:         #C9963D;
  --chalk:        #2E2B27;
  --chalk-text:   #F6EFE3;
  --white:        #FFFFFF;

  /* Type */
  --font-script: "Parisienne", cursive;
  --font-display: "Playfair Display", serif;
  --font-body: "Jost", sans-serif;
  --font-tag: "Caveat", cursive;

  --container: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== Shared layout helpers ===== */
.section-eyebrow {
  font-family: var(--font-tag);
  font-size: 1.35rem;
  color: var(--rose-deep);
  margin-bottom: 0.25rem;
}

.section-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 2.75rem;
  text-align: center;
}
.section-intro .section-sub { margin: 0 auto; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--sage);
  color: var(--cream);
  box-shadow: 0 8px 20px -8px rgba(79, 107, 83, 0.6);
}
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--cream);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* Chalkboard tag — echoes the real hand-lettered signs on the bakery counter */
.chalk-tag {
  display: inline-block;
  background: var(--chalk);
  color: var(--chalk-text);
  font-family: var(--font-tag);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.35rem 1rem 0.45rem;
  border-radius: 4px;
  transform: rotate(-1.2deg);
  margin: -1.6rem auto 0.6rem;
  position: relative;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.45);
}

/* Scalloped "doily / cake-stand rim" divider — the page's signature device */
.scallop {
  height: 26px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 28px 28px;
  margin-top: -1px;
}
.scallop-cream {
  background-image: radial-gradient(circle at 14px 0, transparent 14px, var(--cream) 14.5px);
}
.scallop-rose {
  background-image: radial-gradient(circle at 14px 0, transparent 14px, var(--rose-soft) 14.5px);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 243, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(58,46,40,0.07);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--sage);
}
.brand-name {
  font-family: var(--font-script);
  font-size: 1.65rem;
  color: var(--sage-deep);
  line-height: 1;
}
.brand-name-img { height: 1.9rem; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  font-size: 0.96rem;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%; height: 2px;
  background: var(--rose);
  transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--rose);
  color: var(--white);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--rose-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
}
.nav-toggle span {
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}


/* ===== About ===== */
.about { background: var(--cream); padding: 5.5rem 0 0; }
/* First section on the page now (hero removed) — clear the fixed header */
.about-top { padding-top: 8.5rem; }
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; color: var(--ink-soft); }
.about-highlights { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.65rem; }
.about-highlights li { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); flex-shrink: 0; }
.about-image img {
  border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(58,46,40,0.45);
}

/* ===== Cakes ===== */
.cakes { background: var(--rose-soft); padding: 4.5rem 0 4rem; }
.cake-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 1.8rem;
}
.cake-card { text-align: center; }
.cake-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 36px -18px rgba(58,46,40,0.4);
  aspect-ratio: 4 / 3.2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cake-image img { width: 100%; height: 100%; object-fit: cover; }
.cake-card:hover .cake-image { transform: translateY(-5px); box-shadow: 0 24px 44px -18px rgba(58,46,40,0.5); }
.cake-desc { color: var(--ink-soft); font-size: 0.95rem; max-width: 260px; margin: 0 auto; }
.cake-card-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--sage-deep);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}
.cake-card-link:hover { text-decoration: underline; }
.cake-footnote {
  text-align: center;
  margin-top: 3rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage-deep);
  font-size: 1.05rem;
}

/* ===== Afternoon Tea ===== */
.afternoon-tea { background: var(--cream); padding: 5.5rem 0 0; }
.at-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.at-image img {
  border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(58,46,40,0.45);
}
.at-text p { color: var(--ink-soft); margin-bottom: 1.3rem; max-width: 480px; }
.tier-list { margin-bottom: 1.8rem; }
.tier-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(58,46,40,0.18);
}
.tier-list li:first-child { border-top: 1px dashed rgba(58,46,40,0.18); }
.tier-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose-deep);
  font-size: 0.92rem;
  flex-shrink: 0;
  width: 86px;
}
.tier-label { color: var(--ink); font-weight: 500; }

.at-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage-deep);
  margin-bottom: 1rem;
}
.at-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

/* ===== Menu ===== */
.menu { background: var(--rose-soft); padding: 4.5rem 0 4rem; }
.menu-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.menu-col {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 14px 30px -18px rgba(58,46,40,0.25);
}
.menu-col h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}
.menu-col ul li {
  padding: 0.45rem 0;
  border-top: 1px solid rgba(58,46,40,0.08);
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.menu-col ul li:first-child { border-top: none; }
.menu-col-photo img {
  border-radius: 10px;
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.menu-teaser-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(58,46,40,0.08);
  font-size: 0.95rem;
}
.menu-teaser-list li:first-child { border-top: none; }
.menu-teaser-list li span:first-child { color: var(--ink-soft); }
.menu-teaser-list li span:last-child { color: var(--sage-deep); font-weight: 500; white-space: nowrap; }

.menu-teaser-footer {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.menu-teaser-footer .cake-footnote { margin-top: 0; }

/* ===== Baked strip ===== */
.baked-strip {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.baked-strip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.baked-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,43,39,0.55), rgba(46,43,39,0.78));
}
.baked-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
  padding: 2rem 1.5rem;
  max-width: 620px;
}
.baked-text h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.baked-text p { color: var(--cream-deep); }

/* ===== Visit ===== */
.visit { background: var(--cream); padding: 5.5rem 0; }
.visit-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}
.detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.6rem;
}
.detail-row strong { display: block; margin-bottom: 0.15rem; color: var(--ink); }
.detail-row p { color: var(--ink-soft); }
.detail-row p a { text-decoration: underline; text-decoration-color: rgba(111,140,115,0.4); text-underline-offset: 2px; }
.detail-row p a:hover { color: var(--sage-deep); }
.icon { width: 26px; height: 26px; color: var(--sage); flex-shrink: 0; margin-top: 0.1rem; }
.social-row { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-deep);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { background: var(--rose); color: var(--white); transform: translateY(-2px); }

.visit-map {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(58,46,40,0.45);
  min-height: 320px;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--sage-deep); color: var(--cream); padding: 3.2rem 0 2.2rem; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.brand-footer { justify-content: center; margin-bottom: 0.6rem; }
.brand-footer .brand-name { color: var(--cream); }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--rose-soft); margin-bottom: 1.6rem; }
.footer-nav { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.footer-nav a { font-size: 0.92rem; opacity: 0.9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-copy { font-size: 0.85rem; opacity: 0.75; }

/* ============================================
   MENU PAGE (menu.html)
   ============================================ */
.menu-hero {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 7.5rem 1.5rem 3.5rem;
  text-align: center;
}
.menu-hero .section-eyebrow { color: var(--rose-soft); }
.menu-hero .section-heading { color: var(--white); }
.menu-hero .section-sub { color: var(--cream-deep); margin: 0 auto; }

.menu-tabs {
  max-width: var(--container);
  margin: -1.6rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.menu-tab-btn {
  background: var(--cream);
  border: 1.5px solid var(--cream);
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(58,46,40,0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.menu-tab-btn:hover { transform: translateY(-2px); }
.menu-tab-btn[aria-selected="true"] {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.menu-panels { background: var(--cream); padding: 3.5rem 0 1rem; }
.menu-panel { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.menu-panel[hidden] { display: none; }

.menu-panel-intro { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.menu-panel-intro p { color: var(--ink-soft); }

.menu-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-bottom: 1.8rem;
}

.menu-cat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.8rem 1.8rem 1.5rem;
  box-shadow: 0 14px 32px -20px rgba(58,46,40,0.22);
  transition: box-shadow 0.4s ease;
}
/* Briefly applied by render.js when arriving via a Cake Cabinet
   "See on our Menu" link, to point out which card it scrolled to. */
.menu-cat-card.is-highlighted { box-shadow: 0 0 0 3px var(--gold), 0 14px 32px -20px rgba(58,46,40,0.22); }
.menu-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.menu-cat-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sage-deep);
}
.menu-cat-price {
  font-size: 0.92rem;
  color: var(--rose-deep);
  font-weight: 500;
  white-space: nowrap;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px dashed rgba(58,46,40,0.14);
}
.menu-item-row:first-child { border-top: none; }
.menu-item-name { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; color: var(--ink); }
.menu-item-price { color: var(--sage-deep); font-weight: 500; white-space: nowrap; }
.menu-item-note {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.15rem;
}

.allergen-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 50%;
  border: 1px solid var(--rose-deep);
  color: var(--rose-deep);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-3px);
}

.menu-sublist {
  margin: 0.5rem 0 0.9rem 0;
  padding-left: 0.2rem;
}
.menu-sublist li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}
.menu-sublist li span:last-child { color: var(--sage-deep); font-weight: 500; white-space: nowrap; }
.menu-cat-subhead {
  font-family: var(--font-tag);
  color: var(--rose-deep);
  font-size: 1.05rem;
  margin-top: 0.6rem;
}

.menu-cat-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.6rem;
}

/* Cross-promo banner inside the menu page */
.menu-cross-promo {
  max-width: var(--container);
  margin: 1rem auto 3.5rem;
  padding: 1.6rem 1.8rem;
  background: var(--rose-soft);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.menu-cross-promo p { color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.menu-cross-promo p strong { color: var(--rose-deep); }

/* Allergen legend */
.allergen-legend {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 3.2rem 1.5rem 3.5rem;
}
.allergen-legend-inner { max-width: var(--container); margin: 0 auto; }
.allergen-legend h3 {
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.allergen-legend-note { text-align: center; color: var(--rose-soft); font-size: 0.92rem; margin-bottom: 2rem; }
.allergen-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.4rem 0.8rem;
}
.allergen-grid li { text-align: center; font-size: 0.78rem; color: var(--cream-deep); }
.allergen-grid .allergen-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}
.allergen-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--cream-deep);
}
@media (max-width: 920px) {
  .about-inner, .at-inner, .visit-inner { grid-template-columns: 1fr; }
  .at-image, .about-image { order: -1; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .cake-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-cat-grid { grid-template-columns: 1fr; }
  .allergen-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-bottom: 1px solid rgba(58,46,40,0.08);
  }
  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav a { width: 100%; padding: 0.7rem 0; }
  .nav-cta { margin-top: 0.5rem; text-align: center; }
  .nav-toggle { display: flex; }

  .cake-grid { grid-template-columns: 1fr; max-width: 420px; }
  .menu-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
  .menu-tabs { gap: 0.5rem; }
  .menu-tab-btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
  .allergen-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-cross-promo { flex-direction: column; text-align: center; }
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Cart: "+ Add" button on menu items ===== */
.menu-item-price-cell, .menu-cat-price-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.cart-add-btn {
  border: 1.5px solid var(--sage);
  color: var(--sage-deep);
  background: var(--white);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.cart-add-btn:hover { background: var(--sage); color: var(--cream); }

/* ===== Cart: floating toggle button ===== */
.cart-toggle-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(58,46,40,0.45);
  z-index: 80;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cart-toggle-btn:hover { background: var(--sage); transform: translateY(-2px); }
.cart-toggle-btn svg { width: 26px; height: 26px; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rose-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-badge[hidden] { display: none; }

/* ===== Cart: overlay + drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,43,39,0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.cart-overlay.is-open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: var(--cream);
  box-shadow: -16px 0 40px -20px rgba(58,46,40,0.5);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px dashed rgba(58,46,40,0.18);
}
.cart-drawer-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}
.cart-close-btn { font-size: 1.6rem; line-height: 1; color: var(--ink-soft); }
.cart-close-btn:hover { color: var(--ink); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty { color: var(--ink-soft); font-style: italic; padding: 1.5rem 0; }

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(58,46,40,0.14);
}
.cart-line-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cart-line-name { color: var(--ink); font-weight: 500; }
.cart-line-price { font-size: 0.8rem; color: var(--ink-soft); }
.cart-line-controls { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(58,46,40,0.2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover { background: var(--rose-soft); }
.cart-qty-num { min-width: 1.4rem; text-align: center; font-weight: 500; }
.cart-remove-btn {
  color: var(--rose-deep);
  font-size: 1.2rem;
  line-height: 1;
  margin-left: 0.3rem;
}
.cart-remove-btn:hover { color: var(--rose); }

.cart-drawer-foot {
  padding: 1.2rem 1.5rem 1.5rem;
  border-top: 1px dashed rgba(58,46,40,0.18);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.cart-checkout-btn { display: block; width: 100%; text-align: center; }
.cart-checkout-btn.is-disabled { opacity: 0.5; pointer-events: none; }

@media (max-width: 640px) {
  .cart-toggle-btn { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}

/* ===== Checkout page ===== */
.checkout-hero { padding: 3rem 0 1.5rem; text-align: center; }
.checkout-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.checkout-summary {
  background: var(--white);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 14px 32px -20px rgba(58,46,40,0.22);
}
.checkout-summary h2 { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-bottom: 1rem; }
.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px dashed rgba(58,46,40,0.14);
}
.checkout-line:first-of-type { border-top: none; }
.checkout-group-label {
  font-family: var(--font-tag);
  font-size: 1rem;
  color: var(--rose-deep);
  margin-top: 0.8rem;
}
.checkout-group-label:first-child { margin-top: 0; }
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1.5px solid rgba(58,46,40,0.18);
}
.checkout-form {
  background: var(--white);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 14px 32px -20px rgba(58,46,40,0.22);
}
.checkout-form h2 { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-bottom: 1rem; }
.checkout-field { margin-bottom: 1rem; }
.checkout-field label { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.checkout-field input, .checkout-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(58,46,40,0.2);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
}
.checkout-field textarea { resize: vertical; min-height: 70px; }
.checkout-submit { width: 100%; text-align: center; margin-top: 0.4rem; }
.checkout-status { margin-top: 0.9rem; font-size: 0.9rem; }
.checkout-status.error { color: var(--rose-deep); }
.checkout-status.success { color: var(--sage-deep); }
.checkout-empty { text-align: center; padding: 3rem 1.5rem; color: var(--ink-soft); }

.fulfilment-choice { display: flex; gap: 1rem; flex-wrap: wrap; }
.fulfilment-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid rgba(58,46,40,0.2);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}
.fulfilment-option input { width: 16px; height: 16px; margin: 0; }
.fulfilment-option:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.fulfilment-option[hidden] { display: none; }
.fulfilment-note { font-size: 0.82rem; color: var(--rose-deep); margin-top: 0.5rem; }

#checkout-delivery-address {
  background: var(--cream);
  border-radius: 8px;
  padding: 0.9rem 1rem 0.1rem;
  margin-bottom: 1rem;
}

/* Clearly distinguishable from a real payment button — this only ever
   shows while PayPal isn't configured, see checkout.js showPaymentSection() */
#checkout-mock-pay-btn {
  background: var(--gold);
  border: 1.5px dashed var(--ink);
}
#checkout-mock-pay-btn:hover { background: var(--gold); opacity: 0.85; }

@media (max-width: 880px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

/* ===== Cookie consent banner (analytics.js) ===== */
.cookie-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 560px;
  margin: 0 auto;
  background: var(--chalk);
  color: var(--chalk-text);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
}
.cookie-consent-banner p { font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.9rem; }
.cookie-consent-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
.btn-ghost-dark {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--chalk-text);
  color: var(--chalk-text);
  font-size: 0.92rem;
  font-weight: 500;
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }
.cookie-consent-actions .btn-primary { padding: 0.65rem 1.3rem; font-size: 0.92rem; }

@media (max-width: 520px) {
  .cookie-consent-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .cookie-consent-actions { flex-direction: column-reverse; }
}
