/* ====================================================
   Чемпион Звука — Design System v1.0
   Загружается ПОСЛЕ theme-main.css
   ==================================================== */

/* ──── TOKENS ──── */
:root {
  --bg:          #fbfaf7;
  --bg-elev:     #ffffff;
  --bg-soft:     #f3f1ec;
  --bg-card:     #ffffff;
  --line:        rgba(20,18,14,.08);
  --line-strong: rgba(20,18,14,.16);
  --ink:   #14120e;
  --ink-1: #2b2820;
  --ink-2: #5b574d;
  --ink-3: #8a8578;
  --accent:        #f26a1f;
  --accent-soft:   rgba(242,106,31,.10);
  --accent-soft-2: rgba(242,106,31,.18);
  --ok:      #2f8a4a;
  --ok-soft: rgba(47,138,74,.12);
  --warn:      #c2871a;
  --warn-soft: rgba(194,135,26,.12);
  --shadow-2: 0 4px 16px rgba(20,18,14,.06), 0 1px 3px rgba(20,18,14,.05);
  --shadow-3: 0 24px 60px rgba(20,18,14,.10), 0 4px 12px rgba(20,18,14,.06);
  --font-sans:    "Inter Tight","Helvetica Neue",system-ui,sans-serif;
  --font-display: "Bricolage Grotesque","Inter Tight",system-ui,sans-serif;
  --font-mono:    "JetBrains Mono",ui-monospace,monospace;
  --max-w: 1240px;
}

/* ──── GLOBAL ──── */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  font-size: 15px; line-height: 1.5; margin: 0;
}
#container { background: var(--bg) !important; }
a { color: var(--ink-1); text-decoration: none; }
a:hover { color: var(--accent); }

/* Скрыть старый топ-бар и OpenCart-меню */
#top { display: none !important; }
nav.navbar { display: none !important; }
/* Скрыть старый header OpenCart */
header:not(.cz-header) { display: none !important; }

/* ──── CZ-HEADER ──── */
.cz-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.cz-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.cz-logo {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink) !important; text-decoration: none !important; flex-shrink: 0;
}
.cz-logo-text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.cz-logo img { max-height: 40px; width: auto; }

.cz-nav { display: flex; gap: 20px; flex-shrink: 0; }
.cz-nav-link {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none !important;
  white-space: nowrap; transition: color .15s;
}
.cz-nav-link:hover { color: var(--ink); }

.cz-header-spacer { flex: 1; }

/* Поиск */
.cz-search-wrap { width: 280px; flex-shrink: 0; }
.cz-search-wrap form,
.cz-search-wrap #search { width: 100%; }
.cz-search-wrap .input-group {
  display: flex !important; align-items: center;
  background: var(--bg-soft);
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden; padding: 0;
}
.cz-search-wrap input[name="search"] {
  flex: 1; background: transparent !important; border: none !important;
  box-shadow: none !important; outline: none !important;
  padding: 8px 12px; font-size: 13px;
  color: var(--ink); font-family: var(--font-sans);
}
.cz-search-wrap input[name="search"]::placeholder { color: var(--ink-3); }
.cz-search-wrap .btn,
.cz-search-wrap button[type="submit"] {
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 8px 12px; color: var(--ink-3); cursor: pointer;
  display: flex; align-items: center;
}

/* Действия в хедере */
.cz-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cz-icon-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2) !important; border-radius: 999px;
  transition: color .15s, background .15s; flex-shrink: 0;
}
.cz-icon-btn:hover { color: var(--ink) !important; background: var(--bg-soft); }
.cz-header-divider { width: 1px; height: 18px; background: var(--line); flex-shrink: 0; }

/* Корзина */
.cz-cart-wrap { position: relative; }
.cz-cart-wrap #cart .btn,
.cz-cart-wrap .btn-inverse,
.cz-cart-wrap button.btn {
  background: var(--accent) !important; color: white !important;
  border: none !important; border-radius: 999px !important;
  padding: 7px 14px !important; font-size: 13px !important; font-weight: 500 !important;
  font-family: var(--font-sans) !important;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  box-shadow: 0 4px 12px rgba(242,106,31,.22) !important;
}
.cz-cart-wrap .dropdown-menu {
  border: 1px solid var(--line) !important;
  border-radius: 18px !important; box-shadow: var(--shadow-3) !important;
  background: var(--bg-elev) !important; padding: 8px !important; margin-top: 8px !important;
}
.cz-cart-wrap .dropdown-menu td,
.cz-cart-wrap .dropdown-menu a { color: var(--ink) !important; }

/* Мобильный бургер */
.cz-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer; border-radius: 8px; padding: 0;
  flex-shrink: 0;
}
.cz-burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink); border-radius: 999px; transition: transform .2s, opacity .2s;
}
.cz-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.cz-burger.open span:nth-child(2) { opacity: 0; }
.cz-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Мобильное меню */
.cz-mobile-drawer {
  display: none; position: fixed; inset: 0; top: 0; z-index: 99;
  background: var(--bg); padding-top: 68px; overflow-y: auto;
}
.cz-mobile-drawer.open { display: block; }
.cz-mobile-drawer-inner { display: flex; flex-direction: column; padding: 8px 16px 32px; }
.cz-mobile-drawer-inner a {
  padding: 14px 16px; font-size: 16px; color: var(--ink-1) !important;
  border-bottom: 1px solid var(--line); display: block;
}
.cz-mobile-drawer-inner a:hover { color: var(--accent) !important; }

/* ──── HERO ──── */
.cz-hero { max-width: var(--max-w); margin: 0 auto; padding: 44px 28px 0; }
.cz-hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: stretch;
}
.cz-hero-left {
  display: flex; flex-direction: column; justify-content: space-between; padding-top: 6px;
}
.cz-hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
  font-size: 11px; font-weight: 500; color: var(--accent);
}
.cz-hero-pill-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.cz-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px,4.5vw,64px); line-height: 1.02;
  margin: 16px 0; letter-spacing: -0.025em; font-weight: 600; color: var(--ink);
}
.cz-hero-h1 em { font-style: normal; color: var(--accent); }
.cz-hero-sub {
  color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 520px; margin: 0;
}
.cz-hero-btns { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.cz-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white !important; padding: 13px 22px;
  border-radius: 999px; border: none; font-size: 14px; font-weight: 500;
  font-family: var(--font-sans); box-shadow: 0 6px 18px rgba(242,106,31,.28);
  text-decoration: none !important; cursor: pointer; transition: opacity .15s;
}
.cz-btn-primary:hover { opacity: 0.9; color: white !important; }
.cz-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink-1) !important; padding: 13px 18px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14px; font-family: var(--font-sans); text-decoration: none !important;
  cursor: pointer; transition: background .15s;
}
.cz-btn-secondary:hover { color: var(--ink) !important; background: var(--bg-soft); }
.cz-hero-stats { display: flex; gap: 28px; margin-top: 40px; color: var(--ink-2); font-size: 12.5px; }
.cz-hero-stat-num {
  font-family: var(--font-display); font-size: 22px; color: var(--ink);
  font-weight: 600; letter-spacing: -0.01em; display: block;
}

/* Правая карточка героя */
.cz-hero-right { position: relative; }
.cz-hero-card {
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); height: 100%; min-height: 340px;
  display: flex; flex-direction: column;
}
.cz-hero-card .carousel,
.cz-hero-card .carousel-inner,
.cz-hero-card .carousel-item { flex: 1; height: 100%; }
.cz-hero-card .hero-slide { height: 100%; min-height: 340px; }
.cz-hero-card .hero-slide .hero-text { padding: 24px 28px; }
.cz-hero-card .hero-text h2 {
  font-family: var(--font-display); font-size: 24px;
  color: white; margin: 4px 0 8px; letter-spacing: -0.02em;
}
.cz-hero-card .hero-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.cz-hero-card .hero-sub { font-size: 13px; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.cz-hero-card .btn-hero {
  background: var(--accent); color: white; border-radius: 999px;
  padding: 10px 20px; font-size: 13px; font-weight: 500; border: none; display: inline-block;
}
.cz-hero-card .carousel-control-prev,
.cz-hero-card .carousel-control-next {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.18); top: auto; bottom: 16px; opacity: 1;
}
.cz-hero-card .carousel-control-prev { left: auto; right: 56px; }
.cz-hero-card .carousel-control-next { right: 12px; }
.cz-hero-badge {
  position: absolute; left: -14px; bottom: -18px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 12px; max-width: 260px; z-index: 2;
}
.cz-hero-badge-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cz-hero-badge-title { font-size: 12.5px; font-weight: 500; }
.cz-hero-badge-sub { font-size: 11.5px; color: var(--ink-2); }

/* ──── SECTIONS ──── */
.cz-section { max-width: var(--max-w); margin: 60px auto 0; padding: 0 28px; }
.cz-section-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px;
}
.cz-section-title {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  margin: 0; letter-spacing: -0.02em; color: var(--ink);
}
.cz-section-note { font-size: 13px; color: var(--ink-2); }

