/* ============================================================
   CHICK'IN — brand stylesheet
   Palette: Burnt Merlot #3b0000 · Golden Apricot #ffd482
   Display: TAY Birdie · Body: Archivo
   ============================================================ */

@font-face {
  font-family: "TAY Birdie";
  src: url("../fonts/TAYBirdieRegular.woff2") format("woff2"),
       url("../fonts/TAYBirdieRegular.woff") format("woff"),
       url("../fonts/TAYBirdieRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --merlot: #3b0000;
  --merlot-deep: #290000;
  --merlot-soft: #521010;
  --apricot: #ffd482;
  --apricot-bright: #ffe3ad;
  --cream: #fff3da;
  --heat: #ff4d1c;
  --display: "TAY Birdie", "Archivo", sans-serif;
  --body: "Archivo", "Helvetica Neue", sans-serif;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-pop: 0.35rem 0.35rem 0 var(--merlot-deep);
  --shadow-pop-apricot: 0.35rem 0.35rem 0 rgba(59, 0, 0, 0.28);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--merlot);
  color: var(--apricot);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Grain overlay for print-like warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--apricot); color: var(--merlot); }

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

a { color: inherit; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-apricot :focus-visible { outline-color: var(--merlot); }

.wrap {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2.5px solid var(--merlot-deep);
  border-radius: var(--radius-pill);
  padding: 0.85em 1.7em;
  background: var(--apricot);
  color: var(--merlot);
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s var(--ease-snap), box-shadow 0.18s var(--ease-snap), background 0.18s ease;
}

.btn:hover {
  transform: translate(-0.15rem, -0.15rem) rotate(-1deg);
  box-shadow: 0.5rem 0.5rem 0 var(--merlot-deep);
  background: var(--apricot-bright);
}

.btn:active {
  transform: translate(0.2rem, 0.2rem);
  box-shadow: 0.1rem 0.1rem 0 var(--merlot-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--apricot);
  border-color: var(--apricot);
  box-shadow: 0.35rem 0.35rem 0 rgba(255, 212, 130, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 212, 130, 0.08);
  box-shadow: 0.5rem 0.5rem 0 rgba(255, 212, 130, 0.35);
}

.btn--heat { background: var(--heat); color: var(--cream); }
.btn--heat:hover { background: #ff6236; }

.btn--sm { font-size: 0.85rem; padding: 0.6em 1.2em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--merlot) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 212, 130, 0.18);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand svg { width: 44px; height: 44px; color: var(--apricot); transition: transform 0.3s var(--ease-snap); }
.brand:hover svg { transform: rotate(-8deg) scale(1.08); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  opacity: 0.85;
  position: relative;
  padding-block: 0.3rem;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--apricot);
  transition: right 0.25s var(--ease-out);
}

.site-nav a:not(.btn):hover { opacity: 1; }
.site-nav a:not(.btn):hover::after { right: 0; }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

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

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem 7rem;
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; }

.hero__logo {
  width: clamp(110px, 16vw, 180px);
  margin-inline: auto;
  color: var(--apricot);
  transform-origin: 50% 85%;
}

