/* SiteGen — публичная часть. Токены (--accent, --bg, …) задаются в layout из настроек темы. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  background: var(--bg, #f5f7fb);
  color: var(--text, #0f172a);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand-name, .error-code { font-family: var(--font-head, inherit); line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: color-mix(in srgb, var(--text) 55%, transparent); }
.section { margin: 44px auto; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-line { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .35; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: calc(var(--radius, 18px) * .62);
  border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border, #e2e8f0); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: calc(var(--radius, 18px) * .7); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border, #e6eaf2);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--text); }
.brand-logo { height: 42px; width: auto; border-radius: 8px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; color: var(--muted, #64748b); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-search { flex: 1; max-width: 420px; display: flex; position: relative; }
.header-search input {
  width: 100%; padding: 10px 44px 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--border, #e2e8f0); background: var(--bg); color: var(--text);
  font: inherit; font-size: .92rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.header-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.header-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  display: grid; place-items: center;
}
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none !important; transition: background .15s, color .15s; }
.main-nav a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.nav-count { font-size: .72rem; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.has-sub { position: relative; }
.sub-nav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; z-index: 40;
  background: var(--surface); border: 1px solid var(--border, #e6eaf2); border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(2, 8, 23, .18); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a { display: flex; justify-content: space-between; width: 100%; padding: 8px 12px; font-weight: 500; }
.sub-nav a span { font-size: .75rem; color: var(--muted, #64748b); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2.4px; border-radius: 2px; background: var(--text); margin: 4.5px 0; transition: .2s; }

/* ---------- Ad slots ---------- */
.ad-slot { margin: 14px auto; min-height: 0; }
.ad-slot:empty { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 90% at 12% 8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    radial-gradient(50% 80% at 88% 14%, color-mix(in srgb, var(--accent2) 24%, transparent), transparent 60%),
    radial-gradient(40% 60% at 55% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
    var(--bg);
}
.hero-image { background-size: cover; background-position: center; }
.hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(2,8,23,.25), rgba(2,8,23,.55)); }
.hero-image .hero-inner { position: relative; }
.hero-blobs i {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
  background: var(--accent2); animation: float 14s ease-in-out infinite;
}
.hero-blobs i:nth-child(1) { width: 340px; height: 340px; left: -80px; top: -60px; background: var(--accent); }
.hero-blobs i:nth-child(2) { width: 260px; height: 260px; right: 6%; bottom: -90px; animation-delay: -5s; }
.hero-blobs i:nth-child(3) { width: 160px; height: 160px; right: 30%; top: -40px; animation-delay: -9s; opacity: .35; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(28px) scale(1.06); } }
.hero-inner { padding: clamp(48px, 8vw, 96px) 0; position: relative; }
.hero-content { max-width: 640px; }
.hero-kicker { margin: 0 0 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; color: var(--accent); }
.hero-image .hero-kicker { color: #fff; opacity: .85; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; letter-spacing: -.02em; }
.hero-image .hero-title, .hero-image .hero-sub { color: #fff; }
.hero-sub { margin: 0 0 22px; font-size: 1.06rem; color: var(--muted, #475569); max-width: 54ch; }
.hero-search { display: flex; gap: 10px; max-width: 520px; }
.hero-search input {
  flex: 1; padding: 13px 18px; font: inherit; color: var(--text);
  border-radius: calc(var(--radius, 18px) * .7); border: 1.5px solid var(--border, #e2e8f0);
  background: color-mix(in srgb, var(--surface) 92%, transparent); outline: none;
  transition: box-shadow .2s, border-color .2s;
}
.hero-image .hero-search input { background: rgba(255,255,255,.92); border-color: transparent; }
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.hero-stats { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-image .stat strong { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; }
.stat span { font-size: .8rem; color: var(--muted, #64748b); }
.hero-image .stat span { color: rgba(255,255,255,.75); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; display: flex; gap: 14px; align-items: center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border, #e6eaf2); border-radius: var(--radius, 18px);
  padding: 14px; color: var(--text); text-decoration: none !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--accent) 35%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.cat-cover { flex: none; width: 74px; height: 74px; border-radius: calc(var(--radius, 18px) * .6); overflow: hidden; background: color-mix(in srgb, var(--accent) 10%, var(--bg)); display: grid; place-items: center; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-card:hover .cat-cover img { transform: scale(1.12); }
.cat-emoji { font-size: 1.8rem; }
.cat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-body strong { font-size: 1.02rem; }
.cat-count { font-size: .8rem; color: var(--accent); font-weight: 700; }
.cat-sub { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.cat-sub em { font-style: normal; font-size: .72rem; background: var(--bg); border: 1px solid var(--border, #e6eaf2); border-radius: 999px; padding: 1px 8px; color: var(--muted, #64748b); }
.cat-arrow { margin-left: auto; font-size: 1.2rem; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: .2s; }
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border, #e6eaf2); border-radius: var(--radius, 18px);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  transform-style: preserve-3d; will-change: transform;
}
body.fx-tilt .product-card:hover { box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--accent) 38%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.product-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.product-card:hover::before { opacity: .9; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .card-media img { transform: scale(1.07); }
.card-noimage { font-size: 2.4rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 45%, transparent); }
.badge { position: absolute; top: 10px; left: 10px; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; letter-spacing: .02em; }
.badge-hit { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.badge-in { background: color-mix(in srgb, #10b981 16%, transparent); color: #059669; }
.badge-out { background: color-mix(in srgb, #ef4444 14%, transparent); color: #dc2626; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; gap: 6px; }
.card-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.card-title a { color: var(--text); text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-title a:hover { color: var(--accent); }
.card-desc { margin: 0; font-size: .84rem; color: var(--muted, #64748b); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.card-price { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 9px 8px; font-size: .86rem; }

/* ---------- Page hero / chips / breadcrumbs ---------- */
.page-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--border, #e6eaf2); padding: 26px 0 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; font-size: .84rem; }
.breadcrumbs li { color: var(--muted, #64748b); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--muted, #64748b); }
.breadcrumbs a:hover { color: var(--accent); }
.category-hero-row { display: flex; align-items: center; gap: 18px; }
.category-hero-img { width: 84px; height: 84px; border-radius: calc(var(--radius, 18px) * .7); object-fit: cover; box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--accent) 40%, transparent); }
.category-hero-row p { margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--border, #e2e8f0); color: var(--text);
  font-size: .84rem; font-weight: 600; text-decoration: none !important; transition: .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip b { color: var(--accent); font-size: .76rem; }

/* ---------- Catalog layout ---------- */
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; margin: 30px auto; align-items: start; }
.filters { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--border, #e6eaf2); border-radius: var(--radius, 18px); padding: 18px; }
.filters h3 { margin: 0 0 12px; font-size: 1.02rem; }
.filter-group { margin-bottom: 16px; }
.filter-group > label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #64748b); margin-bottom: 8px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input, .filters select {
  width: 100%; padding: 9px 12px; font: inherit; font-size: .9rem; color: var(--text);
  border: 1.5px solid var(--border, #e2e8f0); border-radius: 10px; background: var(--bg); outline: none;
}
.price-range input:focus { border-color: var(--accent); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-check { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--border, #e2e8f0); cursor: pointer; transition: .15s; }
.tag-check span { color: var(--muted); font-size: .72rem; }
.tag-check.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.tag-check input { display: none; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { flex: 1; padding: 9px 8px; font-size: .88rem; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.sort-form select { padding: 8px 12px; font: inherit; font-size: .9rem; border: 1.5px solid var(--border, #e2e8f0); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.sort-form label { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted, #64748b); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 30px 0 10px; }
.page-link { min-width: 40px; padding: 9px 13px; text-align: center; border-radius: 10px; border: 1.5px solid var(--border, #e2e8f0); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none !important; transition: .15s; }
a.page-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.page-link.is-current { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.page-dots { align-self: center; color: var(--muted); }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin: 26px auto; }
.product-gallery { position: sticky; top: 86px; }
.gallery-main { border-radius: var(--radius, 18px); overflow: hidden; border: 1px solid var(--border, #e6eaf2); background: var(--surface); aspect-ratio: 4/3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-empty { font-size: 4rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 30%, transparent); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--border, #e2e8f0); cursor: pointer; background: var(--surface); transition: .15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--accent); }
.product-meta { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.product-short { font-size: 1.04rem; color: color-mix(in srgb, var(--text) 80%, transparent); margin: 12px 0 0; }
.buy-box {
  margin-top: 20px; padding: 20px; border-radius: var(--radius, 18px);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  position: relative; overflow: hidden;
}
.buy-box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 25%, transparent), transparent 70%); }
.buy-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.btn-buy-big { width: 100%; }
.buy-note { font-size: .78rem; margin: 10px 0 0; }
.product-cat { margin-top: 14px; font-size: .92rem; }
.product-fulltext { background: var(--surface); border: 1px solid var(--border, #e6eaf2); border-radius: var(--radius, 18px); padding: 24px 28px; max-width: 860px; line-height: 1.75; white-space: normal; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; background: color-mix(in srgb, var(--text) 96%, #000); color: color-mix(in srgb, var(--text) 12%, #fff); }
.site-footer a { color: color-mix(in srgb, var(--text) 30%, #fff); }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 36px 0 22px; }
.footer-brand { font-size: 1.2rem; font-weight: 800; }
.footer-tag { font-size: .86rem; opacity: .7; margin: 6px 0 0; }
.footer-nav strong, .footer-note strong { display: block; margin-bottom: 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.footer-nav ul, .footer-note ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.footer-copy { padding: 14px 0 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; opacity: .7; }

/* ---------- Empty / error ---------- */
.empty-state { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--border, #d7dee9); border-radius: var(--radius, 18px); }
.empty-emoji { font-size: 3rem; margin-bottom: 8px; }
.empty-state .hero-search { margin: 18px auto 14px; }
.error-page .error-code { font-size: 5rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }
.seo-text { background: var(--surface); border: 1px solid var(--border, #e6eaf2); border-radius: var(--radius, 18px); padding: 24px 28px; color: color-mix(in srgb, var(--text) 80%, transparent); max-width: 1000px; }
.seo-text h2 { margin-top: 0; }
.debug-trace { text-align: left; background: #0f172a; color: #fca5a5; padding: 14px; border-radius: 12px; overflow: auto; font-size: .75rem; }

/* ---------- Reveal animations ---------- */
body.fx-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); transition-delay: var(--rd, 0ms); }
body.fx-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.fx-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-blobs i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border, #e6eaf2);
    box-shadow: 0 24px 40px -20px rgba(2,8,23,.25); margin: 0; padding: 10px 16px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-left: 14px; display: none; }
  .has-sub.open .sub-nav { display: block; }
  .has-sub > a::after { content: "▾"; margin-left: auto; }
  .nav-burger { display: block; margin-left: auto; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .product-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-gallery { position: static; }
}
@media (max-width: 620px) {
  .hero-stats { gap: 18px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .category-hero-img { display: none; }
}
