:root {
  --bg: #1a1d23;
  --bg-2: #22262e;
  --panel: #2a2f38;
  --panel-2: #323844;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: #3d4450;
  --white: #ffffff;
  --accent: #e8eaed;
  --brand: #e06b52;
  --brand-hover: #ec8068;
  --brand-soft: rgba(224, 107, 82, 0.14);
  --brand-glow: rgba(224, 107, 82, 0.35);
  --max: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
body.age-locked { overflow: hidden; }
body.age-locked .site-root { filter: blur(4px); pointer-events: none; user-select: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.section-title { font-size: 26px; font-weight: 700; margin: 0 0 20px; color: var(--white); }
.section-title--upper { text-transform: uppercase; letter-spacing: 0.02em; font-size: 20px; }

.age-gate {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.82); padding: 16px;
}
.age-gate.hidden { display: none; }
.age-gate__box {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 28px; max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.age-gate__box h2 { margin: 16px 0 8px; font-size: 22px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; font-size: 13px; border-bottom: 1px solid var(--border);
  background: var(--bg-2); flex-wrap: wrap; gap: 8px;
}
.topbar__nav { display: flex; flex-wrap: wrap; gap: 16px; }
.topbar__nav a { color: var(--muted); }
.topbar__nav a:hover { color: var(--white); }
.topbar__auth { display: flex; gap: 16px; }

.warning-bar {
  background: var(--panel-2); color: var(--muted); text-align: center;
  font-size: 11px; font-weight: 600; padding: 8px 12px; letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.header { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.header__main {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 16px; align-items: center; padding: 16px;
}
@media (max-width: 900px) { .header__main { grid-template-columns: 1fr; } }
.logo {
  display: flex; align-items: center; gap: 8px; font-weight: 800;
  font-size: 22px; letter-spacing: 0.04em; color: var(--white);
}
.logo__mark { font-size: 28px; opacity: 0.9; }
.logo__accent { color: var(--brand); }
.header__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.header__phone { text-align: right; }
.phone { display: block; font-size: 20px; font-weight: 700; white-space: nowrap; color: var(--white); }
.phone__label { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font: inherit; font-weight: 600;
  padding: 10px 16px; border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--light { background: var(--accent); color: var(--bg); }
.btn--light:hover { background: var(--white); }
.btn--red, .btn--accent {
  background: var(--brand); color: var(--white);
  box-shadow: 0 2px 12px var(--brand-glow);
}
.btn--red:hover, .btn--accent:hover { background: var(--brand-hover); color: var(--white); }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--brand); color: var(--white); }
.btn--outline.btn--active, .pagination .btn--light {
  background: var(--brand); border-color: var(--brand); color: var(--white);
}
.btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--white); }
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--block { width: 100%; }

.toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 16px; flex-wrap: wrap; }
.store-picker-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 220px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px;
  text-align: left;
}
.store-picker-btn:hover { border-color: var(--brand); color: var(--white); }
.store-picker-btn__icon { flex-shrink: 0; color: var(--text); display: inline-flex; }
.store-picker-btn__icon svg { width: 18px; height: 18px; }
.store-picker-btn__text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 700px) {
  .store-picker-btn { max-width: 100%; flex: 1 1 100%; order: -1; }
}
.store-modal h3 { margin: 0 0 8px; color: var(--white); }
.store-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; max-height: 50vh; overflow-y: auto; }
.store-pick {
  width: 100%; text-align: left; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); padding: 12px 14px; border-radius: 6px; cursor: pointer; font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.store-pick:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--white); }
.modal--store { max-width: 440px; }
.modal--store .modal__inner { padding: 24px; }
.catalog-btn {
  background: var(--brand); color: var(--white); font-weight: 700;
  padding: 12px 20px; border-radius: 6px; white-space: nowrap;
  border: none; cursor: pointer; font: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 12px var(--brand-glow);
}
.catalog-btn:hover { background: var(--brand-hover); color: var(--white); }
.catalog-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-wrap { flex: 1; min-width: 200px; position: relative; }
.search {
  width: 100%; display: flex; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.search input {
  flex: 1; border: none; padding: 12px 16px; font: inherit;
  background: transparent; color: var(--text); min-width: 0;
}
.search input::placeholder { color: var(--muted); }
.search__clear {
  border: none; background: transparent; color: var(--muted); padding: 0 10px;
  cursor: pointer; font-size: 18px; line-height: 1; display: none;
}
.search__clear.visible { display: inline-flex; align-items: center; }
.search__clear:hover { color: var(--white); }
.search button[type="submit"] {
  border: none; background: transparent; color: var(--text);
  padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center;
}
.search button[type="submit"] svg { width: 18px; height: 18px; }
.search-hint {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: var(--muted); z-index: 50;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); display: none;
}
.search-hint.visible { display: block; }
.search-hint strong { color: var(--white); font-weight: 600; }
.toolbar__icons { display: flex; gap: 8px; }
.icon-btn {
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 6px; font-style: normal; font-size: 14px;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--white); }
.icon-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.icon-btn em {
  font-style: normal; background: var(--brand); min-width: 20px; height: 20px;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--white);
}
.icon-btn em:empty, .icon-btn em[data-zero="1"] { background: var(--panel-2); color: var(--muted); }