/* entrance first, then the idle loop takes over (beats the .rise override) */
.hero__logo.rise {
  animation:
    rise 0.8s var(--ease-out) 0.05s both,
    chick-idle 7s ease-in-out 1s infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* still, then two side-to-side tilts */
@keyframes chick-idle {
  0%, 62%, 89%, 100% { transform: rotate(0); }
  71% { transform: rotate(6deg); }
  80% { transform: rotate(-6deg); }
}

.hero__title {
  font-size: clamp(3.4rem, 13vw, 10.5rem);
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.hero__title .ltr {
  display: inline-block;
  animation: ltr-wave 4.2s var(--ease-out) calc(1.2s + var(--i) * 0.09s) infinite;
}

/* a soft hop ripples through the letters every few seconds */
@keyframes ltr-wave {
  0%, 14%, 100% { transform: translateY(0) rotate(0); }
  5% { transform: translateY(-0.07em) rotate(-1.5deg); }
  10% { transform: translateY(0.015em) rotate(0.6deg); }
}

.hero__title .tick {
  color: var(--heat);
  transform-origin: 50% 100%;
  animation-name: tick-flick;
}

@keyframes tick-flick {
  0%, 14%, 100% { transform: translateY(0) scale(1) rotate(0); }
  5% { transform: translateY(-0.14em) scale(1.25) rotate(8deg); }
  10% { transform: translateY(0.02em) scale(0.96) rotate(-3deg); }
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  max-width: 34ch;
  margin: 1.4rem auto 2.2rem;
  opacity: 0.9;
}

.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* faint giant watermark behind hero */
.hero__watermark {
  position: absolute;
  inset: auto -8% -22% auto;
  width: 62%;
  color: rgba(255, 212, 130, 0.06);
  transform: rotate(8deg);
  z-index: 1;
  pointer-events: none;
}

/* staggered load-in */
.rise { opacity: 0; transform: translateY(26px); animation: rise 0.8s var(--ease-out) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.32s; }
.rise-4 { animation-delay: 0.46s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Ticker ---------- */

.ticker {
  background: var(--apricot);
  color: var(--merlot);
  border-block: 2.5px solid var(--merlot-deep);
  overflow: hidden;
  padding-block: 0.7rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ticker--tilt { transform: rotate(-1.3deg) scale(1.02); margin-block: -0.5rem; position: relative; z-index: 3; }

.ticker__track {
  display: inline-flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: ticker 28s linear infinite;
}

.ticker span { display: inline-flex; align-items: center; gap: 2.5rem; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

.section__kicker {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--heat);
  margin-bottom: 0.9rem;
}

.section__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 1rem;
}

.section__lede { max-width: 52ch; opacity: 0.85; margin: 0; }

.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Menu highlight cards (landing) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--apricot);
  color: var(--merlot);
  border: 2.5px solid var(--merlot-deep);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-pop-apricot);
  overflow: hidden;
  transition: transform 0.25s var(--ease-snap), box-shadow 0.25s var(--ease-snap);
}

.cards .card:nth-child(odd) { rotate: -0.6deg; }
.cards .card:nth-child(even) { rotate: 0.7deg; }

.card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0.55rem 0.55rem 0 rgba(59, 0, 0, 0.3);
}

.card--flip { background: var(--merlot-soft); color: var(--apricot); border-color: var(--merlot-deep); }

.card__mark {
  position: absolute;
  right: -14%;
  bottom: -18%;
  width: 55%;
  opacity: 0.1;
  transform: rotate(10deg);
  pointer-events: none;
  transition: transform 0.4s var(--ease-snap);
}

.card:hover .card__mark { transform: rotate(2deg) scale(1.08); }

.card h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.card p { margin: 0 0 1.2rem; font-size: 0.95rem; opacity: 0.85; position: relative; z-index: 1; }

.card .price {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

/* tags */
.tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 2px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 0.25em 0.8em;
  margin-left: 0.6rem;
  vertical-align: middle;
}

.tag--hot, .tag--extra-hot { color: var(--heat); border-color: var(--heat); }
.tag--extra-hot { background: var(--heat); color: var(--cream); }
.tag--new, .tag--deal { background: var(--merlot); color: var(--apricot); border-color: var(--merlot); }
.tag--veggie { color: #2e6b2e; border-color: #2e6b2e; }
.tag--share { color: inherit; }

/* ---------- Story ---------- */

.story { background: var(--apricot); color: var(--merlot); border-block: 2.5px solid var(--merlot-deep); }

.story .section__kicker { color: var(--merlot); opacity: 0.6; }

.story__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 860px) { .story__grid { grid-template-columns: 1fr; } }

.story__copy p { font-size: 1.1rem; margin: 0 0 1.2rem; }
.story__copy strong { font-weight: 700; }

.story__stamp {
  justify-self: center;
  width: min(340px, 80%);
  aspect-ratio: 1;
  border: 3px solid var(--merlot);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  rotate: -4deg;
}

