/* ============================================================
   Kokona Premium Online Store — Styles
   Reuses CSS variables from main site style.css
   ============================================================ */

/* ── CSS Variables (mirror main site) ── */
:root {
  /* ⭐⭐ ЦВЕТОВЕТЕ И ШРИФТОВЕТЕ НЕ СЕ ДЕФИНИРАТ ТУК (#684, Р-267). Стойностите им са в базата (`theme_config`),
   * менят се от рут таблото и излизат в `<style id="tema-tokeni">` в `<head>` на всяка страница — вж.
   * `includes/theme.php`. Листът ги ПОЛЗВА по роля (`var(--accent-action)`), не ги дефинира; коментарите долу
   * описват ролята на токена и мерките на контраста, а стойностите са в `theme_config`. Тук остава само
   * подредбата: сенки, радиуси, преходи, височина на лентата. */


  

  

  

  /* ⛔ СИВИТЕ ДО --gray-500 НЕ СА ЗА ТЕКСТ. Мерено срещу трите фона, върху които
     магазинът реално пише (бяло, --gray-50 #fafafa на обобщенията, --accent-50
     #fff5f8 на избрания вариант), праг 4.5:1 за текст:

         текст:      --gray-400  --gray-500  --gray-600  --gray-700
         бяло             1.88        2.68        4.61        6.19
         #fafafa          1.80        2.57        4.41 ✗      5.93
         #fff5f8          1.76        2.51        4.32 ✗      5.80

     ⚠️ Оттук следва нещо, което лесно се пропуска: --gray-600 минава САМО на
     бяло. Същият надпис, преместен в сивото обобщение или в избрания вариант,
     пада под прага, без нищо да се е „счупило". Затова за текст се ползва
     --gray-700 — единственият, който издържа и на трите.

     --gray-300/400/500 остават за КАНТОВЕ, РАЗДЕЛИТЕЛИ и УКРАСА без носещ
     смисъл. Клиентът, 2026-08-07: „не искам никъде текст мутед че не мога да
     прочета нищо особено на бял фон". */

  /* ⭐ ДВА НЮАНСА НА ЕДНА МАРКА, разделени по РОЛЯ, не по вкус.
     `--accent-600` и по-ярките са за ПОВЪРХНОСТИ (розов фон, бял текст отгоре);
     `--brand-text` е за ТЕКСТ върху светло, където контрастът е обратен.

     ⛔ НЕ е нов цвят: `--accent-800` стои в палитрата от първия ден и просто не
     се ползваше за текст. Измерено срещу НАСЛОЕНИТЕ фонове, не срещу бяло:
        #fafafa (футър)        6.67:1
        #fce4ec (нав. активна)  5.79:1
        #fef5f9 (мобилна)       6.52:1
     Ярките падаха при праг 4.5: `--accent` 3.72 · `--accent-600` 3.84. */
  --brand-text: var(--accent-800);

  /* ⭐ ЗЛАТОТО СЪЩО ИМА ДВЕ РОЛИ — но за разлика от розовото, палитрата НЯМА
     достатъчно тъмен нюанс и този е НОВ (одобрен от клиента).
        #7a5a07 върху бяло            6.38:1
        #7a5a07 върху --highlight-100      6.00:1
     Най-тъмното съществуващо (`--highlight-700`) дава 3.25 — стига за ДЕКОРАЦИЯ
     (праг 3:1), не за текст. Затова: звездите остават `--highlight-700` и вече са
     `aria-hidden` с видимо число до тях; думите и цифрите минават тук. */

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ⛔⛔⛔ СКРИТОТО Е НЕВИДИМО — общото правило за атрибута `hidden` (#537).

   ⛔ ПОВОДЪТ, измерен на този лист: магазинът ползва `hidden` на ДЕВЕТ места, а
   листът нямаше правило за него. Подразбирането на браузъра (`[hidden] {display:none}`
   в листа на потребителския агент) е правило по АТРИБУТ и губи от всяко правило по
   КЛАС. Резултатът: `<form class="checkout-form" id="coForm" hidden>` оставаше ВИДИМА,
   защото `.checkout-form { display: grid }` я бие — човек с празна количка виждаше
   празната форма за поръчка под съобщението, че количката е празна.

   ⭐ ТРЕТИЯТ ЛИСТ ОТ СЪЩИЯ КЛАС, и лекът не е измислен тук: панелът го получи в #516
   (`admin/panel.css:53`), салонът в #453 2в. Магазинът просто не беше стигнал до него.

   ⛔ ЗАЩО `!important`: правило по клас бие атрибута, значи само друго `!important`
   връща реда. Мерено при всяко пускане на `proba-537`, не веднъж: от деветте скрити
   елемента ЕДИН беше видим, и той е формата.

   ⛔ И НИЩО НЕ РАЗЧИТА АТРИБУТЪТ ДА БЪДЕ ПОБЕДЕН — това е обратната опасност на един
   общ `!important` и е ИЗМЕРЕНА, не предположена: единайсет места в `store.js` и
   `cart.js` слагат `display` през скрипт, и нито едно от тях не сочи елемент с
   `hidden`; нито една от колекциите им (`[data-search-name]`, `.product-card`,
   `.filter-pill[data-filter-cat]`, списъкът на брояча) не може да хване скрит елемент.
   Числата се ИЗВЕЖДАТ от диска при пускането на пробата, не са преписани тук. */
[hidden] { display: none !important; }

/* ── Store Header ── */
.store-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.store-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.store-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.store-logo img { height: 60px; width: auto; }
.store-logo-fallback { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--brand-text); }

.store-nav { display: flex; align-items: center; gap: 0; }
.store-nav-link {
  display: inline-flex; align-items: center; padding: 8px 12px;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500;
  color: var(--gray-700); text-decoration: none; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.store-nav-link:hover { color: var(--brand-text); background: var(--accent-50); }
.store-nav-link.active { color: var(--brand-text); background: var(--accent-100); font-weight: 600; }

.store-header-actions { display: flex; align-items: center; gap: 12px; }

.store-cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--gray-50);
  color: var(--gray-700); text-decoration: none; font-size: 20px;
  transition: all var(--transition);
}
.store-cart-btn:hover { background: var(--accent-50); color: var(--brand-text); }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--accent-600); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0 5px;
}

