/* Магазин PRACTIC: чорно-білий, Inter. Синій — колір CRM, на сайті головні кнопки чорні. Спершу телефон. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root { --black: #0e0f11; --text: #0e0f11; --muted: #6b7280; --line: #e4e6eb; --bg: #fff; --soft: #f4f5f7; --accent: #0e0f11; --accent-dark: #2d3036; --ok: #17794a; --low: #b45309; --warn: #8a5a00; --warn-soft: #fff3d6; --r: 14px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
main, .top, .foot, .copy { max-width: 1240px; margin: 0 auto; padding-left: 14px; padding-right: 14px; }

.strip { background: var(--black); color: #c9ccd3; font-size: 12px; text-align: center; padding: 7px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .wide { display: none; }

/* шапка: на телефоні одним рядком — логотип, пошук, кошик */
.top { position: sticky; top: 0; z-index: 10; background: #fff; display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo search fav cart"; gap: 8px; align-items: center; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); max-width: none; }
.logo { grid-area: logo; display: block; }
.logo img { height: 36px; display: block; }
.search { grid-area: search; min-width: 0; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.search input:focus { outline: 2px solid var(--accent); background: #fff; }
.cart { grid-area: cart; justify-self: end; display: flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; text-decoration: none; background: var(--black); color: #fff; border: 0; border-radius: 999px; padding: 9px 12px; cursor: pointer; }
.cart-label { display: none; }
.cart b { background: #fff; color: var(--black); border-radius: 999px; min-width: 22px; padding: 1px 6px; font-size: 12.5px; text-align: center; }

/* кнопки */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center; padding: 12px 18px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.outline { border-color: #fff; color: #fff; background: transparent; }
.btn.outline.dark { border-color: var(--black); color: var(--black); }
.btn.outline.dark:hover { background: var(--black); color: #fff; }

/* перший екран: компактна чорна плашка з фото (на телефоні фото зверху, на ПК — праворуч) */
.hero { position: relative; background: var(--black); color: #fff; border-radius: var(--r); margin-top: 12px; overflow: hidden; display: grid; }
.hero-photo { position: absolute; inset: 0; background: #1b1d21 url(hero.jpg) 78% 40% / cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.7) 55%, rgba(14,15,17,.35) 100%); }
.hero-text { padding: 16px 16px 18px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9aa0aa; }
.hero h1 { font-size: 23px; font-weight: 800; line-height: 1.12; margin: 0; }
.hero .wish { margin: 8px 0 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions .btn { padding: 9px 13px; font-size: 14px; }
.hero .btn.primary { background: #fff; color: var(--black); }
.hero .btn.primary:hover { background: #e4e6eb; }
.hero .btn.outline:hover { background: #fff; color: var(--black); }
/* переваги — тонка смужка під плашкою */
.perks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.perks li { background: var(--soft); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.perks b { display: block; color: var(--text); font-size: 13px; }

/* меню розділів під шапкою */
.groups { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 14px; border-bottom: 1px solid var(--line); background: #fff; max-width: none; }
.groups::-webkit-scrollbar { display: none; }
.groups a { flex: none; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 7px 11px; border-radius: 8px; white-space: nowrap; color: var(--text); }
.groups a:hover { background: var(--soft); }
.groups a.active { background: var(--black); color: #fff; }
.groups .team-link { color: #36589f; }
.dd { position: relative; flex: none; display: flex; }
.ddm { display: none; }
.cat.back { background: var(--soft); font-weight: 600; }

/* «Схожі товари», «Ви переглядали» */
.psection.wide { max-width: none; }
.rel { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; }
.rel::-webkit-scrollbar { display: none; }

.wish { margin: 0 0 14px; color: #c9ccd3; font-size: 14px; font-style: italic; max-width: 52ch; }

/* плитки розділів з фото */
.gtiles { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 16px -14px 0; padding: 0 14px; }
.gtiles::-webkit-scrollbar { display: none; }
.gtile { display: grid; gap: 2px; text-decoration: none; color: var(--text); }
.gph { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft); margin-bottom: 6px; }
.gph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gtile:hover .gph img { transform: scale(1.04); }
.gtile b { font-size: 14.5px; }
.gtile small { color: var(--muted); font-size: 12.5px; }

/* каталог: фільтри зліва (ПК) / панель (телефон) */
.catalog { display: grid; gap: 0 28px; }
.cmain { min-width: 0; }
.fbtn { padding: 8px 14px; font-size: 14px; }
.filters { display: none; }
.filters.open { display: block; position: fixed; z-index: 40; inset: 0; background: #fff; overflow-y: auto; padding: 16px 16px 90px; }
body.noscroll { overflow: hidden; }
.fhead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fhead b { font-size: 18px; margin-right: auto; }
.linkbtn { font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; text-decoration: underline; }
.fclose { font-size: 20px; text-decoration: none; color: var(--text); }
.fgroup-f { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 4px; }
.ftitle { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.fopt { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.fopt input { width: 17px; height: 17px; accent-color: var(--black); flex: none; margin: 0; }
.fopt span { flex: 1; }
.fopt small { color: var(--muted); font-size: 12px; }
.fopt.none { opacity: .45; }
.prange { display: flex; align-items: center; gap: 8px; }
.prange input { width: 100%; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; }
.prange input:focus { outline: none; border-color: var(--black); }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pchip { font: inherit; font-size: 12.5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; color: var(--text); }
.pchip.active { background: var(--black); color: #fff; border-color: var(--black); }
.show-btn { position: fixed; left: 16px; right: 16px; bottom: 16px; width: auto !important; }

/* відгуки */
.reviews { margin: 30px 0 10px; }
.reviews .bar { margin-bottom: 14px; }
.more-link { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.rgrid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; }
.rgrid::-webkit-scrollbar { display: none; }
.review { margin: 0; background: var(--soft); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; align-content: start; }
.stars { color: var(--black); letter-spacing: 2px; font-size: 14px; }
.review blockquote { margin: 0; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { font-size: 13.5px; }

/* категорії */
#catalog { padding-top: 22px; scroll-margin-top: 120px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 10px; margin: 0 -14px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; font: inherit; font-size: 14px; font-weight: 500; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.cat small { color: var(--muted); margin-left: 4px; }
.cat.active { background: var(--black); color: #fff; border-color: var(--black); }
.cat.active small { color: #a9adb6; }
.cat.extra { display: none; }
.cats.open .cat.extra { display: inline-block; }
.cat.more-cats { font-weight: 600; background: var(--soft); }

.bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-top: 8px; }
.bar h2 { font-size: 22px; font-weight: 800; }
.bar-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
#count { margin: 6px 0 12px; font-size: 13px; }

/* сітка товарів */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card { display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0; overflow: hidden; cursor: pointer; }
.card:hover { border-color: var(--black); }
.ph { position: relative; width: 100%; aspect-ratio: 1; background: var(--soft); overflow: hidden; flex: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tags { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.tag.out { background: #eceef2; color: var(--muted); }
.tag.hit { background: var(--black); color: #fff; letter-spacing: .02em; }
.tag.new { background: #36589f; color: #fff; }
/* сердечко «улюблене» */
.heart { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); padding: 0; }
.heart svg { fill: none; stroke: var(--black); stroke-width: 2; }
.heart.on svg { fill: #e0245e; stroke: #e0245e; }
.heart.big { position: static; flex: none; width: 44px; height: 44px; border: 1.5px solid var(--line); box-shadow: none; background: #fff; }
.favlink { grid-area: fav; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); text-decoration: none; }
.favlink:hover { background: var(--soft); }
.favlink b { position: absolute; top: -2px; right: -4px; background: #e0245e; color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; padding: 1px 5px; text-align: center; }
.info { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.name { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { font-size: 17px; font-weight: 800; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.avail { font-size: 12px; color: var(--ok); font-weight: 500; }
.avail.order { color: var(--warn); }
.avail.out { color: var(--muted); }
.avail.low { color: var(--low); }
.buy { margin-top: auto; border: 1.5px solid var(--line); color: var(--text); border-radius: 9px; padding: 8px; text-align: center; font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s, border-color .15s; }
.card:hover .buy { background: var(--black); border-color: var(--black); color: #fff; }
.card.is-out .buy, .card.is-out:hover .buy { background: #fff; border-color: var(--line); color: var(--muted); }
.card.is-out img { opacity: .55; }
.more { text-align: center; margin: 18px 0 40px; }
.skeleton { aspect-ratio: .62; border-radius: var(--r); background: linear-gradient(100deg, #f1f2f4 40%, #f8f9fa 50%, #f1f2f4 60%) 0 0 / 200% 100%; animation: sh 1.2s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: var(--muted); }

/* підвал */
footer { background: var(--black); color: #a9adb6; margin-top: 30px; }
.foot { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 18px; font-size: 14px; }
.foot p { margin: 10px 0 0; max-width: 40ch; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav b { color: #fff; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: #fff; }
.foot .msg { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot .msg a { color: #fff; text-decoration: none; font-weight: 600; }
.foot .msg a:hover { text-decoration: underline; }
.msgr { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.msgr .btn { padding: 9px 16px; }

/* смужка «купити» внизу екрана телефона */
.buybar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.buybar > div { display: grid; min-width: 0; }
.buybar strong { font-size: 19px; font-weight: 800; }
.buybar small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex: none; padding: 12px 18px; }
body.has-buybar footer { padding-bottom: 72px; }
body.has-buybar .toast { bottom: 84px; }
.copy { font-size: 12.5px; padding-top: 12px; padding-bottom: 20px; border-top: 1px solid #25272c; margin-top: 0; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: calc(100% - 28px); text-align: center; }

/* загальне для сторінок */
.small { font-size: 13px; }
.btn.big { display: block; width: 100%; padding: 14px 18px; font-size: 16px; }
.btn:disabled { background: #eceef2; color: var(--muted); cursor: default; }
.page { padding: 22px 0 10px; max-width: 760px; }
.page h1 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.page h2 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.page p, .page li { line-height: 1.55; }
.page ul { padding-left: 20px; margin: 8px 0; }
.page a:not(.btn) { color: var(--accent); }
.big-text { font-size: 17px; font-weight: 500; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding: 14px 0 10px; }
.crumbs a { text-decoration: none; }
.crumbs a + a::before { content: "›"; margin-right: 6px; }

/* товар */
.product { display: grid; gap: 18px; }
.pmain { position: relative; aspect-ratio: 1; background: var(--soft); border-radius: var(--r); overflow: hidden; }
.pmain img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pthumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.pthumbs button { flex: none; width: 62px; height: 62px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; }
.pthumbs button.active { border-color: var(--black); }
.pthumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinfo { display: flex; flex-direction: column; gap: 12px; }
.pinfo h1 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.pprice { font-size: 28px; font-weight: 800; }
.pinfo .avail { font-size: 14px; }
.flabel { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sizes-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #fff; cursor: pointer; }
.sizes-link::before { content: ""; width: 14px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; background: repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 4px) 0 0 / 100% 45% no-repeat; }
.sizes-link:hover { border-color: var(--black); }
.ptitle { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
/* «Купити в 1 клік» */
.quick { border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; }
.quick summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.quick summary::-webkit-details-marker { display: none; }
.quick summary::before { content: "⚡ "; }
.quick[open] { padding-bottom: 14px; }
.quick p { margin: 0 0 10px; }
.quick-row { display: flex; gap: 8px; }
.quick-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.quick-row input:focus { outline: none; border-color: var(--black); }
.quick-row .btn { white-space: nowrap; }
.quick-done { font-weight: 600; color: var(--ok); padding: 12px 0; margin: 0; }
/* питання в месенджер */
.ask { display: grid; gap: 8px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-btn { flex: 1; min-width: 92px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 10px; color: var(--text); background: #fff; border: 1.5px solid var(--line); }
.msg-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.msg-btn.viber { --dot: #7360f2; }
.msg-btn.telegram { --dot: #229ed9; }
.msg-btn.whatsapp { --dot: #1fa855; }
.msg-btn:hover { border-color: var(--black); }
/* вікно (таблиця розмірів) */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(14,15,17,.55); display: grid; place-items: end center; }
.modal-card { background: #fff; width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal-head b { font-size: 17px; }
.stable { overflow-x: auto; }
.stable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stable th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1.5px solid var(--black); white-space: nowrap; }
.stable td { padding: 8px; border-bottom: 1px solid var(--line); }
.stable tr td:first-child { font-weight: 700; }
.flabel .chosen { font-weight: 500; color: var(--muted); }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { font: inherit; font-size: 14.5px; font-weight: 600; min-width: 56px; min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.vchip:hover { border-color: var(--black); }
.vchip.active { border-color: var(--black); background: var(--black); color: #fff; box-shadow: 0 0 0 2px #fff inset; }
.vchip.off { color: #a9adb6; border-style: dashed; background: repeating-linear-gradient(135deg, #fff 0 6px, #f6f7f9 6px 12px); }
.vchip.off.active { background: #6b7280; border-color: #6b7280; color: #fff; border-style: solid; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; width: max-content; }
.qty button { font: inherit; font-size: 20px; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; color: var(--text); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.pactions { display: grid; gap: 8px; }
.pnotes { margin: 4px 0 0; padding: 14px 14px 14px 32px; background: var(--soft); border-radius: 12px; font-size: 13.5px; color: #3c4048; display: grid; gap: 4px; }
.psection { margin-top: 28px; max-width: 760px; }
.psection h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.desc { line-height: 1.6; overflow-wrap: anywhere; }
.desc table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.desc td, .desc th { border: 1px solid var(--line); padding: 5px 9px; font-size: 13.5px; }
.attrs { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; margin: 0; font-size: 14px; }
.attrs dt, .attrs dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.attrs dt { color: var(--muted); padding-right: 10px; }

/* кошик */
.cart-list { display: grid; gap: 10px; }
.crow { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; align-items: start; }
.cph { position: relative; aspect-ratio: 1; background: var(--soft); border-radius: 10px; overflow: hidden; display: block; }
.cph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinfo { display: grid; gap: 4px; min-width: 0; }
.page a.cname { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3; }
.cbottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.cbottom .qty button { width: 36px; height: 36px; }
.cdel { font: inherit; border: 0; background: none; color: var(--muted); font-size: 16px; padding: 4px 6px; cursor: pointer; }
.summary { margin-top: 18px; padding: 16px; background: var(--soft); border-radius: var(--r); display: grid; gap: 10px; }
.summary p { margin: 0; }
.summary h2 { margin: 0; font-size: 18px; }
.two-col { display: grid; gap: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; font-size: 17px; }
.sum-row.small { font-size: 13.5px; color: #3c4048; }
.sum-row span:last-child, .sum-row strong { white-space: nowrap; }

/* форми */
.checkout { display: grid; gap: 14px; }
.checkout h2 { margin: 12px 0 0; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:disabled { background: var(--soft); }
.fgroup { display: grid; gap: 14px; }
.radios { display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--black); }
.radio input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.radio small { display: block; }
.sbox { position: relative; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14); max-height: 260px; overflow-y: auto; }
.suggest button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; padding: 10px 13px; border: 0; border-bottom: 1px solid var(--soft); background: none; color: var(--text); cursor: pointer; }
.suggest button:hover { background: var(--soft); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { color: #b42318; font-weight: 500; margin: 0; }
.error:empty { display: none; }

@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .strip .wide { display: inline; }
  .cart-label { display: inline; }
  .hero h1 { font-size: 30px; }
}
@media (min-width: 900px) {
  .top { gap: 24px; padding: 12px max(14px, calc((100% - 1212px) / 2)); }
  .logo img { height: 50px; }
  .search { max-width: 560px; }
  .search input { font-size: 15px; padding: 11px 14px; }
  .cart { padding: 9px 14px; gap: 8px; }
  .hero { grid-template-columns: 1fr 1.15fr; min-height: 270px; align-items: center; }
  .hero-text { padding: 28px 8px 28px 36px; }
  .hero-photo { inset: auto; height: 100%; min-height: 270px; position: relative; background-position: 85% 40%; }
  .hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 0%, rgba(14,15,17,.75) 12%, rgba(14,15,17,.25) 32%, transparent 55%); }
  .hero h1 { font-size: 38px; max-width: 14ch; }
  .hero-actions .btn { padding: 11px 16px; font-size: 14.5px; }
  .buybar { display: none; }
  body.has-buybar footer { padding-bottom: 0; }
  body.has-buybar .toast { bottom: 20px; }
  .page.wide { max-width: 1100px; }
  .two-col { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
  .summary.side { margin-top: 0; position: sticky; top: 96px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .name { font-size: 14.5px; }
  .foot { grid-template-columns: 2fr 1fr 1fr; }
  .cats { flex-wrap: wrap; overflow: visible; }
  .groups { justify-content: center; padding: 6px max(14px, calc((100% - 1212px) / 2)); overflow: visible; position: relative; z-index: 9; }
  .modal { place-items: center; }
  .modal-card { width: min(640px, 92vw); border-radius: 16px; padding: 20px 22px; }
  .dd > a::after { content: " ▾"; font-size: 11px; opacity: .6; }
  .ddm { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .dd:hover .ddm, .dd:focus-within .ddm { display: grid; }
  .ddm a { padding: 9px 12px; }
  .rel { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; overflow: visible; }
  .gtiles { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); margin: 22px 0 0; padding: 0; overflow: visible; }
  .catalog { grid-template-columns: 230px minmax(0, 1fr); }
  .filters, .filters.open { display: block; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding: 4px 6px 20px 0; inset: auto; z-index: 1; scrollbar-width: thin; }
  .fbtn, .fclose, .filters .show-btn { display: none; }
  .rgrid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .pinfo h1 { font-size: 28px; }
  .pactions { grid-template-columns: 1fr 1fr; }
  .page h1 { font-size: 32px; }
}
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* сторінка замовлення покупця */
.pay-ok { font-weight: 600; color: #1f7a3a; }
.pay-bad { font-weight: 600; color: #b42318; }
.page .pactions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }
