/* ═══════════════════════════════════════════
   STORE — общие стили магазина «Весёлая Затея»
   Primary #005bff · Discount #f91155
═══════════════════════════════════════════ */
:root {
  --store-primary: var(--primary, #005bff);
  --store-primary-hover: var(--primary-hover, #0047cc);
  --store-disc: var(--text-disc, #f91155);
  --store-text: var(--text-main, #1a1a1a);
  --store-sec: var(--text-sec, #666);
  --store-border: var(--border, #e8e8e8);
  --store-bg: var(--bg-page, #f5f5f5);
  --store-radius: 12px;
  --touch: 44px;
}

.store-page {
  padding-top: 110px;
  min-height: 60vh;
}
body.has-promo-strip .store-page { padding-top: calc(110px + var(--promo-h, 38px)); }
@media (max-width: 768px) {
  .store-page { padding-top: 96px; }
  body.has-promo-strip .store-page { padding-top: calc(96px + var(--promo-h, 38px)); }
}

/* Shared outline icons */
.si {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 0;
  flex-shrink: 0;
  color: inherit;
}
.si svg { display: block; }
.si-stars { display: inline-flex; align-items: center; gap: 2px; }
.si-star.is-on { color: #f5a623; }
.si-star.is-on svg { fill: currentColor; stroke: currentColor; }
.si-star.is-half { color: #f5a623; opacity: .85; }
.si-star.is-off { color: #d0d0d0; }
.mega-l1-ico .si svg { width: 18px; height: 18px; }
.ga-hub-ico { display: inline-flex; color: var(--ga-accent, var(--store-primary)); }
.ga-hub-ico .si svg { width: 28px; height: 28px; }
.feature-ico .si { color: var(--store-primary); }
.pcard-stars .si-stars { vertical-align: middle; }

.store-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
@media (max-width: 600px) {
  .store-wrap { padding: 0 16px 100px; }
}

.store-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--store-text);
}
.store-sub {
  font-size: 15px;
  color: var(--store-sec);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 560px;
}

.store-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--store-sec);
  margin-bottom: 20px;
}
.store-breadcrumb a { color: var(--store-sec); transition: color .2s; }
.store-breadcrumb a:hover { color: var(--store-primary); }
.store-breadcrumb svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0;
}

/* Product card */
.pcard {
  background: #fff;
  border-radius: var(--store-radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  border: 1.5px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  animation: pcardIn .45s ease both;
}
.pcard:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-4px);
  border-color: #e0e0e0;
}
@keyframes pcardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pcard-img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f8f8f8;
  overflow: hidden;
}
.pcard-img-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s;
}
.pcard-img-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard:hover .pcard-img-content { transform: scale(1.07); }

.pcard-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  background: var(--store-disc);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
.pcard-badge.hit { background: #111; }
.pcard-badge.new { background: #22c55e; }

.pcard-fav {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 40px; height: 40px;
  min-width: var(--touch);
  min-height: var(--touch);
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: #ccc;
}
.pcard-fav svg { width: 18px; height: 18px; }
.pcard-fav:hover,
.pcard-fav.active { color: var(--store-disc); }
.pcard-fav.active svg { fill: var(--store-disc); stroke: var(--store-disc); }

.pcard-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.pcard-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--store-text);
  letter-spacing: -.3px;
}
.pcard-old {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
}
.pcard-disc-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--store-disc);
}
.pcard-name {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}
.pcard-stars { color: #f5a623; font-size: 12px; letter-spacing: .5px; }
.pcard-rev-count { color: #aaa; font-size: 11px; }

.pcard-cart {
  display: none;
  width: 100%;
  min-height: 40px;
  padding: 10px 0;
  background: var(--store-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  transition: all .2s;
}
.pcard:hover .pcard-cart { display: block; }
.pcard-cart:hover {
  background: var(--store-primary-hover);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .pcard-cart { display: block; font-size: 12px; min-height: var(--touch); }
  .pcard-price { font-size: 16px; }
  .pcard-name { font-size: 12px; }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Catalog */
.cat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; gap: 16px; }
}

.cat-sidebar {
  background: #fff;
  border-radius: var(--store-radius);
  border: 1px solid var(--store-border);
  padding: 8px;
  position: sticky;
  top: 120px;
}
@media (max-width: 900px) {
  .cat-sidebar {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-sidebar::-webkit-scrollbar { display: none; }
}

.cat-l1 {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--touch);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--store-text);
  transition: background .2s, color .2s;
  text-align: left;
  flex-shrink: 0;
}
.cat-l1:hover { background: #f5f7ff; }
.cat-l1.active {
  background: var(--store-primary);
  color: #fff;
}
.cat-l1 img,
.cat-l1 .cat-l1-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  background: #f0f0f0;
  overflow: hidden;
}
.cat-l1 img { transform: scale(1.12); }
.cat-l1 .cat-l1-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-l1 .cat-l1-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cat-l1.active .cat-l1-ico { background: rgba(255,255,255,.2); }

@media (max-width: 900px) {
  .cat-l1 {
    flex-direction: column;
    width: 88px;
    padding: 10px 8px;
    font-size: 11px;
    text-align: center;
    gap: 6px;
  }
  .cat-l1 span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .subcat-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
  }
  .subcat-grid::-webkit-scrollbar { display: none; }
}

.subcat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: #fff;
  border: 1.5px solid var(--store-border);
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--store-text);
  transition: all .2s;
  min-height: 100px;
  flex-shrink: 0;
  width: 110px;
}
.subcat-chip:hover {
  border-color: var(--store-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,91,255,.12);
}
.subcat-chip.active {
  border-color: var(--store-primary);
  background: #f0f5ff;
  color: var(--store-primary);
}
.subcat-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  box-shadow: inset 0 0 0 3px #fff;
}
.subcat-circle svg {
  width: 24px; height: 24px;
  stroke: #333; fill: none; stroke-width: 1.5;
}
.subcat-chip span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px;
  background: #fff;
  border-radius: var(--store-radius);
  border: 1px solid var(--store-border);
}
@media (max-width: 768px) {
  .filters-bar {
    position: sticky;
    top: 90px;
    z-index: 50;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters-bar::-webkit-scrollbar { display: none; }
}

.filter-select,
.filter-input {
  height: var(--touch);
  min-height: var(--touch);
  padding: 0 14px;
  border: 1.5px solid var(--store-border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--store-text);
  outline: none;
  transition: border-color .2s;
  flex-shrink: 0;
}
.filter-select:focus,
.filter-input:focus { border-color: var(--store-primary); }
.filter-input { width: 100px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--touch);
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--store-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--store-sec);
  background: #fff;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
}
.filter-chip:hover { border-color: #ccc; }
.filter-chip.active {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: #fff;
}
.filter-chip svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cat-count { font-size: 13px; color: var(--store-sec); }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: var(--store-radius);
  border: 1px solid var(--store-border);
}
.empty-state svg {
  width: 48px; height: 48px;
  stroke: #ccc; fill: none; stroke-width: 1.5;
  margin: 0 auto 16px;
  display: block;
}
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--store-sec); margin-bottom: 20px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 24px;
  background: var(--store-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  transition: all .2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--store-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,91,255,.3);
}
.btn-primary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 24px;
  background: #fff;
  color: var(--store-text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--store-border);
  transition: all .2s;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-secondary:hover { border-color: #ccc; background: #fafafa; }
.btn-disc { background: var(--store-disc); }
.btn-disc:hover {
  background: #d60e48;
  box-shadow: 0 6px 20px rgba(249,17,85,.3);
}

.sticky-cart-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: #fff;
  border-top: 1px solid var(--store-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-cart-bar.show { display: flex; align-items: center; gap: 12px; }
.sticky-cart-bar .scb-info { flex: 1; min-width: 0; }
.sticky-cart-bar .scb-count { font-size: 12px; color: var(--store-sec); }
.sticky-cart-bar .scb-total { font-size: 18px; font-weight: 800; }
.sticky-cart-bar .btn-primary { flex-shrink: 0; }
@media (min-width: 769px) {
  .sticky-cart-bar { display: none !important; }
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
}

.gallery-main {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--store-border);
  aspect-ratio: 1;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 72px; height: 72px;
  min-width: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .7;
  transition: all .2s;
  background: #f5f5f5;
  padding: 0;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--store-primary);
  opacity: 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.product-brand {
  font-size: 13px;
  color: var(--store-sec);
  margin-bottom: 16px;
}
.product-brand a { color: var(--store-primary); font-weight: 600; }
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.product-price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}
.product-old {
  font-size: 18px;
  color: #bbb;
  text-decoration: line-through;
}
.product-disc-badge {
  background: var(--store-disc);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.product-actions .btn-primary { flex: 1; min-width: 160px; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--store-border);
  border-radius: 10px;
  overflow: hidden;
  height: var(--touch);
}
.qty-control button {
  width: var(--touch);
  height: var(--touch);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--store-text);
  transition: background .15s;
}
.qty-control button:hover { background: #f5f5f5; }
.qty-control span {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.specs-table tr { border-bottom: 1px solid #f0f0f0; }
.specs-table td {
  padding: 12px 0;
  font-size: 14px;
}
.specs-table td:first-child {
  color: var(--store-sec);
  width: 40%;
}
.specs-table td:last-child { font-weight: 600; }

.section-block {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--store-border);
  padding: 28px;
  margin-bottom: 24px;
}
.section-block h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.3px;
}

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.review-item:last-child { border-bottom: none; }
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f0f5ff;
  color: var(--store-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.review-name { font-weight: 700; font-size: 14px; }
.review-date { font-size: 12px; color: #aaa; }
.review-text { font-size: 14px; line-height: 1.6; color: #444; }

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: var(--store-radius);
  border: 1px solid var(--store-border);
  margin-bottom: 12px;
  align-items: center;
  animation: pcardIn .35s ease both;
}
@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
  .cart-item-right {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.cart-item-img {
  width: 88px; height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.cart-item-brand { font-size: 12px; color: var(--store-sec); margin-bottom: 8px; }
.cart-item-price { font-size: 16px; font-weight: 800; }
.cart-item-remove {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #aaa;
  transition: all .2s;
}
.cart-item-remove:hover { background: #fff0f3; color: var(--store-disc); }
.cart-item-remove svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.cart-summary {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--store-border);
  padding: 24px;
  position: sticky;
  top: 120px;
}
.cart-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--store-sec);
}
.cart-row.total {
  font-size: 20px;
  font-weight: 800;
  color: var(--store-text);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--store-border);
}
.cart-summary .btn-primary { width: 100%; margin-top: 16px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--store-text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  height: var(--touch);
  padding: 0 14px;
  border: 1.5px solid var(--store-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.form-textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--store-primary); }
.form-error {
  color: var(--store-disc);
  font-size: 13px;
  margin-top: 6px;
}
.form-tabs {
  display: flex;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.form-tab {
  flex: 1;
  min-height: var(--touch);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--store-sec);
  transition: all .2s;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.form-tab.active {
  background: #fff;
  color: var(--store-text);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.content-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--store-border);
  padding: 36px;
  max-width: 800px;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .content-card { padding: 24px 18px; }
}
.content-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 28px 0 12px;
  letter-spacing: -.3px;
}
.content-card h2:first-child { margin-top: 0; }
.content-card p { margin-bottom: 12px; font-size: 15px; color: #444; }
.content-card ul {
  margin: 0 0 16px 20px;
  font-size: 15px;
  color: #444;
}
.content-card li { margin-bottom: 6px; }
.content-card a { color: var(--store-primary); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-item {
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  padding: 24px;
  transition: transform .25s, box-shadow .25s;
}
.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.feature-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #f0f5ff;
  color: var(--store-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.feature-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--store-sec); line-height: 1.5; margin: 0; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: #fff;
  border: 1.5px solid var(--store-border);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  transition: all .25s;
}
.brand-card:hover {
  border-color: var(--store-primary);
  color: var(--store-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,91,255,.1);
}

.promo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.promo-banner h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.promo-banner p { font-size: 13px; opacity: .7; margin: 0; }
.promo-banner .btn-primary { margin-left: auto; flex-shrink: 0; }
@media (max-width: 600px) {
  .promo-banner { flex-direction: column; align-items: flex-start; }
  .promo-banner .btn-primary { margin-left: 0; width: 100%; }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .25s;
}
.contact-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.contact-card .feature-ico { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-card p,
.contact-card a { font-size: 15px; color: var(--store-text); line-height: 1.5; }

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
}
.profile-nav {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--store-border);
  overflow: hidden;
}
.profile-nav a,
.profile-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--touch);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--store-text);
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.profile-nav a:hover,
.profile-nav button:hover { background: #f8f9ff; }
.profile-nav a.active { background: #f0f5ff; color: var(--store-primary); font-weight: 700; }
.profile-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.auth-box {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--store-border);
  padding: 32px;
}
.auth-box h1 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.auth-box .store-sub { text-align: center; margin: 0 auto 24px; }

.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch);
  padding: 10px 14px;
  border: 1.5px solid var(--store-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s;
  font-size: 14px;
  font-weight: 500;
}
.pay-option:has(input:checked),
.pay-option.checked {
  border-color: var(--store-primary);
  background: #f0f5ff;
}
.pay-option input { accent-color: var(--store-primary); width: 18px; height: 18px; }

