/* =========================================================
   Сирена - съвременен онлайн магазин
   Шрифт: Onest · Палитра: бяло / наситено синьо / корал
   ========================================================= */

:root {
  --bg: #ffffff;
  --soft: #f4f6fb;
  --soft-2: #eef1f8;
  --ink: #0b1324;
  --ink-2: #4a5468;
  --muted: #6b7489;
  --line: #e4e8f0;
  --line-2: #d3d9e6;

  --brand: #2f5bea;
  --brand-dark: #1d42c4;
  --brand-soft: #eaf0ff;
  --brand-ink: #ffffff;

  --accent: #ff6b4a;
  --accent-soft: #fff0eb;

  --ok: #15803d;
  --ok-soft: #e8f7ee;
  --warn: #a15c07;
  --warn-soft: #fff6e0;
  --danger: #c62828;
  --danger-soft: #fdecec;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06);
  --shadow: 0 2px 6px rgba(11, 19, 36, .04), 0 12px 32px rgba(11, 19, 36, .08);
  --shadow-lg: 0 24px 60px rgba(11, 19, 36, .18);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--brand);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1240px;
  font-size: 106.25%; /* 17px */
}
@media (min-width: 900px) { :root { font-size: 112.5%; } } /* 18px */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { overflow-x: clip; max-width: 100%; }
@media (min-width: 900px) { html { scroll-padding-top: 150px; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }

/* ---------- анимации ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .3s; }
.bump { animation: pop .45s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 12px 24px;
  font: 600 1rem/1.2 var(--font); letter-spacing: -.005em;
  border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .12s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(47, 91, 234, .25); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 10px 24px rgba(47, 91, 234, .32); transform: translateY(-1px); }
.btn--accent { background: var(--ink); color: #fff; }
.btn--accent:hover { background: #1e2a44; color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--soft); color: var(--ink); }
.btn--light:hover { background: var(--soft-2); color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 1.05rem; padding: 14px 28px; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.is-done { background: var(--ok); box-shadow: 0 6px 16px rgba(21, 128, 61, .25); }
.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- лента отгоре ---------- */
.announce { background: var(--ink); color: #d9def0; font-size: .84rem; overflow: hidden; }
.announce__track { display: flex; justify-content: center; gap: 28px; min-height: 38px; align-items: center; white-space: nowrap; }
.announce span { display: inline-flex; align-items: center; gap: 8px; }
.announce svg { width: 16px; height: 16px; color: #8fb0ff; }
.announce a { color: #fff; font-weight: 600; text-decoration: none; }
@media (max-width: 759px) {
  /* на мобилно съобщенията се сменят едно след друго */
  .announce__track { position: relative; justify-content: center; }
  .announce__track span { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(100%); transition: opacity .5s, transform .5s var(--ease); }
  .announce__track span.is-on { opacity: 1; transform: none; }
}

/* ---------- хедър (mobile first) ---------- */
.header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 19, 36, .07); }
.header__top {
  display: grid; align-items: center; gap: 4px 6px; min-height: 60px;
  grid-template-columns: auto 1fr auto; grid-template-areas: 'menu logo actions' 'search search search';
}
.menu-btn { grid-area: menu; margin-left: -10px; }
.logo { grid-area: logo; display: flex; align-items: center; text-decoration: none; min-width: 0; }
.logo img { height: 34px; width: auto; }
.header__actions { grid-area: actions; display: flex; align-items: center; gap: 2px; }
.search { grid-area: search; position: relative; width: 100%; display: none; padding-bottom: 10px; }
.header.search-open .search { display: block; animation: fadeUp .25s var(--ease); }
.search input[type='search'] {
  width: 100%; min-height: 48px; padding: 10px 84px 10px 46px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--soft); font: 400 16px var(--font); color: var(--ink);
}
.search input[type='search']::placeholder { color: var(--muted); }
.search input[type='search']:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search > svg { position: absolute; left: 17px; top: 24px; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search button { position: absolute; right: 5px; top: 5px; height: 38px; border: 0; border-radius: 999px; padding: 0 16px; background: var(--brand); color: #fff; font: 600 .9rem var(--font); cursor: pointer; }
.search-btn[aria-expanded='true'] { background: var(--brand-soft); color: var(--brand); }
.head-phone { display: none; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 12px; }
.head-phone:hover { background: var(--soft); color: var(--ink); }
.head-phone .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.head-phone .ico svg { width: 20px; height: 20px; }
.head-phone small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.head-phone strong { display: block; font-size: .98rem; line-height: 1.25; }
.call-btn { display: inline-grid; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 0 10px;
  border-radius: 999px; border: 0; background: transparent; color: var(--ink);
  font: 600 .98rem var(--font); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s;
}
.cart-btn:hover { background: var(--soft); color: var(--ink); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn .label { display: none; }
.cart-btn .count {
  position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}
.cart-btn .count[data-zero='true'] { display: none; }
.catnav { display: none; border-top: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-height: 52px; align-items: center; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { flex: none; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.catnav a:hover { background: var(--soft); color: var(--ink); }
.catnav a.is-active { background: var(--ink); color: #fff; }
.catnav .sep { flex: 1; min-width: 12px; }

@media (min-width: 900px) {
  .header__top { grid-template-columns: auto 1fr auto; grid-template-areas: 'logo search actions'; gap: 12px 28px; min-height: 76px; }
  .menu-btn, .search-btn { display: none; }
  .logo img { height: 44px; }
  .search { display: block; max-width: 560px; justify-self: center; padding: 0; }
  .search input[type='search'] { min-height: 50px; }
  .search > svg { top: 50%; }
  .search button { top: 5px; bottom: 5px; height: auto; }
  .catnav { display: block; }
  .cart-btn { border: 1.5px solid var(--line); background: #fff; padding: 6px 16px 6px 12px; min-height: 50px; }
  .cart-btn:hover { border-color: var(--ink); background: #fff; }
  .cart-btn .label { display: inline; }
  .cart-btn .count { top: -6px; left: 26px; right: auto; }
}
@media (min-width: 1100px) {
  .head-phone { display: flex; }
  .call-btn { display: none; }
}

/* ---------- мобилно меню ---------- */
.mnav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 100;
  transform: translateX(-100%); visibility: hidden; transition: transform .32s var(--ease), visibility .32s;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.mnav.is-open { transform: none; visibility: visible; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.mnav__head img { height: 32px; }
.mnav__body { flex: 1; overflow-y: auto; padding: 14px 18px 24px; overscroll-behavior: contain; }
.mnav__title { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 4px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; border-bottom: 1px solid var(--line);
}
.mnav li:last-child a { border-bottom: 0; }
.mnav li a svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.mnav li a:active { background: var(--soft); }
.mnav li a.is-active { color: var(--brand); }
.mnav .mnav__cat img { width: 40px; height: 40px; object-fit: contain; background: var(--soft); border-radius: 10px; padding: 4px; mix-blend-mode: multiply; flex: none; }
.mnav .mnav__cat span { flex: 1; }
.mnav__call { margin-top: 20px; background: var(--brand-soft); border-radius: var(--r-lg); padding: 16px; }
.mnav__call p { margin: 0 0 10px; color: var(--ink-2); font-size: .92rem; }
.mnav__call .btn { width: 100%; }
.mnav__call small { display: block; text-align: center; color: var(--muted); margin-top: 8px; font-size: .82rem; }
.mnav .search { display: block; padding: 0; }
.mnav .search > svg { top: 24px; }
@media (min-width: 900px) { .mnav { display: none; } }

/* ---------- hero слайдер ---------- */
.hero { padding: 24px 0 8px; }
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden;
  display: grid; gap: 20px; padding: 40px 24px 64px; align-items: center; min-height: 460px;
}
@media (min-width: 960px) { .slide { grid-template-columns: 1.1fr .9fr; padding: 60px 64px 72px; min-height: 520px; } }
.slide--blue { background: radial-gradient(900px 420px at 100% 0%, #d8e3ff 0%, transparent 60%), linear-gradient(135deg, #f1f5ff 0%, #e9f0ff 55%, #fdf3ee 100%); }
.slide--peach { background: radial-gradient(900px 420px at 100% 0%, #ffe1d6 0%, transparent 60%), linear-gradient(135deg, #fff7f3 0%, #fff0ea 55%, #eef3ff 100%); }
.slide--mint { background: radial-gradient(900px 420px at 100% 0%, #d4f3e3 0%, transparent 60%), linear-gradient(135deg, #f2fbf6 0%, #e8f7ef 55%, #f1f5ff 100%); }
.slide__text > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.slide.is-active .slide__text > * { opacity: 1; transform: none; }
.slide.is-active .slide__text > *:nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide__text > *:nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide__text > *:nth-child(4) { transition-delay: .24s; }
.slide.is-active .slide__text > *:nth-child(5) { transition-delay: .32s; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .86rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.pill .dot svg { width: 14px; height: 14px; }
.slide h1, .slide h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.slide h1 span, .slide h2 span { color: var(--brand); }
.slide--peach h2 span { color: #d9481f; }
.slide--mint h2 span { color: var(--ok); }
.slide .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 30em; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
.slide__media { position: relative; display: grid; place-items: center; min-height: 260px; }
.slide__media .main { width: min(400px, 86%); aspect-ratio: 1; background: #fff; border-radius: 30px; box-shadow: var(--shadow); display: grid; place-items: center; padding: 26px; transform: scale(.94); opacity: 0; transition: transform .8s var(--ease), opacity .8s; }
.slide.is-active .slide__media .main { transform: none; opacity: 1; }
.slide__media .main img { width: 100%; height: 100%; object-fit: contain; }
.slide__media .tag {
  position: absolute; right: 4%; bottom: 6%; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; animation: floaty 5s ease-in-out infinite;
}
.slide__media .tag strong { display: block; font-size: 1.35rem; }
.slide__media .mini { position: absolute; left: 2%; top: 8%; width: 110px; aspect-ratio: 1; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 10px; animation: floaty 6s ease-in-out infinite .8s; }
.slide__media .mini img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 959px) {
  .slide { min-height: 0; padding: 30px 20px 64px; }
  .slide__media { order: -1; min-height: 0; }
  .slide__media .main { width: 170px; padding: 12px; border-radius: 22px; }
  .slide .pill { margin-bottom: 12px; }
  .slide h1, .slide h2 { font-size: 1.85rem; }
  .slide__media .mini { width: 76px; left: 6%; top: 0; border-radius: 14px; padding: 6px; }
  .slide__media .tag { right: 4%; bottom: 0; padding: 8px 12px; font-size: .75rem; }
  .slide__media .tag strong { font-size: 1.05rem; }
  .slide .lead { font-size: 1rem; }
  .slide__actions .btn { flex: 1 1 auto; }
  .checks { font-size: .85rem; }
}
.slider__nav { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.slider__dots { display: flex; gap: 8px; pointer-events: auto; background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 99px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: var(--line-2); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.slider__dots button[aria-current='true'] { width: 30px; background: var(--ink); }
.slider__arrow {
  pointer-events: auto; position: absolute; bottom: 14px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; display: none; place-items: center; color: var(--ink); transition: transform .15s;
}
.slider__arrow:hover { transform: scale(1.08); }
.slider__arrow svg { width: 20px; height: 20px; }
.slider__arrow--prev { right: 72px; }
.slider__arrow--next { right: 18px; }
@media (min-width: 960px) { .slider__arrow { display: grid; } }
.slider__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand); width: 0; }
.slider__progress.run { width: 100%; transition: width linear; }

/* ---------- предимства ---------- */
.perks { padding: 24px 0 8px; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.perks li { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--soft); transition: transform .2s, background .2s; }
.perks li:hover { transform: translateY(-2px); background: var(--soft-2); }
.perks .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.perks .ico svg { width: 24px; height: 24px; }
.perks strong { display: block; font-size: .96rem; line-height: 1.3; }
.perks span { color: var(--muted); font-size: .84rem; line-height: 1.35; display: block; }
/* На мобилно: безкрайна лента, която тече отдясно наляво без спиране.
   Елементите са дублирани от JS (.is-clone), а лентата се мести с точно половината си ширина. */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.perks .is-clone { display: none; }
@media (max-width: 959px) {
  .perks { overflow: hidden; }
  .perks .wrap { padding: 0; max-width: none; }
  .perks ul { display: flex; width: max-content; gap: 0; animation: marquee 30s linear infinite; }
  .perks li, .perks .is-clone { display: flex; flex: 0 0 auto; width: 250px; margin-right: 12px; }
  .perks ul.reveal-stagger > * { opacity: 1; transform: none; }
}
@media (max-width: 959px) and (prefers-reduced-motion: reduce) {
  .perks ul { animation: none; width: auto; overflow-x: auto; padding: 0 16px; }
  .perks .is-clone { display: none; }
}

/* ---------- секции ---------- */
.section { padding: 56px 0; }
@media (max-width: 759px) { .section { padding: 40px 0; } }
.section--soft { background: var(--soft); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--muted); margin: 6px 0 0; max-width: 40em; }
.eyebrow { display: block; color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.sec-arrows { display: flex; gap: 8px; }
.sec-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: border-color .15s, background .15s; }
.sec-arrows button:hover { border-color: var(--ink); }
.sec-arrows button[disabled] { opacity: .35; cursor: default; }
.sec-arrows svg { width: 18px; height: 18px; }

/* ---------- плъзгащ се ред (категории, препоръчани) ---------- */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding: 4px 2px 10px; margin: 0 -2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.tile {
  width: 220px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--soft);
  border-radius: var(--r-lg); padding: 16px; transition: transform .25s var(--ease), box-shadow .25s, background .25s; border: 0; cursor: pointer; text-align: left; font: inherit;
}
.tile:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); color: var(--ink); }
.tile img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 12px; transition: transform .4s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile strong { font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile strong svg { width: 18px; height: 18px; color: var(--brand); transition: transform .2s; }
.tile:hover strong svg { transform: translateX(4px); }
.tile span { color: var(--muted); font-size: .86rem; }
@media (min-width: 1100px) { .tiles-rail .tile { width: calc((100% - 56px) / 5); } }
@media (max-width: 559px) { .tile { width: 158px; padding: 12px; } .tile strong { font-size: .95rem; } }
.rail .pcard { width: 270px; }
@media (max-width: 559px) { .rail .pcard { width: 70%; } }

/* филтри */
.toolbar { margin-bottom: 20px; min-width: 0; }
/* Категориите се пренасят на нов ред - всички се виждат, без плъзгане. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  flex: none; min-height: 42px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: 600 .94rem var(--font); transition: all .15s;
}
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.chips button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 760px) { .chips button { min-height: 44px; padding: 8px 18px; } }
/* „Подреди“ е в заглавния ред на секцията: на мобилно - цял ред под текста, на десктоп - вдясно. */
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; width: 100%; }
.sort select { flex: 1; min-width: 0; min-height: 44px; padding: 6px 36px 6px 14px; border-radius: 12px; font-size: .95rem; }
@media (min-width: 760px) {
  .sort { width: auto; flex: none; }
  .sort select { flex: none; width: auto; }
}
.result-info { color: var(--muted); font-size: .92rem; margin: -8px 0 18px; }

/* ---------- продуктови карти ---------- */
.grid { display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 559px) { .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; } }
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); position: relative; animation: fadeUp .5s var(--ease) both; container-type: inline-size; }
@container (max-width: 330px) { .add-btn .lbl-long { display: none; } }
.pcard__media {
  position: relative; aspect-ratio: 1; background: var(--soft); border-radius: var(--r-lg); overflow: hidden;
  display: grid; place-items: center;
}
/* Снимката се вписва в 80% от кутията и никога не се уголемява над реалния си размер -
   малките снимки остават остри, а изрязаните по ръба получават въздух около себе си. */
.pcard__media img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 80%; max-height: 80%;
  object-fit: contain; border-radius: 10px; mix-blend-mode: multiply; transition: transform .5s var(--ease), opacity .25s;
}
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__media img.swap { opacity: 0; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: #fff; color: var(--ink); font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.badge--out { background: var(--ink); color: #fff; }
.pcard__body { padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__cat { color: var(--muted); font-size: .8rem; font-weight: 600; }
.pcard__title { font-size: 1.06rem; font-weight: 700; margin: -6px 0 0; line-height: 1.3; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  min-width: 46px; min-height: 42px; padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff;
  font: 600 .92rem var(--font); color: var(--ink); cursor: pointer; position: relative; transition: all .15s;
}
.size:hover { border-color: var(--ink); }
.size[aria-checked='true'] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.size.is-out { color: var(--muted); text-decoration: line-through; }
.fit { font-size: .86rem; color: var(--ink-2); margin: 0; display: flex; align-items: center; gap: 6px; min-height: 1.4em; }
.fit svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.pcard__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 4px; }
.price { white-space: nowrap; }
.price strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price small { color: var(--muted); font-size: .78rem; }
.price--ask { white-space: normal; }
.price--ask strong { font-size: 1rem; }
.add-btn { min-height: 48px; padding: 8px 16px; border-radius: 12px; }
@media (max-width: 559px) {
  .pcard__body { padding-top: 10px; gap: 8px; }
  .pcard__title { font-size: .98rem; }
  .pcard__foot { flex-direction: column; align-items: stretch; }
  .add-btn .lbl-long { display: none; }
  .pcard__media img { max-width: 84%; max-height: 84%; }
  .size { min-width: 40px; min-height: 40px; padding: 5px 9px; font-size: .88rem; }
  .price strong { font-size: 1.2rem; }
  .fit { font-size: .8rem; }
}
.stock-out { color: var(--danger); font-weight: 600; font-size: .9rem; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--soft); border-radius: var(--r-lg); }

/* скелет при зареждане */
.skel { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--soft) 0, var(--soft-2) 50%, var(--soft) 100%); background-size: 800px 100%; animation: shimmer 1.3s linear infinite; }
.skel-card .skel:first-child { aspect-ratio: 1; }
.skel-card .skel + .skel { height: 18px; margin-top: 12px; width: 70%; border-radius: 8px; }
.skel-card .skel:last-child { width: 40%; }

/* брояч */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font: 600 1.3rem/1 var(--font); color: var(--ink); border-radius: 10px; }
.qty button:hover { background: var(--soft); }
.qty button[disabled] { color: var(--line-2); cursor: default; background: transparent; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }

/* ---------- таблица с размери ---------- */
.sizeguide { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .sizeguide { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.sg-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.sg-table th, .sg-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.sg-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .88rem; }
.sg-table tr:last-child td { border-bottom: 0; }
.sg-table td:first-child { font-weight: 800; font-size: 1.15rem; width: 80px; }
.sg-bar { height: 8px; border-radius: 99px; background: var(--brand-soft); position: relative; margin-top: 8px; overflow: hidden; }
.sg-bar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--brand); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.is-in .sg-bar i { transform: scaleX(1); }
.is-in tr:nth-child(2) .sg-bar i { transition-delay: .1s; }
.is-in tr:nth-child(3) .sg-bar i { transition-delay: .2s; }
.is-in tr:nth-child(4) .sg-bar i { transition-delay: .3s; }

/* ---------- стъпки ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps li { background: #fff; border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.steps li::before {
  counter-increment: s; content: '0' counter(s); display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--brand), #8aa4ff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* ---------- ЧЗВ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; font-weight: 400; color: var(--brand); line-height: 1; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; animation: fadeUp .35s var(--ease); }
.faq-wrap { display: grid; gap: 28px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 56px; } }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--r-xl); padding: 36px 24px; color: #fff; display: grid; gap: 22px; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2f5bea, #1d3aa8);
}
.cta::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255, 255, 255, .08); animation: floaty 8s ease-in-out infinite; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; padding: 52px 60px; } }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #dbe4ff; margin: 0; font-size: 1.05rem; }
.cta .btn { background: #fff; color: var(--brand-dark); }
.cta .btn:hover { background: #eef2ff; }

/* ---------- футър ---------- */
.footer { background: var(--ink); color: #b9c1d6; padding: 56px 0 28px; margin-top: 64px; font-size: .95rem; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer__grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer__grid > :first-child { grid-column: auto; } }
.footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer a { color: #e3e8f5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .logo-w { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.footer .logo-w img { height: 34px; }
.footer__bottom { border-top: 1px solid #222c44; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.paylogos { display: flex; gap: 8px; flex-wrap: wrap; }
.paylogos span { background: #1a2440; color: #e3e8f5; border-radius: 8px; padding: 4px 10px; font-weight: 600; font-size: .78rem; }

/* ---------- мобилна лента на количката ---------- */
.cartbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 30px)); transition: transform .35s var(--ease), visibility .35s; visibility: hidden;
}
.cartbar.is-on { transform: none; visibility: visible; }
.cartbar__info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #fff; font: inherit; text-align: left; cursor: pointer; padding: 4px; border-radius: 12px; }
.cartbar__info > span:last-child { min-width: 0; }
.cartbar__ico { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.cartbar__ico svg { width: 22px; height: 22px; }
.cartbar__ico b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); font-size: .72rem; display: grid; place-items: center; }
.cartbar small { display: block; color: #aab4cc; font-size: .78rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar strong { display: block; font-size: 1.08rem; line-height: 1.2; }
.cartbar .btn { flex: none; min-height: 48px; background: #fff; color: var(--ink); padding: 8px 20px; box-shadow: none; }
@media (min-width: 760px) { .cartbar { display: none; } }
body.has-cartbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { body.has-cartbar { padding-bottom: 0; } }

/* ---------- количка (чекмедже) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 19, 36, .45); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; z-index: 100;
  transform: translateX(100%); transition: transform .35s var(--ease), visibility .35s; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
@media (max-width: 559px) {
  .drawer { top: auto; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .drawer::before { content: ''; width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 10px auto 0; flex: none; }
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.25rem; margin: 0; }
.drawer__added { margin: 14px 20px 0; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .92rem; display: flex; gap: 8px; align-items: center; animation: fadeUp .35s var(--ease); }
.drawer__added svg { width: 20px; height: 20px; flex: none; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px max(20px, env(safe-area-inset-bottom)); display: grid; gap: 12px; background: #fff; }
.d-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: fadeUp .3s var(--ease) both; }
.d-item:last-child { border-bottom: 0; }
.d-item img { width: 72px; height: 72px; object-fit: contain; background: var(--soft); border-radius: 12px; padding: 6px; mix-blend-mode: multiply; }
.d-item h3 { font-size: .96rem; margin: 0 0 2px; }
.d-item .sub { color: var(--muted); font-size: .84rem; margin: 0 0 10px; }
.d-item .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.d-item .qty button { width: 38px; height: 38px; font-size: 1.15rem; }
.d-item .lt { font-weight: 700; }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 .88rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.link-btn:hover { color: var(--danger); }
.min-bar { font-size: .9rem; color: var(--ink-2); }
.progress { height: 8px; background: var(--soft-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--brand), #7b98ff); border-radius: 99px; transition: width .5s var(--ease); }
.d-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.15rem; }
.d-total small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.d-empty { text-align: center; padding: 48px 10px; color: var(--muted); }
.d-empty svg { width: 56px; height: 56px; color: var(--line-2); margin: 0 auto 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 120;
  width: min(520px, calc(100% - 32px)); background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px 14px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  transition: transform .3s var(--ease), visibility .3s; visibility: hidden;
}
.toast.is-open { transform: translate(-50%, 0); visibility: visible; }
.toast p { margin: 0; flex: 1 1 200px; font-weight: 500; }
.toast .btn { min-height: 42px; padding: 6px 16px; background: #fff; color: var(--ink); }
.toast .close { background: transparent; border: 0; color: #fff; font-size: 1.5rem; width: 40px; height: 40px; cursor: pointer; border-radius: 10px; }

/* ---------- форми ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.label { display: block; margin-bottom: 10px; }
.field .hint { color: var(--muted); font-size: .85rem; }
input[type='text'], input[type='tel'], input[type='email'], input[type='search'], input[type='number'], input[type='password'], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: 400 1rem var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
@media (max-width: 759px) { input, select, textarea { font-size: 16px !important; } } /* без авто-зуум в iOS */
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234a5468' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa3b5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.has-error input { border-color: var(--danger); }
.field .error { color: var(--danger); font-weight: 600; font-size: .88rem; animation: fadeUp .25s var(--ease); }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

/* радио-карти */
.choice-row { display: grid; gap: 10px; margin-bottom: 22px; grid-template-columns: 1fr 1fr; }
.choice-row--1 { grid-template-columns: 1fr; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer;
  font: 600 1rem var(--font); color: var(--ink); text-align: left; width: 100%; transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--ink); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; line-height: 1.35; }
.choice .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: border-color .15s; }
.choice[aria-checked='true'] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice[aria-checked='true'] .dot { border-color: var(--brand); }
.choice[aria-checked='true'] .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pop .3s var(--ease); }
.choice[aria-disabled='true'] { cursor: not-allowed; background: var(--soft); color: var(--muted); border-style: dashed; }
.choice[aria-disabled='true']:hover { border-color: var(--line-2); }
.choice .soon { margin-left: auto; flex: none; background: var(--warn-soft); color: var(--warn); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.choice .cards { margin-left: auto; display: flex; gap: 4px; flex: none; }
.choice .cards span { font-size: .66rem; font-weight: 800; padding: 3px 6px; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.choice .ctext { flex: 1; min-width: 0; }
.cmark { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.cmark--econt { background: #e3ecff; color: #234fc4; }
.cmark--speedy { background: #ffe5e2; color: #c8231b; }
@media (max-width: 420px) {
  .choice { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; }
  .choice .dot { position: absolute; }
  .choice { position: relative; padding-top: 40px; }
  .choice .dot { top: 12px; left: 14px; }
  .choice .cmark, .choice .soon, .choice .cards { position: absolute; top: 10px; right: 10px; margin: 0; }
  .choice .cmark { width: 28px; height: 28px; font-size: .78rem; }
}

/* ---------- страници ---------- */
.page-head { padding: 18px 0 4px; }
.crumbs { display: none; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
@media (min-width: 760px) { .page-head { padding: 28px 0 6px; } .crumbs { display: block; } }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(1.5rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.stepper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; font-size: .88rem; color: var(--muted); }
.stepper span { display: inline-flex; align-items: center; gap: 8px; }
.stepper b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--ink-2); font-size: .78rem; }
.stepper .on { color: var(--ink); font-weight: 600; }
.stepper .on b { background: var(--brand); color: #fff; }
.stepper .done b { background: var(--ok); color: #fff; }
.stepper i { width: 22px; height: 1.5px; background: var(--line-2); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px 0 40px; }
.checkout > * { min-width: 0; }
@media (min-width: 980px) { .checkout { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; animation: fadeUp .45s var(--ease) both; }
.panel:nth-child(2) { animation-delay: .06s; }
.panel:nth-child(3) { animation-delay: .12s; }
@media (max-width: 559px) { .panel { padding: 18px 16px; border-radius: 18px; } }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel h2 .num { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.panel h2 .num svg { width: 20px; height: 20px; }
.summary { position: sticky; top: 150px; background: var(--soft); border: 0; }
.summary h2 { font-size: 1.15rem; }
.sum-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.sum-lines li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.sum-lines img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.sum-lines .q { color: var(--muted); display: block; font-size: .8rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sum-row--total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 14px; font-size: 1.25rem; font-weight: 800; }
.sum-note { font-size: .84rem; color: var(--muted); margin: 2px 0 0; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .84rem; margin-top: 12px; }
.secure svg { width: 16px; height: 16px; }

.office-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.office-tools input { flex: 1 1 220px; }
.office-tools .btn { flex: 0 0 auto; min-height: 52px; }
@media (max-width: 559px) { .office-tools .btn { flex: 1 1 100%; } }
.office-list { display: grid; gap: 8px; max-height: 440px; overflow-y: auto; padding: 4px; margin: 0 -4px; overscroll-behavior: contain; }
.office {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer;
  font: 400 .95rem var(--font); color: var(--ink); transition: border-color .15s, background .15s; animation: fadeUp .3s var(--ease) both;
}
.office:hover { border-color: var(--ink); }
.office[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.office strong { display: block; font-weight: 600; }
.office .meta { color: var(--muted); font-size: .86rem; display: block; }
.office .far { flex: none; font-weight: 700; color: var(--brand); min-width: 58px; font-size: .88rem; }
.office .kind { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--soft-2); color: var(--ink-2); vertical-align: middle; margin-left: 6px; }
.chosen { background: var(--ok-soft); border: 1.5px solid #b6e2c6; border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; display: flex; gap: 12px; align-items: flex-start; animation: fadeUp .3s var(--ease); }
.chosen svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.chosen p { margin: 0; font-size: .95rem; }
.note { padding: 12px 16px; border-radius: 12px; background: var(--soft); color: var(--ink-2); margin: 0 0 12px; font-size: .94rem; }
.note--warn { background: var(--warn-soft); color: var(--warn); }
.note--err { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.note--ok { background: var(--ok-soft); color: var(--ok); }

.suggest { position: relative; }
.suggest ul {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto; animation: fadeUp .2s var(--ease);
}
.suggest li button { width: 100%; text-align: left; padding: 12px 14px; min-height: 48px; border: 0; background: transparent; font: 1rem var(--font); cursor: pointer; border-radius: 10px; color: var(--ink); }
.suggest li button:hover, .suggest li button:focus { background: var(--brand-soft); }
.suggest li small { color: var(--muted); margin-left: 8px; }

/* количка - страница */
.cart-list { list-style: none; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 20px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); animation: fadeUp .35s var(--ease) both; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 92px; height: 92px; object-fit: contain; background: var(--soft); border-radius: 14px; padding: 8px; mix-blend-mode: multiply; }
.cart-item h3 { font-size: 1.02rem; margin: 0 0 2px; }
.cart-item .sub { color: var(--muted); font-size: .88rem; margin: 0; }
.cart-item .controls { grid-column: 2; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cart-item .line-total { font-size: 1.08rem; font-weight: 700; margin-left: auto; }
@media (max-width: 520px) { .cart-list { padding: 4px 14px; } .cart-item { grid-template-columns: 72px 1fr; } .cart-item img { width: 72px; height: 72px; } .cart-item .controls { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 64px 20px; background: var(--soft); border-radius: var(--r-lg); animation: fadeUp .4s var(--ease); }

.thanks { max-width: 620px; margin: 40px auto; text-align: center; animation: fadeUp .5s var(--ease); }
.thanks .big-ico { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; animation: pop .6s var(--ease) .2s both; }
.thanks .big-ico svg { width: 46px; height: 46px; }
.thanks .box { background: var(--soft); border-radius: var(--r-lg); padding: 22px; margin: 22px 0; text-align: left; }

.spinner { width: 20px; height: 20px; border: 2.5px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.fit--plain { color: var(--muted); }
body.no-scroll .cartbar { transform: translateY(calc(100% + 30px)); visibility: hidden; }
@media (max-width: 759px) { .sec-arrows { display: none; } }

/* ---------- стъпки на поръчката ---------- */
.steps-bar { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 460px; }
.steps-bar--center { margin: 0 auto 28px; }
.steps-bar li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; line-height: 1.25; color: var(--muted); padding: 0 4px; }
.steps-bar li::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.steps-bar li:first-child::before { display: none; }
.steps-bar li.is-done::before, .steps-bar li.is-on::before { background: var(--brand); }
.steps-bar .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--ink-2); font-weight: 700; font-size: .82rem; box-shadow: 0 0 0 4px #fff; }
.steps-bar .dot svg { width: 14px; height: 14px; }
.steps-bar .is-done .dot { background: var(--brand); color: #fff; }
.steps-bar .is-on .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--brand-soft); }
.steps-bar .is-on .txt { color: var(--ink); font-weight: 600; }
.steps-bar .is-done .txt { color: var(--ink-2); }
@media (min-width: 760px) { .steps-bar li { font-size: .86rem; } }
