/* =====================================================================
   Агромаркет «Врожай» — стилі вітрини. Mobile-first: базові стилі для
   телефона, далі @media для планшета (≥ 720px) і комп'ютера (≥ 1024px).
   ===================================================================== */

:root {
  --brand: #1f6b45;
  --brand-600: #18583a;
  --brand-800: #0f3a26;
  --brand-50: #eef6f0;
  --brand-100: #d8ebdf;
  --leaf: #4caf50;
  --accent: #f26b1d;
  --accent-600: #d95a10;
  --accent-50: #fff1e8;
  --danger: #d23b2f;
  --warning: #b7791f;
  --text: #17211b;
  --muted: #5d6b63;
  --faint: #8a968f;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --border: #e2e8e3;
  --border-strong: #cfe0d5;
  --surface-2: #f0f4f1;
  --text-2: #2b3830;
  --brand-solid: #1f6b45;
  --brand-solid-600: #18583a;
  --brand-deep: #0f3a26;
  --glass: rgba(255, 255, 255, .96);
  --media-bg: #fafbfa;
  --skel-1: #eef1ee;
  --skel-2: #f7f9f7;
  --ok: #18794e;
  --ok-50: #e6f6ec;
  --danger-50: #fdeceb;
  --danger-ink: #9b2a21;
  --warn-50: #fff6e0;
  --warn-ink: #7a5310;
  --chip-off: #eceeed;
  --star-off: #d9ddda;
  --mark: #fff3b0;
  --toast-bg: #17211b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 26, .06), 0 1px 3px rgba(16, 40, 26, .05);
  --shadow: 0 6px 24px rgba(16, 40, 26, .08);
  --shadow-lg: 0 18px 50px rgba(16, 40, 26, .16);
  --header-h: 64px;
  --tabbar-h: 64px;
  --container: 1240px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1.5px solid transparent; border-radius: 12px;
  background: var(--brand-solid); color: #fff; font-weight: 700; font-size: 15px;
  transition: background .15s, transform .1s, box-shadow .15s, border-color .15s;
  text-align: center; white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--brand-solid-600); color: #fff; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-600); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand-100); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 12px 24px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); position: relative;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }
.icon { width: 22px; height: 22px; flex: none; }
.badge-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.badge-count:empty, .badge-count[data-count="0"] { display: none; }

/* ---------- оголошення ---------- */
.announcement {
  background: var(--brand-deep); color: #e6f3ea; font-size: 13px; font-weight: 600;
  text-align: center; padding: 8px 16px;
}

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-main { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--brand-800); flex: none; }
.logo:hover { color: var(--brand-800); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.logo-text small { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-top: 3px; }
.header-catalog-btn { display: none; }
.header-search { display: none; flex: 1; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-phone { display: none; }
.header-cart-total { display: none; }
.header-mobile-search { padding-bottom: 10px; }

.search { position: relative; width: 100%; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 6px 0 14px;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search-field:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-50); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-field .icon { color: var(--faint); width: 20px; height: 20px; }
.search-field .search-submit { height: 34px; padding: 0 14px; min-height: 0; border-radius: 9px; font-size: 14px; }
.search-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; max-height: 70vh; overflow-y: auto;
}
.search-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--text); }
.search-item:hover, .search-item.active { background: var(--brand-50); color: var(--text); }
.search-item img, .search-item .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--bg); flex: none; }
.search-item .si-name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-item .si-meta { font-size: 12px; color: var(--muted); }
.search-item .si-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.search-item mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-all { display: block; padding: 12px 14px; text-align: center; font-weight: 700; border-top: 1px solid var(--border); }
.search-empty { padding: 18px; text-align: center; color: var(--muted); }

/* навігація категорій (десктоп) */
.cat-nav { display: none; }

/* ---------- нижня панель на телефоні ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; position: relative;
}
.tabbar .active { color: var(--brand); }
.tabbar .badge-count { top: 6px; right: calc(50% - 22px); }

/* ---------- бокова панель (меню категорій, фільтри) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 25, 17, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
  width: min(420px, 92vw); background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(-105%); transition: transform .25s ease, visibility 0s linear .25s;
  display: flex; flex-direction: column;
  /* закрита шухляда — поза порядком Tab і деревом доступності (після анімації виїзду) */
  visibility: hidden;
}
.drawer.right { left: auto; right: 0; transform: translateX(105%); }
.drawer.open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; flex: 1; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.drawer-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; gap: 10px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 18px; border: 0; background: none; text-align: left; color: var(--text); font-weight: 600;
}
.menu-list a:hover, .menu-list button:hover { background: var(--brand-50); color: var(--brand); }
.menu-list .menu-emoji { width: 28px; text-align: center; font-size: 20px; }
.menu-list .menu-count { margin-left: auto; color: var(--faint); font-size: 13px; font-weight: 600; }
.menu-list .chev { color: var(--faint); width: 18px; height: 18px; }
.menu-back { color: var(--brand) !important; font-weight: 800 !important; }

/* ---------- секції ---------- */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-link { font-weight: 700; white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- головна: банер ---------- */
.hero { padding: 16px 0 8px; }
.hero-box {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 100% 0%, #2f8a5a 0%, #1f6b45 45%, #0f3a26 100%);
  color: #fff; padding: 32px 22px; min-height: 260px; display: flex; align-items: center;
}
.hero-box.has-image { background-size: cover; background-position: center; }
.hero-box.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 40, 25, .85) 0%, rgba(10, 40, 25, .55) 55%, rgba(10, 40, 25, .15) 100%); }
.hero-content { position: relative; max-width: 560px; }
.hero h1 { font-size: 30px; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: .92; margin: 0 0 22px; }
.hero-decor { position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; opacity: .14; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.benefit { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.benefit-icon { font-size: 24px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--brand-50); border-radius: 12px; flex: none; }
.benefit b { display: block; font-size: 13.5px; line-height: 1.25; }
.benefit > div > span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }

/* категорії-плитки */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  min-height: 112px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--text); }
.cat-tile-emoji { font-size: 30px; line-height: 1; }
.cat-tile-img { position: absolute; right: -6px; bottom: -6px; width: 84px; height: 84px; object-fit: contain; opacity: .95; }
.cat-tile b { font-size: 14.5px; line-height: 1.25; position: relative; }
.cat-tile small { color: var(--muted); font-size: 12px; font-weight: 600; position: relative; }

