:root {
  /* палітра з логотипа: червоний пакет, бордові контури, тілесний і кремовий фон */
  --red: #d7302e;
  --red-dark: #a3221f;
  --maroon: #5e1f2a;
  --maroon-deep: #45161f;
  --yellow: #f6d2b9;      /* колишній жовтий акцент → тілесний з лого */
  --yellow-soft: #fbe7d8;
  --cream: #fdf8ee;
  --ink: #3b1d22;
  --muted: #80676a;
  --line: #f0e1d4;
  --white: #fff;
  --green: #1f8a4c;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(120, 30, 10, .12);
}

* { box-sizing: border-box; }
/* атрибут hidden має перемагати display: flex/grid у стилях (рядок знижки, кнопки тощо) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1 "Rubik", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--cream); color: var(--maroon); box-shadow: 0 6px 0 #e0b9a0; }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 6px 0 var(--red-dark); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--block { width: 100%; }
.icon-btn { border: 0; background: var(--cream); width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; }

/* Верхня смужка */
.topbar {
  background: var(--maroon); color: var(--yellow-soft);
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: 13px; padding: 7px 16px; text-align: center;
}
.topbar__rate { color: var(--yellow); font-weight: 500; }

/* Шапка */
.header { background: var(--cream); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(94, 31, 42, .08); }
/* iPhone (Safari 26): під час прокрутки браузер може зсувати «липкий» хедер униз — кремова підкладка над ним ховає товари, що проїжджають зверху */
.header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--cream); pointer-events: none; }
.header__inner { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; flex-shrink: 0; }
.logo__img { width: 56px; height: 56px; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { color: var(--red); font-family: "Pacifico", cursive; font-weight: 400; font-size: var(--name-size, 26px); line-height: 1.15; }
.logo__tag { color: var(--maroon); font-weight: 700; font-size: 11px; letter-spacing: 2.4px; margin-top: .45em; }
/* у Pacifico довгі хвостики («р», «д»): відступ рахуємо від розміру назви */
.logo__name + .logo__tag { margin-top: calc(var(--name-size, 26px) * .32); }
.logo--small .logo__img { width: 44px; height: 44px; }
.logo--small { --name-size: 20px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 0 16px; height: 46px;
}
.search:focus-within { border-color: var(--yellow); }
.search input { border: 0; outline: 0; flex: 1; font: 400 16px "Rubik", sans-serif; background: transparent; min-width: 0; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white); border: 0; border-radius: 999px; padding: 0 18px; height: 46px;
  font: 700 16px "Rubik", sans-serif; cursor: pointer; flex-shrink: 0; box-shadow: 0 4px 0 var(--red-dark);
}
.cart-btn__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cart-btn__icon circle { fill: currentColor; stroke: none; }
.cart-btn__count {
  background: var(--cream); color: var(--red); border-radius: 999px;
  min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; padding: 0 6px;
}
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.15); } }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 45%, rgba(246,210,185,.35), transparent 45%),
    linear-gradient(135deg, var(--red) 0%, #b8262a 100%);
  color: var(--white); overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 64px 0 80px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 62px); font-weight: 900; }