/* ──── КАТЕГОРИИ ──── */
.cz-cats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.cz-cat-card {
  border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  min-height: 152px; text-decoration: none !important;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink);
}
.cz-cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--ink) !important; }
.cz-cat-card.cz-cat-accent { background: var(--accent); border-color: var(--accent); color: white; }
.cz-cat-card.cz-cat-accent:hover { color: white !important; }
.cz-cat-card-pic {
  flex: 1; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; min-height: 60px;
}
.cz-cat-card-pic i { font-size: 28px; opacity: 0.35; }
.cz-cat-card.cz-cat-accent .cz-cat-card-pic { background: rgba(255,255,255,.12); }
.cz-cat-card.cz-cat-accent .cz-cat-card-pic i { opacity: 0.65; color: white; }
.cz-cat-card-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.cz-cat-card-name { font-size: 14.5px; font-weight: 500; }
.cz-cat-card-count { font-size: 11.5px; opacity: 0.6; margin-top: 2px; }

/* ──── РЕКОМЕНДУЕМЫЕ (OpenCart modules) ──── */
#home-modules { max-width: var(--max-w); margin: 60px auto 0; padding: 0 28px; }
#home-modules .container { max-width: 100%; padding: 0; }
#home-modules .row { --bs-gutter-x: 0; }
#home-modules .col-sm-3 { padding: 0; }
/* Заголовки секций модулей */
#home-modules .module-title,
#home-modules h3 {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 22px;
}

/* ──── КАРТОЧКИ ТОВАРОВ (.pcard) ──── */
.pcard {
  border-radius: 18px !important; border: 1px solid var(--line) !important;
  background: var(--bg-elev) !important; overflow: hidden;
  display: flex !important; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  height: 100%;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pcard-img { position: relative; padding: 12px 12px 6px; }
.pcard-img a img {
  border-radius: 12px !important; width: 100%;
  object-fit: contain; aspect-ratio: 1/1; background: var(--bg-soft);
}
.pcard-actions {
  position: absolute; top: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transition: opacity .2s;
}
.pcard:hover .pcard-actions { opacity: 1; }
.pca-btn {
  width: 32px; height: 32px; border-radius: 999px !important;
  background: var(--bg-elev) !important; border: 1px solid var(--line) !important;
  color: var(--ink-2) !important; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .15s;
}
.pca-btn:hover { color: var(--accent) !important; }
.pcard-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--accent); color: white;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
}
.pcard-delivery {
  position: absolute; bottom: 14px; left: 20px;
  font-size: 10.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px;
}
.pcd-instock { background: var(--ok-soft); color: var(--ok); }
.pcd-order { background: var(--bg-soft); color: var(--ink-3); }
.pcard-body {
  padding: 8px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.pcard-name {
  font-size: 13.5px; font-weight: 500; color: var(--ink) !important;
  line-height: 1.3; display: block; text-decoration: none !important;
}
.pcard-name:hover { color: var(--accent) !important; }
.pcard-price { margin-top: auto; padding-top: 8px; }
.pcprice-new {
  font-family: var(--font-display); font-size: 18px; color: var(--accent);
  font-weight: 600; letter-spacing: -0.01em; display: block;
}
.pcprice-old {
  text-decoration: line-through; color: var(--ink-3); font-size: 12px;
}
.pcard-rating { color: var(--accent); font-size: 11px; }
.btn-cart-add {
  width: 100%; margin-top: 10px; padding: 9px;
  background: var(--accent) !important; color: white !important;
  border: none !important; border-radius: 999px !important;
  font-size: 13px; font-weight: 500; font-family: var(--font-sans);
  cursor: pointer; transition: opacity .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-cart-add:hover { opacity: 0.9; }

/* ──── БРЕНДЫ ──── */
.cz-brands-wrap { max-width: var(--max-w); margin: 60px auto 0; padding: 0 28px; }
.cz-brands-box {
  border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 28px; background: var(--bg-elev);
}
.cz-brands-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px;
}
.cz-brands-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 0; letter-spacing: -0.02em;
}
.cz-brands-note { font-size: 13px; color: var(--ink-2); }
.cz-brands-grid {
  display: grid; grid-template-columns: repeat(6,1fr); border-top: 1px solid var(--line);
}
.cz-brand-cell {
  padding: 18px 4px; text-align: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink-1);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.cz-brand-cell:nth-child(6n) { border-right: none; }
.cz-brand-cell:nth-last-child(-n+6) { border-bottom: none; }
.cz-brand-cell:hover { color: var(--accent); }

/* ──── КАК КУПИТЬ ──── */
.cz-how-section { max-width: var(--max-w); margin: 60px auto 0; padding: 0 28px 80px; }
.cz-how-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.cz-how-card {
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg-elev); overflow: hidden; display: flex; flex-direction: column;
}
.cz-how-card-map {
  aspect-ratio: 16/9; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.cz-how-card-map iframe { width: 100%; height: 100%; border: none; }
.cz-how-card-body { padding: 20px; flex: 1; }
.cz-how-card-icon { color: var(--accent); font-size: 18px; }
.cz-how-card-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  margin: 8px 0; letter-spacing: -0.01em; color: var(--ink);
}
.cz-how-card-desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; margin: 8px 0 0; }
.cz-how-link { color: var(--accent) !important; font-size: 13.5px; margin-top: 18px; display: block; }
.cz-how-list { list-style: none; padding: 0; margin: 10px 0 0; }
.cz-how-list li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--ink-2); font-size: 13.5px; line-height: 1.7;
}
.cz-how-list .ci { color: var(--ok); flex-shrink: 0; margin-top: 3px; }
.cz-how-phone {
  font-family: var(--font-mono); font-size: 14px; color: var(--ink) !important;
  margin-top: 18px; display: block; text-decoration: none !important;
}

/* ──── ФУТЕР ──── */
#site-footer {
  background: var(--ink) !important; color: rgba(255,255,255,.7) !important;
  border-top: 1px solid var(--line) !important;
}
#site-footer .container { max-width: var(--max-w); margin: 0 auto; padding: 48px 28px 28px; }
#site-footer a { color: rgba(255,255,255,.65); }
#site-footer a:hover { color: white; }
#site-footer .footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 32px; }
#site-footer .footer-logo {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--accent) !important; display: block; margin-bottom: 12px;
}
#site-footer .footer-desc {
  font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.6; margin: 0 0 20px; max-width: 280px;
}
#site-footer .footer-contacts { display: flex; flex-direction: column; gap: 8px; }
#site-footer .footer-phone { font-size: 15px; color: rgba(255,255,255,.85) !important; font-weight: 500; }
#site-footer .footer-hours,
#site-footer .footer-addr { font-size: 13px; color: rgba(255,255,255,.45); }
#site-footer .footer-hours i,
#site-footer .footer-addr i,
#site-footer .footer-phone i { margin-right: 6px; color: var(--accent); }
#site-footer .footer-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
#site-footer .footer-col h5 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin: 0 0 14px;
}
#site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
#site-footer .footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,.6); }
#site-footer .footer-col ul li a:hover { color: white; }
#site-footer .footer-social {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 10px;
}
#site-footer .footer-social a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7) !important;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  transition: border-color .15s, color .15s;
}
#site-footer .footer-social a:hover { color: white !important; border-color: rgba(255,255,255,.3); }
#site-footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; color: rgba(255,255,255,.28);
}

/* ──── КАТЕГОРИЯ ──── */
#page-category { background: var(--bg); }
#page-category .container { max-width: var(--max-w); margin: 0 auto; padding: 20px 28px 80px; }
.site-breadcrumb { margin-bottom: 14px; }
.site-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0; }
.site-breadcrumb .breadcrumb-item { font-size: 12.5px; color: var(--ink-3); }
.site-breadcrumb .breadcrumb-item.active { color: var(--ink); }
.site-breadcrumb .breadcrumb-item a { color: var(--ink-3); }
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--ink-3); }
.cat-title {
  font-family: var(--font-display); font-size: 44px; font-weight: 600;
  margin: 0 0 6px; letter-spacing: -0.02em; color: var(--ink);
}
.prod-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: 26px; align-items: start; }
.prod-sidebar {
  position: sticky; top: 80px;
  border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--bg-elev);
}
.cat-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.cat-controls { display: flex; gap: 10px; align-items: center; }
#input-sort, #input-limit {
  border-radius: 999px !important; padding: 7px 14px !important;
  border: 1px solid var(--line) !important; background: transparent !important;
  font-size: 13px !important; color: var(--ink); outline: none;
}
.view-btn {
  width: 34px; height: 34px; border-radius: 999px !important;
  border: 1px solid var(--line) !important; background: transparent !important;
  color: var(--ink-2) !important; transition: all .15s;
}
.view-btn.active, .view-btn:hover {
  background: var(--ink) !important; color: white !important; border-color: var(--ink) !important;
}
.cat-pagination {
  display: flex; justify-content: space-between; align-items: center; margin-top: 28px;
  font-size: 13px; color: var(--ink-2);
}
.pagination .page-link {
  border-radius: 999px !important; margin: 0 2px;
  border: 1px solid var(--line) !important; color: var(--ink-1);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  padding: 0; background: transparent !important;
}
.pagination .page-item.active .page-link {
  background: var(--accent) !important; border-color: var(--accent) !important; color: white !important;
}
.pagination .page-link:hover { background: var(--bg-soft) !important; }
.filter-stock-box, .filter-brand-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-stock-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-1); cursor: pointer; }
.filter-brand-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-1); cursor: pointer; }
.filter-brand-list { padding: 10px 0 0; }
.sidebar-cats a {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-1); text-decoration: none !important;
  transition: background .15s, color .15s;
}
.sidebar-cats a:hover, .sidebar-cats a.active { background: var(--accent-soft); color: var(--accent); }

/* ──── СТРАНИЦА ТОВАРА ──── */
.page-product-wrap { max-width: var(--max-w); margin: 0 auto; padding: 20px 28px 80px; }

/* ──── ALERT ──── */
#alert .alert { border-radius: 14px; }
#alert .alert-success { background: var(--ok-soft) !important; color: var(--ok) !important; border-color: var(--ok) !important; }
#alert .alert-danger { background: var(--warn-soft) !important; color: var(--warn) !important; border-color: var(--warn) !important; }

/* ──── АДАПТИВ ──── */
@media (max-width: 991px) {
  .cz-nav { display: none; }
  .cz-search-wrap { display: none; }
  .cz-burger { display: flex; }
  .cz-header-inner { gap: 12px; padding: 12px 16px; }
  .cz-hero { padding: 24px 16px 0; }
  .cz-hero-grid { grid-template-columns: 1fr; }
  .cz-hero-right { display: none; }
  .cz-hero-h1 { font-size: 36px; }
  .cz-cats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .cz-section { padding: 0 16px; }
  .cz-section-title { font-size: 24px; }
  .cz-brands-wrap { padding: 0 16px; }
  .cz-brands-grid { grid-template-columns: repeat(3,1fr); }
  .cz-how-section { padding: 0 16px 60px; }
  .cz-how-grid { grid-template-columns: 1fr; }
  #home-modules { padding: 0 16px; }
  .prod-layout { grid-template-columns: 1fr; }
  .prod-sidebar { position: static; }
  #page-category .container { padding: 16px 16px 60px; }
  #site-footer .container { padding: 36px 16px 24px; }
  #site-footer .footer-top { grid-template-columns: 1fr; gap: 28px; }
  #site-footer .footer-links { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 576px) {
  .cz-brands-grid { grid-template-columns: repeat(2,1fr); }
  .cz-hero-stats { gap: 16px; }
  .cat-title { font-size: 32px; }
  #site-footer .footer-links { grid-template-columns: 1fr 1fr; }
}

/* ──── ФИКСЫ КОНФЛИКТОВ С theme-main.css ──── */

/* section-title в home-modules был белым */
.section-title { color: var(--ink) !important; }
#home-modules .section-title,
#home-modules h3,
#home-modules .module-title { color: var(--ink) !important; }

/* Скрыть старую прокручиваемую полосу брендов */
.brands-track,
.brands-inner,
.brands-wrap { display: none !important; }

/* Скрыть старый video-section тёмный фон */
.vbg-1, .vbg-2, .vbg-3, .vbg-4 { background: var(--bg-soft) !important; color: var(--ink) !important; }

/* Скрыть старый sidebar в product (prod-layout с сайдбаром — теперь не нужен) */
#page-product .prod-layout { display: block !important; }
#page-product .prod-sidebar { display: none !important; }
#page-product .prod-card { display: block !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; }

/* ──── СТРАНИЦА ТОВАРА (product.twig) ──── */

#page-product { background: var(--bg); }
.page-product-wrap { max-width: var(--max-w); margin: 0 auto; padding: 20px 28px 80px; }

/* Breadcrumb */
.page-product-wrap .site-breadcrumb { margin-bottom: 20px; }

/* 2-column grid: gallery | info */
.pp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 52px;
}

/* Gallery column */
.pp-gallery-col { display: flex; flex-direction: column; gap: 10px; }

.pp-main-img-wrap {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.pp-main-img {
  width: 100%; aspect-ratio: 5/4;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}
.pp-img-ph { width: 100%; aspect-ratio: 5/4; background: var(--bg-soft); border-radius: 14px; }

.pp-badge-sale {
  position: absolute; top: 20px; left: 20px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.pp-stock-pill {
  position: absolute; bottom: 20px; left: 20px;
  font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
}
.pp-stock-ok { background: var(--ok-soft); color: var(--ok); }
.pp-stock-ord { background: var(--bg-soft); color: var(--ink-3); }

.pp-thumbs {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 8px;
}
.pp-thumb {
  display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); padding: 4px; background: var(--bg-elev);
  transition: border-color .15s;
}
.pp-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 8px; display: block; }
.pp-thumb-active,
.pp-thumb:hover { border-color: var(--ink) !important; border-width: 2px; }

/* Info column */
.pp-info-col { display: flex; flex-direction: column; gap: 18px; }

.pp-brand-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.pp-brand-label a { color: var(--ink-3) !important; text-decoration: none !important; }
.pp-brand-label a:hover { color: var(--accent) !important; }

.pp-title {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 3.5vw, 44px) !important;
  font-weight: 600 !important; line-height: 1.05 !important;
  letter-spacing: -0.025em !important; color: var(--ink) !important; margin: 0 !important;
}

.pp-meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.pp-stars { color: var(--accent); font-size: 13px; }
.pp-stars .fa-regular.fa-star { color: var(--line-strong); }
.pp-reviews-link { color: var(--ink-2); text-decoration: none; }
.pp-reviews-link:hover { color: var(--accent); }
.pp-meta-sep { color: var(--line-strong); }
.pp-sku { color: var(--ink-3); }

/* Price */
.pp-price-block { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pp-price {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent); line-height: 1;
}
.pp-price-old { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.pp-tax { font-size: 11px; color: var(--ink-3); }
.pp-discounts { font-size: 13px; color: var(--ink-2); }
.pp-discount-row { padding: 2px 0; }

/* Options */
.pp-options { display: flex; flex-direction: column; gap: 14px; }
.pp-select {
  border-radius: 12px !important; border: 1px solid var(--line) !important;
  background: var(--bg-elev) !important; color: var(--ink) !important;
  padding: 10px 14px !important; font-size: 13.5px !important; font-family: var(--font-sans) !important;
  outline: none !important;
}
.pp-radio-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pp-radio-pill { cursor: pointer; }
.pp-radio-input { display: none; }
.pp-radio-pill span {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-1);
  background: transparent; transition: border-color .15s, background .15s;
}
.pp-radio-input:checked + span {
  border-color: var(--ink); background: var(--bg-soft); font-weight: 500;
}

/* Qty + Add to cart row */
.pp-add-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pp-qty-wrap {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  flex-shrink: 0;
}
.pp-qty-btn {
  background: transparent; border: none; width: 40px; height: 48px;
  font-size: 20px; cursor: pointer; color: var(--ink-2);
  transition: color .15s, background .15s; font-family: var(--font-sans);
}
.pp-qty-btn:hover { color: var(--ink); background: var(--bg-soft); }
.pp-qty-input {
  width: 52px; text-align: center; border: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  height: 48px; font-size: 15px; font-weight: 600; background: transparent;
  color: var(--ink); font-family: var(--font-sans);
}
.pp-cart-btn {
  flex: 1; min-width: 160px;
  background: var(--accent); color: white; border: none;
  border-radius: 14px; padding: 15px 22px;
  font-size: 15px; font-weight: 500; font-family: var(--font-sans);
  cursor: pointer; transition: opacity .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(242,106,31,.28);
}
.pp-cart-btn:hover { opacity: 0.9; color: white; }
.pp-cart-btn:disabled { opacity: 0.6; }

/* Secondary actions */
.pp-sec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-sec-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-sans); transition: color .15s, border-color .15s;
}
.pp-sec-btn:hover { color: var(--accent); border-color: var(--accent-soft-2); }

/* Service strip */
.pp-svc-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--bg-elev);
}
.pp-svc-cell {
  padding: 14px 12px; display: flex; gap: 10px; align-items: flex-start;
  border-right: 1px solid var(--line);
}
.pp-svc-cell:last-child { border-right: none; }
.pp-svc-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pp-svc-t { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.pp-svc-s { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }

/* ── Tabs ── */
.pp-tabs-wrap { margin-top: 0; }

.pp-tab-nav {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.pp-tab-link {
  padding: 12px 18px; font-size: 14px; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  text-decoration: none !important; transition: color .15s;
  cursor: pointer; white-space: nowrap;
}
.pp-tab-link:hover { color: var(--ink); }
.pp-tab-active { color: var(--ink) !important; border-bottom-color: var(--ink) !important; font-weight: 500; }

.pp-tab-pane { font-size: 14.5px; line-height: 1.75; color: var(--ink-1); }
.pp-tab-content { padding: 0; background: transparent !important; box-shadow: none !important; }

/* Spec table redesign */
.pp-spec-grid { display: flex; flex-direction: column; gap: 32px; }
.pp-spec-group {}
.pp-spec-group-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em;
}
.pp-spec-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.pp-spec-key { color: var(--ink-2); }
.pp-spec-val { color: var(--ink); font-family: var(--font-mono); font-size: 13px; text-align: right; max-width: 60%; }

/* Related products section title */
.pp-tabs-wrap + * .section-title,
#page-product .section-title { color: var(--ink) !important; }

/* Override old prod-tabs from theme-main.css */
.prod-tabs { background: transparent !important; box-shadow: none !important; padding: 0 !important; }

/* ──── АДАПТИВ (product page) ──── */
@media (max-width: 860px) {
  .pp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pp-thumbs { grid-template-columns: repeat(5,1fr); }
  .pp-title { font-size: 28px !important; }
  .pp-price { font-size: 32px; }
  .pp-svc-strip { grid-template-columns: 1fr; }
  .pp-svc-cell { border-right: none !important; border-bottom: 1px solid var(--line); }
  .pp-svc-cell:last-child { border-bottom: none; }
  .page-product-wrap { padding: 16px 16px 60px; }
}
@media (max-width: 480px) {
  .pp-thumbs { grid-template-columns: repeat(4,1fr); }
  .pp-add-row { flex-direction: column; align-items: stretch; }
  .pp-cart-btn { min-width: unset; }
}

/* ════════════════════════════════════════════════════════
   v2 ДОБАВЛЕНИЯ: agressive hide + hero pick + catalog + cart
   ════════════════════════════════════════════════════════ */

/* ──── СКРЫТЬ ВСЁ СТАРОЕ ──── */
#catalog-bar, .catalog-bar-inner, .catalog-btn-wrap, .catalog-quick-nav,
.cat-vdrop, .cat-vlist, .cat-vitem, .cat-vflyout, .cat-vlink,
.mob-overlay, .mob-panel, .site-search,
.home-section-head,
.brand-item, .brands-wrap,
nav.navbar, #top, #menu { display: none !important; }
header:not(.cz-header) { display: none !important; }

/* page-home — на главной home-section можно оставить только если нужны OC модули,
   но скрываем home-section-title (старый стиль) и home-section-head */
body.page-home .home-section-title,
body.page-home .home-section-head { display: none !important; }
body.page-home .home-section { background: transparent !important; padding: 0 !important; margin: 60px 0 0 !important; }

/* Скрыть видеосекцию и тёмные блоки на главной */
.video-section, #video-block, .vbg-1, .vbg-2, .vbg-3, .vbg-4 { display: none !important; }

/* ──── НОВЫЙ HERO PICK CARD ──── */
.cz-hero-pick {
  display: flex; flex-direction: column;
  border-radius: 28px; border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px;
  text-decoration: none !important; color: var(--ink) !important;
  height: 100%; min-height: 340px;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.cz-hero-pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--ink) !important; }
.cz-hero-pick-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.cz-hero-pick-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.cz-hero-pick-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  margin-top: 4px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1;
}
.cz-hero-pick-pill {
  flex-shrink: 0;
  background: var(--ink); color: var(--bg);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
}
.cz-hero-pick-art {
  flex: 1; margin: 16px 0;
  border-radius: 18px; overflow: hidden;
  background: var(--bg-elev);
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
}
.cz-hero-pick-art svg { width: 100%; height: 100%; display: block; }
.cz-hero-pick-foot {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-2); font-size: 13px;
}
.cz-hero-pick-cta {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500;
}

/* ──── CATEGORY PAGE (новая) ──── */
#page-category { background: var(--bg); }
.cat-wrap { max-width: var(--max-w); margin: 0 auto; padding: 20px 28px 80px; }

.cat-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px; margin: 14px 0 26px;
}
.cat-head-text { max-width: 640px; }
.cat-title {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 4vw, 44px) !important; font-weight: 600 !important;
  letter-spacing: -0.02em !important; color: var(--ink) !important;
  margin: 0 0 6px !important; line-height: 1.05 !important;
}
.cat-desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.cat-meta { color: var(--ink-3); font-size: 12.5px; }

/* Controls */
.cat-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat-view-toggle {
  display: flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.cat-vbtn {
  padding: 6px 10px; border-radius: 999px; border: none;
  background: transparent; color: var(--ink-2); cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-vbtn.active { background: var(--accent); color: white; }
.cat-select {
  padding: 9px 14px; padding-right: 36px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: 13px;
  font-family: var(--font-sans); outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%235b574d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* Subcategories */
.cat-sub-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px;
}
.cat-sub-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: var(--bg-elev); color: var(--ink) !important;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none !important; transition: transform .15s, box-shadow .15s;
}
.cat-sub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cat-sub-card-img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 10px; background: var(--bg-soft); }
.cat-sub-card-icon {
  width: 100%; aspect-ratio: 1/1; border-radius: 10px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 28px;
}
.cat-sub-card-name { font-size: 14.5px; font-weight: 500; }

/* Grid: filters | results */
.cat-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start;
}

/* Filters */
.cat-filters { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 22px; }
.cat-filter-group {}
.cat-filter-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; cursor: pointer; user-select: none;
}
.cat-filter-title {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.cat-filter-head svg { color: var(--ink-3); }
.cat-filter-body { display: flex; flex-direction: column; gap: 9px; }
.cat-filter-collapsed { display: none; }

/* sidebar_tree styling within filter */
.cat-filter-body .sidebar-cats a {
  display: block; padding: 7px 0; border-radius: 0;
  font-size: 13.5px; color: var(--ink-1); text-decoration: none !important;
  transition: color .15s;
}
.cat-filter-body .sidebar-cats a:hover,
.cat-filter-body .sidebar-cats a.active { background: transparent; color: var(--accent); }

/* Toggle (in-stock) */
.cat-toggle {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--ink-1); cursor: pointer;
}
.cat-toggle-track {
  width: 32px; height: 18px; border-radius: 999px;
  background: var(--line-strong); position: relative; transition: background .15s;
  flex-shrink: 0;
}
.cat-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 999px; background: white; transition: left .15s;
}
.cat-toggle-track.on { background: var(--ink); }
.cat-toggle-track.on .cat-toggle-thumb { left: 16px; }

/* Brand checkbox row */
.cat-check-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-1); cursor: pointer; padding: 2px 0;
}
.cat-check-box {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid var(--line-strong); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s;
}
.cat-check-row.checked .cat-check-box {
  background: var(--ink); border-color: var(--ink);
}
.cat-check-row.checked .cat-check-box::after {
  content: ''; width: 8px; height: 4px;
  border-left: 1.5px solid white; border-bottom: 1.5px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}
.cat-check-label { flex: 1; }
.cat-check-count { color: var(--ink-3); font-size: 12px; }

/* Products grid */
.cat-prod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cat-prod-cell {}
.cat-prod-list-view { grid-template-columns: 1fr; }

/* Pagination */
.cat-pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; font-size: 13px; color: var(--ink-2);
}
.cat-pag-info { color: var(--ink-3); }
.cat-pag-links .pagination { margin: 0; gap: 4px; }
.cat-pag-links .page-link {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line) !important; color: var(--ink-1) !important;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 !important; background: transparent !important; font-size: 13px;
  margin: 0 2px;
}
.cat-pag-links .page-item.active .page-link {
  background: var(--accent) !important; border-color: var(--accent) !important; color: white !important;
}
.cat-pag-links .page-link:hover { background: var(--bg-soft) !important; }

/* Empty */
.cat-empty {
  text-align: center; padding: 80px 20px; color: var(--ink-2);
}
.cat-empty i { font-size: 48px; color: var(--ink-3); margin-bottom: 16px; display: block; }

/* Скрыть старый prod-layout/sidebar в category */
#page-category .prod-layout,
#page-category .prod-sidebar,
#page-category .prod-main,
#page-category .filter-stock-box,
#page-category .filter-brand-box { display: revert !important; }
#page-category > .container { display: none !important; } /* нет контейнера в новой верстке */

/* ──── CART PAGE ──── */
#checkout-cart, .ck-wrap { max-width: var(--max-w); margin: 0 auto; padding: 20px 28px 80px; }
.ck-wrap .site-breadcrumb { margin-bottom: 20px; }

.ck-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 12px; margin-bottom: 26px;
}
.ck-title {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 4vw, 44px) !important; font-weight: 600 !important;
  margin: 0 !important; letter-spacing: -0.02em !important;
}
.ck-meta { color: var(--ink-2); font-size: 14px; }

.ck-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start;
}

.ck-items { display: flex; flex-direction: column; gap: 12px; }

.ck-item {
  display: grid; grid-template-columns: 120px 1fr auto auto; gap: 18px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elev);
}
.ck-item-img {
  width: 120px; aspect-ratio: 1/1; border-radius: 10px;
  background: var(--bg-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ck-item-img img { width: 100%; height: 100%; object-fit: contain; }
.ck-item-img-ph { width: 100%; height: 100%; }
.ck-item-info {}
.ck-item-name {
  font-size: 15px; font-weight: 500; color: var(--ink) !important;
  text-decoration: none !important; display: block; line-height: 1.3;
}
.ck-item-name:hover { color: var(--accent) !important; }
.ck-item-sub {
  font-size: 12px; color: var(--ink-3); margin-top: 4px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ck-item-warn { color: var(--warn); }
.ck-item-opts {
  list-style: none; padding: 0; margin: 6px 0 0;
  font-size: 12px; color: var(--ink-2);
}
.ck-item-pills { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ck-pill {
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
}
.ck-pill-ok { background: var(--ok-soft); color: var(--ok); }
.ck-pill-text { color: var(--ink-2); font-size: 12px; }

.ck-item-qty-form { display: flex; align-items: center; gap: 8px; }
.ck-qty {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.ck-qty-btn {
  width: 28px; height: 28px; border-radius: 999px; border: none;
  background: transparent; color: var(--ink-2); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); padding: 0;
}
.ck-qty-btn:hover { background: var(--bg-soft); color: var(--ink); }
.ck-qty-input {
  width: 32px; text-align: center; border: none; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--ink); outline: none;
}
.ck-qty-update {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ck-qty-update:hover { color: var(--accent); border-color: var(--accent-soft-2); }

.ck-item-price { text-align: right; min-width: 100px; }
.ck-item-total {
  font-family: var(--font-display); font-size: 18px; color: var(--accent);
  font-weight: 600; letter-spacing: -0.01em;
}
.ck-item-unit { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ck-item-rm {
  background: transparent !important; border: none !important;
  color: var(--ink-3) !important; font-size: 12px; margin-top: 4px;
  text-decoration: none !important; display: inline-block;
  padding: 0 !important;
}
.ck-item-rm:hover { color: var(--warn) !important; }

/* Modules block */
.ck-modules {
  margin-top: 16px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 18px;
}
.ck-modules-head { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ck-modules-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }

/* Summary */
.ck-summary {
  position: sticky; top: 80px;
  border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  background: var(--bg-elev);
}
.ck-sum-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ck-sum-total {
  font-family: var(--font-display); font-size: 38px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); margin-top: 4px;
}
.ck-sum-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.ck-sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
.ck-sum-row span:last-child { color: var(--ink); }
.ck-sum-divider { height: 1px; background: var(--line); margin: 16px 0; }

/* Pickup radios */
.ck-sum-radios { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; margin-bottom: 16px; }
.ck-radio-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ck-radio-row:hover { background: var(--bg-soft); }
.ck-radio-active {
  border-color: var(--ink); background: var(--bg-soft);
}
.ck-radio-dot {
  width: 14px; height: 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--bg);
  flex-shrink: 0; margin-top: 2px; position: relative; transition: all .15s;
}
.ck-radio-active .ck-radio-dot { border-color: var(--ink); border-width: 4px; }
.ck-radio-t { font-size: 13px; font-weight: 500; color: var(--ink); }
.ck-radio-s { font-size: 11.5px; color: var(--ink-2); margin-top: 1px; }

.ck-checkout-btn {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; padding: 14px;
  background: var(--accent); color: white !important;
  border-radius: 14px; border: 0;
  font-size: 15px; font-weight: 500; font-family: var(--font-sans);
  text-decoration: none !important; cursor: pointer;
  box-shadow: 0 8px 22px rgba(242,106,31,.28);
  transition: opacity .15s; margin-top: 4px;
}
.ck-checkout-btn:hover { opacity: 0.9; color: white !important; }
.ck-continue {
  display: block; text-align: center; padding: 10px;
  color: var(--ink-2) !important; font-size: 13px;
  text-decoration: none !important; margin-top: 6px;
}
.ck-continue:hover { color: var(--accent) !important; }
.ck-sum-trust {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; color: var(--ink-2);
}
.ck-sum-trust i { color: var(--accent); margin-right: 6px; }

/* Empty cart */
.ck-empty { text-align: center; padding: 80px 20px; }
.ck-empty-text { color: var(--ink-2); margin-bottom: 24px; }

/* ──── АДАПТИВ ──── */
@media (max-width: 991px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-filters { position: static; }
  .cat-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-sub-cards { grid-template-columns: repeat(2, 1fr); }
  .cat-wrap { padding: 16px 16px 60px; }
  .ck-grid { grid-template-columns: 1fr; }
  .ck-summary { position: static; }
  .ck-wrap { padding: 16px 16px 60px; }
  .cz-hero-pick-title { font-size: 22px; }
}
@media (max-width: 600px) {
  .cat-prod-grid { grid-template-columns: 1fr; }
  .ck-item { grid-template-columns: 80px 1fr; gap: 12px; }
  .ck-item-img { width: 80px; }
  .ck-item-qty-form,
  .ck-item-price { grid-column: 1 / -1; justify-self: stretch; text-align: left; }
  .ck-item-price { display: flex; justify-content: space-between; align-items: center; }
}

/* ──── ДЕРЕВО КАТЕГОРИЙ ВНУТРИ ФИЛЬТРОВ КАТАЛОГА ──── */
.cat-filter-body .pct-nav { background: transparent; padding: 0; border: none; }
.cat-filter-body .pct-header { display: none; } /* свой заголовок есть */
.cat-filter-body .pct-icon { display: none; }
.cat-filter-body .pct-node { border: none; margin: 0; padding: 0; }
.cat-filter-body .pct-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0; background: transparent !important;
}
.cat-filter-body .pct-link {
  flex: 1; padding: 7px 0;
  font-size: 13.5px; color: var(--ink-1) !important;
  text-decoration: none !important;
  display: flex; align-items: center;
  background: transparent !important; border: none !important;
}
.cat-filter-body .pct-link:hover { color: var(--accent) !important; }
.cat-filter-body .pct-link span { font-weight: 400; }
.cat-filter-body .pct-toggle {
  background: transparent; border: none; color: var(--ink-3);
  padding: 4px; cursor: pointer; line-height: 1;
}
.cat-filter-body .pct-toggle i { font-size: 9px; transition: transform .2s; }
.cat-filter-body .pct-node.open .pct-toggle i { transform: rotate(90deg); color: var(--accent); }
.cat-filter-body .pct-children {
  display: none; padding: 4px 0 6px 12px;
  border-left: 1px solid var(--line); margin-left: 4px;
}
.cat-filter-body .pct-node.open > .pct-children { display: block; }
.cat-filter-body .pct-child {
  display: block; padding: 5px 0;
  font-size: 12.5px; color: var(--ink-2) !important;
  text-decoration: none !important; background: transparent !important;
}
.cat-filter-body .pct-child::before { content: ''; margin: 0; }
.cat-filter-body .pct-child:hover,
.cat-filter-body .pct-child.active { color: var(--accent) !important; }
.cat-filter-body .pct-subrow .pct-child { flex: 1; padding: 4px 0; }
.cat-filter-body .pct-subnode { margin: 0; }
.cat-filter-body .pct-subtoggle { padding: 4px; color: var(--ink-3); }
.cat-filter-body .pct-subtoggle i { font-size: 8px; }
.cat-filter-body .pct-subchildren {
  background: transparent !important;
  padding: 2px 0 2px 12px;
  border-left: 1px solid var(--line); margin: 0 0 0 4px;
}
.cat-filter-body .pct-grandchild {
  padding: 4px 0 !important;
  font-size: 12px !important; color: var(--ink-2) !important;
  background: transparent !important;
}
.cat-filter-body .pct-grandchild::before { content: ''; margin: 0; }
.cat-filter-body .pct-grandchild:hover,
.cat-filter-body .pct-grandchild.active { color: var(--accent) !important; background: transparent !important; }

/* ──── ФИКСЫ КОРЗИНЫ ПОД МАКЕТ ──── */

/* Eyebrow вместо ck-item-sub */
.ck-item-eyebrow {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}
.ck-item-eyebrow .ck-item-warn { color: var(--warn); text-transform: none; letter-spacing: 0; }

/* Скрыть скрытую submit-кнопку для qty формы */
.ck-qty-submit {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 0 !important; height: 0 !important; opacity: 0 !important;
  border: 0 !important; padding: 0 !important;
}

/* Точка перед "В наличии" */
.ck-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--ok);
  margin-right: 6px; vertical-align: middle;
}

/* Suggested add-ons */
.ck-addons {
  margin-top: 16px; padding: 18px;
  border: 1px dashed var(--line-strong); border-radius: 18px;
}
.ck-addons-head {
  font-size: 13px; color: var(--ink-2); margin-bottom: 12px;
}
.ck-addons-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ck-addon {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
}
.ck-addon-img {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--bg-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 16px;
}
.ck-addon-text { flex: 1; min-width: 0; }
.ck-addon-name {
  font-size: 12.5px; color: var(--ink); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
}
.ck-addon-price {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2); margin-top: 2px;
}
.ck-addon-add {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-1); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-family: var(--font-sans);
  transition: all .15s;
}
.ck-addon-add:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* Eyebrow uppercase в summary */
.ck-sum-eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Note под кнопкой checkout — одна центрированная строка */
.ck-sum-note {
  font-size: 11.5px; color: var(--ink-3);
  margin-top: 10px; text-align: center;
}

/* Убрать старые ck-sum-trust / ck-continue если остались */
.ck-sum-trust { display: none !important; }

/* Точка для кружка-радио в активном состоянии — подкорректировать */
.ck-radio-active .ck-radio-dot {
  border-color: var(--ink) !important;
  border-width: 2px !important;
  background: var(--ink) !important;
  box-shadow: inset 0 0 0 2px var(--bg-elev) !important;
}

/* Убрать ck-item-unit / ck-qty-update если остались в каше */
.ck-item-unit, .ck-qty-update { display: none !important; }

/* Адаптив: addons в 1 колонку на узких */
@media (max-width: 768px) {
  .ck-addons-grid { grid-template-columns: 1fr; }
}

/* ──── ПРОДУКТОВЫЕ КАРТОЧКИ — СВЕРКА С МАКЕТОМ ──── */

/* Уменьшить отступы карточки чтобы изображение занимало больше места */
.pcard-img { padding: 14px 14px 8px !important; }

/* Пилюля наличия — переместить вверх слева (как в макете) */
.pcard-delivery {
  top: 22px !important; left: 22px !important;
  bottom: auto !important;
  display: inline-flex !important; align-items: center; gap: 5px;
  background: var(--ok-soft) !important; color: var(--ok) !important;
  font-size: 10.5px !important; padding: 3px 8px !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
}
.pcard-delivery.pcd-order {
  background: var(--bg-soft) !important; color: var(--ink-3) !important;
}
.pcard-delivery i { display: none !important; }
.pcard-delivery::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--ok); display: inline-block;
}
.pcard-delivery.pcd-order::before { background: var(--ink-3); }

/* Действия (избранное/сравнение) на hover — уменьшить */
.pcard-actions { top: 22px !important; right: 22px !important; }

/* Тело карточки */
.pcard-body {
  padding: 10px 16px 16px !important;
  display: flex !important; flex-direction: column;
  gap: 6px; flex: 1;
}

/* Имя — ограничить 2 строками */
.pcard-name {
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--ink) !important; line-height: 1.3 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

/* Скрыть рейтинг для чистоты */
.pcard-rating { display: none !important; }

/* Нижняя строка карточки: цена + круглый + одной строкой */
.pcard-body > form {
  margin-top: auto; padding-top: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: transparent;
}
.pcard-price {
  margin: 0 !important; padding: 0 !important;
  flex: 1;
}

/* Превратить «В корзину» в круглый + */
.btn-cart-add {
  width: 36px !important; height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important; border-radius: 999px !important;
  background: var(--accent) !important; color: white !important;
  border: none !important; box-shadow: none !important;
  font-size: 0 !important;
  flex-shrink: 0;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer; transition: opacity .15s, transform .15s;
  position: relative;
}
.btn-cart-add:hover { opacity: 0.92; transform: scale(1.05); }
.btn-cart-add i { display: none !important; }
.btn-cart-add::before {
  content: "+";
  font-size: 22px !important; font-weight: 400;
  line-height: 1; color: white;
  font-family: var(--font-sans);
}

/* Цена */
.pcprice-new {
  font-family: var(--font-display) !important;
  font-size: 18px !important; font-weight: 600 !important;
  color: var(--accent) !important; letter-spacing: -0.01em !important;
  display: block;
  line-height: 1.1;
}
.pcprice-old {
  font-size: 11.5px !important; color: var(--ink-3) !important;
  text-decoration: line-through; display: block; margin-top: 1px;
}

/* Бейдж скидки */
.pcard-badge {
  top: 22px !important; left: 22px !important;
  background: var(--accent) !important;
  font-size: 10px !important; padding: 3px 8px !important;
  border-radius: 999px !important; font-weight: 600 !important;
  letter-spacing: 0.05em;
  z-index: 2;
}
/* Если есть и бейдж и наличие — наличие уходит правее */
.pcard:has(.pcard-badge) .pcard-delivery {
  left: 90px !important;
}

/* Ссылка по картинке */
.pcard-img a {
  display: block; border-radius: 12px; overflow: hidden;
  background: var(--bg-soft);
}

/* ──── КОМПАКТНЕЕ КОРЗИНУ В ХЕДЕРЕ ──── */
.cz-cart-wrap .cart-btn,
.cz-cart-wrap .btn {
  font-size: 12.5px !important;
  padding: 7px 12px !important;
  white-space: nowrap;
}
/* Скрыть длинный текст "товар(ов) -" — оставить только цифры */
.cz-cart-wrap .cart-btn-text { font-size: 12.5px; }

/* ──── ПРОЧЕЕ — ЧИЩЕ ──── */
/* Линия под хедером — меньше веса */
.cz-header { border-bottom: 1px solid var(--line) !important; }

/* Адаптив карточек */
@media (max-width: 600px) {
  .pcard-name { font-size: 13px !important; min-height: 34px; }
  .pcprice-new { font-size: 16px !important; }
  .btn-cart-add { width: 32px !important; height: 32px !important; min-width: 32px !important; }
}

/* ──── ЛОГОТИП — текст вместо картинки ──── */
.cz-logo { gap: 10px !important; }
.cz-logo img { display: none !important; } /* на случай если где-то ещё img остался */
.cz-logo-text {
  font-family: var(--font-display) !important;
  font-size: 19px !important; font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important; line-height: 1;
}

/* ──── ЗАГОЛОВКИ МОДУЛЕЙ НА ГЛАВНОЙ ──── */
/* Снять предыдущее display:none и стилизовать как cz-section-title */
body.page-home .home-section-title,
body.page-home .home-section-head { display: block !important; }

body.page-home .home-section { padding: 0 !important; margin: 0 !important; background: transparent !important; }

body.page-home .home-section-head {
  display: flex !important; justify-content: space-between !important;
  align-items: baseline !important; margin-bottom: 22px !important;
}
body.page-home .home-section-title {
  font-family: var(--font-display) !important;
  font-size: 30px !important; font-weight: 600 !important;
  color: var(--ink) !important; letter-spacing: -0.02em !important;
  margin: 0 !important; padding: 0 !important;
  border: none !important;
}
body.page-home .section-tabs {
  display: flex !important; gap: 6px !important;
}
body.page-home .stab {
  font-size: 12.5px !important; padding: 4px 10px !important;
  border-radius: 999px !important; border: 1px solid var(--line) !important;
  color: var(--ink-2) !important; background: transparent !important;
}
body.page-home .stab.active {
  background: var(--accent-soft) !important; color: var(--accent) !important;
  border-color: var(--accent-soft-2) !important;
}

/* Карточки на главной — как везде */
body.page-home .row.row-cols-2,
body.page-home .row.row-cols-sm-3,
body.page-home .row.row-cols-lg-4 {
  --bs-gutter-x: 16px;
}

/* ──── ПОДЖАТЬ ИЗОБРАЖЕНИЯ В КАРТОЧКАХ ──── */
.pcard-img { padding: 12px 12px 6px !important; }
.pcard-img a {
  display: block; border-radius: 12px; overflow: hidden;
  background: var(--bg-soft);
}
.pcard-img a img {
  width: 100% !important; aspect-ratio: 1/1;
  object-fit: contain; display: block;
  background: transparent !important;
}

/* Между секциями главной — равномерные отступы 70px (как в макете) */
body.page-home .cz-section,
body.page-home #home-modules,
body.page-home .cz-brands-wrap,
body.page-home .cz-how-section { margin-top: 70px !important; }

/* На мобиле уменьшить */
@media (max-width: 768px) {
  body.page-home .home-section-title { font-size: 22px !important; }
  body.page-home .cz-section,
  body.page-home #home-modules,
  body.page-home .cz-brands-wrap,
  body.page-home .cz-how-section { margin-top: 40px !important; }
}

/* ──── ВЕРНУТЬ ЛОГО-КАРТИНКУ ──── */
.cz-logo img { display: inline-block !important; max-height: 40px; width: auto; }
.cz-logo .cz-logo-svg,
.cz-logo .cz-logo-text { display: none !important; }

/* ──── УБРАТЬ НАЛЕЗАЮЩИЙ БЕЙДЖ «БРОНЬ НА 24 ЧАСА» ──── */
/* В макете он торчит из угла карточки, но у нас внутри карточки SVG-арт занимает место —
   получается накладывается. Прячем. */
.cz-hero-badge { display: none !important; }

/* ──── ВЕРНУТЬ БЕЙДЖ ПОД КАРТОЧКОЙ ──── */
/* В макете он сидит ниже карточки в потоке. У нас не отрабатывал absolute,
   поэтому делаем нормальным flex-блоком внутри cz-hero-right. */
.cz-hero-right {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}
.cz-hero-pick { flex: 1; }

.cz-hero-badge {
  display: flex !important;
  position: static !important; /* не absolute */
  left: auto !important; bottom: auto !important;
  margin: 0 !important;
  align-self: flex-start;
  /* остальное — как было */
}

/* ──── ФУТЕР: ТЁМНЫЙ → СВЕТЛЫЙ (как в макете) ──── */
#site-footer {
  background: var(--bg) !important;
  color: var(--ink-2) !important;
  border-top: 1px solid var(--line) !important;
  margin-top: 70px !important;
}
#site-footer .container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 48px 28px 24px !important;
}

/* Top row: brand block + columns */
#site-footer .footer-top {
  display: grid !important;
  grid-template-columns: 1.2fr 2.5fr !important;
  gap: 60px !important;
  margin-bottom: 32px !important;
}
#site-footer .footer-brand { display: flex; flex-direction: column; gap: 16px; }

/* Brand logo — orange text + dot */
#site-footer .footer-logo {
  font-family: var(--font-display) !important;
  font-size: 19px !important; font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none !important;
}
#site-footer .footer-logo::before {
  content: ""; width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5.5px var(--accent);
  flex-shrink: 0;
}

#site-footer .footer-desc {
  font-size: 13.5px !important; color: var(--ink-2) !important;
  line-height: 1.55 !important; margin: 0 !important; max-width: 320px;
}