.story__stamp > svg:first-of-type { width: 58%; color: var(--merlot); }

.story__stamp-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.story__stamp-text text {
  font-family: var(--body);
  font-weight: 700;
  font-size: 8.2px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: var(--merlot);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Find us ---------- */

.find__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.find__card {
  border: 2px solid rgba(255, 212, 130, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
}

.find__card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.find__card p { margin: 0.2rem 0; opacity: 0.9; }
.find__card a { text-decoration-color: rgba(255, 212, 130, 0.5); text-underline-offset: 3px; }

@media (max-width: 720px) {
  #find-us .section__head { text-align: center; }
  .find__card { text-align: center; }
  .find__card .hours { max-width: 300px; margin-inline: auto; }
}

.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours td { padding: 0.3rem 0; opacity: 0.9; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours .today td { opacity: 1; font-weight: 700; color: var(--apricot-bright); }

/* ---------- Footer ---------- */

.site-footer { border-top: 2.5px solid rgba(255, 212, 130, 0.18); padding-block: 3.5rem 2rem; overflow: hidden; }

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.site-footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .site-footer__row { flex-direction: column; align-items: center; gap: 1.4rem; }
  .site-footer__links { justify-content: center; gap: 1.3rem; }
}
.site-footer__links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  opacity: 0.75;
}
.site-footer__links a:hover { opacity: 1; }

.site-footer__giant {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.85;
  text-align: center;
  color: rgba(255, 212, 130, 0.12);
  user-select: none;
  margin-bottom: 1.5rem;
}

.site-footer__legal {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.55;
}

/* ============================================================
   ORDER PAGE
   ============================================================ */

.order-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
  padding-block: 3rem 6rem;
}

@media (max-width: 1000px) { .order-layout { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 7.5rem; } }

.order-head { padding-block: 3.5rem 0; }
.order-head .section__title { font-size: clamp(2.6rem, 7vw, 5rem); }

/* category pill nav */
.cat-nav {
  position: sticky;
  top: 70px;
  z-index: 800;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-block: 0.9rem;
  scrollbar-width: none;
  background: var(--merlot);
  border-bottom: 2px solid rgba(255, 212, 130, 0.14);
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav a {
  flex-shrink: 0;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.55em 1.3em;
  border: 2px solid rgba(255, 212, 130, 0.4);
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cat-nav a:hover, .cat-nav a.is-active {
  background: var(--apricot);
  color: var(--merlot);
  border-color: var(--apricot);
}

.menu-section { padding-block: 1.5rem 0.5rem; scroll-margin-top: 150px; }

.menu-section > h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.3rem;
}

.menu-section > .blurb { margin: 0 0 1.4rem; opacity: 0.7; font-size: 0.95rem; }

.menu-items { display: grid; gap: 1rem; }

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: rgba(255, 212, 130, 0.05);
  border: 2px solid rgba(255, 212, 130, 0.22);
  border-radius: 20px;
  padding: 1.1rem 1.3rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-snap);
}

@media (hover: hover) {
  .menu-item:hover { border-color: rgba(255, 212, 130, 0.55); background: rgba(255, 212, 130, 0.08); transform: translateX(4px); }
}

.menu-item__info h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.menu-item__info p { margin: 0; font-size: 0.9rem; opacity: 0.75; max-width: 46ch; }

.menu-item__buy { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.menu-item__price { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; }

.add-btn {
  position: relative;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--merlot-deep);
  background: var(--apricot);
  color: var(--merlot);
  box-shadow: 0.22rem 0.22rem 0 rgba(20, 0, 0, 0.35);
  transition: transform 0.15s var(--ease-snap), box-shadow 0.15s var(--ease-snap), background 0.15s;
}

/* CSS-drawn plus — always dead centre, unlike a text glyph */
.add-btn::before, .add-btn::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  border-radius: 99px;
  background: currentColor;
}
.add-btn::before { width: 14px; height: 2.5px; }
.add-btn::after { width: 2.5px; height: 14px; }