.hero p { font-size: 18px; max-width: 520px; opacity: .95; }
.hero__kicker {
  display: inline-block; background: var(--yellow); color: var(--maroon);
  font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.hero__parcel { display: grid; place-items: center; }
.hero__logo {
  width: min(400px, 80vw); aspect-ratio: 1; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; padding: 6%;
  box-shadow: 0 30px 60px rgba(69, 22, 31, .35), 0 0 0 10px rgba(253, 248, 238, .18);
  animation: float 6s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.parcel {
  position: relative; width: min(340px, 80vw); aspect-ratio: 1.15;
  background: linear-gradient(160deg, #e2b77d, #c8955a); border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25), inset 0 -10px 0 rgba(0,0,0,.08);
  transform: rotate(-4deg);
}
.parcel__tape { position: absolute; left: 50%; top: 0; bottom: 0; width: 56px; transform: translateX(-50%); background: rgba(255, 211, 26, .85); }
.parcel__label {
  position: absolute; right: 18px; bottom: 22px; background: var(--white); color: var(--ink);
  padding: 12px 16px; border-radius: 8px; font-size: 14px; transform: rotate(3deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.float { position: absolute; font-size: 46px; animation: float 3.5s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.f1 { top: -30px; left: 10px; }
.f2 { top: -46px; right: 40px; animation-delay: .6s; }
.f3 { bottom: 30px; left: -30px; animation-delay: 1.2s; }
.f4 { top: 40%; right: -34px; animation-delay: 1.8s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Переваги */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: -36px; position: relative; z-index: 2;
}
.perk { display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.perk > span { font-size: 28px; }
.perk b { display: block; font-size: 15px; }
.perk small { color: var(--muted); font-size: 13px; }

/* Каталог */
.catalog { padding: 64px 0 40px; }
.catalog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog__head select {
  font: 500 15px "Rubik", sans-serif; padding: 10px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--white); width: auto;
}
/* Фільтри */
.catalog__tools { display: flex; align-items: center; gap: 10px; }
.fbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--white); color: var(--ink);
  font: 500 15px "Rubik", sans-serif; cursor: pointer;
}
.fbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fbtn b { background: var(--red); color: var(--white); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center; font-size: 12px; }
.fbtn b[hidden] { display: none; }
.fbtn.is-active { border-color: var(--red); color: var(--red); }
.active-f { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 20px; }
.active-f[hidden] { display: none; }
.achip {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px;
  background: var(--yellow-soft); color: var(--maroon); font: 500 14px "Rubik", sans-serif; cursor: pointer;
}
.achip span { font-size: 11px; opacity: .7; }
.achip--reset { background: transparent; color: var(--red); text-decoration: underline; }
.drawer.fdrawer { right: auto; left: 0; transform: translateX(-100%); z-index: 52; }
.drawer.fdrawer.is-open { transform: none; }
#fOverlay { z-index: 51; }
.fsec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
.fsec[hidden] { display: none; }
.fsec h4 { margin: 0 0 10px; font-size: 15px; color: var(--maroon); }
.fprice { display: flex; align-items: center; gap: 10px; }
.fprice input, .fsearch {
  width: 100%; min-width: 0; font: 500 16px "Rubik", sans-serif; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
}
.fprice input:focus, .fsearch:focus { outline: none; border-color: var(--red); }
.fsearch { margin-bottom: 8px; }
.fsearch[hidden] { display: none; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 8px 2px; cursor: pointer; font-size: 15px; }
.fopt input { width: 20px; height: 20px; accent-color: var(--red); flex-shrink: 0; margin: 0; }
.fopt span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fopt small { color: var(--muted); font-size: 13px; }
.fopt.is-off { opacity: .45; cursor: default; }
.fnone { font-size: 14px; margin: 8px 0; }
.fdrawer__foot { grid-template-columns: auto 1fr; }
.fdrawer__foot .btn { padding: 14px 18px; }
.fdrawer__foot .btn:disabled { opacity: .4; cursor: default; transform: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 24px; }
.chip {
  border: 2px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 8px 16px; font: 500 15px "Rubik", sans-serif; cursor: pointer;
}
.chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 2px 0 var(--line);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden;
}
/* фото вже квадратні з однаковими полями, тож просто заповнюємо квадрат */
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--yellow); color: var(--maroon);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__name { font-weight: 500; font-size: 15px; }
.card__desc { color: var(--muted); font-size: 13px; line-height: 1.35; }
.card__weight { color: var(--muted); font-size: 13px; }
.out { color: var(--muted); font-weight: 500; font-size: 14px; padding: 10px 0; }
.found { margin: -12px 0 16px; font-size: 14px; }
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.more-count { color: var(--muted); font-size: 13px; }
.more-wrap .btn[hidden] { display: none; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 8px; }
.price { font-weight: 900; font-size: 22px; color: var(--red); line-height: 1; }
.price small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 4px; }
.add {
  border: 0; background: var(--yellow); color: var(--maroon); width: 44px; height: 44px; border-radius: 14px;
  font-size: 22px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.add:hover { background: var(--red); color: var(--white); }
.card.is-out .card__img img { opacity: .45; filter: grayscale(1); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.ask-more { margin: 32px auto 0; max-width: 640px; text-align: center; padding: 20px 16px; border: 1px dashed var(--line, #e5d6cc); border-radius: 16px; }
.ask-more p { margin: 0 0 14px; }
.ask-more__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Кава */
.coffee { background: var(--maroon-deep); color: #fbeee0; padding: 72px 0; margin-top: 40px; }
.coffee__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.coffee p { opacity: .85; font-size: 17px; }
.coffee__list { display: grid; gap: 10px; }
.coffee-row {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px;
}
.coffee-row .dot { width: 48px; height: 48px; border-radius: 12px; background: var(--white); object-fit: contain; padding: 4px; flex-shrink: 0; }
.coffee-row .info { flex: 1; min-width: 0; }
.coffee-row .info small { display: block; opacity: .6; }
.coffee-row .price { color: var(--yellow); font-size: 18px; }
.coffee-row .add { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }

/* Магазин */
.store { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 72px 0; }
.store__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.store__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.store ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; font-size: 17px; }

.footer { background: var(--maroon); color: var(--cream); padding: 28px 0; }
.footer .logo__img { background: var(--cream); border-radius: 50%; padding: 3px; }
.footer .logo__name { color: var(--cream); }
.footer .logo__tag { color: var(--yellow); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer small { opacity: .85; }

/* Кошик */
.overlay { position: fixed; inset: 0; background: rgba(69, 22, 31, .5); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--white); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.total b { font-size: 26px; color: var(--red); font-weight: 900; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-item .dot { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; border: 1px solid var(--line); padding: 4px; flex-shrink: 0; }
.cart-item .info { flex: 1; min-width: 0; font-size: 14px; }
.cart-item .info b { display: block; color: var(--red); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--cream); font-size: 16px; cursor: pointer; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.cart-empty div { font-size: 56px; }

/* Модалка */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(69, 22, 31, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__box { background: var(--white); border-radius: 22px; width: min(560px, 100%); padding: 0 0 20px; display: grid; gap: 14px; }
.modal__box > *:not(.drawer__head) { margin-inline: 20px; }
/* у вікні з полями кнопка тягнеться по сітці: width: 100% разом з відступами виходила за край */
.modal__box > .btn--block { width: auto; }
.modal__box[hidden] { display: none; }
.modal__box--done { text-align: center; padding: 36px 24px; justify-items: center; }
.done__icon { font-size: 64px; }
fieldset { border: 0; padding: 0; display: grid; gap: 10px; }
legend { font-weight: 700; margin-bottom: 8px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); position: relative; }
input, select, textarea {
  font: 400 16px "Rubik", sans-serif; color: var(--ink); padding: 12px 14px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--white); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--yellow); }
input.is-invalid, select.is-invalid { border-color: var(--red); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 15px; }
.radio input { width: auto; }
.ac__list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: 4px 0 0; padding: 6px;
  list-style: none; background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 220px; overflow-y: auto;
}
.ac__list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.ac__list li:hover, .ac__list li.is-active { background: var(--yellow-soft); }
.ac__list li small { color: var(--muted); }
.form-error { color: var(--red); margin: 0; text-align: center; }
.promo { display: grid; gap: 4px; }
.promo label { display: block; }
.promo__row { display: flex; gap: 8px; }
.promo__row .btn { padding: 10px 18px; flex-shrink: 0; }
.promo__msg { margin: 0; font-size: 14px; }
.promo__msg.is-ok { color: #1f7a45; }
.promo__msg.is-bad { color: var(--red); }
.total--sub { font-size: 15px; color: var(--muted); }
.total--sub b { font-size: 18px; color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px;
  font-weight: 500; box-shadow: var(--shadow);
}

/* Картка товару */
.card__img { cursor: zoom-in; }
.card__name { color: inherit; text-decoration: none; }
.card__name:hover { color: var(--red); }
/* flex + margin: auto центрує картку, а якщо вона вища за екран — її можна прогорнути */
.pmodal { display: flex; flex-direction: column; align-items: center; padding: 32px 16px; }
.pmodal .pm { margin-block: auto; }
.pm {
  position: relative; background: var(--white); border-radius: 22px; width: min(920px, 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; box-shadow: var(--shadow);
  animation: pm-in .2s ease;
}
@keyframes pm-in { from { opacity: 0; transform: translateY(12px); } }
.pm__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pm__img { background: var(--white); border-right: 1px solid var(--line); display: grid; place-items: center; min-height: 420px; align-self: stretch; position: relative; }
/* фото по центру лівої половини, навіть коли текст праворуч довший */
.pm__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pm__body { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pm__meta { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 40px; }
.pm__meta span { background: var(--cream); color: var(--muted); font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.pm__name { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0; }
.pm__weight { color: var(--muted); font-size: 15px; }
.pm__about { margin: 0; font-size: 15px; line-height: 1.55; }
.pm__about[hidden] { display: none; }
.pm__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 4px 0 0; font-size: 14px; }
.pm__facts:empty { display: none; }
.pm__facts dt { color: var(--muted); }
.pm__facts dd { margin: 0; overflow-wrap: anywhere; }
.pm__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.pm__buy .price { font-size: 30px; }
.qty--lg button { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; }
.qty--lg span { min-width: 32px; font-size: 18px; }
.pm__note { font-size: 13px; margin: 0; }
@media (max-width: 720px) {
  .pmodal { padding: 0; }
  .pmodal .pm { margin-block: auto 0; }
  .pm { grid-template-columns: minmax(0, 1fr); border-radius: 22px 22px 0 0; min-height: 0; }
  .pm__img { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; min-height: 0; }
  .pm__img img { padding: 16px; }
  .pm__body { padding: 18px 16px 20px; }
}

/* Адаптив */
@media (max-width: 900px) {
  .hero__inner, .coffee__inner, .store { grid-template-columns: 1fr; }
  .hero__parcel { display: none; }
  .hero__inner { padding: 40px 0 64px; }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header__inner { flex-wrap: wrap; gap: 10px; }
  .logo { --name-size: 20px; }
  .logo__img { width: 44px; height: 44px; }
  .search { order: 3; flex-basis: 100%; height: 42px; }
  .cart-btn { margin-left: auto; height: 42px; }
  .cart-btn__label { display: none; }
  .perks { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__body { padding: 10px 12px 12px; }
  .price { font-size: 18px; }
  .add { width: 38px; height: 38px; }
  .row { grid-template-columns: 1fr; }
  /* 24 категорії: на телефоні гортаємо вбік, а не 8 рядків чипів */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .catalog__head { flex-wrap: wrap; gap: 12px; }
  .catalog__tools { flex: 1 1 100%; gap: 8px; }
  .catalog__head select { flex: 1; min-width: 0; padding: 10px; font-size: 15px; }
  .fbtn { flex-shrink: 0; }
  .drawer.fdrawer {
    top: auto; left: 0; right: 0; width: 100%; max-height: 88vh; max-height: 88dvh;
    border-radius: 22px 22px 0 0; transform: translateY(100%);
  }
  .drawer.fdrawer.is-open { transform: none; }
  .fdrawer__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .chip { flex-shrink: 0; }
  .topbar { gap: 6px; font-size: 12px; }
}
