/* category-small.css — category page for a small assortment (Oct 2026).
   Must load LAST on category.html. Approved layout (v4 board):
   - header: H1 + one-line description + "Why it's cheaper" line + trust chips
     (no eyebrow, no artwork, no stats), evenly spaced between breadcrumbs and chips
   - 1–3 products: horizontal cards (1 product = same card + "Featured deal" label)
   - 4+ products: standard 3-column card grid
   - no filter sidebar, sort, brand chips or counts
   - "More deals you might like" row, notify-me band, rotation note
   No shadows (hard rule). */

.cs-hero{padding:8px 0 22px;border-bottom:1px solid var(--border)}
.cs-hero h1{font-size:30px;font-weight:700;line-height:1.2;letter-spacing:-.01em;margin:0 0 6px;color:var(--ink)}
.cs-hero__blurb{font-size:15px;line-height:1.55;color:var(--ink-2);margin:0 0 6px}
.cs-hero__why{font-size:13px;line-height:1.55;color:var(--ink-2);margin:0 0 26px}
.cs-hero__why b{color:var(--brand);font-weight:600}
@media (min-width:901px){ .cs-hero__blurb,.cs-hero__why{white-space:nowrap;overflow:hidden;text-overflow:ellipsis} }

.cs-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.cs-chip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--ink);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-full);padding:7px 12px}
.cs-chip svg{width:15px;height:15px;color:var(--emerald-dark)}

.cs-bar{margin:26px 0 14px}
.cs-bar h2{font-size:18px;font-weight:600;margin:0;color:var(--ink)}

/* horizontal card */
.cs-list{display:flex;flex-direction:column;gap:14px}
.cs-card{display:grid;grid-template-columns:240px minmax(0,1fr) 300px;gap:28px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);padding:16px;box-shadow:none}
.cs-media{position:relative;display:flex;align-items:center;justify-content:center;height:200px;background:#fff;border:1px solid var(--border);border-radius:var(--r-md)}
.cs-media img{max-height:170px;max-width:200px;object-fit:contain}
.cs-low{position:absolute;top:10px;right:10px;font-size:11px;font-weight:600;color:var(--coral);background:#fff;border:1px solid #FFC2B3;border-radius:var(--r-full);padding:3px 9px}
.cs-feat{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brand);background:var(--brand-tint);border-radius:var(--r-full);padding:3px 9px;margin-bottom:8px}
.cs-eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.cs-name{font-size:19px;font-weight:600;line-height:1.3;margin:4px 0 8px}
.cs-name a{color:var(--ink)}
.cs-name a:hover{color:var(--brand)}
.cs-cond{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;margin-bottom:10px}
.cs-cond svg{width:16px;height:16px}
.cs-cond--new{color:var(--emerald-dark)}
.cs-cond--openbox{color:#B7791F}
.cs-cond--refurb{color:var(--brand)}
.cs-specs{margin:0;padding-left:18px;list-style:disc;font-size:14px;line-height:1.7;color:var(--ink-2)}
.cs-specs li{list-style:disc}
.cs-buy{border-left:1px solid var(--border);padding-left:24px}
.cs-now{font-size:28px;font-weight:700;color:var(--ink);line-height:1.1}
.cs-amz{font-size:12.5px;color:var(--ink-2);margin:6px 0 12px;white-space:nowrap}
.cs-amz .s{color:var(--emerald-dark);font-weight:600}
.cs-stock{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--emerald-dark);margin-bottom:12px}
.cs-stock .dot{width:8px;height:8px;border-radius:50%;background:var(--emerald)}
.cs-stock--low{color:var(--coral)}
.cs-stock--low .dot{background:var(--coral)}
.cs-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;border:0;border-radius:var(--r-full);background:var(--brand);color:#fff;font:inherit;font-size:14.5px;font-weight:700;cursor:pointer;box-shadow:none;transition:background .15s}
.cs-btn:hover{background:var(--brand-dark)}
.cs-btn svg{width:18px;height:18px}

/* 4+ products: reuse the standard card grid */
.cs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s5)}