.add-btn:hover {
  background: var(--apricot-bright);
  transform: translate(-2px, -2px) rotate(90deg);
  box-shadow: 0.34rem 0.34rem 0 rgba(20, 0, 0, 0.4);
}
.add-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0.05rem 0.05rem 0 rgba(20, 0, 0, 0.35);
}

@media (max-width: 560px) {
  .order-head { padding-block: 2rem 0; }
  .order-head .section__title { font-size: 2.3rem; }
  .order-head .section__kicker { font-size: 0.7rem; margin-bottom: 0.6rem; }

  .cat-nav { margin-inline: -1.5rem; padding-inline: 1.5rem; }
  .cat-nav a { font-size: 0.8rem; padding: 0.45em 1.05em; }

  .menu-section { scroll-margin-top: 132px; padding-block: 1.7rem 0.4rem; }
  .menu-section > h2 { font-size: 1.65rem; }
  .menu-section > .blurb { font-size: 0.85rem; margin-bottom: 0.3rem; }

  /* receipt-style list: no boxes, just clean rows */
  .menu-items { gap: 0; }
  .menu-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "name price add"
      "desc desc  add";
    align-items: center;
    column-gap: 0.9rem;
    row-gap: 0.15rem;
    background: none;
    border: none;
    border-bottom: 1.5px solid rgba(255, 212, 130, 0.14);
    border-radius: 0;
    padding: 0.95rem 0.1rem;
  }
  .menu-item:last-child { border-bottom: none; }
  .menu-item__info, .menu-item__buy { display: contents; }
  .menu-item__info h3 { grid-area: name; font-size: 1.05rem; letter-spacing: 0.03em; margin: 0; }
  .menu-item__info p { grid-area: desc; font-size: 0.84rem; opacity: 0.7; }
  .menu-item__price { grid-area: price; font-size: 1.05rem; }
  .add-btn { grid-area: add; width: 38px; height: 38px; }
  .tag { font-size: 0.55rem; padding: 0.2em 0.6em; margin-left: 0.4rem; border-width: 1.5px; }
}

/* ---------- Cart panel ---------- */

.cart {
  position: sticky;
  top: 96px;
  background: var(--apricot);
  color: var(--merlot);
  border: 2.5px solid var(--merlot-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop-apricot);
  padding: 1.6rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.cart h2 { font-size: 1.7rem; margin-bottom: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* nudge the count + close group to sit optically level with the display type */
.cart h2 > span { translate: 0 3px; }

.cart__count {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(59, 0, 0, 0.65);
  background: none;
  border: 1.5px solid rgba(59, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.4em 1em;
  white-space: nowrap;
}

.cart__empty { opacity: 0.65; font-size: 0.95rem; margin: 0.5rem 0 1rem; }

.cart__lines { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.8rem; }

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  align-items: center;
  border-bottom: 1.5px dashed rgba(59, 0, 0, 0.25);
  padding-bottom: 0.8rem;
}

.cart-line__name { font-weight: 700; font-size: 0.95rem; }
.cart-line__price { font-variant-numeric: tabular-nums; font-weight: 700; }

/* segmented stepper pill: − qty + */
.qty {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  background: var(--merlot);
  border-radius: var(--radius-pill);
  padding: 0.22rem;
}

.qty button {
  position: relative;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--apricot);
  transition: background 0.15s, transform 0.1s var(--ease-snap);
}

.qty button::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 11px; height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.qty button[data-inc]::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 2px; height: 11px;
  border-radius: 99px;
  background: currentColor;
}

.qty button:hover { background: rgba(255, 212, 130, 0.16); }
.qty button:active { transform: scale(0.85); }
.qty button:focus-visible { outline-color: var(--apricot); }
.qty span { font-weight: 700; min-width: 1.7em; text-align: center; font-variant-numeric: tabular-nums; color: var(--apricot); font-size: 0.92rem; }

.cart__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-block: 1rem 1.4rem;
}

.cart form { display: grid; gap: 1.35rem; margin-top: 0.4rem; }

.cart label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(59, 0, 0, 0.6);
}

