:root {
      --color-primary: #EA610F;
      --color-secondary: #0D1B2A;
      --color-accent: #FF9F1C;

      /* Text colors — body/headings stay readable regardless of theme primary */
      --color-text-primary:   #0D1B2A;
      --color-text-secondary: #4a5568;
      --color-text-muted:     #8a94a6;
      --color-text-heading:   #0D1B2A;

      /* Background colors — page, cards, hover states */
      --color-background-main:  #FBF8F4;
      --color-background-card:  #FFFFFF;
      --color-background-hover: #FFF1E6;

      /* Legacy aliases — kept so existing rules + customCSS keep working */
      --color-background: var(--color-background-main);
      --color-surface:    var(--color-background-card);
      --color-text:       var(--color-text-primary);

      --color-border: #efe1d3;
      --color-success: #10b981;
      --color-error: #f43f5e;

      --font-family: 'Inter', system-ui, sans-serif;
      --font-heading: 'Montserrat', sans-serif;
      --font-size-base: 15px;
      --line-height: 1.7;
      --font-weight-heading: 800;
      --font-weight-body: 400;

      --max-width: 1200px;
      --grid-columns: 4;
      --hero-height: 450px;
      --border-radius: 16px;
      --spacing: 28px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: var(--font-family);
      background: var(--color-background-main);
      color: var(--color-text-primary);
      line-height: var(--line-height);
      font-size: var(--font-size-base);
      font-weight: var(--font-weight-body);
    }
    h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-heading);
      font-weight: var(--font-weight-heading);
      color: var(--color-text-heading);
      line-height: 1.2;
    }
    .text-secondary { color: var(--color-text-secondary); }
    .text-muted     { color: var(--color-text-muted); }
    .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing); }

    header {
      background: var(--color-surface);
      border-bottom: 1px solid var(--color-border);
      padding: calc(var(--spacing) * 0.75) 0;
      position: sticky; top: 0; z-index: 100;
    }
    .header-content { display: flex; justify-content: space-between; align-items: center; }
    .logo {
      font-size: 28px; font-weight: var(--font-weight-heading);
      color: var(--color-primary); text-decoration: none;
      transition: opacity 0.2s;
    }
    .logo:hover { opacity: 0.8; }
    .logo { display: inline-flex; align-items: center; gap: 10px; }
    .logo-img { height: 40px; width: auto; object-fit: contain; vertical-align: middle; }
    .logo-name { font-size: 26px; font-weight: var(--font-weight-heading); color: var(--color-primary); line-height: 1; }
    @media (max-width: 480px) { .logo-name { font-size: 20px; } .logo-img { height: 32px; } }

    .hero {
      background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
      color: white;
      padding: calc(var(--spacing) * 3) 0;
      text-align: center;
      min-height: var(--hero-height);
      display: flex; align-items: center; justify-content: center;
    }
    .hero h1 { color: white; font-size: 48px; margin-bottom: 16px; }
    .hero p { font-size: 20px; opacity: 0.9; }

    .products { padding: calc(var(--spacing) * 2.5) 0; }
    .products h2 { font-size: 32px; margin-bottom: calc(var(--spacing) * 1.3); text-align: center; }
    .product-grid {
      display: grid;
      grid-template-columns: repeat(var(--grid-columns), 1fr);
      gap: var(--spacing);
    }
    .product-card {
      background: var(--color-background-card);
      border-radius: var(--border-radius);
      overflow: hidden;
      border: 1px solid var(--color-border);
      transition: transform 0.3s, box-shadow 0.3s, background 0.2s;
      text-decoration: none; color: inherit; display: block;
    }
    .product-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.1);
      background: var(--color-background-hover);
    }
    .product-image { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block; }  /* 27.09: contain — товар цілком, без обрізки */
    .product-card img.product-image { height: auto; aspect-ratio: 1 / 1; object-fit: contain; }  /* 27.09: атрибути width/height=400 давали 270×400 — квадрат і фото цілком (перекриває customCSS теми) */
    .product-info { padding: calc(var(--spacing) * 0.75); }
    .product-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text-heading); }  /* 27.09: рівно 2 рядки, без обрізаного 3-го */
    .product-price { font-size: 22px; color: var(--color-primary); font-weight: var(--font-weight-heading); }
    .product-artikul { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

    .category-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: calc(var(--spacing) * 1.3); }
    .category-btn {
      padding: 8px 16px; border-radius: 999px;
      border: 1px solid var(--color-border);
      background: var(--color-background-card); color: var(--color-text-primary);
      cursor: pointer; font-size: 13px; font-family: inherit;
      transition: all 0.15s;
    }
    .category-btn:hover { border-color: var(--color-primary); }
    .category-btn.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

    .empty { text-align: center; color: var(--color-text-secondary); padding: 40px; }
    footer {
      background: var(--color-background-card);
      border-top: 1px solid var(--color-border);
      padding: calc(var(--spacing) * 1.5) 0;
      margin-top: calc(var(--spacing) * 3);
      text-align: center;
    }
    footer a { color: var(--color-primary); text-decoration: none; }
    footer p { color: var(--color-text-secondary); }

    @media (max-width: 1024px) {
      .product-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .hero h1 { font-size: 32px; }
      .hero p { font-size: 16px; }
      .products h2 { font-size: 24px; }
      .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    }

    /* ---- Amazstock brand (orange + navy, light) ---- */
