* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #f2f7f7;
  --color-surface: #ffffff;
  --color-surface-2: #e3eeee;
  --color-border: #c3d6d6;
  --color-text: #0c2427;
  --color-muted: #4d6668;
  --color-accent: #0891a8;
  --color-accent-hover: #067288;
  --color-accent-light: rgba(8,145,168,0.09);
  --color-cta: #0a2f4d;
  --color-cta-hover: #123f66;
  --color-cta-light: rgba(10,47,77,0.06);
  --color-danger: #dc2626;
  --color-success: #16a34a;
  --radius: 2px;
  --radius-lg: 3px;
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --side-pad: 24px;
}

html, body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body > main, body > .layout {
  flex: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.hidden { display: none !important; }

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--color-cta);
  color: #a9c2cf;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.top-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 7px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar-inner span:first-child { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px var(--side-pad);
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '';
  width: 11px;
  height: 11px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.logo-accent { color: var(--color-accent); }

.logo-img { height: 40px; width: auto; display: block; object-fit: contain; }

.header-search {
  flex: 1;
  display: flex;
  max-width: 480px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-input, .header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.search-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0 14px;
  display: flex;
  align-items: center;
}

.search-btn:hover { background: var(--color-accent-hover); }

.header-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  color: var(--color-muted);
  border-radius: var(--radius);
}

.nav-btn:hover { color: var(--color-accent); background: var(--color-accent-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher, .lang-switch {
  display: flex;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switcher button, .lang-switch button {
  border: none;
  background: var(--color-surface);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
}

.lang-switcher button.active, .lang-switch button.active {
  background: var(--color-accent);
  color: #fff;
}

.cart-open-btn {
  position: relative;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  color: var(--color-text);
}

.cart-open-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--color-cta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.menu-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--color-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-cart {
  background: var(--color-cta);
  color: #fff;
  border: 2px solid var(--color-cta);
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
}
.btn-cart:hover { background: var(--color-cta-hover); box-shadow: 0 4px 10px rgba(10,47,77,0.22); }

/* ---------- Layout ---------- */
.container { max-width: 1360px; margin: 0 auto; padding: 0 var(--side-pad); }

main { max-width: 1360px; margin: 0 auto; padding: 28px var(--side-pad) 60px; }

.home-section { margin-bottom: 40px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.view-all-link { font-size: 13px; font-weight: 700; color: var(--color-accent); }
.view-all-link:hover { text-decoration: underline; }

/* ---------- Hero banners (CSS gradient) ---------- */
.hero-row, .spotlight-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-row-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  height: 391px;
}

.hero-row-split .hero-banner.hero-main {
  grid-row: 1 / 3;
  aspect-ratio: auto;
  align-items: flex-end;
}

.hero-row-split .hero-banner:not(.hero-main) {
  aspect-ratio: auto;
  align-items: flex-end;
}

.hero-banner {
  position: relative;
  flex: 1 1 300px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  padding: 20px;
}

.hero-banner:hover { box-shadow: 0 6px 18px rgba(12,36,39,0.12); }

.banner-bg-1 {
  background:
    linear-gradient(180deg, rgba(3,27,31,0.15) 0%, rgba(3,27,31,0.85) 100%),
    url('../Img/hero-energy.png') center / cover no-repeat;
}
.banner-bg-2 {
  background:
    linear-gradient(180deg, rgba(3,27,31,0.15) 0%, rgba(3,27,31,0.85) 100%),
    url('../Img/hero-antenna.png') center / cover no-repeat;
}
.banner-bg-3 {
  background:
    linear-gradient(180deg, rgba(3,27,31,0.15) 0%, rgba(3,27,31,0.85) 100%),
    url('../Img/hero-starlink.png') center / cover no-repeat;
}

.hero-banner-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.14);
  padding: 4px 9px;
  border-radius: var(--radius);
}

.hero-banner-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-banner-photo {
  display: block;
  flex: 1 1 320px;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
}
.hero-banner-photo img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* ---------- Product grid / card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.product-card:hover { box-shadow: 0 8px 20px rgba(12,36,39,0.12); border-color: var(--color-accent); transform: translateY(-2px); }

.product-card-link { display: flex; flex-direction: column; flex: 1; }

.product-card .thumb-wrap, .product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 5/6;
  background: var(--color-surface-2);
  overflow: hidden;
  flex-shrink: 0;
}