/* ── Store Hamburger (mobile) ── */
.store-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--radius-sm);
}
.store-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 1px; transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.store-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.store-hamburger.active span:nth-child(2) { opacity: 0; }
.store-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Store Mobile Menu ── */
.store-mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.store-mobile-overlay.active { opacity: 1; pointer-events: auto; }

.store-mobile-menu {
  position: fixed; top: 0; right: -340px; width: 320px; height: 100vh;
  background: var(--white); z-index: 2001;
  display: flex; flex-direction: column;
  transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-xl);
}
.store-mobile-menu.active { right: 0; }
.store-mobile-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
}
.store-mobile-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; }
.store-mobile-close {
  width: 36px; height: 36px; border: none; background: var(--gray-100);
  font-size: 22px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-700);
}
.store-mobile-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.store-mobile-link {
  display: block; padding: 16px 24px; font-family: 'Inter', sans-serif; font-size: 18px;
  font-weight: 500; color: var(--gray-800); text-decoration: none;
  border-left: 3px solid transparent; transition: all var(--transition);
}
.store-mobile-link:hover, .store-mobile-link.active { color: var(--brand-text); background: var(--accent-50); border-left-color: var(--accent-500); }
.store-mobile-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); }
.store-back-link { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-600); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.store-back-link:hover { color: var(--brand-text); }

/* ── Store Hero ── */
.store-hero {
  background: linear-gradient(135deg, var(--accent-100) 0%, var(--accent-50) 30%, var(--accent-100) 70%, var(--highlight-100) 100%);
  padding: 60px 24px 50px; text-align: center; position: relative; overflow: hidden;
}
.store-hero::before {
  content: ''; position: absolute; top: -60px; right: -40px; width: 260px; height: 260px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-600) 12%, transparent) 0%, transparent 70%);
  border-radius: 50%;
}
.store-hero-title {
  font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 12px; position: relative;
}
.store-hero-sub {
  font-family: 'Inter', sans-serif; font-size: 20px; color: var(--gray-600);
  margin: 0 0 32px; max-width: 600px; margin-left: auto; margin-right: auto;
  position: relative;
}
.store-search-wrap {
  max-width: 560px; margin: 0 auto; position: relative;
}
.store-search-wrap input {
  width: 100%; padding: 16px 56px 16px 24px;
  border: 2px solid var(--gray-200); border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 17px; color: var(--gray-800);
  background: var(--white); box-shadow: var(--shadow-md);
  transition: all var(--transition); outline: none;
}
.store-search-wrap input:focus { border-color: var(--accent-400); box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-600) 15%, transparent); }
.store-search-wrap button {
  position: absolute; right: 6px; top: 6px; width: 44px; height: 44px;
  border-radius: 50%; border: none; background: var(--accent-600); color: var(--white);
  font-size: 18px; cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.store-search-wrap button:hover { background: var(--accent-700); }

/* ── Store Section ── */
.store-section { max-width: 1280px; margin: 0 auto; padding: 50px 24px; }
.store-section-header {
  text-align: center; margin-bottom: 36px;
}
.store-section-tag {
  display: inline-block; padding: 4px 16px; border-radius: 50px;
  background: var(--accent-100); color: var(--brand-text);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.store-section-title {
  font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 8px;
}
.store-section-sub {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-600);
  max-width: 600px; margin: 0 auto;
}

/* ── Product Grid ── */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition); position: relative;
  border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; height: 100%;
}
.product-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--accent-200);
}
.product-card-img { display: block;
  position: relative; width: 100%; padding-top: 75%; overflow: hidden; background: var(--gray-100);
}
.product-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 50px;
  background: var(--highlight-500); color: var(--dark-800);
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
  z-index: 2;
}
.product-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card-cat {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--brand-text);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.product-card-name {
  font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 600;
  color: var(--gray-800); margin: 0 0 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.product-card-price {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: var(--brand-text); margin: 0 0 12px;
}
.product-card-price small { font-size: 14px; font-weight: 400; color: var(--gray-700); }
.btn-add-cart {
  width: 100%; padding: 10px 16px; border-radius: var(--radius-sm); margin-top: auto;
  border: 2px solid var(--accent-500); background: transparent;
  color: var(--brand-text); font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-add-cart:hover { background: var(--accent-600); color: var(--white); }
/* ⛔ #2e7d32, не #4caf50: бяло върху светлото зелено е 2.78:1 — под прага с
   голяма разлика, и то на надпис, който трябва да СЕ ЗАБЕЛЕЖИ за секунда и
   половина. Тъмното зелено е 5.13:1 и вече е в палитрата (`.store-toast--success`,
   `.status-badge.confirmed`) — нула нови цветове. */
.btn-add-cart.added { background: #2e7d32; border-color: #2e7d32; color: #fff; }

/* ── Category Cards ── */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card-img {
  position: absolute; inset: 0;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}
.cat-card-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  color: var(--white); z-index: 1;
}
.cat-card-name {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin: 0 0 6px;
}
.cat-card-count {
  font-family: 'Inter', sans-serif; font-size: 15px; opacity: 0.85;
}

/* ── Breadcrumb ── */
.store-breadcrumb {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-700);
}
/* ⛔ Не `--gray-500` (2.68:1) и не `--gray-600` (4.61, на косъм). Пътеката е
   навигация — човек я чете, за да разбере къде е. Същата поправка като при
   филтрите и `.ok-sub`. */
.store-breadcrumb a { color: var(--gray-700); text-decoration: none; }
.store-breadcrumb a:hover { color: var(--brand-text); }
.store-breadcrumb span { margin: 0 8px; }

/* ── Product Detail ── */
.prod-detail {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 50px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.prod-detail-img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; background: var(--gray-100);
  box-shadow: var(--shadow-md);
}
.prod-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-detail-info { display: flex; flex-direction: column; justify-content: center; }
.prod-cat-badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  background: var(--accent-100); color: var(--brand-text);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  margin-bottom: 12px; width: fit-content;
}
.prod-name {
  font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 16px; line-height: 1.2;
}
.prod-price {
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700;
  color: var(--brand-text); margin: 0 0 20px;
}
.prod-desc {
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--gray-600);
  line-height: 1.7; margin: 0 0 24px;
}
.prod-qty-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.prod-qty-wrap label { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-700); }
.prod-qty-input {
  display: flex; align-items: center; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  overflow: hidden;
}
.prod-qty-input button {
  width: 40px; height: 40px; border: none; background: var(--gray-50);
  font-size: 20px; cursor: pointer; color: var(--gray-700);
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.prod-qty-input button:hover { background: var(--gray-200); }
.prod-qty-input input {
  width: 56px; height: 40px; border: none; border-left: 2px solid var(--gray-200);
  border-right: 2px solid var(--gray-200); text-align: center;
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600;
  -moz-appearance: textfield;
}
.prod-qty-input input::-webkit-outer-spin-button,
.prod-qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add-large {
  padding: 14px 36px; border-radius: 50px;
  border: none; background: var(--accent-600); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
}
.btn-add-large:hover { background: var(--accent-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Същото и на големия бутон: 2.78:1 → 5.13:1. */
.btn-add-large.added { background: #2e7d32; }

/* ── Category Page ── */
.cat-hero {
  background: linear-gradient(135deg, var(--accent-50), var(--highlight-100));
  padding: 40px 24px; text-align: center;
}
.cat-hero-title {
  font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 8px;
}
.cat-hero-desc {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-600); max-width: 600px; margin: 0 auto;
}
.cat-toolbar {
  max-width: 1280px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.cat-count { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--gray-600); }
.cat-sort {
  padding: 8px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-700);
  background: var(--white); cursor: pointer; outline: none;
}
.cat-sort:focus { border-color: var(--accent-400); }

/* ── Cart Page ── */
.cart-page { max-width: 960px; margin: 0 auto; padding: 40px 24px; }
.cart-page-title {
  font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 32px;
}
.cart-empty {
  text-align: center; padding: 60px 24px;
}
/* ⚠️ Иконата е УКРАСА и затова остава бледа: това, което казва (нищо няма тук /
   не намерихме поръчката), е написано с думи в заглавието точно под нея. Праг
   за контраст важи за текст и за графика, БЕЗ която съдържанието не се разбира —
   тази не е такава. Потъмняването ѝ би направило 64-пикселов знак доминантата
   на екрана вместо изречението, което казва какво да прави човекът. */
.cart-empty-icon { font-size: 64px; color: var(--gray-300); margin-bottom: 16px; }
.cart-empty h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gray-700); margin: 0 0 8px; }
/* ⛔ НЕ `--gray-500`. Същото измерване, същият праг и същият довод като при
   `.ok-sub` по-долу: #9e9e9e върху бяло е 2.68:1 при праг 4.5:1, а тук стои
   изречението, което казва на човека какво да НАПРАВИ („проверете връзката от
   имейла или се свържете с нас"). `--gray-700` дава 6.19:1 и изравнява реда със
   заглавието над него. */