body { background: var(--color-background-main); color: var(--color-text-primary); }
.container { max-width: 1200px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid #efe6dc; box-shadow: 0 2px 14px rgba(13,27,42,.05);
}
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo-img { height: 40px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 10px; }
.account-link, .cart-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--color-text-primary); text-decoration: none;
  border: 1px solid #efe1d3; background: #fff; transition: .18s;
}
.account-link:hover, .cart-link:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-1px); }
.cart-link { position: relative; }
.cart-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center; line-height: 18px;
}
.cart-badge:not(:empty) { display: inline-flex; }
@media (max-width: 560px){ .account-label { display: none; } }

/* Hero — bright warm gradient */
.hero {
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(255,176,32,.55), transparent 60%),
    radial-gradient(700px 340px at 5% 120%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(120deg, #EA610F 0%, #FF7A2E 45%, #FF9F1C 100%);
  color: #fff; padding: 68px 0 78px; text-align: center;
  border-radius: 0 0 28px 28px; box-shadow: 0 18px 44px rgba(234,97,15,.22);
}
.hero h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(34px,5vw,56px); letter-spacing:-.02em; margin: 0 0 12px; text-wrap: balance; }
.hero p { font-size: clamp(15px,2vw,20px); max-width: 720px; margin: 0 auto; opacity: .96; }

/* Category rubrics */
.products { padding-top: 34px; }
.products h2 { font-family: var(--font-heading); font-weight: 800; color: var(--color-text-heading); text-align:center; letter-spacing:-.01em; }
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 26px; }
.category-btn {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid #ecdccb; background: #fff; color: var(--color-text-secondary); transition: .16s;
}
.category-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.category-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: 0 6px 16px rgba(234,97,15,.28); }

