/* ============================================================
   PHARMA GURU PG — style.css
   Stack: vanilla HTML/CSS/JS, no frameworks
   All colours via CSS variables — never hardcode
   Base spacing unit: 4px
   ============================================================ */

/* ── 0. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Ensure [hidden] always wins over any display: rule in author styles */
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* ── 1. TOKENS (CSS VARIABLES) ───────────────────────────── */
:root {
  /* --- background layers (light theme — brandbook palette) --- */
  --c-bg:           #f0f0eb;
  --c-surface:      #e8e8e2;
  --c-card:         #ffffff;
  --c-card-hover:   #f8f8f5;
  --c-border:       #c4c4bc;
  --c-border-light: #d8d8d2;

  /* --- brand --- */
  --c-primary:      #c8102e;
  --c-primary-dark: #9b0d22;
  --c-primary-glow: rgba(200, 16, 46, .12);
  --c-accent:       #e8c84a;
  --c-accent-dark:  #c9a82e;

  /* --- text --- */
  --c-text:         #1a1c20;
  --c-text-soft:    #3a3d46;
  --c-muted:        #5a6070;
  --c-disabled:     #9aa0ae;

  /* --- semantic --- */
  --c-success:      #1f8c4e;
  --c-warning:      #c9a82e;
  --c-error:        #c8102e;
  --c-info:         #1a6db5;

  /* --- tag tints (dark badges work well on light bg) --- */
  --c-tag-inject-bg:  #1a2e4a;
  --c-tag-inject-txt: #6aa3d4;
  --c-tag-inject-bdr: #1e3a5a;
  --c-tag-oral-bg:    #1e2d1a;
  --c-tag-oral-txt:   #7abf6a;
  --c-tag-oral-bdr:   #254020;
  --c-tag-sale-bg:    #3a1a1a;
  --c-tag-sale-txt:   #ff6b6b;
  --c-tag-sale-bdr:   #4a2020;
  --c-tag-new-bg:     #2a2410;
  --c-tag-new-txt:    #e8c84a;
  --c-tag-new-bdr:    #3a3018;

  /* --- typography --- */
  --ff-head: 'Rajdhani', sans-serif;
  --ff-body: 'Noto Sans', sans-serif;

  /* --- spacing (4px grid) --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* --- radius --- */
  --r:    6px;
  --r-lg: 10px;
  --r-xl: 16px;

  /* --- transitions --- */
  --t:    .15s ease;
  --t-md: .25s ease;

  /* --- layout --- */
  --max-w:    1200px;
  --header-h: 60px;
  --sidebar-w: 220px;
}

/* ── 2. BASE ──────────────────────────────────────────────── */
body {
  background: var(--c-bg);
  color:       var(--c-text);
  font-family: var(--ff-body);
  font-size:   14px;
  line-height: 1.6;
  min-height:  100vh;
  display:     flex;
  flex-direction: column;
}

main { flex: 1; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Section spacing */
.section { padding: var(--sp-10) 0; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
.t-display {
  font-family: var(--ff-head);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}
h1, .t-h1 {
  font-family: var(--ff-head);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}
h2, .t-h2 {
  font-family: var(--ff-head);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
}
h3, .t-h3 {
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
}
h4, .t-h4 {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 600;
}
.t-body  { font-size: 14px; line-height: 1.7; color: var(--c-text-soft); }
.t-small { font-size: 12px; color: var(--c-muted); }
.t-meta  {
  font-family: var(--ff-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-muted);
}
.t-price {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
}

/* ── 4. PROMO BAR ─────────────────────────────────────────── */
.promo-bar {
  background: var(--c-primary);
  color: #fff;
  text-align: center;
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 7px var(--sp-4);
  line-height: 1.4;
}
.promo-bar a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-bar a:hover { opacity: .85; }

/* ── 5. HEADER ────────────────────────────────────────────── */
/* Sticky wrapper keeps promo + header together as one sticky unit */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  height: var(--header-h);
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Logo lockup */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.logo-img { display: block; object-fit: contain; }
.logo-text {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1;
  white-space: nowrap;
}
.logo-text span {
  display: inline;
  color: var(--c-primary);
  margin-left: 3px;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.header-nav a {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--c-muted);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
}
.header-nav a:hover        { color: var(--c-text); background: var(--c-card); }
.header-nav a.active       { color: var(--c-text); background: var(--c-border); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Cart button */
.btn-cart {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: var(--sp-1) var(--sp-3);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background var(--t);
  white-space: nowrap;
}
.btn-cart:hover { background: var(--c-primary-dark); }

/* ── Lang switcher — segmented control ──────────────────────── */
.lang-switch {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-opt {
  background: none;
  border: none;
  border-right: 1px solid var(--c-border);
  padding: 4px 8px;
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  line-height: 1;
}
.lang-opt:last-child { border-right: none; }
.lang-opt.active {
  background: var(--c-primary);
  color: #fff;
  cursor: default;
  pointer-events: none;
}
.lang-opt:not(.active):hover {
  background: var(--c-border-light);
  color: var(--c-text);
}
/* Mobile variant */
.lang-switch-mobile {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.lang-switch-mobile .lang-opt {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 8px;
}

/* Catalog button in header (desktop only) */
.btn-header-catalog {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 6px var(--sp-3);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn-header-catalog:hover { background: var(--c-border-light); border-color: var(--c-border); }
/* Show catalog button only when nav is hidden (769–900px) */
@media (min-width: 769px) and (max-width: 900px) { .btn-header-catalog { display: flex; } }

/* ── Nav dropdown ───────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;           /* впритул до тригера — gap через padding-top */
  left: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: var(--sp-1) 0;
  padding-top: 10px;   /* 6px візуальний відступ + 4px внутрішній */
  min-width: 160px;
  display: none;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
/* Невидимий міст над меню — перекриває gap між тригером і меню */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 10px; /* має збігатись з padding-top вище */
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--c-muted);
  border-radius: 0;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--c-text); background: var(--c-card); }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  font-size: 11px;
}
.cart-count[data-count="0"] { display: none; }

/* Mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--t);
}

/* Mobile nav overlay — top is set dynamically by JS to sit below header+promo */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--c-surface);
  z-index: 99;
  flex-direction: column;
  padding: var(--sp-6);
  gap: var(--sp-2);
  border-top: 1px solid var(--c-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-muted);
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r);
  border-bottom: 1px solid var(--c-border);
  transition: color var(--t);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--c-text); }