.hero { padding: 32px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.hero h1 { margin: 0 0 8px; font-size: 32px; color: var(--white); }
.hero p { margin: 0; color: var(--muted); max-width: 560px; }

.catalog-section { padding: 32px 16px 48px; }
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; } .catalog-sidebar { display: none; } }
.catalog-sidebar {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; position: sticky; top: 16px;
}
.catalog-sidebar__home {
  width: 100%; text-align: left; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--white); padding: 10px 12px; border-radius: 6px; cursor: pointer;
  font: inherit; font-weight: 600; margin-bottom: 8px;
}
.catalog-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--muted); padding: 8px 10px; border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px;
}
.catalog-sidebar__home:hover { border-color: var(--brand); }
.sidebar-link:hover { background: var(--panel-2); color: var(--white); }
.sidebar-link.active {
  background: var(--brand-soft); color: var(--white);
  box-shadow: inset 3px 0 0 var(--brand);
}
.sidebar-link:hover, .sidebar-link.active { background: var(--brand-soft); color: var(--white); }
.sidebar-link.active { box-shadow: inset 3px 0 0 var(--brand); }
.sidebar-link:not(.active):hover { background: var(--panel-2); box-shadow: none; }

.catalog-breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 12px; font-size: 13px; color: var(--muted);
}
.catalog-breadcrumbs button {
  background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; padding: 0;
}
.catalog-breadcrumbs button:hover { color: var(--brand-hover); text-decoration: underline; }
.catalog-breadcrumbs span.sep { opacity: 0.5; }

.catalog-main {
  display: flex; flex-direction: column; gap: 24px;
}
.catalog-main--search .catalog-grid { display: none !important; }

.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.catalog-grid[hidden],
.products-grid[hidden],
.catalog-pagination[hidden] {
  display: none !important;
}
.cat-tile {
  border: 1px solid var(--border); background: var(--panel); padding: 16px 10px 14px;
  text-align: center; border-radius: 8px; transition: border-color 0.15s, background 0.15s, transform 0.15s;
  cursor: pointer; color: inherit; min-height: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.cat-tile:hover { border-color: var(--brand); background: var(--panel-2); transform: translateY(-2px); }
.cat-tile__icon .cat-svg { width: 56px; height: 56px; display: block; }
.cat-tile__icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0;
}
.cat-tile__icon--lg { width: 72px; height: 72px; }
.cat-tile__icon--lg .cat-svg { width: 68px; height: 68px; }
.sidebar-link__icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--muted); }
.sidebar-link__icon .cat-svg { width: 20px; height: 20px; }
.sidebar-link:hover .sidebar-link__icon, .sidebar-link.active .sidebar-link__icon { color: var(--brand); }
.cat-tile__name { font-size: 12px; font-weight: 500; line-height: 1.3; }

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.product-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
}
.product-card__img {
  aspect-ratio: 1; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card__brand { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.product-card__name { font-size: 13px; font-weight: 500; line-height: 1.35; flex: 1; }
.product-card:hover { border-color: rgba(224, 107, 82, 0.45); }
.product-card__price { font-size: 18px; font-weight: 700; color: var(--white); }
.product-card__actions .btn--accent { font-weight: 600; }
.product-card__stock { font-size: 12px; color: var(--muted); }
.product-card__stock--out { color: #f87171; }
.product-card__actions { margin-top: 8px; }
.catalog-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 32px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
@media (max-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { text-align: center; font-size: 13px; color: var(--muted); }
.feature__icon {
  width: 48px; height: 48px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); border: 1px solid var(--border); border-radius: 50%;
  background: var(--panel);
}
.feature__icon svg { width: 24px; height: 24px; }

.promotions-section { padding: 40px 16px; }
.promo-grid { display: grid; gap: 16px; }
.promo-card {
  border: 1px solid var(--border); background: var(--panel); padding: 16px 20px;
  border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0;
}
.promo-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--white); }
.promo-card p { margin: 0; color: var(--muted); font-size: 14px; }

.about-section, .blog-section, .wholesale-section { padding: 40px 16px; max-width: var(--max); margin: 0 auto; }
.wholesale-form { display: grid; gap: 12px; max-width: 480px; margin-top: 16px; }
.wholesale-form input, .wholesale-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--panel); color: var(--text);
}
.wholesale-form input:focus, .wholesale-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft);
}

.addresses-section { background: var(--bg-2); padding: 48px 0; border-top: 1px solid var(--border); }
.addresses-grid { columns: 4 220px; column-gap: 32px; }
.store-item { break-inside: avoid; margin-bottom: 20px; }
.store-item__city { font-weight: 700; font-size: 14px; color: var(--white); margin-bottom: 4px; }
.store-item__addr { font-size: 12px; color: var(--muted); margin-top: 2px; }

.footer { border-top: 1px solid var(--border); padding: 32px 0 16px; font-size: 13px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.footer__18 { text-align: center; }
.badge-18 {
  width: 56px; height: 56px; border: 2px solid var(--brand); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; margin: 0 auto 8px; color: var(--white);
}
.badge-18--lg { width: 72px; height: 72px; font-size: 22px; }
.footer__legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }

.fab {
  position: fixed; border: none; cursor: pointer; border-radius: 50%;
  width: 44px; height: 44px; font-size: 20px; z-index: 100;
  background: var(--panel); color: var(--white); border: 1px solid var(--border);
}
.fab--up { right: 24px; bottom: 80px; }
.fab--up:hover { border-color: var(--brand); color: var(--brand); }
.age-gate__actions .btn--red { min-width: 160px; }

.modal {
  border: none; border-radius: 12px; padding: 0; max-width: 420px;
  width: calc(100% - 32px); background: var(--panel); color: var(--text);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.modal__inner { padding: 24px; }
.modal__inner h3 { margin: 0 0 8px; color: var(--white); }
.modal__inner input {
  width: 100%; margin: 12px 0; padding: 10px 12px; font: inherit;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg-2); color: var(--text);
}
.modal__actions { display: flex; gap: 8px; flex-wrap: wrap; }
