/* =========================================================
   Цеховик — «шоурум матеріалів»
   Layout: стіна-вітрина зі зразків — плитки категорій як образці,
   картки товарів зі штампом артикулу, фірмова червона стрічка.
   ========================================================= */
:root {
  /* Color */
  --bg: #f5f4f2;          /* світлий мармур */
  --surface: #ffffff;
  --surface-2: #efedea;
  --ink: #1d1a19;         /* графіт */
  --ink-2: #5d5753;
  --line: #e3dfda;
  --red: #b3192f;         /* фірмовий червоний з логотипу */
  --red-deep: #8f1124;
  --red-soft: #fbe9ec;
  --gold: #b48a3c;        /* латунь, як лаврові бейджі каталогу */
  --gold-soft: #f4ecdc;
  --viber: #7360f2;
  --tg: #229ed9;
  --ok: #2f7d4f;
  --shadow: 0 1px 2px rgba(29, 26, 25, .06), 0 8px 24px -12px rgba(29, 26, 25, .18);
  --shadow-lg: 0 24px 60px -20px rgba(29, 26, 25, .35);
  --glass: rgba(255, 255, 255, .86);
  --header-bg: rgba(245, 244, 242, .88);

  /* Type */
  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-script: "Playfair Display", Georgia, serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --container: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151312; --surface: #1f1c1b; --surface-2: #292524; --ink: #f2eeea; --ink-2: #a9a19b; --line: #36312f;
    --red: #e0475c; --red-deep: #c4334a; --red-soft: #3a1b20; --gold: #d6b06a; --gold-soft: #33291a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
    --glass: rgba(31, 28, 27, .9); --header-bg: rgba(21, 19, 18, .86); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151312; --surface: #1f1c1b; --surface-2: #292524; --ink: #f2eeea; --ink-2: #a9a19b; --line: #36312f;
  --red: #e0475c; --red-deep: #c4334a; --red-soft: #3a1b20; --gold: #d6b06a; --gold-soft: #33291a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  --glass: rgba(31, 28, 27, .9); --header-bg: rgba(21, 19, 18, .86); color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::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: 500 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + 32px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: 28px; }
.section-sm { padding-block: 20px 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: .95rem; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .15s ease, background-color .2s, box-shadow .2s, color .2s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px var(--red); }
.btn-red:hover { background: var(--red-deep); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-outline { border: 1.5px solid var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-viber { background: var(--viber); color: #fff; }
.btn-tg:hover, .btn-viber:hover { filter: brightness(1.07); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background-color .2s; position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .ico { width: 24px; height: 24px; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: 6px 0; }
.link-btn:hover { color: var(--ink); }
.link-danger:hover { color: var(--red); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 8px; }
.logo { justify-self: center; display: flex; flex-direction: column; align-items: center; }
.logo-tag { margin-top: -1px; font: italic 600 .78rem/1.1 var(--f-script); color: var(--red); white-space: nowrap; letter-spacing: .01em; }
.logo-heart { font-style: normal; font-size: .9em; }
.logo img { height: 44px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 700; font-family: var(--f-mono); font-size: .92rem; margin-right: 10px; }
.header-phone .ico { color: var(--red); }
.main-nav { display: none; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--red); color: #fff; font: 700 11px/19px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--bg);
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.search-bar { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.search-bar.is-open { display: block; }
.search-inner { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.search-inner > .ico { color: var(--ink-2); }
.search-inner input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1rem; padding: 8px 0; }
.live-results { margin-bottom: 12px; padding: 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: min(60vh, 520px); overflow-y: auto; }
.lr-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.lr-item:hover, .lr-item:focus-visible { background: var(--surface-2); }
.lr-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.lr-text { min-width: 0; display: flex; flex-direction: column; }
.lr-text b { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-text small { color: var(--ink-2); font-size: .76rem; }
.lr-price { font-weight: 800; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lr-empty { padding: 14px; color: var(--ink-2); font-size: .9rem; }
.lr-all { width: 100%; padding: 12px; border-radius: 12px; font-weight: 800; color: var(--red); }
.lr-all:hover { background: var(--red-soft); }

@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; height: 84px; gap: 32px; }
  .logo { order: -1; justify-self: start; }
  .logo img { height: 54px; }
  .logo-tag { font-size: .9rem; }
  .menu-btn { display: none; }
  .main-nav { display: flex; gap: 6px; justify-self: center; }
  .main-nav > a, .nav-drop > a { display: block; padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: .95rem; transition: background-color .2s; }
  .main-nav > a:hover, .nav-drop:hover > a { background: var(--surface-2); }
  .header-phone { display: inline-flex; }
  .nav-drop { position: relative; }
  .nav-drop-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 6px; width: 520px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity .2s, translate .2s, visibility .2s;
  }
  .nav-drop-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
  .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; translate: -50% 0; }
  .nav-drop-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; }
  .nav-drop-menu a .ico { color: var(--red); }
  .nav-drop-menu a:hover { background: var(--surface-2); }
}

/* ---------- Drawers ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 12, 11, .5); backdrop-filter: blur(2px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 90; width: min(420px, 92vw); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer-left { left: 0; padding-left: env(safe-area-inset-left, 0px); animation: slideL .28s cubic-bezier(.2,.8,.2,1); }
.drawer-right { right: 0; padding-right: env(safe-area-inset-right, 0px); animation: slideR .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slideL { from { transform: translateX(-100%); } }
@keyframes slideR { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; }
.drawer-logo { height: 40px; width: auto; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); font-weight: 600; }
.drawer-nav a .ico { color: var(--red); }
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-label { padding: 16px 12px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.drawer-foot { padding: 14px 16px; border-top: 1px solid var(--line); }

/* ---------- Hero slider (scroll-snap: нативний свайп на телефоні) ---------- */
.hero-wrap { padding-top: 12px; }
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); isolation: isolate; }
.hero-track {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.hero-slide { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; max-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; -webkit-user-drag: none; user-select: none; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: scale(1.06); transition: transform 6s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,11,10,.78) 0%, rgba(14,11,10,.45) 48%, rgba(14,11,10,.05) 80%), linear-gradient(0deg, rgba(14,11,10,.55), transparent 45%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 24px 22px 44px; color: #fff; }
.hero-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.55rem, 6.6vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 4px 24px rgba(0,0,0,.35); max-width: 14ch; overflow-wrap: anywhere; }
.hero-ribbon {
  display: inline-block; padding: .3em 1.1em .35em .9em; margin-left: -.2em;
  background: var(--red); color: #fff; font: italic 600 clamp(.95rem, 3.8vw, 1.9rem)/1.15 var(--f-script); max-width: 100%;
  clip-path: polygon(2% 8%, 100% 0, 97% 52%, 100% 100%, 0 92%, 3% 50%); transform: rotate(-2deg);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.hero-feats { display: none; gap: 0; margin-top: 8px; }
.hero-feats > span { display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: .82rem; font-weight: 600; line-height: 1.2; border-left: 2px solid var(--red); }
.hero-feats > span:first-child { padding-left: 0; border-left: 0; }
.hero-feats .ico { width: 28px; height: 28px; opacity: .95; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; z-index: 2; pointer-events: none; }
.hero-dots button { pointer-events: auto; width: 26px; height: 24px; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .3s, background-color .3s; }
.hero-dots button.is-active { width: 40px; }
.hero-dots button.is-active::before { width: 28px; background: var(--red); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.hero-arrow { display: none; }
@media (min-width: 640px) {
  .hero-slide { aspect-ratio: 16 / 8; }
  .hero-content { padding: 40px 48px 56px; }
  .hero-feats { display: flex; }
}
@media (min-width: 1024px) {
  .hero-slide { aspect-ratio: 21 / 8; }
  .hero-content { padding: 56px 88px 64px; }
  .hero-arrow { display: grid; place-items: center; position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); transition: background-color .2s; }
  .hero-arrow:hover { background: var(--red); }
  .hero-prev { left: 20px; } .hero-next { right: 20px; }
}

/* ---------- Contact bar ---------- */
.contact-bar {
  display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr); gap: 6px; margin-top: 14px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.contact-bar.cb-2 { grid-template-columns: 1fr 1fr; }
.cb-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 16px;
  color: #fff; transition: filter .2s, transform .15s; min-width: 0;
}
.cb-btn:hover { filter: brightness(1.08); }
.cb-btn:active { transform: scale(.98); }
.cb-ico { display: grid; place-items: center; flex: none; }
.cb-ico .ico { width: 22px; height: 22px; }
.cb-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.cb-label b { font-weight: 800; font-size: .92rem; white-space: nowrap; }
.cb-label small { font: 500 .72rem/1.3 var(--f-mono); opacity: .85; white-space: nowrap; margin-top: 2px; }
.cb-call { background: linear-gradient(180deg, var(--red), var(--red-deep)); justify-content: flex-start; padding-left: 14px; }
.cb-call .cb-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); }
.cb-call .cb-ico .ico { width: 18px; height: 18px; }
.cb-viber { background: var(--viber); }
.cb-tg { background: var(--tg); }
/* Вузькі телефони: «Подзвонити» на всю ширину, месенджери — під ним */
@media (max-width: 479px) {
  .contact-bar, .contact-bar.cb-2 { grid-template-columns: 1fr 1fr; }
  .cb-call, .cb-2 .cb-btn { grid-column: 1 / -1; }
  .cb-call { justify-content: center; }
  .cb-viber, .cb-tg { min-height: 48px; }
}
@media (min-width: 768px) {
  .contact-bar { border-radius: 999px; padding: 8px; gap: 8px; }
  .cb-btn { border-radius: 999px; min-height: 60px; }
  .cb-label b { font-size: 1rem; }
  .cb-call { justify-content: center; }
}