/* Cart button inside mobile nav — override muted color from .mobile-nav a */
.mobile-nav a.btn-primary,
.mobile-nav a.btn-primary:hover { color: #fff; }

/* ── 5. FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-8) 0 var(--sp-6);
  margin-top: var(--sp-16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
.footer-brand .logo { margin-bottom: var(--sp-3); }
.footer-brand p { font-size: 13px; color: var(--c-muted); line-height: 1.7; max-width: 240px; }
.footer-col h4 {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
  font-size: 13px;
  color: var(--c-text-soft);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--c-primary); }

/* Verify authenticity link — footer + product page */
.footer-verify-link {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t);
}
.footer-verify-link:hover { color: var(--c-primary-dark); }

.product-verify-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--c-accent);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: opacity var(--t);
}
.product-verify-link:hover { opacity: .75; }
.product-verify-link svg { color: var(--c-accent); }

/* ── Newsletter subscribe form (footer) ── */
.footer-newsletter-desc {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}
.footer-subscribe-form { width: 100%; }
.footer-subscribe-row {
  display: flex;
  gap: 6px;
}
.footer-subscribe-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--ff-body);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  transition: border-color var(--t);
}
.footer-subscribe-row input:focus { border-color: var(--c-primary); }
.footer-subscribe-row button {
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--ff-head);
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--t), opacity var(--t);
}
.footer-subscribe-row button:hover   { background: var(--c-primary-dark); }
.footer-subscribe-row button:disabled { opacity: .6; cursor: default; }
.footer-subscribe-msg {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}
.footer-subscribe-msg.ok  { color: #2a9d5c; }
.footer-subscribe-msg.err { color: var(--c-danger, #e03434); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 11px; color: var(--c-muted); }

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  padding: 9px 20px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), opacity var(--t);
  white-space: nowrap;
  user-select: none;
}
.btn:disabled { opacity: .45; pointer-events: none; }

/* Variants */
.btn-primary  { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }

.btn-outline  { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-ghost    { background: transparent; color: var(--c-muted); }
.btn-ghost:hover { color: var(--c-text); }

.btn-accent   { background: var(--c-accent); color: #0e1117; }
.btn-accent:hover { background: var(--c-accent-dark); }

.btn-danger   { background: var(--c-error); color: #fff; }
.btn-danger:hover { opacity: .85; }

/* Sizes */
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* Icon-only */
.btn-icon {
  padding: 8px;
  background: var(--c-card);
  border-color: var(--c-border);
  color: var(--c-muted);
  border-radius: var(--r);
}
.btn-icon:hover { color: var(--c-text); border-color: var(--c-primary); }

/* ── 7. PRODUCT CARD ──────────────────────────────────────── */
.product-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), transform var(--t-md), box-shadow var(--t-md);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--c-primary-glow);
}

.card-img {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #111827, #1a2540);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-md);
}
.product-card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder {
  font-size: 56px;
  opacity: .25;
  user-select: none;
}

/* Badges on image */
.card-badges {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-badge-sale {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: var(--c-accent);
  color: #0e1117;
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .3px;
}

.card-body { padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.card-category { font-size: 10px; font-family: var(--ff-head); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 4px; }
.card-name { font-family: var(--ff-head); font-size: 15px; font-weight: 700; line-height: 1.25; margin-bottom: 3px; color: var(--c-text); }
.card-sub  { font-size: 11px; color: var(--c-muted); margin-bottom: var(--sp-3); }
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.card-price { font-family: var(--ff-head); font-size: 19px; font-weight: 700; color: var(--c-primary); }

/* Add to cart on card */
.btn-add-card {
  flex-shrink: 0;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 10px 14px;
  min-height: 44px;
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background var(--t);
  white-space: nowrap;
}
.btn-add-card:hover { background: var(--c-primary-dark); }
.btn-add-card.in-cart { background: var(--c-success); }

/* ── 8. CATALOG GRID ──────────────────────────────────────── */
.catalog-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-16);
  color: var(--c-muted);
}
.catalog-empty p { font-size: 15px; margin-bottom: var(--sp-4); }

/* ── 9. FILTERS (SIDEBAR) ─────────────────────────────────── */
.filters {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.filter-title {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}
.filter-group { margin-bottom: var(--sp-4); }
.filter-group-label {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}

/* Filter chip buttons */
.filter-chips { display: flex; flex-direction: column; gap: 4px; }
.filter-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--c-muted);
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--t);
  letter-spacing: .3px;
}
.filter-chip:hover             { color: var(--c-text); background: var(--c-card); }
.filter-chip.active            { color: var(--c-text); background: var(--c-card); border-color: var(--c-primary); }
.filter-chip .chip-count       { margin-left: auto; font-size: 10px; color: var(--c-disabled); }
.filter-chip.active .chip-count{ color: var(--c-muted); }