.product-card img, .product-img-wrap img {
  width: 80%;
  height: 80%;
  margin: 10%;
  object-fit: contain;
  display: block;
}

.no-img { width: 100%; height: 100%; background: var(--color-surface-2); }

.badge, .badge-out {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--color-danger);
  color: #fff;
}

.badge.in-stock { background: var(--color-success); }

.quick-add-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, background 0.15s, color 0.15s;
}
.product-card:hover .quick-add-btn { opacity: 1; transform: translateY(0); }
.quick-add-btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
@media (hover: none) {
  .quick-add-btn { opacity: 1; transform: none; }
}

.product-body, .info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.product-brand {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 7px;
  align-self: flex-start;
}

.product-card { border-top: 3px solid var(--color-accent); box-shadow: 0 1px 3px rgba(12,36,39,0.06); }

.product-name, .name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row { margin-top: auto; }

.product-price, .price {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-accent);
}

.product-footer { padding: 0 12px 12px; }
.product-footer .btn-cart { width: 100%; }

/* ---------- Category tiles / brand chips ---------- */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.category-tile {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 700;
  font-size: 13px;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.category-tile:hover { border-color: var(--color-accent); box-shadow: 0 4px 12px rgba(12,36,39,0.10); color: var(--color-accent); }

.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.brand-chip {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-surface);
}
.brand-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.faq-item summary { font-weight: 700; cursor: pointer; font-size: 14px; }
.faq-item p { margin-top: 8px; font-size: 13px; color: var(--color-muted); }