.legal-consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
  cursor: pointer;
}
.legal-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--store-primary);
}
.legal-check a {
  color: var(--store-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-check a:hover { opacity: .85; }

.order-success {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--store-border);
  max-width: 480px;
  margin: 0 auto;
}
.order-success .os-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e8fce8;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.order-success .os-ico svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 2; }
.order-success h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.order-success p { color: var(--store-sec); margin-bottom: 24px; }

.h-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.h-scroll::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════
   GOLDEN-APPLE STYLE L2 + MOBILE POLISH
═══════════════════════════════════════════ */
.ga-stage-head { margin-bottom: 8px; }
.ga-stage-head--l2 { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.ga-stage-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ga-accent, var(--store-primary));
  background: color-mix(in srgb, var(--ga-accent, var(--store-primary)) 10%, #fff);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}

.ga-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.ga-hub-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 22px;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
  min-height: 116px;
  animation: gaRise .45s ease both;
}
@keyframes gaRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.ga-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  border-color: color-mix(in srgb, var(--ga-accent, #005bff) 35%, #fff);
}
.ga-hub-visual {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ga-accent, #005bff) 14%, #fff);
  border: 2.5px solid #111;
  box-shadow: inset 0 0 0 5px #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.ga-hub-card:hover .ga-hub-visual { transform: scale(1.04); }
.ga-hub-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.12); }
.ga-hub-ico { line-height: 0; }
.ga-hub-name { font-size: 18px; font-weight: 800; letter-spacing: -.35px; margin-bottom: 4px; }
.ga-hub-count { font-size: 12px; color: var(--store-sec); }
.ga-hub-arrow {
  width: 22px; height: 22px; stroke: #ccc; fill: none; stroke-width: 2;
  transition: stroke .2s, transform .25s;
}
.ga-hub-card:hover .ga-hub-arrow { stroke: var(--ga-accent, var(--store-primary)); transform: translateX(4px); }