.cart-empty p { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-700); margin: 0 0 24px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th {
  text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--gray-200);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cart-table td { padding: 16px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.cart-item-img { width: 80px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; background: var(--gray-100); }
.cart-item-name { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-800); }
.cart-item-price { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--gray-600); }
.cart-qty {
  display: flex; align-items: center; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  width: fit-content; overflow: hidden;
}
.cart-qty button {
  width: 32px; height: 32px; border: none; background: var(--gray-50);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cart-qty button:hover { background: var(--gray-200); }
.cart-qty input {
  width: 40px; height: 32px; border: none; border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200); text-align: center;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
}
/* ⚠️ ОРГАН ЗА УПРАВЛЕНИЕ, не украса — затова НЕ важи изключението за иконите.
   Кръстчето е единственият носител на смисъла си: до него няма дума „премахни".
   На --gray-400 то беше 1.88:1, тоест на практика невидимо, докато човек не го
   опипа с мишката.

   --gray-600 (4.61:1 на бялото на кошницата) вместо --gray-700: бутон за
   изтриване не бива да е по-тъмен от името на продукта, който трие. Един тон
   по-светъл от текста го държи намерим, без да вика. Ховърът си остава червен.  */
.cart-remove {
  width: 32px; height: 32px; border: none; background: transparent;
  color: var(--gray-600); font-size: 18px; cursor: pointer; border-radius: 50%;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.cart-remove:hover { background: #fef0f0; color: #e74c3c; }
.cart-summary {
  background: var(--gray-50); border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--gray-100);
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--gray-700);
}
.cart-summary-row.total {
  border-top: 2px solid var(--gray-200); margin-top: 8px; padding-top: 16px;
  font-size: 20px; font-weight: 700; color: var(--dark-800);
}
.cart-summary-row.total span:last-child { color: var(--brand-text); }
.cart-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; flex-wrap: wrap; }

/* ── Checkout Page ── */
.checkout-page { max-width: 960px; margin: 0 auto; padding: 40px 24px; }
.checkout-page-title {
  font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 32px;
}
.checkout-form { display: grid; grid-template-columns: 1fr 380px; gap: 36px; }
.checkout-form-fields { display: flex; flex-direction: column; gap: 16px; }
.checkout-form-fields label {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--gray-600); display: block; margin-bottom: 5px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.checkout-form-fields label .required { color: var(--accent-700); font-weight: 700; }
.checkout-form-fields label .optional {
  text-transform: none; font-weight: 400; font-size: 11px; color: var(--gray-700); margin-left: 4px; letter-spacing: 0;
}
.checkout-form-fields input,
.checkout-form-fields textarea,
.checkout-form-fields select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--gray-200); border-radius: 14px;
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--gray-800);
  background: var(--gray-50);
  outline: none; transition: all 0.25s ease;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.checkout-form-fields input:hover,
.checkout-form-fields textarea:hover,
.checkout-form-fields select:hover {
  border-color: var(--gray-300); background: var(--white);
}
.checkout-form-fields input:focus,
.checkout-form-fields textarea:focus,
.checkout-form-fields select:focus {
  border-color: var(--accent-400);
  background: var(--white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint-25) 7%, transparent), 0 2px 8px rgba(0,0,0,0.04);
  outline: none;
}
.checkout-form-fields input.error,
.checkout-form-fields select.error {
  border-color: #e74c3c; background: #fff5f5;
}
.checkout-form-fields textarea { resize: vertical; min-height: 80px; }

