/* VOICE: тепло, на «ви», сучасний beauty-ритейл
   IDEA: вітрина як стрічка Instagram — сторіс, свайпи, нижня панель застосунку
   PICTURE: фото товару на всю ширину в заокруглених картках
   COLOUR and TYPE: молочний, рожевий, пудровий, чорний (брендбук); CMU Serif для заголовків і назв, курсив — акценти; Noto Sans — інтерфейс
   LAYOUT: телефон першим; бенто-сітки на 768 і 1280 */
:root {
  --milk: #fff8f5; --blush: #f9e5ec; --rose: #f4b6c8; --powder: #d58fa6; --ink: #171316;
  --muted: #6b5f65; --line: rgba(23,19,22,.09); --plum: #7a2e4a; --err: #9a2b2b; --card: #ffffff;
  --serif: "CMU Serif", Georgia, serif; --sans: "Noto Sans", system-ui, -apple-system, sans-serif;
  --r-lg: 28px; --r: 20px; --r-sm: 14px; --pad: 16px; --tab: 68px;
  color-scheme: light;
}
@font-face { font-family: "CMU Serif"; src: url("/fonts/CMUSerif-Roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "CMU Serif"; src: url("/fonts/CMUSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--milk); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.serif { font-family: var(--serif); font-weight: 400; }
.it { font-family: var(--serif); font-style: italic; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }
@media (min-width: 768px) { :root { --pad: 28px; } }
@media (min-width: 1200px) { :root { --pad: 40px; } }

/* ── Типографіка ── */
.h-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 9vw, 92px); line-height: .98; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h-lg { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5.2vw, 52px); line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h-md { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.h-xl em, .h-lg em, .h-md em { font-style: italic; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--powder); }
.lead { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; margin: 0; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: transform .15s ease, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--milk); }
.btn-ink:hover { background: #2e272b; }
.btn-rose { background: var(--rose); color: var(--ink); }
.btn-milk { background: var(--milk); color: var(--ink); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--milk); }
.btn-glass { background: rgba(255,248,245,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--blush); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ibtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; position: relative; }
.ibtn:hover { background: rgba(23,19,22,.05); }
.badge-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--milk); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; min-height: 44px; }
.more .ic { width: 18px; height: 18px; transition: transform .2s; }
.more:hover .ic { transform: translateX(3px); }

/* ── Шапка ── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,248,245,.86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.top__l, .top__r { display: flex; align-items: center; gap: 2px; }
.top__r { justify-content: flex-end; }
.logo { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.logo i { font-size: 15px; color: var(--powder); }
.nav { display: none; }
.only-d { display: none !important; }
@media (min-width: 1100px) {
  .top__in { grid-template-columns: auto 1fr auto; gap: 32px; height: 72px; }
  .top__l .only-m { display: none; }
  .only-d { display: inline-grid !important; }
  .nav { display: flex; justify-content: center; gap: 4px; }
  .nav > div { position: static; }
  .nav > div > a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
  .nav > div > a:hover, .nav > div:focus-within > a { background: var(--blush); }
  .nav > div > a[aria-current="page"] { background: var(--ink); color: var(--milk); }
  .nav .plum { color: var(--plum); }
  .logo { font-size: 28px; }
}
.mega { position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--pad) 20px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease; }
.nav > div:hover .mega, .nav > div:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; padding: 28px; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(23,19,22,.18); }
.mega h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mega a.s { display: block; padding: 7px 0; font-size: 16px; font-family: var(--serif); }
.mega a.s:hover { color: var(--plum); }
.mega__img { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--rose); }
.mega__img img { width: 100%; height: 100%; object-fit: cover; }
.mega__img span { position: absolute; left: 12px; bottom: 12px; }

.ticker { overflow: hidden; background: var(--ink); color: var(--milk); font-size: 13px; height: 34px; display: flex; align-items: center; }
.ticker__t { width: max-content; display: flex; gap: 32px; white-space: nowrap; animation: tick 38s linear infinite; padding-left: 32px; }
.ticker__t span { flex: none; display: inline-flex; align-items: center; gap: 32px; }
.ticker__t span::after { content: "✦"; color: var(--rose); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Нижня панель (телефон) ── */
.tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; height: var(--tab); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(23,19,22,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; color: #d9cdd2; box-shadow: 0 12px 30px -8px rgba(23,19,22,.4); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 500; position: relative; }
.tabbar a[aria-current="page"] { color: var(--milk); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.tabbar .badge-n { top: 8px; right: calc(50% - 22px); background: var(--rose); color: var(--ink); }
body { padding-bottom: calc(var(--tab) + 24px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ── Сторіс ── */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 14px var(--pad) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; scroll-snap-align: start; }
.story__r { width: 70px; height: 70px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 200deg, var(--rose), var(--powder), var(--plum), var(--rose)); }
.story__r > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--milk); background: var(--blush); }
.story__r img { width: 100%; height: 100%; object-fit: cover; }
.story__r i { font-family: var(--serif); font-size: 17px; }
.story__t { font-size: 11.5px; font-weight: 500; text-align: center; line-height: 1.2; }
.story--ink .story__r > span { background: var(--ink); color: var(--milk); }
.story--rose .story__r > span { background: var(--rose); }
@media (min-width: 768px) { .stories { justify-content: center; gap: 22px; padding-top: 22px; } .story { width: 90px; } .story__r { width: 84px; height: 84px; } .story__t { font-size: 13px; } }