/* Contacts — phone + hours + addr */
#site-footer .footer-contacts { display: flex; flex-direction: column; gap: 6px; }
#site-footer .footer-phone {
  font-family: var(--font-mono) !important;
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--ink) !important; text-decoration: none !important;
}
#site-footer .footer-phone:hover { color: var(--accent) !important; }
#site-footer .footer-hours,
#site-footer .footer-addr {
  font-size: 12.5px !important; color: var(--ink-3) !important;
}
#site-footer .footer-phone i,
#site-footer .footer-hours i,
#site-footer .footer-addr i {
  color: var(--accent) !important; margin-right: 6px;
}

/* Link columns */
#site-footer .footer-links {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 3 колонки */
  gap: 32px !important;
}
#site-footer .footer-col h5 {
  font-size: 11px !important; font-weight: 500 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  color: var(--ink-3) !important;
  margin: 0 0 14px !important;
}
#site-footer .footer-col ul {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
  display: flex; flex-direction: column; gap: 8px;
}
#site-footer .footer-col ul li a {
  font-size: 13.5px !important;
  color: var(--ink-1) !important;
  text-decoration: none !important;
  transition: color .15s;
}
#site-footer .footer-col ul li a:hover { color: var(--accent) !important; }

/* Social row */
#site-footer .footer-social {
  display: flex !important; gap: 12px !important;
  flex-wrap: wrap; align-items: center;
  padding: 18px 0 !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  margin-top: 8px !important;
}
#site-footer .footer-social a {
  font-size: 12.5px !important; font-weight: 500 !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-1) !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: border-color .15s, color .15s;
}
#site-footer .footer-social a:hover {
  border-color: var(--accent-soft-2) !important;
  color: var(--accent) !important;
}

/* Bottom row */
#site-footer .footer-bottom {
  display: flex !important; justify-content: space-between !important;
  align-items: center !important;
  padding-top: 18px !important;
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
  border-top: none !important;
}
#site-footer .footer-bottom a { color: var(--ink-3) !important; }
#site-footer .footer-bottom a:hover { color: var(--accent) !important; }

/* Скрыть «powered by OpenCart» — в макете нет */
#site-footer .footer-powered { display: none !important; }

/* ──── АДАПТИВ ФУТЕРА ──── */
@media (max-width: 991px) {
  #site-footer .footer-top { grid-template-columns: 1fr !important; gap: 28px !important; }
  #site-footer .footer-links { grid-template-columns: repeat(2, 1fr) !important; }
  #site-footer .container { padding: 36px 16px 24px !important; }
}
@media (max-width: 480px) {
  #site-footer .footer-links { grid-template-columns: 1fr !important; }
  #site-footer .footer-bottom { flex-direction: column; gap: 8px; }
}


/* ──── ФИКС ЗАГОЛОВКОВ МОДУЛЕЙ НА ГЛАВНОЙ ──── */

/* Убрать оранжевую палку::before у заголовка из theme-main.css */
body.page-home .home-section-title::before,
body.page-home .home-section-title::after { display: none !important; content: none !important; }
body.page-home .home-section-title {
  padding-left: 0 !important;
  border-left: none !important;
}

/* Сетка карточек — ограничить до 4 в ряд (только внутренний row-cols, НЕ внешний контейнер!) */
body.page-home #home-modules .row[class*="row-cols"] > .col {
  flex: 0 0 auto !important;
  width: 25% !important; /* 4 в ряд на десктопе */
}
@media (max-width: 1199px) {
  body.page-home #home-modules .row[class*="row-cols"] > .col { width: 33.3333% !important; }
}
@media (max-width: 767px) {
  body.page-home #home-modules .row[class*="row-cols"] > .col { width: 50% !important; }
}
@media (max-width: 480px) {
  body.page-home #home-modules .row[class*="row-cols"] > .col { width: 100% !important; }
}

/* ──── НОВЫЙ LAYOUT КАРТОЧКИ (как в макете) ──── */
.pcard-eyebrow {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 4px;
  font-weight: 500;
}
.pcard-name {
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--ink) !important; line-height: 1.3 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  margin-bottom: 8px;
}

.pcard-bottom {
  margin-top: auto !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 10px;
  padding-top: 6px;
}
.pcard-bottom > form { margin: 0 !important; padding: 0 !important; }
.pcard-bottom .pcard-price {
  flex: 1; margin: 0 !important; padding: 0 !important;
  display: flex; flex-direction: column;
}
.pcprice-new {
  font-family: var(--font-display) !important;
  font-size: 18px !important; font-weight: 600 !important;
  color: var(--accent) !important; letter-spacing: -0.01em !important;
  display: block; line-height: 1.1;
}
.pcprice-old {
  font-size: 11.5px !important; color: var(--ink-3) !important;
  text-decoration: line-through; display: block; margin-top: 2px;
}

/* Ограничить главную модулей до 4 карточек */
body.page-home #home-modules .row[class*="row-cols"] > .col:nth-child(n+5) {
  display: none !important;
}

/* ──── КРАТКОЕ ОПИСАНИЕ В КАРТОЧКЕ ──── */
.pcard-desc {
  font-size: 12px; color: var(--ink-2);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Уменьшим min-height name теперь когда есть desc — чтоб не пустое место */
.pcard-name {
  min-height: 18px !important;
  margin-bottom: 4px !important;
}

/* ──── ПОИСК В ХЕДЕРЕ ПОД МАКЕТ ──── */

.cz-search-wrap { width: 280px; flex-shrink: 0; }

.cz-search-wrap .site-search {
  display: flex !important; align-items: center;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  width: 100%;
  margin: 0;
  transition: border-color .15s, background .15s;
  gap: 8px;
}
.cz-search-wrap .site-search:focus-within {
  background: var(--bg-elev);
  border-color: var(--line);
}

/* Иконка-кнопка слева */
.cz-search-wrap .site-search-btn {
  order: -1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  color: var(--ink-3) !important;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cz-search-wrap .site-search-btn:hover { color: var(--ink) !important; }
.cz-search-wrap .site-search-btn i { font-size: 13px; }

/* Сам инпут */
.cz-search-wrap .site-search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--font-sans);
  min-width: 0;
}
.cz-search-wrap .site-search-input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

/* ──── КАТЕГОРИИ НА ГЛАВНОЙ — ИНТЕРЕСНЕЕ ──── */

/* Карточка пошире и повыше */
.cz-cat-card {
  min-height: 200px !important;
  padding: 16px !important;
  gap: 14px !important;
  position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(0.25, 0, 0, 1), box-shadow .25s !important;
}
.cz-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(20,18,14,.10), 0 4px 12px rgba(20,18,14,.06);
}

/* Картинка-плейсхолдер: больше, с диагональной штриховкой */
.cz-cat-card-pic {
  flex: 1; min-height: 110px !important;
  border-radius: 12px !important;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 11px,
      rgba(20,18,14,0.05) 11px,
      rgba(20,18,14,0.05) 12px
    ),
    var(--bg-soft) !important;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s;
}

/* На оранжевой карточке штриховка светлее */
.cz-cat-card.cz-cat-accent .cz-cat-card-pic {
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 11px,
      rgba(255,255,255,0.18) 11px,
      rgba(255,255,255,0.18) 12px
    ),
    rgba(255,255,255,0.12) !important;
}

/* Иконка крупная */
.cz-cat-card-pic i {
  font-size: 48px !important;
  opacity: 0.55 !important;
  color: var(--ink-2) !important;
  position: relative; z-index: 1;
  transition: transform .25s, opacity .25s;
}
.cz-cat-card.cz-cat-accent .cz-cat-card-pic i {
  color: white !important;
  opacity: 0.85 !important;
}
.cz-cat-card:hover .cz-cat-card-pic i {
  transform: scale(1.1);
  opacity: 0.75 !important;
}
.cz-cat-card.cz-cat-accent:hover .cz-cat-card-pic i {
  opacity: 1 !important;
}

/* Текстовая часть — название крупнее */
.cz-cat-card-name {
  font-size: 16px !important; font-weight: 600 !important;
  letter-spacing: -0.01em;
}
.cz-cat-card-count {
  font-size: 12px !important;
  margin-top: 3px !important;
}

/* Стрелка */
.cz-cat-card-footer svg {
  flex-shrink: 0;
  transition: transform .25s;
}
.cz-cat-card:hover .cz-cat-card-footer svg {
  transform: translateX(3px);
}

/* Адаптив */
@media (max-width: 991px) {
  .cz-cat-card { min-height: 160px !important; }
  .cz-cat-card-pic { min-height: 80px !important; }
  .cz-cat-card-pic i { font-size: 38px !important; }
}

/* ──── КАТАЛОГ — РАСШИРЕНИЕ ──── */

/* Breadcrumb с текстом и chevron */
.cat-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3);
  margin-bottom: 14px; flex-wrap: wrap;
}
.cat-breadcrumb a {
  color: var(--ink-3) !important; text-decoration: none !important;
}
.cat-breadcrumb a:hover { color: var(--accent) !important; }
.cat-breadcrumb .cat-bc-sep { color: var(--ink-3); flex-shrink: 0; }
.cat-breadcrumb .cat-bc-current { color: var(--ink); }

/* Скрыть стандартный site-breadcrumb если он рендерится где-то ещё */
#page-category .site-breadcrumb { display: none !important; }