/* ── Premium Select ── */
.checkout-form-fields select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 48px; color: var(--gray-800); background-color: var(--gray-50);
}
.checkout-form-fields select option { color: var(--gray-800); padding: 12px; }
.checkout-form-fields .field-error {
  font-family: 'Inter', sans-serif; font-size: 12px; color: #c0392b; margin-top: 2px; display: none;
}
.checkout-form-fields .field-error.visible { display: block; }

/* Captcha */
.captcha-wrap {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--gray-50); border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
}
.captcha-question {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-800); flex: 1;
}
.captcha-wrap input {
  width: 80px; padding: 8px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 16px; text-align: center; outline: none;
}
.captcha-wrap input:focus { border-color: var(--accent-400); }
.captcha-refresh {
  width: 36px; height: 36px; border: none; background: var(--gray-200); border-radius: 50%;
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.captcha-refresh:hover { background: var(--gray-300); }

.checkout-summary {
  background: var(--gray-50); border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--gray-100); height: fit-content;
  position: sticky; top: 80px;
}
.checkout-summary-title {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: var(--white); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200);
}
.checkout-summary-item {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 0;
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-700);
}
.checkout-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--gray-200);
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: var(--dark-800);
}
.checkout-summary-total span:last-child { color: var(--brand-text); }
.btn-place-order {
  width: 100%; margin-top: 20px; padding: 14px; border-radius: 50px;
  border: none; background: var(--accent-600); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-place-order:hover { background: var(--accent-700); }
.btn-place-order:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Order Confirmation ── */
.order-success { max-width: 640px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.order-success-icon {
  width: 80px; height: 80px; border-radius: 50%; background: #e8f5e9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 40px; color: #4caf50;
  animation: successPop 0.5s ease;
}
@keyframes successPop {
  0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); }
}
.order-success h2 {
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 8px;
}
.order-success p {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-600); margin: 0 0 24px;
}
.order-details {
  background: var(--gray-50); border-radius: var(--radius-lg); padding: 24px;
  text-align: left; margin-bottom: 24px; border: 1px solid var(--gray-100);
}
.order-details table { width: 100%; border-collapse: collapse; }
.order-details th, .order-details td {
  padding: 8px 12px; text-align: left; font-family: 'Inter', sans-serif; font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.order-details th { color: var(--gray-700); font-weight: 600; }
.order-details td { color: var(--gray-800); }
.order-details .total-row td { font-weight: 700; font-size: 16px; border-bottom: none; color: var(--brand-text); }

/* ── Admin Page ── */
.admin-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.admin-title { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--dark-800); margin: 0 0 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th {
  text-align: left; padding: 14px 16px; background: var(--gray-50);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--gray-200);
}
.admin-table td {
  padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}
