:root {
  --accent: #b9433a;
  /* calls to action (Купити, Оформити): green, as in Ukrainian pharmacy shops */
  --cta: #1d8a4a;
  --cta-ink: #166b39;
  --cta-soft: #e7f5ec;
  --accent-ink: #9c342c;
  --accent-deep: #8f2f28;
  --accent-soft: #f8edec;
  --ink: #0a0a0a;
  --muted: #6b6f76;
  --line: #e3e3e3;
  --bg: #f5f5f5;
  --surface: #fff;
  --ok: #008044;
  --warn: #9a6a12;
  --med-blue: #2f6db3;
  --med-blue-soft: #e8f0fa;
  --med-green: #008044;
  --med-green-soft: #e6f4ec;
  --med-yellow: #e2a72e;
  --med-yellow-soft: #fdf4e0;
  --med-yellow-ink: #8a5d08;
  --radius: 16px;
  --shadow: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 6px 0 18px; }
.h2 { font-size: 20px; margin: 34px 0 14px; }
/* one width for the header and the page, so the catalogue list sits right under its button */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.main { padding-top: 14px; padding-bottom: 48px; min-height: 60vh; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { width: 20px; height: 20px; flex: none; }

/* header: red bar like Apteka 911 — links row, logo, «Каталог товарів», wide white search, phone, cart */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--accent); color: #fff; box-shadow: 0 2px 12px rgb(0 0 0 / .14); }
.hdr__bar { background: rgb(0 0 0 / .12); }

