/* =====================================================================
   OLEA KITCHEN — QR Menü
   Stitch "Olea" tasarımının birebir CSS karşılığı (Tailwind sınıfları → saf CSS).
   Renk değişkenleri partials/header.php içinden (app/config.php → theme) basılır.
   ===================================================================== */

:root {
  --c-cream: #FAF8F5;
  --c-sand: #F3EFEA;
  --c-border: #E8E1D7;
  --c-olive: #283618;
  --c-olive-light: #3D5523;
  --c-terracotta: #D96B4F;
  --c-gold: #D4A373;
  --c-dark: #1C1917;

  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --red-600: #dc2626;

  --shadow-soft: 0 4px 20px -2px rgba(40, 54, 24, 0.07);
  --shadow-card: 0 8px 30px -4px rgba(28, 25, 23, 0.12);
  --shadow-nav: 0 -4px 25px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-sheet: 0 -16px 48px -8px rgba(40, 54, 24, 0.18);

  --font: "Comic Relief", cursive, sans-serif;

  --r-sm: 4px;      /* rounded */
  --r-md: 12px;     /* rounded-xl */
  --r-lg: 16px;     /* rounded-2xl */
  --r-xl: 24px;     /* rounded-3xl */
  --r-full: 9999px;

  --shell-w: 448px; /* max-w-md */
  --gutter: 16px;   /* px-4 */
  --nav-h: 66px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.scroll-smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-cream);
  color: var(--c-dark);
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--c-terracotta); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
.is-hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--c-olive); color: var(--c-cream); padding: 8px 14px; border-radius: var(--r-full);
  font-weight: 700; font-size: 13px;
}
.skip-link:focus { top: 8px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.ico { display: inline-block; flex-shrink: 0; width: 1em; height: 1em; }
.ico--14 { width: 14px; height: 14px; }
.ico--16 { width: 16px; height: 16px; }
.ico--18 { width: 18px; height: 18px; }
.ico--20 { width: 20px; height: 20px; }
.ico--24 { width: 24px; height: 24px; }
.ico--28 { width: 28px; height: 28px; }

:focus-visible { outline: 2px solid var(--c-olive); outline-offset: 2px; }

/* ---------- Shell (max-w-md mobile container) ---------- */
.shell {
  position: relative;
  max-width: var(--shell-w);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-cream);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2xl);
  border-left: 1px solid rgba(232, 225, 215, 0.4);
  border-right: 1px solid rgba(232, 225, 215, 0.4);
  overflow-x: hidden;
  padding-bottom: 112px; /* pb-28 */
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: 20px var(--gutter) 12px;
  background: rgba(250, 248, 245, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 225, 215, 0.6);
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.brand__emblem {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-lg);
  background: var(--c-olive);
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 6px -1px rgba(40, 54, 24, 0.2), 0 2px 4px -2px rgba(40, 54, 24, 0.2);
}
.brand__emblem svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-weight: 700; font-size: 18px; line-height: 1.25;
  letter-spacing: 0.04em; color: var(--c-olive);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; line-height: 1.3; color: var(--stone-500); white-space: nowrap;
}
.brand__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-terracotta); flex-shrink: 0; }
.brand__dot:last-child { display: none; }
.brand__table {
  font-weight: 700; font-size: 10px; letter-spacing: 0.025em; color: var(--c-olive);
  background: var(--c-sand); padding: 2px 6px; border-radius: var(--r-sm);
}
.topbar__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.iconbtn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(232, 225, 215, 0.8);
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--stone-600);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.iconbtn:hover { background: #fafaf9; color: var(--c-olive); }
.iconbtn:active { transform: scale(.95); }
.iconbtn--fav { color: var(--amber-500); }
.iconbtn--fav[aria-pressed="true"] { background: var(--c-olive); border-color: var(--c-olive); color: var(--amber-400); }
.langpill {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red-600); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.iconbtn--lang { color: var(--c-olive); }

/* ---------- Search bar + waiter ---------- */
.searchbar { padding: 14px var(--gutter) 8px; }
.searchbar__form { display: flex; align-items: center; gap: 10px; }
.searchbar__field { position: relative; flex: 1 1 auto; display: block; min-width: 0; }
.searchbar__icon {
  position: absolute; inset: 0 auto 0 0; padding-left: 14px;
  display: flex; align-items: center; pointer-events: none; color: var(--stone-400);
}
.searchbar__input {
  width: 100%; height: 42px;
  padding: 10px 16px 10px 40px;
  background: #fff; border: 1px solid rgba(232, 225, 215, 0.8); border-radius: var(--r-lg);
  font-size: 12px; font-weight: 400; color: var(--stone-700);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease;
  -webkit-appearance: none; appearance: none;
}
.searchbar__input::placeholder { color: var(--stone-400); }
.searchbar__input:focus { outline: none; border-color: var(--c-olive); box-shadow: 0 0 0 2px rgba(40, 54, 24, 0.2); }
.searchbar__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.bellbtn {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(to top right, var(--c-terracotta), #e2836b);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(217, 107, 79, 0.25), 0 2px 4px -2px rgba(217, 107, 79, 0.25);
  transition: transform .15s ease, filter .15s ease;
}
.bellbtn:hover { filter: brightness(1.05); }
.bellbtn:active { transform: scale(.95); }

/* ---------- Popular stories ---------- */
.popular { padding: 12px 0 16px; }
.popular__head { padding: 0 var(--gutter); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.popular__title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.025em; text-transform: uppercase; color: var(--c-dark);
}
.popular__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-terracotta); }
.popular__all { font-size: 11px; font-weight: 700; color: var(--c-terracotta); }
.popular__all:hover { text-decoration: underline; }
.popular__scroller { display: flex; gap: 14px; overflow-x: auto; padding: 2px var(--gutter); scroll-behavior: smooth; }
.story { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 68px; }
.story__ring {
  display: block; width: 64px; height: 64px; border-radius: 50%; padding: 2px;
  background: linear-gradient(to top right, var(--c-gold), var(--c-terracotta), var(--c-olive));
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.story:hover .story__ring { transform: scale(1.05); }
.story:nth-child(6n+2) .story__ring { background: linear-gradient(to top right, var(--c-terracotta), var(--c-gold)); }
.story:nth-child(6n+3) .story__ring { background: linear-gradient(to top right, var(--c-olive), var(--c-gold)); }
.story:nth-child(6n+4) .story__ring { background: linear-gradient(to top right, var(--c-gold), var(--amber-400), var(--c-terracotta)); }
.story:nth-child(6n+5) .story__ring { background: linear-gradient(to top right, var(--c-olive), var(--c-terracotta)); }
.story:nth-child(6n+6) .story__ring { background: linear-gradient(to top right, var(--c-sand), var(--c-gold)); }
.story__inner { display: block; width: 100%; height: 100%; border-radius: 50%; padding: 2px; background: #fff; }
.story__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story__label {
  margin-top: 6px; width: 100%; text-align: center;
  font-size: 11px; line-height: 1.25; color: var(--stone-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Category showcase ---------- */
.showcase { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catcard {
  position: relative; display: block; width: 100%;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  transition: transform .2s ease;
  isolation: isolate;
}
.catcard--hero { height: 224px; }
.catcard--half { height: 256px; }
.catgrid:nth-of-type(2n) .catcard--half { height: 240px; }
.catcard:active { transform: scale(.985); }
.catcard__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .7s ease-out; background: var(--c-sand);
}
.catcard:hover .catcard__img { transform: scale(1.05); }
.catcard__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2) 50%, transparent);
}
.catcard--hero .catcard__scrim { background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .25) 50%, transparent); }
.catcard__tint { position: absolute; inset: 0; background: rgba(40, 54, 24, .1); mix-blend-mode: multiply; }
.catcard__count {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-sm);
}
.catcard--hero .catcard__count { top: 14px; right: 14px; padding: 4px 12px; font-size: 12px; }
.catcard__body { position: absolute; left: 14px; right: 14px; bottom: 14px; display: block; }
.catcard--hero .catcard__body { left: 16px; right: 16px; bottom: 16px; }
.catcard__eyebrow {
  display: block; margin-bottom: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gold);
}
.catcard__title {
  display: block; color: #fff; font-weight: 700;
  font-size: 18px; line-height: 1.375;
  text-shadow: 0 4px 3px rgba(0, 0, 0, .07), 0 2px 2px rgba(0, 0, 0, .06);
  overflow-wrap: anywhere;
}
.catcard--hero .catcard__title { font-size: 24px; line-height: 1.3; letter-spacing: 0.025em; }