/* ---------- картки товарів ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.product-row::-webkit-scrollbar { display: none; }
.product-row > * { scroll-snap-align: start; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.pcard:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--media-bg); }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; background: var(--brand-50); color: var(--brand); }
.badge-sale { background: var(--danger); color: #fff; }
.badge-out { background: var(--chip-off); color: var(--muted); }
.badge-hit { background: var(--accent); color: #fff; }
.pcard-wish {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--faint);
  box-shadow: var(--shadow-sm); transition: color .15s, transform .15s;
}
.pcard-wish:hover { color: var(--danger); transform: scale(1.08); }
.pcard-wish.on { color: var(--danger); }
.pcard-wish.on svg { fill: currentColor; }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.pcard-brand { font-size: 11.5px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; min-height: 17px; }
.pcard-name {
  color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.5em;
}
.pcard-name:hover { color: var(--brand); }
.pcard-foot { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.price { font-size: 18px; font-weight: 800; color: var(--text); white-space: nowrap; }
.price small { font-size: 13px; font-weight: 700; }
.price-old { font-size: 13px; color: var(--faint); text-decoration: line-through; font-weight: 600; margin-left: 6px; }
.price-sale { color: var(--danger); }
.pcard .btn { min-height: 40px; padding: 8px 10px; font-size: 14px; border-radius: 10px; white-space: normal; line-height: 1.2; min-width: 0; text-align: center; }
.pcard.out .pcard-media img { opacity: .55; filter: grayscale(.4); }

.qty {
  display: inline-flex; align-items: center; height: 40px;
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden;
}
.qty button { width: 38px; height: 100%; border: 0; background: transparent; font-size: 18px; font-weight: 700; color: var(--brand); }
.qty button:hover { background: var(--brand-50); }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 800; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pcard .qty { width: 100%; justify-content: space-between; }
.pcard .qty input { flex: 1; }

.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand-100); }
.placeholder-img svg { width: 46%; height: 46%; }

/* скелетони під час завантаження */
.skeleton { background: linear-gradient(90deg, var(--skel-1) 25%, var(--skel-2) 37%, var(--skel-1) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.pcard.is-skeleton .pcard-media { background: none; }
.pcard.is-skeleton .pcard-media::after { content: ""; position: absolute; inset: 10px; border-radius: 12px; background: inherit; }

/* ---------- відгуки ---------- */
.reviews-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rating-big { font-size: 36px; font-weight: 800; line-height: 1; }
.stars { color: #f5a524; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--star-off); }
.review-row { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.review-row::-webkit-scrollbar { display: none; }
.review { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand-solid); flex: none; }
.review-name { font-weight: 800; line-height: 1.2; }
.review-meta { font-size: 12.5px; color: var(--muted); }
.review-text { margin: 0; color: var(--text-2); }
.review-product { font-size: 12.5px; font-weight: 700; }
.review-reply { background: var(--brand-50); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.review-reply b { color: var(--brand); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 32px; color: var(--star-off); cursor: pointer; line-height: 1; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input label:active { transform: scale(.9); }
.star-input input:focus-visible + label { outline: 3px solid hsl(150 60% 45% / .55); outline-offset: 2px; border-radius: 6px; }

/* ---------- контакти ---------- */
.contacts-grid { display: grid; gap: 14px; }
.info-card { padding: 20px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; flex: none; color: var(--brand); }
.info-list b { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.hours li:last-child { border-bottom: 0; }
.hours li.today { color: var(--brand); font-weight: 800; }
.open-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; padding: 4px 10px; border-radius: 99px; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.open { color: var(--ok); background: var(--ok-50); }
.open-status.closed { color: var(--danger); background: var(--danger-50); }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: var(--brand-50); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: 14px; }
.social:hover { background: var(--brand-solid); color: #fff; }

/* ---------- підвал ---------- */
.site-footer { background: var(--brand-deep); color: #cfe3d6; padding: 36px 0 24px; margin-top: 32px; }
.site-footer a { color: #e7f3eb; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: 13px; color: #9fbfac; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.site-footer .logo { color: #fff; }
.site-footer .logo-text small { color: #9fbfac; }

/* ---------- хлібні крихти ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 14px 0 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { color: var(--faint); }

/* ---------- каталог ---------- */
.catalog-head { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; }
.catalog-head h1 { margin: 0; font-size: 24px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: 99px; background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; flex: none;
}
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.chip small { color: var(--faint); font-weight: 600; }
.chip .x { font-size: 16px; line-height: 1; margin-left: 2px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .count { color: var(--muted); font-size: 14px; flex-basis: 100%; }
.toolbar .select { flex: 1; min-width: 0; }
@media (min-width: 720px) {
  .toolbar .count { flex-basis: auto; margin-right: auto; }
  .toolbar .select { flex: none; }
}
.select {
  height: 40px; padding: 0 36px 0 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d6b63' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; font-weight: 600; font-size: 14px; max-width: 100%;
}
.catalog-layout { display: block; }
.filters { display: none; }
.filter-block { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filter-block:last-child { border-bottom: 0; }
.filter-block h4 { font-size: 14px; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.check small { margin-left: auto; color: var(--faint); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; height: 40px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 10px; }
.cat-tree a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--text); font-size: 14px; }
.cat-tree a:hover, .cat-tree a.active { color: var(--brand); font-weight: 700; }
.cat-tree small { color: var(--faint); }
.brand-search { width: 100%; height: 36px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 9px; margin-bottom: 6px; font-size: 14px; }
.brand-list { max-height: 260px; overflow-y: auto; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px 0 8px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center;
  border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand-solid); border-color: var(--brand); color: #fff; }
.pagination .dots { border: 0; background: none; min-width: 20px; }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state .big { font-size: 56px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* ---------- сторінка товару ---------- */
.product-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.gallery { position: relative; }
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  background: var(--media-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 1 / 1;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main > * { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .2s, width .2s; }
.gallery-dots span.active { background: var(--brand-solid); width: 20px; border-radius: 4px; }
.gallery-thumbs { display: none; gap: 8px; margin-top: 10px; }
.gallery-thumbs button { width: 72px; height: 72px; padding: 4px; border: 2px solid var(--border); border-radius: 12px; background: var(--media-bg); }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery .pcard-badges { top: 12px; left: 12px; z-index: 2; }
.product-info h1 { font-size: 22px; margin-bottom: 8px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.product-meta a { font-weight: 700; }
.buy-box { padding: 18px; display: grid; gap: 14px; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.buy-price .price { font-size: 30px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--muted); }
.buy-actions { display: flex; gap: 10px; }
.buy-actions .qty { height: 52px; border-radius: 14px; }
.buy-actions .qty button { width: 44px; }
.buy-actions .btn-lg { flex: 1; }
.buy-secondary { display: flex; gap: 8px; flex-wrap: wrap; }
.perks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks .ic { color: var(--brand); flex: none; margin-top: 1px; }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs button.active { color: var(--brand); border-color: var(--brand); }
.tab-panel { padding: 18px 0; }
.description { max-width: 820px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.description h3 { font-size: 16px; color: var(--brand-800); margin: 22px 0 8px; text-transform: none; }
.description h3:first-child { margin-top: 0; }
.description p { margin: 0 0 12px; }
.specs { width: 100%; border-collapse: collapse; max-width: 720px; font-size: 14.5px; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 40%; padding-right: 14px; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 65;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(16, 40, 26, .08);
  padding: 10px 16px; display: flex; align-items: center; gap: 12px; transform: translateY(120%); transition: transform .25s;
}
.sticky-buy.show { transform: none; }
.sticky-buy .price { font-size: 20px; }
.sticky-buy .btn { flex: 1; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 15, 11, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .1); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; color: #cfd8d2; font-weight: 700; }

/* ---------- форми ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.field label, .field .field-label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.field label .req { color: var(--danger); }
.input, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--surface); font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 100px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.field.invalid .input, .field.invalid .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 12.5px; }
.form-row { display: grid; gap: 0 14px; }
.option-cards { display: grid; gap: 10px; }
.option-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.option-card:hover { border-color: var(--brand-100); }
.option-card input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.option-card b { display: block; }
.option-card span { font-size: 13px; color: var(--muted); }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.option-card .oc-icon { margin-left: auto; font-size: 22px; }
.ac-list {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto;
}
.ac-list button { display: block; width: 100%; text-align: left; padding: 11px 14px; border: 0; background: none; font-size: 14.5px; }
.ac-list button:hover, .ac-list button.active { background: var(--brand-50); }
.ac-list small { color: var(--muted); display: block; font-size: 12.5px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- кошик і оформлення ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.cart-list { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-item-media { width: 76px; height: 76px; border-radius: 12px; background: var(--media-bg); overflow: hidden; display: block; }
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-name { font-weight: 700; color: var(--text); font-size: 14.5px; line-height: 1.35; }
.cart-item-meta { font-size: 12.5px; color: var(--muted); }
.cart-item-bottom { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-item-bottom .price { margin-left: auto; font-size: 17px; }
.cart-item .remove { color: var(--faint); }
.cart-item .remove:hover { color: var(--danger); background: var(--danger-50); }
.cart-item.unavailable { opacity: .7; }
.cart-item .warn { color: var(--danger); font-size: 13px; font-weight: 700; }
.summary { padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
/* Висока панель (дрібниці біля каси, бонуси) не ховає кнопку «Підтвердити» за краєм екрана */
@media (min-width: 1024px) { .summary { max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; } }
.summary h3 { margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.summary-row.total { font-size: 19px; font-weight: 800; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.summary-items { max-height: 320px; overflow-y: auto; margin-bottom: 8px; }
.summary-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.summary-item img, .summary-item .ph { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--media-bg); flex: none; }
.summary-item span { flex: 1; line-height: 1.3; }
.summary-item b { white-space: nowrap; }
.progress { height: 8px; border-radius: 99px; background: var(--brand-50); overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--leaf), var(--brand)); border-radius: inherit; transition: width .3s; }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-solid); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.checkout-section { padding: 18px; margin-bottom: 14px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.alert-error { background: var(--danger-50); color: var(--danger-ink); }
.alert-info { background: var(--brand-50); color: var(--brand-800); }
.alert-warn { background: var(--warn-50); color: var(--warn-ink); }

.success-box { text-align: center; padding: 32px 20px; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; }
.success-icon svg { width: 44px; height: 44px; }
.order-ref { display: inline-block; font-size: 22px; font-weight: 800; letter-spacing: .04em; background: var(--brand-50); color: var(--brand-800); padding: 8px 18px; border-radius: 12px; margin: 6px 0 14px; }

/* ---------- модальні вікна, сповіщення ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(10, 25, 17, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.modal { width: 100%; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: slide-up .25s; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 19px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); z-index: 300; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--toast-bg); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: slide-up .25s; pointer-events: auto;
}
.toast a { color: #9be0b4; margin-left: auto; font-weight: 800; white-space: nowrap; }
.toast.error { background: #9b2a21; }

/* ---------- планшет ---------- */
@media (min-width: 720px) {
  h1 { font-size: 30px; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .product-row { grid-auto-columns: 30%; gap: 14px; }
  .review-row { grid-auto-columns: 46%; }
  .hero-box { padding: 48px 40px; min-height: 320px; }
  .hero h1 { font-size: 40px; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .contacts-grid .map-wrap { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { max-width: 520px; border-radius: 22px; padding: 24px; }
  .cart-item { grid-template-columns: 96px 1fr; }
  .cart-item-media { width: 96px; height: 96px; }
  .option-cards.two { grid-template-columns: 1fr 1fr; }
  .gallery-thumbs { display: flex; }
  .gallery-dots { display: none; }
}

/* ---------- комп'ютер ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; font-size: 15.5px; }
  .tabbar, .header-mobile-search, .sticky-buy, .mobile-only { display: none !important; }
  .header-search { display: block; max-width: 640px; }
  .header-catalog-btn { display: inline-flex; }
  .header-main { gap: 18px; }
  .header-phone { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; color: var(--muted); margin-right: 8px; }
  .header-phone b { color: var(--text); font-size: 15px; }
  .header-cart-total { display: inline; font-weight: 800; font-size: 14px; margin-left: 4px; }
  .header-actions .icon-btn.with-label { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; }
  .cat-nav { display: block; border-top: 1px solid var(--border); }
  .cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow: hidden; height: 46px; align-items: center; }
  .cat-nav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
  .cat-nav a:hover { background: var(--brand-50); color: var(--brand); }
  .section { padding: 40px 0; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .cat-tile { min-height: 132px; padding: 18px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .product-row { grid-auto-columns: calc(25% - 12px); gap: 16px; }
  .catalog-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-row { grid-auto-columns: calc(33.333% - 8px); }
  .hero-box { padding: 64px 56px; min-height: 380px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 18px; }
  .catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 60px); max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; }
  .filters-btn { display: none !important; }
  .product-page { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 60px); }
  .product-info h1 { font-size: 28px; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .contacts-grid { grid-template-columns: 1fr 1fr 1.4fr; }
  .contacts-grid .map-wrap { grid-column: auto; }
  .map-frame { height: 100%; min-height: 340px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .toasts { bottom: 24px; }
  .pcard-body { padding: 12px 14px 14px; }
  .pcard-name { font-size: 14px; }
}

@media (min-width: 1280px) {
  .catalog-layout .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media print {
  .site-header, .tabbar, .site-footer, .sticky-buy, .toasts { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* =====================================================================
   Іконки-плитки та «живі» заглушки фото (колір задається --h)
   ===================================================================== */
.ico-tile {
  --h: 135;
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: hsl(var(--h) 55% 94%); color: hsl(var(--h) 42% 32%);
  font-size: 22px; line-height: 1;
}
.ico-tile .icon { width: 24px; height: 24px; }
.ico-tile.lg { width: 56px; height: 56px; border-radius: 16px; }
.ico-tile.lg .icon { width: 30px; height: 30px; }
.ico-tile.sm { width: 34px; height: 34px; border-radius: 10px; }
.ico-tile.sm .icon { width: 19px; height: 19px; }
.ico-tile.xs { width: 22px; height: 22px; border-radius: 7px; background: transparent; }
.ico-tile.xs .icon { width: 17px; height: 17px; }

.placeholder-img {
  --h: 135;
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    radial-gradient(circle at 30% 25%, hsl(var(--h) 70% 98%) 0%, transparent 55%),
    linear-gradient(150deg, hsl(var(--h) 55% 96%) 0%, hsl(var(--h) 45% 89%) 100%);
  color: hsl(var(--h) 38% 38%);
}
.placeholder-img .ph-icon { width: 42%; height: 42%; max-width: 120px; max-height: 120px; stroke-width: 1.4; opacity: .9; filter: drop-shadow(0 6px 10px hsl(var(--h) 40% 40% / .18)); }
.placeholder-img .ph-note { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .55; }
.search-item .ph .ph-note, .summary-item .ph .ph-note, .cart-item-media .ph-note, .ri-head .ph .ph-note { display: none; }
.search-item .ph, .summary-item .ph { display: block; overflow: hidden; }
.search-item .ph .ph-icon, .summary-item .ph .ph-icon, .ri-head .ph .ph-icon { width: 60%; height: 60%; }
.pcard-media { overflow: hidden; }
.pcard-media .placeholder-img { transition: transform .35s; }
.pcard:hover .pcard-media .placeholder-img { transform: scale(1.04); }
.gallery-main > .gallery-ph { cursor: default; }
.gallery-main .placeholder-img { border-radius: inherit; }
.gallery-main .placeholder-img .ph-icon { max-width: 180px; max-height: 180px; }
.gallery-main .placeholder-img .ph-note { font-size: 13px; }
.cat-tile { flex-direction: column; justify-content: space-between; }
.chip .ico-tile.xs { margin-left: -4px; }
.benefit .ico-tile { width: 42px; height: 42px; }
.benefit .ico-tile .icon { width: 22px; height: 22px; }

/* ---------- банер: статистика і вітрина категорій ---------- */
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stat {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px;
  backdrop-filter: blur(6px);
}
.hero-stat .icon { width: 22px; height: 22px; color: #a7e3b6; }
.hero-stat b { display: block; font-size: 16px; line-height: 1.1; }
.hero-stat span { display: block; font-size: 12px; opacity: .78; }
.hero-showcase { display: none; }
.showcase-card {
  --h: 135;
  display: flex; flex-direction: column; gap: 4px; padding: 18px;
  background: var(--surface); color: var(--text); border-radius: 20px;
  box-shadow: 0 20px 40px rgba(5, 30, 18, .28); transition: transform .3s;
  animation: float 6s ease-in-out infinite;
}
.showcase-card:hover { color: var(--text); transform: translateY(-4px) rotate(0deg) !important; }
.showcase-card b { font-size: 15px; line-height: 1.25; margin-top: 8px; }
.showcase-card small { color: var(--muted); font-weight: 600; }
.showcase-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: hsl(var(--h) 55% 93%); color: hsl(var(--h) 42% 32%); }
.showcase-icon .icon { width: 30px; height: 30px; }
.showcase-card.s0 { transform: rotate(-3deg); }
.showcase-card.s1 { transform: rotate(2deg) translateY(24px); animation-delay: -1.5s; }
.showcase-card.s2 { transform: rotate(2deg); animation-delay: -3s; }
.showcase-card.s3 { transform: rotate(-2deg) translateY(24px); animation-delay: -4.5s; }
@keyframes float { 50% { translate: 0 -8px; } }

/* ---------- рядки товарів за категоріями ---------- */
.section-title-ic { display: flex; align-items: center; gap: 12px; min-width: 0; }
.section-title-ic h2 { margin: 0; }
.row-nav { display: flex; align-items: center; gap: 4px; flex: none; }
.row-nav .icon-btn { display: none; border: 1.5px solid var(--border); width: 38px; height: 38px; border-radius: 50%; background: var(--surface); }
.row-nav .section-link { margin-left: 6px; }

/* ---------- плавна поява ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- мега-меню (комп'ютер) ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 24px 50px rgba(16, 40, 26, .16); z-index: 80; }
.mega-inner { display: grid; grid-template-columns: 300px 1fr; min-height: 420px; max-height: calc(100vh - 140px); }
.mega-roots { border-right: 1px solid var(--border); overflow-y: auto; padding: 10px 10px 10px 0; }
.mega-roots a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 14px; }
.mega-roots a span { flex: 1; line-height: 1.25; }
.mega-roots a .chev { width: 16px; height: 16px; color: var(--faint); opacity: 0; }
.mega-roots a.active { background: var(--brand-50); color: var(--brand); }
.mega-roots a.active .chev { opacity: 1; }
.mega-panel { padding: 20px 8px 20px 28px; overflow-y: auto; }
.mega-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mega-head h3 { margin: 0; font-size: 20px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.mega-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mega-col a { color: var(--muted); font-size: 14px; }
.mega-col a:hover { color: var(--brand); }
.mega-col .mega-title { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 800; font-size: 14.5px; margin-bottom: 2px; }
.mega-col .mega-title small { color: var(--faint); font-weight: 600; }
.mega-more { font-weight: 700; color: var(--brand) !important; }
.header-catalog-btn.active { background: var(--brand-deep); }

/* ---------- підвал: оплата ---------- */
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: #9fbfac; }
.footer-pay b { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #e7f3eb; font-weight: 700; }

@media (min-width: 1024px) {
  .hero-box { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; }
  .hero-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; padding: 10px 0 30px; }
  .row-nav .icon-btn { display: inline-grid; }
  .product-row { scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- компактний банер і переваги на телефоні ---------- */
@media (max-width: 719px) {
  .hero { padding-top: 12px; }
  .hero-box { padding: 24px 18px 20px; min-height: 0; border-radius: 20px; }
  .hero h1 { font-size: 27px; margin-bottom: 8px; }
  .hero p { font-size: 14.5px; margin-bottom: 16px; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions .btn { flex: 1; min-height: 48px; padding: 10px 12px; font-size: 14.5px; }
  .hero-stats { flex-wrap: nowrap; overflow-x: auto; margin: 16px -18px 0; padding: 0 18px; scrollbar-width: none; }
  .hero-stats::-webkit-scrollbar { display: none; }
  .hero-stat { flex: none; padding: 7px 12px 7px 9px; }
  .hero-stat b { font-size: 14.5px; }
  .hero-stat span { font-size: 11.5px; white-space: nowrap; }
  .hero-decor { width: 180px; height: 180px; right: -50px; bottom: -50px; }
  .benefits { display: flex; overflow-x: auto; gap: 8px; margin: 10px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .benefits::-webkit-scrollbar { display: none; }
  .benefit { flex: none; width: 230px; padding: 10px 12px; }
  .section { padding: 22px 0; }
  .section-head { margin-bottom: 12px; }
  h2 { font-size: 20px; }
  .section-head p { font-size: 13.5px; }
  .cat-tile { min-height: 104px; padding: 12px; }
  .cat-tile b { font-size: 13.5px; }
  .ico-tile.lg { width: 46px; height: 46px; border-radius: 14px; }
  .ico-tile.lg .icon { width: 26px; height: 26px; }
  .section-title-ic .ico-tile { width: 38px; height: 38px; }
  .row-nav .section-link { font-size: 14px; }
}
.hero-content { min-width: 0; width: 100%; }
@media (max-width: 719px) {
  .hero-actions .btn { min-width: 0; white-space: normal; line-height: 1.2; }
}

/* ---------- дуже вузькі телефони (iPhone SE 1, старі Android) ---------- */
@media (max-width: 374px) {
  .container { padding: 0 12px; }
  .header-main { gap: 2px; }
  .logo { gap: 7px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text b { font-size: 17px; }
  .logo-text small { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .product-grid { gap: 8px; }
  .pcard-body { padding: 8px 10px 10px; }
  .pcard-name { font-size: 13px; }
  .price { font-size: 16px; }
  .pcard .btn { font-size: 13px; padding: 8px 6px; }
  .pcard .btn .icon { width: 18px; height: 18px; }
  .hero h1 { font-size: 24px; }
  .hero-actions .btn { font-size: 13.5px; }
  .buy-actions { flex-wrap: wrap; }
  .buy-actions .btn-lg { min-width: 160px; }
  .tabbar a, .tabbar button { font-size: 10px; }
}
.contacts-grid { grid-template-columns: minmax(0, 1fr); }
.info-list a, .info-list div, .footer-grid a { overflow-wrap: anywhere; }
.section-head { flex-wrap: wrap; }
@media (min-width: 720px) { .contacts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .contacts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); } }

/* ---------- доступність: видимий фокус для клавіатури ---------- */
:focus-visible { outline: 3px solid hsl(150 60% 45% / .55); outline-offset: 2px; border-radius: 8px; }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { outline-offset: 3px; }
.input:focus-visible, .textarea:focus-visible, .search-field input:focus-visible { outline: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 500; background: var(--brand-solid); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* =====================================================================
   Особистий кабінет, замовлення зі статусами, промокод
   ===================================================================== */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 10px 0 20px; }
.auth-box { padding: 6px 18px 18px; }
.auth-tabs { margin-bottom: 16px; }
.auth-tabs button { flex: 1; font-size: 16px; }
.auth-perks { padding: 4px 4px 0; }
.auth-perks h2 { font-size: 20px; }
.account-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin: 10px 0 14px; }
.account-head h1 { font-size: 22px; margin: 0; }
.account-head > div { flex: 1; min-width: 160px; }
.discount-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--accent-50); color: var(--accent-600); font-weight: 800; font-size: 14px; }
.discount-badge .icon { width: 18px; height: 18px; }
.account-form { max-width: 720px; }
.order-card { padding: 16px 18px; margin-bottom: 12px; display: grid; gap: 12px; }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 13px; white-space: nowrap; }
.status-pill.done { background: var(--ok-50); color: var(--ok); }
.status-pill.bad { background: var(--danger-50); color: var(--danger); }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; }
.steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--brand-solid); }
.steps li span { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); position: relative; z-index: 1; }
.steps li.done span { background: var(--brand-solid); border-color: var(--brand); }
.steps li.current span { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.steps small { font-size: 11px; line-height: 1.2; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.steps li.done small, .steps li.current small { color: var(--brand-800); }
.order-status-text { margin: 0; font-weight: 700; }
.order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.order-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; }
.order-items a { color: var(--text); }
.order-items span { color: var(--muted); white-space: nowrap; }
.order-total { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 10px; font-size: 15px; }
.order-card .btn { justify-self: start; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--brand); font-weight: 700; padding: 6px 0; }
.link-btn .icon { width: 18px; height: 18px; }
.promo-box { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.promo-field { display: flex; gap: 8px; margin-top: 6px; }
.promo-field .input { min-height: 44px; font-size: 15px; }
.field-hint.ok { color: var(--ok); font-weight: 700; }
.field-hint.bad { color: var(--danger); font-weight: 700; }
.discount-row { color: var(--ok); font-weight: 700; }
#account-hint .alert { margin-bottom: 14px; }
@media (min-width: 900px) {
  .auth-wrap { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .auth-perks { padding-top: 30px; }
}
.badge-new { background: #1e88e5; color: #fff; }
.info-page { padding: 22px 24px; margin-top: 4px; }
.social[data-callback] { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
/* найвужчі екрани (Galaxy Fold, 280–340 px): компактна шапка */
@media (max-width: 340px) {
  .header-actions .icon-btn, .header-main > .icon-btn { width: 36px; height: 36px; }
  .header-actions .icon .icon, .header-actions .icon-btn .icon { width: 20px; height: 20px; }
  .logo-text b { font-size: 15px; }
}
@media (max-width: 300px) {
  .logo-text { display: none; }
}
@media (max-width: 374px) {
  .benefits { margin: 10px -12px 0; padding: 0 12px 4px; }
}

/* SEO-текст категорії під товарами (редагується в адмінці → Категорії) */
.seo-text { margin: 36px 0 8px; }
.seo-text .card { padding: clamp(18px, 3vw, 28px); }
.seo-text h3:first-child { margin-top: 0; }
.seo-text p { color: var(--text-2); }
.seo-text .card.description { max-width: none; }
.seo-text p, .seo-text h3 { max-width: 900px; }

/* ---------- соцмережі: фірмові кнопки з логотипами ---------- */
.socials { gap: 10px; }
.social, .site-footer .social {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 700; font-size: 14px; line-height: 1;
  text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.social:hover { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: 0 6px 18px rgba(16, 40, 26, .1); transform: translateY(-1px); }
.social-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--brand-solid); }
.social-ic svg { width: 18px; height: 18px; }
.social-ic .icon { width: 17px; height: 17px; }
.social-facebook .social-ic { background: #1877f2; }
.social-instagram .social-ic { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 6%, #fd5949 45%, #d6249f 62%, #285aeb 92%); }
.social-telegram .social-ic { background: #229ed9; }
.social-viber .social-ic { background: #7360f2; }
.social-tiktok .social-ic { background: #111; }
.social-call .social-ic { background: var(--brand-solid); }
/* у темному підвалі — напівпрозорі «скляні» кнопки */
.site-footer .social { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.site-footer .social:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .28); color: #fff; box-shadow: none; }
.site-footer .socials { margin-top: 16px; }

/* ---------- ряди кнопок-фільтрів: усе видно, нічого не ховається за краєм ---------- */
.chips { flex-wrap: wrap; overflow: visible; padding: 2px 0 12px; }
.chip { flex: 0 1 auto; max-width: 100%; height: auto; min-height: 36px; padding: 6px 14px; white-space: normal; line-height: 1.25; text-align: left; }
.chip small { flex: none; }
.chip-more { display: none; border-style: dashed; color: var(--brand); background: var(--brand-50); font-weight: 700; cursor: pointer; font-family: inherit; }
@media (max-width: 767px) {
  #subcats:not(.open) .chip:nth-child(n+9):not(.chip-more) { display: none; }
  .chip-more { display: inline-flex; }
}
/* рядок категорій у шапці: лише ті, що вміщаються повністю */
.cat-nav li[hidden] { display: none; }
.cat-nav-all { margin-left: auto; }
.cat-nav-all a { color: var(--brand) !important; font-weight: 700 !important; }

/* ---------- виправлення верстки ---------- */
@media (min-width: 720px) and (max-width: 1023px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* телефон: показники банера і переваги — компактною сіткою, нічого не обрізано краєм */
@media (max-width: 719px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; margin: 16px 0 0; padding: 0; }
  .hero-stat { min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 9px; }
  .hero-stat .icon { width: 18px; height: 18px; }
  .hero-stat b { font-size: 14px; }
  .hero-stat span { white-space: normal; font-size: 10.5px; line-height: 1.25; }
  .benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 10px 0 0; padding: 0; }
  .benefit { width: auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px; }
  .benefit .ico-tile { width: 36px; height: 36px; }
  .benefit .ico-tile .icon { width: 19px; height: 19px; }
  .benefit b { font-size: 13px; }
  .benefit > div > span { font-size: 11.5px; }
}
/* переходи на розділи (#reviews, #contacts): заголовок не ховається під закріпленою шапкою */
html { scroll-padding-top: 140px; }
@media (min-width: 1024px) { html { scroll-padding-top: 140px; } }
/* сторінка товару: вкладки і другорядні кнопки — без обрізаних слів */
.buy-secondary .btn { flex: 1 1 auto; justify-content: center; }
.buy-secondary .btn-ghost { border: 1.5px solid var(--border); }
@media (max-width: 719px) {
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border-bottom: 0; overflow: visible; }
  .tabs button { white-space: normal; padding: 10px 8px; border: 1.5px solid var(--border); border-radius: 12px; margin: 0; background: var(--surface); font-size: 14px; line-height: 1.2; }
  .tabs button.active { background: var(--brand-50); border-color: var(--brand); }
}
/* іконки замість емодзі */
.icon.ej { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.oc-icon .icon.ej { width: 26px; height: 26px; color: var(--brand); }
.empty-state .big .icon.ej { width: 56px; height: 56px; color: var(--brand); stroke-width: 1.6; }
.toast .icon.ej { color: #a7e3b6; }
.alert .icon.ej { width: 18px; height: 18px; }
/* стрілки каруселей: на краях — бліді, якщо все вміщається — сховані */
.row-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.row-nav.no-scroll .icon-btn { display: none !important; }
.row-nav .icon-btn:not(:disabled):hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.section-head { gap: 12px; }
/* мега-меню: на невисоких екранах (ноутбук 768 px) колонки прокручуються, нічого не зникає за низом екрана */
.mega-inner { grid-template-rows: minmax(0, 1fr); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow: hidden; }
.mega-roots, .mega-panel { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }
/* стрілки каруселей — на будь-якій ширині, якщо є мишка (ноутбук, вузьке вікно браузера) */
@media (hover: hover) and (pointer: fine) {
  .row-nav .icon-btn { display: inline-grid; }
}
/* ---------- телефони: зручність ---------- */
@media (max-width: 1023px) {
  /* iPhone не збільшує сторінку при натисканні на поле, якщо шрифт ≥16px */
  input:not([type=checkbox]):not([type=radio]), select, textarea, .input, .select, .search-field input, .qty input { font-size: 16px !important; }
  .search-field .search-submit { height: 38px; padding: 0 16px; }
  .tabbar a, .tabbar button { font-size: 11px; }
}
@media (max-width: 719px) {
  .hero-stat span { font-size: 11px; }
}
#promo-toggle { min-height: 40px; display: inline-flex; align-items: center; }
.mega-col .mega-title { align-items: flex-start; }
.mega-col .mega-title small { white-space: nowrap; }

/* =====================================================================
   Темна тема. Вмикається атрибутом data-theme="dark" на <html>
   (assets/js/theme.js: світла / темна / як у системі телефона).
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #4fbf80;
  --brand-600: #72d39c;
  --brand-800: #bfe8cf;
  --brand-50: rgba(79, 191, 128, .12);
  --brand-100: rgba(79, 191, 128, .34);
  --brand-solid: #23804f;
  --brand-solid-600: #1b6b41;
  --brand-deep: #08110d;
  --accent-50: rgba(242, 107, 29, .14);
  --danger: #f0675b;
  --warning: #e0a84a;
  --text: #e3ebe5;
  --text-2: #c9d6ce;
  --muted: #9cafa3;
  --faint: #76897d;
  --bg: #0c1410;
  --surface: #141f19;
  --surface-2: #1a2821;
  --border: #253629;
  --border-strong: #3a5645;
  --glass: rgba(18, 28, 23, .92);
  --media-bg: #e4e9e5;
  --skel-1: #18241e;
  --skel-2: #213029;
  --ok: #5fd394;
  --ok-50: rgba(95, 211, 148, .13);
  --danger-50: rgba(240, 103, 91, .14);
  --danger-ink: #ff9d93;
  --warn-50: rgba(224, 168, 74, .14);
  --warn-ink: #f0c47a;
  --chip-off: #26342c;
  --star-off: #3a4a40;
  --mark: rgba(255, 214, 0, .28);
  --toast-bg: #26372d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
}
/* плавне перемикання (лише в момент зміни теми) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .3s, border-color .3s, color .3s, fill .3s !important;
}
:root[data-theme="dark"] ::placeholder { color: var(--faint); }
:root[data-theme="dark"] .announcement,
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--border); }
:root[data-theme="dark"] .announcement { border-top: 0; border-bottom: 1px solid var(--border); }
:root[data-theme="dark"] .header-catalog-btn.active { background: var(--brand-solid-600); }
:root[data-theme="dark"] .hero-box { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
/* Фото товарів зазвичай на білому тлі — показуємо їх на світлій «вітринній» плитці,
   а multiply прибирає білий прямокутник навколо товару */
:root[data-theme="dark"] .pcard-media img,
:root[data-theme="dark"] .gallery-main img,
:root[data-theme="dark"] .gallery-thumbs img,
:root[data-theme="dark"] .cart-item-media img,
:root[data-theme="dark"] .summary-item img,
:root[data-theme="dark"] .search-item img,
:root[data-theme="dark"] .showcase-card img { mix-blend-mode: multiply; }
:root[data-theme="dark"] .search-item img { background: var(--media-bg); }
:root[data-theme="dark"] .placeholder-img {
  background:
    radial-gradient(circle at 30% 25%, hsl(var(--h) 30% 24%) 0%, transparent 55%),
    linear-gradient(150deg, hsl(var(--h) 28% 17%) 0%, hsl(var(--h) 24% 12%) 100%);
  color: hsl(var(--h) 40% 66%);
}
:root[data-theme="dark"] .pcard-media:has(.placeholder-img),
:root[data-theme="dark"] .cart-item-media:has(.placeholder-img) { background: var(--surface-2); }
:root[data-theme="dark"] .social-tiktok .social-ic { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
:root[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239cafa3' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] iframe.map-frame { filter: invert(.9) hue-rotate(180deg) saturate(.7); }

/* ---------- перемикач теми ---------- */
.theme-btn [data-i="sun"] { display: none; }
:root[data-theme="dark"] .theme-btn [data-i="sun"] { display: block; }
:root[data-theme="dark"] .theme-btn [data-i="moon"] { display: none; }
.header-actions .theme-btn { display: none; }
@media (min-width: 720px) { .header-actions .theme-btn { display: inline-grid; } }
.drawer-foot .theme-btn { flex: none; width: 48px; height: 48px; border: 1.5px solid var(--border); }
.theme-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: #cfe3d6; font-size: 13px; font-weight: 700;
}
.theme-switch button .icon { width: 16px; height: 16px; }
.theme-switch button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.theme-switch button[aria-pressed="true"] { background: #fff; color: #0f3a26; }
:root[data-theme="dark"] .theme-switch button[aria-pressed="true"] { background: var(--brand-solid); color: #fff; }
.footer-bottom { align-items: center; }
@media (max-width: 719px) {
  .theme-switch { width: 100%; }
  .theme-switch button { flex: 1; justify-content: center; min-height: 40px; }
}
:root[data-theme="dark"] .ico-tile,
:root[data-theme="dark"] .showcase-icon { background: hsl(var(--h) 32% 20%); color: hsl(var(--h) 55% 72%); }
/* поля без власного фону не мають отримувати сірий системний фон браузера (нульова специфічність — будь-яке правило з класом важливіше) */
:where(:root[data-theme="dark"]) :is(input, textarea) { background-color: var(--surface); }
:root[data-theme="dark"] .pcard-wish { background: rgba(20, 31, 25, .82); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .pcard-cmp:not(.on) { background: rgba(20, 31, 25, .82); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
/* шапка 1024–1200px: телефон і сума кошика — в один рядок, стискається лише пошук */
.header-phone b, .header-cart-total { white-space: nowrap; }
.header-search { min-width: 0; }

/* ---------- фільтр ціни: подвійний повзунок ---------- */
.price-filter { display: grid; gap: 12px; }
.pf-values { display: grid; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); align-items: center; gap: 6px; }
.pf-field { position: relative; display: block; min-width: 0; }
.pf-field span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--faint); pointer-events: none; }
.pf-field input {
  width: 100%; height: 42px; padding: 0 10px 0 32px; border: 1.5px solid var(--border); border-radius: 11px;
  background: var(--surface); font-weight: 800; font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.pf-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.pf-dash { height: 2px; border-radius: 2px; background: var(--border-strong); }
.pf-slider { position: relative; height: 28px; margin: 0 4px; }
.pf-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--border); }
.pf-fill { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: 4px; background: linear-gradient(90deg, var(--leaf), var(--brand)); }
.pf-slider input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; z-index: 2;
}
.pf-slider input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.pf-slider input[type=range]::-moz-range-track { background: none; border: 0; }
.pf-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand);
  box-shadow: 0 2px 8px rgba(16, 40, 26, .22); transition: transform .12s, box-shadow .12s;
}
.pf-slider input[type=range]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(16, 40, 26, .22);
}
.pf-slider input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); box-shadow: 0 0 0 6px var(--brand-50), 0 2px 8px rgba(16, 40, 26, .22); }
.pf-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--brand-100); }
.pf-scale { display: flex; justify-content: space-between; margin-top: -8px; font-size: 12px; font-weight: 600; color: var(--faint); }
.pf-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip {
  min-height: 34px; padding: 4px 12px; border: 1.5px solid var(--border); border-radius: 99px; background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.pf-chip:hover { border-color: var(--brand); color: var(--brand); }
.pf-chip.active { background: var(--brand-solid); border-color: var(--brand-solid); color: #fff; }
@media (max-width: 719px) {
  .pf-slider input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; }
  .pf-slider { height: 32px; }
  .pf-slider input[type=range] { height: 32px; }
  .pf-track { top: 14px; }
  .pf-chip { min-height: 38px; }
}

/* =====================================================================
   Сезони та акції (адмінка → «🎉 Сезони та акції»)
   ===================================================================== */
:root { --hero-bg: radial-gradient(120% 140% at 100% 0%, #2f8a5a 0%, #1f6b45 45%, #0f3a26 100%); --bar-bg: var(--brand-deep); }
.hero-box:not(.has-image) { background: var(--hero-bg); }
:root[data-season="winter"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #3b7fa6 0%, #1f5675 45%, #0e2c40 100%); --bar-bg: #123a52; }
:root[data-season="spring"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #5aa86a 0%, #2c7a4b 45%, #164a30 100%); --bar-bg: #1d5a39; }
:root[data-season="summer"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #c08a1e 0%, #3f7d32 48%, #1c4a24 100%); --bar-bg: #2d5f22; }
:root[data-season="autumn"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #c0662a 0%, #8a4316 45%, #3d2210 100%); --bar-bg: #6b3410; }
:root[data-season="newyear"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #b8342c 0%, #1f5a3c 55%, #0c2b1d 100%); --bar-bg: linear-gradient(90deg, #8f1f1f, #1f5a3c); }
:root[data-season="easter"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #9bbf4a 0%, #4f8c3a 45%, #2a5226 100%); --bar-bg: #4b7a2a; }
:root[data-season="ua"] { --hero-bg: linear-gradient(160deg, #0b57b7 0%, #0b57b7 62%, #f5c400 62%, #f5c400 100%); --bar-bg: linear-gradient(90deg, #0b57b7, #0a4a9c); }
:root[data-season="blackfriday"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #3a3a3a 0%, #161616 55%, #050505 100%); --bar-bg: #111; }
:root[data-season="harvest"] { --hero-bg: radial-gradient(120% 140% at 100% 0%, #d4a637 0%, #8f6a1c 45%, #4a3510 100%); --bar-bg: #7a5a14; }
:root[data-season="ua"] .hero-box:not(.has-image) .hero-content { text-shadow: 0 1px 3px rgba(0, 20, 60, .35); }
.announcement { background: var(--bar-bg); }

/* смужка акції вгорі */
.announcement.promo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 8px 16px; color: #fff; }
.pb-main { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; }
.pb-ic { font-size: 15px; line-height: 1; }
.pb-badge { padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px; }
.pb-code { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; opacity: .95; }
.promo-code {
  display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 9px; border-radius: 8px;
  border: 1.5px dashed rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .04em;
}
.promo-code .icon { width: 14px; height: 14px; }
.promo-code:hover { background: rgba(255, 255, 255, .22); }
.pb-timer { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; font-weight: 700; }
.pb-timer .icon { width: 15px; height: 15px; }
.pb-link { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pb-link:hover { color: #fff; opacity: .85; }
@media (max-width: 719px) {
  /* на телефоні — один рядок: назва (обрізається), знижка, код; таймер — у банері головної */
  .pb-link, .pb-timer, .pb-code > span { display: none; }
  .announcement.promo-bar { flex-wrap: nowrap; gap: 8px; padding: 7px 12px; font-size: 12.5px; }
  .pb-main { flex-wrap: nowrap; min-width: 0; gap: 6px; }
  .pb-main b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pb-badge, .pb-code, .pb-ic { flex: none; }
  .promo-code { min-height: 36px; padding: 0 9px; font-size: 12px; }
  .announcement.promo-bar { padding-top: 4px; padding-bottom: 4px; }
  .hero-promo { gap: 6px; margin-bottom: 12px; }
  .hp-badge { font-size: 16px; padding: 5px 10px; }
  .hp-code, .hp-timer, .hp-note { font-size: 12.5px; padding: 4px 8px; }
}

/* блок акції в банері головної */
.hero-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.hp-badge { padding: 6px 12px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; line-height: 1; box-shadow: 0 6px 18px rgba(242, 107, 29, .35); }
.hp-code, .hp-timer, .hp-note { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: 13.5px; font-weight: 600; }
.hp-timer .icon { width: 16px; height: 16px; }
.hp-timer b { font-variant-numeric: tabular-nums; }

/* сніжинки, пелюстки, листя — лише в банері, під текстом */
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-box > .hero-content, .hero-box > .hero-showcase { position: relative; z-index: 1; }
.hero-fx i { position: absolute; top: -24px; left: var(--x); width: calc(10px * var(--s)); height: calc(10px * var(--s)); animation: fx-fall var(--d) linear var(--delay) infinite; opacity: .85; }
.fx-snow i { border-radius: 50%; background: #fff; filter: blur(.6px); }
.fx-petals i { width: calc(12px * var(--s)); height: calc(8px * var(--s)); border-radius: 80% 0 80% 0; background: #ffc7dc; }
.fx-leaves i { width: calc(14px * var(--s)); height: calc(10px * var(--s)); border-radius: 0 80% 0 80%; background: #f2a541; }
.fx-leaves i:nth-child(3n) { background: #d9682b; }
.fx-leaves i:nth-child(4n) { background: #e8c24a; }
.fx-sparkles i { border-radius: 50%; background: #ffe58a; box-shadow: 0 0 8px #ffe58a; animation-name: fx-rise; top: auto; bottom: -20px; opacity: .7; }
:root[data-season="ua"] .fx-sparkles i:nth-child(2n) { background: #fff; box-shadow: 0 0 8px #fff; }
@keyframes fx-fall { to { transform: translate(40px, 420px) rotate(320deg); } }
@keyframes fx-rise { to { transform: translate(-20px, -420px); opacity: 0; } }

/* нагадування про кошик */
.cart-reminder {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 10px 10px 14px; border-radius: var(--radius);
  background: var(--accent-50); border: 1px solid rgba(242, 107, 29, .25);
}
.cr-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.cr-ic .icon { width: 20px; height: 20px; }
.cr-text { flex: 1; min-width: 0; font-size: 14px; }
.cr-close { width: 36px; height: 36px; flex: none; }
@media (max-width: 519px) { .cart-reminder { flex-wrap: wrap; } .cr-text { flex-basis: calc(100% - 100px); } .cart-reminder .btn { order: 3; flex: 1; } }

/* календар садівника */
.planting { padding-top: 8px; }
.planting-card { padding: clamp(18px, 3vw, 26px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-50), var(--surface)); border: 1px solid var(--border); }
.planting-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.planting-head h2 { margin: 0; }
.planting-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 26px; flex: none; }
.planting-kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.planting-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* до безкоштовної доставки */
.free-bar { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--brand-50); }
.fb-text { font-size: 13.5px; margin-bottom: 8px; }
.fb-track { height: 8px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.fb-track span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--leaf), var(--brand)); transition: width .4s; }
.free-bar.done { background: var(--ok-50); }

/* «залишилось N шт» */
.badge-low { background: #fff4e5; color: #a24c00; }
:root[data-theme="dark"] .badge-low { background: rgba(242, 107, 29, .2); color: #ffb36b; }
/* темна тема: достатній контраст кольорових позначок */
:root[data-theme="dark"] .stock-low, :root[data-theme="dark"] .discount-badge { color: #ffb36b; }
:root[data-theme="dark"] .badge-sale { background: #c0392b; color: #fff; }
.stock-low { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--accent-600); }

/* плаваюча кнопка «Консультація» */
.fab-contact { position: fixed; right: 16px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
/* відкрите мегаменю: кнопка чату не перекриває його нижні посилання */
body.mega-open .fab-contact { visibility: hidden; }
.fab-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border: 0; border-radius: 99px;
  background: var(--brand-solid); color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 10px 26px rgba(16, 60, 36, .35);
}
.fab-btn:hover { background: var(--brand-solid-600); }
.fab-btn .icon { width: 22px; height: 22px; }
.fab-menu { display: grid; gap: 4px; min-width: 230px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.fab-menu b { font-size: 14px; padding: 2px 6px 6px; }
.fab-menu a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); font-weight: 700; }
.fab-menu a:hover { background: var(--brand-50); color: var(--brand); }
.fab-menu a .icon { width: 20px; height: 20px; color: var(--brand); }
.fab-menu small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
@media (max-width: 1023px) {
  .fab-contact { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); right: 12px; }
  .fab-btn { width: 50px; padding: 0; justify-content: center; }
  .fab-btn span { display: none; }
  body[data-page="product"] .fab-contact { bottom: calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom)); }
  /* липка панель «У кошик» показана — місце під нею, щоб не закривала низ футера */
  body.has-sticky-buy { padding-bottom: calc(var(--tabbar-h) + 72px + env(safe-area-inset-bottom)); }
}
@media print { .fab-contact, .hero-fx { display: none !important; } }

/* =====================================================================
   Опт, бонуси, «Купують разом», відгуки з фото, Telegram, блог
   ===================================================================== */
/* опт */
.ws-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.ws-price { color: var(--brand); }
.ws-note { font-size: 12.5px; font-weight: 700; color: var(--brand); margin-top: 2px; }
.ws-note.muted { color: var(--muted); font-weight: 600; }
.ws-tiers { display: grid; gap: 4px; padding: 10px 12px; border: 1.5px dashed var(--brand-100); border-radius: 12px; background: var(--brand-50); font-size: 13.5px; }
.ws-tiers > b { font-size: 13.5px; }
.ws-tiers span { color: var(--text-2); transition: color .15s; }
.ws-tiers span.on { color: var(--brand); font-weight: 700; }
.ws-tiers span.on::after { content: " ✓"; }
.ws-tiers small { color: var(--muted); }

/* бонуси */
.bonus-earn { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-50); color: var(--text); font-size: 13.5px; }
.bonus-earn a { font-weight: 700; }
.bonus-toggle { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; }
.bonus-toggle:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.bonus-toggle input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.bonus-toggle b { display: block; font-size: 14px; }
.bonus-toggle small { display: block; color: var(--muted); font-size: 12.5px; }
.account-extras { display: grid; gap: 12px; margin: 14px 0; }
@media (min-width: 720px) { .account-extras:has(> :nth-child(2)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bonus-card { padding: 16px 18px; background: linear-gradient(135deg, var(--accent-50), var(--surface)); }
.bonus-top { display: flex; align-items: center; gap: 12px; }
.bonus-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface); box-shadow: var(--shadow-sm); flex: none; }
.bonus-balance { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; }
.bonus-balance small { font-size: 14px; font-weight: 700; color: var(--muted); }
.bonus-card details summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--brand); }
.bonus-history { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.bonus-history li { display: flex; justify-content: space-between; gap: 10px; }
.bonus-history small { display: block; color: var(--muted); font-size: 12px; }
.bonus-history .plus { color: var(--ok); }
.bonus-history .minus { color: var(--danger); }

/* Telegram для покупців */
.tg-follow { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px 14px; border-radius: 14px; background: #e8f4fd; border: 1px solid #c4e2f7; color: var(--text); text-align: left; }
.tg-follow:hover { color: var(--text); border-color: #229ed9; }
.tg-follow b { display: block; }
.tg-follow small { display: block; color: var(--muted); font-size: 12.5px; }
.tg-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #229ed9; color: #fff; flex: none; }
.tg-ic .icon { width: 22px; height: 22px; margin-left: -2px; }
:root[data-theme="dark"] .tg-follow { background: rgba(34, 158, 217, .12); border-color: rgba(34, 158, 217, .35); }

/* «Купують разом» */
.cross-sell { padding-top: 8px; }
.cart-cross { margin-top: 18px; }
.cart-cross h3 { margin-bottom: 10px; }

/* відгуки з фото */
.review-verified { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 2px 9px; border-radius: 99px; background: var(--ok-50); color: var(--ok); font-size: 12px; font-weight: 800; }
.review-verified .icon { width: 14px; height: 14px; }
.review-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.review-photo { width: 68px; height: 68px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--media-bg); cursor: zoom-in; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-thumbs { display: contents; }
.photo-thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--media-bg); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.photo-thumb button .icon { width: 14px; height: 14px; }
.photo-add { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 72px; height: 72px; border: 1.5px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; text-align: center; }
.photo-add:hover { border-color: var(--brand); color: var(--brand); }
.photo-add, .chat-attach { position: relative; }
.photo-add:focus-within, .chat-attach:focus-within { outline: 3px solid hsl(150 60% 45% / .55); outline-offset: 2px; }
/* поле вибору файлу: невидиме, але доступне з клавіатури (на відміну від hidden) */
.vh-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.photo-add .icon { width: 22px; height: 22px; }

/* сторінка «Оцініть покупку» */
.review-page-head { margin: 8px 0 16px; }
.review-items { display: grid; gap: 12px; }
.review-item { display: grid; gap: 10px; padding: 16px; }
.review-item.done { opacity: .85; }
.ri-head { display: flex; align-items: center; gap: 12px; }
.ri-head img, .ri-head .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: var(--media-bg); flex: none; overflow: hidden; display: block; }
.ok-text { color: var(--ok); font-weight: 700; margin: 0; }

/* блог */
.blog-head { margin: 6px 0 14px; }
.blog-head h1 { margin-bottom: 4px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; color: var(--text); transition: box-shadow .2s, transform .2s, border-color .2s; }
.post-card:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-50), var(--surface-2)); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; }
.post-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.post-body b { font-size: 16.5px; line-height: 1.3; }
.post-meta { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.post-excerpt { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post { max-width: 780px; margin: 0 auto; }
.post-header { margin: 8px 0 16px; }
.post-header h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.post-hero { width: 100%; border-radius: var(--radius-lg); margin: 0 0 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-content { font-size: 16.5px; line-height: 1.75; }
.post-content h2 { font-size: 21px; margin: 28px 0 10px; }
.post-content ul { padding-left: 22px; margin: 0 0 14px; }
.post-content li { margin-bottom: 6px; }
.post-cta { display: grid; gap: 4px; margin: 26px 0 8px; padding: 16px 18px; background: var(--brand-50); border-color: var(--brand-100); }
.nav-blog .icon { width: 18px; height: 18px; }

/* згода на аналітику */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 120; max-width: 460px; padding: 14px 16px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: slide-up .3s; }
.consent p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; }
/* банер згоди не перекриває відкритий чат чи шухляду (повернеться після закриття) */
body.chat-open .consent, body:has(.drawer.open) .consent { visibility: hidden; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1024px) { .consent { left: 20px; right: auto; bottom: 20px; } }
.cat-nav-all { display: flex; align-items: center; gap: 2px; }

/* =====================================================================
   Сезонне оформлення всього сайту — делікатно: відтінок фону вгорі, лінія під шапкою,
   значок біля логотипа, акцент заголовків, підвал. Без анімацій поза банером, контраст тексту не змінюється.
   ===================================================================== */
:root { --season-accent: var(--brand); --season-soft: transparent; --season-line: none; --footer-bg: var(--brand-deep); --season-mark: none; }
:root[data-season="winter"] { --season-accent: #3b82b8; --season-soft: rgba(59, 130, 184, .09); --season-line: linear-gradient(90deg, #a9d3f0, #3b82b8 50%, #a9d3f0); --footer-bg: #0d2638; --season-mark: "❄"; }
:root[data-season="spring"] { --season-accent: #d9668e; --season-soft: rgba(217, 102, 142, .07); --season-line: linear-gradient(90deg, #8fd19e, #f2a7c0 50%, #8fd19e); --footer-bg: #123d29; --season-mark: "🌸"; }
:root[data-season="summer"] { --season-accent: #d6950f; --season-soft: rgba(242, 201, 76, .12); --season-line: linear-gradient(90deg, #f2c94c, #4caf50 50%, #f2c94c); --footer-bg: #1c3d1f; --season-mark: "☀"; }
:root[data-season="autumn"] { --season-accent: #c7621f; --season-soft: rgba(208, 112, 42, .09); --season-line: linear-gradient(90deg, #e8a33d, #b5541c 50%, #e8a33d); --footer-bg: #2b1a0e; --season-mark: "🍂"; }
:root[data-season="newyear"] { --season-accent: #c0392b; --season-soft: rgba(192, 57, 43, .06); --season-line: repeating-linear-gradient(90deg, #c0392b 0 24px, #1f6b45 24px 48px, #d4af37 48px 72px); --footer-bg: #13261b; --season-mark: "🎄"; }
:root[data-season="easter"] { --season-accent: #7da33a; --season-soft: rgba(245, 215, 110, .14); --season-line: linear-gradient(90deg, #f5d76e, #9bbf4a 50%, #f2a7c0); --footer-bg: #1f3a1c; --season-mark: "🐣"; }
:root[data-season="ua"] { --season-accent: #0b57b7; --season-soft: rgba(11, 87, 183, .07); --season-line: linear-gradient(180deg, #0b57b7 50%, #f5c400 50%); --footer-bg: #0a2a55; --season-mark: "💙"; }
:root[data-season="blackfriday"] { --season-accent: #f26b1d; --season-soft: rgba(17, 17, 17, .05); --season-line: linear-gradient(90deg, #111, #f26b1d 50%, #111); --footer-bg: #0d0d0d; --season-mark: "🔥"; }
:root[data-season="harvest"] { --season-accent: #b8860b; --season-soft: rgba(201, 154, 46, .11); --season-line: linear-gradient(90deg, #e6c35c, #8f6a1c 50%, #e6c35c); --footer-bg: #2b1f0a; --season-mark: "🌾"; }
:root[data-theme="dark"][data-season] { --season-soft: color-mix(in srgb, var(--season-accent) 9%, transparent); }

/* відтінок угорі сторінки */
:root[data-season] body { background: linear-gradient(180deg, var(--season-soft) 0, var(--bg) 480px) no-repeat, var(--bg); }
/* лінія під шапкою */
:root[data-season] .site-header { border-bottom-color: transparent; }
:root[data-season] .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--season-line); opacity: .9; pointer-events: none; }
/* значок пори року біля логотипа */
.logo { position: relative; }
:root[data-season] .logo::after { content: var(--season-mark); position: absolute; left: 27px; top: -6px; font-size: 14px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); pointer-events: none; }
:root[data-season] .site-footer .logo::after { content: none; }
/* акцент під заголовками розділів */
:root[data-season] .section-head h2 { padding-bottom: 6px; background: linear-gradient(var(--season-accent), var(--season-accent)) left bottom / 40px 3px no-repeat; }
/* підвал у кольорах сезону */
.site-footer { background: var(--footer-bg); }
:root[data-season] .site-footer { border-top: 3px solid transparent; border-image: var(--season-line) 1; }
/* картки й плитки — сезонна підсвітка при наведенні */
:root[data-season] .cat-tile:hover, :root[data-season] .pcard:hover, :root[data-season] .post-card:hover { border-color: color-mix(in srgb, var(--season-accent) 45%, var(--border)); }
:root[data-season] .chip.active { box-shadow: inset 0 -2px 0 var(--season-accent); }
:root[data-season] .planting-card { background: linear-gradient(135deg, color-mix(in srgb, var(--season-accent) 10%, var(--surface)), var(--surface)); }
:root[data-season] .planting-kicker { color: var(--season-accent); }
:root[data-theme="dark"][data-season] .planting-kicker { color: var(--text-2); color: color-mix(in srgb, var(--season-accent) 50%, #fff); }
@media print { :root[data-season] body { background: #fff; } .site-header::after { display: none; } }

/* Опт: показуємо економію (ціни в рядках уже оптові) */
.ws-save-row { color: var(--brand); font-size: 13.5px; padding-top: 0; }
.ws-save-row span:last-child { font-weight: 700; }
.summary-row > :last-child { white-space: nowrap; }

/* =====================================================================
   «Не телефонуйте», чат з менеджером, виробники і гарантія оригіналу
   ===================================================================== */
.no-call { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.no-call input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.no-call .nc-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.no-call .nc-box::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.no-call input:checked ~ .nc-box { background: var(--brand-solid); border-color: var(--brand-solid); }
.no-call input:checked ~ .nc-box::after { opacity: 1; }
.no-call input:focus-visible ~ .nc-box { box-shadow: 0 0 0 3px var(--brand-100); }
.no-call:has(input:checked) { border-style: solid; border-color: var(--brand); background: var(--brand-50); }
.nc-text b { display: block; font-size: 15px; }
.nc-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.menu-list .menu-chat { display: grid; text-align: left; }
.menu-list .menu-chat small { font-size: 12px; color: var(--muted); font-weight: 500; }
.search-ask { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--brand-50); color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; }
.search-ask .icon { width: 18px; height: 18px; flex: none; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fab-menu .fab-chat { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-radius: 10px; background: var(--brand-50); color: var(--brand); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.fab-menu .fab-chat .icon { width: 20px; height: 20px; }
.fab-btn { position: relative; }
.fab-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font: 800 12px/20px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--surface); }

/* Чат */
.chat-panel { position: fixed; z-index: 90; inset: auto 16px 16px auto; width: 380px; height: min(600px, calc(100dvh - 32px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.chat-panel.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .2s ease; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 14px; background: var(--brand-solid); color: #fff; }
.chat-head .icon-btn { color: #fff; background: rgba(255, 255, 255, .12); }
.chat-head .icon-btn:hover { background: rgba(255, 255, 255, .22); }
.chat-avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.chat-avatar svg { width: 30px; height: 30px; }
.chat-title { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.chat-title b { font-size: 15.5px; }
.chat-online, .chat-off { font-size: 12.5px; opacity: .92; }
.chat-online::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 3px rgba(126, 226, 168, .25); vertical-align: 1px; }
.chat-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.cm { max-width: 84%; display: grid; gap: 2px; }
.cm-text { padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.cm-them { align-self: flex-start; }
.cm-them .cm-text { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.cm-me { align-self: flex-end; justify-items: end; }
.cm-me .cm-text { background: var(--brand-solid); color: #fff; border-bottom-right-radius: 6px; }
.cm-author { font-size: 11.5px; font-weight: 800; color: var(--brand); padding-left: 4px; }
.cm-time { font-size: 11px; color: var(--faint); padding: 0 4px; }
.cm-system { align-self: center; max-width: 90%; font-size: 12px; color: var(--muted); text-align: center; padding: 2px 10px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.chat-quick button { padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface); color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.chat-quick button:hover { background: var(--brand-50); }
.chat-contact { align-self: stretch; display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border-strong); font-size: 13.5px; }
.chat-contact > div { display: flex; gap: 6px; }
.chat-contact .input { flex: 1; min-width: 0; height: 40px; font-size: 16px; }
.chat-contact .link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 22px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; outline: none; }
.chat-form textarea:focus { border-color: var(--brand); background: var(--surface); }
.chat-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send:disabled { opacity: .6; }
.chat-send .icon, .chat-send svg { width: 20px; height: 20px; }
.chat-error { padding: 8px 14px; background: var(--danger-50); color: var(--danger-ink); font-size: 13px; }
@media (max-width: 719px) {
  .chat-panel { inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; }
  body.chat-open { overflow: hidden; }
  body.chat-open .fab-contact, body.chat-open .tabbar { visibility: hidden; }
}

/* Гарантія оригіналу і виробники */
.trust-box { margin-bottom: 34px; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-50), var(--surface) 70%); border: 1px solid var(--border); }
.trust-box h2 { margin: 0 0 18px; }
.trust-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-solid); color: #fff; }
.trust-ic svg, .trust-ic .icon { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: 15.5px; }
.trust-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.partners-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pt-logo { height: 46px; display: flex; align-items: center; }
.pt-logo img { max-height: 46px; max-width: 100%; object-fit: contain; }
.pt-word { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: hsl(var(--h) 55% 32%); line-height: 1.1; overflow-wrap: anywhere; }
.pt-meta { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pt-count { justify-self: start; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-50); padding: 3px 8px; border-radius: 99px; }
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partners-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
:root[data-theme="dark"] .pt-word { color: hsl(var(--h) 60% 72%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pt-word { color: hsl(var(--h) 60% 72%); } }

.partners-grid:not(.show-all) .pt-more { display: none; }
.partner.pt-all { place-content: center; justify-items: center; text-align: center; font: inherit; font-weight: 800; color: var(--brand); background: var(--brand-50); border-style: dashed; cursor: pointer; min-height: 100px; }
.partner.pt-all b { font-size: 22px; }

/* ---------- чат: AI-помічник, фото, картки товарів, оцінка ---------- */
.chat-attach { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); cursor: pointer; background: var(--surface-2); }
.chat-attach:hover { color: var(--brand); background: var(--brand-50); }
.chat-attach svg { width: 22px; height: 22px; }
.cm-ai .cm-text { background: linear-gradient(180deg, var(--brand-50), var(--surface)); border-color: var(--border-strong); }
.cm-author-ai { color: var(--brand); }
.cm-li { display: block; position: relative; padding-left: 14px; margin: 2px 0; }
.cm-li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.cm-photo { display: block; border-radius: 14px; overflow: hidden; max-width: 220px; border: 1px solid var(--border); }
.cm-photo img { display: block; width: 100%; height: auto; }
.cm-me .cm-photo { justify-self: end; }
.cm-link { color: var(--brand); font-weight: 700; }
.cm-prod { display: flex; align-items: center; gap: 6px; margin: 6px 0; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cm-prod-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.cm-prod-img { flex: none; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--media-bg); display: grid; place-items: center; }
.cm-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.cm-prod-img svg { width: 30px; height: 30px; }
.cm-prod-info { min-width: 0; display: grid; line-height: 1.3; }
.cm-prod-info b { font-size: 13px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-prod-info small { font-size: 12px; color: var(--muted); }
.cm-prod-info i { font-style: normal; }
.cm-prod-info i.ok { color: var(--ok); font-weight: 700; }
.cm-prod-add { flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cm-prod-add svg { width: 19px; height: 19px; }
.cm-prod-add.done { background: var(--ok); }
.cm-typing .cm-text { color: var(--muted); font-size: 13.5px; }
.dots { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }
.chat-rate { align-self: stretch; display: grid; gap: 8px; justify-items: center; padding: 12px; border-radius: 14px; background: var(--brand-50); text-align: center; }
.chat-rate > div { display: flex; gap: 8px; }
.chat-mgr { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px dashed var(--border-strong); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.chat-mgr:hover { color: var(--brand); border-color: var(--brand); }
.chat-mgr svg { width: 15px; height: 15px; }

/* =====================================================================
   🚀 Зростання продажів: фасування, «Купують разом», набори, дрібниці біля каси,
   подарунок, N-те замовлення, клуб, «Приведи друга», «Мій сад», передзамовлення
   ===================================================================== */
.ok-text { color: var(--ok); }
.packs { display: grid; gap: 6px; }
.packs > b { font-size: 13.5px; }
.pack-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-chip { position: relative; display: grid; gap: 1px; min-width: 92px; padding: 8px 12px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); line-height: 1.25; }
.pack-chip:hover { border-color: var(--brand); color: var(--text); }
.pack-chip.on { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.pack-chip.out { opacity: .6; }
.pack-chip b { font-size: 14px; }
.pack-chip span { font-size: 13px; font-weight: 700; }
.pack-chip small { font-size: 11.5px; color: var(--muted); }
.pack-chip em { display: block; margin-top: 2px; color: var(--ok); font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; }

.fbt-box { margin-top: 18px; padding: 16px; }
.fbt-box h2 { font-size: 19px; margin-bottom: 10px; }
.fbt-items { display: grid; gap: 6px; }
.fbt-item { display: grid; grid-template-columns: auto 48px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; cursor: pointer; }
.fbt-item:hover { background: var(--surface-2); }
.fbt-item input { width: 20px; height: 20px; accent-color: var(--brand); }
.fbt-item.main { cursor: default; }
.fbt-media { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--media-bg); display: block; }
.fbt-media img { width: 100%; height: 100%; object-fit: contain; }
.fbt-media .ph-note, .mini-media .ph-note, .bundle-items .ph .ph-note { display: none; }
.fbt-name { font-size: 13.5px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.fbt-name a { color: var(--text); }
.fbt-name small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fbt-item b { white-space: nowrap; font-size: 14px; }
@media (max-width: 419px) {
  .fbt-item { grid-template-columns: auto 44px 1fr; }
  .fbt-item b { grid-column: 3; margin-top: -6px; }
  .fbt-media { width: 44px; height: 44px; }
}
.fbt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.fbt-foot b { font-size: 18px; }
@media (max-width: 519px) { .fbt-foot .btn { width: 100%; } }

.bundle-list { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .bundle-list { grid-template-columns: repeat(2, 1fr); } }
.bundle-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .bundle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bundle-grid { grid-template-columns: repeat(3, 1fr); } }
.bundle-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.bundle-head { display: flex; align-items: flex-start; gap: 12px; }
.bundle-head > div { flex: 1; min-width: 0; }
.bundle-head b { display: block; font-size: 16px; line-height: 1.25; }
.bundle-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.bundle-emoji { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--brand-50); font-size: 24px; }
.bundle-badge { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.bundle-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bundle-items li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.bundle-items li a { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.bundle-items li a span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bundle-items img, .bundle-items .ph { width: 34px; height: 34px; flex: none; border-radius: 8px; object-fit: contain; background: var(--media-bg); overflow: hidden; display: block; }
.bundle-items li.in a::after { content: "✓"; color: var(--ok); font-weight: 800; margin-left: 2px; }
.bundle-items b { white-space: nowrap; }
.bundle-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.bundle-price { display: grid; line-height: 1.2; }
.bundle-price b { font-size: 18px; }
.bundle-price s { color: var(--faint); font-size: 13px; }
.bundle-price small { color: var(--ok); font-weight: 700; font-size: 12px; }

.gift-bar { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--accent-50); }
.gift-bar .fb-track span { background: linear-gradient(90deg, #f7a35c, var(--accent)); }
.gift-bar.done { background: var(--ok-50); }
.gift-bar.done .fb-text { margin: 0; }
.gift-row span:first-child { color: var(--accent-600); font-weight: 700; }
.nth-note { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; line-height: 1.35; }
.nth-note.done { background: var(--ok-50); }
.nth-note > span:last-child { flex: 1; min-width: 0; }
.nth-stamps { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.nth-stamps i { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--border-strong); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.nth-stamps i.on { border: 0; background: var(--brand); }
.nth-stamps i.gift { border-style: solid; border-color: var(--accent); font-size: 13px; }
.club-line { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: var(--brand-50); font-size: 13.5px; }

.addons { margin-top: 16px; min-width: 0; }
.addons h4 { margin: 0 0 8px; font-size: 15px; }
.mini-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 72%); gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.mini-row > * { scroll-snap-align: start; }
@media (min-width: 720px) { .mini-row { grid-auto-columns: 240px; } }
#co-addons .mini-row { grid-auto-columns: minmax(200px, 82%); }
.mini-list { display: grid; gap: 8px; }
.mini-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.mini-media { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--media-bg); display: block; }
.mini-media img { width: 100%; height: 100%; object-fit: contain; }
.mini-body { display: grid; min-width: 0; font-size: 13px; line-height: 1.3; }
.mini-body a { color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-body b { font-size: 14px; }
.mini-add { width: 40px; height: 40px; padding: 0; font-size: 18px; justify-content: center; }
.added-item { padding: 8px 10px; border-radius: 12px; background: var(--ok-50); }
.sheet-title { margin: 14px 0 8px; font-size: 15px; }
.sheet-actions { display: grid; gap: 6px; margin-top: 14px; }

.pack-tip, .bundle-tip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--warn-50); color: var(--warn-ink); font-size: 13px; line-height: 1.35; }
.pack-tip span, .bundle-tip span { flex: 1 1 200px; }
.bundle-tip { background: var(--accent-50); color: var(--text); margin-top: 12px; }
.bundle-tip a { font-weight: 700; }

.ty-growth { display: grid; gap: 10px; margin: 12px 0; text-align: left; }
.ref-teaser { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-50); color: var(--text); border: 1px solid transparent; font-size: 22px; }
.ref-teaser:hover { border-color: var(--accent); color: var(--text); }
.ref-teaser b { display: block; font-size: 14.5px; }
.ref-teaser small { display: block; color: var(--muted); font-size: 12.5px; }

.account-growth { display: grid; gap: 12px; margin-bottom: 16px; }
.account-growth:empty { display: none; }
@media (min-width: 720px) { .account-growth { grid-template-columns: repeat(2, 1fr); } }
.account-growth > .card { padding: 16px 18px; min-width: 0; }
.account-growth > .card > b { display: block; font-size: 15px; margin-bottom: 6px; }
.club-card { background: linear-gradient(135deg, var(--brand-50), var(--surface)); }
.club-top { display: flex; align-items: center; gap: 12px; }
.club-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--surface); box-shadow: var(--shadow-sm); flex: none; }
.club-name { display: block; font-size: 18px; }
.club-progress { display: grid; gap: 6px; margin: 10px 0; }
.club-progress small { color: var(--muted); }
.club-card details summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--brand); }
.club-levels { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.club-levels li { display: grid; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; }
.club-levels li.on { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand); }
.club-levels small { color: var(--muted); }
.ref-card { background: linear-gradient(135deg, var(--accent-50), var(--surface)); }
.ref-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ref-code code { padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1.5px dashed var(--accent); font-weight: 800; font-size: 16px; letter-spacing: .06em; }
.pre-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.pre-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.pre-list li a { flex: 1 1 160px; }
.garden-card { padding: 18px; }
.garden-crops { display: flex; flex-wrap: wrap; gap: 8px; }
.garden-chip.on { border-color: var(--brand); background: var(--brand-solid); color: #fff; }
.garden-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.garden-tips li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.garden-tips li > div { flex: 1 1 220px; display: grid; font-size: 14px; line-height: 1.4; }
.gt-ic { font-size: 24px; flex: none; }
.order-items li.gift b { color: var(--accent-600); font-weight: 700; }
.bundles-section .section-head p { margin: 4px 0 0; }
:root[data-theme="dark"] .pack-tip { background: rgba(183, 121, 31, .18); color: #f3d38b; }
:root[data-theme="dark"] .gift-row span:first-child, :root[data-theme="dark"] .order-items li.gift b { color: #ffb36b; }
:root[data-theme="dark"] .nth-stamps i.on { background: var(--brand-solid); }

.icon.ej-ok { color: var(--ok); }
.icon.ej-bad { color: var(--danger); }
.icon.ej-warn { color: var(--warning); }

/* блог: пошук, сезонний календар, теми */
.blog-tags { display: grid; gap: 10px; margin-bottom: 18px; }
.blog-search .input { max-width: 520px; }
.blog-months, .blog-topics { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.blog-months .chip, .blog-topics .chip { flex: none; }
.blog-months .chip.now:not(.active) { border-color: var(--brand); color: var(--brand); }
.chip-sm { padding: 4px 10px; font-size: 12.5px; }
.blog-block { margin-bottom: 26px; }
.blog-h { font-size: 20px; margin: 0 0 12px; }
.blog-grid-inner { display: grid; gap: 14px; }
@media (min-width: 640px) { .blog-grid-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid-inner { grid-template-columns: repeat(3, 1fr); } }
.blog-more { display: flex; justify-content: center; margin-top: 16px; }
#blog-grid.blog-grid { display: block; }

.post-cover-ph { background: radial-gradient(120% 90% at 30% 20%, hsl(var(--h, 135) 55% 92%), hsl(var(--h, 135) 45% 82%)); color: hsl(var(--h, 135) 45% 30%); }
.post-ph-icon { width: 64px; height: 64px; stroke-width: 1.5; }
:root[data-theme="dark"] .post-cover-ph { background: radial-gradient(120% 90% at 30% 20%, hsl(var(--h, 135) 30% 24%), hsl(var(--h, 135) 25% 16%)); color: hsl(var(--h, 135) 50% 72%); }

/* =====================================================================
   Сервіси покупцям: порівняння, калькулятор норм, стеження за ціною,
   банер погоди, діагностика за фото, подарункові сертифікати
   ===================================================================== */
.bad-text { color: var(--danger-ink); font-weight: 700; margin: 0; }
.page-hero { margin: 6px 0 16px; }
.page-hero h1 { margin-bottom: 6px; }
.page-hero p { margin: 0; max-width: 760px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin: 10px 0; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--muted); padding: 6px 8px; }
.seg button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.spinner-sm { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: vrz-spin .8s linear infinite; }
@keyframes vrz-spin { to { transform: rotate(360deg); } }

/* порівняння: кнопка на картці, панель внизу, таблиця */
.pcard-cmp {
  position: absolute; top: 48px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--faint); box-shadow: var(--shadow-sm); transition: color .15s, transform .15s;
}
.pcard-cmp .icon { width: 19px; height: 19px; }
.pcard-cmp:hover { color: var(--brand); transform: scale(1.08); }
.pcard-cmp.on { color: #fff; background: var(--brand-solid); }
.buy-secondary .btn.on { color: var(--brand); background: var(--brand-50); }
.cmp-bar {
  position: fixed; z-index: 64; left: 12px; right: 74px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 14px;
}
.cmp-bar > span:nth-child(2) { flex: 1; min-width: 0; }
.cmp-bar-ic { color: var(--brand); display: grid; }
.cmp-bar .icon-btn { width: 36px; height: 36px; }
body.has-sticky-buy .cmp-bar { display: none; }
/* панель порівняння не закриває низ сторінки (футер, «Показати ще») */
body.has-cmp-bar { padding-bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-cmp-bar { padding-bottom: 84px; } }
@media (min-width: 1024px) {
  .cmp-bar { left: 50%; right: auto; transform: translateX(-50%); bottom: 20px; min-width: 380px; }
}
.cmp-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-tools .check { margin-right: auto; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.cmp-table { width: 100%; min-width: calc(130px + var(--cols) * 165px); border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-weight: 700; width: 130px; min-width: 110px; }
.cmp-table thead th { vertical-align: bottom; font-weight: 600; }
.cmp-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.cmp-media { display: block; width: 100%; max-width: 150px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--media-bg); margin-bottom: 8px; }
.cmp-media img { width: 100%; height: 100%; object-fit: contain; }
.cmp-media .placeholder-img { height: 100%; }
.cmp-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1.35; min-height: 54px; }
.cmp-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cmp-actions .btn { flex: 1; }

/* характеристики під назвою товару */
.p-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.p-attrs span { padding: 3px 10px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-size: 12.5px; font-weight: 700; }

/* калькулятор норм */
.calc-box { padding: 16px; margin-top: 14px; }
.calc-head { display: flex; gap: 12px; align-items: flex-start; }
.calc-head h3 { margin: 0 0 2px; }
.calc-head small { display: block; line-height: 1.4; }
.calc-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.calc-input { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.calc-input .input { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; }
.calc-input .select { width: auto; min-width: 96px; }
.calc-suffix { font-weight: 700; color: var(--muted); min-width: 24px; }
.calc-out ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.calc-out li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.calc-out li b { white-space: nowrap; }
.calc-out li.calc-packs { background: var(--brand-50); color: var(--brand-800); }
.calc-note { margin: 10px 0 0; font-size: 12.5px; color: var(--warn-ink); background: var(--warn-50); padding: 8px 10px; border-radius: 10px; line-height: 1.45; }
.calc-note.ok { color: var(--ok); background: var(--ok-50); display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.calc-note .icon { width: 16px; height: 16px; flex: none; }

/* кабінет: стеження, сертифікати */
.watch-list, .cert-list { list-style: none; margin: 0; padding: 4px 14px; display: grid; }
.watch-list li, .cert-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.watch-list li:last-child, .cert-list li:last-child { border-bottom: 0; }
.watch-list a { flex: 1; min-width: 0; color: var(--text); font-weight: 600; }
.watch-price { white-space: nowrap; text-align: right; }
.watch-price s { color: var(--faint); font-weight: 500; }
.cert-list li > div { flex: 1; min-width: 0; }
.cert-list small { display: block; }
.card > .watch-list + p.small { padding: 0 14px 12px; margin: 0; }
@media (max-width: 480px) { .watch-list li { flex-wrap: wrap; } .watch-list a { flex-basis: calc(100% - 50px); } .watch-price { margin-left: 0; } }

/* банер погоди */
.wx-banner {
  display: flex; align-items: flex-start; gap: 12px; margin: 12px 0 0; padding: 12px 12px 12px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--warn-50), var(--surface)); border: 1px solid var(--border);
}
.wx-banner p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.wx-banner > div { flex: 1; min-width: 0; }
.wx-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--warning); box-shadow: var(--shadow-sm); }
.wx-banner .btn { flex: none; align-self: center; }
.wx-banner .icon-btn { flex: none; width: 34px; height: 34px; margin: -4px -4px 0 0; }
@media (max-width: 719px) {
  .wx-banner { flex-wrap: wrap; }
  .wx-banner > div { flex-basis: calc(100% - 100px); }
  .wx-banner .btn { margin-left: 52px; }
}

/* блок сервісів на головній */
.svc-section { padding-top: 6px; }
.svc-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.svc-card:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.svc-ic { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.svc-ic .icon { width: 24px; height: 24px; }
.svc-card small { color: var(--muted); line-height: 1.4; }
.cat-nav-all .nav-blog .icon { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }

/* діагностика */
.diag-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .diag-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.diag-form { padding: 18px; }
.diag-form h2 { margin-bottom: 10px; }
.diag-steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 14px; display: grid; gap: 4px; }
.diag-form .btn-lg { margin-top: 6px; }
.diag-form p.small { margin: 10px 0 0; }
.diag-wait { padding: 30px 18px; text-align: center; color: var(--muted); }
.diag-wait .spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: vrz-spin .8s linear infinite; }
.diag-result { display: grid; gap: 14px; }
.diag-result:empty { display: none; }
.diag-tips { padding: 18px; }
.diag-tips h3 { margin: 0 0 8px; }
.diag-tips h3 + ul + h3 { margin-top: 14px; }
.diag-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; color: var(--text-2); }
.diag-card, .diag-products { padding: 18px; }
.diag-card h3 { margin-top: 14px; }
.diag-problem { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-top: 10px; }
.diag-problem p { margin: 6px 0 0; }
.diag-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.diag-conf { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.diag-conf.hi { background: var(--danger-50); color: var(--danger-ink); }
.diag-conf.mid { background: var(--warn-50); color: var(--warn-ink); }
.diag-conf.lo { background: var(--chip-off); color: var(--muted); }
.diag-actions { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.diag-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.diag-foot .btn:last-child { margin-left: auto; }
.diag-prod { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.diag-products h3 + .diag-prod { border-top: 0; }
.diag-prod p { margin: 2px 0 4px; }
.diag-prod > div { min-width: 0; }
.diag-prod-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--media-bg); display: block; }
.diag-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.diag-prod-img .placeholder-img { height: 100%; }
.diag-prod-img .ph-note { display: none; }
@media (max-width: 480px) {
  .diag-prod { grid-template-columns: 56px 1fr; }
  .diag-prod > .btn { grid-column: 1 / -1; }
  .diag-prod-img { width: 56px; height: 56px; }
  .diag-foot .btn:last-child { margin-left: 0; width: 100%; }
}

/* подарунковий сертифікат */
.gift-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.gift-layout > *, .diag-layout > * { min-width: 0; }
@media (min-width: 900px) { .gift-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .gift-preview-wrap { position: sticky; top: 90px; } }
.gift-cert {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff; min-height: 240px;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .16) 0 18%, transparent 19%), radial-gradient(circle at 10% 110%, rgba(255, 255, 255, .1) 0 30%, transparent 31%),
    linear-gradient(135deg, #1f6b45 0%, #2d8a57 55%, #4caf50 100%);
  box-shadow: 0 18px 40px rgba(16, 60, 36, .28); display: flex; flex-direction: column; gap: 6px;
}
.gift-cert::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .08); }
.gift-cert.inactive { filter: grayscale(.85); opacity: .75; }
.gc-top { display: flex; align-items: center; gap: 10px; }
.gc-top .logo-mark { width: 38px; height: 38px; flex: none; }
.gc-top .logo-mark rect { fill: rgba(255, 255, 255, .18); }
.gc-brand { display: grid; line-height: 1.1; }
.gc-brand b { font-size: 16px; letter-spacing: .04em; }
.gc-brand small { font-size: 11px; opacity: .85; }
.gc-label { margin-left: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; text-align: right; max-width: 140px; line-height: 1.25; }
.gc-amount { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin-top: 12px; line-height: 1.05; }
.gc-to { font-size: 16px; }
.gc-to.muted { color: rgba(255, 255, 255, .7); }
.gc-msg { margin: 4px 0 0; font-size: 15px; font-style: italic; opacity: .95; overflow-wrap: anywhere; }
.gc-from { font-size: 14px; opacity: .9; }
.gc-code { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .16); border: 1px dashed rgba(255, 255, 255, .5); position: relative; z-index: 1; max-width: 100%; }
.gc-code span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.gc-code b { font-size: 18px; letter-spacing: .08em; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.gc-foot { margin-top: 8px; font-size: 11.5px; opacity: .8; position: relative; z-index: 1; }
@media (max-width: 420px) { .gc-amount { font-size: 36px; } .gift-cert { padding: 18px; } .gc-code b { font-size: 15px; letter-spacing: .04em; } .gc-label { max-width: 110px; } }
.gift-perks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.gift-perks li { display: flex; gap: 8px; align-items: flex-start; }
.gift-perks .icon { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.gift-form { padding: 18px; }
.gift-form h3 { margin-top: 18px; }
.gift-noms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gift-nom { font-weight: 800; font-size: 15px; min-width: 88px; justify-content: center; text-align: center; }
.gift-form .option-cards { margin-bottom: 12px; }
.gift-form .btn-lg b { font-weight: 800; }
.gift-view { display: grid; gap: 14px; max-width: 640px; }
.gift-view-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .gift-view-actions { display: grid; grid-template-columns: 1fr 1fr; } .gift-view-actions .btn { width: 100%; justify-content: center; } .gift-view-actions .btn:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
.gift-check { padding: 16px 18px; margin-top: 18px; max-width: 640px; }
.gift-check h3 { margin: 0 0 10px; }
.gift-check-form { display: flex; gap: 8px; }
.gift-check-form .input { flex: 1; min-width: 0; }
#gift-check-out p { margin-top: 10px; }
@media print {
  body[data-page="gift"] main .breadcrumbs, body[data-page="gift"] .page-hero, .gift-check, .gift-view > :not(.print-area), .cmp-bar, .wx-banner { display: none !important; }
  .gift-cert { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
}

/* Повернення з кабінету, оплата за посиланням */
.order-return { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--bg-soft, rgba(31, 107, 69, .06)); font-size: 14px; }
.ret-lines { display: grid; gap: 8px; }
.ret-line { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: 14.5px; }
.ret-line .select { min-height: 40px; }
.ret-kind { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ret-kind label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 600; cursor: pointer; }
.ret-kind label:has(input:checked) { border-color: var(--brand); background: rgba(31, 107, 69, .08); }
.pay-box { padding: 18px; margin-bottom: 14px; display: grid; gap: 8px; justify-items: start; }
.pay-box p { margin: 0; }

.wx-banner .wx-src { display: block; margin-top: 2px; font-size: 11.5px; }
.wx-banner .wx-src a { color: inherit; }