.hdr__links { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; min-height: 62px; font-size: 13.5px; }
.hdr__right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.toplinks { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.toplinks::-webkit-scrollbar { display: none; }
.toplinks a { color: #fff; opacity: .92; text-decoration: none; white-space: nowrap; }
.toplinks a:hover, .toplinks a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.hdr__hours { opacity: .85; white-space: nowrap; }
.langs { display: flex; gap: 2px; font-weight: 600; }
.langs a { padding: 3px 7px; border-radius: 6px; color: #fff; opacity: .9; text-decoration: none; }
.langs a[aria-current] { background: rgb(0 0 0 / .24); opacity: 1; }
.hdr__main { position: relative; display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.toplinks { justify-self: center; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.logo__badge { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; overflow: hidden; }
.logo__badge img { width: 42px; height: auto; }
.logo__tag { max-width: 250px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.catbtn { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; flex: none; border: 0; border-radius: 12px; background: var(--accent-deep); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.catbtn:hover { background: #7d2822; }
.catbtn[aria-expanded="true"] { background: #fff; color: var(--accent); }
.search { flex: 1; display: flex; height: 48px; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 12px 0 0 12px; padding: 0 16px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.search input:focus { outline: 3px solid rgb(255 255 255 / .45); outline-offset: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 52px; border: 0; border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; background: #fff; color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.hdr__phone { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; }
.hdr__phone svg { width: 22px; height: 22px; }
.hdr__phone b { display: block; font-size: 15px; }
.hdr__phone small { font-size: 12px; opacity: .85; }
.cart-link { position: relative; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; flex: none; border-radius: 12px; background: rgb(255 255 255 / .16); color: #fff; text-decoration: none; font-weight: 600; }
.cart-link:hover { background: rgb(255 255 255 / .26); }
.cart-link svg { width: 23px; height: 23px; }
.cartwrap { position: relative; flex: none; }
/* like Сільпо: under «Кошик», how much is left to the minimum order */
.cart-note { position: absolute; right: 0; top: calc(100% + 12px); z-index: 35; width: 300px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px;
  border-radius: 12px; background: #fff7e0; color: #6e4b06; font-size: 13.5px; line-height: 1.4; box-shadow: 0 12px 30px rgb(0 0 0 / .2); }
.cart-note::before { content: ''; position: absolute; top: -6px; right: 30px; width: 12px; height: 12px; background: #fff7e0; transform: rotate(45deg); }
.cart-note span { flex: 1; }
.hdr:has(.catbtn[aria-expanded="true"]) .cart-note { display: none; }
.cart-note button { border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; opacity: .7; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--accent); }
/* «Каталог товарів», as on Apteka 911: the list under the button; the category under the pointer opens its
   subcategories to the side, as tall as the list */
.catwrap { position: relative; flex: none; width: 300px; }
.catwrap .catbtn { width: 100%; }
.catpanel { position: absolute; left: 0; top: calc(100% + 12px); width: 380px; background: #fff; color: var(--ink); border-radius: 0 0 14px 14px;
  /* the page behind dims (the spread shadow), but not the header above */
  box-shadow: 0 24px 48px rgb(0 0 0 / .16), 0 0 0 100vmax rgb(17 17 17 / .32); clip-path: inset(0 -100vmax -100vmax -100vmax);
  animation: catpanel-in .18s ease-out; }
@keyframes catpanel-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .catpanel { animation: none; } }
.catmenu { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; overscroll-behavior: contain; }
.catmenu__row { display: flex; align-items: center; }
.catmenu__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 3px 14px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.22; }
.catmenu__img { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #f3f3f4; display: grid; place-items: center; overflow: hidden; }
.catmenu__img img { width: 27px; height: 27px; object-fit: contain; mix-blend-mode: multiply; }
.catmenu__img img.is-icon, .homecat .catmenu__img img.is-icon { width: 100%; height: 100%; mix-blend-mode: normal; }
.catmenu__name { flex: 1; min-width: 0; }
.has-sub > .catmenu__row .catmenu__link::after { content: ''; width: 7px; height: 7px; flex: none; margin-right: 2px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg); opacity: .45; }
.catmenu__item:hover > .catmenu__row, .catmenu__item:focus-within > .catmenu__row { background: var(--accent-soft); }
.catmenu__item:hover > .catmenu__row .catmenu__link, .catmenu__item:focus-within > .catmenu__row .catmenu__link { color: var(--accent); }
.catmenu__fly { display: none; position: absolute; left: 100%; top: 0; bottom: 0; width: 440px; padding: 18px 26px; background: #fff; border-left: 1px solid var(--line); border-radius: 0 0 14px 0; overflow-y: auto; }
.catmenu__item:hover > .catmenu__fly, .catmenu__item:focus-within > .catmenu__fly { display: block; }
.catmenu__all { display: block; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700; line-height: 1.25; }
.catmenu__all small { display: block; margin-top: 4px; color: var(--accent); font-size: 13px; font-weight: 600; }
.catmenu__fly ul { list-style: none; margin: 14px 0 0; padding: 0; }
.catmenu__fly li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bg); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.catmenu__fly li a small { color: var(--muted); font-size: 12.5px; }
.catmenu__fly li a:hover, .catmenu__all:hover { color: var(--accent); }
.catpanel a:focus-visible, .catmenu__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.catmenu__toggle { display: none; }
/* short screens: tighter rows so the list still fits */
@media (min-width: 761px) and (max-height: 820px) {
  .catmenu__link { min-height: 33px; padding: 2px 14px; font-size: 13.5px; }
  .catmenu__img { width: 27px; height: 27px; border-radius: 7px; }
  .catmenu__img img { width: 24px; height: 24px; }
}
@media (min-width: 761px) and (max-height: 740px) {
  .catmenu { padding: 3px 0; }
  .catmenu__link { min-height: 31px; padding: 1px 14px; font-size: 13px; line-height: 1.18; }
  .catmenu__img { width: 24px; height: 24px; border-radius: 6px; }
  .catmenu__img img { width: 22px; height: 22px; }
}
/* phones and touch screens: an arrow opens the subcategories inside the list */
@media (max-width: 760px), (hover: none) {
  .has-sub > .catmenu__row .catmenu__link::after { display: none; }
  .catmenu__toggle { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; }
  .catmenu__toggle::before { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
  .catmenu__toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translateY(-2px); }
  .catmenu__item:hover > .catmenu__row, .catmenu__item:focus-within > .catmenu__row { background: none; }
  .catmenu__item:hover > .catmenu__fly, .catmenu__item:focus-within > .catmenu__fly { display: none; }
  .catmenu__fly { position: static; width: auto; padding: 0 0 8px 54px; border: 0; border-radius: 0; overflow: visible; }
  .catmenu__item.is-open > .catmenu__fly { display: block; }
  .catmenu__all { display: none; }
  .catmenu__fly ul { margin: 0; }
  .catmenu__item { border-bottom: 1px solid var(--bg); }
}

/* search suggestions */
.suggest { position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); z-index: 40; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 18px 40px rgb(0 0 0 / .22); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sg-head { padding: 10px 14px 4px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sg-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; color: inherit; text-decoration: none; }
.sg-item img { width: 48px; height: 48px; object-fit: contain; background: #fff; }
.sg-item:hover, .sg-item.is-active, .sg-group:hover, .sg-group.is-active { background: var(--bg); }
.sg-name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-meta { font-size: 12px; color: var(--muted); }
.sg-price { font-weight: 700; white-space: nowrap; }
.sg-group { display: flex; justify-content: space-between; padding: 7px 14px; color: inherit; text-decoration: none; font-size: 14px; }
.sg-group small { color: var(--muted); }
.sg-all { display: block; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; text-decoration: none; }
.sg-empty { padding: 14px; color: var(--muted); }
.suggest mark, .card__title mark { background: #ffeaa0; color: inherit; padding: 0; border-radius: 2px; }
/* floating messenger button */
.msgr { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.msgr__btn { display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgb(0 0 0 / .28); cursor: pointer; }
.msgr__btn svg { width: 28px; height: 28px; }
.msgr__btn[aria-expanded="true"] { background: var(--accent-deep); }
.msgr__list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.msgr__item { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 28px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: 0 4px 16px rgb(0 0 0 / .18); }
.msgr__item svg { width: 24px; height: 24px; }
.msgr__item--viber svg, .ccard--viber svg { color: #7360f2; }
.msgr__item--whatsapp svg, .ccard--whatsapp svg { color: #1fa855; }
.msgr__item--telegram svg, .ccard--telegram svg { color: #229ed9; }
.msgr__item--phone svg { color: var(--accent); }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; padding: 0; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #b2b7bd; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }

/* home */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: #e9ecef; aspect-ratio: 1024 / 450; margin-top: 4px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.hero__dots { gap: 0; bottom: 4px; }
/* a 24px target for a 10px dot */
.hero__dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .7); box-shadow: 0 0 0 1px rgb(0 0 0 / .15); }
.hero__dots button.is-on::before { background: var(--accent); }
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perks li { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; box-shadow: var(--shadow); }
.perks svg { color: var(--accent); width: 24px; height: 24px; }
.perks li:nth-child(1) svg { color: var(--med-blue); }
.perks li:nth-child(2) svg { color: var(--med-green); }
.perks li:nth-child(4) svg { color: var(--med-yellow-ink); }
.perks--col { grid-template-columns: 1fr; margin-top: 18px; }
.perks--col li { box-shadow: none; background: var(--bg); }

/* tiles */
.bar { margin: 28px 0 14px; color: var(--ink); font-size: 21px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .1); transform: translateY(-2px); }
.tile img { aspect-ratio: 310 / 266; object-fit: cover; width: 100%; background: #eef0f2; display: block; }
.tile__name { padding: 12px 14px 14px; font-weight: 500; font-size: 14.5px; line-height: 1.35; text-align: center; }
.with-side .tiles.tiles--sub, .tiles.tiles--sub { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tiles--sub .tile img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 10px 10px 0; }
.tiles--sub .tile__name { padding: 8px 10px 12px; font-size: 13.5px; }
.tiles--sub .tile__count { top: 8px; left: 8px; padding: 2px 7px; font-size: 11px; }
.tile:hover .tile__name { color: var(--accent-ink); }
.tile--icon .tile__icon { aspect-ratio: 310 / 266; display: grid; place-items: center; background: #fff; }
.tile--icon .tile__icon img { width: 46%; max-width: 128px; height: auto; aspect-ratio: 1; object-fit: contain; background: none; }
.tile--icon .tile__name { border-top: 1px solid #f1ede9; }
.tile__count { position: absolute; top: 10px; left: 10px; min-width: 26px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; text-align: center; line-height: 1.3; }

/* product cards (original: «Код» line, ribbon label, centred text, dark buy button) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .1); }
.card[hidden] { display: none; }
.card__sku { display: none; }
.card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
/* three lines: the size or count that tells similar products apart stays visible */
.card__title { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.05em; }
.card__title:hover { color: var(--accent-ink); text-decoration: underline; }
.card__buy { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.card__buy .stock { order: -1; }
.ribbon { position: absolute; z-index: 1; top: 6px; left: 6px; max-width: 85%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 8px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; z-index: 1; top: 8px; left: 8px; max-width: calc(100% - 16px); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.card .stock { font-weight: 500; font-size: 13px; }
.price small, .pprice small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.price--ask { font-size: 14px; color: var(--muted); font-weight: 600; white-space: normal; }
.stock { font-size: 12.5px; font-weight: 600; }
.stock--in { color: var(--med-green); }
.stock--order { color: var(--med-yellow-ink); }
.stock--out { color: var(--muted); }
.card[data-stock="out"] .card__img img { opacity: .55; }
.pnote { margin: -4px 0 12px; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; }
.pnote--order { background: var(--med-yellow-soft); color: var(--med-yellow-ink); border-left: 3px solid var(--med-yellow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn--buy { background: var(--cta); color: #fff; }
.btn--buy:hover { background: var(--cta-ink); }
.btn--buy.is-in { background: var(--cta-soft); color: var(--cta-ink); box-shadow: inset 0 0 0 1.5px var(--cta); }
.btn--buy svg { width: 18px; height: 18px; }
.card .btn--buy { width: 100%; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; border-radius: 12px; white-space: nowrap; }
/* cards: name, stock and price centred */
.card { text-align: center; }
.card__buy .price, .card__buy .stock { text-align: center; }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); }
.btn--ghost svg { color: var(--accent); }
.btn--lg { padding: 12px 22px; font-size: 16px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 14px; padding: 10px 14px; background: var(--surface); border-radius: var(--radius); font-size: 14px; box-shadow: var(--shadow); }
.controls__count { color: var(--muted); margin-right: auto; }
.controls select { font: inherit; padding: 5px 8px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; }
.check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* group layout */
.with-side { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { display: grid; gap: 16px; }
.side__box { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.side__box h2 { margin: 0; padding: 16px 16px 6px; color: var(--ink); font-size: 18px; font-weight: 600; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side__cats { padding: 8px 0 !important; }
.side__cats ul a { padding-left: 32px; font-size: 13px; }
.side__cats a { display: block; padding: 6px 16px; color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.35; border-left: 3px solid transparent; }
.side__cats a:hover { background: var(--bg); }
.side__cats a[aria-current] { border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side__cats li.is-open { margin: 4px 10px; padding: 2px 0 8px; border-radius: 12px; background: #efeff1; }
.side__cats li.is-open > a { padding-left: 12px; border-left-color: transparent; background: none; font-weight: 700; }
.side__cats li.is-open ul a { position: relative; padding-left: 30px; border-left-color: transparent; }
.side__cats li.is-open ul a::before { content: '•'; position: absolute; left: 16px; color: var(--muted); }
.side__cats li.is-open ul a[aria-current] { background: none; color: var(--accent); font-weight: 700; }
.side__cats li.is-open ul a[aria-current]::before { color: var(--accent); }
.side__cats li.is-open a:hover { background: rgb(0 0 0 / .04); }
.side__contacts { margin: 0; padding: 12px 16px 14px; font-size: 13.5px; }
.side__contacts dt { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-top: 10px; }
.side__contacts dt:first-child { margin-top: 0; }
.side__contacts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.side__contacts a { color: var(--ink); text-decoration: none; }
.side__hours { width: 100%; border-collapse: collapse; font-size: 13px; }
.side__hours th, .side__hours td { padding: 6px 16px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.side__hours td { text-align: right; white-space: nowrap; }
.side__hours tr:last-child th, .side__hours tr:last-child td { border-bottom: 0; }
.with-side .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.gallery__main { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 8px; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { width: 68px; height: 68px; padding: 2px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.gallery__thumbs button.is-on { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo h1 { margin-top: 0; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.25; text-wrap: balance; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: var(--muted); }
.pprice { font-size: 32px; font-weight: 800; margin: 14px 0; letter-spacing: -.01em; }
.pprice.price--ask { font-size: 20px; }
.pwhole { margin: -6px 0 14px; font-size: 15px; }
.pwhole b, .pwhole span { white-space: nowrap; }
.pwhole span { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--cta-soft); color: var(--cta-ink); font-weight: 700; font-size: 13px; }
.pbuy { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 38px; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; }
.qty input { width: 52px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.porder { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.porder li { padding: 3px 0; }
.pdetails { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pdetails section { background: var(--surface); border-radius: var(--radius); padding: 4px 22px 18px; margin-top: 20px; box-shadow: var(--shadow); }
.pdetails .h2 { margin-top: 18px; }
.chars { width: 100%; border-collapse: collapse; font-size: 14px; }
.chars th, .chars td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.chars th { color: var(--muted); font-weight: 500; width: 45%; }
.chars + .chars { margin-top: 14px; }
.chars caption { text-align: left; padding: 7px 8px; color: var(--ink); font-weight: 700; background: var(--bg); }

/* rich text */
.prose { overflow-wrap: anywhere; }
.prose h2, .prose h3 { font-size: 17px; margin: 1.3em 0 .5em; }
.prose p { margin: .6em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li p { margin: .15em 0; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 5px 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.seo { background: var(--surface); border-radius: var(--radius); padding: 8px 22px 16px; margin-top: 34px; box-shadow: var(--shadow); color: #3f454b; font-size: 14.5px; }
.seo.uc--designed { padding: 0; overflow: hidden; }
.with-side .hero { margin-top: 0; }
/* info pages: the original's red section bar over a white content panel */
.info .hero { margin: 0 0 18px; }
.ptitle { margin: 0 0 16px; color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 700; }
.ptitle + * { margin-top: 0; }
.info > .prose, .info > .reviews, .info > .files, .info > .contact-cards { background: var(--surface); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: none; }
.info > .uc--designed { padding: 0; overflow: hidden; }
/* the last block of an owner description sits on the card's edge (no white strip under it) */
.uc--designed > div > :last-child { margin-bottom: 0 !important; }
/* reviews page: average, count, button */
/* Prom reviews: their tags, and the pages */
.review__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.review__tags .tag { padding: 3px 10px; border-radius: 999px; background: var(--bg); color: #4a4f57; font-size: 12.5px; }
.review__mp { color: var(--ok); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 18px 0 6px; }
.pager a, .pager__cur, .pager__gap { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; font-size: 14.5px; text-decoration: none; }
.pager a { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager__cur { background: var(--accent); color: #fff; font-weight: 700; }
.pager__gap { min-width: 20px; padding: 0; color: var(--muted); }
.rsum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 8px; padding: 18px 22px; background: var(--surface); border-radius: var(--radius); }
.rsum__score { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 15px; }
.rsum__score b { color: var(--ink); font-size: 34px; line-height: 1; }
.rsum__score .stars { color: #f5a623; font-size: 22px; letter-spacing: 1px; }
.info > .contact-cards { box-shadow: none; background: transparent; padding: 14px 0 0; }
.info > .reviews .review, .info > .files li { box-shadow: none; border: 1px solid var(--line); }
/* owner-designed content (scoped <style> blocks keep their own look) */
.uc img { max-width: 100%; height: auto; }
/* …except the dark-grey backing (#363335) of the Prom theme: white with the site's red instead */
.uc .uc-ban1-panel .uc-ban1-texts { background-color: rgb(255 255 255 / .93); border-radius: var(--radius); }
.uc .uc-ban1-panel .uc-ban1-sub-header, .uc .uc-ban1-panel .uc-ban1-text { color: var(--ink); }
.uc .uc-ban1-panel .uc-ban1-header, .uc .uc-ban1-panel strong { color: var(--accent); }
.uc .uc-ban1-panel .uc-ban1-link { color: var(--accent) !important; border-color: var(--accent) !important; border-radius: 12px; }
.uc .uc-ban1-panel .uc-ban1-link:hover { color: #fff !important; background: var(--accent); }
.uc .uc-ico-img.uc-ico-img2 { background: var(--accent); }
.uc div.uc-circle3 { border-color: var(--accent); }
.info .uc { color: #333; font-size: 14px; line-height: 1.5; }
.info .uc h2 { font-size: 22px; font-weight: 400; margin: 0 0 24px; }
.info .uc p { margin: 0 0 10px; }

/* info pages */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ccard { display: flex; flex-direction: column; gap: 4px; background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.ccard svg { color: var(--accent); width: 26px; height: 26px; margin-bottom: 6px; }
.ccard small { color: var(--muted); }
.reqs { margin-top: 18px; background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.reqs h2 { margin: 0 0 10px; font-size: 18px; }
.reqs dl { display: grid; gap: 8px; margin: 0; }
.reqs dl div { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 12px; }
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 560px) { .reqs dl div { grid-template-columns: 1fr; gap: 0; } }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 860px; }
.review { background: var(--surface); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review__head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.review__head time { color: var(--muted); font-size: 13px; margin-left: auto; }
.review p { margin: 6px 0 2px; }
.review__mp { color: var(--muted); font-size: 12px; }
.stars { color: #e3a008; letter-spacing: 1px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 860px; }
.files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; background: var(--surface); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.files li span, .files li > a:first-child { font-weight: 600; flex: 1; }
.files time { color: var(--muted); font-size: 13px; }

/* cart */
.cart { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cart__items { display: grid; gap: 10px; }
.citem { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.citem img { width: 72px; height: 72px; object-fit: contain; }
.citem a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
/* checkout: Nova Poshta city / branch lists */
.field-ac { position: relative; }
.ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 25; margin-top: 4px; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgb(0 0 0 / .18); max-height: 280px; overflow-y: auto; }
.ac__item { display: block; width: 100%; padding: 9px 12px; border: 0; background: none; font: inherit; font-size: 14px; line-height: 1.35; text-align: left; color: var(--ink); cursor: pointer; }
.ac__item:hover, .ac__item.is-active { background: var(--bg); }
.field-link { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--accent); }
/* after «Купити» */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 14px;
  background: #1f2328; color: #fff; font-size: 14.5px; box-shadow: 0 12px 30px rgb(0 0 0 / .28); transform: translate(-50%, 140%); opacity: 0;
  transition: transform .25s ease, opacity .25s ease; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast a { color: #ffd2cd; font-weight: 700; text-decoration: none; white-space: nowrap; }
body.has-buybar .toast { bottom: 86px; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* cart: how far to the minimum order */
.minbar { margin: -6px 0 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--med-yellow-soft); color: var(--med-yellow-ink); font-size: 14px; }
.minbar p { margin: 0 0 8px; }
.minbar__track { display: block; height: 6px; border-radius: 3px; background: rgb(0 0 0 / .08); overflow: hidden; }
.minbar__track i { display: block; height: 100%; width: 0; background: var(--med-yellow); border-radius: 3px; transition: width .3s; }
/* product page on a phone: price and «Купити» stay at the bottom */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -6px 24px rgb(0 0 0 / .12); }
.buybar__info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.buybar__info b { font-size: 18px; }
.buybar__info span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex: none; height: 46px; padding: 0 22px; }
body.has-buybar .msgr { bottom: 84px; }
/* long text folds */
.seo.is-folded { max-height: 420px; overflow: hidden; position: relative; }
.seo.is-folded::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgb(255 255 255 / 0), #fff); }
.fold-btn { display: block; margin: 10px auto 0; padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.fold-btn:hover { border-color: var(--accent); color: var(--accent); }
.home-h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
.facets__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; }
/* 404 */
.nf__search { display: flex; gap: 8px; max-width: 520px; margin: 14px 0 4px; }
.nf__search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
/* «Товар додано у кошик!» */
.addm { width: min(560px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .3); }
.addm::backdrop { background: rgb(17 17 17 / .45); }
.addm[open] { animation: addm-in .2s ease-out; }
@keyframes addm-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .addm[open] { animation: none; } }
.addm__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--bg); font-size: 18px; }
.addm__head b { color: var(--cta-ink); }
.addm__x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.addm__x:hover { background: #fff; color: var(--ink); }
.addm__body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 20px 6px; }
.addm__body img { width: 96px; height: 96px; object-fit: contain; }
.addm__info { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.addm__name { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.35; }
.addm__name:hover { color: var(--accent); }
.addm__info small { color: var(--muted); font-size: 13.5px; }
.addm__total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 20px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.addm__total b { font-size: 24px; }
.addm__min { margin: 10px 20px 0; padding: 9px 12px; border-radius: 10px; background: var(--med-yellow-soft); color: var(--med-yellow-ink); font-size: 13.5px; }
.addm__foot { display: flex; gap: 10px; padding: 16px 20px 20px; }
.addm__foot .btn { flex: 1; height: 48px; }
@media (max-width: 520px) { .addm__foot { flex-direction: column-reverse; } .addm { margin: auto auto 0; border-radius: 18px 18px 0 0; width: 100vw; max-width: none; } }
/* home: the catalogue open beside the banners, the five links under them */
.home-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: stretch; margin-bottom: 18px; }
.homecat { position: relative; z-index: 6; background: #fff; border-radius: var(--radius); }
.homecat .catmenu { padding: 8px 0; overflow: visible; }
.homecat .catmenu__link { min-height: 32px; font-size: 13.5px; }
.homecat .catmenu__img { width: 26px; height: 26px; }
.homecat .catmenu__img img { width: 23px; height: 23px; }
.homecat .catmenu__fly { width: 520px; min-height: 100%; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: 18px 0 40px rgb(0 0 0 / .14); }
.homecat.is-pulse { animation: homecat-pulse 1s ease-out; }
@keyframes homecat-pulse { 0%, 60% { box-shadow: 0 0 0 4px rgb(185 67 58 / .45); } 100% { box-shadow: 0 0 0 4px rgb(185 67 58 / 0); } }
.home-cats { display: none; }
.home-h1 { margin: 34px 0 14px; font-size: 22px; }
.hero--bnr { aspect-ratio: auto; height: 100%; min-height: 360px; margin: 0; }
.bnr { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 40px 48px 56px; text-decoration: none; color: var(--ink); }
.bnr--red { background: linear-gradient(120deg, #b9433a, #8f2f28); color: #fff; }
.bnr--blue { background: linear-gradient(120deg, #e3eefb, #f6f9fd); }
.bnr--green { background: linear-gradient(120deg, #def3e6, #f5fbf7); }
.bnr--warm { background: linear-gradient(120deg, #fdf0dc, #fffaf2); }
.bnr--text { grid-template-columns: minmax(0, 1fr); }
.bnr--text .bnr__sub { max-width: 640px; }
.bnr__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bnr__kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.bnr__title { font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; line-height: 1.12; text-wrap: balance; }
.bnr__sub { font-size: 16px; line-height: 1.45; max-width: 460px; opacity: .9; }
.bnr__cta { margin-top: 8px; padding: 12px 22px; border-radius: 12px; background: var(--cta); color: #fff; font-weight: 700; font-size: 15px; }
.bnr--red .bnr__cta { background: #fff; color: var(--accent); }
.bnr:hover .bnr__cta { filter: brightness(1.06); }
.bnr__art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: center; }
.bnr__pic { aspect-ratio: 1; display: grid; place-items: center; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgb(0 0 0 / .12); }
.bnr__pic:nth-child(2) { transform: translateY(-18px); }
.bnr__pic img { width: 100%; height: 100%; object-fit: contain; }
.bnr__stat { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgb(0 0 0 / .1); text-align: center; }
.bnr__stat b { font-size: clamp(22px, 2.4vw, 34px); color: var(--cta-ink); }
.bnr__stat small { margin-top: 4px; font-size: 13px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.quick__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.quick__item:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .1); transform: translateY(-2px); }
.quick__ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.quick__ic svg { width: 26px; height: 26px; }
.quick__item b { display: block; font-size: 15px; line-height: 1.25; }
.quick__item small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
/* text pages without the left column */
.info--page { max-width: 1100px; }
.lead { margin: -4px 0 16px; max-width: 820px; color: #3f454b; font-size: 15.5px; line-height: 1.55; }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--cta-soft); }
.callout span { flex: 1; color: #2f5d43; }
/* certificates */
.steps { margin: 0 0 18px; padding: 16px 22px 16px 42px; border-radius: var(--radius); background: #fff; line-height: 1.7; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cert { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--radius); background: #fff; }
.cert__ic { color: var(--accent); }
.cert__ic svg { width: 28px; height: 28px; }
.cert b { font-size: 16px; }
.cert__goods { color: var(--muted); font-size: 13.5px; }
.cert__docs { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.cert__ask, .cert__file { display: inline-flex; align-items: center; gap: 6px; color: var(--cta-ink); font-weight: 600; font-size: 14px; }
.cert__file svg { width: 18px; height: 18px; }
@media (max-width: 1280px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1020px) {
  .home-top { grid-template-columns: 1fr; }
  .homecat { display: none; }
  .home-cats { display: block; }
  .bnr { padding: 30px 30px 48px; }
}
@media (max-width: 760px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quick__item { padding: 12px; gap: 10px; }
  .quick__ic { width: 38px; height: 38px; }
  .hero--bnr { min-height: 0; height: 330px; }
  .bnr { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 22px 20px 40px; }
  .bnr__title { font-size: 23px; }
  .bnr__sub { font-size: 14px; }
  .bnr__cta { padding: 10px 18px; font-size: 14px; }
  .bnr__art { position: absolute; right: 14px; bottom: 34px; width: 46%; gap: 8px; }
  .bnr__art > :nth-child(n+2) { display: none; }
  .bnr__art { grid-template-columns: 1fr; width: 34%; }
  .bnr__sub { max-width: 62%; }
  .addm__body { grid-template-columns: 72px minmax(0, 1fr); }
  .addm__body img { width: 72px; height: 72px; }
}
/* the owner's picture banners, brands, practices */
.bnr--img { display: block; padding: 0; background: #fff; }
.bnr--img img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.bnr__cap { display: none; }
.brands { margin: 4px 0 22px; text-align: center; }
.brands__title { margin: 6px 0 14px; color: var(--accent); font-size: 22px; font-weight: 700; }
.brands__row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 78px; padding: 10px 6px;
  border: 1px solid #ece7e3; border-radius: 14px; background: #fff; color: #2f3337; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.brand:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .08); transform: translateY(-2px); }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand--accent b { color: #c0282d; font-size: 25px; }
.brand small { color: var(--muted); font-size: 11.5px; }
.dirs { margin: 0 0 22px; }
.dirs__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dir { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none;
  transition: box-shadow .15s, transform .15s; }
.dir:hover { box-shadow: 0 10px 28px rgb(0 0 0 / .1); transform: translateY(-2px); }
.dir img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; display: block; }
.dir__text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.dir__text b { font-size: 17px; }
.dir__text small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.dir__more { margin-top: 6px; color: var(--accent-ink, var(--accent)); font-weight: 700; font-size: 14px; }
.seo--own { padding: 18px 26px 22px; line-height: 1.6; }
.seo--own h2 { margin: 6px 0 10px; font-size: 22px; color: var(--ink); }
.seo--own h3 { margin: 18px 0 6px; font-size: 17px; color: var(--ink); }
.dpage { max-width: none; }
.dsec { margin: 22px 0 6px; }
.dsec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.dsec__head h2 { margin: 0; font-size: 20px; }
.dsec__all { color: var(--accent); font-weight: 600; font-size: 14.5px; }
@media (max-width: 1280px) { .brands__row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1020px) {
  .hero--img { height: auto; aspect-ratio: 1610 / 977; }
  .dirs__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* the picture whole, and its words once more under it where they can be read */
  .hero--img { aspect-ratio: auto; height: auto; padding-bottom: calc(977 / 1610 * 100% + 64px); }
  .bnr--img img { height: auto; aspect-ratio: 1610 / 977; }
  .bnr--img .bnr__cap { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 0 12px 0 14px; background: #fff; }
  .bnr__cap b { font-size: 14px; line-height: 1.25; }
  .bnr__cap .bnr__cta { margin: 0; padding: 9px 12px; font-size: 13px; white-space: nowrap; }
  .hero--img .hero__dots { bottom: 66px; }
  .brands__title { font-size: 19px; }
  .brands__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .brand { min-height: 66px; }
  .brand b { font-size: 16px; }
  .brand--accent b { font-size: 22px; }
  .dirs__row { gap: 10px; }
  .dir__text { padding: 10px 12px 12px; }
  .dir__text b { font-size: 15px; }
  .dir__text small { font-size: 12.5px; }
  .seo--own { padding: 14px 16px 18px; }
  .tile--icon .tile__icon { aspect-ratio: 16 / 11; }
  .tile--icon .tile__icon img { width: 50%; }
}
/* «З цим товаром часто беруть» */
.addm__more { margin: 14px 20px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.addm__more > b { display: block; margin-bottom: 8px; font-size: 14.5px; }
.addm__more ul, .cart-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg); }
.mini img { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.mini__name { color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__name:hover { color: var(--accent); }
.mini__price { grid-column: 2; font-size: 14.5px; }
.mini__price small { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.mini__add { grid-column: 3; grid-row: 1 / span 2; height: 36px; padding: 0 12px; border: 1.5px solid var(--cta); border-radius: 10px; background: #fff; color: var(--cta-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mini__add:hover { background: var(--cta-soft); }
.mini__add:disabled { border-color: transparent; background: var(--cta-soft); cursor: default; }
.cart-more { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: #fff; }
.cart-more .h2 { margin: 0 0 12px; font-size: 17px; }
.addm { max-height: calc(100vh - 24px); overflow-y: auto; }
.citem__meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.citem__meta b { color: var(--ink); font-weight: 500; }
.citem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.citem__rm { border: 0; background: none; color: var(--muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-empty { background: var(--surface); padding: 48px 24px 32px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); margin-bottom: 28px; }
.cart-empty__icon { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.cart-empty__icon svg { width: 48px; height: 48px; }
.cart-empty h2 { font-size: 26px; margin: 0 0 8px; }
.cart-empty p { color: var(--muted); max-width: 480px; margin: 0 auto 22px; font-size: 16px; }
.cart-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cart-empty__cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cart-empty__cats a { border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--surface); }
.cart-empty__cats a:hover { border-color: var(--accent); color: var(--accent); }
.checkout { background: var(--surface); padding: 6px 22px 22px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 12px; position: sticky; top: 132px; }
.checkout .h2 { margin: 14px 0 0; }
.checkout label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.checkout input:not([type=radio]), .checkout textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; }
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--accent); }
.checkout fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.checkout legend { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.checkout .radio { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.checkout .radio input { accent-color: var(--accent); }
.checkout__total { display: flex; justify-content: space-between; font-size: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.notice { background: var(--med-green-soft); color: #1e5a37; padding: 12px 14px; border-radius: 8px; margin: 0; font-size: 14px; }
.warn { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--med-yellow-soft); color: var(--med-yellow-ink); font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--buy:disabled { background: var(--line); border-color: var(--line); color: var(--muted); opacity: 1; }
.pnote--out { color: var(--muted); }
.citem--out img, .citem--out a { opacity: .55; }
.citem--out .citem__side .qty, .citem--out .citem__side > b { display: none; }
.citem--out .muted b { color: var(--accent-ink); font-weight: 600; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.buyer-co { display: grid; gap: 12px; }
.checkout .field-hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.checkout .field-hint:empty { display: none; }
.buyer-co__head { margin: 2px 0 -4px; font-size: 13.5px; font-weight: 600; }
.addr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.addr__street { grid-column: 1 / -1; }
.buyer-co__names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .buyer-co__names { grid-template-columns: 1fr 1fr; } .buyer-co__names label:last-child { grid-column: 1 / -1; } }

/* vacation notice (shop.json → vacation) */
.vacation { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--med-blue-soft); color: #1d4a7e; border-left: 4px solid var(--med-blue); font-size: 14px; }

/* characteristic filters on category pages */
.facets { margin: -4px 0 14px; padding: 10px 14px 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13.5px; }
.facets summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.facets__reset { margin-left: auto; border: 0; background: none; color: var(--med-blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.facet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.facet__name { min-width: 150px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 16px; padding: 4px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--med-blue); }
.chip[aria-pressed="true"] { background: var(--med-blue); border-color: var(--med-blue); color: #fff; }

/* order confirmation and its printable sheet («Завантажити PDF» = print → Save as PDF) */
.order-done { display: grid; gap: 16px; max-width: 860px; }
.order-done__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet { background: #fff; color: #111; padding: 24px 28px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; }
.sheet__head { display: flex; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 3px solid var(--accent); font-size: 13px; line-height: 1.5; }
.sheet h2 { margin: 18px 0 2px; font-size: 20px; }
.sheet__info { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 16px 0; }
.sheet__info dt { color: var(--muted); }
.sheet__info dd { margin: 0; }
.sheet__items { width: 100%; border-collapse: collapse; }
.sheet__items th, .sheet__items td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sheet__items img { width: 48px; height: 48px; object-fit: contain; display: block; }
.sheet__items .num { text-align: right; white-space: nowrap; }
.sheet__items tfoot td { border-bottom: 0; font-size: 16px; }
.sheet__note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
@media print {
  body { background: #fff; }
  .hdr, .ftr, .crumbs, .main > h1, .order-done > .notice, .order-done__actions, .vacation, .msgr { display: none !important; }
  .main { padding: 0; }
  .sheet { box-shadow: none; padding: 0; }
}

/* footer */
.ftr { background: #2a2e32; color: #c9cdd1; font-size: 14px; }
.ftr__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-top: 34px; padding-bottom: 20px; }
.ftr h2 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { padding: 3px 0; }
.ftr__cats { columns: 2; column-gap: 24px; }
.ftr a { color: #c9cdd1; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__copy { border-top: 1px solid #3b4046; padding-top: 14px; padding-bottom: 20px; color: #aab0b6; font-size: 13px; }
.ftr p a, .side__contacts a { display: inline-block; padding: 5px 0; }

@media (max-width: 1020px) {
  .logo__tag, .hdr__hours, .hdr__phone small { display: none; }
  .hdr__phone b { font-size: 14px; }
  .with-side { grid-template-columns: 1fr; }
  .side { display: none; }
  .info .uc h2 { font-size: 19px; }
  .pdetails { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .facet__name { min-width: 0; width: 100%; }
  .sheet { padding: 16px; }
  .sheet__info { grid-template-columns: 1fr; gap: 2px; }
  .sheet__info dd { margin-bottom: 6px; }
  body { font-size: 14.5px; }
  .hdr .wrap { padding-left: 12px; padding-right: 12px; }
  .hdr__links { min-height: 50px; gap: 10px; }
  .hdr__links { grid-template-columns: auto 1fr; }
  .hdr__main { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .logo__badge { width: 40px; height: 40px; }
  .logo__badge img { width: 36px; }
  .catwrap { position: static; width: auto; }
  .catwrap .catbtn { width: 44px; }
  .catpanel { left: 0; right: 0; top: 100%; width: auto; border-radius: 0 0 16px 16px; }
  .catmenu__link { min-height: 50px; font-size: 15px; }
  .catmenu__fly li a { padding: 10px 0; font-size: 15px; }
  .cart-note { width: min(300px, calc(100vw - 24px)); right: -4px; }
  .hdr__phone { width: 44px; height: 44px; justify-content: center; border-radius: 12px; background: rgb(255 255 255 / .16); }
  .hdr__phone > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cart-link { height: 44px; padding: 0 12px; }
  .cart-link__label { display: none; }
  .catbtn { height: 44px; padding: 0; justify-content: center; }
  .catbtn span { display: none; }
  .search { height: 44px; }
  .with-side .tiles.tiles--sub { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tiles--sub .tile__name { padding: 6px 6px 10px; font-size: 12px; }
  .msgr { right: 12px; bottom: 12px; }
  /* header: no info links on a phone (they are in the footer), and it slides away while scrolling down */
  .toplinks { display: none; }

  .hdr { transition: transform .25s ease; }
  .hdr.hdr--away { transform: translateY(-100%); }
  .home-h1 { font-size: 20px; margin-bottom: 12px; }
  .tile img { aspect-ratio: 16 / 11; }
  .facets:not([open]) { padding-bottom: 10px; }
  .facets summary { padding: 4px 0; }
  /* cart lines: name across, quantity and sum under it */
  .citem { grid-template-columns: 60px minmax(0, 1fr); gap: 10px 12px; }
  .citem img { width: 60px; height: 60px; }
  .citem__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--bg); padding-top: 10px; }
  .toast { left: 12px; right: 12px; bottom: 14px; transform: translateY(140%); justify-content: space-between; }
  .toast.is-on { transform: none; }
  .msgr__btn { width: 52px; height: 52px; }
  .card { padding: 10px 10px 12px; }
  .price { font-size: 17px; }
  .perks { grid-template-columns: 1fr; gap: 8px; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .with-side .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 6px 8px 10px; }
  .tile__name { font-size: 12px; }
  .card .btn--buy span { display: inline; }
  .product { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .pprice { font-size: 26px; }
  .pdetails section { padding: 2px 14px 12px; }
  .cart { grid-template-columns: 1fr; }
  .checkout { position: static; padding: 4px 16px 18px; }
  .ftr__in { grid-template-columns: 1fr; gap: 20px; }
  .seo { padding: 4px 16px 12px; }
}
.prose li > span + span { display: block; white-space: pre-line; color: var(--muted); margin-top: 4px; }
.prose h4 { font-size: 16px; margin: 1.2em 0 .4em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* reviews: the form's star rating, own reviews, product review section */
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; width: max-content; justify-self: start; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 30px; line-height: 1; color: #d6d8dc; cursor: pointer; transition: color .1s; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #e3a008; }
.stars-input input:focus-visible + label { outline: 2px solid var(--med-blue); outline-offset: 2px; border-radius: 4px; }
.review-form { max-width: 640px; margin-top: 16px; }
.review-form__about { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--med-blue-soft); font-size: 14px; }
.stars__off { color: #d6d8dc; }
.review__ok { display: inline-block; margin-top: 4px; color: var(--med-green); font-weight: 600; font-size: 12px; }
.review__product { display: block; margin-top: 4px; font-size: 13px; color: var(--med-blue); }
.review-cta { margin: 14px 0 6px; }
.previews { margin-top: 20px; background: var(--surface); border-radius: var(--radius); padding: 4px 22px 20px; box-shadow: var(--shadow); }
.previews .reviews { margin-bottom: 14px; max-width: none; }
.previews .review { box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 760px) { .previews { padding: 2px 14px 14px; } }