/* ---------- About teaser ---------- */
.about-teaser {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.about-teaser h2 { font-family: var(--font-head); font-size: 20px; margin-bottom: 10px; }
.about-teaser p { color: var(--color-muted); margin-bottom: 16px; max-width: 640px; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.review-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}
.review-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.review-author { font-weight: 700; font-size: 13px; }
.review-date { font-size: 12px; color: var(--color-muted); }
.review-stars { color: var(--color-accent); margin-bottom: 6px; }
.review-text { font-size: 13px; color: var(--color-muted); }

/* ---------- Advantages ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.advantage-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}
.advantage-card h3 { font-size: 15px; margin-bottom: 6px; }
.advantage-card p { font-size: 13px; color: var(--color-muted); }

/* ---------- Related / see-also products ---------- */
.related-block, .see-also {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px var(--side-pad) 8px;
}
.related-block h2, .see-also h2 {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 16px;
}
.related-block:empty, .see-also:empty { display: none; }

.see-also {
  padding-top: 20px;
  padding-bottom: 4px;
}
.see-also h2 { font-size: 16px; margin-bottom: 10px; }
.see-also .product-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.see-also .product-grid .product-card {
  flex: 0 0 160px;
}
.see-also .product-grid .desc { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #071c22;
  color: #a9c2c4;
  margin-top: auto;
  border-top: 3px solid var(--color-accent);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px var(--side-pad) 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.footer-col:first-child {
  flex: 1 1 260px;
}

.footer-col:first-child h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.footer-col h3 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.footer-col p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
}
.footer-contact-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}
.footer-contact-row a, .footer-contact-row span { color: #a9c2c4; }
.footer-contact-row a:hover { color: var(--color-accent); text-decoration: underline; }

.footer-col:has(.footer-cat-links) {
  flex: 1 1 100%;
  max-width: 100%;
  order: 10;
}
.footer-cat-links {
  column-count: 3;
  column-gap: 24px;
}
.footer-cat-links p { break-inside: avoid; margin: 0 0 6px; }

@media (max-width: 760px) {
  .footer-cat-links { column-count: 2; }
}
.footer-col a { color: #a9c2c4; }
.footer-col a:hover { color: var(--color-accent); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid #1c2c47;
  text-align: center;
  font-size: 12px;
  color: #6b7996;
  padding: 14px var(--side-pad);
}

/* ---------- Catalog layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px var(--side-pad) 60px;
  flex: 1;
}

.sidebar {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.filter-group { margin-bottom: 20px; }
.filter-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 0;
  cursor: pointer;
}

.price-range { display: flex; gap: 8px; }
.price-range input {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 7px 8px;
  font-size: 13px;
  font-family: inherit;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.catalog-toolbar h1 { font-family: var(--font-head); font-size: 22px; }

#sortSelect {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--color-surface);
}

.empty-state { text-align: center; padding: 60px 0; color: var(--color-muted); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}
.page-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ---------- Product page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gallery-main {
  aspect-ratio: 1/1;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }

.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 64px; height: 64px;
  object-fit: contain;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 4px;
}
.gallery-thumbs img.active { border-color: var(--color-accent); }

.product-info h1 { font-family: var(--font-head); font-size: 22px; margin: 0 0 14px; }
.product-info .meta { font-size: 13px; color: var(--color-muted); margin-bottom: 4px; }
.product-info .price { font-size: 26px; margin: 8px 0; }

.buy-card {
  position: sticky;
  top: 90px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}

.buy-actions { display: flex; gap: 10px; margin: 16px 0; }
.buy-actions .btn-cart, .buy-actions .btn { flex: 1; }

.info-cards-link { display: inline-block; font-size: 12px; color: var(--color-accent); margin-top: 8px; }
.info-cards-link:hover { text-decoration: underline; }

.product-page-below {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 32px;
  align-items: start;
}
.description { font-size: 14px; line-height: 1.6; background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--radius); padding: 20px; }

.specs-table { background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.specs-table h2 { font-family: var(--font-head); font-size: 16px; margin-bottom: 12px; }
.specs-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table tr:nth-child(odd) { background: var(--color-bg); }
.specs-table td { padding: 8px 10px; }
.specs-table td:first-child { color: var(--color-muted); width: 45%; }

.product-page-below .description:only-child { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .product-page-below { grid-template-columns: 1fr; }
}

/* ---------- dp-tabs (Доставка/Оплата) ---------- */
.dp-tabs { border: 2px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.dp-tab-btns { display: flex; border-bottom: 2px solid var(--color-border); }
.dp-tab-btn {
  flex: 1; padding: 11px 14px; background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-muted); display: flex; align-items: center; justify-content: center; gap: 7px;
}
.dp-tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); background: var(--color-accent-light); }
.dp-tab-panel { display: none; padding: 16px; font-size: 13px; color: var(--color-muted); }
.dp-tab-panel.active { display: block; }
.dp-tab-panel p { margin-bottom: 6px; }

/* ---------- Bank requisites ---------- */
.bank-requisites {
  background: var(--color-surface-2);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 12px;
}
.bank-requisites-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-accent); margin-bottom: 8px; }
.bank-requisites-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bank-requisites-table td { padding: 5px 0; border-bottom: 1px solid var(--color-border); }
.bank-requisites-table td:first-child { color: var(--color-muted); width: 38%; }
.bank-requisites-table td:last-child { font-weight: 600; color: var(--color-text); word-break: break-all; }

/* ---------- Product description content (Prom.ua HTML) ---------- */
.product-desc-content .dp-wrap { background: transparent; }
.product-desc-content .dp-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.product-desc-content h2, .product-desc-content h3 { color: var(--color-text); margin-bottom: 8px; }
.product-desc-content p, .product-desc-content li { color: var(--color-muted); }
.product-desc-content strong, .product-desc-content b { color: var(--color-text); }
.product-desc-content table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.product-desc-content table th { background: var(--color-surface); color: var(--color-text); padding: 9px 12px; }
.product-desc-content table td { border: 1px solid var(--color-border); color: var(--color-muted); padding: 8px 12px; }
.product-desc-content .desc-text img { display: none; }