/* ---------- Category nav chips ---------- */
.catnav { padding: 4px 0 6px; }
.catnav__scroller, .filters__scroller {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter);
  scroll-behavior: smooth; scroll-snap-type: x proximity;
}
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-full);
  background: var(--c-sand); color: var(--c-dark);
  border: 1px solid rgba(40, 54, 24, 0.1);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  scroll-snap-align: start;
}
.chip:hover { border-color: rgba(40, 54, 24, 0.25); }
.chip:active { transform: scale(.97); }
.chip.is-active { background: var(--c-olive); color: var(--c-cream); border-color: var(--c-olive); }
.chip--filter { font-weight: 400; }
.chip--filter.is-active { font-weight: 700; }
.chip--clear { background: #fff; color: var(--c-terracotta); border-color: rgba(217, 107, 79, 0.35); font-weight: 700; }
.filters { padding: 2px 0 4px; }

/* ---------- Results / product list ---------- */
.catpage { display: flex; flex-direction: column; }
.results { padding: 6px var(--gutter) 0; }
.results__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.results__heading { min-width: 0; }
.results__eyebrow {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-terracotta);
  margin-bottom: 2px; min-height: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.results__eyebrow:empty { display: none; }
.results__title { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--c-olive); letter-spacing: 0.01em; }
.results__count {
  flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--c-olive);
  background: var(--c-sand); padding: 3px 10px; border-radius: var(--r-full); border: 1px solid rgba(40, 54, 24, 0.08);
}
.plist { display: flex; flex-direction: column; gap: 12px; }
.plist__wrap { display: contents; }