/* quiet editorial fields: hairline underline, nothing else */
.cart input, .cart select, .cart textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-bottom: 1.5px solid rgba(59, 0, 0, 0.25);
  border-radius: 0;
  background: transparent;
  color: var(--merlot);
  padding: 0.35em 0 0.55em;
  transition: border-color 0.2s ease;
}

.cart :is(input, select, textarea):hover { border-bottom-color: rgba(59, 0, 0, 0.45); }

.cart :is(input, select, textarea):focus-visible {
  outline: none;
  border-bottom-color: var(--merlot);
}

.cart select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%233b0000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15em center;
  background-size: 15px;
  padding-right: 1.7em;
  cursor: pointer;
}

.cart input::placeholder, .cart textarea::placeholder { color: rgba(59, 0, 0, 0.38); }

.cart textarea { resize: vertical; min-height: 52px; }

.cart .btn { justify-content: center; width: 100%; background: var(--merlot); color: var(--apricot); border-color: var(--merlot-deep); box-shadow: 0.35rem 0.35rem 0 rgba(59, 0, 0, 0.3); }
.cart .btn:hover { background: var(--merlot-soft); }
.cart .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-pop-apricot); }

.cart__note { font-size: 0.75rem; opacity: 0.65; margin: 0.8rem 0 0; text-align: center; }

.cart__error {
  background: var(--heat);
  color: var(--cream);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7em 1em;
  margin-bottom: 0.4rem;
}

/* mobile floating cart button */
.cart-fab {
  display: none;
  position: fixed;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  left: 50%;
  translate: -50% 0;
  z-index: 950;
  white-space: nowrap;
  transition: opacity 0.22s ease, translate 0.22s var(--ease-out);
}

/* tucked away while the basket drawer is open */
.cart-fab.is-hidden {
  opacity: 0;
  translate: -50% 14px;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .cart { position: fixed; inset: auto 0 0 0; top: auto; max-height: 82vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform 0.35s var(--ease-out); box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.4); z-index: 940; }
  .cart.is-open { transform: none; }
  .cart-fab { display: inline-flex; }
  .cart__close { display: grid !important; }

  /* dim and lock the page behind the open drawer */
  body.cart-open { overflow: hidden; }
  body.cart-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 930;
    background: rgba(25, 0, 0, 0.55);
    backdrop-filter: blur(2px);
  }
}

.cart__close {
  display: none;
  position: relative;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 0, 0, 0.3);
  background: transparent;
  color: var(--merlot);
  place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s var(--ease-snap);
}

.cart__close::before, .cart__close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.8px;
  border-radius: 99px;
  background: currentColor;
}
.cart__close::before { translate: -50% -50%; rotate: 45deg; }
.cart__close::after { translate: -50% -50%; rotate: -45deg; }

.cart__close:hover { background: var(--merlot); border-color: var(--merlot); color: var(--apricot); }
.cart__close:active { transform: scale(0.88); }

/* cart badge pop */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pop { animation: pop 0.35s var(--ease-snap); }

/* ---------- Success page ---------- */

.success {
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.success__logo { width: 130px; margin-inline: auto; color: var(--apricot); animation: bob 4s ease-in-out infinite; }
.success h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); margin-block: 1rem 0.6rem; }

.order-code {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin: 0.2rem 0 0.8rem;
}
.order-code strong { color: var(--heat); font-weight: 400; }
.success p { max-width: 44ch; margin-inline: auto; opacity: 0.85; }

.success__summary {
  margin: 2rem auto;
  max-width: 420px;
  text-align: left;
  background: rgba(255, 212, 130, 0.06);
  border: 2px solid rgba(255, 212, 130, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}

.success__summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.success__summary li { display: flex; justify-content: space-between; gap: 1rem; }
.success__summary .total { border-top: 1.5px dashed rgba(255, 212, 130, 0.4); margin-top: 0.6rem; padding-top: 0.8rem; font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .ticker__track, .hero__logo, .hero__logo.rise, .hero__title .ltr, .story__stamp-text, .success__logo { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