/* ── Перший кадр: бенто ── */
.hero { display: grid; gap: 10px; padding-top: 10px; }
.hcard { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--blush); isolation: isolate; }
.hcard > img, .hcard > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s ease; }
.hcard:hover > img { transform: scale(1.03); }
.hcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,19,22,0) 25%, rgba(23,19,22,.35) 50%, rgba(23,19,22,.8) 100%); }
.hcard--main { aspect-ratio: 4 / 5.2; color: var(--milk); }
.hcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 12px; }
.hcard__body .lead { color: #f3e6eb; }
.hcard__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hcard__chips { position: absolute; left: 16px; top: 16px; right: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip-g { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,248,245,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); font-size: 12px; font-weight: 600; }
.chip-g .dot { width: 7px; height: 7px; border-radius: 50%; background: #3e9b5f; box-shadow: 0 0 0 3px rgba(62,155,95,.2); }
.prog { position: absolute; left: 16px; right: 16px; top: 10px; display: flex; gap: 4px; z-index: 2; }
.prog span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,248,245,.4); overflow: hidden; }
.prog span.done::after, .prog span.on::after { content: ""; display: block; height: 100%; background: var(--milk); }
.prog span.on::after { animation: prog 6s linear forwards; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.hcard--main .hcard__chips { top: 24px; }
.hside { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hcard--sm { aspect-ratio: 1 / 1.15; color: var(--milk); }
.hcard--sm .hcard__body { padding: 14px; gap: 2px; }
.hcard--sm .h-md { font-size: 21px; }
.hcard--solid { background: var(--rose); color: var(--ink); }
.hcard--solid::after { display: none; }
.hcard--solid .hcard__body { top: 0; align-content: space-between; }
.tap { position: absolute; inset: 0; z-index: 1; }
.tap-zones { position: absolute; inset: 0 0 45% 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 1; }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1.6fr 1fr; gap: 14px; padding-top: 16px; }
  .hcard--main { aspect-ratio: auto; min-height: 560px; }
  .hcard__body { padding: 36px; max-width: 620px; }
  .hside { grid-template-columns: 1fr; gap: 14px; }
  .hcard--sm { aspect-ratio: auto; min-height: 0; }
  .hcard--sm .hcard__body { padding: 22px; }
  .hcard--sm .h-md { font-size: 28px; }
}
@media (min-width: 1200px) { .hcard--main { min-height: 660px; } }