/* ──── КАСТОМНЫЙ DROPDOWN (sort/limit) ──── */
.cat-dd { position: relative; }
.cat-dd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-1);
  font-family: var(--font-sans); font-size: 13px;
  cursor: pointer; transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.cat-dd-btn:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.cat-dd.open .cat-dd-btn {
  background: var(--bg-soft);
  border-color: var(--line-strong);
}
.cat-dd-btn svg { transition: transform .15s; flex-shrink: 0; }
.cat-dd.open .cat-dd-btn svg { transform: rotate(180deg); }

.cat-dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 220px;
  background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-3);
  padding: 6px;
  display: none; z-index: 50;
}
.cat-dd.open .cat-dd-menu { display: block; }
.cat-dd-item {
  display: block; padding: 8px 12px; border-radius: 9px;
  font-size: 13px; color: var(--ink-1) !important;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.cat-dd-item:hover { background: var(--bg-soft); color: var(--ink) !important; }
.cat-dd-item.cat-dd-active { background: var(--accent-soft); color: var(--accent) !important; }
.cat-dd-sm .cat-dd-menu { min-width: 90px; }

/* Скрыть нативные select-ы (их заменили dropdown'ом) */
#input-sort, #input-limit { display: none !important; }

/* ──── РАЗМЕР-ЧИПЫ ──── */
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 12.5px; color: var(--ink-1);
  cursor: pointer; font-family: var(--font-sans);
  transition: all .15s;
}
.cat-chip:hover { border-color: var(--ink); }
.cat-chip-active {
  background: var(--ink) !important; color: var(--bg) !important;
  border-color: var(--ink) !important;
}

/* ──── ЦЕНА ──── */
.cat-price-inputs {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.cat-price-input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px; color: var(--ink);
  background: transparent; outline: none;
  font-family: var(--font-sans);
  -moz-appearance: textfield;
}
.cat-price-input::-webkit-outer-spin-button,
.cat-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cat-price-input:focus { border-color: var(--ink); }

.cat-price-track {
  position: relative; height: 4px;
  background: var(--bg-soft); border-radius: 999px;
  margin: 8px 8px 16px;
}
.cat-price-fill {
  position: absolute; top: 0; bottom: 0;
  left: 0; right: 0;
  background: var(--ink); border-radius: 999px;
}
.cat-price-handle {
  position: absolute; top: -4px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--ink);
  margin-left: -6px;
  cursor: pointer;
}

.cat-price-apply {
  width: 100%; padding: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-1);
  font-family: var(--font-sans); font-size: 12.5px;
  cursor: pointer; transition: all .15s;
}
.cat-price-apply:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ──── АКТИВНЫЕ ФИЛЬТР-ЧИПЫ ──── */
.cat-active-chips {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 18px;
}
.cat-active-chips > div { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-active-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12.5px; color: var(--ink-1);
}
.cat-active-chip-x {
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--bg-elev); border: none;
  color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.cat-active-chip-x:hover { background: var(--ink); color: var(--bg); }
.cat-reset-all {
  font-size: 12.5px; color: var(--ink-3) !important;
  text-decoration: none !important; align-self: center;
}
.cat-reset-all:hover { color: var(--accent) !important; }

/* ──── ФИКСЫ КАТАЛОГА ──── */

/* Хлебные крошки — поярче */
.cat-breadcrumb {
  color: var(--ink-2) !important;
  font-size: 13px !important;
  margin-bottom: 18px !important;
}
.cat-breadcrumb a {
  color: var(--ink-2) !important;
  font-weight: 400;
}
.cat-breadcrumb .cat-bc-sep {
  color: var(--ink-3);
  width: 12px !important; height: 12px !important;
  margin: 0 2px;
}
.cat-breadcrumb .cat-bc-current {
  color: var(--ink) !important;
  font-weight: 500;
}

/* Карточки одинаковой высоты — flex */
.cat-prod-grid { align-items: stretch !important; }
.cat-prod-cell {
  display: flex !important;
}
.cat-prod-cell > .pcard {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
}

/* Минимальная высота описания, чтобы карточки выровнялись даже без description */
.pcard-desc {
  min-height: 33px; /* 2 строки максимум */
}
.pcard-desc:empty { display: none; }

/* Имя — фикс. высота 2 строки */
.pcard-name {
  min-height: 36px !important;
}

/* Тело карточки — flex column, чтобы низ всегда внизу */
.pcard-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.pcard-bottom { margin-top: auto !important; }

/* Сайдбар — компактнее */
.cat-filters {
  gap: 18px !important;
}
.cat-filter-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.cat-filter-group:last-child { border-bottom: none; padding-bottom: 0; }

/* Дерево категорий — макс. высота со скроллом если много */
.cat-filter-body .pct-nav {
  max-height: 380px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
/* Тонкий скроллбар */
.cat-filter-body .pct-nav::-webkit-scrollbar { width: 4px; }
.cat-filter-body .pct-nav::-webkit-scrollbar-track { background: transparent; }
.cat-filter-body .pct-nav::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

/* ──── СЛАЙДЕР ЦЕНЫ — крупные ручки, удобный захват ──── */
.cat-price-track {
  height: 5px !important;
  margin: 12px 9px 18px !important;
  cursor: pointer;
}
.cat-price-handle {
  width: 18px !important; height: 18px !important;
  top: -7px !important;
  margin-left: -9px !important;
  background: var(--bg) !important;
  border: 2px solid var(--ink) !important;
  box-shadow: 0 2px 6px rgba(20,18,14,.15);
  transition: transform .1s, box-shadow .15s;
  z-index: 2;
}
.cat-price-handle:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(20,18,14,.25);
}
.cat-price-handle:active { transform: scale(1.2); cursor: grabbing; }

/* ──── ФИКСЫ КАТАЛОГА ──── */

/* Хлебные крошки — поярче */
.cat-breadcrumb {
  color: var(--ink-2) !important;
  font-size: 13px !important;
  margin-bottom: 18px !important;
}
.cat-breadcrumb a {
  color: var(--ink-2) !important;
  font-weight: 400;
}
.cat-breadcrumb .cat-bc-sep {
  color: var(--ink-3);
  width: 12px !important; height: 12px !important;
  margin: 0 2px;
}
.cat-breadcrumb .cat-bc-current {
  color: var(--ink) !important;
  font-weight: 500;
}

/* Карточки одинаковой высоты — flex */
.cat-prod-grid { align-items: stretch !important; }
.cat-prod-cell {
  display: flex !important;
}
.cat-prod-cell > .pcard {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
}

/* Минимальная высота описания, чтобы карточки выровнялись даже без description */
.pcard-desc {
  min-height: 33px; /* 2 строки максимум */
}
.pcard-desc:empty { display: none; }

/* Имя — фикс. высота 2 строки */
.pcard-name {
  min-height: 36px !important;
}

/* Тело карточки — flex column, чтобы низ всегда внизу */
.pcard-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.pcard-bottom { margin-top: auto !important; }

/* Сайдбар — компактнее */
.cat-filters {
  gap: 18px !important;
}
.cat-filter-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.cat-filter-group:last-child { border-bottom: none; padding-bottom: 0; }

/* Дерево категорий — без скролла, всё видно */
.cat-filter-body .pct-nav {
  max-height: none !important;
  overflow: visible !important;
}

/* ──── СЛАЙДЕР ЦЕНЫ — крупные ручки, удобный захват ──── */
.cat-price-track {
  height: 5px !important;
  margin: 12px 9px 18px !important;
  cursor: pointer;
}
.cat-price-handle {
  width: 18px !important; height: 18px !important;
  top: -7px !important;
  margin-left: -9px !important;
  background: var(--bg) !important;
  border: 2px solid var(--ink) !important;
  box-shadow: 0 2px 6px rgba(20,18,14,.15);
  transition: transform .1s, box-shadow .15s;
  z-index: 2;
}
.cat-price-handle:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(20,18,14,.25);
}
.cat-price-handle:active { transform: scale(1.2); cursor: grabbing; }

/* ──── ФИКС: класс для скрытия карточек (перебивает .cat-prod-cell flex !important) ──── */
.cat-prod-cell.cat-hidden { display: none !important; }

/* Скрыть пагинацию-ссылки когда активны клиентские фильтры */
.cat-pagination.cat-pag-filtered .cat-pag-links { display: none !important; }
.cat-pagination.cat-pag-filtered .cat-pag-info {
  color: var(--ink-2);
  font-style: italic;
}

/* ──── ФИКС: трек слайдера цены не должен улетать ──── */
.cat-filter-body { overflow: visible; }
.cat-price-track {
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 18px !important;
  box-sizing: border-box;
  flex: none !important;
  display: block !important;
}
.cat-price-handle {
  /* Чтобы ручки не вылезали за края при крайних позициях */
  margin-left: -9px !important;
}
.cat-price-handle.cat-price-h-min { /* при left:0 - чуть внутрь */ }
.cat-price-handle.cat-price-h-max { /* при left:100% - чуть внутрь */ }
.cat-price-fill {
  box-sizing: border-box;
}

/* ──── ССЫЛКА НА ПОЛИТИКУ В ФУТЕРЕ ──── */
#site-footer .footer-legal {
  display: inline-block;
  margin-left: 16px;
}
#site-footer .footer-legal-link {
  font-size: 11.5px !important;
  color: var(--ink-3) !important;
  text-decoration: none !important;
  border-bottom: 1px dotted var(--line-strong);
}
#site-footer .footer-legal-link:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}