.admin-table tr:hover td { background: var(--accent-50); }
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
}
.status-badge.new { background: var(--accent-100); color: var(--accent-action); }
.status-badge.confirmed { background: #e8f5e9; color: #2e7d32; }
.status-badge.shipped { background: #e3f2fd; color: #1565c0; }
.status-badge.cancelled { background: #f5f5f5; color: var(--gray-700); }
.admin-status-select {
  padding: 4px 8px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 13px; font-family: 'Inter', sans-serif;
}

/* ── Toast Notifications ── */
.store-toast-container {
  position: fixed; top: 24px; right: 24px; z-index: 99999;
  display: flex; flex-direction: column; gap: 10px; max-width: 420px;
}
.store-toast {
  padding: 16px 24px; border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease;
  display: flex; align-items: center; gap: 12px;
}
.store-toast--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.store-toast--info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.store-toast--error {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100001;
  font-size: 18px; padding: 28px 36px; border-radius: var(--radius-lg);
  background: var(--white); border: 2px solid var(--accent-200);
  box-shadow: var(--shadow-xl); animation: toastShake 0.5s ease;
  flex-direction: column; text-align: center; max-width: 480px; width: 90%;
  color: var(--gray-800);
}
.store-toast--error .toast-icon { font-size: 36px; color: #e74c3c; margin-bottom: 8px; }
.store-toast--error .toast-msg { font-size: 18px; font-weight: 600; }
.toast-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 100000;
  animation: fadeIn 0.2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastShake {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  20% { transform: translate(-50%, -50%) scale(0.95) rotate(-1deg); }
  40% { transform: translate(-50%, -50%) scale(1.02) rotate(1deg); }
  60% { transform: translate(-50%, -50%) scale(0.98) rotate(-0.5deg); }
  80% { transform: translate(-50%, -50%) scale(1.01) rotate(0.5deg); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── CTA Banner ── */
.store-cta {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-800));
  padding: 50px 24px; text-align: center; color: var(--white);
}
.store-cta h2 {
  font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; margin: 0 0 8px;
}
.store-cta p { color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 16px; opacity: 1; margin: 0 0 20px;
}

/* ── Related Products ── */
.related-section { max-width: 1280px; margin: 0 auto; padding: 50px 24px; }
.related-section h3 {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
  color: var(--dark-800); margin: 0 0 24px; text-align: center;
}

/* ── Generic Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: 50px; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all var(--transition); border: none; }
.btn-primary { background: var(--accent-600); color: var(--white); }
.btn-primary:hover { background: var(--accent-700); }
.btn-outline { background: transparent; color: var(--brand-text); border: 2px solid var(--accent-500); }
.btn-outline:hover { background: var(--accent-600); color: var(--white); }
.btn-white { background: var(--white); color: var(--brand-text); }
.btn-white:hover { background: var(--accent-50); }
.btn-sm { padding: 6px 16px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── Search Results ── */
.search-no-results { text-align: center; padding: 40px 24px; color: var(--gray-700); font-family: 'Inter', sans-serif; font-size: 16px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-detail { grid-template-columns: 1fr; gap: 24px; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 1100px) {
  .store-nav { display: none; }
  .store-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .store-header-inner { justify-content: space-between; position: relative; height: 60px; }
  .store-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .store-logo img { height: 50px; }
  .store-header-actions { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .store-hero { padding: 40px 20px 36px; }
  .store-hero-title { font-size: 30px; }
  .store-hero-sub { font-size: 15px; }
  .store-section { padding: 36px 20px; }
  .store-section-title { font-size: 26px; }
  .cart-table { font-size: 13px; }
  .cart-table th, .cart-table td { padding: 10px 8px; }
  .cart-item-img { width: 50px; height: 40px; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
}

@media (max-width: 520px) {
  .store-header-inner { padding: 0 12px; height: 56px; }
  .store-logo img { height: 40px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .store-hero-title { font-size: 26px; }
  .store-hero-sub { font-size: 16px; }
  .store-search-wrap input { padding: 14px 48px 14px 18px; font-size: 16px; }
  .prod-detail { grid-template-columns: 1fr; }
  .prod-name { font-size: 26px; }
  .prod-price { font-size: 24px; }
  .store-toast--error { width: calc(100% - 32px); margin: 0 16px; font-size: 16px; padding: 24px 20px; }
  .cart-page-title, .checkout-page-title { font-size: 26px; }
  .cart-actions { flex-direction: column; }
  .cart-actions .btn { width: 100%; justify-content: center; }
  .order-success h2 { font-size: 24px; }
  .cat-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ═══ Product Image Zoom ═══ */
.prod-detail-img {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}
.prod-detail-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zoom Lens (follows mouse) */
.zoom-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.15), 0 0 20px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  transition: opacity 0.2s ease;
}
.zoom-lens.active { opacity: 1; }

/* Zoom Result (right-side panel) */
.zoom-result {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);
  width: 400px;
  height: 400px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background-repeat: no-repeat;
  background-color: var(--white);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 30;
  display: none;
  pointer-events: none;
}
.zoom-result.active { display: block; }

/* Mobile: overlay zoom instead of side panel */
@media (max-width: 1024px) {
  .zoom-result {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
  
  
}

/* Touch devices: double-tap to zoom */
@media (hover: none) {
  .prod-detail-img { cursor: default; }
  
}

/* ══════════════════════════════════════════
   Product Image Zoom — Professional Magnifier
   ══════════════════════════════════════════ */
.prod-detail-img {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  border-radius: 16px;
  background: var(--gray-50);
}
.prod-detail-img img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}
/* Lens overlay — circular magnifier glass */
.prod-zoom-lens {
  position: absolute;
  top: 0; left: 0;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.18),
    0 0 0 1px rgba(0,0,0,0.06),
    inset 0 1px 4px rgba(255,255,255,0.3);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 5;
  backdrop-filter: blur(0.5px);
}
.prod-zoom-lens.active {
  opacity: 1;
  transform: scale(1);
}
/* Lens inner glow ring */
.prod-zoom-lens::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  pointer-events: none;
}
/* Zoomed image result shown in a separate panel alongside */
.prod-zoom-result {
  position: absolute;
  top: 0; right: -420px;
  width: 400px; height: 400px;
  border-radius: 16px;
  border: 2px solid var(--gray-200);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  background-repeat: no-repeat;
  background-size: 1200px 900px; /* 2x zoom */
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.prod-zoom-result.active {
  opacity: 1;
}
@media (max-width: 1024px) {
  .prod-zoom-result { display: none; }
  .prod-zoom-lens { width: 140px; height: 140px; }
}
@media (max-width: 640px) {
  .prod-zoom-lens { width: 120px; height: 120px; }
  .prod-detail-img { cursor: default; }
}

/* ══════════════════════════════════════════
   Delivery & Payment Option Cards
   ══════════════════════════════════════════ */
.delivery-section, .payment-section {
  margin-top: 8px;
}
.delivery-section h3, .payment-section h3 {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
  color: var(--gray-700); margin: 0 0 8px; display: flex; align-items: center; gap: 8px;
}
/* Иконата до заглавието носи смисъл (какъв раздел е) — текстово правило:
   --accent-500 е 4.35:1 на бяло, --accent-700 е 5.87:1. */
.delivery-section h3 i, .payment-section h3 i {
  color: var(--accent-700); font-size: 16px;
}
.option-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.option-card {
  position: relative;
}
.option-card input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.option-card label {
  border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  background: var(--white);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.option-card label:hover {
  border-color: var(--accent-300); background: var(--tint-26);
}
.option-card input:checked + label {
  border-color: var(--accent-500); background: var(--tint-26);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint-25) 10%, transparent);
  color: var(--accent-700);
  font-weight: 600;
}
.option-card .opt-icon {
  font-size: 20px; flex-shrink: 0; width: 28px; text-align: center;
}
.option-card .opt-body { flex: 1; min-width: 0; }
.option-card .opt-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.option-card .opt-sub { font-size: 11px; color: var(--gray-700); margin-top: 1px; }
.option-card .opt-price {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--brand-text); flex-shrink: 0; white-space: nowrap;
}
.option-card .opt-price.free { color: #2e7d32; font-size: 13px; }

/* Recommended badge */
.opt-recommended {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  /* ⛔ НЕ `--accent-500`: бял текст върху него дава 4.35:1 — ПОД прага, и то при
     10px главни букви, най-трудното съчетание за четене. `--accent-600` дава
     4.62. Това беше единствената ПОВЪРХНОСТ под прага; допускането „на розов
     фон контрастът е обратен, значи минава" не важи за всички нюанси. */
  background: var(--accent-600); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-left: 6px; vertical-align: middle;
}

/* Summary delivery row */
.checkout-summary-delivery {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--gray-600);
}
.checkout-summary-delivery.free { color: #2e7d32; font-weight: 600; }

/* Mobile: single column cards */
@media (max-width: 640px) {
  .option-cards { grid-template-columns: 1fr; }
}

/* ── Mini Cart Item (checkout sidebar) ── */
.checkout-summary-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
}
.mini-cart-img {
  width: 50px; height: 50px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--gray-200);
}
.mini-cart-info { flex: 1; min-width: 0; }
.mini-cart-name {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  color: var(--gray-800); display: block; line-height: 1.3;
}
.mini-cart-price {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--brand-text);
}

/* ═══ Checkout Form 2.0 ═══ */
.checkout-section-title {
  font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700;
  color: var(--dark-800); margin: 0; padding-bottom: 6px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-divider {
  border: none; border-top: 1px solid var(--gray-200); margin: 8px 0;
}



/* Checkbox */
.create-account-wrap { padding: 4px 0; }
.checkbox-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--gray-700);
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.checkbox-custom {
  width: 20px; height: 20px; border: 2px solid var(--gray-300); border-radius: 4px;
  flex-shrink: 0; position: relative; transition: all 0.2s;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent-500); border-color: var(--accent-500);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label:hover .checkbox-custom { border-color: var(--accent-400); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ═══ Sticky Header Scroll Effect ═══ */
.store-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.store-header.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
}

/* ═══ Fixed Header Compensation ═══ */
.store-header + * { margin-top: 0; }
body.store-page { padding-top: 64px; }
@media (max-width: 768px) { body.store-page { padding-top: 60px; } }
@media (max-width: 520px) { body.store-page { padding-top: 56px; } }

/* ══════════════════════════════════════════
   Filter Bar — Modern Product Filters
   ══════════════════════════════════════════ */
.filter-bar {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.filter-pills {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex; align-items: center; text-decoration: none;
  padding: 8px 18px; border-radius: 50px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--gray-600); cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--accent-300); color: var(--brand-text); background: var(--tint-26); }