/* ── Секції ── */
.sec { padding-top: 48px; }
@media (min-width: 768px) { .sec { padding-top: 80px; } }
.sec__h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec__h p { margin: 6px 0 0; }
.panel { border-radius: var(--r-lg); padding: 28px 0 28px; }
.panel--blush { background: var(--blush); }
.panel--ink { background: var(--ink); color: var(--milk); }
.panel--ink .muted { color: #bfb2b8; }
.panel .sec__h, .panel .rail { padding-inline: 20px; }
@media (min-width: 768px) { .panel { padding: 44px 0; } .panel .sec__h, .panel .rail { padding-inline: 36px; } }

/* ── Стрічка товарів ── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 66%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.panel .rail { margin-inline: 0; scroll-padding-inline: 20px; }
@media (min-width: 768px) { .rail { grid-auto-columns: calc((100% - 36px) / 3.3); gap: 14px; } }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 42px) / 4); } }

/* ── Картка товару ── */
.pc { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pc__img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--blush); }
.pc__img img, .pc__img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pc:hover .pc__img img { transform: scale(1.04); }
.pc__tags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 2; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,248,245,.9); color: var(--ink); }
.tag--last { background: var(--rose); }
.tag--sale { background: var(--ink); color: var(--milk); }
.tag--tr { background: var(--milk); color: var(--plum); }
.tag--sold { background: var(--ink); color: var(--milk); }
.pc__fav { position: absolute; right: 6px; top: 6px; z-index: 2; color: var(--ink); }
.pc__fav .ic { width: 20px; height: 20px; }
.pc__fav[aria-pressed="true"] .ic { fill: var(--ink); }
.pc__add { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--milk); box-shadow: 0 6px 16px -6px rgba(23,19,22,.35); transition: transform .15s; }
.pc__add:hover { transform: scale(1.08); }
.pc__add.in { background: var(--ink); color: var(--milk); }
.pc__brand { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pc__name { font-family: var(--serif); font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; }
.pc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.price s { font-weight: 400; color: var(--muted); font-size: 13px; margin-right: 4px; }
.pc__sz { font-size: 12px; color: var(--muted); }
.pc--sold .pc__img > *:not(.pc__tags):not(.pc__fav) { filter: grayscale(.6); opacity: .6; }
.pc--sold .pc__name, .pc--sold .price { color: var(--muted); }
.panel--ink .pc__brand, .panel--ink .pc__sz { color: #bfb2b8; }
.panel--ink .pc__fav, .panel--ink .pc__add { color: var(--ink); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.st--in::before { background: #3e9b5f; }
.st--tr { color: var(--plum); } .st--tr::before { background: none; box-shadow: inset 0 0 0 1.5px var(--plum); }
.st--sold { color: var(--muted); } .st--sold::before { background: var(--muted); border-radius: 1px; height: 1.5px; width: 9px; }
.panel--ink .st--tr { color: var(--rose); } .panel--ink .st--tr::before { box-shadow: inset 0 0 0 1.5px var(--rose); }

/* ── Фото-заглушка ── */
.ph { display: grid; place-items: end start; padding: 12px; }
.ph span { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--muted); background: rgba(255,248,245,.7); padding: 2px 8px; border-radius: 999px; }

/* ── Бенто категорій ── */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1 / 1.1; background: var(--blush); isolation: isolate; display: flex; align-items: flex-end; padding: 14px; color: var(--milk); }
.bt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.bt:hover img { transform: scale(1.05); }
.bt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(23,19,22,.6)); }
.bt__t { font-family: var(--serif); font-size: 22px; line-height: 1.05; }
.bt__n { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; opacity: .85; margin-top: 4px; }
.bt__go { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,248,245,.85); color: var(--ink); display: grid; place-items: center; backdrop-filter: blur(8px); }
.bt__go .ic { width: 16px; height: 16px; }
.bt--big { grid-column: span 2; aspect-ratio: 16 / 11; }
.bt--rose { background: var(--rose); color: var(--ink); }
.bt--rose::after, .bt--ink::after { display: none; }
.bt--ink { background: var(--ink); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
  .bt { aspect-ratio: auto; padding: 22px; }
  .bt--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .bt--wide { grid-column: span 2; }
  .bt__t { font-size: 28px; } .bt--big .bt__t { font-size: 44px; }
}
@media (min-width: 1200px) { .bento { grid-auto-rows: 290px; } }