/* Product grid + cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.product-card {
  background: var(--color-background-card); border: 1px solid #f0e7dd; border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(13,27,42,.05); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13,27,42,.12); border-color: #ffd8b8; }
.product-image { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #fff; }
.product-info { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--color-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { margin-top: auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 18px; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.product-artikul { font-size: 11.5px; color: var(--color-text-muted); letter-spacing:.02em; }

/* Footer */
footer { margin-top: 56px; background: #0D1B2A; color: #cbd5e1; padding: 30px 0; text-align: center; }
footer a { color: #ffb672; }
  
    
    /* Зачёркнутая «було» = цена нового на Amazon (27.09.2026) */
    .price-was { font-size: .62em; font-weight: 500; color: var(--color-text-muted, #6b7280); text-decoration: line-through; margin-left: .45em; white-space: nowrap; }
    .pcard-disc { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: #dc2626; box-shadow: 0 3px 8px rgba(13,27,42,.18); }
    /* Стикеры «Хіт» / «Вигідно» (01.10.2026) — логика в cardStickersHtml */
    .product-card .pcard-badge.b-hit { background: #dc2626; color: #fff; }
    .product-card .pcard-badge.b2 { top: 38px; }
    /* «Немає в наявності» (02.10.2026) — логика в productCardHtml (p.inStock === false) */
    .product-card .pcard-badge.b-oos { background: rgba(255,255,255,.96); color: #4b5563; border: 1px solid #d1d5db; }
    .product-card.is-oos .pc-media img.product-image, .product-card.is-oos .product-image { filter: grayscale(.6); opacity: .7; }
    .product-card.is-oos .product-price { color: var(--color-text-muted, #6b7280); }
    .pcard-disc b { font-weight: 800; }
    @media (max-width: 600px) { .product-card:has(.d-deal) .pcard-badge.b-new { display: none; } }  /* вузька картка: «Вигідно −N%» важливіше за «Новинка» */
    .pd-disc { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 800; color: #fff; background: #dc2626; }
    /* 29.09.2026 (владелец): пометка у зачёркнутой цены вместо строки-подписи под ценой —
       «ціна на Amazon» (товар) / «на Amazon» (карточка каталога); логика показа wasFor не менялась */
    .price-was-src { font-family: var(--font-family, Inter, system-ui, sans-serif); font-size: .4em; font-weight: 500; color: var(--color-text-muted, #6b7280); margin-left: .4em; white-space: nowrap; vertical-align: middle; }
    .cart-link { position: relative; text-decoration: none; font-size: 26px; color: inherit; display: inline-block; line-height: 1; padding: 4px; }
    /* Обране, живий пошук, переглянуті, «Повідомити про появу» (28.09.2026) — логіка в /static/shop.js */
    .fav-btn { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border, #e5e7eb); background: rgba(255,255,255,.94); color: #9ca3af; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: .15s; }
    .fav-btn { --fav-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%2021s-7.5-4.6-10-9.3C.5%208.4%202.4%204.5%206.1%204.1c2.1-.2%204%20.9%205.9%203%201.9-2.1%203.8-3.2%205.9-3%203.7.4%205.6%204.3%204.1%207.6C19.5%2016.4%2012%2021%2012%2021z'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%2F%3E%3C%2Fsvg%3E"); }
    .fav-btn::before { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--fav-m) center / contain no-repeat; mask: var(--fav-m) center / contain no-repeat; }
    .fav-btn:hover { color: #e11d48; border-color: #e11d48; }
    .fav-btn.on { color: #e11d48; border-color: #fecdd3; --fav-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%2021s-7.5-4.6-10-9.3C.5%208.4%202.4%204.5%206.1%204.1c2.1-.2%204%20.9%205.9%203%201.9-2.1%203.8-3.2%205.9-3%203.7.4%205.6%204.3%204.1%207.6C19.5%2016.4%2012%2021%2012%2021z'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E"); }
    .fav-btn.pd-fav { position: static; width: 48px; height: auto; min-height: 48px; flex: none; border-radius: 12px; }
    .fav-btn.pd-fav::before { width: 22px; height: 22px; }
    .fav-link { position: relative; text-decoration: none; color: #e11d48; display: inline-flex; align-items: center; padding: 8px 12px; line-height: 1; border-radius: 999px; border: 1px solid #efe1d3; background: #fff; transition: .18s; }
    .fav-link:hover { border-color: #e11d48; transform: translateY(-1px); }
    .fav-link svg { fill: none; stroke: currentColor; stroke-width: 2; width: 20px; height: 20px; }
    .fav-badge { display: none; position: absolute; top: -4px; right: -8px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; line-height: 1.3; }
    .ss-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
    /* Пошук у шапці (29.09.2026) */
    header .header-content { gap: 18px; }
    .hdr-search { position: relative; flex: 1 1 auto; max-width: 640px; min-width: 0; margin: 0 auto; display: flex; }
    .hdr-search input { flex: 1; width: 100%; min-width: 0; height: 44px; padding: 0 52px 0 18px; border-radius: 999px; font-size: 15px; font-family: inherit; border: 1px solid var(--color-border, #e5e7eb); background: #fff; color: var(--color-text-primary, #111); box-shadow: 0 1px 4px rgba(13,27,42,.04); transition: border-color .16s, box-shadow .16s; -webkit-appearance: none; appearance: none; }
    .hdr-search input:focus { outline: none; border-color: var(--color-primary, #EA610F); box-shadow: 0 3px 14px rgba(234,97,15,.15); }
    .hdr-search input::-webkit-search-cancel-button { display: none; }
    .hdr-search-btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-primary, #EA610F); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; z-index: 1; }
    .hdr-search-btn:hover { filter: brightness(1.07); }
    .hdr-search-btn:focus-visible { outline: 2px solid var(--color-primary, #EA610F); outline-offset: 2px; }
    header .header-nav { flex: none; }
    header .logo { flex: none; }
    @media (max-width: 760px) {
      body > header { padding-top: 4px; padding-bottom: 4px; }
      header .header-content { flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
      .hdr-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0 0 2px; }
      .hdr-search input { height: 42px; font-size: 16px; }
      .hdr-search-btn { width: 34px; height: 34px; }
    }
    .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
    .ss-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--color-border, #e5e7eb); border-radius: 14px; box-shadow: 0 12px 32px rgba(13,27,42,.16); max-height: 70vh; overflow-y: auto; text-align: left; }
    .ss-drop[hidden] { display: none; }
    .ss-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--color-text-primary, #111); font-size: 14px; line-height: 1.3; }
    .ss-opt img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
    .ss-opt .ss-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .ss-opt .ss-p { font-weight: 700; white-space: nowrap; color: var(--color-primary, #EA610F); }
    .ss-opt.ss-g { font-weight: 600; }
    .ss-opt.ss-g small { color: #9ca3af; font-weight: 500; margin-left: auto; }
    .ss-opt.ss-all { justify-content: center; font-weight: 700; color: var(--color-primary, #EA610F); border-top: 1px solid var(--color-border, #e5e7eb); }
    .ss-opt.active, .ss-opt:hover { background: #fff1e6; }
    .ss-h { padding: 8px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; }
    .ss-empty { padding: 12px; color: #6b7280; font-size: 14px; }
    .sf-viewed { margin: 34px 0 0; }
    .sf-viewed h2, .sf-viewed h3 { font-family: var(--font-heading, inherit); font-weight: 800; font-size: 22px; color: var(--color-text-heading); margin: 0 0 14px; text-align: left; }
    .sa-box { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 14px; background: var(--color-background-card, #fff); }
    .sa-box b { display: block; margin-bottom: 8px; color: var(--color-text-heading); }
    .sa-form { display: flex; gap: 8px; flex-wrap: wrap; }
    .sa-form input[type=email] { flex: 1; min-width: 180px; padding: 11px 12px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 10px; font-size: 15px; font-family: inherit; }
    .sa-form button { padding: 11px 16px; border: 0; border-radius: 10px; background: var(--color-primary, #EA610F); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
    .sa-msg { margin-top: 8px; font-size: 13.5px; font-weight: 600; }
    .sa-msg.ok { color: #0a7d43; } .sa-msg.err { color: #c02626; }
    .cart-badge { display: none; position: absolute; top: -4px; right: -8px; background: #ef4444; color: white;
                  font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; line-height: 1.3; }
    /* Site footer (shared) */
    .site-footer { margin-top: 64px; background: #0D1B2A; color: #cbd5e1; }
    .site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 34px; padding: 44px 20px 30px; }
    .site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 700; }
    .site-footer a { display: block; color: #cbd5e1; text-decoration: none; font-size: 14px; margin-bottom: 9px; transition: .15s; }
    .site-footer a:hover { color: #ffb672; }
    .footer-brand { font-family: var(--font-heading, inherit); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
    .footer-about { font-size: 13.5px; line-height: 1.6; color: #93a1b5; max-width: 340px; }
    .footer-phone { font-size: 19px !important; font-weight: 700; color: #fff !important; margin-bottom: 6px !important; }
    .footer-schedule { font-size: 13px; color: #93a1b5; margin-top: 8px; }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 20px; font-size: 13px; color: #7c8ba1; text-align: center; }
    @media (max-width: 720px){ .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
    /* Info / article pages */
    .info-wrap { max-width: 860px; margin: 0 auto; padding: 30px 20px 60px; }
    .info-wrap h1 { font-family: var(--font-heading, inherit); font-weight: 800; color: var(--color-text-heading); font-size: clamp(26px,4vw,36px); margin: 8px 0 22px; }
    .info-content { color: var(--color-text-secondary); line-height: 1.75; font-size: 15.5px; }
    .info-content h2 { color: var(--color-text-heading); font-size: 20px; margin: 26px 0 10px; }
    .info-content p { margin: 0 0 14px; }
    .info-content ul { margin: 0 0 16px; padding-left: 22px; }
    .info-content li { margin-bottom: 7px; }
    .info-content a { color: var(--color-primary); }
    .blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 22px; }
    .blog-card { background: var(--color-background-card); border: 1px solid var(--color-border); border-radius: 14px; padding: 22px; }
    .blog-card h3 { color: var(--color-text-heading); font-size: 18px; margin: 0 0 8px; }
    .blog-card p { color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; margin: 0; }
  
    .product-card { position: relative; }
    .pcard-badge {
      position: absolute; top: 10px; left: 10px; z-index: 2;
      padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
      letter-spacing: .02em; color: #fff; box-shadow: 0 3px 8px rgba(13,27,42,.18);
    }
    .pcard-badge.b-new  { background: #16a34a; }
    .pcard-badge.b-open { background: #2563eb; }
    .pcard-badge.b-used { background: #6b7280; }
    .pcard-badge.b-ref  { background: #7c3aed; }

    /* Рубрики — теперь ссылки <a href="/en/c/slug"> (27.09.2026) */
    a.category-btn { text-decoration: none; display: inline-block; line-height: 1.3; }

    /* Pagination */
    .pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 34px; }
    .pg-btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; color: var(--color-text-primary); font-weight: 600; font-size: 14px; cursor: pointer; transition: .14s; }
    .pg-btn:hover:not(:disabled):not(.active) { border-color: var(--color-primary); color: var(--color-primary); }
    .pg-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
    .pg-btn:disabled { opacity: .4; cursor: default; }
    .pg-dots { padding: 0 4px; color: var(--color-text-muted); }
    .show-all { text-align: center; margin-top: 30px; }
    .show-all a { display: inline-block; background: var(--color-primary); color: #fff; font-weight: 700; padding: 13px 28px; border-radius: 999px; text-decoration: none; }
    /* Блоки рубрик на главной (этап 4) */
    .rubric-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 28px; }
    .rubric-block { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-background-card); text-decoration: none; color: inherit; transition: .15s; }
    .rubric-block:hover { border-color: var(--color-primary); }
    .rubric-block img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
    .rb-t { display: flex; flex-direction: column; min-width: 0; }
    .rb-name { font-weight: 700; color: var(--color-text-heading); }
    .rb-meta { font-size: 12.5px; color: var(--color-text-muted); }
    .rb-h { font-size: 15px; font-weight: 700; color: var(--color-text-heading); margin: 0 0 10px; }
    /* SEO-2 (28.09.2026): єдиний H1 головної (заголовки слайдів — h2) */
    .home-h1 { font-family: var(--font-heading); font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; color: var(--color-text-heading); margin: 6px 0 16px; letter-spacing: -.01em; }
    /* Ленты «Новинки / Хіти / Найбільша вигода» (01.10.2026): горизонтальная прокрутка со snap */
    .rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
    .rail-all { font-weight: 600; color: var(--color-primary); text-decoration: none; white-space: nowrap; }
    .rail-all:hover { text-decoration: underline; }
    .product-grid.rail-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 64px) / 4.35); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 14px; margin: 0 0 12px; scrollbar-width: thin; }
    .rail-grid .product-card { scroll-snap-align: start; content-visibility: visible; }
    .rail-grid:empty { min-height: 380px; }
    @media (max-width: 900px) { .product-grid.rail-grid { grid-auto-columns: calc((100% - 48px) / 3.3); } }
    @media (max-width: 600px) { .product-grid.rail-grid { grid-auto-columns: 44%; gap: 10px; margin-left: -16px; margin-right: -16px; padding: 2px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; } .rail-grid::-webkit-scrollbar { display: none; } .rail-grid:empty { min-height: 300px; } }

    /* Hero banner slider (Gemini-generated banners) */
    .hero-slider { position: relative; width: 100%; height: 460px; overflow: hidden; border-radius: 0 0 28px 28px; box-shadow: 0 18px 44px rgba(234,97,15,.18); }
    .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; pointer-events: none; }
    .hero-slide.active { opacity: 1; pointer-events: auto; }
    .hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,248,244,.92) 0%, rgba(251,248,244,.55) 34%, rgba(251,248,244,0) 62%); }
    .hs-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }
    .hs-inner .hs-h { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px,4.6vw,54px); color: #0D1B2A; letter-spacing: -.02em; margin: 0 0 12px; max-width: 560px; text-wrap: balance; }
    .hs-inner p { font-size: clamp(15px,1.8vw,20px); color: #33404f; max-width: 460px; margin: 0 0 22px; line-height: 1.4; }
    .hs-cta { display: inline-block; background: var(--color-primary); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 24px rgba(234,97,15,.32); transition: .16s; }
    .hs-cta:hover { filter: brightness(1.06); transform: translateY(-2px); }
    .hs-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
    .hs-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(13,27,42,.28); border: none; cursor: pointer; padding: 0; transition: .18s; }
    .hs-dot.active { background: var(--color-primary); width: 26px; border-radius: 6px; }
    @media (max-width: 640px){ .hero-slider { height: 340px; } .hs-inner { padding: 0 22px; } }