/* Search */
.search-wrap {
  position: relative;
  margin-bottom: var(--sp-4);
}
.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 9px 12px 9px 34px;
  color: var(--c-text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t);
}
.search-input:focus { border-color: var(--c-primary); }
.search-input::placeholder { color: var(--c-disabled); }

/* Catalog header (count + sort) */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.catalog-count { font-size: 13px; color: var(--c-muted); }
.catalog-count strong { color: var(--c-text); }

/* ── 10. TAGS / BADGES ────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-inject { background: var(--c-tag-inject-bg); color: var(--c-tag-inject-txt); border-color: var(--c-tag-inject-bdr); }
.tag-oral   { background: var(--c-tag-oral-bg);   color: var(--c-tag-oral-txt);   border-color: var(--c-tag-oral-bdr); }
.tag-sale   { background: var(--c-tag-sale-bg);   color: var(--c-tag-sale-txt);   border-color: var(--c-tag-sale-bdr); }
.tag-new    { background: var(--c-tag-new-bg);    color: var(--c-tag-new-txt);    border-color: var(--c-tag-new-bdr); }
.tag-stock  { background: #0f2010; color: var(--c-success); border-color: #163520; }
.tag-out    { background: #1a1010; color: var(--c-disabled); border-color: #2a1515; }

/* ── 11. FORMS ────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.form-label .required { color: var(--c-primary); margin-left: 3px; }
.form-input {
  width: 100%;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--c-text);
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  outline: none;
  transition: border-color var(--t);
  appearance: none;
}
.form-input:focus     { border-color: var(--c-primary); }
.form-input::placeholder { color: var(--c-disabled); }
.form-input.error     { border-color: var(--c-error); }
select.form-input     { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237b8aab'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-error { font-size: 11px; color: var(--c-error); margin-top: 4px; display: none; }
.form-error.show { display: block; }
textarea.form-input   { resize: vertical; min-height: 100px; }

/* ── 12. QUANTITY INPUT ───────────────────────────────────── */
.qty-input {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--c-card);
}
.qty-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--c-muted);
  font-size: 16px;
  cursor: pointer;
  transition: color var(--t), background var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { color: var(--c-text); background: var(--c-border); }
.qty-val {
  width: 42px;
  text-align: center;
  background: none;
  border: none;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 14px;
  outline: none;
  height: 36px;
}

/* ── 13. CART ITEM ────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #111827, #1a2540);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: var(--ff-head); font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.cart-item-sub  { font-size: 11px; color: var(--c-muted); margin-bottom: var(--sp-2); }
.cart-item-actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cart-item-price { font-family: var(--ff-head); font-size: 17px; font-weight: 700; color: var(--c-primary); white-space: nowrap; text-align: right; }
.cart-item-remove { background: none; border: none; color: var(--c-muted); cursor: pointer; padding: 4px; transition: color var(--t); line-height: 1; border-radius: var(--r); }
.cart-item-remove:hover { color: var(--c-error); background: var(--c-tag-sale-bg); }

/* ── 14. ORDER SUMMARY ────────────────────────────────────── */
.order-summary {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.summary-title {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-size: 13px;
  padding: var(--sp-2) 0;
}
.summary-row + .summary-row { border-top: 1px solid var(--c-border-light); }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  margin-top: var(--sp-2);
  border-top: 2px solid var(--c-border);
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
}
.summary-total .amount { color: var(--c-primary); }

/* ── 15. PRODUCT PAGE ─────────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.product-gallery {
  background: linear-gradient(135deg, #111827, #1a2540);
  border-radius: var(--r-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  border: 1px solid var(--c-border);
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-placeholder { font-size: 100px; opacity: .15; }

.product-info-head { margin-bottom: var(--sp-4); }
.product-info-head .t-meta { margin-bottom: var(--sp-2); }
.product-info-head h1 { margin-bottom: var(--sp-2); }
.product-info-head .product-subtitle { font-size: 13px; color: var(--c-muted); margin-bottom: var(--sp-3); }

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.product-price { font-family: var(--ff-head); font-size: 30px; font-weight: 700; color: var(--c-primary); }
.product-price-old { font-size: 18px; color: var(--c-disabled); text-decoration: line-through; }

.product-add-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.product-specs {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  font-size: 13px;
}
.spec-row + .spec-row { border-top: 1px solid var(--c-border-light); }
.spec-key { color: var(--c-muted); }
.spec-val { font-weight: 600; text-align: right; }

.product-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-soft);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
}

/* ── 16. BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) 0;
  font-size: 12px;
  color: var(--c-muted);
}
.breadcrumb a { transition: color var(--t); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb-sep { color: var(--c-disabled); }
.breadcrumb-current { color: var(--c-text-soft); }

/* ── 17. PAGE HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--c-surface) 0%, #ddddd6 100%);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, var(--c-primary-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-title { margin-bottom: var(--sp-3); }
.hero-sub { font-size: 15px; color: var(--c-muted); max-width: 480px; margin: 0 auto var(--sp-8); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; }

/* Trust bar below hero */
.trust-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-4) 0;
}
.trust-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--c-muted);
}
.trust-item svg, .trust-item .trust-icon { color: var(--c-accent); }

/* ── 18. CHECKOUT ─────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-8);
  align-items: start;
}
.checkout-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.checkout-card-title {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.checkout-card-title .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* Step indicator */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}
.step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-disabled);
  flex: 1;
  position: relative;
}
.step::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
  margin: 0 var(--sp-2);
}
.step:last-child::after { display: none; }
.step.done   .step-num { background: var(--c-success); }
.step.active .step-num { background: var(--c-primary); }
.step.active { color: var(--c-text); }

/* Success screen */
.order-success {
  text-align: center;
  padding: var(--sp-16) 0;
  width: 100%;
}
.order-success:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.order-success-icon {
  font-size: 64px;
  width: 100%;
}
.order-success h1 { width: 100%; }
.order-success p  { color: var(--c-muted); max-width: 440px; margin: 0 auto var(--sp-8); }