.pcard {
  position: relative;
  background: #fff;
  border: 1px solid rgba(232, 225, 215, 0.9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pcard:active { transform: scale(.99); }
.pcard:hover { box-shadow: var(--shadow-card); }
.pcard__link { display: flex; gap: 12px; padding: 10px; align-items: stretch; border-radius: inherit; }
.pcard__link:focus-visible { outline-offset: -2px; }
.pcard__media { position: relative; flex-shrink: 0; width: 92px; height: 92px; border-radius: var(--r-md); overflow: hidden; background: var(--c-sand); }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__soldout, .pdetail__soldout {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(28, 25, 23, .55); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 4px;
}
.pdetail__soldout { font-size: 14px; }
.pcard__body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; padding-right: 30px; }
.pcard__name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--c-dark); overflow-wrap: anywhere; }
.pcard__desc {
  margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--stone-500);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pcard__price { font-size: 15px; font-weight: 700; color: var(--c-olive); letter-spacing: 0.01em; white-space: nowrap; }
.pcard__badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.badge--new { background: var(--c-terracotta); color: #fff; }
.badge--chef { background: rgba(212, 163, 115, 0.18); color: #8a5a2b; border-color: rgba(212, 163, 115, 0.6); }
.badge--vegan, .badge--vegetarian { background: rgba(40, 54, 24, 0.06); color: var(--c-olive); border-color: rgba(40, 54, 24, 0.25); }
.badge--gluten_free { background: rgba(212, 163, 115, 0.12); color: #6b4a1e; border-color: rgba(212, 163, 115, 0.5); }
.badge--spicy { background: rgba(217, 107, 79, 0.1); color: #a8452c; border-color: rgba(217, 107, 79, 0.45); }
.badge--on-image { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .5); box-shadow: var(--shadow-sm); }
.badge--new.badge--on-image { background: var(--c-terracotta); color: #fff; }
.pcard__fav {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--stone-400); background: transparent;
  transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.pcard__fav:hover { background: var(--c-sand); color: var(--amber-500); }
.pcard__fav:active { transform: scale(.9); }
.pcard__fav[aria-pressed="true"] { color: var(--amber-500); }
.pcard.is-unavailable .pcard__img { filter: grayscale(1); opacity: .8; }
.pcard.is-unavailable .pcard__name { color: var(--stone-500); }
.pcard.is-unavailable .pcard__price { color: var(--stone-400); text-decoration: line-through; }

.empty { text-align: center; padding: 36px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty__mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--c-sand); color: var(--c-olive);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.empty__title { font-size: 16px; font-weight: 700; color: var(--c-olive); }
.empty__text { font-size: 12px; color: var(--stone-500); max-width: 260px; }
.empty .btn { margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--c-olive); color: var(--c-cream); }
.btn--primary:hover { background: var(--c-olive-light); }
.btn--secondary { background: transparent; color: var(--c-olive); border: 1px solid rgba(40, 54, 24, 0.25); }
.btn--secondary:hover { background: rgba(40, 54, 24, 0.05); }
.btn--secondary[aria-pressed="true"] { background: var(--c-sand); border-color: var(--c-olive); }
.btn--secondary[aria-pressed="true"] .ico { color: var(--amber-500); }

/* ---------- Brand footer ---------- */
.brandfoot {
  margin-top: 16px; padding: 32px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; color: var(--stone-400);
}
.brandfoot__rule { width: 40px; height: 2px; border-radius: var(--r-full); background: rgba(212, 163, 115, 0.6); margin-bottom: 16px; }
.brandfoot__name { font-size: 16px; font-style: italic; font-weight: 700; color: var(--c-olive); }
.brandfoot__line { margin-top: 2px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }
.brandfoot__note { margin-top: 8px; font-size: 10px; color: var(--stone-400); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; z-index: 40; bottom: 96px;
  right: max(20px, calc(50% - var(--shell-w) / 2 + 20px));
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--c-olive); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .9; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.totop:hover { opacity: 1; }
.totop:active { transform: scale(.9); }
.totop.is-off { opacity: 0; visibility: hidden; transform: translateY(8px); }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: var(--shell-w); margin: 0 auto;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(232, 225, 215, 0.8);
  box-shadow: var(--shadow-nav);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-around;
}
.bottomnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px 6px; flex: 1 1 0; min-width: 0; color: var(--stone-400);
  transition: color .15s ease;
}
.bottomnav__item:hover { color: var(--c-olive); }
.bottomnav__item.is-active { color: var(--c-olive); }
.bottomnav__icon { position: relative; display: inline-flex; transition: transform .15s ease; }
.bottomnav__item:hover .bottomnav__icon { transform: scale(1.1); }
.bottomnav__dot { position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-terracotta); display: none; }
.bottomnav__item.is-active .bottomnav__dot { display: block; }
.bottomnav__label { margin-top: 2px; font-size: 11px; line-height: 1.2; font-weight: 400; letter-spacing: 0.01em; text-align: center; white-space: nowrap; }
.bottomnav__item.is-active .bottomnav__label { font-weight: 700; letter-spacing: 0.025em; }