/* ── Переваги ── */
.vals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.val { background: var(--card); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; align-content: start; }
.val__i { width: 40px; height: 40px; border-radius: 12px; background: var(--blush); display: grid; place-items: center; color: var(--plum); }
.val h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.15; }
.val p { margin: 0; font-size: 13px; color: var(--muted); }
@media (min-width: 1000px) { .vals { grid-template-columns: repeat(4, 1fr); gap: 14px; } .val { padding: 24px; } }

/* ── Instagram ── */
.ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig a { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--blush); }
.ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ig a:hover img { transform: scale(1.06); }
@media (min-width: 768px) { .ig { grid-template-columns: repeat(6, 1fr); gap: 10px; } }

/* ── Підвал ── */
.foot { margin-top: 64px; background: var(--ink); color: var(--milk); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 40px 0 28px; }
.foot__big { font-family: var(--serif); font-size: clamp(52px, 15vw, 200px); line-height: .85; letter-spacing: -.04em; margin: 28px 0 0; color: var(--rose); }
.foot__big i { font-size: .35em; color: var(--powder); letter-spacing: 0; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.foot h4 { margin: 0 0 8px; font-size: 12px; color: #a89aa1; font-weight: 600; }
.foot__cols a { display: block; padding: 7px 0; font-size: 14px; }
.foot__sub { grid-column: 1 / -1; }
.foot__f { display: flex; gap: 6px; margin-top: 10px; background: #2a2327; border-radius: 999px; padding: 5px; }
.foot__f input { flex: 1; background: none; border: 0; color: var(--milk); font: inherit; padding: 0 14px; outline: none; }
.foot__f input::placeholder { color: #a89aa1; }
.foot__legal { margin-top: 28px; font-size: 12px; color: #a89aa1; }
@media (min-width: 768px) { .foot__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot__sub { grid-column: auto; } }

/* ── Каталог ── */
.cat-h { padding-top: 16px; display: grid; gap: 6px; }
.crumbs { font-size: 12px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 14px var(--pad) 0; }
.seg::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pill[aria-pressed="true"], .pill[aria-current="true"] { background: var(--ink); color: var(--milk); box-shadow: none; }
.pill .ic { width: 16px; height: 16px; }
.pill .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: var(--ink); font-size: 11px; }
.pill:disabled { opacity: .4; text-decoration: line-through; cursor: default; }
.fbar { position: sticky; top: 60px; z-index: 30; background: rgba(255,248,245,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin-inline: calc(var(--pad) * -1); padding: 10px var(--pad); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fbar::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .fbar { top: 72px; } }
.fbar__count { margin-left: auto; align-self: center; font-size: 13px; color: var(--muted); white-space: nowrap; padding-left: 8px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 10px; margin-top: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 36px 14px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--blush); font-size: 14px; }
.note .ic { color: var(--plum); margin-top: 1px; }
.empty { text-align: center; padding: 48px 8px 24px; max-width: 520px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
.empty__o { width: 96px; height: 96px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; color: var(--powder); }
.empty__o .ic { width: 40px; height: 40px; stroke-width: 1.2; }
.empty__a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ── Шторки ── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(23,19,22,.4); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--milk); border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88vh; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes up { from { transform: translateY(100%); } }
.sheet::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: rgba(23,19,22,.15); margin: 10px auto 0; flex: none; }
.sheet__h { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 20px; }
.sheet__b { overflow: auto; padding: 4px 20px 16px; }
.sheet__f { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .sheet { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 24px; border-radius: var(--r-lg); animation: pop .22s ease; } .sheet::before { display: none; } @keyframes pop { from { opacity: 0; transform: translate(-50%, 12px); } } }
.fg { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fg h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.fg__c { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23,19,22,.15); }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(88vw, 400px); z-index: 61; background: var(--milk); border-radius: 0 var(--r-lg) var(--r-lg) 0; overflow: auto; animation: inl .25s ease; padding: 10px 16px 24px; }
@keyframes inl { from { transform: translateX(-100%); } }
.drawer__a { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-radius: 16px; font-family: var(--serif); font-size: 20px; }
.drawer__a:hover { background: var(--blush); }
.drawer__a img, .drawer__a .o { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--rose); flex: none; display: grid; place-items: center; }

/* ── Пошук ── */
.srch { position: fixed; inset: 0 0 auto 0; z-index: 61; background: var(--milk); border-radius: 0 0 var(--r-lg) var(--r-lg); max-height: 92vh; display: flex; flex-direction: column; animation: down .22s ease; }
@keyframes down { from { transform: translateY(-20px); opacity: 0; } }
.srch__bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; max-width: 900px; width: 100%; margin: 0 auto; }
.srch__f { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.srch__f input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; outline: none; color: var(--ink); }
.srch__r { overflow: auto; padding: 8px 16px 20px; max-width: 900px; width: 100%; margin: 0 auto; display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 6px; border-radius: 16px; }
.srow:hover { background: var(--blush); }
.srow__i { position: relative; width: 56px; height: 68px; border-radius: 12px; overflow: hidden; background: var(--blush); }
.srow__i img, .srow__i .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Картка товару ── */
.pd { display: grid; }
.gal { position: relative; margin-inline: calc(var(--pad) * -1); }
.gal__t { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__t::-webkit-scrollbar { display: none; }
.gal__i { position: relative; aspect-ratio: 4 / 5; scroll-snap-align: start; background: var(--blush); }
.gal__i img, .gal__i .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__dots { position: absolute; bottom: 44px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gal__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,248,245,.6); transition: width .2s; }
.gal__dots span.on { width: 18px; background: var(--milk); }
.gal__top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; z-index: 2; }
.gal__top .ibtn { background: rgba(255,248,245,.85); backdrop-filter: blur(10px); }
.gal__top .ibtn[aria-pressed="true"] .ic { fill: var(--ink); }
.pinfo { position: relative; z-index: 3; margin: -28px calc(var(--pad) * -1) 0; padding: 24px var(--pad) 0; background: var(--milk); border-radius: var(--r-lg) var(--r-lg) 0 0; display: grid; gap: 14px; }
.pinfo__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pinfo h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.08; letter-spacing: -.015em; }
.pinfo__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 22px; font-weight: 600; }
.pinfo__price s { margin-right: 8px; font-size: 15px; font-weight: 400; color: var(--muted); }
.opt__h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 8px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 64px; height: 48px; padding: 0 16px; border-radius: var(--r-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }
.size[aria-pressed="true"] { background: var(--ink); color: var(--milk); box-shadow: none; }
.size small { display: block; font-size: 10px; font-weight: 500; opacity: .7; line-height: 1; }
.swatch { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.swatch b { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23,19,22,.12); }
.buy { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.buybar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab) + 18px + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 24px; background: rgba(255,248,245,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px -10px rgba(23,19,22,.35); transform: translateY(160%); transition: transform .25s; }
.buybar.on { transform: none; }
.buybar__p { font-weight: 600; font-size: 16px; line-height: 1.2; }
.buybar__p small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.buybar .btn { margin-left: auto; }
@media (min-width: 1100px) { .buybar { display: none; } }
.acc { border-radius: var(--r); background: var(--card); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border: 0; }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; cursor: pointer; font-weight: 600; font-size: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { width: 18px; height: 18px; transition: transform .2s; }
.acc details[open] summary .ic { transform: rotate(45deg); }
.acc__b { padding: 0 18px 18px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.55; }
.acc__b p { margin: 0 0 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fact { background: var(--card); border-radius: var(--r-sm); padding: 12px; font-size: 12px; display: grid; gap: 6px; }
.fact .ic { width: 20px; height: 20px; color: var(--plum); }
@media (min-width: 1100px) {
  .pd { grid-template-columns: 1.25fr 1fr; gap: 48px; padding-top: 24px; align-items: start; }
  .gal { margin: 0; }
  .gal__t { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; gap: 10px; overflow: visible; }
  .gal__i { border-radius: var(--r); overflow: hidden; }
  .gal__i:first-child { grid-column: span 2; }
  .gal--one .gal__t { grid-template-columns: 1fr; }
  .gal__dots { display: none; }
  .gal__top { justify-content: flex-end; }
  .gal__top .back { display: none; }
  .pinfo { position: sticky; top: 96px; margin: 0; padding: 0; background: none; }
  .pinfo h1 { font-size: 40px; }
}

/* ── Кошик ── */
.ck { display: grid; gap: 14px; padding-top: 16px; }
.box { background: var(--card); border-radius: var(--r); padding: 18px; }
.box h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.box h2 .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blush); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.ci { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border: 0; padding-bottom: 0; }
.ci__i { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--blush); }
.ci__i img, .ci__i .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci__n { font-family: var(--serif); font-size: 16px; line-height: 1.25; }
.ci__f { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ci__rm { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ci__rm:hover { background: var(--blush); color: var(--ink); }
.timer { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--milk); font-size: 14px; }
.timer__r { position: relative; width: 40px; height: 40px; flex: none; }
.timer__r svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.timer__r b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.fld { display: grid; gap: 6px; }
.fld label { font-size: 12px; font-weight: 600; color: var(--muted); }
.inp { height: 52px; width: 100%; padding: 0 16px; border-radius: var(--r-sm); border: 0; background: var(--milk); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 16px; color: var(--ink); }
.inp:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.inp::placeholder { color: #9a8d93; }
.fld--err .inp { box-shadow: inset 0 0 0 2px var(--err); }
.fld__e { font-size: 12.5px; color: var(--err); }
.two { display: grid; gap: 12px; }
@media (min-width: 768px) { .two { grid-template-columns: 1fr 1fr; } }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; background: var(--milk); }
.opt input { appearance: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #a89aa1; margin: 0; flex: none; display: grid; place-items: center; }
.opt input:checked { box-shadow: inset 0 0 0 6px var(--ink); }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--card); }
.opt__t { flex: 1; font-size: 14px; font-weight: 600; }
.opt__t small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.opt__p { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sum__r { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.sum__t { font-size: 20px; font-weight: 600; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
@media (min-width: 1100px) { .ck { grid-template-columns: 1fr 400px; gap: 20px; align-items: start; } .ck__side { position: sticky; top: 96px; display: grid; gap: 14px; } }
.done { text-align: center; padding: 48px 0; display: grid; gap: 14px; justify-items: center; max-width: 560px; margin: 0 auto; }
.done__o { width: 88px; height: 88px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; animation: popin .5s cubic-bezier(.2,1.6,.4,1); }
.done__o .ic { width: 38px; height: 38px; stroke-width: 2; }
@keyframes popin { from { transform: scale(.3); opacity: 0; } }

/* ── Кабінет ── */
.prof { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--rose), var(--blush)); margin-top: 16px; }
.prof__a { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--milk); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; flex: none; }
.segc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin: 16px 0; }
.segc a { display: grid; place-items: center; height: 42px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.segc a[aria-current="page"] { background: var(--ink); color: var(--milk); }
.ord { display: grid; gap: 12px; }
.ord__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ord__th { display: flex; gap: 6px; }
.ord__th span { position: relative; width: 56px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--blush); }
.ord__th img, .ord__th .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.track span { height: 4px; border-radius: 2px; background: var(--blush); }
.track span.on { background: var(--ink); }
.track__l { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11.5px; color: var(--muted); }
.addr { display: grid; gap: 12px; }
@media (min-width: 768px) { .addr { grid-template-columns: 1fr 1fr; } .ords { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.addnew { display: grid; place-items: center; gap: 6px; min-height: 140px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.addnew:hover { background: var(--card); color: var(--ink); }

/* ── Інформаційні сторінки ── */
.info { max-width: 760px; padding-top: 16px; }
.info .box { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; }
.info .box p { margin: 0 0 12px; }
table.sz { width: 100%; border-collapse: collapse; font-family: var(--sans); font-style: normal; font-size: 14px; }
.sz th, .sz td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sz th { font-size: 12px; color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }

/* ── Сповіщення ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--milk); font-size: 14px; font-weight: 500; white-space: nowrap; transition: .25s ease; pointer-events: none; max-width: calc(100vw - 24px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--rose); font-weight: 600; }
@media (min-width: 1100px) { .toast { bottom: 28px; } }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.logo--d { display: none; }
.only-dd { display: none; }
@media (min-width: 1100px) { .logo--d { display: inline-block; } .only-m-logo { display: none; } .only-dd { display: block; } }