/* ── 19. CONTACT PAGE ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-10);
  align-items: start;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-label { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 1px; font-family: var(--ff-head); margin-bottom: 3px; }
.contact-value { font-size: 15px; font-weight: 500; }

/* ── 20. TOAST ────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity var(--t-md), transform var(--t-md);
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { border-left-color: var(--c-success); }
.toast.warning { border-left-color: var(--c-warning); }
.toast.error   { border-left-color: var(--c-error); }

/* ── 21. MODAL (cart drawer replacement on mobile) ───────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  max-width: 480px;
  padding: var(--sp-6);
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}
.modal-title { font-family: var(--ff-head); font-size: 16px; font-weight: 700; }

/* ── 22. UTILITIES ────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center  { text-align: center; }
.text-muted   { color: var(--c-muted); }
.text-primary { color: var(--c-primary); }
.text-accent  { color: var(--c-accent); }
.text-success { color: var(--c-success); }
.mt-auto      { margin-top: auto; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2        { gap: var(--sp-2); }
.gap-4        { gap: var(--sp-4); }
.gap-6        { gap: var(--sp-6); }
.divider      { height: 1px; background: var(--c-border); margin: var(--sp-4) 0; }
.page-title-wrap { padding: var(--sp-8) 0 var(--sp-4); }

/* Cart page title count badge */
.cart-title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── 22b. SKELETON LOADER ─────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skel-line {
  border-radius: 3px;
  background: linear-gradient(90deg, #e0e0da 25%, #d0d0ca 50%, #e0e0da 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton .card-img {
  background: linear-gradient(90deg, #e0e0da 25%, #d0d0ca 50%, #e0e0da 75%) !important;
  background-size: 800px 100% !important;
  animation: shimmer 1.4s infinite linear;
}

/* ── 22c. HERO LOGO BG ─────────────────────────────────────── */
.hero-logo-bg {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  opacity: .04;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 600px) { .hero-logo-bg { display: none; } }

/* ── 22d. CATALOG MOBILE HEADER ────────────────────────────── */
.catalog-mobile-header {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
@media (max-width: 900px) {
  .catalog-mobile-header { display: flex; }
}

/* ── 22e. CARD IMG LINK ────────────────────────────────────── */
.card-img-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── 23. RESPONSIVE ───────────────────────────────────────── */
/* Tablet: ≤900px */
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
    display: none;        /* toggled via JS .open class */
  }
  .filters.open { display: block; margin-bottom: var(--sp-4); }

  .product-layout    { grid-template-columns: 1fr; }
  .product-gallery   { position: static; aspect-ratio: 4/3; }

  .checkout-layout   { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
}

/* Tablet: nav collapse at 768px */
@media (max-width: 768px) {
  .header-nav                   { display: none; }
  .burger                       { display: flex; }
  .btn-header-catalog           { display: none; }
  /* Lang switch moves into burger menu on mobile */
  .header-actions .lang-switch  { display: none; }
}

/* Mobile: ≤600px */
@media (max-width: 600px) {
  :root { --header-h: 54px; }

  /* ── Fix overflowing header on small screens ── */
  .header-inner {
    padding: 0 var(--sp-3);
    gap: var(--sp-2);
  }
  .logo-text { font-size: 15px; }
  .logo-img  { width: 36px; height: 37px; }
  .lang-switch { gap: 1px; }
  .lang-opt { padding: 3px 7px; font-size: 11px; }
  .btn-cart { padding: var(--sp-1) var(--sp-2); gap: 5px; }

  .container { padding: 0 var(--sp-4); }
  .section   { padding: var(--sp-8) 0; }

  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .card-img     { height: 140px; }

  .cart-item         { grid-template-columns: 56px 1fr; }
  .cart-item-price   { grid-column: 2; }

  .form-row          { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }

  .product-add-row   { flex-wrap: wrap; }
  .hero              { padding: var(--sp-8) 0; }
  .steps             { gap: var(--sp-1); }
  .step              { font-size: 10px; }

  .toast-container   { right: var(--sp-3); left: var(--sp-3); bottom: var(--sp-3); }
  .toast             { min-width: unset; }

  .logo-text span    { display: inline; }
}

/* Extra small: ≤380px */
@media (max-width: 380px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ── 24. CATALOG PAGE COMPONENTS ────────────────────────────── */

/* Catalog section wrapper */
.catalog-section { padding: var(--sp-10) 0 var(--sp-16); }

/* Section heading */
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--c-text);
}

/* Hero overrides for index page */
.hero-sup {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.hero h1 { margin-bottom: var(--sp-3); }
.hero h1 span { color: var(--c-primary); }
.hero-h1-tagline { font-size: .45em; font-weight: 400; color: var(--c-muted); letter-spacing: .3px; white-space: nowrap; }
.hero-desc { font-size: 15px; color: var(--c-muted); max-width: 480px; margin: 0 auto var(--sp-8); }
.hero-cta  { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; }
.hero-logo-bg svg { width: 320px; height: auto; }

/* Trust items (flex row) */
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

/* Filter label */
.filter-label {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}

/* Horizontal pill chip buttons (type / category filter) */
.chip {
  padding: 5px 14px;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: 20px;
  color: var(--c-muted);
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  letter-spacing: .3px;
  white-space: nowrap;
}
.chip:hover  { color: var(--c-text); border-color: var(--c-primary); }
.chip.active { color: #fff; background: var(--c-primary); border-color: var(--c-primary); }

/* Chip groups use row wrap layout */
#type-chips, #category-chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

/* Toggle switch (in-stock) */
.toggle-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: 13px;
  color: var(--c-text-soft);
  user-select: none;
}
.toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  width: 36px;
  height: 20px;
  background: var(--c-border);
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--t);
}
.toggle-label input:checked ~ .toggle-track { background: var(--c-primary); }
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--t);
  pointer-events: none;
}
.toggle-label input:checked ~ .toggle-track .toggle-thumb { transform: translateX(16px); }

/* Sort select */
.sort-select {
  width: 100%;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 8px 32px 8px 12px;
  color: var(--c-text);
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237b8aab'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--t);
  outline: none;
}
.sort-select:focus { border-color: var(--c-primary); }

/* Sidebar header row */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}
.sidebar-close { display: none; } /* Hidden on desktop, shown on mobile */

/* Filter sidebar (sticky desktop, overlay mobile) */
.filter-sidebar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}

/* Catalog main content area */
.catalog-main { min-width: 0; }

