/* MELIUS — вітрина. Світла, мінімалістична, як логотип: тонкий геометричний шрифт, багато білого, фото 3:4. */
:root {
  --bg: #fff;
  --ink: #141414;
  --ink2: #3a3a3a;
  --muted: #7a7772;
  --line: #e7e4de;
  --soft: #f5f3ef;
  --soft2: #ece8e1;
  --sale: #a8322a;
  --ok: #2f6b3a;
  --warn: #9a6a12;
  --wrap: 1280px;
  --gut: 16px;
  --hdr: 60px;
  --font: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gut: 28px; --hdr: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- типографіка ---------- */
.h-xl, .h-l, .h-m, .eyebrow { font-weight: 400; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.h-xl { font-size: clamp(30px, 6.2vw, 62px); line-height: 1.04; font-weight: 300; letter-spacing: .04em; }
.h-l { font-size: clamp(22px, 3.4vw, 34px); line-height: 1.12; font-weight: 300; }
.h-m { font-size: 15px; letter-spacing: .14em; font-weight: 500; }
.eyebrow { font-size: 11.5px; letter-spacing: .22em; color: var(--muted); font-weight: 500; }
.lead { font-size: 16px; color: var(--ink2); max-width: 560px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; text-decoration: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: background .2s, color .2s, opacity .2s;
}
.btn:hover { background: #333; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn.viber { background: #7360f2; border-color: #7360f2; }
.btn.viber:hover { background: #5d4ad6; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: inherit; }
.ulink { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.ibtn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; padding: 0; position: relative; color: var(--ink); }

/* ---------- біжучий рядок ---------- */
.ticker { background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; overflow: hidden; height: 32px; display: flex; align-items: center; }
.ticker-in { display: flex; white-space: nowrap; animation: tick 38s linear infinite; }
.ticker-in span { padding: 0 28px; }
.ticker-in span::after { content: '✦'; margin-left: 56px; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } html { scroll-behavior: auto; } }
.test-ribbon { background: #f3e2a8; color: #5b4500; text-align: center; font-size: 12.5px; padding: 6px 12px; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.logo { justify-self: center; display: block; }
.logo img { height: 34px; width: auto; }
.nav { display: none; }
.hdr-r { justify-self: end; display: flex; align-items: center; gap: 2px; }
.burger { justify-self: start; margin-left: -10px; }
.cartbtn .cnt { position: absolute; top: 6px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10.5px; line-height: 18px; text-align: center; font-weight: 500; }
.cartbtn.bump .cnt { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (min-width: 1024px) {
  .hdr-in { grid-template-columns: auto 1fr auto; gap: 40px; }
  .logo { justify-self: start; }
  .logo img { height: 40px; }
  .burger { display: none; }
  .nav { display: flex; gap: 34px; justify-content: center; }
  .nav a { text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; padding: 8px 0; border-bottom: 1px solid transparent; }
  .nav a:hover, .nav a.on { border-color: var(--ink); }
  .nav-sale { color: var(--sale); }
}
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { background: none; border: 0; padding: 7px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mode { margin-right: 8px; }
@media (max-width: 719px) { .mode { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.14); margin: 0; } }

.searchbar { border-top: 1px solid var(--line); background: #fff; padding: 12px 0; }
.sform { display: flex; gap: 8px; }
.sform input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); padding: 0 14px; font-size: 15px; border-radius: 0; background: #fff; }
.sform input:focus { outline: none; border-color: var(--ink); }

/* ---------- меню (телефон) ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(20, 20, 20, .38); z-index: 60; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.menu { position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; display: flex; flex-direction: column; animation: slideL .28s var(--ease); }
@keyframes slideL { from { transform: translateX(-100%); } }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.menu-nav { display: flex; flex-direction: column; padding: 12px 0; overflow: auto; }
.menu-nav a { text-decoration: none; padding: 14px 20px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; display: flex; justify-content: space-between; }
.menu-nav a small { color: var(--muted); letter-spacing: 0; }
.menu-nav .sep { height: 1px; background: var(--line); margin: 8px 20px; }
.menu-foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }

/* ---------- головна: перший екран ---------- */
.hero { display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.hero-txt { padding: 34px var(--gut) 30px; display: grid; gap: 18px; align-content: center; }
.hero-img { position: relative; background: var(--soft); aspect-ratio: 4 / 4.4; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-img .tagline { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 8px 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 100%; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - var(--hdr) - 32px); max-height: 820px; }
  .hero-txt { padding: 56px 56px 56px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
  .hero-img { aspect-ratio: auto; }
  .hero.solo { grid-template-columns: 1fr; min-height: 0; }
  .hero.solo .hero-txt { padding: 80px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
}
.bigsearch { display: flex; border: 1px solid var(--ink); background: #fff; max-width: 560px; }
.bigsearch input { flex: 1; min-width: 0; border: 0; height: 56px; padding: 0 16px; font-size: 16px; background: transparent; border-radius: 0; }
.bigsearch input:focus { outline: none; }
.bigsearch button { border: 0; background: var(--ink); color: #fff; padding: 0 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.bigsearch button svg { width: 18px; height: 18px; }
.search-hint { font-size: 12.5px; color: var(--muted); margin-top: -8px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 5px; height: 5px; background: var(--ink); border-radius: 50%; }
.suggest-box { max-width: 560px; border: 1px solid var(--line); border-top: 0; background: #fff; margin-top: -18px; }
.suggest-box a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; border-top: 1px solid var(--line); }
.suggest-box a:first-child { border-top: 0; }
.suggest-box img, .suggest-box .ph0 { width: 44px; height: 58px; object-fit: cover; background: var(--soft); }
.suggest-box b { font-weight: 500; display: block; font-size: 14px; }
.suggest-box small { color: var(--muted); font-size: 12.5px; }
.suggest-box .pr { font-size: 14px; white-space: nowrap; }

/* ---------- секції ---------- */
.sec { padding: 54px 0; }
.sec + .sec { padding-top: 10px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.sec-head .h-l { max-width: 70%; }
@media (min-width: 720px) { .sec { padding: 84px 0; } .sec + .sec { padding-top: 20px; } .sec-head { margin-bottom: 34px; } }

/* категорії */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .cats.n4 { grid-template-columns: repeat(4, 1fr); } }
.cat { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .38)); }
.cat-t { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.cat-t b { font-weight: 400; font-size: clamp(15px, 2.2vw, 22px); letter-spacing: .12em; text-transform: uppercase; }
.cat-t small { font-size: 12px; opacity: .9; white-space: nowrap; }
.cat.nocover::after { display: none; }
.cat.nocover .cat-t { color: var(--ink); }

/* товари */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; }
.card-ph { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; }
.card-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .8s var(--ease); }
.card-ph img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-ph img.alt { opacity: 1; } .card:hover .card-ph img:first-child { transform: scale(1.02); } }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #c9c3b8; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.badges { position: absolute; z-index: 1; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: start; }
.badge { background: #fff; color: var(--ink); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 4px 8px; font-weight: 500; }
.badge.sale { background: var(--sale); color: #fff; }
.badge.out { background: var(--ink); color: #fff; }
.qadd { position: absolute; z-index: 1; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: transform .2s; }
.qadd:hover { transform: scale(1.06); }
.qadd svg { width: 20px; height: 20px; }
.qadd .n { position: absolute; top: -4px; right: -4px; background: var(--ink); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; line-height: 18px; text-align: center; padding: 0 4px; }
.card-b { padding-top: 12px; display: grid; gap: 4px; }
.card-art { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.card-name { font-size: 14.5px; margin: 0; font-weight: 400; line-height: 1.35; }
.card-name a { text-decoration: none; }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.card-price b { font-weight: 500; font-size: 16px; }
.card-price b small { font-weight: 400; font-size: 12px; color: var(--muted); }
.card-price s { color: var(--muted); font-size: 13px; }
.card-price.sale b { color: var(--sale); }
.card-meta { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.dots { display: flex; gap: 5px; align-items: center; margin-top: 4px; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: inline-block; padding: 0; flex: none; }
button.dot { cursor: pointer; position: relative; }
button.dot::before { content: ''; position: absolute; inset: -7px; }
.dot.on { outline: 1px solid var(--ink); outline-offset: 2px; }
.dots { gap: 9px; }
.dots small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }

/* фільтр каталогу */
.page-head { padding: 34px 0 18px; display: grid; gap: 10px; }
@media (min-width: 720px) { .page-head { padding: 54px 0 24px; } }
.crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gut) 14px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; padding: 9px 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.toolrow select { border: 0; background: none; font-size: 13px; padding: 6px 2px; color: var(--ink); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.empty b { color: var(--ink); font-weight: 400; font-size: 18px; letter-spacing: .06em; }

/* переваги */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 16px; display: grid; gap: 10px; align-content: start; }
@media (min-width: 720px) { .perk { padding: 34px 28px; } }
.perk svg { width: 30px; height: 30px; stroke-width: 1.1; }
.perk b { font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.perk span { font-size: 13.5px; color: var(--muted); }

/* як замовити */
.steps { display: grid; gap: 0; counter-reset: st; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.step { counter-increment: st; padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; padding-top: 24px; } }
.step::before { content: '0' counter(st); font-size: 28px; font-weight: 300; line-height: 1; grid-row: span 2; }
.step b { font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.step span { color: var(--muted); font-size: 14px; }

/* про нас + контакти */
.about { display: grid; gap: 28px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; } }
.about p { font-size: 16.5px; line-height: 1.7; color: var(--ink2); margin: 0; font-weight: 300; }
.contacts { border: 1px solid var(--line); padding: 26px; display: grid; gap: 16px; }
.contacts .row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; }
.contacts .row svg { width: 20px; height: 20px; margin-top: 1px; }
.contacts .row a { text-decoration: none; }
.contacts .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

.pending-note { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pending-note .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }

/* ---------- сторінка товару ---------- */
.pd { display: grid; gap: 24px; padding-top: 0; }
@media (min-width: 900px) { .pd { grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 28px; align-items: start; } }
.gal { position: relative; margin: 0 calc(-1 * var(--gut)); }
@media (min-width: 900px) { .gal { margin: 0; display: grid; grid-template-columns: 78px 1fr; gap: 14px; position: sticky; top: calc(var(--hdr) + 20px); } .gal.single { grid-template-columns: 1fr; } .gal.single .gal-main { grid-column: 1; } }
.gal-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 4; background: var(--soft); }
.gal-main::-webkit-scrollbar { display: none; }
.gal-main figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; cursor: zoom-in; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs { display: none; }
@media (min-width: 900px) {
  .gal-main { grid-column: 2; grid-row: 1; }
  .gal-thumbs { display: flex; flex-direction: column; gap: 10px; grid-column: 1; grid-row: 1; max-height: 100%; overflow: auto; }
  .gal-thumbs button { border: 1px solid transparent; padding: 0; background: var(--soft); aspect-ratio: 3 / 4; }
  .gal-thumbs button.on { border-color: var(--ink); }
  .gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
}
.gal-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.gal-dots i.on { background: #fff; width: 18px; border-radius: 3px; }
@media (min-width: 900px) { .gal-dots { display: none; } }
.gal-arrow { display: none; }
@media (min-width: 900px) {
  .gal-arrow { display: grid; place-items: center; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); z-index: 2; }
  .gal-arrow.l { left: 106px; } .gal-arrow.r { right: 14px; }
}
.pd-info { display: grid; gap: 20px; align-content: start; }
.pd-top { display: grid; gap: 8px; }
.pd-top h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 300; letter-spacing: .04em; margin: 0; line-height: 1.15; text-transform: uppercase; }
.prices { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; display: grid; gap: 14px; }
.pr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pr-row .lbl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pr-row .val { font-size: 15px; text-align: right; }
.pr-main .val { font-size: 26px; font-weight: 500; }
.pr-main .val small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pr-main .val s { font-size: 16px; color: var(--muted); font-weight: 400; margin-right: 8px; }
.pr-main.sale .val { color: var(--sale); }
.earn { background: var(--soft); padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.earn svg { width: 20px; height: 20px; }
.opt-lbl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.opt-lbl b { color: var(--ink); font-weight: 500; letter-spacing: .06em; text-transform: none; font-size: 13.5px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color { width: 64px; text-decoration: none; display: grid; gap: 5px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.color .sw { aspect-ratio: 3 / 4; background: var(--soft); border: 1px solid transparent; overflow: hidden; display: grid; place-items: center; }
.color .sw img { width: 100%; height: 100%; object-fit: cover; }
.color .sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.color.on .sw { border-color: var(--ink); }
.color.on { color: var(--ink); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 48px; height: 44px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 13.5px; padding: 0 10px; }
.size.inpack { border-color: var(--ink); }
button.size[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.buyrow { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; }
.qty button:disabled { opacity: .3; }
.qty input { width: 44px; border: 0; text-align: center; font-size: 16px; background: none; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-cap { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.stock { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.stock.low::before { background: var(--warn); }
.stock.no::before { background: var(--sale); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; font-weight: 300; line-height: 1; }
.acc details[open] summary::after { content: '−'; }
.acc .acc-b { padding: 0 0 18px; font-size: 14.5px; color: var(--ink2); white-space: pre-line; }
.mgr { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.mgr a { font-weight: 500; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy .t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.sticky-buy .t b { display: block; font-size: 15px; font-weight: 500; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- кошик ---------- */
.cart { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(100vw, 440px); background: #fff; display: flex; flex-direction: column; animation: slideR .3s var(--ease); }
@keyframes slideR { from { transform: translateX(100%); } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 0; }
.cart-body { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.cart-lines { padding: 6px 22px; }
.cl { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-ph { aspect-ratio: 3 / 4; background: var(--soft); position: relative; overflow: hidden; }
.cl-ph img { width: 100%; height: 100%; object-fit: cover; }
.cl-b { display: grid; gap: 3px; align-content: start; min-width: 0; }
.cl-b .nm { font-size: 14px; line-height: 1.3; text-decoration: none; }
.cl-b .mt { font-size: 12.5px; color: var(--muted); }
.cl-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.cl-row .qty { height: 36px; }
.cl-row .qty button { width: 34px; font-size: 17px; }
.cl-row .qty input { width: 34px; font-size: 14px; }
.cl-row .sum { font-weight: 500; font-size: 15px; }
.cl-rm { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; justify-self: start; margin-top: 4px; }
.cart-foot { margin-top: auto; padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: #fff; position: sticky; bottom: 0; }
.tot { display: flex; justify-content: space-between; align-items: baseline; }
.tot span { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.tot b { font-size: 20px; font-weight: 500; }
.note { font-size: 13px; color: var(--muted); }
.alert { background: #fbf3e4; border-left: 2px solid var(--warn); padding: 10px 12px; font-size: 13.5px; }
.alert.err { background: #fbecea; border-color: var(--sale); }
.alert.ok { background: #edf5ee; border-color: var(--ok); }

/* ---------- оформлення ---------- */
.co { display: grid; gap: 28px; padding-bottom: 60px; }
@media (min-width: 960px) { .co { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; } }
.co-sec { display: grid; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.co-sec h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 0; display: flex; gap: 10px; align-items: center; }
.co-sec h2 i { font-style: normal; width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.fld { display: grid; gap: 6px; position: relative; }
.fld label, .fld .lb { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld textarea, .fld select { width: 100%; height: 50px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font-size: 16px; border-radius: 0; }
.fld textarea { height: 90px; padding: 12px 14px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--ink); }
.fld input:disabled { background: var(--soft); }
.fld.bad input, .fld.bad textarea { border-color: var(--sale); }
.err-msg { color: var(--sale); font-size: 12.5px; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.opts { display: grid; gap: 10px; }
@media (min-width: 600px) { .opts.two { grid-template-columns: 1fr 1fr; } }
.opt { border: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: 20px 1fr; gap: 4px 12px; cursor: pointer; align-items: start; background: #fff; text-align: left; }
.opt input { margin: 3px 0 0; accent-color: var(--ink); width: 16px; height: 16px; }
.opt b { font-weight: 500; font-size: 14.5px; }
.opt span { grid-column: 2; font-size: 13px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--ink); border-top: 0; max-height: 280px; overflow: auto; box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.suggest button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 11px 14px; font-size: 14.5px; }
.suggest button:hover { background: var(--soft); }
.suggest small { display: block; color: var(--muted); font-size: 12px; }
.suggest .none { padding: 12px 14px; color: var(--muted); font-size: 14px; }
.summary { background: var(--soft); padding: 22px; display: grid; gap: 14px; position: sticky; top: calc(var(--hdr) + 20px); }
.summary h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 0; }
.sline { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.sline .ph { aspect-ratio: 3 / 4; background: #fff; overflow: hidden; }
.sline .ph img { width: 100%; height: 100%; object-fit: cover; }
.sline small { display: block; color: var(--muted); font-size: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.sum-row > span:last-child { white-space: nowrap; }
.sum-row > span:last-child[style*="text-align:right"] { white-space: normal; }
.sum-row.big { font-size: 18px; font-weight: 500; border-top: 1px solid var(--soft2); padding-top: 14px; }

/* ---------- замовлення / рахунок ---------- */
.done { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; display: grid; gap: 24px; }
.done-head { text-align: center; display: grid; gap: 12px; justify-items: center; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; }
.done-ico svg { width: 28px; height: 28px; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; font-weight: 500; }
.pill.wait { background: #fbf0d9; color: #6d4c0b; }
.pill.ok { background: #e3f0e5; color: #24572e; }
.pill.no { background: #f6e1df; color: #7d2019; }
.box { border: 1px solid var(--line); padding: 22px; display: grid; gap: 14px; }
.box h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 0; }
.req { display: grid; gap: 0; }
.req-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.req-row:first-child { border-top: 0; }
.req-row small { grid-column: 1; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.req-row b { grid-column: 1; font-weight: 500; font-size: 15px; word-break: break-word; }
.copy { grid-column: 2; grid-row: 1 / span 2; border: 1px solid var(--line); background: #fff; height: 36px; padding: 0 12px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.copy.ok { border-color: var(--ok); color: var(--ok); }
.btns { display: grid; gap: 10px; }
@media (min-width: 600px) { .btns.two { grid-template-columns: 1fr 1fr; } }

/* ---------- підвал ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 calc(30px + env(safe-area-inset-bottom)); background: #fff; font-size: 13.5px; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot h3 { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 0 0 12px; }
.foot a { text-decoration: none; display: block; padding: 3px 0; color: var(--ink2); }
.foot a:hover { color: var(--ink); }
.foot .seller { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: #fff; display: flex; flex-direction: column; animation: fade .2s; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 20px; font-size: 13px; color: var(--muted); }
.lb-main { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-main::-webkit-scrollbar { display: none; }
.lb-main figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.lb-main img { max-width: 100%; max-height: calc(100vh - 70px); object-fit: contain; }

/* ---------- тост ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 90; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- скелет ---------- */
.skel { background: linear-gradient(90deg, var(--soft) 0%, #faf9f7 50%, var(--soft) 100%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- сторінки оферти ---------- */
.doc { max-width: 780px; padding-top: 40px; padding-bottom: 60px; }
.doc h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.doc h2 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink2); font-size: 15px; }
.doc .meta { color: var(--muted); font-size: 13px; }
.card-box { border: 1px solid var(--line); padding: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.card-box span { color: var(--muted); }
.card-box b { font-weight: 500; }
.doc-links { margin-top: 30px; color: var(--muted); font-size: 13.5px; }
.doc-top { border-bottom: 1px solid var(--line); }
.doc-top .wrap { height: var(--hdr); display: flex; justify-content: space-between; align-items: center; }
.doc-top img { height: 34px; width: auto; }

/* матриця кольорів: колір + кількість ростовок */
.mx { border-top: 1px solid var(--line); }
.mx-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mx-row.on { background: linear-gradient(90deg, var(--soft), transparent); }
.mx-ph { aspect-ratio: 3 / 4; width: 46px; background: var(--soft); border: 1px solid transparent; padding: 0; overflow: hidden; display: grid; place-items: center; }
.mx-row.on .mx-ph { border-color: var(--ink); }
.mx-ph img { width: 100%; height: 100%; object-fit: cover; }
.mx-ph i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.mx-t { background: none; border: 0; padding: 0; text-align: left; display: grid; gap: 2px; min-width: 0; }
.mx-t b { font-weight: 500; font-size: 14.5px; }
.mx-t small { font-size: 12px; color: var(--muted); }
.mx-t small.no { color: var(--sale); }
.mx .qty { height: 40px; }
.mx .qty button { width: 36px; font-size: 18px; }
.mx .qty input { width: 34px; font-size: 15px; }
.mx-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 12px; font-size: 13.5px; color: var(--muted); }
.mx-sum b { color: var(--ink); font-size: 17px; font-weight: 500; }