/* ---------- Bottom sheet (product detail / info) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(28, 25, 23, .5);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--shell-w); margin: 0 auto;
  max-height: 92vh; max-height: 92dvh;
  background: var(--c-cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  display: flex; flex-direction: column; outline: none;
  overflow: hidden;
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__handle {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 40px; height: 4px; border-radius: var(--r-full); background: rgba(255, 255, 255, .85);
}
.sheet--info .sheet__handle { background: rgba(40, 54, 24, .2); }
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--c-olive); border: 1px solid var(--c-border);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.sheet__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-sand); overflow: hidden; }
.sheet__img { width: 100%; height: 100%; object-fit: cover; }
.sheet__badges { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.sheet__badges:empty { display: none; }
.sheet__body { padding: 18px var(--gutter) 24px; }
.sheet__body--info { padding-top: 40px; }
.sheet__category { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-terracotta); margin-bottom: 4px; }
.sheet__titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet__name { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--c-olive); overflow-wrap: anywhere; }
.sheet__price { flex-shrink: 0; font-size: 17px; font-weight: 700; color: var(--c-olive); letter-spacing: 0.02em; padding-top: 4px; }
.sheet__desc { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--stone-700); }
.sheet__section { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(40, 54, 24, 0.1); }
.sheet__h { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-olive); margin-bottom: 4px; }
.sheet__p { font-size: 13px; line-height: 1.5; color: var(--stone-600); }
.sheet__note { margin-top: 14px; font-size: 10px; color: var(--stone-400); }
.sheet__actions { margin-top: 18px; display: flex; gap: 10px; }
.sheet__actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 13px; }
.sheet__actions--wrap { flex-wrap: wrap; }
.sheet__actions--wrap .btn { flex: 1 1 calc(50% - 10px); }
.info__waiter {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md);
  background: rgba(217, 107, 79, 0.08); border: 1px solid rgba(217, 107, 79, 0.3);
  font-size: 12px; color: #a8452c;
}
.info__list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.info__item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--stone-600); }
.info__item .ico { color: var(--c-olive); margin-top: 1px; }
.info__item strong { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-olive); }
body.sheet-open { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 70; transform: translateX(-50%);
  background: var(--c-olive); color: var(--c-cream);
  padding: 10px 16px; border-radius: var(--r-full); font-size: 12px; font-weight: 700;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}

/* ---------- Product page (no-JS fallback / direct link) ---------- */
.product { padding: 8px var(--gutter) 0; }
.product__back { margin-bottom: 10px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c-olive); min-height: 32px; }
.pdetail { background: #fff; border: 1px solid rgba(232, 225, 215, 0.9); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.pdetail__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-sand); }
.pdetail__img { width: 100%; height: 100%; object-fit: cover; }
.pdetail__body { padding: 18px var(--gutter) 22px; }
.pdetail.is-unavailable .pdetail__img { filter: grayscale(1); }

/* ---------- 404 ---------- */
.not-found { padding: 48px var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.not-found__mark { width: 72px; height: 72px; border-radius: var(--r-xl); background: var(--c-olive); padding: 12px; margin-bottom: 8px; }
.not-found__mark svg { width: 100%; height: 100%; }
.not-found__title { font-size: 22px; font-weight: 700; color: var(--c-olive); }
.not-found__text { font-size: 13px; color: var(--stone-500); max-width: 280px; }
.not-found .btn { margin-top: 14px; }

/* ---------- Motion & small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 400px) {
  .bottomnav__label { font-size: 10px; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 16px; letter-spacing: 0.02em; }
  .bottomnav__item { padding: 4px 2px; }
  .bottomnav__label { font-size: 9.5px; }
  .catcard--hero .catcard__title { font-size: 21px; }
}
@media (min-width: 448px) {
  .shell { border-left-width: 1px; border-right-width: 1px; }
}