/* L2 stage */
.ga-l2-stage {
  position: relative;
  margin: 0 0 28px;
  padding: 8px 0 4px;
}
.ga-l2-banner {
  aspect-ratio: 4 / 1;
  width: 100%;
  height: auto;
  max-height: 180px;
  border-radius: 24px; margin-bottom: 24px;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.ga-l2-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(245,245,245,.88));
}

.ga-l2 { margin-bottom: 20px; }
.ga-l2-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.ga-l2-title { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.ga-l2-all { font-size: 13px; font-weight: 600; color: var(--store-primary); white-space: nowrap; }
.ga-l2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px 8px;
}
.ga-l2--hub .ga-l2-grid {
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 18px 14px;
  max-width: 920px;
  margin: 0 auto;
}
.ga-l2-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 8px 12px; text-align: center; border-radius: 20px;
  background: transparent; border: 1.5px solid transparent;
  transition: background .22s, border-color .22s, transform .22s, box-shadow .22s;
  min-height: 124px;
  animation: gaRise .4s ease both;
}
.ga-l2--chips .ga-l2-tile {
  background: #fff;
  border-color: #f0f0f0;
  min-height: 118px;
}
.ga-l2-tile:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.07);
  border-color: #eee;
}
.ga-l2-tile.active {
  border-color: var(--store-primary);
  background: color-mix(in srgb, var(--store-primary) 6%, #fff);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--store-primary) 18%, transparent);
}
.ga-l2-circle {
  width: 76px; height: 76px; border-radius: 50%;
  background: color-mix(in srgb, var(--ga-accent, #111) 12%, #f7f7f7);
  border: 2.5px solid #111;
  box-shadow: inset 0 0 0 4px #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.ga-l2-tile:hover .ga-l2-circle { transform: scale(1.06); }
.ga-l2--hub .ga-l2-circle { width: 96px; height: 96px; box-shadow: inset 0 0 0 5px #fff; }
.ga-l2-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.12); }
.ga-l2-circle svg { width: 28px; height: 28px; stroke: #333; fill: none; stroke-width: 1.5; }
.ga-l2-tile span {
  font-size: 12.5px; font-weight: 650; line-height: 1.3; color: var(--store-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -.15px;
}
.ga-l2-tile.active span { color: var(--store-primary); }
.ga-l2-count {
  position: absolute; top: 10px; right: 10px;
  font-style: normal; font-size: 10px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: #111; color: #fff;
}

.ga-l2-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0 8px; color: var(--store-sec); font-size: 13px; font-weight: 600;
}
.ga-l2-divider::before, .ga-l2-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--store-border);
}
.ga-l2-divider span { white-space: nowrap; }

.cat-layout--flat { grid-template-columns: 1fr; }

.empty-illustration { margin-bottom: 8px; opacity: .95; }

/* Promo blocks on homepage */
.promo-sec { padding: 8px 0 28px; }
.promo-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promo-card {
  position: relative; overflow: hidden; border-radius: 18px;
  aspect-ratio: 16 / 9;
  min-height: 0;
  color: #fff; display: flex; align-items: flex-end;
  background: #111; text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.promo-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.01); transition: transform .45s;
}
.promo-card:hover .promo-card-bg { transform: scale(1.05); }
.promo-card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.72) 100%);
}
.promo-card-body { position: relative; z-index: 1; padding: 20px; }
.promo-card-eye { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.promo-card-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; margin-bottom: 4px; }
.promo-card-sub { font-size: 13px; opacity: .85; }