/* Catalog toolbar (above grid) */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--sp-4);
  min-height: 24px;
}

/* Catalog mobile header alignment */
.catalog-mobile-header { justify-content: space-between; }

/* Card image wrapper (alias for .card-img) */
.card-img-wrap {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #111827, #1a2540);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-md);
}
.product-card:hover .card-img-wrap img { transform: scale(1.04); }

/* Badge system (positioned on card image) */
.badge {
  position: absolute;
  font-family: var(--ff-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  line-height: 1.4;
  pointer-events: none;
}
.badge-new  { top: 8px; left: 8px; background: var(--c-tag-new-bg); color: var(--c-tag-new-txt); border: 1px solid var(--c-tag-new-bdr); }
.badge-sale { top: 8px; left: 8px; background: var(--c-accent); color: #0e1117; }
.badge-hit  { top: 8px; left: 8px; background: var(--c-primary); color: #fff; }
.badge-out  { top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(0,0,0,.2); }

/* Card price row */
.card-price-wrap { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.card-old-price  { font-size: 12px; color: var(--c-disabled); text-decoration: line-through; }
.card-price.muted { color: var(--c-muted); font-size: 15px; font-weight: 400; }

/* Skeleton placeholder card */
.skeleton {
  border-radius: var(--r-lg);
  height: 320px; /* matches card-img(180) + card-body(~140) */
  background: linear-gradient(90deg, #e0e0da 25%, #d0d0ca 50%, #e0e0da 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid var(--c-border-light);
}

/* Mobile: filter sidebar becomes full-screen overlay */
@media (max-width: 900px) {
  .filter-sidebar {
    position: fixed;
    inset: 0;
    z-index: 150;
    border-radius: 0;
    border: none;
    max-height: none;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--t-md);
  }
  .filter-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,.6);
  }
  .sidebar-close { display: flex; }
}

@media (max-width: 600px) {
  .card-img-wrap { height: 140px; }
  .skeleton      { height: 280px; } /* matches card-img(140) + card-body(~140) */
}

/* ── 25. CART PAGE ──────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-8);
  align-items: start;
  padding-bottom: var(--sp-16);
}
.cart-items-wrap { display: flex; flex-direction: column; gap: var(--sp-3); }
.cart-item-img-link {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #111827, #1a2540);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img-link img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-unit { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.cart-item-qty  { display: flex; align-items: center; }

.cart-summary-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.cart-summary-title {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  font-size: 13px;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-4);
  margin: var(--sp-2) 0 var(--sp-4);
  border-top: 2px solid var(--c-border);
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
}
.cart-empty {
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--c-muted);
}
.cart-empty-icon { font-size: 56px; margin-bottom: var(--sp-4); }
.cart-empty h2   { color: var(--c-text); margin-bottom: var(--sp-3); }
.cart-empty p    { margin-bottom: var(--sp-6); font-size: 14px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-box { position: static; }
}

/* ── 26. PRODUCT PAGE ADDITIONS ─────────────────────────────── */
.product-img-wrap {
  background: linear-gradient(135deg, #111827, #1a2540);
  border-radius: var(--r-xl);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--c-border);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.product-img-wrap.skeleton { border-radius: var(--r-xl); height: auto; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.product-name    { font-family: var(--ff-head); font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.15; margin-bottom: var(--sp-1); }
.product-name-en { font-size: 13px; color: var(--c-muted); margin-bottom: var(--sp-4); }
.product-old-price { font-size: 18px; color: var(--c-disabled); text-decoration: line-through; }

.product-specs-wrap {
  margin-bottom: var(--sp-4);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 13px;
}
.specs-table td { padding: var(--sp-3) var(--sp-4); }
.specs-table tr + tr td { border-top: 1px solid var(--c-border-light); }
.spec-key { color: var(--c-muted); width: 45%; }
.spec-val { font-weight: 600; }

.product-trust {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: .3px;
}
.product-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.product-trust svg { color: var(--c-accent); }

.product-not-found {
  text-align: center;
  padding: var(--sp-16) 0;
}
.product-not-found p:first-child { font-size: 56px; margin-bottom: var(--sp-4); }
.product-not-found h2 { margin-bottom: var(--sp-3); }
.product-not-found p  { color: var(--c-muted); margin-bottom: var(--sp-6); }

.out-of-stock-msg {
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-disabled);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--c-muted);
}

/* ── 27. CHECKOUT ADDITIONS ─────────────────────────────────── */
.order-summary-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.order-summary-items { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.order-summary-item {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 13px;
  padding: var(--sp-2) 0;
}
.order-summary-item-name { color: var(--c-text-soft); flex: 1; }
.order-summary-item-price { font-family: var(--ff-head); font-weight: 700; white-space: nowrap; }
.order-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 16px;
}

.checkout-submit-wrap {
  display: none; /* shown on mobile */
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.checkout-submit-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--c-muted);
  margin-top: var(--sp-2);
}
.checkout-submit-note svg { color: var(--c-accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .order-summary-box    { position: static; }
  .checkout-submit-wrap { display: flex; }
  #submit-btn-desk      { display: none; }
}

/* ── 28. CONTACT PAGE ADDITIONS ─────────────────────────────── */
.info-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.info-card-title {
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}
.info-steps {
  list-style: decimal;
  padding-left: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.info-steps li {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.6;
}
.info-steps a { color: var(--c-primary); }
.info-steps a:hover { text-decoration: underline; }

/* ── 29. LANDING PAGE ─────────────────────────────────────── */

/* Hero enhancements */
.hero-accent { color: var(--c-primary); }

/* Section titles */
.home-section-title {
  font-family: var(--ff-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-6);
}
.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.home-section-header .home-section-title { margin-bottom: 0; }
.home-section-link {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  white-space: nowrap;
  transition: gap var(--t);
}
.home-section-link:hover { gap: 6px; }

/* Forum social proof */
.forum-proof {
  background: var(--c-text);
  padding: var(--sp-8) 0;
}
.forum-proof-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.forum-proof-text { flex: 1; }
.forum-proof-label {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}
.forum-proof-title {
  font-family: var(--ff-head);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.forum-proof-desc {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  max-width: 520px;
}
.forum-proof-btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .forum-proof-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .forum-proof-btn { width: 100%; text-align: center; }
}

/* Categories */
.home-categories { background: var(--c-surface); }
.cat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 600px) { .cat-cards { grid-template-columns: 1fr; } }

.cat-card {
  display: block;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  text-decoration: none;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.cat-card--inject { background: linear-gradient(135deg, #1a2e4a 0%, #112240 100%); color: #fff; }
.cat-card--oral   { background: linear-gradient(135deg, #1e3020 0%, #142615 100%); color: #fff; }

.cat-card-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
}
.cat-card-icon { font-size: 32px; flex-shrink: 0; }
.cat-card-title {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 4px;
}
.cat-card-sub { font-size: 13px; opacity: .7; line-height: 1.4; }
.cat-card-arrow { margin-left: auto; flex-shrink: 0; opacity: .5; }
.cat-card:hover .cat-card-arrow { opacity: .9; }

/* Featured grid (max 4 visible) */
.home-grid { max-width: 100%; }

/* About brand */
.home-brand { background: var(--c-surface); }
.brand-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-10);
  align-items: start;
}
@media (max-width: 800px) {
  .brand-block { grid-template-columns: 1fr; }
  .brand-block-badges { display: grid; grid-template-columns: 1fr 1fr; }
}
.brand-block-badges {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.brand-stat {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  min-width: 160px;
  text-align: center;
}
.brand-stat-num {
  display: block;
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.brand-stat-label {
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.3;
}

/* How to order steps */
.home-steps { background: var(--c-bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.step-num {
  font-family: var(--ff-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--c-primary);
  opacity: .25;
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.step-title {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}
.step-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* Catalog count: mobile shows top bar count, desktop shows sidebar count */
.catalog-count-desk { display: none; }
@media (min-width: 900px) {
  .catalog-count      { display: none; }
  .catalog-count-desk { display: block; }
}

/* ── VERIFY SECTION (homepage) ───────────────────────────── */
.verify-section {
  padding: var(--sp-10) 0;
  background: var(--c-surface);
}
.verify-card {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  max-width: 680px;
  margin: 0 auto;
}
.verify-icon { font-size: 48px; flex-shrink: 0; line-height: 1; }
.verify-title {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.verify-desc {
  font-size: 14px;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}
@media (max-width: 520px) {
  .verify-card { flex-direction: column; text-align: center; }
}

/* ── 26. PAYMENT STEP ────────────────────────────────────────── */
.form-label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--c-text-muted);
  margin-left: var(--sp-1);
}

/* Payment option cards */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.payment-option:hover {
  border-color: var(--c-accent);
  background: rgba(212,175,55,.04);
}
.payment-option.selected {
  border-color: var(--c-accent);
  background: rgba(212,175,55,.07);
}
.payment-option input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--c-accent);
  width: 16px;
  height: 16px;
}
.payment-option-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.payment-option-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.2;
}
.payment-option-desc {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* Prepay details panel */
.payment-details {
  margin-top: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: var(--sp-4);
  text-align: left; /* Needed when used inside centered containers (success screen) */
}
.payment-details-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: var(--sp-3);
}
.payment-detail-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border);
}
.payment-detail-item:last-of-type { border-bottom: none; }
.payment-detail-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}
.payment-detail-label {
  font-weight: 600;
  font-size: 12px;
  width: 70px;
  flex-shrink: 0;
  color: var(--c-text);
}
.payment-detail-value {
  font-size: 12px;
  color: var(--c-text);
  font-family: monospace;
  flex: 1;
  word-break: break-all;
  line-height: 1.4;
}
.copy-btn {
  margin-left: auto;
  padding: 3px 10px;
  font-size: 11px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--c-text-muted);
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.copy-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.copy-btn.copied { border-color: #22c55e; color: #22c55e; }

.payment-details-warning {
  margin-top: var(--sp-3);
  font-size: 12px;
  color: var(--c-error);
  font-weight: 500;
  line-height: 1.5;
}
.payment-details-warning a { color: var(--c-error); text-decoration: underline; }

/* ── 27. SUCCESS SCREEN (updated) ───────────────────────────── */
.order-id-box {
  background: var(--c-surface);
  border: 2px solid var(--c-accent);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-sizing: border-box;
}
.order-id-label {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 0 0 var(--sp-2);
}
.order-id-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-accent);
  font-family: monospace;
  letter-spacing: 1px;
  margin: 0;
  word-break: break-all;
}
.order-id-save {
  font-size: 12px;
  color: var(--c-text-muted);
  margin: var(--sp-2) 0 0;
}

/* Success order summary (items + total) */
.success-order-summary {
  width: 100%;
  max-width: 480px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin: 0 0 var(--sp-4);
  text-align: left;
  box-sizing: border-box;
}
.success-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
}
.success-item-name { color: var(--c-text); flex: 1; }
.success-item-qty  { color: var(--c-text-muted); font-size: 12px; }
.success-item-price { color: var(--c-text); font-weight: 600; white-space: nowrap; }
.success-item-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

