/* ==========================================================================
   PIZZA FOX — design system
   Sunny-bakery aesthetic: warm yellow bands with scalloped edges, cream
   paper sections, tomato-orange accents, rounded "Baloo 2" display type.
   ========================================================================== */

:root {
  --sun:        #FFD23F;
  --sun-deep:   #F5BE0B;
  --sun-soft:   #FFEDB3;
  --cream:      #FBF5E9;
  --cream-deep: #F3E8D2;
  --paper:      #FFFFFF;
  --ink:        #2B2118;
  --ink-soft:   #5C5042;
  --line:       #EADFC9;
  --line-strong:#857358;
  --accent:     #FF9D1B;
  --accent-deep:#F08A00;
  --tomato:     #BC3F11;
  --badge:      #C03E12;
  --leaf:       #3E7A33;
  --focus:      #1849C6;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 2px 6px rgba(67, 48, 22, .07), 0 10px 24px rgba(67, 48, 22, .08);
  --shadow-pop:  0 4px 10px rgba(67, 48, 22, .12), 0 18px 38px rgba(67, 48, 22, .16);

  --ease-out:    cubic-bezier(.22, .9, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);

  --font-display: "Baloo 2", "Avenir Next Rounded", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", sans-serif;

  --w-page: 1180px;
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

/* product photos sit on a near-white studio backdrop; brightness lifts that
   backdrop to pure white and multiply blends it into the (light) container,
   so no square corners are visible on any background */
img[src^="img/p-"] { mix-blend-mode: multiply; filter: brightness(1.12) contrast(1.05); }

a { color: var(--tomato); text-underline-offset: 3px; }
a:hover { color: var(--badge); }

button { font: inherit; color: inherit; cursor: pointer; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: .6rem 1.1rem;
  background: var(--ink); color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.container {
  width: min(var(--w-page), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- decorative dividers ---------- */

.zigzag {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 11 7 4l7 7 7-7 7 7' fill='none' stroke='%23FFD23F' stroke-width='4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* white wave biting into the yellow band, with a soft shadow cast onto it */
.wave-top::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26' viewBox='0 0 120 26'%3E%3Cdefs%3E%3Cfilter id='f' x='-10%25' y='-50%25' width='120%25' height='220%25'%3E%3CfeDropShadow dx='0' dy='3' stdDeviation='2.2' flood-color='%237A5A10' flood-opacity='0.35'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23f)' fill='%23FFFFFF' d='M0 0h120v10q-15 9-30 0t-30 0t-30 0t-30 0z'/%3E%3C/svg%3E") repeat-x top left;
  background-size: 120px 26px;
  z-index: 2;
  pointer-events: none;
}


/* page banner — gray band with food-doodle pattern + wavy top */
.page-banner {
  position: relative;
  background: #EFEEEA;
  padding: 2.6rem 0 3rem;
  overflow: hidden;
}
.page-banner__pattern {
  position: absolute;
  inset: 0;
  background: url("../img/pattern.png") center / 300px auto;
  filter: invert(1);
  opacity: .05;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner__title { text-align: center; margin: 0; }
.breadcrumbs--center ol { justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  background: var(--paper);
  border-bottom: 2px solid #E3E1DC;
}
.header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding-block: .8rem;
}
.header__left { justify-self: start; display: flex; align-items: center; gap: 1rem; }
.phone-bubble {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid #D9D4C9;
  display: grid;
  place-items: center;
  color: var(--tomato);
  flex: none;
}
.header__right { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.brand { justify-self: center; margin-right: 0; }
.header__phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--tomato);
  text-decoration: none;
}
.header__phone:hover { text-decoration: underline; }
.header__phone-code { color: var(--ink); }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: .5rem;
}
.brand:hover { color: var(--ink); }
.brand__img { height: 86px; width: auto; display: block; }
.footer .brand__img { height: 96px; }
.brand__logo { width: 54px; height: 54px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: .03em;
}
.brand__name span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .28em; color: var(--tomato); }

.header__meta {
  margin: 0;
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.header__meta strong { color: var(--ink); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: .8rem; }

.basket-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .3rem .2rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease;
}
.basket-btn:hover { color: var(--ink); transform: translateY(-1px); }
.basket-btn:hover .basket-btn__view { text-decoration: underline; }
.basket-btn svg { flex: none; width: 30px; height: 30px; color: var(--tomato); }
.basket-btn__info { display: flex; flex-direction: column; line-height: 1.25; }
.basket-btn__total { font-weight: 800; font-size: 1.1rem; }
.basket-btn__view { font-size: .88rem; font-weight: 700; color: var(--tomato); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  padding: .5rem .8rem;
  font-weight: 800;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span { width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; }

.mainnav { background: var(--paper); position: relative; z-index: 2; }
.mainnav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0rem, 1.6vw, 1.6rem);
}
.mainnav a {
  display: block;
  padding: .85rem 1.05rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-bottom-color .15s ease;
}
.mainnav a:hover { color: var(--tomato); border-bottom-color: var(--sun); }
.mainnav a[aria-current="page"] {
  color: var(--tomato);
  border-bottom-color: var(--accent);
}
.mainnav__phone { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--sun);
  overflow: hidden;
}
.hero__tab {
  position: absolute;
  left: 0;
  top: 50%;
  transform-origin: left top;
  transform: rotate(-90deg) translateX(-50%);
  background: var(--ink);
  color: var(--sun);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .45rem 1.4rem;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  z-index: 3;
}
.hero__tab:hover { background: #463729; color: var(--sun); }
/* angled white plates behind the headline */
.hero__plate {
  display: inline-block;
  background: var(--paper);
  padding: .1em .45em .04em;
  transform: rotate(-2deg);
  box-shadow: 0 8px 18px rgba(122, 90, 16, .2);
}
.hero__plate--accent {
  color: var(--tomato);
  transform: rotate(-2deg) translateX(.55em);
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 .2rem;
}
.hero__promo {
  margin: 0;
  border: 3px dashed var(--paper);
  padding: .55rem 1.5rem .7rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .05rem;
  transform: rotate(-2deg);
}
.hero__promo span { font-size: .92rem; font-weight: 700; }
.hero__promo strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--tomato);
  letter-spacing: .05em;
}
.hero__when {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* big pizza in the bottom-right corner, cropped by the banner edges */
.hero__side {
  position: absolute;
  right: 16vw;
  bottom: 0;
  transform: translateY(60%);
  width: clamp(299px, 28.8vw, 557px);
  pointer-events: none;
}
/* dashed ring around the pizza, like the reference slider */
.hero__side::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='97' fill='none' stroke='%23FFFFFF' stroke-width='1.4' stroke-dasharray='9 8' opacity='.9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero__side img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(110, 60, 0, .3));
}

.hero__arrow {
  position: absolute;
  /* keep the arrow centred above the side pizza at any width */
  right: calc(16vw + clamp(150px, 14.4vw, 278px) - clamp(50px, 6vw, 80px));
  top: 14%;
  width: clamp(100px, 12vw, 160px);
  height: auto;
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.9rem;
  display: flex;
  gap: .55rem;
}
.hero__dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
}
.hero__dots .is-on { background: var(--accent-deep); }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 2.6rem;
  padding-block: 3.2rem 4rem;
}
.hero__content { max-width: 540px; }
.hero__kicker {
  display: inline-block;
  background: var(--tomato);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .3rem 1.1rem;
  margin-bottom: 1rem;
  transform: rotate(-2.5deg);
  box-shadow: 0 5px 12px rgba(122, 90, 16, .25);
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .14em;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: .3em;
}
.hero__cta { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero__art-left { display: grid; place-items: center; }
.hero__art-left img,
.hero__art-left svg {
  width: 100%;
  max-width: 330px;
  filter: drop-shadow(0 20px 28px rgba(110, 60, 0, .35));
  animation: hero-spin 90s linear infinite;
}
@keyframes hero-spin { to { transform: rotate(360deg); } }

/* entrance choreography — animates the separate translate/scale properties
   only, so the static transform tilts (plates, kicker, side pizza, vertical
   tab) stay untouched while elements settle in */
.hero__art-left { animation: slide-in-left .65s var(--ease-out) .05s backwards; }
.hero__tab { animation: drop-in .5s var(--ease-out) .55s backwards; }
.hero__kicker { animation: rise .45s var(--ease-out) .1s backwards; }
.hero__plate { animation: pop-in .5s var(--ease-spring) .2s backwards; }
.hero__plate--accent { animation-delay: .32s; }
.hero__promo { animation: rise .5s var(--ease-out) .45s backwards; }
.hero__when { animation: rise .5s var(--ease-out) .55s backwards; }
.hero__side { animation: slide-in-right .7s var(--ease-out) .35s backwards; }
.hero__arrow { animation: fade-in .55s ease .8s backwards; }
.hero__dots { animation: fade-in .55s ease .9s backwards; }

/* sub-page banners get the same gentle settle */
.page-banner__title { animation: rise .5s var(--ease-out) .05s backwards; }
.page-banner .breadcrumbs { animation: fade-in .5s ease .2s backwards; }

@keyframes slide-in-left { from { opacity: 0; translate: -36px 0; } }
@keyframes slide-in-right { from { opacity: 0; translate: 46px 0; } }
@keyframes drop-in { from { opacity: 0; translate: 0 -16px; } }
@keyframes pop-in { from { opacity: 0; scale: .85; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .03em;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.btn--primary:hover { background: var(--badge); border-color: var(--badge); color: #fff; box-shadow: var(--shadow-card); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #463729; color: #fff; }

.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--small { padding: .45rem 1.1rem; font-size: .9rem; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: 3.2rem; }
.section--cream { background: var(--cream); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.section__head h2 { margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.section__link {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  white-space: nowrap;
  transition: translate .18s var(--ease-out);
}
.section__link:hover { translate: 3px 0; }

/* ---------- category tiles ---------- */

.cat-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.cat-grid--full { grid-template-columns: repeat(4, 1fr); }

/* flat, square-cornered tiles separated by hairlines, like the reference */
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.4rem 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  transition: box-shadow .15s ease, transform .2s var(--ease-out);
}
.cat-tile:hover { box-shadow: var(--shadow-pop); color: var(--tomato); z-index: 1; transform: translateY(-4px); }
.cat-tile__art { width: 100%; height: auto; }
.cat-tile__art img {
  width: 78%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 0;
  margin-inline: auto;
  transition: scale .25s var(--ease-out);
}
.cat-tile:hover .cat-tile__art img { scale: 1.07; }
.cat-tile svg { width: 86px; height: 70px; margin-inline: auto; }
.cat-grid--full .cat-tile { padding-block: 1.7rem 1.5rem; font-size: 1.08rem; }
.cat-grid--full .cat-tile__art img { width: 62%; }
.cat-grid--full .cat-tile svg { width: 110px; height: 88px; }

/* ---------- product cards ---------- */

.product-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 1rem 1rem 1.1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.product-card__badge {
  position: absolute;
  top: .8rem; left: .8rem;
  z-index: 1;
  background: var(--badge);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
  padding: .18rem .65rem;
  border-radius: 999px;
}
.product-card__badge--new { background: var(--leaf); }

.product-card__art {
  border-radius: var(--radius-s);
  overflow: hidden;
  margin-bottom: .85rem;
}
button.product-card__art {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
button.product-card__art img { transition: transform .2s ease; }
button.product-card__art:hover img { transform: scale(1.04); }
.product-card__art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  transform: scale(.94);
}
.product-card__art svg { width: 100%; height: auto; background: var(--cream); padding: .6rem; }

.product-card h3 {
  font-size: 1.08rem;
  margin-bottom: .25rem;
}
.product-card__desc {
  font-size: .86rem;
  color: var(--ink-soft);
  margin-bottom: .8rem;
  flex-grow: 1;
}

.size-picker { border: 0; margin: 0 0 .8rem; padding: 0; }
.size-picker legend {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.size-picker__opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-picker label {
  display: inline-block;
  padding: .38rem 1rem;
  border-radius: 999px;
  background: #F1F0EC;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.size-picker label:hover { background: #E8E6E0; }
.size-picker input:checked + label {
  background: var(--sun);
  color: var(--ink);
}
.size-picker input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.product-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
}
.product-card__price s {
  display: inline;
  font-size: .95rem;
  margin-left: .4em;
  color: var(--ink-soft);
  font-weight: 700;
}

/* icon-only basket button, like the reference cards */
.bag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: .3rem;
  color: var(--tomato);
  transition: transform .12s ease, color .12s ease;
}
.bag-btn svg { width: 27px; height: 27px; }
.bag-btn:hover { transform: translateY(-2px) scale(1.08); color: var(--badge); }
.bag-btn:active { transform: scale(.94); }
.bag-btn.is-added { color: var(--leaf); }

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.05rem;
  background: var(--accent);
  border: 2px solid var(--accent-deep);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  color: var(--ink);
  transition: background .12s ease, transform .12s ease;
}
.add-btn:hover { background: var(--accent-deep); }
.add-btn:active { transform: scale(.96); }
.add-btn.is-added { background: var(--leaf); border-color: var(--leaf); color: #fff; }

/* ---------- filter chips / tabs ---------- */

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1.4rem; }
.tabs [role="tab"] {
  border: 0;
  background: none;
  padding: .55rem 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s ease, border-bottom-color .15s ease;
}
.tabs [role="tab"]:hover { color: var(--tomato); }
.tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.chip-row { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chip {
  border: 2px solid var(--line-strong);
  background: var(--paper);
  border-radius: 999px;
  padding: .32rem .95rem;
  font-weight: 700;
  font-size: .88rem;
}
.chip[aria-pressed="true"] {
  background: var(--sun);
  border-color: var(--ink);
}

/* ---------- features (why us) ---------- */

.features { padding-top: 0; }
.features__grid {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  background-color: #F5F4F0;
  padding: 2.8rem 3rem;
}
.features__icons {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.features__icons svg:first-child { width: 48px; height: 48px; flex: none; }
.features__squiggle { width: 80px; height: 38px; }
.features h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.features p { color: var(--ink-soft); font-size: .93rem; margin: 0; max-width: 24ch; }

/* the four perks blow in from the left one after another, easing in and
   out like a gust; the yellow squiggles arrive on a second beat */
.features__grid.is-in > li {
  animation: feature-in .65s var(--ease-in-out) backwards;
}
.features__grid.is-in > li:nth-child(2) { animation-delay: .18s; }
.features__grid.is-in > li:nth-child(3) { animation-delay: .36s; }
.features__grid.is-in > li:nth-child(4) { animation-delay: .54s; }
.features__grid.is-in .features__squiggle {
  animation: squiggle-in .55s var(--ease-in-out) backwards;
}
.features__grid.is-in > li:nth-child(1) .features__squiggle { animation-delay: .32s; }
.features__grid.is-in > li:nth-child(2) .features__squiggle { animation-delay: .5s; }
.features__grid.is-in > li:nth-child(3) .features__squiggle { animation-delay: .68s; }
.features__grid.is-in > li:nth-child(4) .features__squiggle { animation-delay: .86s; }
@keyframes feature-in { from { opacity: 0; translate: -40px 0; } }
@keyframes squiggle-in { from { opacity: 0; translate: -14px 0; } }

.more-row { display: flex; justify-content: center; margin-top: 1.8rem; }

/* ---------- callback band ---------- */

.callback { padding-block: 2.6rem 3rem; }
.callback__panel {
  background-color: #F5F4F0;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.8rem 3.2rem;
  overflow: hidden; /* wind stripes may overshoot the art column */
}

/* faint food-doodle pattern shared by the gray panels */
.callback__panel,
.features__grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='240' viewBox='0 0 280 240'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='2.2' opacity='.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='62' cy='62' r='36'/%3E%3Ccircle cx='62' cy='62' r='29'/%3E%3Ccircle cx='50' cy='50' r='4'/%3E%3Ccircle cx='74' cy='54' r='4'/%3E%3Ccircle cx='58' cy='76' r='4'/%3E%3Ccircle cx='78' cy='72' r='4'/%3E%3Cpath d='M182 32 L232 48 L196 92 Z'/%3E%3Ccircle cx='202' cy='52' r='3.4'/%3E%3Ccircle cx='212' cy='64' r='3.4'/%3E%3Cpath d='M34 186 a26 15 0 0 1 52 0'/%3E%3Ccircle cx='50' cy='178' r='1.4'/%3E%3Ccircle cx='62' cy='175' r='1.4'/%3E%3Cpath d='M34 191 h52'/%3E%3Cpath d='M34 198 q6 6 12 0 t12 0 t12 0 t12 0'/%3E%3Cpath d='M37 204 h46 q-2 10 -10 10 h-26 q-8 0 -10 -10z'/%3E%3Cpath d='M196 172 L244 184 L240 216 L196 208 Z'/%3E%3Cpath d='M198 188 l44 10'/%3E%3Ccircle cx='220' cy='162' r='5'/%3E%3Cpath d='M220 157 q3 -6 8 -7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 240px;
}

.callback__art { display: grid; place-items: center; position: relative; }
.callback__art::before {
  content: "";
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FAE9A6;
  top: 3%;
  left: 50%;
  transform: translateX(-46%);
}
.callback__art img,
.callback__art svg { position: relative; z-index: 1; }
.callback__art svg { width: 100%; max-width: 330px; height: auto; }
.callback__art img { width: 100%; max-width: 320px; height: auto; }

/* wind stripes flying past the courier (spawned by js/wind.js) */
.callback__art .wind {
  position: absolute;
  /* wide run-in from the panel edge on the left, but stop short of the text column */
  inset: -10% -5% -10% -20%;
  overflow: hidden;
  pointer-events: none;
}
.callback__art .wind--back { z-index: 0; }   /* above the yellow circle, behind the fox */
.callback__art .wind--front { z-index: 2; }  /* in front of the fox */
.wind .wind__stripe {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: none;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
}
.callback h2 { margin-bottom: .3rem; }
.callback p { color: var(--ink-soft); max-width: 36rem; }
.callback__form { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-top: 1.3rem; }

.input-pill { position: relative; flex: 0 1 300px; margin: 0; }
.input-pill > svg {
  position: absolute;
  left: 1.15rem;
  top: 1.05rem;
  color: var(--tomato);
  pointer-events: none;
}
.field.input-pill input {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .72rem 1.3rem .72rem 2.8rem;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.field.input-pill input::placeholder { color: var(--ink-soft); opacity: 1; }
.field.input-pill input[aria-invalid="true"] { border-color: var(--badge); }
.input-pill .field__error { margin-left: 1.2rem; }

.scooter-bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- deal cards ---------- */

.deal-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.deal-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.deal-card__art { position: relative; background: var(--sun-soft); }
.deal-card__art svg { width: 100%; height: auto; }
.deal-card__art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.deal-card__badge {
  position: absolute;
  top: .9rem; left: .9rem;
  background: var(--badge);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .9rem;
}
.deal-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.deal-card__body h3 { margin: 0; }
.deal-card__body p { color: var(--ink-soft); font-size: .92rem; margin: 0; flex: 1; }
.deal-card__meta { font-size: .82rem; font-weight: 700; color: var(--tomato); text-transform: uppercase; letter-spacing: .08em; }
.deal-card__code {
  align-self: flex-start;
  margin-top: .5rem;
  background: var(--sun-soft);
  border: 2px dashed var(--line-strong);
  border-radius: 8px;
  padding: .15rem .7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .12em;
}

.deal-banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 2.2rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
}
.deal-banner h2 { color: var(--sun); margin-bottom: .3rem; }
.deal-banner p { color: #E8DFD3; margin-bottom: 1.2rem; }
.deal-banner svg { width: 100%; max-width: 300px; height: auto; margin-inline: auto; }

/* ---------- reviews ---------- */

.review-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 1.3rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.review-card__head { display: flex; align-items: center; gap: .7rem; }
.review-card__smiley { width: 30px; height: 30px; flex: none; }
.review-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.review-card__source { font-size: .85rem; color: var(--ink-soft); margin-top: .1rem; }
.review-card__date { font-size: .8rem; color: var(--ink-soft); }
.review-card__stars { color: var(--tomato); letter-spacing: .1em; font-size: .95rem; }
.review-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* plain (home) variant — no card chrome, like the reference */
.review-grid--plain { gap: 2rem; }
.review-grid--plain .review-card {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: .9rem;
}

.section__head--center {
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid #F0E2C8;
  background: var(--paper);
  color: var(--tomato);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}
.btn-pill:hover { background: var(--tomato); color: #fff; border-color: var(--tomato); }
.btn-pill:active { transform: scale(.96); }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 2.4rem;
}
.reviews-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #D9D4C9;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease;
}
.reviews-dot:hover { transform: scale(1.15); }
.reviews-dot[aria-pressed="true"] { background: var(--accent-deep); }

/* ---------- about / map ---------- */

.about .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.about__text p { color: var(--ink-soft); }

.kicker-gray {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9A8B70;
  margin-bottom: .7rem;
}

/* tabs above the map */
.media-tabs {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.media-tabs [role="tab"] {
  border: 0;
  background: none;
  padding: 0 0 .7rem;
  margin-bottom: -1px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
}
.media-tabs [role="tab"]:hover { color: var(--tomato); }
.media-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.map-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-card__view svg { width: 100%; height: auto; display: block; }

/* Map / Panorama segmented control overlaid on the map */
.map-toggle {
  position: absolute;
  top: 1rem; left: 1rem;
  display: flex;
  background: var(--paper);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(67, 48, 22, .18);
}
.map-toggle__btn {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: .42rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-soft);
}
.map-toggle__btn.is-on { background: var(--tomato); color: #fff; }

.map-card__addr {
  padding: .9rem 1.2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.map-card__addr strong { font-family: var(--font-display); }

.photo-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.photo-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: pointer;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease;
}
.photo-thumb:hover img { transform: scale(1.05); }
.photo-thumb:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* lightbox popup */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem;
  background: rgba(34, 26, 18, .86);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: min(1000px, 92vw); text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-m);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.lightbox__cap { color: #F3E8D2; font-size: .92rem; margin-top: .8rem; }
.lightbox__close {
  position: absolute;
  top: 1.1rem; right: 1.3rem;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.lightbox__nav {
  flex: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 680px) {
  .lightbox__nav { position: absolute; bottom: 1.2rem; }
  .lightbox__prev { left: 30%; }
  .lightbox__next { right: 30%; }
}

/* product quick-view modal */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(34, 26, 18, .6);
}
.pmodal[hidden] { display: none; }
.pmodal__box {
  position: relative;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.pmodal__close {
  position: absolute;
  top: .8rem; right: .9rem;
  z-index: 2;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(43, 33, 24, .08);
  color: var(--ink);
  font-size: 1.7rem; line-height: 1;
}
.pmodal__close:hover { background: rgba(43, 33, 24, .16); }
.pmodal__media {
  position: relative;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 2rem;
  min-height: 320px;
}
.pmodal__badge {
  position: absolute;
  top: 1.4rem; left: 1.4rem;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: .2rem .8rem;
  border-radius: 999px;
  z-index: 1;
}
/* dashed ring with a pizza photo that scales with the chosen size */
.pmodal__ring {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.pmodal--pizza .pmodal__ring { border: 2px dashed #C9C3B6; }
.pmodal__photo { width: 100%; display: grid; place-items: center; }
.pmodal__photo img {
  width: 92%;
  aspect-ratio: 1;
  object-fit: contain;
  transform: scale(var(--pscale, 1));
  transition: transform .35s var(--ease-spring, ease);
  filter: drop-shadow(0 14px 22px rgba(110, 60, 0, .2));
}

.pmodal__body { padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: .5rem; overflow: auto; }
.pmodal__body h2 { margin: 0; }
.pmodal__sub { color: var(--ink-soft); font-size: .9rem; margin: 0 0 .3rem; }
.pmodal__desc { color: var(--ink-soft); margin: 0 0 .4rem; font-size: .95rem; }
.pmodal__price { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin: .2rem 0; }
.pmodal__price s { font-size: 1.05rem; color: var(--ink-soft); margin-left: .5rem; font-weight: 700; }

/* size segmented control */
.pmodal__seg { margin: .4rem 0 .2rem; }
.pmodal__seg label { flex: 1; justify-content: center; }

/* add-ons */
.pmodal__addons { margin-top: .4rem; }
.pmodal__addons-label { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .55rem; }
.pmodal__addon-tabs { display: flex; gap: 1.2rem; margin-bottom: .8rem; }
.pmodal__addon-tab {
  border: 0; background: none; padding: 0 0 .2rem;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.pmodal__addon-tab.is-on { color: var(--tomato); }
.pmodal__addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}
.addon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .8rem .4rem .6rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.addon-card:hover { border-color: var(--sun-deep); }
.addon-card.is-on { border-color: var(--tomato); background: #FFF6EF; }
.addon-card__icon { width: 46px; height: 46px; }
.addon-card__icon svg { width: 100%; height: 100%; }
.addon-card__name { font-weight: 700; font-size: .85rem; line-height: 1.2; }
.addon-card__price { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.addon-card.is-on .addon-card__price { color: var(--tomato); }

.pmodal__qtyrow { margin-top: .6rem; }
.pmodal__add { margin-top: 1rem; width: 100%; }

@media (max-width: 680px) {
  .pmodal__box { grid-template-columns: 1fr; }
  .pmodal__media { min-height: 0; padding: 1.4rem; }
  .pmodal__ring { max-width: 230px; }
  .pmodal__body { padding: 1.4rem 1.4rem 1.7rem; }
  .pmodal__addon-grid { max-height: 200px; }
}

/* ---------- info cards (contacts) ---------- */

.info-grid {
  list-style: none;
  margin: 0 0 2.5rem; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1.3rem;
}
.info-card h3 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.info-card p { margin: 0; font-weight: 700; }
.info-card a { font-weight: 800; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* ---------- contacts page ---------- */

.contacts-info {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.contacts-info > li { display: flex; flex-direction: column; align-items: center; }
.contacts-info__icon { color: var(--accent-deep); margin-bottom: .9rem; }
.contacts-info__icon svg { width: 44px; height: 44px; }
.contacts-info h3 { color: var(--accent-deep); font-size: 1.2rem; margin-bottom: .6rem; }
.contacts-info p { color: var(--ink-soft); margin: 0; line-height: 1.6; }
.contacts-info a { color: var(--ink-soft); text-decoration: none; }
.contacts-info a:hover { color: var(--tomato); text-decoration: underline; }

.contacts-map { position: relative; }
.contacts-map .map-card__view svg { width: 100%; height: auto; display: block; }

.contacts-q { text-align: center; }
.contacts-q__title { margin-bottom: .4rem; }
.contacts-q__sub { color: var(--ink-soft); max-width: 36rem; margin: 0 auto 1.8rem; }
.contacts-q__form { max-width: 760px; margin-inline: auto; text-align: left; }
.contacts-q__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contacts-q__col { display: flex; flex-direction: column; gap: 1rem; }
.contacts-q__col .field { margin: 0; }
.contacts-q__comment { margin: 0; }
.contacts-q__comment textarea { height: 100%; min-height: 170px; resize: vertical; }
.contacts-q__send { margin-top: auto; }
.contacts-q__note { color: var(--ink-soft); font-size: .82rem; margin: 1.2rem 0 0; }
.contacts-q [data-contact-done] { color: var(--leaf); margin-top: 1rem; }

@media (max-width: 680px) {
  .contacts-info { grid-template-columns: 1fr; gap: 1.6rem; }
  .contacts-q__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page furniture
   ========================================================================== */

.page-head { padding-block: 1.4rem .4rem; }

.breadcrumbs { font-size: .85rem; margin-bottom: .8rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- category layout ---------- */

.cat-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.cat-side {
  position: sticky;
  top: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: .6rem;
}
.cat-side h2 {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .5rem .7rem 0;
  margin-bottom: .2rem;
}
.cat-side ul { list-style: none; margin: 0; padding: 0; }
.cat-side a {
  display: block;
  padding: .42rem .7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
}
.cat-side a:hover { background: var(--cream); color: var(--tomato); }
.cat-side a[aria-current="page"] { background: var(--sun); }

.cat-layout .product-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- featured product ---------- */

.featured {
  margin-top: 2.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
}
.featured__art { position: relative; background: var(--cream); display: grid; place-items: center; padding: 1.5rem; }
.featured__art svg { width: 100%; max-width: 420px; height: auto; }
.featured__art img { width: 100%; max-width: 440px; border-radius: 14px; object-fit: cover; }
.featured__badge {
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  background: var(--badge);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: .25rem .85rem;
  border-radius: 999px;
}
.featured__body { padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: .6rem; }
.featured__body h2 { margin-bottom: 0; }
.featured__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
}
.featured__price s { font-size: 1.05rem; color: var(--ink-soft); margin-left: .6rem; font-weight: 600; }
.featured__body p { color: var(--ink-soft); margin: 0; }
.featured__meta { font-size: .85rem; color: var(--ink-soft); }
.featured__actions { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }

/* ---------- quantity stepper ---------- */

.stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.stepper button {
  border: 0;
  background: none;
  width: 38px; height: 38px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
}
.stepper button:hover { background: var(--sun-soft); }
.stepper button:active { transform: scale(.88); }
.stepper output {
  min-width: 2.2em;
  text-align: center;
  font-weight: 800;
  font-family: var(--font-display);
}

/* ==========================================================================
   Basket & checkout
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: .9rem 1.1rem;
}
.cart-item__art { border-radius: var(--radius-s); overflow: hidden; }
.cart-item__art img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cart-item__art svg { width: 100%; height: auto; background: var(--cream); padding: .35rem; }
.cart-item__name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.cart-item__opts { font-size: .82rem; color: var(--ink-soft); }
.cart-item__price { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.cart-item__remove {
  border: 0;
  background: none;
  color: var(--tomato);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: .2rem;
  justify-self: end;
}
.cart-item__remove:hover { color: var(--badge); }
.cart-item__col { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }

.cart-empty {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-l);
  padding: 3rem 1.5rem;
}
.cart-empty svg { width: 130px; height: auto; margin: 0 auto 1rem; }
.cart-empty p { color: var(--ink-soft); }

.cart-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem;
  margin-top: 1.2rem;
}
.promo-row { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; }
.promo-row .field { flex: 1 1 200px; margin: 0; }
.promo-msg { font-size: .88rem; font-weight: 700; margin-top: .5rem; }
.promo-msg--ok { color: var(--leaf); }
.promo-msg--err { color: var(--badge); }

.totals { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px dashed var(--line); }
.totals li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .55rem;
  font-size: .95rem;
}
.totals li.grand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin-top: .35rem;
}

/* ---------- checkout panel ---------- */

.checkout {
  background: var(--paper);
  border: 2px solid var(--sun);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.6rem 1.8rem;
  position: sticky;
  top: 1rem;
}
.checkout h2 { font-size: 1.4rem; }
.checkout fieldset {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 1rem 0 0;
  border-top: 2px dashed var(--line);
}
.checkout fieldset:first-of-type { border-top: 0; padding-top: 0; }
.checkout legend {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 0 .5rem;
  float: left;
  width: 100%;
}
.checkout legend + * { clear: both; }

.field { margin-bottom: .85rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.field .req { color: var(--badge); }
.field__hint { font-size: .8rem; color: var(--ink-soft); margin: .25rem 0 0; }
.field__error {
  display: none;
  font-size: .83rem;
  font-weight: 700;
  color: var(--badge);
  margin: .3rem 0 0;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--badge);
}
.field input[aria-invalid="true"] ~ .field__error,
.field textarea[aria-invalid="true"] ~ .field__error { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .7rem; }

.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
}
.seg input:checked + label { background: var(--sun); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.radio-list { display: flex; flex-direction: column; gap: .5rem; }
.radio-list label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .95rem;
}
.radio-list input { width: 1.15rem; height: 1.15rem; accent-color: var(--tomato); }

.form-error-summary {
  display: none;
  background: #FCEFE8;
  border: 2px solid var(--badge);
  border-radius: var(--radius-s);
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
}
.form-error-summary.is-open { display: block; }
.form-error-summary h3 { color: var(--badge); font-size: 1rem; margin-bottom: .3rem; }
.form-error-summary ul { margin: 0; padding-left: 1.2rem; font-size: .9rem; }

.order-success {
  background: var(--paper);
  border: 2px solid var(--leaf);
  border-radius: var(--radius-l);
  padding: 2.2rem 2rem;
  text-align: center;
}
.order-success svg { width: 90px; height: auto; margin: 0 auto 1rem; }
.order-success h2 { color: var(--leaf); }
.order-success p { color: var(--ink-soft); max-width: 32rem; margin-inline: auto; }

/* ---------- add-to-order strip ---------- */

.suggest-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.suggest-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: .8rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: center;
  align-items: center;
}
.suggest-card svg { width: 90px; height: auto; }
.suggest-card__art { width: 100%; }
.suggest-card__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.suggest-card__name { font-weight: 800; font-size: .9rem; line-height: 1.25; }
.suggest-card__price { font-family: var(--font-display); font-weight: 800; }

/* ==========================================================================
   Restaurant menu (price list)
   ========================================================================== */

.pricelist { max-width: 760px; margin-inline: auto; }
.pricelist section { margin-bottom: 2.2rem; }
.pricelist h2 {
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.pricelist h2::after { content: ""; flex: 1; height: 3px; background: var(--sun); border-radius: 2px; }
.pricelist ul { list-style: none; margin: 0; padding: 0; }
.pricelist li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
}
.pricelist .nm { font-weight: 700; }
.pricelist .wt { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.pricelist .dots { flex: 1; border-bottom: 2px dotted var(--line-strong); transform: translateY(-4px); min-width: 2rem; }
.pricelist .pr { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--line); margin-top: 3rem; }
.footer__main .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-block: 2.8rem 2.2rem;
}
.footer h2 {
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.footer a:hover { color: var(--tomato); text-decoration: underline; }
.footer__about p { color: var(--ink-soft); font-size: .9rem; max-width: 26ch; }
.footer__contact li { font-size: .93rem; color: var(--ink-soft); }
.footer__contact strong { color: var(--ink); }
.footer__phone { font-family: var(--font-display); font-size: 1.25rem !important; font-weight: 800; }

.footer .socials, .socials { display: flex; flex-direction: row; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--sun);
  border-radius: 50%;
  transition: transform .12s ease, background .12s ease;
}
.socials a:hover { background: var(--sun-deep); transform: translateY(-2px); }

.footer__bar { background: var(--sun); }
.footer__bar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: .8rem;
  font-size: .85rem;
  font-weight: 700;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, translate .2s ease;
}
.toast.is-show { opacity: 1; translate: -50% -6px; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

/* Blocks with .reveal wait out of sight; js/main.js adds .is-in when they
   scroll into view. The initial hiding only applies once JS has confirmed
   motion is allowed (html.has-motion), so content can never get stuck
   invisible — no JS or reduced motion means everything just shows. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.has-motion .reveal:not(.is-in) > * { opacity: 0; }
}
.reveal.is-in > * { animation: rise .55s var(--ease-out) backwards; }
.reveal.is-in > :nth-child(2) { animation-delay: .07s; }
.reveal.is-in > :nth-child(3) { animation-delay: .14s; }
.reveal.is-in > :nth-child(4) { animation-delay: .21s; }
.reveal.is-in > :nth-child(5) { animation-delay: .28s; }
.reveal.is-in > :nth-child(6) { animation-delay: .35s; }
.reveal.is-in > :nth-child(7) { animation-delay: .42s; }
.reveal.is-in > :nth-child(8) { animation-delay: .49s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }

/* ==========================================================================
   Micro-interactions
   ========================================================================== */

.brand:hover .brand__img,
.brand:focus-visible .brand__img { animation: wiggle .55s ease; }
@keyframes wiggle {
  25% { rotate: -4deg; }
  60% { rotate: 3deg; }
  100% { rotate: 0deg; }
}

/* the phone bell rings a little when the caller hovers it */
.header__left:hover .phone-bubble svg { animation: ring .65s ease; }
@keyframes ring {
  20% { rotate: -14deg; }
  45% { rotate: 11deg; }
  70% { rotate: -6deg; }
  100% { rotate: 0deg; }
}

/* basket total pops when the cart changes (js adds .is-pop) */
.basket-btn__total.is-pop { animation: badge-pop .45s var(--ease-spring); }
@keyframes badge-pop {
  45% { scale: 1.22; }
  100% { scale: 1; }
}

/* dialogs scale in softly each time they open */
.pmodal:not([hidden]) { animation: fade-in .22s ease; }
.pmodal:not([hidden]) .pmodal__box { animation: pop-in .3s var(--ease-spring) backwards; }
.lightbox:not([hidden]) { animation: fade-in .22s ease; }
.lightbox:not([hidden]) .lightbox__fig { animation: pop-in .3s var(--ease-out) backwards; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid--full { grid-template-columns: repeat(3, 1fr); }
  .cat-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__main .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .header .container { display: flex; }
  .header__meta { display: none; }
  .header__left { display: none; }
  .header__right { justify-self: auto; margin-left: auto; }

  .mainnav__phone { display: block; border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .4rem; }
  .mainnav__phone a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--tomato);
    text-transform: none;
    letter-spacing: .02em;
  }

  .nav-toggle { display: inline-flex; }

  .mainnav { border-bottom: 0; }
  .mainnav.is-closed { display: none; }
  .mainnav ul { flex-direction: column; padding: .4rem 0 .8rem; border-bottom: 1px solid var(--line); }
  .mainnav a { border-bottom: 0; border-left: 4px solid transparent; padding-block: .65rem; }
  .mainnav a[aria-current="page"] { border-left-color: var(--accent); background: var(--cream); }

  .hero .container { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 2.4rem 3.6rem; padding-right: 110px; }
  .hero__art-left { display: none; }
  .hero__arrow { display: none; }
  .hero__side { width: 176px; right: -50px; bottom: -48px; transform: none; }
  .hero__dots { bottom: 1.3rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; padding: 2rem 1.8rem; }

  .callback__panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.8rem 1.4rem; }
  .callback__art svg { max-width: 230px; }
  .callback__art img { max-width: 230px; }
  .input-pill { flex: 1 1 220px; }

  .about .container { grid-template-columns: 1fr; }

  .deal-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-banner { grid-template-columns: 1fr; text-align: center; padding: 1.8rem 1.4rem; }

  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; }
  .cat-side ul { display: flex; flex-wrap: wrap; gap: .2rem; }

  .featured { grid-template-columns: 1fr; }
  .featured__body { padding: 1.4rem 1.4rem 1.7rem; }

  .cart-layout { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .suggest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .header .container { gap: .5rem; }
  .brand { gap: .45rem; margin-right: 0; }
  .brand__img { height: 60px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__name { font-size: 1.02rem; white-space: nowrap; }
  .brand__name span { font-size: .56rem; letter-spacing: .16em; }
  .header__actions { gap: .45rem; }
  .nav-toggle { padding: .45rem .6rem; font-size: .9rem; }
  .basket-btn { gap: .4rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .product-card { padding: .75rem .75rem .9rem; }
  .product-card h3 { font-size: .98rem; }
  .product-card__desc { font-size: .8rem; }
  .add-btn { padding: .42rem .8rem; font-size: .85rem; }
  .product-card__price { font-size: 1.12rem; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .cat-grid--full { grid-template-columns: repeat(2, 1fr); }
  .cat-tile { font-size: .85rem; padding: .9rem .5rem .8rem; }
  .cat-tile svg { width: 64px; height: 52px; }

  .hero .container { padding-right: 80px; }
  .hero__side { width: 136px; right: -40px; bottom: -36px; transform: none; }
  .hero__promo strong { font-size: 1.45rem; }
  .hero__when { font-size: 1.05rem; }

  .features__grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.6rem 1.3rem; }

  .deal-grid, .review-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }

  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item__col { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .cart-item__remove { justify-self: start; grid-column: 2; }

  .field-row { grid-template-columns: 1fr 1fr; }

  .basket-btn__view { display: none; }
  .basket-btn svg { width: 26px; height: 26px; }
  .basket-btn__total { font-size: 1rem; }

  .hero__tab { display: none; }

  .footer__main .container { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__bar .container { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .suggest-grid { grid-template-columns: 1fr 1fr; }
}