.filter-pill.active {
  background: var(--accent-600); border-color: var(--accent-600); color: #fff;
  font-weight: 600; box-shadow: 0 2px 8px color-mix(in srgb, var(--tint-25) 25%, transparent);
}
a.filter-pill { text-decoration: none; }

.filter-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-price {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 4px 4px 12px; border-radius: 50px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
}
.filter-price-label {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  /* ⛔ Не `--gray-500` (2.57:1). Виж бележката при `.filter-results`. */
  color: var(--gray-700); white-space: nowrap;
}
.filter-price-input {
  width: 62px; padding: 6px 8px; border: 1px solid var(--gray-200);
  border-radius: 20px; font-family: 'Inter', sans-serif; font-size: 13px;
  text-align: center; outline: none; background: var(--white);
  transition: border-color 0.2s;
}
.filter-price-input:focus { border-color: var(--accent-400); }
.filter-price-input::placeholder { color: var(--gray-700); }
/* Тирето между двете полета е ТЕКСТ, не украса — при `--gray-400` беше
   1.80:1, най-ниското на цялата страница. */
.filter-price-sep { color: var(--gray-700); font-size: 13px; }
.filter-currency {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--gray-700); padding-right: 8px;
}

.filter-sort {
  padding: 10px 32px 10px 14px; border-radius: 50px;
  border: 1.5px solid var(--gray-200); font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  background: var(--white); cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color 0.2s;
}
.filter-sort:focus, .filter-sort:hover { border-color: var(--accent-300); }

.filter-clear {
  padding: 8px 16px; border-radius: 50px; border: none;
  background: var(--gray-100); color: var(--gray-700);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s; white-space: nowrap;
}
/* #a12525, не #c0392b: върху бледочервения фон на ховъра #c0392b дава 4.45:1 —
   на косъм под прага. Същото червено като текста на грешките, 6.12:1. */
.filter-clear:hover { background: #fee2e2; color: #a12525; }

/* ⛔ БЛЕДОТО СИВО ПАДА. Измерено на живо: `--gray-500` върху `--gray-50`
   дава 2.57:1, а върху бяло 2.68:1 — при праг 4.5. `--gray-700` дава 6.19.
   Същият дефект и същата поправка като при `.ok-sub`. */
.filter-results {
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--gray-700);
  padding: 8px 0 0; text-align: right;
}
.filter-results span { font-weight: 700; color: var(--gray-700); }

/* No results state */
.filter-no-results {
  text-align: center; padding: 48px 24px; color: var(--gray-700);
  font-family: 'Inter', sans-serif; font-size: 16px;
  grid-column: 1 / -1;
}
.filter-no-results i { font-size: 40px; display: block; margin-bottom: 12px; color: var(--gray-300); }

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .filter-controls { justify-content: space-between; }
  .filter-price-input { width: 52px; }
  .filter-results { text-align: left; }
}

/* ── Сървърна кошница: варианти, наличност, съобщения ─────────────────── */
.prod-brand { font-size: 14px; color: var(--gray-700); margin-bottom: 6px; }
.prod-compare { color: var(--gray-700); font-size: .7em; margin-left: 10px; font-weight: 400; }

.prod-variants { margin: 20px 0; }
.prod-variants label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.var-list { display: flex; flex-wrap: wrap; gap: 8px; }
.var-btn {
  border: 2px solid var(--gray-200); background: #fff; border-radius: 10px;
  padding: 10px 18px; font: inherit; font-size: 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.var-btn:hover:not([disabled]) { border-color: var(--accent-300); }
.var-btn.on { border-color: var(--accent-500); color: var(--accent-600); font-weight: 600; }
.var-btn[disabled] { opacity: .45; cursor: not-allowed; }
.var-btn span { font-size: 11px; color: var(--gray-700); }

/* ⚠️ Наличността е факт за решението за покупка, не украса. Беше 2.68:1. */
.prod-avail { font-size: 13px; color: var(--gray-700); margin-left: 12px; }
.prod-out-note {
  background: #fdeceb; border: 1px solid #f5c6c3; color: #a03028;
  padding: 14px 16px; border-radius: 10px; margin: 20px 0; font-size: 14px;
}
.prod-msg { font-size: 14px; margin-top: 10px; }

.product-card.is-out { opacity: .62; }
.prod-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.72);
  color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 20px;
}
.product-card-img { position: relative; }
.btn-add-cart[disabled] { opacity: .5; cursor: not-allowed; }

