/* Reloaders витрина — ръчен, mobile-first CSS. Тема през --primary (branding). */
:root {
  --primary: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --ok: #16a34a;
  --warn: #d97706;
  --out: #dc2626;
  --radius: 10px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }

.sf-muted { color: var(--muted); }
.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font-size: .92rem; font-family: inherit; cursor: pointer;
  text-align: center;
}
.sf-btn:hover { color: #fff; filter: brightness(.95); }
.sf-btn[disabled] { background: #cbd5e1; cursor: not-allowed; }
.sf-btn-lg { padding: 13px 26px; font-size: 1rem; }

/* --- Header --- */
/* z-index над overlay-я (50): drawer-ът е дете на хедъра (stacking context) → иначе
   overlay-ят оцветяваше и менюто. Сега хедърът+drawer-ът стоят над затъмнението. */
.sf-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.sf-header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
}
.sf-logo { display: flex; align-items: center; }
.sf-logo-text { font-weight: 800; font-size: 1.3rem; letter-spacing: .5px; }
.sf-logo img { height: 40px; width: auto; }
.sf-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sf-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  position: relative; border-radius: 8px;
}
.sf-icon:hover { background: var(--soft); color: var(--primary); }
.sf-cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.sf-lang { display: flex; gap: 2px; margin-left: 4px; }
.sf-lang a { padding: 4px 7px; border-radius: 6px; font-size: .8rem; color: var(--muted); }
.sf-lang a.active { background: var(--primary); color: #fff; }
.sf-burger { border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 6px; display: inline-flex; }
.sf-search { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 14px 12px; display: flex; gap: 8px; }
.sf-search input { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }

/* Live autocomplete dropdown */
.sf-suggest { position: absolute; top: 100%; left: 14px; right: 14px; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sf-suggest-list { list-style: none; margin: 0; padding: 4px; }
.sf-suggest-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; }
.sf-suggest-list a:hover { background: var(--soft); }
.sf-suggest-img { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; }
.sf-suggest-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sf-suggest-title { flex: 1; font-size: .9rem; line-height: 1.3; }
.sf-suggest-price { white-space: nowrap; font-size: .9rem; }
.sf-suggest-price s { color: var(--muted); font-size: .8rem; margin-right: 4px; }
.sf-suggest-all { display: block; text-align: center; padding: 12px; font-weight: 700; color: var(--primary); border-top: 1px solid var(--line); }
.sf-suggest-all:hover { background: var(--soft); }
.sf-suggest-empty { padding: 16px; text-align: center; color: var(--muted); }

/* Навигация — off-canvas на мобилно, ред на десктоп */
.sf-nav {
  position: fixed; top: 0; left: 0; z-index: 60; width: 270px; max-width: 82vw; height: 100%;
  background: #fff; box-shadow: 2px 0 24px rgba(0,0,0,.15); padding: 64px 8px 20px;
  transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sf-nav.open { transform: translateX(0); }
.sf-nav a { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.sf-nav a:hover { background: var(--soft); }
.sf-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .28); animation: sf-fade .18s ease; }
@keyframes sf-fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Layout --- */
.sf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 16px 14px 40px; }
.sf-layout { display: block; }
.sf-content { min-width: 0; }
.sf-side { margin-bottom: 18px; }
.sf-side-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: var(--soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-weight: 700; font-family: inherit; font-size: .95rem;
  cursor: pointer; margin-bottom: 10px; color: var(--ink);
  /* Остава закачен под хедъра при скрол → филтрите винаги достъпни на мобилно. */
  position: sticky; top: 60px; z-index: 25; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.sf-side-toggle:hover { border-color: var(--primary); color: var(--primary); }
.sf-side[data-side] { display: none; }
.sf-side.open { display: block; }

/* --- Категориен блок --- */
.sf-cats { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sf-cats-title { margin: 0; padding: 12px 14px; background: var(--soft); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sf-cats ul { list-style: none; margin: 0; padding: 0; }
.sf-cats > ul > li { border-top: 1px solid var(--line); }
.sf-cats > ul > li > a, .sf-cats summary { display: block; padding: 11px 14px; cursor: pointer; }
.sf-cats summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sf-cats summary::-webkit-details-marker { display: none; }
.sf-cats summary::after { content: "▾"; color: var(--muted); font-size: .8rem; }
.sf-cats details[open] summary::after { content: "▴"; }
.sf-cats details ul li a { display: block; padding: 8px 14px 8px 26px; color: var(--muted); font-size: .92rem; }
.sf-cats details ul li a:hover { color: var(--primary); }
/* Активна категория: избраната е удебелена + в основния цвят; активната главна е леко подчертана. */
.sf-cats a.is-current { color: var(--primary); font-weight: 700; }
.sf-cats > ul > li.is-active > details > summary { background: var(--soft); }

/* --- Филтри --- */
.sf-filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; }
.sf-filter-group { border: 0; margin: 0 0 12px; padding: 0; }
.sf-filter-group legend { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px; }
.sf-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .92rem; cursor: pointer; }
/* Бутонът „Филтрирай" е само за мобилно (на десктоп филтрите се прилагат веднага). */
.sf-filter-apply { width: 100%; margin-top: 4px; }
.sf-loading { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* --- USP барове --- */
.sf-usp { display: grid; grid-template-columns: 1fr; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; }
.sf-usp-item { display: flex; gap: 12px; align-items: center; }
.sf-usp-icon { color: var(--primary); flex-shrink: 0; }
.sf-usp-title { font-weight: 700; font-size: .82rem; letter-spacing: .03em; }
.sf-usp-text { color: var(--muted); font-size: .85rem; }

/* --- Секции / заглавия --- */
.sf-section-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; padding-bottom: 8px; border-bottom: 2px solid var(--line); margin: 26px 0 16px; }
.sf-listing-head h1 { font-size: 1.5rem; }
.sf-lead { color: var(--muted); }
.sf-brand-head { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; margin-bottom: 20px; }
.sf-brand-logo { max-width: 180px; }
.sf-brand-logo img { width: 100%; object-fit: contain; }
.sf-brand-head h1 { font-size: 1.6rem; }
@media (min-width: 640px) { .sf-brand-head { grid-template-columns: 180px 1fr; } }
.sf-home-section { margin-bottom: 14px; }
.sf-section-all { margin-left: auto; font-size: .82rem; font-weight: 400; color: var(--primary); text-transform: none; letter-spacing: 0; }

/* --- Продуктов грид + карта --- */
.sf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sf-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.sf-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
/* 4/3 вместо квадрат → по-малко празно поле за широки снимки; badge-ът е върху снимката. */
.sf-card-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.sf-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sf-noimg { color: var(--muted); font-size: .8rem; }
.sf-card-title { font-size: .9rem; font-weight: 600; line-height: 1.3; min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-badge-sale { position: absolute; top: 6px; left: 6px; background: var(--out); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 20px; z-index: 2; }
.sf-stock { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sf-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sf-dot.in { background: var(--ok); }
.sf-dot.pre { background: var(--warn); }
.sf-dot.out { background: var(--out); }
.sf-price { font-size: 1.05rem; margin-top: auto; }
.sf-price s { color: var(--muted); font-size: .85rem; font-weight: 400; margin-right: 4px; }
.sf-price b { color: var(--ink); }
.sf-card-btn { width: 100%; margin-top: 4px; }

/* --- Тулбар / breadcrumb / пейджър --- */
.sf-crumb { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.sf-crumb a:hover { color: var(--primary); }
.sf-crumb span { margin: 0 4px; }
.sf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.sf-count { color: var(--muted); font-size: .88rem; }
.sf-sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.sf-sort select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.sf-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.sf-pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 24px 0 0; }
.sf-page { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.sf-page.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sf-page-gap { min-width: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }

/* --- PDP --- */
.sf-pdp { display: grid; grid-template-columns: 1fr; gap: 20px; }
/* Без форсиран квадрат — контейнерът се свива до реалното съотношение на снимката
   (широките вече не оставят голямо празно поле горе/долу). */
.sf-pdp-main { border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 12px; min-height: 180px; }
.sf-pdp-main img { max-height: 520px; max-width: 100%; object-fit: contain; }
.sf-pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sf-thumb { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; cursor: pointer; }
.sf-thumb.active { border-color: var(--primary); }
.sf-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sf-pdp-info h1 { font-size: 1.5rem; }
.sf-rating { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }
.sf-rating span { color: var(--muted); font-size: .82rem; }
.sf-rating-empty { color: #cbd5e1; }  /* сиви празни звезди — още няма оценки */

/* PDP ревюта (в таба) */
.sf-review-view { border-top: 1px solid var(--line); padding: 14px 0; }
.sf-review-view:first-child { border-top: 0; }
.sf-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sf-review-stars { color: #f59e0b; letter-spacing: 1px; }
.sf-review-head time { color: var(--muted); font-size: .8rem; }
.sf-review-reply { margin-top: 6px; padding: 8px 12px; background: var(--soft); border-radius: 8px; font-size: .9rem; }

/* Публична форма за ревю */
.sf-review-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.sf-review-prod { font-weight: 700; margin-bottom: 6px; }
.sf-review-item textarea { width: 100%; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.sf-stars-pick { display: inline-flex; gap: 3px; font-size: 1.7rem; cursor: pointer; }
.sf-star { color: #cbd5e1; line-height: 1; }
.sf-star input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-star.on { color: #f59e0b; }
.sf-pdp-price { font-size: 1.7rem; font-weight: 700; margin: 8px 0; }
.sf-pdp-price s { color: var(--muted); font-size: 1.1rem; font-weight: 400; margin-right: 8px; }
.sf-pdp-price .sf-variation { font-size: 1rem; font-weight: 400; padding: 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.sf-pdp-stock { margin: 8px 0 16px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sf-pdp-buy { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.sf-qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sf-qty button { width: 40px; border: 0; background: var(--soft); font-size: 1.2rem; cursor: pointer; }
.sf-qty input { width: 52px; border: 0; text-align: center; font-size: 1rem; }
/* Махаме нативните спинъри — остават само големите −/+ бутони. */
.sf-qty input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.sf-qty input[type="number"]::-webkit-outer-spin-button,
.sf-qty input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sf-fav { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0; font-size: .9rem; }
.sf-fav:hover { color: var(--out); }
.sf-fav:hover svg { fill: var(--out); stroke: var(--out); }
.sf-fav.is-fav { color: var(--out); }
.sf-fav.is-fav svg { fill: var(--out); stroke: var(--out); }

/* --- Вход/регистрация --- */
.sf-auth { max-width: 420px; margin: 0 auto; }
.sf-auth h1 { text-align: center; }
.sf-auth .sf-btn-lg { width: 100%; }
.sf-auth-alt { text-align: center; margin-top: 14px; color: var(--muted); }
.sf-auth-alt a { color: var(--primary); font-weight: 600; }

/* --- Профил --- */
.sf-account { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sf-account-nav { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; align-self: start; }
.sf-account-user { font-weight: 700; padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sf-account-nav a { padding: 10px 12px; border-radius: 8px; }
.sf-account-nav a:hover { background: var(--soft); }
.sf-account-nav a.active { background: var(--primary); color: #fff; }
.sf-account-nav button { text-align: left; background: transparent; border: 0; color: var(--out); padding: 10px 12px; cursor: pointer; font-size: 1rem; font-family: inherit; }
.sf-acc-table { width: 100%; border-collapse: collapse; }
.sf-acc-table th { text-align: left; font-size: .78rem; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 8px; }
.sf-acc-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.sf-account-pass { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 900px) { .sf-account { grid-template-columns: 240px 1fr; } }
.sf-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; font-size: .9rem; }
.sf-meta dt { color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .03em; }
.sf-meta dd { margin: 0; }

/* Табове (описание/ревюта) */
.sf-tabs { margin-top: 30px; }
.sf-tabs-strip { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.sf-tab { background: transparent; border: 0; padding: 12px 16px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.sf-tab.active { color: var(--ink); border-bottom-color: var(--primary); }
.sf-tab-panel { display: none; padding: 18px 2px; }
.sf-tab-panel.active { display: block; }
.sf-tab-panel img { display: inline; }

.sf-related { margin-top: 20px; }

/* --- PDP lightbox --- */
.sf-pdp-main img { cursor: zoom-in; }
.sf-lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); animation: sf-fade .15s ease; }
.sf-lightbox[hidden] { display: none; }
.sf-lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; user-select: none; }
.sf-lb-close, .sf-lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.sf-lb-close:hover, .sf-lb-nav:hover { background: rgba(255,255,255,.25); }
.sf-lb-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.sf-lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.4rem; line-height: 1; }
.sf-lb-prev { left: 12px; }
.sf-lb-next { right: 12px; }
.sf-lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .8; }

/* --- Група (главен продукт) --- */
.sf-group-head { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; margin-bottom: 16px; }
.sf-group-img { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; max-width: 260px; }
.sf-group-desc { margin: 10px 0 6px; }
.sf-group-head .sf-variation { padding: 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; max-width: 360px; margin-top: 6px; }
@media (min-width: 700px) { .sf-group-head { grid-template-columns: 260px 1fr; } }

/* --- Footer --- */
.sf-footer { background: #1f2430; color: #cbd5e1; margin-top: 40px; }
.sf-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 30px 14px; display: grid; grid-template-columns: 1fr; gap: 22px; }
.sf-footer h3 { color: #fff; font-size: .95rem; }
.sf-footer a:hover { color: #fff; }
.sf-footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; }
.sf-social { display: flex; gap: 12px; }
.sf-footer-bottom { border-top: 1px solid #2c3342; text-align: center; padding: 14px; color: #94a3b8; }

/* --- Бутон-контур --- */
.sf-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.sf-btn-ghost:hover { background: var(--soft); color: var(--ink); filter: none; }

/* --- Грешки --- */
.sf-errors { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }

/* --- Количка --- */
.sf-cart-page { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sf-cart-table { width: 100%; border-collapse: collapse; }
.sf-cart-table thead th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 8px; }
.sf-cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sf-cart-prod { display: flex; align-items: center; gap: 12px; }
.sf-cart-prod img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.sf-cart-x button { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.sf-cart-x button:hover { color: var(--out); }
.sf-cart-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; }
.sf-cart-summary h2 { font-size: 1.1rem; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sf-cart-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.sf-cart-row.sf-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; }
.sf-cart-note { font-size: .8rem; margin: 6px 0 14px; }
.sf-cart-checkout { width: 100%; }
.sf-cart-empty { text-align: center; padding: 50px 0; color: var(--muted); display: grid; gap: 14px; justify-items: center; }

/* --- Checkout --- */
.sf-checkout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sf-co-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.sf-co-group legend { font-weight: 700; padding: 0 6px; }
.sf-field { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.sf-field-static { margin-bottom: 16px; }
.sf-field-static .sf-field-label { display: block; }
.sf-field-static .sf-field-value { margin-top: 4px; font-size: 1rem; color: var(--ink); font-weight: 600; }
.sf-field input, .sf-field textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-family: inherit; color: var(--ink); }

/* --- Блог --- */
.sf-blog-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.sf-blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sf-blog-img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--soft); }
.sf-blog-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-blog-date { color: var(--muted); font-size: .78rem; padding: 10px 14px 0; }
.sf-blog-title { font-weight: 700; font-size: 1rem; line-height: 1.3; padding: 4px 14px; }
.sf-blog-excerpt { color: var(--muted); font-size: .88rem; padding: 0 14px 14px; margin: 0; }
/* Четивен лейаут (блог пост): без сайдбар → центрирана колона, не лепната вляво. */
.sf-layout.sf-reading .sf-content { max-width: 880px; margin-inline: auto; }
.sf-layout.sf-reading .sf-post { max-width: none; }
.sf-post { max-width: 820px; }
.sf-post h1 { font-size: 1.7rem; }
.sf-post .sf-blog-date { padding: 0; }
.sf-post-img { margin: 14px 0; border-radius: var(--radius); overflow: hidden; }
.sf-post-img img { width: 100%; object-fit: cover; }
.sf-post-body { line-height: 1.7; }
.sf-post-body img { max-width: 100%; border-radius: 8px; }

/* Home сайдбар: последно от блога */
.sf-side-blog { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 14px; overflow: hidden; }
.sf-side-blog ul { list-style: none; margin: 0; padding: 0; }
.sf-side-blog li { border-top: 1px solid var(--line); }
.sf-side-blog a { display: flex; gap: 10px; padding: 10px 12px; align-items: center; }
.sf-side-blog a:hover { background: var(--soft); }
.sf-side-blog img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sf-side-blog-title { display: block; font-size: .85rem; font-weight: 600; line-height: 1.3; }
.sf-side-blog time { color: var(--muted); font-size: .72rem; }

/* --- Контакти --- */
.sf-contacts { display: grid; grid-template-columns: 1fr; gap: 24px; }
.sf-contacts-form h2 { font-size: 1.15rem; }
.sf-notice-ok { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; border-radius: 8px; padding: 14px 16px; }
/* reCAPTCHA v3 плаващият бадж — скрит (както в легасито). Забележка: Google ToS иска
   баджът ИЛИ текстова бележка да се вижда; скриваме и двете по изрично желание. */
.grecaptcha-badge { display: none !important; }

@media (min-width: 640px) {
  .sf-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-contacts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) { .sf-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.sf-radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; padding: 6px 0; cursor: pointer; }
.sf-co-delivery { margin-bottom: 12px; }
.sf-autocomplete { position: relative; }
.sf-ac-results { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.sf-ac-item { padding: 9px 12px; cursor: pointer; font-size: .9rem; }
.sf-ac-item:hover { background: var(--soft); }
.sf-co-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .9rem; border-bottom: 1px solid #f1f1f1; }

/* --- Потвърждение --- */
.sf-confirm { max-width: 640px; margin: 0 auto; text-align: center; padding: 20px 0; }
.sf-confirm-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.sf-confirm-box { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.sf-confirm-box .sf-section-title { margin-top: 0; }

/* --- Тултип (добавено в количката) --- */
.sf-toast { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 320px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 16px; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.sf-toast.show { opacity: 1; transform: translateY(0); }
.sf-toast-x { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 1.2rem; color: var(--muted); cursor: pointer; }
.sf-toast-body { font-size: .9rem; margin: 4px 30px 12px 0; }
.sf-toast-actions { display: flex; gap: 8px; }
.sf-toast-actions .sf-btn { flex: 1; }

/* =================== Tablet =================== */
@media (min-width: 640px) {
  .sf-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sf-usp { grid-template-columns: repeat(3, 1fr); }
  .sf-footer-inner { grid-template-columns: repeat(3, 1fr); }
}

/* =================== Desktop =================== */
@media (min-width: 1024px) {
  .sf-burger { display: none; }
  .sf-nav {
    position: static; width: auto; max-width: none; height: auto; padding: 0;
    transform: none; box-shadow: none; flex-direction: row; align-items: center;
    gap: 2px; overflow: visible; margin-left: 10px;
  }
  .sf-nav a { padding: 8px 12px; font-size: .9rem; }
  .sf-overlay { display: none !important; }
  .sf-layout.has-side { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
  .sf-side-toggle { display: none; }
  .sf-side[data-side] { display: block; }
  .sf-filter-apply { display: none; }
  .sf-grid { grid-template-columns: repeat(4, 1fr); }
  .sf-pdp { grid-template-columns: 1fr 1fr; gap: 34px; }
  .sf-cart-page { grid-template-columns: 1fr 320px; }
  .sf-checkout { grid-template-columns: 1fr 340px; align-items: start; }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .sf-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Login модал --- */
body.sf-modal-open { overflow: hidden; }
.sf-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.sf-modal[hidden] { display: none; }
.sf-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); }
.sf-modal-box { position: relative; z-index: 1; width: 100%; max-width: 440px; background: #fff; border-radius: 12px; padding: 28px 28px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sf-modal-x { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.sf-modal-x:hover { color: var(--ink); }
.sf-modal-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.sf-modal-tab { padding: 0 2px 10px; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sf-modal-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
a.sf-modal-tab:hover { color: var(--primary); }
.sf-field .req { color: #dc2626; }

/* --- Social login бутони (модал + login/register страници) --- */
.sf-social-divider { display: flex; align-items: center; text-align: center; color: var(--muted); font-size: .85rem; margin: 20px 0 14px; }
.sf-social-divider::before, .sf-social-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sf-social-divider span { padding: 0 12px; }
.sf-social { display: flex; flex-direction: column; gap: 10px; }
.sf-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.sf-social-btn:hover { color: #fff; opacity: .92; }
.sf-social-google { background: #db4437; }
.sf-social-facebook { background: #1877f2; }

/* --- Checkout: приемане на общи условия --- */
.sf-terms { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.sf-terms input { margin-top: 3px; flex-shrink: 0; }
.sf-terms a { color: var(--primary); text-decoration: underline; }
.sf-terms .req { color: #dc2626; border: 0; text-decoration: none; }
.sf-cart-checkout[disabled] { background: #cbd5e1; cursor: not-allowed; }

/* --- Back-in-stock (PDP) --- */
.sf-bis { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.sf-bis-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.sf-bis-row { display: flex; gap: 8px; }
.sf-bis-row input { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }

/* --- Cookie consent банер (порт на легаси _cookie-banner) --- */
.sf-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 46px 14px 16px; background: #2b2f36; color: #e5e7eb;
  font-size: .9rem; box-shadow: 0 -2px 12px rgba(0,0,0,.2); }
.sf-cookie-text { max-width: 900px; }
.sf-cookie-ok { flex: none; }
.sf-cookie-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #cbd5e1; font-size: 1.5rem; line-height: 1;
  cursor: pointer; padding: 4px 8px; }
.sf-cookie-x:hover { color: #fff; }