/* ---------- Category tiles ---------- */
.home-head { margin-bottom: 14px; }
.home-head h1 { font-size: clamp(1.15rem, 4.4vw, 1.75rem); line-height: 1.2; }
.home-head h1 span { display: block; font-family: var(--f-body); font-weight: 600; font-size: .62em; color: var(--ink-2); letter-spacing: 0; margin-top: 4px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .cat-grid { gap: 20px; } }
/* непарна кількість категорій — остання плитка на всю ширину, без порожньої клітинки */
.cat-grid > .cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
@media (min-width: 1024px) { .cat-grid > .cat-card:last-child:nth-child(odd) { aspect-ratio: 32 / 9; } }
.cat-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2);
  aspect-ratio: 4 / 3; max-width: 100%; isolation: isolate; box-shadow: var(--shadow);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,11,10,.35), transparent 55%); z-index: 0; pointer-events: none; }
.cat-card:hover img { transform: scale(1.05); }
.cat-pill {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.35);
}
.cat-ico { display: grid; place-items: center; padding-right: 8px; border-right: 2px solid var(--red); }
.cat-ico .ico { width: 22px; height: 22px; }
.cat-name { flex: 1; min-width: 0; font-weight: 800; font-size: .84rem; line-height: 1.15; }
.cat-arrow { color: var(--red); display: grid; place-items: center; transition: transform .25s; }
.cat-arrow .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.cat-card:hover .cat-arrow { transform: translateX(3px); }
.cat-count {
  position: absolute; top: 10px; right: 10px; z-index: 1; min-width: 30px; padding: 3px 9px; border-radius: 99px;
  background: rgba(20,16,15,.62); color: #fff; font: 600 .75rem/1.4 var(--f-mono); text-align: center; backdrop-filter: blur(6px);
}
@media (max-width: 479px) {
  .cat-pill { left: 6px; right: 6px; bottom: 6px; padding: 7px 6px 7px 10px; gap: 4px; border-radius: 12px; }
  .cat-ico { display: none; }
  .cat-name { font-size: .78rem; overflow-wrap: anywhere; }
  .cat-arrow .ico { width: 16px; height: 16px; }
  .cat-count { top: 8px; right: 8px; }
}
@media (min-width: 640px) {
  .cat-pill { left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; border-radius: 18px; gap: 14px; }
  .cat-ico { padding-right: 14px; }
  .cat-ico .ico { width: 30px; height: 30px; }
  .cat-name { font-size: 1.05rem; }
  .cat-arrow .ico { width: 26px; height: 26px; }
}
@media (min-width: 1024px) { .cat-card { aspect-ratio: 16 / 9; } .cat-name { font-size: 1.2rem; } }

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.perk { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--surface); }
.perk b { display: block; font-size: .98rem; }
.perk span:not(.perk-ico) { display: block; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.perk-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
@media (min-width: 640px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .perks { grid-template-columns: repeat(4, 1fr); } }

/* ---------- About / facts / FAQ ---------- */
.about { display: grid; gap: 20px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 40px; } }
.about-text { min-width: 0; }
.about-text h2 { font-size: clamp(1.2rem, 3.5vw, 1.6rem); margin-bottom: 12px; }
.about-text p { color: var(--ink-2); max-width: 68ch; }
.about-text p + p { margin-top: 10px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts > div { background: var(--surface); padding: 16px; min-width: 0; }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 4vw, 1.25rem); overflow-wrap: anywhere; color: var(--red); font-variant-numeric: tabular-nums; }
.facts dd small { display: block; margin-top: 4px; font: 600 .8rem/1.35 var(--f-body); color: var(--ink-2); }
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.faq-item[open] { border-color: var(--ink-2); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.faq-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--red); transition: transform .25s; }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); max-width: 75ch; }
.faq-a p + p { margin-top: 8px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding-block: 28px 30px; color: #fff; background: var(--ink); isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ink) center/cover no-repeat; background-image: var(--hero-img, none); transform: scale(1.05); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,11,10,.88), rgba(14,11,10,.55)); }
.page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.8rem); display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.title-ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--red); }
.title-ico .ico { width: 28px; height: 28px; }
.lead { margin-top: 10px; max-width: 62ch; color: rgba(255,255,255,.82); font-size: 1rem; }
.hero-facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.9); backdrop-filter: blur(6px); }
.hero-facts b { color: #fff; }
.page-hero-plain { color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero-plain::before, .page-hero-plain::after { display: none; }
.page-hero-plain .lead { color: var(--ink-2); }
.page-hero-plain .crumbs { color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.75); }
.crumbs .ico { width: 14px; height: 14px; opacity: .6; }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: inherit; opacity: .9; }
.crumbs-dark { color: var(--ink-2); margin-bottom: 16px; }
.crumbs-dark span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Chips / toolbar ---------- */
/* Категорії завжди переносяться на новий рядок — нічого не обрізається */
.cat-chips { display: none; flex-wrap: wrap; gap: 8px; padding-top: 2px; margin-bottom: 16px; }
.cat-select { position: relative; margin-bottom: 14px; }
.cat-select summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; list-style: none; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.cat-select summary::-webkit-details-marker { display: none; }
.cat-select .cs-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--red); }
.cat-select .cs-ico .ico { width: 20px; height: 20px; }
.cs-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.cs-text small { font-size: .72rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cs-text b { font-weight: 800; font-size: .98rem; }
.cs-chev { color: var(--ink-2); transition: transform .2s; display: grid; }
.cs-chev .ico { width: 20px; height: 20px; }
.cat-select[open] .cs-chev { transform: rotate(180deg); }
.cs-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -12px rgba(0,0,0,.35);
  max-height: min(70vh, 520px); overflow-y: auto;
}
.cs-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 6px; border-radius: 12px; font-weight: 700; font-size: .92rem; }
.cs-list a:hover { background: var(--surface-2); }
.cs-list a.is-active { background: var(--surface-2); }
.cs-list .cs-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); }
.cs-list .cs-ico .ico { width: 18px; height: 18px; }
.cs-check { margin-left: auto; color: var(--red); display: grid; }
.cs-check .ico { width: 18px; height: 18px; stroke-width: 2.6; }
@media (min-width: 768px) { .cat-select { display: none; } .cat-chips { display: flex; } }
.chip { flex: none; padding: 9px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .86rem; max-width: 100%; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: .9rem; }
.sort-form select { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 9px 34px 9px 14px; font-weight: 600; font-size: .86rem; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.p-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s, border-color .25s; }
.p-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.p-card-media { position: relative; display: block; aspect-ratio: 1 / 1; max-width: 100%; background: var(--surface-2); overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.p-card:hover .p-card-media img { transform: scale(1.05); }
.p-badge {
  position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 9px 4px 8px; border-radius: 8px; background: rgba(20,16,15,.72); color: #f7e7c4; backdrop-filter: blur(6px);
  font: 600 .72rem/1.3 var(--f-mono); letter-spacing: .02em; border: 1px solid rgba(214,176,106,.5);
}
.p-badge::before { content: "№ "; opacity: .6; }
.p-badge-muted { top: auto; bottom: 8px; color: #fff; border-color: transparent; }
.p-badge-muted::before { content: none; }
.p-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px; }
.p-card-title { font-size: .9rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.p-card-title a:hover { color: var(--red); }
.p-card-meta { font: 500 .74rem/1.35 var(--f-mono); color: var(--ink-2); }
.p-card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-weight: 600; color: var(--ink-2); font-size: .78rem; }
.price s { display: block; color: var(--ink-2); font-weight: 600; font-size: .78rem; }
.add-btn { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; transition: background-color .2s, transform .15s; }
.add-btn:hover { background: var(--red-deep); }
.add-btn:active { transform: scale(.92); }
.add-btn .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.add-btn.is-added { background: var(--ok); }
@media (min-width: 640px) { .p-card-body { padding: 16px; } .p-card-title { font-size: 1rem; } .price { font-size: 1.15rem; } .add-btn { width: 44px; height: 44px; } }
.p-scroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(200px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.p-scroll > * { scroll-snap-align: start; }
@media (min-width: 768px) { .p-scroll { grid-auto-columns: minmax(220px, calc(25% - 17px)); } }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-state h2 { font-size: 1.3rem; margin-top: 14px; }
.empty-state p { color: var(--ink-2); max-width: 46ch; margin: 10px auto 18px; }
.empty-state .contact-bar { max-width: 560px; margin-inline: auto; }
.empty-ico { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.empty-ico .ico { width: 34px; height: 34px; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 20px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.gallery { min-width: 0; }
@media (min-width: 900px) { .gallery { position: sticky; top: 100px; } }
.gallery-main { position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); touch-action: pan-y; }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; cursor: zoom-in; }
.gallery-img.is-active { opacity: 1; }
.g-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); color: var(--ink); box-shadow: var(--shadow); z-index: 2; }
.g-prev { left: 10px; } .g-next { right: 10px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button.is-active { border-color: var(--red); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sku { align-self: flex-start; padding: 5px 11px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font: 600 .8rem/1.3 var(--f-mono); }
.product-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 5vw, 2.2rem); line-height: 1.15; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; }
.stock.in { color: var(--ok); } .stock.out { color: var(--gold); }
.stock .ico { width: 18px; height: 18px; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-block: 1px solid var(--line); }
.product-price [data-price] { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--red); font-variant-numeric: tabular-nums; }
.product-price small { color: var(--ink-2); font-weight: 600; }
.product-price s { color: var(--ink-2); }
.variants { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font-weight: 700; font-size: .88rem; margin-bottom: 8px; padding: 0; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .9rem; line-height: 1.25; cursor: pointer; transition: border-color .2s, background-color .2s; }
.variant small { font: 600 .78rem var(--f-mono); color: var(--ink-2); margin-top: 2px; }
.variant input:checked + span { border-color: var(--red); background: var(--red-soft); }
.variant input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-grow { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: center; height: 56px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { color: var(--red); }
.qty input { width: 52px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 1.05rem; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.specs { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.specs > div { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px; padding: 11px 14px; }
.specs > div + div { border-top: 1px solid var(--line); }
.specs dt { color: var(--ink-2); font-size: .88rem; }
.specs dd { margin: 0; font-weight: 700; font-size: .92rem; }
.delivery-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--gold-soft); font-weight: 600; font-size: .9rem; }
.delivery-note .ico { color: var(--gold); width: 24px; height: 24px; }
.product-desc { margin-top: 32px; max-width: 75ch; }
.product-desc h2 { font-size: 1.35rem; margin-bottom: 12px; }
.product-desc p + p { margin-top: 12px; }
.product-desc p { color: var(--ink-2); }
.product-help { margin-top: 32px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.product-help h3 { font-size: 1.15rem; }
.product-help .contact-bar { box-shadow: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,8,8,.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px; animation: fade .2s; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .icon-btn { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); color: #fff; background: rgba(255,255,255,.12); }

/* ---------- Contacts / prose ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: border-color .2s; }
a.contact-card:hover { border-color: var(--red); }
.contact-card b { font-size: 1rem; overflow-wrap: anywhere; }
.cc-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cc-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 8px; }
.cc-viber { background: color-mix(in srgb, var(--viber) 15%, transparent); color: var(--viber); }
.cc-tg { background: color-mix(in srgb, var(--tg) 15%, transparent); color: var(--tg); }
.card-box { margin-top: 20px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.prose { max-width: 80ch; }
.prose h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.02rem; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 1.2em; margin: 8px 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--red); }
.map-box { margin-top: 20px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; max-width: 100%; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.search-page { display: flex; gap: 8px; margin-top: 16px; max-width: 560px; }
.search-page input { flex: 1; min-width: 0; min-height: 52px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 20px; background: var(--surface); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-block: 56px 72px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nf-code { font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 24vw, 10rem); line-height: 1; display: flex; align-items: center; color: var(--ink); letter-spacing: -.04em; }
.nf-o { display: grid; place-items: center; width: .82em; height: .82em; margin: 0 .04em; border-radius: 50%; background: var(--red); color: #fff; }
.nf-o .ico { width: 58%; height: 58%; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nf h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
.nf p { color: var(--ink-2); max-width: 52ch; }
.nf .search-page { width: 100%; justify-content: center; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; gap: 28px; padding-block: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { height: 52px; width: auto; }
.footer-tagline { font: italic 600 1.2rem var(--f-script); color: var(--red); margin: 12px 0 6px; }
.site-footer h4 { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.footer-links, .footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-weight: 600; font-size: .94rem; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--red); }
.footer-contacts li { display: flex; align-items: center; gap: 10px; }
.footer-contacts .ico { color: var(--red); width: 18px; height: 18px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.soc { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); transition: background-color .2s, color .2s; }
.soc:hover { background: var(--ink); color: var(--bg); }
.soc-viber { color: var(--viber); } .soc-tg { color: var(--tg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px 22px; border-top: 1px solid var(--line); font-size: .82rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--red); }

/* ---------- Cart drawer ---------- */
.cart-drawer { width: min(440px, 100vw); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 16px; }
.cart-empty { text-align: center; padding: 48px 12px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ink-2); }
.cart-empty-ico { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.cart-empty-ico .ico { width: 36px; height: 36px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; align-items: start; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.ci-title { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.ci-title a:hover { color: var(--red); }
.ci-var { font: 500 .76rem var(--f-mono); color: var(--ink-2); margin-top: 2px; }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ci-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; height: 34px; }
.ci-qty button { width: 32px; height: 100%; display: grid; place-items: center; }
.ci-qty button .ico { width: 16px; height: 16px; }
.ci-qty input { width: 38px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: .9rem; -moz-appearance: textfield; }
.ci-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ci-sum { font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ci-del { color: var(--ink-2); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.ci-del:hover { color: var(--red); background: var(--red-soft); }
.ci-del .ico { width: 18px; height: 18px; }
.cart-foot { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart-total strong { font-family: var(--f-display); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.cart-extra { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.cart-extra summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: .88rem; }
.cart-extra label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.cart-extra input, .cart-extra textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); color: var(--ink); font-weight: 500; font-size: .95rem; resize: vertical; }
.cart-hint { font-size: .8rem; color: var(--ink-2); line-height: 1.45; }
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send-grid:has(> :only-child) { grid-template-columns: 1fr; }
.send-grid .btn { min-height: 52px; }
.cart-foot .link-btn { justify-content: center; }

/* Floating cart */
.fab-cart {
  position: fixed; z-index: 70; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 18px; border-radius: 99px;
  background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 14px 30px -10px var(--red); animation: pop .35s cubic-bezier(.2,1.4,.4,1);
}
.fab-cart .ico { width: 24px; height: 24px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (min-width: 1024px) { .fab-cart { display: none; } }

/* Toast */
.toast {
  position: fixed; z-index: 130; left: 50%; top: calc(80px + env(safe-area-inset-top, 0px)); translate: -50% 0;
  max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; text-align: center;
}
@keyframes toastIn { from { opacity: 0; translate: -50% -10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