/* ── ред в кошницата ──────────────────────────────────────────────────── */
.cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-prod img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.cart-warn { font-size: 12px; color: #c0392b; margin-top: 3px; }
/* #493 · правото на връщане, ПРЕДИ поръчката. ⚠️ Цветът е на предупреждението, не на
   грешката: стоката е налична и се купува, ограничението е свойство, не проблем.
   Контрастът е мерен — #815d0f върху бяло е 5.9:1, над прага 4.5:1. */
.cart-note { font-size: 12px; color: #815d0f; margin-top: 3px; }
.prod-return-note { font-size: 14px; color: #815d0f; margin: 8px 0 0;
                    padding: 8px 12px; background: #fdf4e3; border-radius: 6px; }
tr.has-issue { background: #fff8f7; }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; }
.cart-qty button {
  width: 28px; height: 28px; border: 1px solid var(--gray-200); background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1;
}
/* Същият случай и същият довод като `.cart-remove` по-горе: носещ смисъл орган,
   не украса; --gray-600 (4.61:1), един тон по-светъл от текста; червено на ховър. */
.cart-del {
  border: 0; background: none; font-size: 22px; color: var(--gray-600);
  cursor: pointer; line-height: 1;
}
.cart-del:hover { color: #c0392b; }

/* ── съобщение ────────────────────────────────────────────────────────── */
.cart-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: #222; color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; opacity: 0; transition: .28s; z-index: 9999;
}
.cart-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cart-toast.bad { background: #c0392b; }

/* Таксата за доставка не е в сметката — бележката е сдържана, не число. */
.cart-ship-note { color: var(--gray-700); font-size: 13px; font-weight: 400; }
/* #492 · „с/без ДДС“ под цената и под сумата; #616161 върху бяло = 6.19:1 */
.dds-belezhka { color: var(--gray-700); font-size: 13px; margin: 6px 0 0; }

/* ── Чекаут: избор на получаване и плащане ────────────────────────────── */
.co-opts { display: grid; gap: 10px; margin-bottom: 6px; }
.co-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 2px solid var(--gray-200); background: #fff; border-radius: 12px;
  padding: 14px 18px; font: inherit; text-align: left; cursor: pointer;
}
.co-opt:hover { border-color: var(--accent-200); }
.co-opt.on { border-color: var(--accent-500); background: var(--tint-27); }
.co-opt .opt-body { display: flex; flex-direction: column; gap: 3px; }
.co-opt .opt-sub { font-size: 13px; color: var(--gray-700); }

/* ── избор на офис ────────────────────────────────────────────────────── */
.co-offices { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.co-office {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  border-bottom: 1px solid var(--gray-100); padding: 10px 12px; cursor: pointer; font: inherit;
}
.co-office:hover { background: var(--tint-27); }
.co-office b { display: block; font-size: 14px; }
.co-office span { font-size: 12px; color: var(--gray-700); }
/* Етикетът е 11px, тоест строгият праг: #3b6fd4 върху #eef4ff е 4.31:1.
   Един тон по-тъмно синьо дава 5.86:1 при същия вид. */
.co-aps { background: #eef4ff; color: #2f5bb0; border-radius: 20px; padding: 1px 8px; font-size: 11px; }
.co-office-none { padding: 12px; font-size: 13px; color: var(--gray-700); }
.co-picked {
  margin-top: 8px; background: #eefaf1; border: 1px solid #bfe6cb; color: #1a7f4b;
  border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600;
}

/* ── обобщение ────────────────────────────────────────────────────────── */
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.co-promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.co-promo input { flex: 1; padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font: inherit; }
.co-promo button {
  border: 1px solid var(--gray-200); background: #fff; border-radius: 8px;
  padding: 9px 16px; font: inherit; cursor: pointer;
}
.co-promo-msg { font-size: 13px; min-height: 1.2em; }
.co-promo-msg.ok { color: #1a7f4b; }
.co-promo-msg.bad { color: #c0392b; }
.co-error {
  background: #fdeceb; border: 1px solid #f5c6c3; color: #a03028;
  padding: 11px 14px; border-radius: 8px; font-size: 14px; margin: 12px 0;
}
.co-fine { font-size: 12px; color: var(--gray-700); margin-top: 10px; text-align: center; }

/* ── потвърждение ─────────────────────────────────────────────────────── */
.ok-hero { text-align: center; padding: 40px 20px 24px; }
.ok-check {
  width: 68px; height: 68px; border-radius: 50%; background: #eefaf1; color: #1a7f4b;
  display: grid; place-items: center; font-size: 34px; margin: 0 auto 18px;
}
.ok-hero h1 { font-size: 28px; margin-bottom: 8px; }
/* ⛔ НЕ `--gray-500`. Измерено: #9e9e9e върху бяло дава 2.68:1 при праг 4.5:1 —
   тоест най-важното изречение на страницата („Банката още не е потвърдила…")
   беше най-нечетимото на нея. `--gray-700` дава 6.19:1.

   ⚠️ Не `--gray-600` (#757575), макар да минава: 4.61:1 е на 0.11 от прага и
   всяко бъдещо потъмняване на фона го поваля обратно. Освен това 6.19 съвпада
   визуално със съседните редове в `.ok-box`, които са #666 (5.74:1) — заради
   което и разликата се виждаше толкова ясно. */
.ok-sub { color: var(--gray-700); font-size: 14px; }
.ok-box {
  max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 22px 24px;
}
.ok-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14px; }
.ok-row span { color: var(--gray-700); }
.ok-items { border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
            margin: 12px 0; padding: 8px 0; }
.ok-row.total { border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 12px; font-size: 17px; }
.ok-row.total b { color: var(--accent-700); }
.ok-note { font-size: 13px; color: var(--gray-700); margin-top: 14px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════
   ОТЗИВИ
   ═══════════════════════════════════════════════════════════════════════ */

/* ⭐ ДЕКОРАЦИЯ, не информация: звездите са `aria-hidden`, а оценката стои до
   тях като текст („4 от 5"). Затова прагът им е 3:1, не 4.5 — `--highlight-700`
   дава 3.25. Беше `--highlight-600` = 2.10, под дори този праг. */
.rv-stars { color: var(--highlight-700); letter-spacing: 1px; }

/* Оценката до заглавието — води надолу към самите отзиви. */
.prod-rating {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin: 4px 0 12px; text-decoration: none; color: inherit;
}
.prod-rating:hover { text-decoration: underline; }
.prod-rating .muted { color: var(--gray-700); font-size: .9rem; }   /* беше #8a8a8a · 3.45:1 */

.reviews-section { max-width: 1280px; margin: 0 auto; padding: 20px 24px 40px; }
.reviews-section h3 {
  font-family: inherit; font-size: 1.5rem;
  margin-bottom: 20px; display: flex; align-items: baseline;
  gap: 14px; flex-wrap: wrap;
}
/* Тук са ДУМИ и ЦИФРИ („4,5 от 5") — текст, тоест 4.5:1. Беше 3.25. */
.rv-avg { font-size: 1rem; font-weight: 400; color: var(--highlight-text); }

/* ⚠️ Тук се ОБЯСНЯВА защо формата за отзив я няма — точно текстът, който
   трябва да се прочете, за да не изглежда сайтът счупен. Беше 4.03:1. */
.rv-none, .rv-locked {
  color: var(--gray-700); background: #faf7f8; border: 1px solid #efe6ea;
  border-radius: 10px; padding: 14px 16px; margin: 0 0 20px;
}

.rv-list { display: grid; gap: 14px; margin-bottom: 28px; }
.rv-item {
  border: 1px solid #eee; border-radius: 12px; padding: 16px 18px;
  background: #fff;
}
.rv-item-head {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin-bottom: 8px;
}
/* Оценката с цифри до звездите — тя носи стойността, звездите са декор. */
.rv-rating-num { color: var(--highlight-text); font-size: .85rem; font-weight: 600; }
.rv-item-head time { color: var(--gray-700); font-size: .85rem; margin-left: auto; }  /* беше #9a9a9a · 2.81:1 */
.rv-item p { margin: 0; line-height: 1.6; }

/* Отговорът на салона е отместен — чете се като отговор, не като втори отзив. */
.rv-item-reply {
  margin-top: 12px; padding: 10px 14px;
  border-left: 3px solid var(--highlight-400);
  background: #fdfaf3; border-radius: 0 8px 8px 0;
  font-size: .94rem; line-height: 1.55;
}

/* ── формата ─────────────────────────────────────────────────────────── */
.rv-form {
  border: 1px solid #eee; border-radius: 12px;
  padding: 20px 22px; background: #fff; max-width: 640px;
}
.rv-form h4 { margin: 0 0 14px; font-size: 1.1rem; }
/**
 * ⭐ ЕТИКЕТЪТ СЕ ГРУПИРА С ПОЛЕТО ПОД СЕБЕ СИ (#70, върнато от qa-r1).
 * Мерено беше 3 px над етикета и 11 под него — тоест той изглеждаше залепен за
 * ПРЕДХОДНОТО поле, а не за своето. Разстоянието се дава на ПОЛЕТАТА отдолу
 * (14 px), а под етикета остават 6: близкото се чете за свързано.
 */
.rv-form label { display: block; margin-bottom: 6px; font-size: .92rem; }
/**
 * ⛔ ПО ТИП, НЕ ПО `.rv-form input` (#70). Звездите за оценка СА `input[radio]`
 * и се крият нарочно (`.rv-pick input { position:absolute; opacity:0 }`) —
 * общо правило би ги извадило обратно на екрана и би счупило избора.
 *
 * ⚠️ `font: inherit` е задължителен, не козметика: без него браузърът дава
 * Arial 13.33 px, а под 16 px iOS Safari МАЩАБИРА цялата страница при фокус в
 * полето. Същият клас като #110 т.3/т.4.
 */
.rv-form textarea,
.rv-form input[type="text"],
.rv-form input[type="email"],
.rv-form input[type="tel"] {
  width: 100%; border: 1px solid #ddd; border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 1rem;
  margin-bottom: 14px;
}
.rv-form textarea { resize: vertical; }
.rv-form textarea:focus,
.rv-form input[type="text"]:focus,
.rv-form input[type="email"]:focus,
.rv-form input[type="tel"]:focus {
  outline: 2px solid var(--highlight-400); border-color: transparent;
}

/* ⚠️ Звездите са в ОБРАТЕН ред в HTML (5→1), за да може `~` да оцвети
   всички отляво на посочената. Реалният ред за окото е 1→5 заради
   row-reverse. Не е трик за краткост — CSS няма „предишен брат". */
.rv-pick { display: inline-flex; flex-direction: row-reverse; margin-bottom: 16px; }
.rv-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.rv-pick label {
  font-size: 2rem; line-height: 1; color: #ddd; cursor: pointer;
  padding: 0 2px; margin: 0; transition: color .12s;
}
.rv-pick input:checked ~ label,
.rv-pick label:hover, .rv-pick label:hover ~ label { color: var(--highlight-500); }
/* Фокусът се вижда — иначе с клавиатура не личи коя звезда е избрана. */
.rv-pick input:focus-visible + label { outline: 2px solid var(--highlight-600); border-radius: 4px; }

.rv-form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-note { color: var(--gray-700); font-size: .85rem; }   /* беше #8a8a8a · 3.45:1 */

.rv-msg { margin-top: 12px; font-size: .92rem; }
.rv-msg.ok  { color: #1a7f4b; }
.rv-msg.bad { color: #c0392b; }

@media (max-width: 640px) {
  .rv-item-head time { margin-left: 0; width: 100%; }
  .rv-form { padding: 16px; }
}
.rv-lbl { display: block; margin-bottom: 4px; font-size: .92rem; }

/* ══════════════════════════════════════════════════════════════════════
   ФУТЪРЪТ — четимост, БЕЗ да се пипа марката на презентационния сайт
   ══════════════════════════════════════════════════════════════════════

   ⚠️ Футърът идва от `platform/assets/css/style.css` и ползва `--accent`
   (#f51e86) за заглавията: 3.72:1 върху `--off-white`, при праг 4.5.

   ⛔ Платформената променлива НЕ се пипа оттук. Тя облича целия
   презентационен сайт, а магазинът няма право да мени вида му — това е
   отделна задача с друг обхват. Затова тук стои ПРЕНАПИСВАНЕ, което важи
   само докато `store.css` е зареден, тоест само в магазина.

   `store.css` се зарежда СЛЕД платформения, затова специфичността стига
   без `!important`. */
.store-page .footer-col h4 { color: var(--brand-text); }

/* Връзката „Към сайта" в долния ред на футъра — същият `--accent`, 3.72:1.
   ⚠️ Не се бърка със `.store-back-link` в мобилното меню: там текстът е сив и
   вече минава (4.61). Затова селекторът е стеснен до долния ред на футъра. */
.store-page .footer-bottom a { color: var(--brand-text); }