/* Override per-product inline <style> blocks (Prom.ua export) so colors match site branding */
.product-desc-content .dp-hero {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%) !important;
  color: #fff !important;
  border-radius: var(--radius);
}
.product-desc-content .dp-hero h2, .product-desc-content .dp-hero p { color: #fff !important; }
.product-desc-content .dp-highlight {
  background: var(--color-accent-light) !important;
  border: 1px solid var(--color-border) !important;
  border-left: 4px solid var(--color-accent) !important;
  color: var(--color-text) !important;
}
.product-desc-content .dp-title { color: var(--color-accent) !important; }
.product-desc-content .dp-text { color: var(--color-muted) !important; }
.product-desc-content .dp-list li {
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}
.product-desc-content .dp-list li:before { background: var(--color-accent) !important; }
.product-desc-content .dp-table th { background: var(--color-surface-2) !important; color: var(--color-text) !important; }
.product-desc-content .dp-table td { border: 1px solid var(--color-border) !important; color: var(--color-muted) !important; }

.desc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.desc-gallery img {
  width: 100% !important;
  height: 110px !important;
  object-fit: contain !important;
  padding: 6px;
  box-sizing: border-box;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.15s;
  background: var(--color-surface-2);
}
.desc-gallery img:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.desc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
}
.desc-lightbox[hidden] { display: none; }
.desc-lightbox .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: zoom-out;
}
.desc-lightbox img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #fff;
}
.desc-lightbox .modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  z-index: 1;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(8,15,28,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 92vw;
  background: var(--color-surface); border-left: 2px solid var(--color-border);
  transform: translateX(100%); transition: transform 0.25s; z-index: 91;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-close-btn {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  font-size: 26px; color: var(--color-muted); line-height: 1;
}

.cart-drawer-body { padding: 24px 20px; overflow-y: auto; flex: 1; }

.cart-title { font-family: var(--font-head); font-size: 19px; margin-bottom: 16px; }
.cart-empty { color: var(--color-muted); font-size: 14px; }

.cart-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cart-row { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; position: relative; }
.cart-row-thumb { width: 52px; height: 52px; background: var(--color-surface-2); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-row-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.cart-row-price { font-size: 13px; color: var(--color-accent); font-weight: 700; margin-bottom: 4px; }
.cart-row-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 22px; height: 22px; border: 2px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius); font-weight: 700; }
.cart-row-remove { background: none; border: none; font-size: 18px; color: var(--color-muted); }
.cart-row-remove:hover { color: var(--color-danger); }

.cart-total { font-size: 15px; margin: 12px 0 16px; }
.cart-checkout-btn { width: 100%; }

.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--color-muted); }
.checkout-form input, .checkout-form select {
  border: 2px solid var(--color-border); border-radius: var(--radius); padding: 10px 12px;
  font-size: 14px; font-family: inherit; color: var(--color-text); background: var(--color-surface);
}
.checkout-form input:focus, .checkout-form select:focus { outline: none; border-color: var(--color-accent); }
.checkout-actions { display: flex; gap: 10px; margin-top: 6px; }
.checkout-actions .btn, .checkout-actions .btn-cart { flex: 1; }

body.cart-open-lock { overflow: hidden; }

.cart-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px);
  background: var(--color-cta); color: #fff; padding: 10px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; opacity: 0; transition: all 0.25s; z-index: 200;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Static pages ---------- */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-family: var(--font-head); font-size: 26px; }
.info-subhead { font-family: var(--font-head); font-size: 18px; margin: 22px 0 12px; }
.specs-like-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.specs-like-table td { border: 1px solid var(--color-border); padding: 8px 10px; }
.breadcrumbs { font-size: 12px; color: var(--color-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--color-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-row, .spotlight-row { flex-direction: column; }
  .hero-row-split { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .hero-row-split .hero-banner.hero-main,
  .hero-row-split .hero-banner:not(.hero-main) { grid-row: auto; aspect-ratio: 16/9; }
  .top-bar-inner span:last-child { display: none; }
}
