/* ==========================================================================
   Orbita Store — стилі теми.
   1. Токени, теми   2. База   3. Елементи   4. Шапка   5. Каталог у шапці
   6. Головна   7. Картки товарів   8. Каталог   9. Сторінка товару
   10. Кошик, оформлення, кабінет   11. Списки, блог, сторінки   12. Футер, док
   13. Панелі, модалка, тост   14. Адаптив
   ========================================================================== */

/* 1. Токени ------------------------------------------------------------- */
:root {
	--c-primary: #457de3;
	--c-dark-brand: #1f1f22;
	--c-sale: #e5484d;
	--c-page: #f5f5f7;
	--shop-cols: 4;

	--primary: var(--c-primary);
	--primary-soft: color-mix(in srgb, var(--c-primary) 12%, transparent);
	--sale: var(--c-sale);
	--sale-soft: color-mix(in srgb, var(--c-sale) 12%, transparent);
	--ok: #22a05b;
	--ok-soft: #e7f6ee;
	--warn: #c77700;
	--warn-soft: #fff3df;
	--star: #ffb400;

	--bg: var(--c-page);
	--surface: #fff;
	--surface-2: #f2f2f2;
	--line: #ececee;
	--line-2: #e0e0e3;
	--ink: #0f0f10;
	--ink-2: #3d3d42;
	--muted: #8e8e93;
	--btn: #0f0f10;
	--btn-ink: #fff;
	--img-bg: #fff;

	--head: var(--c-dark-brand);
	--head-2: color-mix(in srgb, var(--c-dark-brand), #fff 7%);
	--head-3: color-mix(in srgb, var(--c-dark-brand), #fff 13%);
	--head-ink: #fff;
	--head-muted: #a5a5ab;
	--foot: var(--c-dark-brand);

	--r-lg: 20px;
	--r: 16px;
	--r-sm: 12px;
	--r-xs: 8px;
	--shadow-sm: 4px 4px 24px rgb(0 0 0 / .05);
	--shadow: 8px 8px 48px rgb(0 0 0 / .08);
	--shadow-pop: 0 18px 60px rgb(0 0 0 / .16);
	--gap: 16px;
	--container: 1600px;
	--pad: 24px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0d0d0e;
	--surface: #1b1b1d;
	--surface-2: #252528;
	--line: #2a2a2e;
	--line-2: #36363b;
	--ink: #f3f3f5;
	--ink-2: #c8c8ce;
	--muted: #8e8e95;
	--btn: #f3f3f5;
	--btn-ink: #0f0f10;
	--img-bg: #fff;
	--ok-soft: rgb(34 160 91 / .16);
	--warn-soft: rgb(199 119 0 / .18);
	--head: #161618;
	--head-2: #222225;
	--head-3: #2c2c30;
	--foot: #161618;
	--shadow-sm: 0 0 0 1px var(--line);
	--shadow: 0 12px 40px rgb(0 0 0 / .5);
	color-scheme: dark;
}

/* 2. База -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: clip; overflow-anchor: none; scrollbar-gutter: stable; }
body { margin: 0; font: 400 14px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background-color .25s; }
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.i { width: 20px; height: 20px; flex: none; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.site-main { min-height: 50vh; }
.section { margin-top: 30px; }
/* .site-main — бо WordPress додає клас «page» і до <body> */
.site-main .page { padding-top: 20px; }
.panel { background: var(--surface); border-radius: var(--r); }

/* 3. Елементи ------------------------------------------------------------ */
.btn, .button, button.button, input[type=submit], .wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
	border: 1px solid transparent; border-radius: var(--r-sm); background: var(--btn); color: var(--btn-ink);
	font-weight: 600; font-size: 14px; line-height: 1.2; text-align: center; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s, opacity .2s;
}
.btn:hover, .button:hover, input[type=submit]:hover, .wp-element-button:hover { color: var(--btn-ink); opacity: .88; }
.btn:active, .button:active { transform: translateY(1px); }
.btn--primary, .button.alt, .checkout-button, #place_order, .single_add_to_cart_button { background: var(--primary); color: #fff; }
.btn--primary:hover, .button.alt:hover, .checkout-button:hover, #place_order:hover, .single_add_to_cart_button:hover { color: #fff; background: color-mix(in srgb, var(--primary), #000 12%); opacity: 1; }
.btn--dark { background: var(--btn); color: var(--btn-ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); opacity: 1; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn .i, .button .i { width: 18px; height: 18px; }
.loading { position: relative; pointer-events: none; color: transparent !important; }
.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--btn-ink) var(--btn-ink) transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.loading > * { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 600; font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.icon-btn:hover { color: var(--primary); }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea, .input-text {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
	background: var(--surface); color: var(--ink); font-size: 14px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .input-text:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
select { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
label { font-weight: 600; font-size: 13px; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 17px; height: 17px; }

.arrow { display: inline-grid; place-items: center; width: 36px; height: 28px; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s, opacity .2s; }
.arrow .i { width: 16px; height: 16px; }
.arrow:hover:not(:disabled) { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrows { display: flex; gap: 6px; }
.pill-link { display: inline-grid; place-items: center; width: 38px; height: 22px; border-radius: 11px; background: var(--primary); color: #fff; flex: none; transition: transform .2s; }
.pill-link .i { width: 14px; height: 14px; }
.pill-link:hover { color: #fff; transform: translateX(2px); }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink); }
.chip .i { width: 14px; height: 14px; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--reset { border-color: transparent; background: none; color: var(--primary); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; }

/* Зірки */
.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars .i { width: 15px; height: 15px; }
.stars__bg { display: inline-flex; gap: 1px; color: var(--line-2); }
.stars__fg { position: absolute; inset: 0 auto 0 0; display: inline-flex; gap: 1px; overflow: hidden; color: var(--star); white-space: nowrap; }
.star-rating { position: relative; display: inline-block; width: 80px; height: 15px; font-size: 0; overflow: hidden; }
.star-rating::before, .star-rating span::before { content: "★★★★★"; position: absolute; inset: 0; font-size: 15px; letter-spacing: 1px; line-height: 1; color: var(--line-2); }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 15px; }
.star-rating span::before { color: var(--star); }
.star-rating strong { display: none; }

/* Мітки */
.badges { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 60px); pointer-events: none; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--primary); letter-spacing: .01em; }
.badge--sale, .badge--pct { background: var(--sale); }
.badge--hit { background: #f59e0b; }

/* Наявність */
.stock-label { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.stock-label.is-in { background: var(--ok-soft); color: var(--ok); }
.stock-label.is-low, .stock-label.is-order { background: var(--warn-soft); color: var(--warn); }
.stock-label.is-out { background: var(--surface-2); color: var(--muted); }

/* Ціна */
.price { display: flex; flex-direction: column; margin: 0; font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.price del { order: -1; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.price ins { text-decoration: none; color: var(--sale); }
.price .from { font-size: 12px; font-weight: 500; color: var(--muted); }
.price .woocommerce-Price-currencySymbol { font-weight: inherit; }

/* Заголовок секції */
.shead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.shead__title { margin: 0; font-size: 20px; font-weight: 600; }
.shead__side { display: flex; align-items: center; gap: 14px; }
.shead__all { font-size: 13px; font-weight: 600; color: var(--muted); }
.shead__all:hover { color: var(--primary); }
.page-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; margin-bottom: 16px; }
.h1 { font-size: clamp(22px, 2.2vw, 28px); }
.h2 { font-size: 22px; }
.h3 { font-size: 18px; }

/* Хлібні крихти */
.woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.woocommerce-breadcrumb a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.woocommerce-breadcrumb .sep { color: var(--line-2); }

/* Стрілки під стрічкою */
.rpager { display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; margin: 16px auto 0; padding: 4px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.rpager__bar { position: relative; width: 120px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rpager__bar i { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: 2px; background: var(--ink); transition: transform .15s linear; }
.rpager .arrow { border: 0; }

/* Стрічки */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
@media (hover: hover) and (pointer: fine) { .rail__track { cursor: grab; } }
.rail__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.rail__track.is-dragging * { pointer-events: none; }

/* 4. Шапка -------------------------------------------------------------- */
.topbar { background: var(--head); color: var(--head-muted); font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; }
.topbar__nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; }
.topbar a { color: #e6e6ea; }
.topbar a:hover { color: #fff; }
.topbar__side { display: flex; align-items: center; gap: 18px; }
.langs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 14px; background: rgb(255 255 255 / .08); }
.langs__item { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: #cfcfd4; }
.langs__item:hover { color: #fff; }
.langs__item.is-active { background: var(--primary); color: #fff; }
.langs--drawer { margin-left: auto; margin-right: 8px; background: var(--surface-2); }
.langs--drawer .langs__item { color: var(--ink-2); }
.langs--drawer .langs__item.is-active { color: #fff; }
.topbar__text { display: flex; align-items: center; gap: 6px; margin: 0; }
.topbar__text .i { width: 15px; height: 15px; }

.header { position: relative; z-index: 60; }
.header.is-sticky { position: sticky; top: 0; }
.header__shell { background: var(--head); color: var(--head-ink); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset; transition: box-shadow .25s; }
.header.is-stuck .header__shell { box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.header__row { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.hbtn { display: inline-grid; place-items: center; position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 22px; background: var(--head-2); color: var(--head-ink); transition: background-color .2s; }
.hbtn:hover { background: var(--head-3); color: #fff; }
.header__burger { width: 58px; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.header__burger.is-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.is-open .burger i:nth-child(2) { opacity: 0; }
.header__burger.is-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; color: inherit; font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.logo:hover { color: inherit; }
.logo__mark { width: 42px; height: 42px; flex: none; overflow: visible; filter: drop-shadow(0 0 10px rgb(61 123 255 / .45)); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.05); }
/* Назва — яскравий градієнт, як у знаку. */
.logo__text { background: linear-gradient(92deg, #22e3ff 0%, #5b8cff 45%, #c065ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__img { max-height: 40px; width: auto; }
.header__logo { margin: 0 10px 0 4px; color: #fff; }

.header__search { flex: 1; min-width: 0; max-width: 620px; }
.hsearch { position: relative; display: flex; align-items: center; height: 44px; border-radius: 22px; background: var(--head-2); color: var(--head-ink); transition: background-color .2s, box-shadow .2s; }
.hsearch:focus-within { background: var(--head-3); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 60%, transparent); }
.hsearch__cat, .hsearch__voice, .hsearch__btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: none; color: var(--head-muted); }
.hsearch__cat:hover, .hsearch__voice:hover, .hsearch__btn:hover { color: #fff; }
.hsearch__voice { border-right: 1px solid rgb(255 255 255 / .08); }
.hsearch__voice.is-listening { color: var(--sale); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hsearch__input { flex: 1; min-width: 0; min-height: 0 !important; height: 44px; padding: 0 6px !important; border: 0 !important; background: none !important; color: inherit !important; box-shadow: none !important; }
.hsearch__input::placeholder { color: var(--head-muted); }
.hsearch__input::-webkit-search-cancel-button { filter: invert(1); }
.hsearch__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.sr-group { padding: 10px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sr-cat { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-weight: 600; }
.sr-cat small { color: var(--muted); font-weight: 500; }
.sr-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.sr-item img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--img-bg); }
.sr-item__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.sr-item__title small { display: block; color: var(--muted); font-weight: 500; }
.sr-item .price { font-size: 14px; }
.sr-cat:hover, .sr-item:hover, .sr-cat.is-active, .sr-item.is-active { background: var(--surface-2); color: var(--ink); }
.sr-all { display: block; margin-top: 4px; padding: 12px; border-radius: 10px; background: var(--surface-2); text-align: center; font-weight: 700; color: var(--primary); }
.sr-empty { padding: 20px; text-align: center; color: var(--muted); }

.hphone { position: relative; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hphone__main { display: flex; flex-direction: column; align-items: flex-end; color: #fff; line-height: 1.2; }
.hphone__main b { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.hphone__main small { font-size: 11.5px; color: var(--head-muted); }
.hphone__main:hover { color: #fff; }
.hphone__toggle { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--head-muted); }
.hphone__toggle .i { width: 16px; height: 16px; transition: transform .2s; }
.hphone__toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 14px); right: 0; z-index: 90; min-width: 300px; padding: 16px; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

.clist { list-style: none; display: grid; gap: 10px; font-size: 13.5px; }
.clist li { display: flex; align-items: flex-start; gap: 10px; }
.clist .i { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.clist a { font-weight: 600; }
.msgr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.msgr__item { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 18px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.msgr__item .i { width: 18px; height: 18px; color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.hcart { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--head-2); color: #fff; font-weight: 600; }
.hcart:hover { background: var(--head-3); color: #fff; }
.hcount, .dcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.hcount.is-bump, .dcount.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.hcart-total { font-size: 13.5px; white-space: nowrap; }
.hcart-total.is-empty { display: none; }
.scheme { position: relative; display: grid; gap: 2px; width: 30px; height: 44px; padding: 3px; border: 0; border-radius: 15px; background: var(--head-2); color: var(--head-muted); }
.scheme .i { width: 14px; height: 14px; margin: auto; transition: color .2s; }
.scheme::before { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 18px; border-radius: 9px; background: var(--head-3); transition: transform .25s var(--ease); }
:root[data-theme="dark"] .scheme::before { transform: translateY(20px); }
.scheme .i { position: relative; }
:root:not([data-theme="dark"]) .scheme__sun, :root[data-theme="dark"] .scheme__moon { color: #fff; }

.header__nav { border-top: 1px solid rgb(255 255 255 / .06); transition: max-height .3s var(--ease), opacity .2s; max-height: 60px; overflow: hidden; }
.header.is-sticky.is-stuck .header__nav { max-height: 0; opacity: 0; border-top-color: transparent; }
.mainnav > ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; }
.mainnav a { display: block; padding: 10px 0 12px; font-size: 13.5px; font-weight: 600; color: #ececf0; }
.mainnav a:hover { color: #fff; }
.mainnav .menu-sale > a { color: #ff8a8d; }
.mainnav .sub-menu { display: none; }

.msearch { padding: 10px 0; background: var(--head); }
.msearch .hsearch { background: var(--head-2); }

/* 5. Каталог у шапці (каскад) ------------------------------------------- */
.catmenu { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; padding-top: 10px; animation: pop .18s var(--ease); }
.catmenu__box { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; min-height: 420px; max-height: calc(100vh - 160px); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden; }
.catmenu__col { overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-right: 1px solid var(--line); }
.catmenu__col--roots { list-style: none; }
.catmenu__panel { display: none; list-style: none; }
.catmenu__panel.is-active { display: block; }
/* Підрозділи без третього рівня — у кілька колонок; колонка груп лише коли вона потрібна. */
.catmenu__col--subs .catmenu__panel.is-active { column-width: 220px; column-gap: 4px; }
.catmenu__col--subs .catmenu__panel li { break-inside: avoid; }
.catmenu__col--leaves { display: none; }
.catmenu.has-leaves .catmenu__box { grid-template-columns: 300px 280px minmax(0, 1fr) 280px; }
.catmenu.has-leaves .catmenu__col--leaves { display: block; }
.catmenu.has-leaves .catmenu__col--subs .catmenu__panel.is-active { column-width: auto; column-count: 1; }
.catmenu__link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.catmenu__link span { flex: 1; }
.catmenu__link:hover, .catmenu__link.is-active { background: var(--surface-2); color: var(--ink); }
.catmenu__ico { width: 28px; height: 28px; flex: none; border-radius: 8px; object-fit: contain; background: var(--img-bg); }
.cthumb.is-empty, .catmenu__ico.is-empty { display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.catmenu__ico.is-empty .i { width: 16px; height: 16px; }
.catmenu__chev { width: 16px; height: 16px; color: var(--muted); }
.catmenu__all { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px; font-size: 13px; font-weight: 600; color: var(--primary); }
.catmenu__all .i { width: 16px; height: 16px; }
.catmenu__col--leaves { background: var(--surface); }
.catmenu:not(.has-leaves) .catmenu__col--leaves { background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.catmenu__feature { padding: 16px; border-left: 1px solid var(--line); }
.catmenu__card { display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); }
.catmenu__card.is-active { display: flex; }
.catmenu__card:hover { color: var(--ink); }
.catmenu__img { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 10px; object-fit: contain; border-radius: 10px; background: var(--img-bg); transition: transform .4s var(--ease); }
.catmenu__img.is-empty { display: grid; place-items: center; color: var(--muted); }
.catmenu__card:hover .catmenu__img { transform: scale(1.03); }
.catmenu__card b { font-size: 16px; }
.catmenu__card small { color: var(--muted); }
body.is-catmenu::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .35); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

/* 6. Головна ------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(260px, 340px); gap: var(--gap); margin-top: 20px; }
.hero:not(.has-cat) { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); }
.hero:not(.has-side) { grid-template-columns: 300px minmax(0, 1fr); }
.hero:not(.has-side):not(.has-cat) { grid-template-columns: 1fr; }
.hero__cat { position: relative; z-index: 6; }
.vcat { height: 100%; border-radius: var(--r); background: var(--surface); padding: 6px; }
.vcat__list { list-style: none; display: grid; grid-auto-rows: minmax(44px, 1fr); height: 100%; }
.vcat__link { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 44px; padding: 6px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.vcat__link span { flex: 1; }
.vcat__link > .i { width: 16px; height: 16px; color: var(--muted); }
.vcat__ico { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; flex: none; background: var(--img-bg); }
.vcat__ico.is-empty .i { width: 15px; height: 15px; }
.vcat__item:hover > .vcat__link, .vcat__item:focus-within > .vcat__link { background: var(--surface-2); color: var(--ink); }
.vcat__fly { position: absolute; top: 0; left: calc(100% + 8px); z-index: 10; display: none; width: min(820px, calc(100vw - 420px)); min-height: 100%; padding: 24px 28px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-pop); }
.vcat__item:hover > .vcat__fly, .vcat__item:focus-within > .vcat__fly { display: block; animation: pop .15s var(--ease); }
.vcat__item.has-children:hover > .vcat__link::after { content: ""; position: absolute; left: 100%; width: 12px; height: 44px; }
.vcat__item { position: static; }
.vcat__link { position: relative; }
.vcat__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.vcat__sub { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.vcat__group ul { list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.vcat__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; color: var(--primary); }
.vcat__more .i { width: 16px; height: 16px; }

.hero__slider { position: relative; min-width: 0; border-radius: var(--r); overflow: hidden; background: #000; }
.hero__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__track .banner { flex: 0 0 100%; scroll-snap-align: start; }
.hero__dots { position: absolute; top: 22px; right: 22px; z-index: 3; display: flex; gap: 6px; }
.hero__dots i { width: 14px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .35); transition: width .3s, background-color .3s; }
.hero__dots i.is-active { width: 26px; background: #fff; }
.hero__nav { position: absolute; left: 50%; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 8px 12px 6px; transform: translateX(-50%); border-radius: 18px 18px 0 0; background: var(--bg); }
.hero__nav::before, .hero__nav::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 18px; background: radial-gradient(circle at 0 0, transparent 17.5px, var(--bg) 18px); }
.hero__nav::before { right: 100%; }
.hero__nav::after { left: 100%; transform: scaleX(-1); }
.hero__nav .arrow { border-color: transparent; background: var(--surface); }
.hero__progress { position: relative; width: 100px; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hero__progress i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease); }
.hero__side { display: grid; min-width: 0; }

/* Банери */
.banner { --b-bg: #000; --b-accent: #8fb2ee; position: relative; display: flex; overflow: hidden; border-radius: var(--r); background: var(--b-bg); color: #fff; isolation: isolate; }
.banner.tone-dark { --b-bg: #f2f2f4; color: var(--c-dark-brand); }
.banner__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.banner:hover .banner__img { transform: scale(1.03); }
.banner.is-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(0 0 0 / .62), rgb(0 0 0 / .15) 60%, transparent); }
.banner.is-photo.tone-dark::before { background: linear-gradient(100deg, rgb(255 255 255 / .85), rgb(255 255 255 / .3) 55%, transparent); }
.banner.is-product .banner__img { inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.banner.tile.is-product .banner__img, .banner.promo.is-product .banner__img { inset: auto 0 0 0; width: 100%; height: 66%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
.banner.pbanner.is-product .banner__img { width: 58%; }
.banner.is-product .banner__price { text-shadow: 0 0 18px var(--b-bg), 0 0 6px var(--b-bg); }
.banner__body { display: flex; flex-direction: column; width: 100%; padding: 28px; }
.banner__eyebrow { margin-bottom: 6px; font-size: 14px; font-weight: 500; opacity: .9; }
.banner__title { margin: 0; max-width: 16ch; font-size: clamp(22px, 2.3vw, 34px); font-weight: 600; line-height: 1.15; color: inherit; }
.banner__text { margin: 8px 0 0; max-width: 24ch; font-size: clamp(16px, 1.55vw, 24px); font-weight: 600; line-height: 1.2; color: var(--b-accent); }
.banner__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; }
.banner__price { margin: 0; font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; line-height: 1.1; }
.banner__price small { display: block; font-size: 14px; font-weight: 500; color: var(--b-accent); }
.banner__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: rgb(255 255 255 / .14); backdrop-filter: blur(8px); font-weight: 600; font-size: 13px; }
.banner.tone-dark .banner__btn { background: rgb(0 0 0 / .08); }
.banner__btn .i { width: 16px; height: 16px; }
.banner__link { position: absolute; inset: 0; z-index: 2; }
.banner.slide { min-height: 440px; border-radius: 0; }
.banner.slide .banner__body { padding: 36px 40px 64px; }
.banner.tile { min-height: 100%; }
.banner.tile .banner__title { font-size: clamp(20px, 1.6vw, 26px); }
.banner.tile .banner__text { font-size: clamp(18px, 1.5vw, 24px); }
.banner.promo { height: 100%; min-height: 360px; }
.banner.promo .banner__body { padding: 22px; }
.banner.promo .banner__title { font-size: 26px; }
.banner.pbanner { aspect-ratio: 16 / 9; }
.banner.pbanner .banner__body { padding: 18px 20px; }
.banner.pbanner .banner__title { font-size: 19px; }
.banner.pbanner .banner__text { font-size: 15px; }
.banner.pbanner .banner__price { font-size: 20px; }

/* Переваги */
.benefits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
.benefit { position: relative; padding: 18px 18px 20px; border-radius: var(--r); background: var(--surface); }
.benefit__icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.benefit__icon::after { content: ""; position: absolute; top: -1px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px var(--surface); }
.benefit__title { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.benefit__text { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Стрічка категорій */
.catstrip { padding: 18px 18px 14px; }
.catstrip__track { grid-auto-columns: calc((100% - 7 * 12px) / 8); gap: 12px; }
.catstrip__item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 6px 4px; border-radius: var(--r-sm); text-align: center; font-size: 13px; font-weight: 600; }
.catstrip__img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-sm); background: var(--img-bg); transition: transform .35s var(--ease); }
.catstrip__img.is-empty { display: grid; place-items: center; }
.catstrip__item:hover { color: var(--ink); }
.catstrip__item:hover .catstrip__img { transform: translateY(-3px) scale(1.04); }

/* Добірки категорій */
.showcase { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr) minmax(220px, .95fr); gap: var(--gap); align-items: stretch; }
.showcase:not(.has-promo) { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr); }
.sbox { display: flex; flex-direction: column; padding: 18px; min-width: 0; }
.sbox__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sbox__title { margin: 0; font-size: 17px; font-weight: 600; }
.sbox__feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; flex: 1; }
.sbox__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; align-content: start; }
.sbox__list { display: grid; gap: 10px; align-content: start; }
.showcase__promo { display: grid; min-width: 0; }

.pbig { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pbig__img { display: block; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--img-bg); overflow: hidden; }
.pbig__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.pbig:hover .pbig__img img { transform: scale(1.04); }
.pbig .badges { top: 6px; left: 6px; }
.pbig__title { margin: 6px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.pbig .pcard__foot { margin-top: auto; }

.pmini { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pmini__img { display: block; width: 100%; aspect-ratio: 1; border-radius: var(--r-xs); background: var(--img-bg); overflow: hidden; }
.pmini__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.pmini:hover .pmini__img img { transform: scale(1.06); }
.pmini__title { font-size: 12.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.pmini .price { align-items: center; font-size: 14px; }

.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.prow__img { display: block; width: 64px; height: 64px; border-radius: var(--r-xs); background: var(--img-bg); overflow: hidden; }
.prow__img img { width: 100%; height: 100%; object-fit: contain; }
.prow__body { display: grid; gap: 6px; }
.prow__title { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.prow .price { font-size: 14px; }
.prow:hover .prow__title { color: var(--primary); }

/* Ряд промо-банерів */
.pbanners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.pbanners--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pbanners--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pbanners--1 { grid-template-columns: 1fr; }

/* Стрічка товарів з промо */
.prail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.prail.has-promo { grid-template-columns: minmax(220px, calc((100% - 4 * var(--gap)) / 5)) minmax(0, 1fr); }
.prail__promo { display: grid; }
.prail .rail__track { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); gap: var(--gap); }
.prail.has-promo .rail__track { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }

/* Компактні списки */
.mlists { display: grid; grid-template-columns: repeat(var(--lists, 4), minmax(0, 1fr)); gap: var(--gap); }
.mlist { min-width: 0; }
.mlist .shead__title { font-size: 18px; }
.mlist__track { grid-auto-columns: 100%; }
.mlist__page { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.mlist .shead__all { white-space: nowrap; }
.pline { min-width: 0; padding: 14px 16px; border-radius: var(--r); background: var(--surface); }
.pline__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin-bottom: 10px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.pline__row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: center; }
.pline__img { display: block; aspect-ratio: 1; border-radius: var(--r-xs); background: var(--img-bg); overflow: hidden; }
.pline__img img { width: 100%; height: 100%; object-fit: contain; }
.pline__body { display: grid; justify-items: start; gap: 6px; }
.pline .pcard__sku { font-size: 11.5px; }
.pline .price { font-size: 17px; }

/* Сітка популярних */
ul.products.products--grid5 { --cols: 5; }
.more-row { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Категорії плиткою */
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
.catcard { display: flex; flex-direction: column; height: 100%; padding: 14px; border-radius: var(--r); background: var(--surface); transition: box-shadow .3s; }
.catcard:hover { box-shadow: var(--shadow); color: var(--ink); }
.catcard__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); background: var(--img-bg); overflow: hidden; }
.catcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.catcard:hover .catcard__media img { transform: scale(1.05); }
.catcard__name { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 600; font-size: 14px; }
.catcard__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); flex: none; }
.catcard__ico .i { width: 16px; height: 16px; }

/* Відгуки */
.rsum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.rsum__score { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; }
.rsum__avg { display: flex; align-items: center; gap: 16px; }
.rsum__avg b { font-size: 44px; font-weight: 700; line-height: 1; }
.rsum__avg .stars .i { width: 20px; height: 20px; }
.rsum__total { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); font-weight: 600; }
.rsum__dist { display: grid; gap: 6px; padding: 16px 26px; }
.rsum__row { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 12px; font-size: 12.5px; }
.rsum__label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rsum__label .i { width: 13px; height: 13px; color: var(--star); fill: currentColor; }
.rsum__bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.rsum__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.rsum__pct { color: var(--muted); text-align: right; }
.reviews { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap); }
.rcard { display: flex; flex-direction: column; padding: 18px; border-radius: var(--r); background: var(--surface); }
.rcard__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rcard__top b { display: block; font-size: 13.5px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; color: var(--muted); }
.rcard__text { flex: 1; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.rcard__foot a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard__foot time { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.rcard__foot .i { width: 15px; height: 15px; }
.rcard__foot a { color: var(--primary); font-weight: 600; text-align: right; }

/* Статті */
.posts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; padding: 12px; border-radius: var(--r); background: var(--surface); transition: box-shadow .3s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 4px 4px; }
.post-card__title { flex: 1; margin-bottom: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.post-card__meta time { display: inline-flex; align-items: center; gap: 6px; }
.post-card__meta .i { width: 15px; height: 15px; }

/* 7. Картки товарів ----------------------------------------------------- */
ul.products { --cols: var(--shop-cols); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); list-style: none; }
ul.products.rail__track { display: grid; grid-template-columns: none; }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: var(--r); background: var(--surface); transition: box-shadow .3s var(--ease); }
.pcard:hover { box-shadow: var(--shadow); z-index: 2; }
.pcard__media { position: relative; margin-bottom: 14px; }
.pcard__img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--img-bg); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.pcard__alt { position: absolute; inset: 0; opacity: 0; }
.pcard.has-alt:hover .pcard__img img:first-child { opacity: 0; }
.pcard.has-alt:hover .pcard__alt { opacity: 1; }
.pcard:not(.has-alt):hover .pcard__img img { transform: scale(1.04); }
.pcard__actions { position: absolute; top: 6px; right: 6px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.act { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: 0 2px 10px rgb(0 0 0 / .1); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--ease), color .2s, background-color .2s; }
.act .i { width: 17px; height: 17px; }
.act:nth-child(2) { transition-delay: .03s; }
.act:nth-child(3) { transition-delay: .06s; }
.pcard:hover .act, .pcard:focus-within .act, .act.is-active { opacity: 1; transform: none; }
.act:hover { color: var(--primary); }
.act.is-active { color: #fff; background: var(--primary); }
.act[data-list="wishlist"].is-active { background: var(--sale); }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 8px; }
.pcard__title { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.pcard__rating { display: flex; align-items: center; gap: 8px; }
.pcard__reviews { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; }
.pcard__reviews .i { width: 16px; height: 16px; }
.pcard__info { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pcard__sku { font-size: 11.5px; color: var(--muted); }
.pcard__excerpt { display: none; margin: 0; font-size: 13px; color: var(--ink-2); }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.cartbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; flex: none; border-radius: var(--r-sm); background: var(--btn); color: var(--btn-ink); transition: background-color .2s, transform .15s; }
.cartbtn:hover { color: var(--btn-ink); background: var(--primary); }
.cartbtn .i { width: 19px; height: 19px; }
.cartbtn__text { display: none; }
.cartbtn.is-more { background: var(--surface-2); color: var(--ink); }
.cartbtn.added::before, .cartbtn.is-added::before { content: ""; position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 8px no-repeat; }
.cartbtn.loading::after { border-color: var(--btn-ink) var(--btn-ink) transparent transparent; }
.added_to_cart { display: none !important; }

/* Рядок у стрічках */
.rail .rail__track.products { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); gap: var(--gap); }

/* Рекомендовані в колонці товару */
.pups { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.pups__img { display: block; aspect-ratio: 1; border-radius: var(--r-xs); background: var(--img-bg); overflow: hidden; }
.pups__img img { width: 100%; height: 100%; object-fit: contain; }
.pups__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.35; }
.pups .price { font-size: 15px; }
.pups .cartbtn { width: 36px; height: 36px; }

/* 8. Каталог ----------------------------------------------------------- */
.catalog-head { margin-bottom: 4px; }
.subcats-rail { position: relative; margin-bottom: 16px; }
.subcats { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; scrollbar-width: none; list-style: none; padding-bottom: 4px; }
.subcats-rail__nav { position: absolute; inset: 0 -6px 4px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.subcats-rail__nav .arrow { width: 38px; height: 38px; border-radius: 50%; border: 0; box-shadow: var(--shadow); pointer-events: auto; transition: opacity .2s; }
.subcats-rail__nav .arrow:disabled { opacity: 0; pointer-events: none; }
.subcats::-webkit-scrollbar { display: none; }
.subcat { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 12px 10px 14px; border-radius: var(--r); background: var(--surface); text-align: center; font-size: 13px; font-weight: 600; transition: box-shadow .3s; }
.subcat:hover { box-shadow: var(--shadow); color: var(--ink); }
.subcat__img { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-xs); background: var(--img-bg); overflow: hidden; color: var(--muted); }
.subcat__img img { width: 100%; height: 100%; object-fit: contain; }
.catalog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.catalog__filters { position: sticky; top: calc(var(--hdr, 84px) + 16px); display: flex; flex-direction: column; gap: var(--gap); max-height: calc(100vh - var(--hdr, 84px) - 32px); }
/* min-height: 0 — інакше довге дерево категорій розтягує колонку й сторінку під футером. */
.filters__scroll { flex: 1 1 auto; min-height: 0; align-content: start; contain: paint; display: grid; gap: var(--gap); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; border-radius: var(--r); }
.filters__head, .filters__foot, .filters-overlay { display: none; }
.filters__tree { padding: 10px; }
.filters__body { padding: 4px 18px; }
.filters__body:empty { display: none; }

.ctree__list { list-style: none; }
.ctree__list--1, .ctree__list--2 { padding-left: 12px; }
.ctree__node > summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.ctree__node > summary::-webkit-details-marker { display: none; }
.ctree__link { display: block; flex: 1; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; }
.ctree__list--0 > li > .ctree__link, .ctree__list--0 > li > details > summary > .ctree__link { font-weight: 600; background: var(--surface-2); margin-bottom: 4px; }
.ctree__link.is-current { color: var(--primary); font-weight: 700; }
.ctree__toggle { display: grid; place-items: center; width: 30px; height: 30px; flex: none; color: var(--muted); }
.ctree__toggle .i { width: 16px; height: 16px; transition: transform .2s; }
.ctree__node[open] > summary .ctree__toggle .i { transform: rotate(180deg); }
.ctree__list--0 > li > details > summary { background: var(--surface-2); border-radius: 10px; margin-bottom: 4px; }
.ctree__list--0 > li > details > summary .ctree__link { background: none; margin: 0; }

.fgroup { border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 14px; }
.fgroup__head::-webkit-details-marker { display: none; }
.fgroup__head .i { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.fgroup[open] .fgroup__head .i { transform: rotate(180deg); }
.fgroup__body { padding-bottom: 16px; }
.fgroup__list { display: grid; gap: 2px; }
.fgroup__list.is-collapsible:not(.is-open) > :nth-child(n+9) { display: none; }
.fgroup__more { margin-top: 8px; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__box { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface); transition: background-color .15s, border-color .15s; }
.fopt__box .i { width: 12px; height: 12px; color: #fff; opacity: 0; stroke-width: 3; }
.fopt input:checked + .fopt__box { background: var(--primary); border-color: var(--primary); }
.fopt input:checked + .fopt__box .i { opacity: 1; }
.fopt input:focus-visible + .fopt__box { outline: 2px solid var(--primary); outline-offset: 2px; }
.fopt__label { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.fopt__count { font-size: 12px; color: var(--muted); }
.fopt.is-disabled { opacity: .45; cursor: default; }
.fopt:hover:not(.is-disabled) .fopt__box { border-color: var(--primary); }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }

.prange__inputs { display: flex; align-items: center; gap: 8px; }
.prange__inputs label { position: relative; flex: 1; }
.prange__inputs label span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: var(--muted); }
.prange__inputs input { min-height: 40px; padding-left: 34px; -moz-appearance: textfield; }
.prange__inputs input::-webkit-inner-spin-button { -webkit-appearance: none; }
.prange__dash { color: var(--muted); }
.prange__slider { position: relative; height: 28px; margin-top: 8px; }
.prange__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--line-2); }
.prange__fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--primary); }
.prange__slider input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.prange__slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--primary); background: var(--surface); pointer-events: auto; cursor: grab; }
.prange__slider input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--primary); background: var(--surface); pointer-events: auto; cursor: grab; }

.toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: var(--gap); }
.tbtn { display: none; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-size: 13px; }
.tbtn .i { width: 18px; height: 18px; }
.tselect { position: relative; display: inline-flex; align-items: center; }
.tselect select { min-height: 38px; height: 38px; width: auto; padding: 0 30px 0 12px; border: 0; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-size: 13px; }
.tselect > .i { position: absolute; right: 9px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.toolbar__count { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }
.toolbar__view { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.vbtn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.vbtn .i { width: 17px; height: 17px; }
.vbtn.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--gap); }
[data-results] { transition: opacity .2s; }
[data-results].is-loading { opacity: .45; pointer-events: none; }
.catalog__main ul.products { --cols: min(var(--shop-cols), 4); }
.catalog[data-view="list"] ul.products { --cols: 1; }
.catalog[data-view="list"] .pcard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 16px; }
.catalog[data-view="list"] .pcard__media { margin: 0; }
.catalog[data-view="list"] .pcard__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t f" "r f" "i f" "e f"; align-content: start; column-gap: 32px; }
.catalog[data-view="list"] .pcard__title { grid-area: t; min-height: 0; font-size: 16px; -webkit-line-clamp: 2; }
.catalog[data-view="list"] .pcard__rating { grid-area: r; }
.catalog[data-view="list"] .pcard__info { grid-area: i; justify-content: flex-start; gap: 16px; }
.catalog[data-view="list"] .pcard__excerpt { grid-area: e; display: block; }
.catalog[data-view="list"] .pcard__foot { grid-area: f; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 14px; margin: 0; padding: 0; }
.catalog[data-view="list"] .price { align-items: flex-end; font-size: 22px; }
.catalog[data-view="list"] .cartbtn { width: auto; padding: 0 20px; display: inline-flex; gap: 8px; }
.catalog[data-view="list"] .cartbtn__text { display: inline; font-weight: 600; font-size: 13.5px; }
.loadmore { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.woocommerce-pagination a, .woocommerce-pagination span, .pager .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--surface); font-weight: 600; }
.woocommerce-pagination .current, .pager .current { background: var(--btn); color: var(--btn-ink); }
.pager .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.catalog-desc { margin-top: var(--gap); padding: 24px 28px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 20px; text-align: center; border-radius: var(--r); background: var(--surface); }
.empty-state__icon { width: 44px; height: 44px; color: var(--muted); margin-bottom: 6px; }
.empty-state p { color: var(--muted); }
.empty-state__code { font-size: 88px; font-weight: 800; line-height: 1; color: var(--primary); }
.empty-state__search { width: min(520px, 100%); margin-bottom: 14px; }
.empty-state__search .hsearch { background: var(--surface-2); color: var(--ink); }
.empty-state__search .hsearch__cat, .empty-state__search .hsearch__btn, .empty-state__search .hsearch__voice { color: var(--muted); }

/* 9. Сторінка товару ---------------------------------------------------- */
/* Навігація розділами товару: прилипає під шапкою; кільце кольору фону закриває щілину над нею,
   тож текст сторінки не просвічує, а в прилиплому стані — тінь і чітка межа. */
.pdp-nav { position: sticky; top: calc(var(--hdr, 72px) + 10px); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px; margin-bottom: var(--gap); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.header:not(.is-sticky) ~ .site-main .pdp-nav { top: 10px; }
.pdp-nav.is-stuck { box-shadow: 0 0 0 10px var(--bg), 0 18px 28px -6px rgb(0 0 0 / .14), inset 0 0 0 1px var(--line-2); }
:root[data-theme="dark"] .pdp-nav.is-stuck { box-shadow: 0 0 0 10px var(--bg), 0 18px 28px -6px rgb(0 0 0 / .6), inset 0 0 0 1px var(--line-2); }
.pdp-nav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pdp-nav__links::-webkit-scrollbar { display: none; }
.pdp-nav__links a { padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.pdp-nav__links a:hover { color: var(--ink); }
.pdp-nav__links a.is-active { background: var(--primary); color: #fff; }
.pdp-nav__links a.is-active sup { color: rgb(255 255 255 / .75); }
.pdp-nav__links sup { font-size: 10px; color: var(--muted); }
.pdp-nav__side { display: flex; gap: 6px; padding-right: 4px; }
.pdp__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--hdr, 72px) + 80px); padding: 20px; }
.pdp__gallery > .badges { top: 22px; right: 22px; left: auto; justify-content: flex-end; }
.pdp__summary { display: grid; gap: var(--gap); min-width: 0; }
.pdp-head { padding: 20px 22px; }
.pdp-title { margin-bottom: 14px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; line-height: 1.3; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: 13px; }
.pdp-meta__left, .pdp-meta__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pdp-meta__right { flex-direction: column; align-items: flex-end; gap: 4px; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.pdp-rating span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pdp-sku, .pdp-brand { color: var(--muted); }
.pdp-sku b { color: var(--ink); font-weight: 600; }
.pdp-brand a { color: var(--primary); font-weight: 600; }
.pdp-note { display: flex; gap: 16px; align-items: center; padding: 16px 22px; }
.pdp-note__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--btn); color: var(--btn-ink); }
.pdp-note b { display: block; font-size: 13.5px; }
.pdp-note p { margin: 0; font-size: 13px; color: var(--ink-2); }
.pdp-buy { padding: 20px 22px; }
.pdp-pricerow { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pdp-pricerow .price { flex-direction: row; align-items: baseline; gap: 12px; font-size: 30px; }
.pdp-pricerow .price del { order: 2; font-size: 16px; }
.pdp-excerpt { margin-bottom: 16px; font-size: 13.5px; color: var(--ink-2); }
.pdp-excerpt p:last-child { margin: 0; }
.pdp-buy form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; }
.pdp-buy .single_add_to_cart_button, .qv .single_add_to_cart_button { flex: 1 1 200px; min-height: 48px; background: var(--btn); color: var(--btn-ink); font-size: 15px; }
.pdp-buy .single_add_to_cart_button:hover, .qv .single_add_to_cart_button:hover { background: var(--primary); color: #fff; }
.single_add_to_cart_button::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.2 10.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L20.5 8H6.2'/%3E%3Ccircle cx='10' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.2 10.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L20.5 8H6.2'/%3E%3Ccircle cx='10' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.pdp-buy .stock, .qv .stock { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ok); }
.pdp-buy .stock.out-of-stock, .qv .stock.out-of-stock { color: var(--muted); }
.variations_form { flex-direction: column; align-items: stretch !important; }
.variations { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.variations tr { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.variations th { text-align: left; font-weight: 600; }
.variations th label { font-size: 13px; }
.variations td { padding: 0; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.single_variation_wrap { display: grid; gap: 10px; }
.woocommerce-variation-price .price { flex-direction: row; gap: 10px; align-items: baseline; font-size: 24px; }
.woocommerce-variation-price .price del { order: 2; font-size: 15px; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.woocommerce-variation-price { display: none; }
.woocommerce-variation-availability p { margin: 0; }
.quantity { display: inline-flex; align-items: center; height: 48px; border-radius: var(--r-sm); background: var(--surface-2); }
.quantity .qty { width: 42px; min-height: 0; height: 100%; padding: 0; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; box-shadow: none !important; }
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-btn { display: grid; place-items: center; width: 36px; height: 100%; border: 0; background: none; color: var(--ink); }
.qty-btn:hover { color: var(--primary); }
.qty-btn .i { width: 15px; height: 15px; }
.list-btns--pdp { display: flex; gap: 8px; margin-top: 10px; }
.list-btns--pdp .list-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.list-btns--pdp .list-btn .i { width: 18px; height: 18px; }
.list-btns--pdp .list-btn.is-active { background: var(--primary-soft); color: var(--primary); }
.list-btns--pdp .list-btn[data-list="wishlist"].is-active { background: var(--sale-soft); color: var(--sale); }
.pdp-ups { padding: 18px 22px; }
.pdp-ups .shead__title { font-size: 16px; }
.pdp-ups__track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
.pdp-info { padding: 18px 22px; }
.pdp-info__title { font-size: 15px; margin-bottom: 12px; }
.dlist { list-style: none; display: grid; gap: 14px; }
.dlist li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.dlist__ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-2); }
.dlist__ico .i { width: 16px; height: 16px; }
.dlist__name { display: flex; flex-direction: column; padding-top: 6px; }
.dlist__name small { color: var(--muted); font-size: 11.5px; }
.dlist__dots { flex: 1; min-width: 20px; margin-top: 18px; border-bottom: 1px dotted var(--line-2); }
.dlist__price { padding-top: 6px; white-space: nowrap; }
.paychips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.paychips li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.paychips .i { width: 17px; height: 17px; color: var(--muted); }
.pdp-warranty { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.pdp-warranty .i { color: var(--ok); }

/* Галерея WooCommerce: мініатюри вертикально ліворуч */
.woocommerce-product-gallery { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; margin: 0 !important; opacity: 1 !important; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper:only-child, .woocommerce-product-gallery__wrapper:first-child:last-child { grid-column: 1 / -1; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--r-sm); }
.woocommerce-product-gallery__image { background: var(--img-bg); border-radius: var(--r-sm); overflow: hidden; }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.flex-control-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; list-style: none; scrollbar-width: none; }
.flex-control-thumbs li { flex: none; }
.flex-control-thumbs img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; border: 1.5px solid var(--line); background: var(--img-bg); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.flex-control-thumbs img:hover { opacity: 1; }
.flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--ink); }
.woocommerce-product-gallery__trigger { position: absolute; bottom: 14px; right: 14px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 0; color: var(--ink); }
.woocommerce-product-gallery__trigger::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.woocommerce-product-gallery__trigger img { display: none !important; }
.pswp__bg { background: #0b0b0c; }

/* Секції вкладок */
.pdp-sections { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; margin-top: 30px; }
.pdp-sections__main { display: grid; gap: var(--gap); min-width: 0; }
.pdp-section { padding: 24px 28px; scroll-margin-top: 160px; }
.pdp-section__title { font-size: 19px; margin-bottom: 16px; }
.pdp-section__title sup { font-size: 12px; color: var(--muted); }
.pdp-sections__aside { position: sticky; top: calc(var(--hdr, 72px) + 80px); }
.pdp-mini { display: grid; gap: 10px; padding: 16px; }
.pdp-mini__img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--img-bg); overflow: hidden; }
.pdp-mini__img img { width: 100%; height: 100%; object-fit: contain; }
.pdp-mini__title { font-size: 13.5px; line-height: 1.4; }
.entry { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.entry > * { max-width: 860px; }
.entry h2, .entry h3 { color: var(--ink); margin-top: 1.3em; }
.entry h3 { font-size: 17px; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry li { margin-bottom: .35em; }
.entry img { border-radius: var(--r-sm); }
.entry > :first-child { margin-top: 0; }
.entry > :last-child { margin-bottom: 0; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 11px 14px; text-align: left; vertical-align: top; }
.woocommerce-product-attributes tr:nth-child(odd) th, .woocommerce-product-attributes tr:nth-child(odd) td { background: var(--surface-2); }
.woocommerce-product-attributes th { width: 42%; font-weight: 500; color: var(--muted); border-radius: 10px 0 0 10px; }
.woocommerce-product-attributes td { font-weight: 600; border-radius: 0 10px 10px 0; }
.woocommerce-product-attributes td p { margin: 0; }

#reviews { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
#reviews .woocommerce-Reviews-title { font-size: 16px; }
#reviews ol.commentlist { list-style: none; display: grid; gap: 12px; }
#reviews .comment_container { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--surface-2); }
#reviews .comment_container img.avatar { width: 40px; height: 40px; border-radius: 50%; }
#reviews .comment-text { display: grid; gap: 4px; }
#reviews .comment-text .star-rating { order: -1; }
#reviews .meta { margin: 0; font-size: 12.5px; color: var(--muted); }
#reviews .meta strong { color: var(--ink); font-size: 13.5px; }
#reviews .description p { margin: 4px 0 0; font-size: 13.5px; }
#review_form_wrapper { padding: 20px; border-radius: var(--r-sm); background: var(--surface-2); }
#review_form .comment-reply-title { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
#review_form p { margin: 0 0 12px; }
#review_form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; font-size: 12.5px; color: var(--muted); }
p.stars { margin: 0; }
p.stars span { display: inline-flex; gap: 4px; }
p.stars a { position: relative; width: 26px; height: 26px; font-size: 0; display: inline-block; }
p.stars a::before { content: "★"; position: absolute; inset: 0; font-size: 26px; line-height: 1; color: var(--line-2); transition: color .15s; }
p.stars:hover a::before, p.stars.selected a::before { color: var(--star); }
p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before { color: var(--line-2); }
p.stars:hover a:hover ~ a::before { color: var(--line-2); }
.woocommerce-noreviews, .woocommerce-verification-required { color: var(--muted); }
.pdp-page .section .shead__title { font-size: 19px; }

/* 10. Кошик, оформлення, кабінет --------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 var(--gap); padding: 14px 18px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--ink); font-weight: 600; list-style: none; }
.woocommerce-message { background: var(--ok-soft); }
.woocommerce-error { background: var(--sale-soft); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 36px; font-size: 13px; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { color: var(--primary); }
.woocommerce-notice--success { font-size: 16px; }

.page--shop .page-head { margin-bottom: 4px; }
.woocommerce-cart .shop-page > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap); align-items: start; }
.woocommerce-cart .shop-page > .woocommerce > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
.woocommerce-cart-form { padding: 6px 22px; border-radius: var(--r); background: var(--surface); }
table.shop_table { width: 100%; border-collapse: collapse; }
table.shop_table th { padding: 14px 8px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
table.shop_table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cart tr:last-child td { border-bottom: 0; }
table.cart .product-thumbnail img { width: 76px; height: 76px; object-fit: contain; border-radius: 10px; background: var(--img-bg); border: 1px solid var(--line); }
table.cart .product-name a { font-weight: 600; }
table.cart .product-name dl.variation { display: flex; gap: 4px; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
table.cart .product-name dl.variation dd, table.cart .product-name dl.variation p { margin: 0; }
table.cart .product-subtotal { font-weight: 700; }
table.cart .product-price, table.cart .product-subtotal { white-space: nowrap; }
table.cart .product-remove a.remove { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted) !important; }
table.cart .product-remove a.remove:hover { background: var(--sale-soft); color: var(--sale) !important; }
table.cart .quantity { height: 40px; }
table.cart td.actions { padding-top: 18px; text-align: right; }
table.cart td.actions .coupon { float: left; display: flex; gap: 8px; }
table.cart td.actions .coupon label { display: none; }
table.cart td.actions .coupon .input-text { width: 200px; min-height: 42px; }
table.cart td.actions .button { min-height: 42px; }
table.cart td.actions button[name=update_cart] { background: var(--surface-2); color: var(--ink); }
.cart-collaterals { position: sticky; top: 100px; }
.cart_totals { padding: 22px; border-radius: var(--r); background: var(--surface); }
.cart_totals h2 { font-size: 18px; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td { padding: 12px 0; font-size: 13.5px; }
.cart_totals table.shop_table td { text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td { border-bottom: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.woocommerce-shipping-methods { display: grid; gap: 6px; list-style: none; }
.woocommerce-shipping-methods li { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: 12.5px; color: var(--muted); }
.shipping-calculator-form { display: grid; gap: 8px; margin-top: 10px; text-align: left; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 52px; margin-top: 8px; font-size: 15px; }
.cart-empty.woocommerce-info { justify-content: center; padding: 48px 20px 12px; background: transparent; font-size: 20px; }
.return-to-shop { text-align: center; }

form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--gap); align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
#customer_details { grid-row: 1 / span 3; display: grid; gap: var(--gap); }
#customer_details .col-1, #customer_details .col-2 { padding: 24px; border-radius: var(--r); background: var(--surface); }
#customer_details h3, #order_review_heading { margin-bottom: 16px; font-size: 18px; }
#order_review_heading { grid-column: 2; margin: 0; padding: 22px 24px 0; border-radius: var(--r) var(--r) 0 0; background: var(--surface); }
#order_review { grid-column: 2; padding: 4px 24px 24px; border-radius: 0 0 var(--r) var(--r); background: var(--surface); }
#order_review .shop_table td, #order_review .shop_table th { padding: 10px 0; font-size: 13.5px; }
#order_review .shop_table td:last-child, #order_review .shop_table tfoot td { text-align: right; }
#order_review .order-total th, #order_review .order-total td { font-size: 18px; font-weight: 700; color: var(--ink); }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.form-row-wide, #billing_address_1_field, #billing_address_2_field, #shipping_address_1_field, #shipping_address_2_field, .notes, #order_comments_field { grid-column: 1 / -1; }
.form-row label.checkbox, .woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; cursor: pointer; }
.form-row .optional { color: var(--muted); font-weight: 500; }
.required { color: var(--sale); text-decoration: none; }
.woocommerce-invalid input, .woocommerce-invalid select { border-color: var(--sale); }
ul.wc_payment_methods { display: grid; gap: 8px; margin: 16px 0; list-style: none; }
.wc_payment_method { padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.wc_payment_method > label { display: inline; font-size: 14px; cursor: pointer; }
.payment_box { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.payment_box p:last-child { margin: 0; }
.woocommerce-terms-and-conditions-wrapper { font-size: 12.5px; color: var(--muted); }
#place_order { width: 100%; min-height: 54px; font-size: 15px; }
form.checkout_coupon, form.woocommerce-form-login { margin-bottom: var(--gap); padding: 20px; border-radius: var(--r); background: var(--surface); }
form.checkout_coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
form.checkout_coupon p { margin: 0; }
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { display: flex; align-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.select2-container .select2-selection__rendered { padding-left: 14px !important; line-height: 46px !important; color: var(--ink) !important; }
.select2-container .select2-selection__arrow { height: 44px !important; right: 8px !important; }
.select2-dropdown { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.select2-search__field { min-height: 38px !important; }
.select2-results__option--highlighted { background: var(--primary) !important; }

.woocommerce-order { display: grid; gap: var(--gap); }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; list-style: none; }
.woocommerce-order-overview li { padding: 16px; border-radius: var(--r); background: var(--surface); font-size: 12.5px; color: var(--muted); }
.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 15px; color: var(--ink); }
.woocommerce-order-details, .woocommerce-customer-details { padding: 24px; border-radius: var(--r); background: var(--surface); }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; }

.woocommerce-account .shop-page > .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.woocommerce-MyAccount-navigation ul { padding: 8px; border-radius: var(--r); background: var(--surface); list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--btn); color: var(--btn-ink); }
.woocommerce-MyAccount-content { min-width: 0; padding: 26px; border-radius: var(--r); background: var(--surface); }
.woocommerce-account:not(.logged-in) .shop-page > .woocommerce { display: block; }
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.u-columns .u-column1, .u-columns .u-column2 { padding: 26px; border-radius: var(--r); background: var(--surface); }
.woocommerce-form-login__rememberme { margin-bottom: 12px; }
.lost_password { font-size: 13px; }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 16px; }
.woocommerce-Address { padding: 20px; border-radius: var(--r-sm); background: var(--surface-2); }
.woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; }
.woocommerce-Address address { font-style: normal; }

.woocommerce-mini-cart { display: grid; gap: 4px; list-style: none; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; padding: 12px 34px 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.woocommerce-mini-cart-item a:not(.remove) { display: contents; font-weight: 600; line-height: 1.35; }
.woocommerce-mini-cart-item img { grid-row: 1 / 3; width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--img-bg); border: 1px solid var(--line); }
.woocommerce-mini-cart-item .quantity { height: auto; margin-top: 4px; background: none; color: var(--muted); font-size: 12.5px; }
.woocommerce-mini-cart-item .variation { display: flex; gap: 4px; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.woocommerce-mini-cart-item .variation dd, .woocommerce-mini-cart-item .variation p { margin: 0; }
.woocommerce-mini-cart-item a.remove { position: absolute; top: 12px; right: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted); }
.woocommerce-mini-cart-item a.remove:hover { background: var(--sale-soft); color: var(--sale); }
.woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 14px; font-size: 18px; }
.woocommerce-mini-cart__total strong { font-size: 14px; font-weight: 600; color: var(--muted); }
.woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; min-height: 48px; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--surface-2); color: var(--ink); }
.woocommerce-mini-cart__buttons .checkout { background: var(--primary); color: #fff; }
.woocommerce-mini-cart__empty-message { padding: 48px 0; text-align: center; color: var(--muted); }
.blockUI.blockOverlay { background: color-mix(in srgb, var(--surface) 60%, transparent) !important; }

/* 11. Списки, блог, сторінки -------------------------------------------- */
.list-page__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--gap); color: var(--muted); font-weight: 600; }
.list-page ul.products { --cols: 5; }
.compare { width: max-content; max-width: 100%; overflow-x: auto; border-radius: var(--r); background: var(--surface); }
.compare__table { border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.compare__table th, .compare__table td { width: 240px; min-width: 240px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare__table tr:last-child > * { border-bottom: 0; }
.compare__label { position: sticky; left: 0; z-index: 1; width: 170px !important; min-width: 170px !important; background: var(--surface); color: var(--muted); font-weight: 600; }
.compare__product { position: relative; vertical-align: bottom !important; }
.compare__product > * + * { margin-top: 10px; }
.compare__img { display: block; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--img-bg); overflow: hidden; }
.compare__img img { width: 100%; height: 100%; object-fit: contain; }
.compare__name { display: block; font-weight: 600; line-height: 1.35; }
.compare__remove { position: absolute; top: 20px; right: 22px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); }
.compare__remove .i { width: 15px; height: 15px; }
.compare__table tr.is-same { display: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.prose { padding: clamp(20px, 3vw, 36px); font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.prose > * { max-width: 820px; }
.prose h2 { margin-top: 1.5em; font-size: 22px; }
.prose h3 { margin-top: 1.3em; font-size: 18px; }
.prose a:not(.btn):not(.button) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-sm); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.article { max-width: 980px; }
.article__head { margin: 8px 0 20px; }
.article__cover { margin: 0 0 var(--gap); border-radius: var(--r); overflow: hidden; }
.article__cover img { width: 100%; }
.comments { margin-top: 32px; padding: 26px; border-radius: var(--r); background: var(--surface); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1em 0; }
.contact-seller { margin: 0 0 1em; color: var(--c-muted, #6b6b73); }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-sm); background: var(--surface-2); }
.contact-card .i { color: var(--primary); margin-bottom: 6px; }
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--r-sm); background: var(--surface-2); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { transition: transform .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 18px 16px; }
.entry--home { padding: 28px; }

/* 12. Футер, док ------------------------------------------------------- */
.footer { margin-top: 40px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--foot); color: #a5a5ab; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); grid-template-rows: auto 1fr; gap: 20px 32px; padding: 40px 0 32px; }
.footer__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
.logo--footer { color: #fff; }
.footer__about { margin: 0; max-width: 520px; }
.footer__title { margin-bottom: 14px; font-size: 15px; color: #fff; }
.footer__col ul { display: grid; gap: 8px; list-style: none; }
.footer a { color: #d6d6db; }
.footer a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 20px; }
.footer__cl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.clist--footer { color: #d6d6db; }
.clist--footer .i { color: #fff; }
.msgr--footer { flex-direction: column; margin: 0; }
.msgr--footer .msgr__item { height: auto; padding: 0; background: none; color: #d6d6db; }
.msgr--footer .msgr__item .i { color: var(--primary); }
.subscribe__text { margin-bottom: 10px; font-weight: 600; color: #fff; }
.subscribe__row { display: flex; gap: 6px; padding: 5px; border-radius: 26px; background: #fff; }
.subscribe__row input[type=email] { flex: 1; min-height: 42px; border: 0; background: none; color: #111; box-shadow: none !important; }
.subscribe__row .btn { border-radius: 21px; min-height: 42px; }
.subscribe__row .btn .i { width: 18px; height: 18px; }
.subscribe__msg { margin: 8px 0 0; min-height: 1em; color: #8ee0b0; }
.subscribe__msg.is-error { color: #ff9a9c; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 24px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 12px; color: #7d7d84; }

.dock { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; align-items: center; gap: 10px; }
.dock__group { display: flex; gap: 4px; padding: 5px; border-radius: 26px; background: var(--head); box-shadow: var(--shadow-pop); }
.dock__btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--head-2); color: #fff; }
.dock__btn:hover { background: var(--head-3); color: #fff; }
.dock__btn .i { width: 19px; height: 19px; }
.dock .dcount { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
.dcount[data-zero] { background: var(--head-3); }
.dock__top { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 2px solid var(--primary); border-radius: 50%; background: var(--head); color: #fff; box-shadow: var(--shadow-pop); }
.dock__top[hidden] { display: none; }

/* 13. Панелі, модалка, тост --------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__overlay, .modal__overlay { position: absolute; inset: 0; background: rgb(0 0 0 / .45); animation: fade .2s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 92vw); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); animation: slideL .3s var(--ease); }
.drawer--left .drawer__panel { left: 0; }
.drawer--right .drawer__panel { right: 0; animation-name: slideR; }
@keyframes slideL { from { transform: translateX(-100%); } }
@keyframes slideR { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 18px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.drawer__label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer .logo { color: var(--ink); }
:root:not([data-theme="dark"]) .drawer .logo__text { background-image: linear-gradient(92deg, #0aa5d6 0%, #3366ff 50%, #9a3dff 100%); }
.mcat { list-style: none; }
.mcat--0 > li { border-bottom: 1px solid var(--line); }
.mcat a, .mcat summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-weight: 600; list-style: none; cursor: pointer; }
.mcat summary::-webkit-details-marker { display: none; }
.mcat summary .i { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.mcat details[open] > summary .i { transform: rotate(180deg); }
.mcat--1, .mcat--2 { padding-left: 14px; }
.mcat--1 a, .mcat--1 summary { padding: 9px 0; font-weight: 500; }
.mcat__all { color: var(--primary); font-size: 13px; padding: 4px 0 8px 14px !important; }
.mnav ul { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mnav a { display: block; padding: 9px 0; font-weight: 600; }
.mnav--muted a { font-weight: 500; color: var(--ink-2); }
.clist--drawer { margin-top: 16px; }
.drawer__scheme { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 14px; height: 40px; border: 0; border-radius: 20px; background: var(--surface-2); font-weight: 600; }
.drawer__scheme .i { width: 18px; height: 18px; }

.modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; }
.modal__dialog { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-pop); animation: pop .25s var(--ease); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px; }
.qv__gallery.woocommerce-product-gallery { position: relative; display: block; }
.qv__gallery .badges { top: 8px; left: 8px; }
.qv__main { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--img-bg); overflow: hidden; }
.qv__main img { width: 100%; height: 100%; object-fit: contain; }
.qv__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.qv__thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--img-bg); overflow: hidden; }
.qv__thumb img { width: 100%; height: 100%; object-fit: contain; }
.qv__thumb.is-active { border-color: var(--ink); }
.qv__summary { display: flex; flex-direction: column; gap: 12px; padding-right: 30px; }
.qv__title { margin: 0; font-size: 20px; }
.qv form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.qv__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; color: var(--primary); }
.qv__more .i { width: 16px; height: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 14px 12px 18px; border-radius: var(--r-sm); background: var(--head); color: #fff; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-pop); transform: translateX(-50%); animation: toast .3s var(--ease); }
.toast a:not(.btn) { color: #9cbcf2; text-decoration: underline; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }

/* 14. Адаптив ----------------------------------------------------------- */
@media (max-width: 1440px) {
	.hero { grid-template-columns: 270px minmax(0, 1fr) minmax(240px, 300px); }
	.catstrip__track { grid-auto-columns: calc((100% - 6 * 12px) / 7); }
	.prail .rail__track, .rail .rail__track.products { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
	.prail.has-promo .rail__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
	.prail.has-promo { grid-template-columns: minmax(220px, calc((100% - 3 * var(--gap)) / 4)) minmax(0, 1fr); }
	.catalog__main ul.products { --cols: 3; }
	.showcase { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
	.showcase__promo { display: none; }
}
@media (max-width: 1280px) {
	.hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
	.hero__cat { display: none; }
	.hero:not(.has-side) { grid-template-columns: 1fr; }
	.benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mlists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catmenu__box { grid-template-columns: 260px minmax(0, 1fr) 220px; }
	.catmenu.has-leaves .catmenu__box { grid-template-columns: 260px 240px minmax(0, 1fr) 220px; }
	.hcart-total { display: none; }
	ul.products.products--grid5 { --cols: 4; }
	.showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sbox--feature { grid-column: 1 / -1; }
	.reviews { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
	.posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.posts-grid > :nth-child(4) { display: none; }
	.pdp-sections { grid-template-columns: minmax(0, 1fr); }
	.pdp-sections__aside { display: none; }
}
@media (max-width: 1099px) {
	:root { --pad: 16px; --gap: 12px; }
	.hide-desktop { display: inline-grid !important; }
	.header__search, .hphone, .header__nav, .catmenu { display: none !important; }
	.header__row { min-height: 60px; gap: 8px; }
	.header__logo { margin: 0 auto 0 4px; font-size: 20px; }
	.header__burger { width: 44px; }
	.hbtn, .hcart { height: 40px; }
	.hbtn { width: 40px; }
	.hcart { padding: 0 12px; }
	.header__actions { gap: 6px; }
	.topbar { display: none; }
	.catalog { grid-template-columns: 1fr; }
	.catalog__filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 220; width: min(380px, 90vw); max-height: none; padding: 0; gap: 0; background: var(--bg); transform: translateX(-105%); transition: transform .3s var(--ease); }
	.catalog.is-filters-open .catalog__filters { transform: none; box-shadow: var(--shadow-pop); }
	.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface); }
	.filters__scroll { flex: 1; padding: 12px; border-radius: 0; }
	.filters__foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); }
	.catalog.is-filters-open .filters-overlay { display: block; position: fixed; inset: 0; z-index: 215; background: rgb(0 0 0 / .45); }
	.tbtn { display: inline-flex; }
	.pdp__top { grid-template-columns: minmax(0, 1fr); }
	.pdp__gallery { position: relative; top: 0; }
	.prail.has-promo { grid-template-columns: minmax(0, 1fr); }
	.prail__promo { display: none; }
	.woocommerce-cart .shop-page > .woocommerce, form.checkout, .woocommerce-account .shop-page > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	#order_review_heading, #order_review { grid-column: 1; }
	#customer_details { grid-row: auto; }
	.cart-collaterals { position: static; }
	.footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer__contacts { grid-column: 1 / -1; }
	.qv { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.qv__summary { padding-right: 0; }
	.list-page ul.products { --cols: 3; }
}
@media (min-width: 1100px) { .hide-desktop { display: none !important; } }
@media (max-width: 860px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.banner.slide { min-height: 360px; }
	.banner.slide .banner__body { padding: 24px 22px 60px; }
	.hero__side .banner.tile { min-height: 260px; }
	.benefits { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(170px, 44%); overflow-x: auto; scrollbar-width: none; }
	.catstrip__track { grid-auto-columns: calc((100% - 3 * 12px) / 3.6); }
	.showcase { grid-template-columns: minmax(0, 1fr); }
	.sbox__feature { grid-template-columns: minmax(0, 1fr); }
	.pbanners { grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; }
	.pbanners .banner { scroll-snap-align: start; }
	.prail .rail__track, .prail.has-promo .rail__track, .rail .rail__track.products { grid-auto-columns: calc((100% - var(--gap)) / 2.15); }
	ul.products.products--grid5, ul.products, .catalog__main ul.products, .list-page ul.products { --cols: 2; }
	.mlists { grid-template-columns: minmax(0, 1fr); }
	.catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rsum { grid-template-columns: minmax(0, 1fr); }
	.reviews { grid-auto-columns: 82%; }
	.posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.posts-grid > :nth-child(4) { display: flex; }
	.catalog[data-view="list"] .pcard { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
	.catalog[data-view="list"] .pcard__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "r" "i" "f"; }
	.catalog[data-view="list"] .pcard__excerpt { display: none; }
	.catalog[data-view="list"] .pcard__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.catalog[data-view="list"] .cartbtn { width: 40px; padding: 0; }
	.catalog[data-view="list"] .cartbtn__text { display: none; }
	.toolbar { flex-wrap: wrap; }
	.toolbar__count { display: none; }
	.toolbar__view { margin-left: auto; }
	#reviews { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, .u-columns.col2-set, .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
	table.cart thead { display: none; }
	table.cart tr.cart_item { display: grid; grid-template-columns: 76px 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	table.cart tr.cart_item td { padding: 0; border: 0; }
	table.cart .product-thumbnail { grid-row: 1 / 4; }
	table.cart .product-remove { grid-column: 3; grid-row: 1; }
	table.cart .product-name { grid-column: 2; grid-row: 1; }
	table.cart .product-price { display: none; }
	table.cart .product-quantity { grid-column: 2; }
	table.cart .product-subtotal { grid-column: 2 / 4; }
	table.cart td.actions .coupon { float: none; margin-bottom: 10px; }
	table.cart td.actions .coupon .input-text { width: 100%; }
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__brand { flex-direction: column; align-items: flex-start; gap: 12px; }
	.footer__cl { grid-template-columns: minmax(0, 1fr); }
	.msgr--footer { flex-direction: row; gap: 16px; }
	.pdp-head, .pdp-buy, .pdp-info, .pdp-ups, .pdp-note { padding: 16px; }
	.pdp__gallery { padding: 12px; }
	.woocommerce-product-gallery { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper { grid-column: 1; }
	.flex-control-thumbs { grid-row: 2; flex-direction: row; overflow-x: auto; max-height: none; }
	.pdp-section { padding: 18px; }
	.pdp-nav__side .arrow:not([data-share]) { display: none; }
	.pdp-meta__right { align-items: flex-start; }
}
@media (max-width: 520px) {
	.header__row { gap: 6px; }
	.hbtn, .hcart { height: 36px; }
	.hbtn, .header__burger { width: 36px; }
	.hcart { padding: 0 8px; gap: 4px; }
	.header__actions { gap: 4px; }
	.header__actions .scheme { display: none; }
	.header__logo { font-size: 17px; gap: 8px; margin-left: 2px; }
	.logo__mark { width: 32px; height: 32px; }
	.header__actions .hbtn[href^="tel"] { display: none !important; }
	.shead__title { font-size: 18px; }
	.pcard { padding: 10px; }
	.pcard__title { font-size: 12.5px; }
	.price { font-size: 16px; }
	.cartbtn { width: 36px; height: 36px; }
	.act { opacity: 1; transform: none; width: 30px; height: 30px; }
	.act .i { width: 15px; height: 15px; }
	.posts-grid { grid-template-columns: minmax(0, 1fr); }
	.footer__grid { grid-template-columns: minmax(0, 1fr); }
	.dock { right: 12px; bottom: 12px; }
	.dock__btn { width: 38px; height: 38px; }
	.dock__top { width: 44px; height: 44px; }
	.rsum__score { flex-direction: column; align-items: flex-start; }
	.list-btns--pdp { flex-wrap: wrap; }
}
@media (hover: none) { .act { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Показати/сховати пароль (WooCommerce) */
.password-input { position: relative; display: block; }
.password-input input { padding-right: 44px; }
.show-password-input { position: absolute; top: 50%; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; transform: translateY(-50%); color: var(--muted); }
.show-password-input::before { content: ""; position: absolute; inset: 7px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
.show-password-input.display-password { color: var(--primary); }

/* Способи доставки в підсумку замовлення: окремими рядками на всю ширину */
#order_review tr.woocommerce-shipping-totals, .cart_totals tr.woocommerce-shipping-totals { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
#order_review tr.woocommerce-shipping-totals th, .cart_totals tr.woocommerce-shipping-totals th { padding: 14px 0 8px; border: 0; color: var(--ink); font-weight: 600; font-size: 14px; }
#order_review tr.woocommerce-shipping-totals td, .cart_totals tr.woocommerce-shipping-totals td { padding: 0 0 14px; border: 0; text-align: left !important; }
.woocommerce-shipping-methods { gap: 6px; }
.woocommerce-shipping-methods li { position: relative; display: flex; width: 100%; justify-content: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13.5px; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.woocommerce-shipping-methods li:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.woocommerce-shipping-methods li label { flex: 1; cursor: pointer; font-weight: 500; }
.woocommerce-shipping-methods li label::after { content: ""; position: absolute; inset: 0; }
.woocommerce-shipping-methods li .amount { font-weight: 700; }
/* Поля плагіна доставки (select2) у темній схемі */
:root[data-theme="dark"] .select2-container--default .select2-selection--single { background: var(--surface); border-color: var(--line-2); }
:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); }
:root[data-theme="dark"] .select2-search--dropdown .select2-search__field { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.select2-results__option { font-size: 13.5px; }

/* Select2 (країни, місто й відділення доставки): стиль теми важливіший за select2.css WooCommerce */
body .select2-container .select2-selection--single { display: flex; align-items: center; height: 46px; margin: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
body .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 14px; padding-right: 36px; line-height: 44px; color: var(--ink); }
body .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
body .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 100%; width: 20px; }
body .select2-container--default .select2-selection--single .select2-selection__arrow b { top: 50%; left: 50%; margin: -2px 0 0 -4px; border-top-color: var(--muted); }
body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { margin-top: -3px; border-color: transparent transparent var(--muted); }
body .select2-container--default.select2-container--focus .select2-selection--single, body .select2-container--open .select2-selection--single { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
body .select2-dropdown { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; }
body .select2-search--dropdown .select2-search__field { min-height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }
body .select2-results__option { padding: 8px 12px; }
body .select2-container--default .select2-results__option--highlighted[aria-selected], body .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--primary); color: #fff; }

/* Приховані службові поля плагінів доставки не займають місця (без порожнього проміжку між полями). */
.woocommerce form .form-row:has(> .woocommerce-input-wrapper > input[type="hidden"]:only-child),
.woocommerce form .form-row:has(> input[type="hidden"]:only-child) { display: none; }
