/* NUR ELECTRO — витрина дистрибьютора электрики */
:root {
  --navy: #111111;
  --navy-2: #2a2a2a;
  --accent: #fff326;
  --accent-dark: #ebdf00;
  --blue: #9a6b00;
  --link: #111111;
  --text: #1a1a1a;
  --muted: #6e6a62;
  --line: #e6e4de;
  --bg: #f5f5f3;
  --card: #ffffff;
  --green: #138a4a;
  --green-bg: #e7f6ee;
  --orange: #b4600a;
  --orange-bg: #fff3e0;
  --red: #c62828;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 4px 16px rgba(16, 32, 64, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--blue); }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 21px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0 0 10px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { flex: none; }

/* --- Кнопки и формы --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 8px; font: 600 15px var(--font); cursor: pointer; white-space: nowrap;
  text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: #bdb8ad; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search],
select, textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d6d3cb; border-radius: 8px;
  font: 15px var(--font); color: var(--text); background: #fff; }
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255, 243, 38, .55); border-color: var(--blue); }
label { font-weight: 500; }
.field { margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 5px; font-size: 14px; }
.field .errorlist { color: var(--red); list-style: none; padding: 0; margin: 4px 0 0; font-size: 13px; }
.errorlist.nonfield { background: #fdecec; padding: 10px 12px; border-radius: 8px; color: var(--red); list-style: none; }
.helptext { color: var(--muted); font-size: 13px; }
.radio-cards > div { display: grid; gap: 8px; }
.radio-cards label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; }
.radio-cards label:has(input:checked) { border-color: var(--blue); background: #fff8d9; }
.radio-cards input { margin: 0; accent-color: #111; }

/* --- Шапка --- */
.topbar { background: #000; color: #bdbdbd; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.topbar a { color: var(--accent); }
.topbar nav { display: flex; gap: 18px; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 20px;
  letter-spacing: .5px; text-decoration: none !important; }
.logo-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--navy); color: var(--accent);
  display: grid; place-items: center; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.catalog-btn { position: relative; }
.search { flex: 1; display: flex; }
.search input { border-radius: 8px 0 0 8px; border-right: 0; height: 44px; }
.search button { border-radius: 0 8px 8px 0; height: 44px; }
.header-links { display: flex; gap: 6px; }
.hlink { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; color: var(--text);
  font-size: 12px; position: relative; text-decoration: none !important; }
.hlink:hover { color: var(--blue); }
.badge { position: absolute; top: -2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--navy); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.phone-big { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Мега-меню каталога */
.mega { display: none; position: absolute; top: calc(100% + 12px); left: 0; width: min(900px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(10, 30, 60, .18);
  padding: 20px; z-index: 60; }
.mega.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 24px; }
.mega-col h4 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mega-col h4 a { color: var(--navy); }
.mega-col ul { list-style: none; margin: 0; padding: 0 0 0 36px; }
.mega-col li a { color: var(--muted); font-size: 14px; line-height: 1.9; }
.mega-col li a:hover { color: var(--blue); }

/* --- Сообщения --- */
.messages { list-style: none; margin: 16px 0 0; padding: 0; }
.messages li { padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; background: #fff8d9; }
.messages .success { background: var(--green-bg); color: #0d5c32; }
.messages .error { background: #fdecec; color: var(--red); }
.messages .warning { background: var(--orange-bg); color: var(--orange); }

/* --- Общие блоки --- */
main { padding: 20px 0 48px; min-height: 60vh; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span::before { content: "/"; margin-right: 6px; color: #c2beb4; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

/* Главная */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.hero-main { background: linear-gradient(120deg, #0d0d0d 0%, #1c1c1c 65%, #2b2b2b 100%); color: #fff;
  border-radius: 14px; padding: 36px; position: relative; overflow: hidden; min-height: 260px; }
.hero-main h1 { font-size: 32px; margin-bottom: 12px; max-width: 520px; }
.hero-main p { color: #cfcfcf; max-width: 460px; margin: 0 0 22px; font-size: 16px; }
.hero-main .bolt-bg { position: absolute; right: -30px; bottom: -40px; color: rgba(255, 243, 38, .16); }
.hero-side { display: grid; gap: 16px; }
.hero-card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.hero-card .ico-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #111; display: grid; place-items: center; flex: none; }
.hero-card b { display: block; color: var(--navy); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); color: var(--navy);
  font-weight: 600; display: flex; flex-direction: column; gap: 12px; min-height: 120px; text-decoration: none !important;
  border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-tile .ico { color: #111; background: var(--accent); border-radius: 10px; padding: 6px; box-sizing: content-box; }
.cat-tile small { color: var(--muted); font-weight: 400; }
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adv { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.adv b { display: block; color: var(--navy); margin-bottom: 4px; }

/* --- Каталог --- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 88px; }
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 18px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters .cat-links { list-style: none; padding: 0; margin: 0; }
.filters .cat-links a { display: block; padding: 5px 0; color: var(--text); }
.filters .cat-links a.active { color: var(--blue); font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-weight: 400; cursor: pointer; }
.check input { accent-color: #111; width: 16px; height: 16px; }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input { height: 38px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; height: 38px; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-toggle a { padding: 7px 10px; color: var(--muted); background: #fff; display: grid; place-items: center; }
.view-toggle a.active { background: #111; color: var(--accent); }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text);
  font-size: 14px; text-decoration: none !important; }
.chip:hover { border-color: var(--blue); color: var(--blue); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex;
  flex-direction: column; gap: 8px; position: relative; border: 1px solid transparent; transition: border-color .15s; }
.card:hover { border-color: #d9d5ca; }
.card-img { aspect-ratio: 1; display: grid; place-items: center; background: #f4f3ef; border-radius: 8px; color: #b5b1a6; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-sku { font-size: 12px; color: var(--muted); }
.card-title { color: var(--text); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.card-title:hover { color: var(--blue); }
.price { font-size: 20px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-left: 6px; font-weight: 400; }
.price-unit { font-size: 13px; color: var(--muted); font-weight: 400; }
.sale-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 12px;
  font-weight: 700; padding: 2px 8px; border-radius: 6px; z-index: 1; }
.stock { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock.in_stock { color: var(--green); }
.stock.on_order { color: var(--orange); }
.stock.none { color: var(--muted); }
.buy-row { display: flex; gap: 8px; margin-top: auto; }
.qty-input { width: 70px !important; text-align: center; padding: 0 6px !important; height: 42px; }

/* Список (таблицей), удобно оптовикам */
.list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-row { display: grid; grid-template-columns: 64px 1fr 170px 140px 190px; gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .thumb { width: 64px; height: 64px; background: #f4f3ef; border-radius: 6px; display: grid; place-items: center; color: #b5b1a6; overflow: hidden; }
.list-row .thumb img { width: 100%; height: 100%; object-fit: contain; }
.list-row .price { font-size: 17px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.pagination .current { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
.empty { text-align: center; padding: 48px 20px; }

/* --- Карточка товара --- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr 340px; gap: 20px; align-items: start; }
.gallery-main { aspect-ratio: 1; background: #fff; border-radius: var(--radius); display: grid; place-items: center; color: #b5b1a6; overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 50%; padding-right: 12px; }
.buy-box { position: sticky; top: 88px; }
.buy-box .price { font-size: 28px; }
.wh-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.wh-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.wh-table td:last-child { text-align: right; white-space: nowrap; }
.wh-table .q { font-weight: 600; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-orange { background: var(--orange-bg); color: var(--orange); }
.tag-grey { background: #efede8; color: var(--muted); }
.tag-blue { background: #fff3bf; color: #7a5600; }

/* --- Корзина / оформление --- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 72px 1fr 120px 150px 110px 32px; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb { width: 72px; height: 72px; background: #f4f3ef; border-radius: 6px; display: grid; place-items: center; color: #b5b1a6; overflow: hidden; }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: contain; }
.qty-form { display: flex; align-items: center; gap: 4px; }
.qty-form input { width: 64px; height: 36px; text-align: center; padding: 0 4px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.icon-btn:hover { color: var(--red); background: #fdecec; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-total { font-size: 20px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.progress { height: 6px; background: #efede8; border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #111; display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* Кабинет */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.tabs a.active { color: var(--navy); border-color: var(--accent); font-weight: 600; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); }
.auth-box { max-width: 440px; margin: 20px auto; }

/* Подвал */
.footer { background: #0d0d0d; color: #a8a8a8; border-top: 4px solid var(--accent); padding: 36px 0 24px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer a { color: #d6d6d6; }
.footer a:hover { color: var(--accent); }
.footer .copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-top: 16px; font-size: 13px; }

/* --- Адаптив --- */
.only-mobile { display: none; }
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: 1fr 1fr; }
  .buy-box { grid-column: 1 / -1; position: static; }
  .list-row { grid-template-columns: 56px 1fr 150px 170px; }
  .list-row .col-stock { display: none; }
}
@media (max-width: 900px) {
  .topbar nav { display: none; }
  .header .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 5; flex-basis: 100%; }
  .phone-big { display: none; }
  .hero { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr 1fr; }
  .catalog-layout, .cart-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .only-mobile { display: inline-flex; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .hero-main { padding: 24px; }
  .hero-main h1 { font-size: 24px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 10px; }
  .price { font-size: 17px; }
  .buy-row { flex-direction: column; }
  .qty-input { width: 100% !important; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-box { order: 2; }
  .product-layout > .panel:not(.buy-box) { order: 3; }
  .list-row { grid-template-columns: 48px 1fr; }
  .list-row .col-price, .list-row .col-buy { grid-column: 2; }
  .cart-row { grid-template-columns: 56px 1fr 32px; }
  .cart-row .c-price { display: none; }
  .cart-row .c-qty, .cart-row .c-total { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .header-links .hlink span.lbl { display: none; }
  .logo small { display: none; }
  .advantages { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}
.radio-cards > label { display: block; padding: 0; border: 0; background: none; cursor: default; margin-bottom: 5px; }
.stock-wrap { min-height: 38px; }
.stock-sub { font-size: 12px; color: var(--muted); padding-left: 14px; }
@media (max-width: 640px) {
  .topbar { display: none; }
  .header .container { gap: 8px; }
  .logo { font-size: 17px; }
  .logo-mark { width: 34px; height: 34px; }
  .catalog-btn .btn { height: 40px; padding: 0 12px; }
  .header-links { margin-left: auto; }
  .hlink { padding: 4px 6px; }
  .toolbar .view-toggle { margin-left: auto; }
}
@media (max-width: 400px) { .cat-lbl { display: none; } }

/* --- Жёлто-чёрный стиль --- */
.hazard { height: 6px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #111 14px 28px); }
.header { border-bottom: 0; }
.btn-dark { background: #111; color: #fff; }
.btn-dark .ico, .btn-dark svg { color: var(--accent); }
.logo-mark { background: var(--accent); color: #111; }
.logo-img { height: 46px; width: auto; display: block; }
.footer .logo-img { height: 34px; margin-bottom: 14px; }
@media (max-width: 640px) { .header .logo-img { height: 30px; } }
@media (max-width: 400px) { .header .logo-img { height: 26px; } }
.hero-main h1 span { color: var(--accent); }
.hero-main .btn-outline { background: transparent; color: #fff; border-color: #555; }
.hero-main .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, transparent 14px 28px); opacity: .9; }
.card:hover { border-color: var(--accent); }
.chip:hover { border-color: #111; color: #111; background: var(--accent); }
.filters .cat-links a.active { color: #111; border-left: 3px solid var(--accent); padding-left: 8px; }
.mega-col h4 .ico { color: #111; background: var(--accent); border-radius: 6px; padding: 3px; box-sizing: content-box; }
.mega { border-top: 4px solid var(--accent); }
.hlink:hover { color: #111; }
.hlink:hover svg { color: var(--accent-dark); }
.price { color: #111; }
.stock.in_stock { color: #138a4a; }
.tabs a.active { color: #111; }
.messages .success { border-left: 4px solid #138a4a; }
/* Kaspi, остатки, доставка */
.btn-kaspi { background: #f14635; color: #fff; }
.btn-kaspi:hover { background: #d8382a; color: #fff; }
.card .btn-kaspi { height: 38px; font-size: 14px; }
.list-row .btn-kaspi { height: 34px; font-size: 13px; margin-top: 6px; width: 100%; }
.stock-wrap .stock { font-size: 12.5px; line-height: 1.45; }
.stock-wrap .stock b { font-weight: 600; }
.stock-wrap .stock .muted { font-weight: 400; }
.stock-wrap { min-height: 36px; display: grid; gap: 1px; }
.stock-title { margin: 14px 0 0; font-size: 14px; }
.wh-table td { vertical-align: top; }
.delivery-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 14px; }
.delivery-box div { display: flex; justify-content: space-between; gap: 10px; }
.delivery-box span { color: var(--muted); text-align: right; }
/* Подсказки поиска */
.search { position: relative; }
.suggest { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; z-index: 70;
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  max-height: 70vh; overflow: auto; }
.suggest.open { display: block; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px;
  color: var(--text); text-decoration: none !important; }
.suggest a:hover, .suggest a.active { background: #fff8d9; }
.suggest .s-img { width: 44px; height: 44px; background: #f4f3ef; border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.suggest .s-img img { width: 100%; height: 100%; object-fit: contain; }
.suggest .s-name { font-size: 14px; line-height: 1.3; }
.suggest .s-meta { font-size: 12px; color: var(--muted); }
.suggest .s-price { font-weight: 700; white-space: nowrap; text-align: right; font-size: 14px; }
.suggest .s-cats { padding: 8px 12px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.suggest .s-cats a { display: inline-block; padding: 3px 10px; border-radius: 14px; background: var(--accent); font-size: 13px; }
.suggest .s-all { display: block; text-align: center; padding: 10px; font-weight: 600; border-top: 1px solid var(--line); }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.s-in_stock { color: #138a4a; } .s-on_order { color: var(--orange); } .s-none { color: var(--muted); }
/* Инфо-страницы */
.info-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.info-nav { list-style: none; margin: 0; padding: 8px; }
.info-nav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none !important; }
.info-nav a.active { background: var(--accent); font-weight: 600; }
.info-content h2 { margin-top: 24px; } .info-content h2:first-child { margin-top: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.info-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.info-card b { display: block; margin-bottom: 4px; }
.info-card .big { font-size: 20px; font-weight: 800; }
table.sched { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
table.sched th, table.sched td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
table.sched th { background: #111; color: #fff; font-weight: 600; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; }
@media (max-width: 900px) { .info-layout { grid-template-columns: 1fr; } .info-nav { display: flex; overflow-x: auto; } .info-nav a { white-space: nowrap; } }
/* Без горизонтальной прокрутки на телефонах */

.card, .product-layout > *, .catalog-layout > *, .cart-layout > * { min-width: 0; }
.btn-kaspi { white-space: normal; height: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; text-align: center; line-height: 1.2; }
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .card .btn { padding: 0 8px; font-size: 14px; }
}
.stock-wrap .stock { display: block; padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.stock-wrap .stock::before { position: absolute; left: 0; top: .5em; }
.info-layout > * { min-width: 0; }
.card .btn-kaspi { height: auto; min-height: 38px; }