@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .ga-hub { grid-template-columns: 1fr; }
  .ga-l2--hub .ga-l2-circle { width: 84px; height: 84px; }
}
@media (max-width: 768px) {
  .filters-bar { top: 72px; }
  .cat-sidebar { top: auto; }
  .store-page { padding-top: 92px; }
  .promo-inner { padding: 0 16px; }
  .ga-l2-banner { max-height: 110px; border-radius: 16px; }
  .ga-stage-head--l2 { text-align: left; }
}
@media (max-width: 600px) {
  .promo-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard-body { padding: 10px; }
  .pcard-price { font-size: 16px; }
  .pcard-name { font-size: 12px; }
  .ga-l2-grid,
  .ga-l2--hub .ga-l2-grid {
    display: flex; overflow-x: auto; gap: 10px;
    padding: 4px 2px 10px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: none;
  }
  .ga-l2-grid::-webkit-scrollbar { display: none; }
  .ga-l2-tile { width: 104px; flex-shrink: 0; min-height: 110px; }
  .ga-l2--hub .ga-l2-tile { width: 112px; padding-top: 10px; }
  .ga-l2-circle, .ga-l2--hub .ga-l2-circle { width: 72px; height: 72px; }
  .ga-l2-count { top: 6px; right: 6px; }
  .cat-l1 { width: 76px; font-size: 10px; }
  .ga-hub-card { grid-template-columns: 76px 1fr auto; min-height: 96px; padding: 12px; border-radius: 18px; }
  .ga-hub-visual { width: 76px; height: 76px; }
  .ga-hub-name { font-size: 16px; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* Cookie vs sticky cart */
@media (max-width: 768px) {
  .cookie-banner { bottom: 0; }
  body:has(.sticky-cart-bar.show) .cookie-banner { bottom: 64px; }
}

/* ===== Yandex Maps blocks ===== */
.site-map-block{
  margin: 24px 0 28px;
  background: #fff;
  border: 1px solid var(--store-border,#e8e8e8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17,24,39,.05);
}
.site-map-head{ padding: 16px 18px 8px; }
.site-map-title{ font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.site-map-hint{ font-size: 13px; color: #667085; margin-top: 4px; line-height: 1.45; }
.site-map-frame{ width: 100%; min-height: 320px; background: #f3f4f6; }
.site-map-frame iframe{ width: 100%; height: 360px; border: 0; display: block; }
.site-map-addr{
  padding: 12px 18px 16px;
  font-size: 13px;
  color: #444;
  border-top: 1px solid #f0f0f0;
}
.checkout-map{ margin: 0; box-shadow: none; }
.checkout-map .site-map-hint{ padding: 0 0 10px; }

/* ===== AI Assistant FAB — только значок ===== */
.ai-fab{
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 9200;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0b3d91 0%, #005bff 55%, #00a3ff 100%);
  box-shadow: 0 8px 20px rgba(0,91,255,.32), 0 2px 6px rgba(0,0,0,.1);
  font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ai-fab:hover{ transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(0,91,255,.4); }
.ai-fab:active{ transform: translateY(0) scale(.96); }
.ai-fab-ico{
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent;
}
.ai-fab-ico svg{ width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.ai-fab-text{ display: none !important; }
.ai-fab-pulse{
  position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(0,163,255,.4);
  animation: aiFabPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes aiFabPulse{
  0%{ transform: scale(.92); opacity: .7; }
  70%{ transform: scale(1.08); opacity: 0; }
  100%{ opacity: 0; }
}
.ai-chat{
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 120px));
  z-index: 9210;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e6e8ee;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.ai-chat.open{ display: flex; animation: aiChatIn .28s ease; }
@keyframes aiChatIn{
  from{ opacity: 0; transform: translateY(12px) scale(.98); }
  to{ opacity: 1; transform: none; }
}
.ai-chat-head{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0b3d91, #005bff);
  color: #fff;
}
.ai-chat-head strong{ font-size: 15px; font-weight: 800; }
.ai-chat-head span{ display:block; font-size: 11px; opacity: .85; margin-top: 2px; }
.ai-chat-close{
  width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.16); color: #fff; cursor: pointer;
  font-size: 18px; line-height: 1;
}
.ai-chat-body{
  flex: 1; overflow: auto; padding: 14px;
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 40%);
  display: flex; flex-direction: column; gap: 10px;
}
.ai-msg{
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-msg.bot{ align-self: flex-start; background: #fff; border: 1px solid #e8eaf0; color: #1f2937; border-bottom-left-radius: 4px; }
.ai-msg.user{ align-self: flex-end; background: #005bff; color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.err{ align-self: flex-start; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ai-chat-form{
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid #eef0f4; background: #fff;
}
.ai-chat-form input{
  flex: 1; min-height: 44px; border: 1.5px solid #e5e7eb; border-radius: 12px;
  padding: 0 12px; font: inherit; outline: none;
}
.ai-chat-form input:focus{ border-color: #005bff; }
.ai-chat-form button{
  min-height: 44px; min-width: 44px; border: 0; border-radius: 12px;
  background: #005bff; color: #fff; cursor: pointer; font-weight: 700; padding: 0 14px;
}
.ai-chat-form button:disabled{ opacity: .5; cursor: wait; }
@media (max-width: 768px){
  .ai-fab{ right: 12px; bottom: 78px; width: 40px; height: 40px; }
  .ai-fab-ico svg{ width: 16px; height: 16px; }
  .ai-chat{ right: 12px; left: 12px; width: auto; bottom: 130px; height: min(62vh, 520px); }
  body:has(.sticky-cart-bar.show) .ai-fab{ bottom: 140px; }
  body:has(.sticky-cart-bar.show) .ai-chat{ bottom: 200px; }
}