#success-cod,
#success-prepay {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
  max-width: 520px;
}
.success-message {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.6;
}
.success-tg-note {
  text-align: center;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  color: var(--c-text);
  background: rgba(212,175,55,.1);
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
  line-height: 1.7;
}
.success-tg-note a { color: var(--c-primary); font-weight: 600; }
.success-tg-note a:hover { color: var(--c-primary-dark); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   Reviews — public pages
   ═══════════════════════════════════════════════════════════════ */

/* Shared grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-3);
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ── Full page card ── */
.review-pub-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.review-pub-img-wrap {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2, #eee);
}
.review-pub-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.review-pub-img-wrap:hover img { transform: scale(1.04); }

.review-pub-card--video .review-pub-video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  position: relative;
}
.review-pub-card--video .review-pub-video-wrap iframe {
  width: 100%; height: 100%; border: 0;
}

/* Lazy YouTube embed */
.yt-lazy { display: block; width: 100%; height: 100%; }
.yt-lazy img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  opacity: .9;
  transition: opacity .15s;
}
.yt-lazy:hover .yt-play-btn { opacity: 1; }

.review-pub-meta {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}
.review-pub-author {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.review-pub-date {
  font-size: 12px;
  color: var(--c-muted);
  display: block;
  margin-top: 2px;
}
.review-pub-text {
  font-size: 13px;
  color: var(--c-muted);
  margin: var(--sp-2) 0 0;
  line-height: 1.5;
}

/* Spinner for public pages */
.spinner-pub {
  display: inline-block;
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Home section preview cards ── */
.home-reviews { background: var(--surface); }

.review-home-card {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-2, #eee);
  text-decoration: none;
  color: inherit;
}
.review-home-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.review-home-card:hover img { transform: scale(1.06); }

.review-home-card--video {
  background: #111;
  /* flex для центрування play-кнопки і meta overlay */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* YouTube thumbnail — absolute fill, поверх нього play + meta */
.review-home-card--video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-home-play {
  font-size: 32px;
  opacity: .8;
  color: #fff;
}

.review-home-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-2) var(--sp-3);
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.review-home-author {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

/* Breadcrumb (reused on reviews page) */
.breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: var(--sp-3); font-size: 13px; color: var(--c-muted); }
.breadcrumb-link { color: var(--c-muted); text-decoration: none; }
.breadcrumb-link:hover { color: var(--c-primary); }
.breadcrumb-sep { opacity: .5; }
.page-heading { font-family: var(--ff-head); font-size: clamp(24px, 5vw, 36px); font-weight: 700; margin: 0 0 var(--sp-6); }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lb-fade-in .15s ease;
}
.lightbox-backdrop[hidden] { display: none; }
@keyframes lb-fade-in { from { opacity: 0 } to { opacity: 1 } }

.lightbox-content {
  position: relative;
  max-width: min(92vw, 960px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--r-lg);
  display: block;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lb-video {
  width: min(90vw, 840px);
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lb-video iframe {
  width: 100%; height: 100%; border: none; display: block;
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 1001;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