/* more deals */
.cs-more{margin-top:38px}
.cs-more__head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px}
.cs-more__head h2{font-size:18px;font-weight:600;margin:0}
.cs-more__head a{font-size:13px;font-weight:600;color:var(--brand)}
.cs-minis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.cs-mini{display:block;background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);padding:12px;color:inherit;transition:border-color .15s}
.cs-mini:hover{border-color:var(--border-2)}
.cs-mini__m{position:relative;display:flex;align-items:center;justify-content:center;height:150px;border-radius:var(--r-md);background:#fff}
.cs-mini__m img{max-height:130px;max-width:85%;object-fit:contain}
.cs-mini .cs-eyebrow{margin-top:10px}
.cs-mini__n{font-size:14px;font-weight:500;line-height:1.35;color:var(--ink);margin:3px 0 8px;min-height:38px}
.cs-mini__p{display:flex;align-items:baseline;gap:6px}
.cs-mini__p b{font-size:17px;color:var(--ink)}
.cs-mini__p s{font-size:12px;color:var(--ink-3)}
.cs-mini__s{font-size:12px;font-weight:600;color:var(--emerald-dark);margin-top:2px}

/* notify + note */
.cs-notify{display:flex;align-items:center;gap:20px;margin:28px 0 10px;padding:20px 24px;border-radius:var(--r-lg);background:var(--brand-tint);border:1px solid #DDE1F7}
.cs-notify__t{flex:1}
.cs-notify__t b{display:block;font-size:16px;color:var(--ink);margin-bottom:2px}
.cs-notify__t span{font-size:13.5px;color:var(--ink-2)}
.cs-notify form{display:flex;gap:10px}
.cs-notify input{width:280px;height:44px;border:1px solid var(--border-2);border-radius:var(--r-full);padding:0 18px;font:inherit;font-size:14px;background:#fff}
.cs-notify button{height:44px;padding:0 22px;border:0;border-radius:var(--r-full);background:var(--brand);color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;box-shadow:none}
.cs-notify__ok{font-size:14px;font-weight:600;color:var(--emerald-dark)}
.cs-note{font-size:12.5px;color:var(--ink-3);margin:14px 0 40px}

/* empty category (should not normally be reachable: the menu hides it) */
.cs-empty{padding:32px;border:1px dashed var(--border-2);border-radius:var(--r-lg);text-align:center;color:var(--ink-2)}
.cs-empty a{color:var(--brand);font-weight:600}

@media (max-width:1100px){
  .cs-card{grid-template-columns:200px minmax(0,1fr) 260px;gap:20px}
  .cs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .cs-hero h1{font-size:24px}
  .cs-card{grid-template-columns:1fr;gap:14px}
  .cs-media{height:220px}
  .cs-buy{border-left:0;padding-left:0;border-top:1px solid var(--border);padding-top:14px}
  .cs-amz{white-space:normal}
  .cs-minis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-grid{grid-template-columns:1fr}
  .cs-notify{flex-direction:column;align-items:stretch}
  .cs-notify form{flex-direction:column}
  .cs-notify input{width:100%}
}

/* ===== Shop by brand row (Oct 2026) — same chip as the main menu ===== */
.cs-brands{margin:36px 0 0}
.cs-brands h2{font-size:18px;font-weight:700;margin:0 0 14px}
.cs-brands__row{display:flex;flex-wrap:wrap;gap:8px}
.cs-brand{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px 0 10px;border-radius:999px;
  background:var(--surface-2,#F3F4F7);color:var(--ink,#1C252C);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .15s}
.cs-brand:hover{background:var(--border,#E8EAEE);color:var(--ink,#1C252C);text-decoration:none}
.cs-brand:focus-visible{outline:2px solid var(--brand,#3A4FD0);outline-offset:2px}
.cs-brand__ico{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--brand,#3A4FD0)}
.cs-brand__ico svg{width:18px;height:18px}
.cs-mono{width:18px;height:18px;border-radius:50%;background:var(--brand-tint,#E3E7F8);color:var(--brand,#3A4FD0);font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:900px){
  .cs-brands{margin-top:28px}
  /* one swipeable line on mobile */
  .cs-brands__row{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -16px;padding:0 16px 4px}
  .cs-brands__row::-webkit-scrollbar{display:none}
}

/* Calmer category-page rhythm: separate sections, not the details within cards. */
.cs-hero{padding-bottom:32px}
.cs-bar{margin:40px 0 18px}
#csProducts{margin-top:0}
.cs-brands{margin-top:56px}
.cs-brand{padding:0 16px}
.cs-more{margin-top:56px}
.cs-notify{margin:56px 0 20px;background:#fff;border-color:var(--border);padding:24px}
@media(max-width:900px){
  .cs-hero{padding-bottom:28px}
  .cs-bar{margin-top:32px}
  .cs-brands,.cs-more{margin-top:40px}
  .cs-notify{margin-top:40px;padding:20px}
}

/* Approved swap: brand links in hero, shopping benefits below products. */
.cs-hero{border-bottom:0}
.cs-benefits{margin-top:56px}
@media(max-width:900px){
  .cs-benefits{margin-top:40px}
  .cs-hero>#csBrandsWrap{display:block;overflow:visible;margin:0;padding:0}
}

/* ===== Правки под WP-тему ===== */
/* Картинка приходит через WP (<img> внутри ссылки), поэтому ограничиваем её тут. */
.cs-media img, .cs-mini__m img { max-height: 170px; max-width: 200px; object-fit: contain; }
.cs-mini__m img { max-height: 130px; max-width: 85%; }
/* Цена не заполнена — та же спокойная подпись, что и в карточках каталога. */
.cs-now--tba { font-size: var(--text-lg); font-weight: 600; color: var(--ink-2); }
/* Кнопка — ссылка, а не <button>: выравниваем так же. */
a.cs-btn { text-decoration: none; }
a.cs-btn:hover { color: #fff; }
/* Иконки темы отрисованы в сетке 256 — фиксируем размер в чипах и состоянии. */
.cs-chip svg { width: 15px; height: 15px; }
.cs-cond svg { width: 16px; height: 16px; }
/* Форма подписки (hs-notify) вместо демо-формы макета. */
.cs-notify .hs-notify { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cs-notify .hs-notify input { width: 240px; height: 44px; border: 1px solid var(--border-2); border-radius: var(--r-full); padding: 0 18px; font: inherit; font-size: 14px; background: #fff; }
.cs-notify .hs-notify button { height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-full); background: var(--brand); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.hs-notify__msg { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 600; color: var(--emerald-dark); }
.hs-notify__msg.is-error { color: var(--coral); }
@media (max-width: 900px) { .cs-notify .hs-notify { flex-direction: column; align-items: stretch; } .cs-notify .hs-notify input { width: 100%; } }

/* Поле и кнопка в одну строку: без этого форма переносилась в колонку. */
.cs-notify__t { flex: 1 1 auto; min-width: 0; }
.cs-notify .hs-notify { flex: 0 0 auto; }
.cs-notify .hs-notify button { white-space: nowrap; }
/* Поле подписки тянулось на всю ширину формы (глобальное input{width:100%}) и
   выталкивало кнопку на вторую строку — фиксируем базис. */
.cs-notify .hs-notify input { flex: 0 0 240px; }
.cs-notify .hs-notify button { flex: 0 0 auto; }

/* Тот же разбор, что и в карточках каталога: длинные названия слипались. */
.cs-name { line-height: 1.42; }
.cs-mini__n { line-height: 1.45; min-height: 42px; }
