: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; }
  
    body { background: var(--color-background-main); color: var(--color-text-primary); }
    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 { display: inline-flex; align-items: center; gap: 10px; }
    .logo-img { height: 40px; width: auto; display: block; }
    .logo-name { font-size: 24px; font-weight: 700; line-height: 1; }
    @media (max-width: 480px) { .logo-name { font-size: 20px; } .logo-img { height: 32px; } }
    .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
    .product-detail { padding: 28px 0 64px; }
    .back-link { display: inline-block; margin-bottom: 22px; color: var(--color-primary); text-decoration: none; font-weight: 600; }
    .back-link:hover { text-decoration: underline; }
    .product-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 46px; align-items: start; }
    /* Gallery */
    .pd-main { background: #fff; border: 1px solid #f0e7dd; border-radius: 18px; padding: 18px; box-shadow: 0 6px 20px rgba(13,27,42,.06); }
    .pd-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; }
    .pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
    .pd-thumb { width: 66px; height: 66px; border-radius: 10px; object-fit: contain; background: #fff; border: 2px solid #f0e7dd; cursor: pointer; transition: .15s; }
    .pd-thumb:hover { border-color: #ffcfa8; }
    .pd-thumb.active { border-color: var(--color-primary); }
    /* Details */
    .pd-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 12px; }
    .pd-badge.b-new { background: #16a34a; } .pd-badge.b-open { background: #2563eb; }
    .pd-badge.b-used { background: #6b7280; } .pd-badge.b-ref { background: #7c3aed; }
    .product-details h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px,3vw,34px); color: var(--color-text-heading); letter-spacing: -.01em; margin-bottom: 14px; text-wrap: balance; }
    .product-price { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
    .pd-stock { color: #0a7d43; font-weight: 600; font-size: 14px; margin-bottom: 22px; }
    .product-meta { background: var(--color-background-card); border: 1px solid var(--color-border); padding: 16px 18px; border-radius: 14px; margin-bottom: 24px; }
    .meta-item { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 14.5px; }
    .meta-item:last-child { border-bottom: none; }
    .meta-label { color: var(--color-text-muted); }
    .meta-value { font-weight: 600; text-align: right; }
    .pd-desc-h { font-family: var(--font-heading); font-weight: 700; font-size: 17px; margin: 6px 0 8px; color: var(--color-text-heading); }
    .product-description { font-size: 15px; color: var(--color-text-secondary); margin-bottom: 24px; line-height: 1.75; white-space: pre-wrap; }
    .product-description.pd-desc-html { white-space: normal; }
    .pd-desc-html h2, .pd-desc-html h3 { font-family: var(--font-heading); color: var(--color-text-heading); font-weight: 700; line-height: 1.35; margin: 16px 0 6px; }
    .pd-desc-html h2 { font-size: 17px; } .pd-desc-html h3 { font-size: 15.5px; }
    .pd-desc-html p { margin: 0 0 10px; }
    .pd-desc-html ul, .pd-desc-html ol { margin: 0 0 12px; padding-left: 22px; }
    .pd-desc-html li { margin: 3px 0; }
    .pd-desc-html b, .pd-desc-html strong { color: var(--color-text-primary); font-weight: 600; }
    .pd-specs { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
    .pd-specs tr { border-bottom: 1px solid var(--color-border); }
    .pd-specs td, .pd-specs th { padding: 9px 4px; vertical-align: top; }
    .pd-specs th { text-align: left; font-weight: 400; }   /* SEO-2: назва характеристики — <th scope=row> */
    .spec-k { color: var(--color-text-muted); width: 46%; }
    .spec-v { font-weight: 600; color: var(--color-text-primary); }
    .spec-v a, .meta-value a { color: var(--color-primary); text-decoration: none; }
    .spec-v a:hover, .meta-value a:hover { text-decoration: underline; }
    .pd-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
    .pd-tag { font-size: 12px; color: var(--color-text-secondary); background: var(--color-background-hover); border: 1px solid var(--color-border); padding: 4px 11px; border-radius: 999px; }
    .pd-buy { display: flex; align-items: stretch; gap: 12px; }
    /* «Купити в 1 клік» (27.09.2026) */
    .pd-quick-btn { display: block; width: 100%; margin-top: 10px; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--color-primary, #EA610F); background: #fff; color: var(--color-primary, #EA610F); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
    .pd-quick-btn:hover { background: #fff7ed; }
    .pd-quick-btn[hidden], .qb-ov[hidden] { display: none; }
    .qb-ov { position: fixed; inset: 0; z-index: 10003; background: rgba(13,27,42,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
    .qb-box { position: relative; width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto; background: #fff; color: #111827; border-radius: 16px; padding: 24px 22px 20px; box-shadow: 0 20px 50px rgba(13,27,42,.3); }
    .qb-box h2 { font-size: 21px; margin: 0 0 6px; }
    .qb-sub { font-size: 14px; color: #6b7280; margin: 0 0 12px; }
    .qb-prod { font-size: 14px; background: #f9fafb; border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
    .qb-box label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin: 10px 0 4px; }
    .qb-box input[type=text], .qb-box input[type=tel] { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 16px; box-sizing: border-box; }
    .qb-box .qb-consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; margin-top: 12px; }
    .qb-consent input { margin-top: 3px; flex: none; }
    .qb-err { background: #fee2e2; color: #991b1b; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: 10px; }
    .qb-submit { width: 100%; margin-top: 14px; }
    .qb-note { font-size: 12px; color: #6b7280; text-align: center; margin-top: 8px; }
    .qb-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: #6b7280; cursor: pointer; border-radius: 8px; }
    body.cd-lock { overflow: hidden; }
    .pd-qty { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: #fff; }
    .pd-qty button { width: 42px; border: none; background: transparent; font-size: 20px; cursor: pointer; color: var(--color-text-primary); }
    .pd-qty input { width: 46px; text-align: center; border: none; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
    .pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .btn-primary { flex: 1; background: var(--color-primary); color: #fff; border: none; padding: 15px 28px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: .16s; box-shadow: 0 10px 24px rgba(234,97,15,.28); }
    .btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
    @media (max-width: 820px) { .product-layout { grid-template-columns: 1fr; gap: 26px; } }
    /* Хлібні крихти, «Продано», «Схожі товари» (27.09.2026) */
    .pd-crumbs { font-size: 13.5px; color: var(--color-text-muted); margin-bottom: 14px; }
    .pd-crumbs a { color: var(--color-primary); text-decoration: none; }
    .pd-crumbs a:hover { text-decoration: underline; }
    .pd-badge.b-oos { background: #fff; color: #4b5563; border: 1px solid #d1d5db; }
    .pd-stock.is-sold { color: #6b7280; }
    .product-details.is-oos .product-price { color: var(--color-text-muted, #6b7280); }
    .pd-oos-row { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 6px; }
    .pd-oos-row .sa-box { flex: 1; min-width: 0; margin: 0; }
    .pd-similar.pd-similar-top { margin-top: 36px; }
    .pd-similar { margin-top: 48px; }
    .pd-similar h2 { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--color-text-heading); margin: 0 0 18px; }
    .pd-similar .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
    .pd-similar .product-card { position: relative; 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); }
    .pd-similar .product-image { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; height: auto; }  /* 27.09: contain — без обрізки */
    .pd-similar .product-info { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
    .pd-similar .product-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; height: 2.7em; min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }  /* 27.09: рівно 2 рядки */
    .pd-similar .product-price { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700; color: var(--color-primary); margin: auto 0 0; }
    .pd-similar .product-artikul { font-size: 11px; color: var(--color-text-muted); }
    .pd-similar .pcard-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; }
    .pd-similar .pcard-badge.b-new { background: #16a34a; } .pd-similar .pcard-badge.b-used { background: #6b7280; }
    .pd-similar-more { margin-top: 16px; font-weight: 600; }
    .pd-similar-more a { color: var(--color-primary); text-decoration: none; }
    .pd-guides { margin-top: 32px; }
    .pd-guides span, .cat-guides span { color: var(--color-text-secondary); font-weight: 600; }
    /* Відгуки покупців Amazon (27.09.2026) */
    .amzr { margin-top: 44px; max-width: 820px; }
    .amzr h2 { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--color-text-heading); margin: 0 0 8px; }
    .amzr-sum { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--color-text-primary); }
    .amzr-sum-stars { color: #f59e0b; }
    .amzr-list { display: flex; flex-direction: column; gap: 14px; }
    .amzr-item { background: var(--color-background-card); border: 1px solid var(--color-border); border-radius: 14px; padding: 14px 16px; }
    .amzr-stars { color: #f59e0b; letter-spacing: 1px; font-size: 15px; }
    .amzr-title { font-weight: 700; margin: 4px 0; color: var(--color-text-heading); }
    .amzr-body { font-size: 14.5px; line-height: 1.65; color: var(--color-text-secondary); white-space: pre-line; overflow-wrap: anywhere; }
    .amzr-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .amzr-imgs img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; display: block; }
    .amzr-orig { margin-top: 8px; font-size: 13.5px; }
    .amzr-orig summary, .amzr-more > summary { cursor: pointer; color: var(--color-primary); font-weight: 600; }
    .amzr-orig > div { margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--color-border); }
    .amzr-meta { margin-top: 8px; font-size: 13px; color: var(--color-text-muted); }
    .amzr-ver { color: #0a7d43; font-weight: 600; }
    .amzr-more { margin-top: 14px; }
    .amzr-more > summary { margin-bottom: 14px; font-size: 15px; }
    .amzr-note { margin-top: 16px; font-size: 12px; color: var(--color-text-muted); }
    .amzr-note a { color: var(--color-primary); }
    /* Коротко біля ціни + вкладки під основним блоком (29.09.2026) */
    .pd-keyspecs { margin: -8px 0 20px; font-size: 14.5px; }
    .pd-keyspecs ul { list-style: none; margin: 0 0 6px; padding: 0; }
    .pd-keyspecs li { padding: 3px 0; }
    .ks-k { color: var(--color-text-muted); }
    .ks-v { font-weight: 600; color: var(--color-text-primary); }
    .pd-allspecs { color: var(--color-primary); font-weight: 600; text-decoration: none; font-size: 14px; }
    .pd-allspecs:hover { text-decoration: underline; }
    .pd-tabs { margin-top: 44px; scroll-margin-top: 80px; }
    .pd-qa { max-width: 720px; } .pd-qa-hint { color: var(--color-text-secondary); font-size: 14.5px; margin: 0 0 12px; }
    .pd-qa-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .pd-qa-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .pd-qa-form textarea { flex: 1 1 280px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 12px; font: inherit; font-size: 16px; resize: vertical; }
    .pd-qa-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(234,97,15,.12); }
    .pd-qa-btn, .pd-qa-chat { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--color-primary, #EA610F); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
    .pd-qa-btn:disabled { opacity: .6; cursor: default; }
    .pd-qa-chat { background: #fff; color: var(--color-primary, #EA610F); border: 2px solid var(--color-primary, #EA610F); margin-top: 8px; min-height: 44px; }
    .pd-qa-out { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #FFF7F0; border: 1px solid #fde3cf; font-size: 15px; line-height: 1.55; }
    .pd-qa-out .qa-a { margin: 0; white-space: pre-line; } .pd-qa-out .qa-src { margin: 8px 0 0; font-size: 12.5px; color: #8a94a6; }
    .pd-qa-out.no { background: #f8fafc; border-color: #e5e7eb; }
    .pd-tablist { display: flex; gap: 4px; border-bottom: 2px solid var(--color-border); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pd-tablist::-webkit-scrollbar { display: none; }
    .pd-tab { flex: none; white-space: nowrap; padding: 12px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--color-text-secondary); font-weight: 600; font-size: 15.5px; text-decoration: none; border-radius: 8px 8px 0 0; }
    .pd-tab:hover { color: var(--color-primary); background: var(--color-background-hover); }
    .pd-tab[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
    .pd-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
    .pd-panel { max-width: 860px; padding-top: 22px; scroll-margin-top: 80px; }
    .pd-panel + .pd-panel { margin-top: 18px; }
    .pd-tabs.is-js .pd-panel + .pd-panel { margin-top: 0; }
    .pd-panel-h { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--color-text-heading); margin: 0 0 12px; }
    .pd-tabs.is-js .pd-panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .pd-panel[hidden] { display: none; }
    .pd-panel .amzr { margin-top: 0; }
    .pd-dlv { font-size: 15px; line-height: 1.7; color: var(--color-text-secondary); }
    .pd-dlv h3 { font-family: var(--font-heading); font-size: 16.5px; font-weight: 700; color: var(--color-text-heading); margin: 14px 0 4px; }
    .pd-dlv h3:first-child { margin-top: 0; }
    .pd-dlv ul { margin: 0 0 8px; padding-left: 22px; }
    .pd-dlv p { margin: 0 0 8px; }
    .pd-dlv b { color: var(--color-text-primary); }
    .pd-dlv a { color: var(--color-primary); font-weight: 600; }
    .pd-dlv-more { margin-top: 12px !important; }
    @media (max-width: 600px) { .pd-tabs { margin-top: 32px; } .pd-tab { padding: 11px 12px; font-size: 14.5px; } .pd-panel-h { font-size: 19px; } }
    /* SEO-2: відео товару — фасад YouTube (28.09.2026) */
    .pd-video { margin-top: 14px; position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0D1B2A; }
    .pd-video iframe, .yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    .yt-facade { padding: 0; cursor: pointer; background: #0D1B2A; display: block; }
    .yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
    .yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(234,97,15,.95); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
    .yt-play::after { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
    .yt-cap { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
    .yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { background: #EA610F; transform: scale(1.06); }