/* =========================================================
   IGROSPORT — Evolution redesign. v0.2
   Тепла, дружня, чиста сучасна e-commerce естетика
   близька до оригіналу igrosport.com.ua, але краще.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* palette — warm and friendly */
  --bg:           #ffffff;
  --bg-2:         #f7f5ef;       /* warm cream for sections */
  --bg-3:         #efece2;       /* sand */
  --ink:          #1c2530;       /* deep blue-black for text */
  --ink-2:        #475569;       /* secondary text */
  --muted:        #8a8170;       /* warm grey */
  --line:         #e6e2d5;       /* warm divider */
  --line-2:       #d8d3c2;

  --brand:        #0c7a5c;       /* deep playground green */
  --brand-2:      #0a6b50;
  --brand-soft:   #e6f4ee;

  --accent:       #ff7a1f;       /* warm orange — for CTAs */
  --accent-2:     #ec6a10;

  --sun:          #ffc94a;       /* yellow accent */
  --sky:          #4ea7e6;

  --danger:       #d4350f;

  /* type */
  --display:  'Unbounded', 'Manrope', system-ui, sans-serif;
  --body:     'Manrope', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Courier New', monospace;

  /* layout */
  --maxw: 1320px;

  /* radius / shadow */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(28, 37, 48, .04), 0 1px 2px rgba(28, 37, 48, .06);
  --shadow:    0 12px 30px -10px rgba(28, 37, 48, .15), 0 4px 10px rgba(28, 37, 48, .04);
  --shadow-lg: 0 30px 60px -20px rgba(28, 37, 48, .25);

  /* motion */
  --ease: cubic-bezier(.2,.7,0,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--brand); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 2.5vw, 32px);
}

.mono { font-family: var(--mono); }
.display { font-family: var(--display); letter-spacing: -.01em; }

/* =========================================================
   Top utility bar
   ========================================================= */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.topbar a:hover { color: var(--brand); }
.topbar__left { display: flex; gap: 22px; align-items: center; }
.topbar__left .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: inline-block; margin-right: 6px; }
.topbar__right { display: flex; gap: 18px; align-items: center; }
.topbar .lang { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 12px; font-weight: 600; }
.topbar .lang a { padding: 3px 8px; border-radius: 999px; color: var(--muted); }
.topbar .lang a.is-on { background: var(--ink); color: #fff; }

/* =========================================================
   Header
   ========================================================= */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 16px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
}
.brand img { height: 64px; width: auto; }
.brand__name {
  display: none; /* the logo image is the brand */
}

/* Search */
.search {
  position: relative;
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 46px;
  padding: 0 6px 0 18px;
  align-items: center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(12, 122, 92, .08); }
.search svg { color: var(--muted); flex-shrink: 0; margin-right: 10px; }
.search input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 14.5px; }
.search input::placeholder { color: var(--muted); }
.search button {
  height: 36px;
  background: var(--brand); color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 600; font-size: 14px;
  transition: background .15s var(--ease);
}
.search button:hover { background: var(--brand-2); }

/* Header actions */
.header__actions { display: inline-flex; gap: 8px; align-items: center; }
.iconbtn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--ink);
  position: relative;
  transition: background .15s var(--ease);
}
.iconbtn:hover { background: var(--bg-2); }
.iconbtn .badge {
  position: absolute; top: 6px; right: 6px;
  min-width: 18px; height: 18px;
  background: var(--accent); color: #fff;
  font: 600 11px/18px var(--body);
  text-align: center; padding: 0 5px;
  border-radius: 999px;
}

.header__phone {
  display: inline-flex; flex-direction: column;
  text-align: right;
  padding-left: 14px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
}
.header__phone .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.header__phone .p { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

/* =========================================================
   Catalog menu (main nav)
   ========================================================= */
.catbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 88px; z-index: 49; /* JS syncs this to exact header height */
}
.catbar .wrap {
  display: flex; align-items: stretch; gap: 6px;
}
.catbar .wrap--scroll {
  overflow-x: auto; scrollbar-width: none;
}
.catbar .wrap--scroll::-webkit-scrollbar { display: none; }
.catbar a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 14px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
  position: relative;
}
.catbar a:hover { color: var(--brand); }
.catbar a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.catbar a.has-mega::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
  opacity: .6;
}
.catbar .item { position: relative; }
.catbar .item:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.catbar .item:hover a.has-mega::after { transform: rotate(-135deg) translateY(0); }

.catbar .item:first-child > a {
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 8px 0;
  border-bottom: 0;
}
.catbar .item:first-child > a:hover { background: var(--brand-2); }
.catbar .item:first-child > a::before {
  content: "";
  width: 16px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  margin-right: 2px;
}

/* Mega panel */
.mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 60;
}
.mega h4 {
  font-size: 11px; font-weight: 700;
  color: var(--brand); text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mega ul li { padding: 5px 0; }
.mega a {
  padding: 0; border: 0; margin: 0;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 8px;
  background: transparent !important;
}
.mega a:hover { color: var(--brand); }
.mega a .count { font-size: 11px; color: var(--muted); font-weight: 500; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 700; font-size: 14.5px;
  letter-spacing: -.005em;
  transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 8px 18px -6px rgba(255, 122, 31, .35);
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 12px 22px -6px rgba(255, 122, 31, .45); }
.btn:active { transform: translateY(0); }
.btn--brand { background: var(--brand); box-shadow: 0 8px 18px -6px rgba(12, 122, 92, .35); }
.btn--brand:hover { background: var(--brand-2); box-shadow: 0 12px 22px -6px rgba(12, 122, 92, .45); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn--dark { background: var(--ink); box-shadow: 0 8px 18px -6px rgba(28, 37, 48, .35); }
.btn--dark:hover { background: #0f1722; }
.btn--sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn--lg { padding: 18px 28px; font-size: 16px; border-radius: 14px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.pill--accent { background: #fff1e3; color: var(--accent-2); }
.pill--sun { background: #fff5d6; color: #8e6a00; }
.pill--sky { background: #e6f2fb; color: #1a6299; }
.pill--danger { background: #fde7e1; color: var(--danger); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 36px 0 56px;
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(255, 201, 74, .25), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(12, 122, 92, .12), transparent 60%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
}
.hero__left { padding-right: 14px; }
.hero__badges {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero__badges b { background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 18px 0 16px;
  color: var(--ink);
}
.hero h1 .acc {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero h1 .acc::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
  background: var(--sun); opacity: .55; z-index: -1; border-radius: 4px;
}
.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__metrics .m strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hero__metrics .m span {
  font-size: 13.5px; color: var(--ink-2);
}

.hero__right {
  position: relative;
  aspect-ratio: 5/4.5;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #e6f4ee 0%, #fff5d6 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__right .photo {
  position: absolute; inset: 0;
  background-image: url('https://igrosport.com.ua/image/cache/d76f549a527cbe003ca909e52fd1739d.jpg');
  background-size: cover; background-position: center;
}
.hero__right::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
}
.hero__chip {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: inline-flex; gap: 10px; align-items: center;
  z-index: 2;
}
.hero__chip .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__chip .t { font-size: 12px; color: var(--muted); }
.hero__chip .v { font-weight: 700; font-size: 15px; color: var(--ink); }
.hero__chip--1 { top: 24px; left: 24px; }
.hero__chip--2 { bottom: 24px; right: 24px; }
.hero__chip--3 { bottom: 90px; left: 24px; background: var(--ink); color: #fff; }
.hero__chip--3 .t { color: rgba(255,255,255,.7); }
.hero__chip--3 .v { color: #fff; }

/* =========================================================
   Section helpers
   ========================================================= */
.section { padding: 72px 0; }
.section--cream { background: var(--bg-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink p { color: rgba(255,255,255,.78); }

.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section__head .lbl {
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 8px;
}
.section__head .lbl::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.section__head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}
.section__head h2 em { font-style: normal; color: var(--brand); }
.section__head .actions { display: inline-flex; gap: 10px; align-items: center; }

/* =========================================================
   Category cards (homepage mosaic)
   ========================================================= */
.cats {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.cat {
  position: relative;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: block;
  min-height: 220px;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat__body {
  position: relative; z-index: 2;
  padding: 24px;
}
.cat__body h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -.015em;
  margin: 0 0 6px;
}
.cat__body p {
  font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px;
}
.cat__count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-2);
  padding: 4px 10px; border-radius: 999px;
}
.cat__img {
  position: absolute; right: -10px; bottom: -10px;
  width: 55%; height: 75%;
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  z-index: 1;
}
.cat--big { grid-column: span 6; min-height: 320px; background: linear-gradient(135deg, #e6f4ee 0%, #c7e7d8 100%); border: 0; }
.cat--big .cat__img { width: 60%; height: 90%; }
.cat--big h3 { font-size: 32px; max-width: 12ch; line-height: 1.05; }
.cat--med { grid-column: span 3; }
.cat--med.cat--sun { background: linear-gradient(135deg, #fff5d6 0%, #ffe9a8 100%); border: 0; }
.cat--med.cat--sky { background: linear-gradient(135deg, #e6f2fb 0%, #bcdcf3 100%); border: 0; }
.cat--med.cat--orange { background: linear-gradient(135deg, #fff1e3 0%, #ffd8b3 100%); border: 0; }
.cat--small { grid-column: span 3; min-height: 160px; }
.cat__arrow {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), color .15s var(--ease);
  z-index: 3;
}
.cat:hover .cat__arrow { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =========================================================
   Product card
   ========================================================= */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.products--3 { grid-template-columns: repeat(3, 1fr); }

.prod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.prod__img {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-2);
  overflow: hidden;
}
.prod__img img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px;
  transition: transform .35s var(--ease);
}
.prod:hover .prod__img img { transform: scale(1.04); }
.prod__flags {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.prod__wish {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  opacity: 0;
  transition: opacity .2s var(--ease), color .15s var(--ease);
}
.prod:hover .prod__wish { opacity: 1; }
.prod__wish:hover { color: var(--accent); }

.prod__body {
  padding: 16px 16px 18px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.prod__cat { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.prod__title {
  font-family: var(--display); font-weight: 600;
  font-size: 17px; letter-spacing: -.012em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.prod__title small {
  display: block;
  font-family: var(--body); font-size: 12px;
  color: var(--muted); font-weight: 500;
  letter-spacing: 0;
  margin-top: 4px;
}
.prod__meta { font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; }
.prod__meta span { display: inline-flex; align-items: center; gap: 4px; }

.prod__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.prod__price {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; color: var(--ink);
  letter-spacing: -.02em;
}
.prod__price small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.prod__price del { font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 6px; }
.prod__add {
  width: 42px; height: 42px;
  background: var(--brand); color: #fff;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.prod__add:hover { background: var(--brand-2); transform: scale(1.05); }

/* =========================================================
   USP / Trust strip
   ========================================================= */
.usp {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.usp__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}
.usp__item .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.usp__item:nth-child(2) .ic { background: #fff1e3; color: var(--accent-2); }
.usp__item:nth-child(3) .ic { background: #fff5d6; color: #8e6a00; }
.usp__item:nth-child(4) .ic { background: #e6f2fb; color: #1a6299; }
.usp__item h4 { font-family: var(--display); font-size: 16px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.usp__item p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin: 0; }

/* =========================================================
   Breadcrumbs
   ========================================================= */
.crumbs {
  font-size: 13px; color: var(--muted);
  padding: 16px 0;
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--line-2); }

/* =========================================================
   Category page
   ========================================================= */
.cat-page { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 12px 0 80px; }
/* with the sidebar beside main (desktop), 4 product cols are too narrow → use 3 (wider cards, price+button fit) */
@media (min-width: 1101px) { .cat-page .products { grid-template-columns: repeat(3, 1fr); } }

.side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  position: sticky;
  top: 145px;
  align-self: start;
  max-height: calc(100vh - 165px);
  overflow-y: auto;
}
.side h4 {
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.side h4:first-child { margin-top: 0; }
.side h4 .chev { color: var(--muted); transition: transform .2s var(--ease); }
.side li { padding: 4px 0; }
.side li a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}
.side li a:hover { color: var(--brand); }
.side li a.is-on { color: var(--brand); font-weight: 600; }
.side li a .c { font-size: 12px; color: var(--muted); }
.side .check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.side .check input { accent-color: var(--brand); width: 16px; height: 16px; }
.side .check .c { margin-left: auto; font-size: 12px; color: var(--muted); }
.side .range { display: flex; gap: 8px; margin-top: 6px; }
.side .range input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }

/* Toolbar */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 16px;
  margin-bottom: 18px;
}
.toolbar .left { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.toolbar select { max-width: 100%; min-width: 0; }
.toolbar .left b { color: var(--ink); }
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13.5px;
  background: #fff;
}
.toolbar .view { display: inline-flex; gap: 4px; background: var(--bg-2); border-radius: 10px; padding: 3px; }
.toolbar .view button {
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.toolbar .view button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Chips above grid */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .x { color: rgba(255,255,255,.6); margin-left: 4px; }

/* Pagination */
.pager {
  display: flex; gap: 6px; justify-content: center; margin-top: 40px;
}
.pager a {
  min-width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  padding: 0 12px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* =========================================================
   Product page
   ========================================================= */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 12px 0 56px; }
.gallery { display: grid; grid-template-columns: 88px 1fr; gap: 14px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery .thumbs button {
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: var(--bg-2);
  border: 2px solid transparent;
  padding: 6px;
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs button.is-on { border-color: var(--brand); }
.gallery .main {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.gallery .main .zoom {
  position: absolute; bottom: 16px; right: 16px;
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.gallery .main .flag {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
}

.pinfo .pinfo__cat {
  display: inline-block;
  font-size: 12.5px; color: var(--brand); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.pinfo h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.022em;
  margin: 0 0 8px;
}
.pinfo .pinfo__id {
  font-size: 13.5px; color: var(--muted);
  margin-bottom: 16px;
  display: flex; gap: 16px; align-items: center;
}
.pinfo .pinfo__id .rate { color: var(--ink); font-weight: 600; }
.pinfo .pinfo__id .rate .star { color: #ffb300; }
.pinfo .pinfo__id .ok { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pinfo .pinfo__id .ok::before { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }

.pinfo .pinfo__lede { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 16px 0 20px; }

.attrs { display: grid; gap: 14px; margin: 18px 0 24px; }
.attrs .row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; }
.attrs .row .l { font-size: 13px; color: var(--muted); }
.attrs .row .v { display: flex; flex-wrap: wrap; gap: 6px; }
.attrs .opt {
  padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all .15s var(--ease);
}
.attrs .opt:hover { border-color: var(--ink); color: var(--ink); }
.attrs .opt.is-on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.attrs .color { width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent; padding: 2px; cursor: pointer; }
.attrs .color span { display: block; width: 100%; height: 100%; border-radius: 6px; }
.attrs .color.is-on { border-color: var(--brand); }

.price-block {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 22px;
  margin: 18px 0 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
.price-block .price {
  font-family: var(--display); font-weight: 700;
  font-size: 42px; letter-spacing: -.025em; color: var(--ink);
  line-height: 1;
}
.price-block .price small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.price-block .price del { display: block; font-size: 16px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.price-block .meta {
  font-size: 13px; color: var(--ink-2);
  text-align: right;
  line-height: 1.5;
}
.price-block .meta b { color: var(--ink); }

.p-buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 42px; height: 50px; color: var(--ink); font-size: 18px; }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 52px; height: 50px; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); text-align: center; font-weight: 600; font-size: 15px; outline: 0; }

.p-trust {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.p-trust .t { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.p-trust .t .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.p-trust .t b { display: block; font-size: 13.5px; font-weight: 700; }
.p-trust .t span { font-size: 12px; color: var(--muted); }

/* Tabs */
.tabs {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.tabs__bar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs__bar button {
  padding: 12px 18px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tabs__bar button:hover { color: var(--brand); }
.tabs__bar button.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs__panel { display: none; max-width: 80ch; }
.tabs__panel.is-on { display: block; }
.tabs__panel h3 { font-family: var(--display); font-size: 22px; margin: 0 0 12px; }
.tabs__panel p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-list .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-list .row .l { color: var(--muted); }
.spec-list .row .v { font-weight: 600; }

/* Product description + sticky consultation aside (fills empty space right of description) */
.prod-detail { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.prod-detail .tabs { margin-top: 0; border-top: 0; padding-top: 0; }
@media (min-width: 1101px) {
  .prod-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .prod-aside__card { position: sticky; top: 120px; }
}
.prod-aside { margin-top: 28px; }
@media (min-width: 1101px) { .prod-aside { margin-top: 0; } }
.prod-aside__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.prod-aside__lbl { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.prod-aside__card h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; margin: 0 0 8px; color: var(--ink); }
.prod-aside__card p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.prod-aside__phone { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
.prod-aside__phone:hover { color: var(--brand); }
.prod-aside .ph-msgs { display: flex; align-items: center; gap: 6px; margin: 10px 0 16px; }
.prod-aside .ph-msgs a { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 0; transition: transform .15s; }
.prod-aside .ph-msgs a:hover { transform: translateY(-1px); }
.prod-aside .ph-msgs svg { display: block; }
.prod-aside .ph-msgs .viber svg { width: 26px; height: 26px; }
.prod-aside .ph-msgs .tg svg { width: 33px; height: 33px; }
.prod-aside .ph-msgs .wa svg { width: 28px; height: 28px; }
.prod-aside .ph-msgs .viber { color: #7360f2; }
.prod-aside .ph-msgs .tg { color: #229ED9; position: relative; left: -2px; }
.prod-aside .ph-msgs .wa { color: #25D366; }
.prod-aside__form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.prod-aside__form input { width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--bg-2); outline: 0; }
.prod-aside__form input:focus { border-color: var(--brand); background: #fff; }
.prod-aside__form input.is-invalid { border-color: #e3342f; }
.prod-aside__form .btn { width: 100%; justify-content: center; }
.prod-aside__result { font-size: 13px; line-height: 1.4; }
.prod-aside__result--ok { color: var(--brand); }
.prod-aside__result--err { color: #e3342f; }
.prod-aside__perks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.prod-aside__perks li { position: relative; padding-left: 24px; font-size: 13px; color: var(--ink-2); }
.prod-aside__perks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--brand-soft); border-radius: 50%; }
.prod-aside__perks li::after { content: ""; position: absolute; left: 5px; top: 5px; width: 5px; height: 8px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* =========================================================
   Complex (project) page hero
   ========================================================= */
.complex-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.complex-hero .ch-info {
  padding: 56px clamp(16px, 2.5vw, 40px);
  align-self: center;
}
.complex-hero .ch-info h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 18px 0 16px;
}
.complex-hero .ch-info h1 em { font-style: normal; color: var(--brand); }
.complex-hero .ch-info p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 24px; max-width: 50ch; }

.complex-hero .ch-art {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
}
.ch-tag {
  position: absolute; left: 24px; top: 24px;
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
}
.spec-grid > div {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.spec-grid > div:last-child { border-right: 0; }
.spec-grid .l { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spec-grid .v { font-family: var(--display); font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.spec-grid .v small { font-size: 14px; color: var(--muted); font-weight: 500; }

/* Components grid (complex page) */
.comps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.comp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.comp .pic { aspect-ratio: 1/1; background: var(--bg-2); border-radius: 10px; overflow: hidden; padding: 12px; }
.comp .pic img { width: 100%; height: 100%; object-fit: contain; }
.comp .n { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.comp .t { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; margin: 0; }
.comp .q { font-size: 13px; color: var(--ink-2); margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }

/* =========================================================
   Price page table
   ========================================================= */
.price-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 18px;
}
.price-toolbar input[type="search"] {
  border: 0; padding: 8px 12px; font-size: 14.5px; background: transparent;
  outline: 0;
}
.price-toolbar .group { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }

.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}
.price-table th {
  text-align: left;
  background: var(--bg-2);
  font-size: 12px; font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.price-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: middle;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: var(--bg-2); }
.price-table .pic {
  width: 60px; height: 60px;
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.price-table .pic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.price-table .id { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.price-table .name { font-weight: 700; font-size: 15px; }
.price-table .name small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.price-table .sz { font-size: 13.5px; color: var(--ink-2); }
.price-table .pr { font-family: var(--display); font-weight: 700; font-size: 18px; text-align: right; letter-spacing: -.015em; }
.price-table .pr small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.price-table .act { text-align: right; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 64px 0 24px;
  margin-top: 64px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand img { height: 56px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.footer h3 {
  font-family: var(--display); font-weight: 600;
  color: #fff; font-size: 15px; margin: 4px 0 16px;
  letter-spacing: -.005em;
}
.footer a { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.9; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer li + li { margin-top: 2px; }
.footer__contact .phone { font-family: var(--display); font-size: 22px; color: #fff; font-weight: 600; letter-spacing: -.015em; display: inline-block; margin-bottom: 6px; }
.footer__contact p { margin: 6px 0; font-size: 14px; }
.footer__social { display: flex; gap: 8px; margin-top: 16px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
}
.footer__social a:hover { background: var(--brand); }
.footer__legal {
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.55);
}

/* Callout block */
.callout {
  background: linear-gradient(135deg, var(--brand) 0%, #0a5f48 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: ""; position: absolute; right: -50px; top: -50px; width: 240px; height: 240px;
  background: rgba(255, 201, 74, .15); border-radius: 50%;
}
.callout h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); margin: 0 0 8px; line-height: 1.1; letter-spacing: -.015em; }
.callout p { margin: 0; font-size: 15.5px; opacity: .92; }
.callout .btn { background: #fff; color: var(--brand); box-shadow: none; }
.callout .btn:hover { background: var(--sun); color: var(--ink); }

/* Article cards */
.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article__img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
}
.article__body { padding: 22px; }
.article__body .meta { font-size: 12px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.article__body h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 8px; letter-spacing: -.015em; line-height: 1.2; }
.article__body p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* =========================================================
   Price page — commercial proposal aside
   ========================================================= */
.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-bottom: 64px;
}

.price-main { min-width: 0; }

.cp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: sticky;
  top: 145px;
  max-height: calc(100vh - 165px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cp__head {
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.cp__head h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 17px; letter-spacing: -.01em; margin: 0;
  line-height: 1.2;
}
.cp__head h3 small {
  display: block; font-family: var(--body);
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px;
}
.cp__counter {
  background: var(--accent);
  color: #fff;
  font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: -.01em;
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  padding: 0 8px;
}
.cp__counter--zero { background: rgba(255,255,255,.12); color: rgba(255,255,255,.45); }

.cp__list {
  padding: 8px 8px;
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
  scrollbar-width: thin;
}

/* Empty state */
.cp__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.cp__empty .ic {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: var(--bg-2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.cp__empty h4 {
  font-family: var(--display); font-weight: 600;
  font-size: 15px; color: var(--ink);
  margin: 0 0 6px; letter-spacing: -.01em;
}
.cp__empty p {
  font-size: 13px; line-height: 1.45;
  color: var(--ink-2); margin: 0;
}

/* Row */
.cp__row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  align-items: center;
  transition: background .15s var(--ease);
}
.cp__row:hover { background: var(--bg-2); }
.cp__row + .cp__row { margin-top: 2px; }

.cp__pic {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--bg-2);
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.cp__pic img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.cp__info { min-width: 0; }
.cp__info .id {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: .04em;
}
.cp__info .name {
  font-family: var(--display); font-weight: 600;
  font-size: 13px; line-height: 1.2;
  color: var(--ink); letter-spacing: -.005em;
  margin: 2px 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cp__info .qty-row {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
}
.cp__qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cp__qty button {
  width: 22px; height: 22px;
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
}
.cp__qty button:hover { background: var(--bg-2); color: var(--ink); }
.cp__qty input {
  width: 32px; height: 22px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
  outline: 0;
  background: #fff;
}

.cp__sum { text-align: right; }
.cp__sum .price {
  font-family: var(--display); font-weight: 700;
  font-size: 14px; color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.cp__sum .each {
  display: block;
  font-size: 10px; color: var(--muted);
  margin-bottom: 4px;
}
.cp__del {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.cp__del:hover { color: var(--danger); background: #fde7e1; }

/* Totals */
.cp__totals {
  background: var(--bg-2);
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: grid; gap: 6px;
  font-size: 13px;
}
.cp__totals .row {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--ink-2);
}
.cp__totals .row b { color: var(--ink); font-weight: 600; }
.cp__totals .grand {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--line-2);
}
.cp__totals .grand span:first-child {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink);
}
.cp__totals .grand .total {
  font-family: var(--display); font-weight: 700;
  font-size: 26px;
  color: var(--brand);
  letter-spacing: -.025em;
}
.cp__totals .grand .total small {
  font-family: var(--body);
  font-size: 12px; color: var(--muted); margin-left: 3px;
}
.cp__totals .note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* Actions */
.cp__actions {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
}
.cp__actions .btn { justify-content: center; width: 100%; }
.cp__actions .btn--row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.cp__actions .btn--row .btn { padding: 10px; font-size: 12.5px; }

/* In-table add button (price.html) */
.add-cp {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
  transition: all .15s var(--ease);
  white-space: nowrap;
}
.add-cp:hover { background: var(--brand); color: #fff; }
.add-cp.is-added { background: var(--brand); color: #fff; }
.add-cp .ico-plus,
.add-cp .ico-check { display: inline-flex; }
.add-cp.is-added .ico-plus { display: none; }
.add-cp:not(.is-added) .ico-check { display: none; }

/* Mobile floating CP toggle */
.cp-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  z-index: 80;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 14px;
  align-items: center;
  gap: 10px;
}
.cp-toggle .b {
  background: var(--accent); color: #fff;
  font-size: 12px; padding: 2px 8px;
  border-radius: 999px; font-weight: 700;
}

/* =========================================================
   SEO sitemap grid (home bottom block)
   ========================================================= */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.seo-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column;
}
.seo-col__head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px; align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.seo-col__ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.seo-col__head h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 16px; margin: 0;
  letter-spacing: -.01em;
}
.seo-col__head span {
  font-size: 12px; color: var(--muted);
}
.seo-col ul li { padding: 4px 0; }
.seo-col ul li a {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
  display: inline-flex; gap: 6px; align-items: baseline;
  transition: color .15s var(--ease);
}
.seo-col ul li a:hover { color: var(--brand); }
.seo-col ul li a.is-hot { color: var(--accent-2); font-weight: 600; }
.seo-hot { color: var(--sun); font-size: 12px; }

.seo-col--feature {
  background: linear-gradient(160deg, var(--ink) 0%, #2c3a4d 100%);
  color: #fff;
  border: 0;
}
.seo-col--feature .seo-col__head { border-bottom-color: rgba(255,255,255,.12); }
.seo-col--feature .seo-col__head h3 { color: #fff; }
.seo-col--feature .seo-col__head span { color: rgba(255,255,255,.6); }
.seo-col--feature ul li a { color: rgba(255,255,255,.78); }
.seo-col--feature ul li a:hover { color: var(--sun); }
.seo-col--feature ul li a.is-hot { color: var(--sun); }

.seo-cta {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.seo-cta h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -.015em;
  margin: 14px 0 6px;
  line-height: 1.2;
}
.seo-cta p {
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin: 0 0 14px;
}
.seo-cta .btn { background: var(--sun); color: var(--ink); box-shadow: none; }
.seo-cta .btn:hover { background: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__right { aspect-ratio: 5/3.5; }
  .cats { grid-template-columns: repeat(6, 1fr); }
  .cat--big { grid-column: span 6; }
  .cat--med { grid-column: span 3; }
  .cat--small { grid-column: span 3; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cat-page { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .product { grid-template-columns: 1fr; }
  .complex-hero { grid-template-columns: 1fr; }
  .complex-hero .ch-art { min-height: 360px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid > div:nth-child(2) { border-right: 0; }
  .comps { grid-template-columns: repeat(3, 1fr); }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .seo-grid { grid-template-columns: repeat(2, 1fr); }
  .price-layout { grid-template-columns: 1fr; }
  .cp { position: static; max-height: none; }
  .cp-toggle { display: inline-flex; }
}

@media (max-width: 760px) {
  .header__row { grid-template-columns: auto 1fr; }
  .search { display: none; }
  .header__phone { display: none; }
  .catbar .wrap { overflow-x: auto; scrollbar-width: none; }
  .catbar .wrap::-webkit-scrollbar { display: none; }
  .cats { grid-template-columns: 1fr; }
  .cat--big, .cat--med, .cat--small { grid-column: span 1; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .products--3 { grid-template-columns: 1fr; }
  .usp { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .comps { grid-template-columns: repeat(2, 1fr); }
  .callout { grid-template-columns: 1fr; }
  .price-toolbar { grid-template-columns: 1fr; }
  .seo-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   OpenCart integration layer (igrosport theme)
   ========================================================= */

/* keep print helper from legacy */
.no-print { }
@media print {
  .no-print { display: none !important; }
}

/* Header layout tweak: add cart-module column */
.header__actions { gap: 6px; }

/* OpenCart cart module styled as header pill */
#cart { position: relative; }
#cart > .cart-button,
#cart button.cart-button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  background: var(--brand); color: #fff;
  border-radius: 12px;
  font-weight: 700; font-size: 14px;
  transition: background .15s var(--ease);
}
#cart > .cart-button:hover { background: var(--brand-2); }
#cart .cart-button img { display: none; }
#cart .cart-button .fa-shopping-cart { font-size: 16px; }
#cart #cart-total { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
#cart #cart-total::before {
  font-family: "FontAwesome"; content: "\f07a"; margin-right: 7px; font-size: 15px;
}
#cart .dropdown-menu {
  position: absolute; right: 0; left: auto; top: calc(100% + 10px);
  min-width: 340px; max-width: 92vw;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 14px; z-index: 70; list-style: none; margin: 0;
}
#cart .dropdown-menu table { width: 100%; border-collapse: collapse; font-size: 13px; }
#cart .dropdown-menu td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#cart .dropdown-menu img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
#cart .dropdown-menu .table-bordered td { border: 0; }
#cart .dropdown-menu .buttons-cart { display: flex; gap: 8px; justify-content: flex-end; margin: 10px 0 0; }
#cart .dropdown-menu .buttons-cart a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 700;
}
#cart .dropdown-menu .buttons-cart a:first-child { background: var(--bg-2); color: var(--ink); }
#cart .dropdown-menu .buttons-cart a:last-child { background: var(--accent); color: #fff; }
#cart .dropdown-menu .remove-item { cursor: pointer; color: var(--muted); }
#cart .dropdown-menu .remove-item:hover { color: var(--danger); }

/* Mobile burger for catalog bar */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-burger:hover { background: var(--bg-2); }

@media (max-width: 760px) {
  .catbar { position: static; }
  .catbar .wrap { gap: 0; flex-direction: column; align-items: stretch;
    max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
  .catbar.is-open .wrap { max-height: 80vh; overflow-y: auto; padding-top: 6px; padding-bottom: 10px; }
  .catbar .item { border-bottom: 1px solid var(--line); }
  .catbar .item:first-child > a { margin: 8px 0; }
  .catbar .mega { position: static; min-width: 0; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; padding: 6px 14px 12px;
    grid-template-columns: 1fr; display: none; }
  .catbar .item:hover .mega { display: grid; }
  .nav-burger { display: inline-flex; }
  #cart .dropdown-menu { position: fixed; left: 8px; right: 8px; min-width: 0; }
}

/* Generic legacy content container width align */
#content { min-width: 0; }

/* OpenCart search module styled as design pill */
.search #search.input-group,
.search #search {
  display: flex; flex: 1; width: 100%; align-items: center; gap: 8px;
}
.search #search input.form-control {
  flex: 1; border: 0 !important; background: transparent !important;
  outline: 0; box-shadow: none !important; height: auto; padding: 0;
  font-size: 14.5px; color: var(--ink);
}
.search .input-group-btn { display: inline-flex; }
.search #search button.search-button {
  height: 36px; background: var(--brand); color: #fff;
  border: 0; border-radius: 999px; padding: 0 16px;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.search #search button.search-button:hover { background: var(--brand-2); }

/* language switch in topbar */
.topbar form#language { margin: 0; }
.topbar .language-box { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.topbar .language-box li { padding: 0; }
.topbar .language-box a { padding: 3px 9px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.topbar .language-box a:hover { color: var(--brand); }

/* header account quick link */
.header__acc { display: inline-flex; flex-direction: column; text-align: left; padding-left: 4px; }

/* =========================================================
   Category page integration
   ========================================================= */
.cat-main { min-width: 0; }
.cat-page--full { display: block; }

/* OpenCart pagination -> design pager */
.pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.pagination > li > a, .pagination > li > span {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.pagination > li > a:hover { border-color: var(--brand); color: var(--brand); }
.pagination > li.active > span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Sidebar: restyle legacy column_left modules to fit .side */
.side .panel, .side .list-group { border: 0; box-shadow: none; margin: 0 0 10px; background: transparent; }
.side .panel-heading, .side .panel-title { padding: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.side .panel-body { padding: 8px 0 0; }
.side .list-group-item { border: 0; padding: 5px 0; background: transparent; font-size: 14px; color: var(--ink-2); }
.side .list-group-item:hover { color: var(--brand); }
.side h4 { cursor: default; }

/* refinement subcategory list */
.side .refine li { padding: 4px 0; }
.side .refine a { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.side .refine a:hover { color: var(--brand); }

/* category description block */
.cat-desc { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 28px 0 0; }
.cat-desc h1,.cat-desc h2,.cat-desc h3 { font-family: var(--display); color: var(--ink); }
.cat-desc img { border-radius: var(--r); height: auto; }

.cat-title { font-family: var(--display); font-weight: 700; font-size: clamp(26px,3vw,40px); letter-spacing: -.02em; margin: 4px 0 18px; }

/* =========================================================
   Product page integration
   ========================================================= */
.pinfo .list-unstyled { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pinfo .list-unstyled li { display: inline-flex; gap: 6px; }
.pinfo h2 { font-family: var(--display); font-weight: 700; font-size: 36px; color: var(--ink); letter-spacing: -.02em; margin: 0; }

/* product options form (legacy bootstrap form-group restyle) */
#product .form-group { margin: 0 0 16px; }
#product .control-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
#product .form-control,
#product select, #product input[type="text"], #product textarea {
  width: 100%; max-width: 420px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 10px; font-size: 14.5px; background: #fff; outline: 0;
}
#product .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,122,92,.08); }
#product .radio label, #product .checkbox label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; }
#product .required .control-label::after { content: " *"; color: var(--danger); }

/* qty + add to cart */
.p-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.p-buy .qty input { -moz-appearance: textfield; }
#button-cart { padding: 16px 28px; font-size: 16px; }
.product-page-alert .alert { border-radius: 10px; padding: 12px 16px; margin: 12px 0; font-size: 14px; }
.alert-success { background: var(--brand-soft); color: var(--brand-2); }
.alert-info { background: #e6f2fb; color: #1a6299; }

/* commercial proposal block on product (kits) */
.cp-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin: 6px 0 16px; font-size: 14px; }
.cp-form input[type="text"] { width: 90px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; margin: 4px 0; }
.cp-form .buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cp-form .btn, .cp-form .btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--accent); color: #fff; border-radius: 10px; font-weight: 700; font-size: 14px; }
.cp-form .btn-primary:hover { background: var(--accent-2); }

/* product tabs (design tabs + spec table) */
.tabs .table { width: 100%; border-collapse: collapse; }
.tabs .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tabs .table thead td { background: var(--bg-2); font-weight: 700; }
.tabs__panel img { height: auto; border-radius: var(--r); }

/* gallery */
.gallery .main .zoom { color: var(--ink-2); }
.gallery .main a.thumbnails { display: block; width: 100%; height: 100%; }
.gallery .main a.thumbnails img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }

/* related/kit grid uses .products .prod */
@media (max-width: 760px){ .gallery { grid-template-columns: 1fr; } .gallery .thumbs { flex-direction: row; flex-wrap: wrap; } .gallery .thumbs button { width: 64px; } }

/* =========================================================
   Price list + commercial proposal integration
   ========================================================= */
.price-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: end; padding: 8px 0 24px; }
.price-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px,5vw,60px); line-height: 1.04; letter-spacing: -.025em; margin: 8px 0 0; }
.price-head h1 em { font-style: normal; color: var(--brand); }
.price-head .actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

/* per-row qty stepper (reuses legacy .btn-number / .input-number ids) */
.price-table .input-group { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.price-table .btn-number { width: 30px; height: 34px; background: #fff; color: var(--ink-2); border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.price-table .btn-number:hover { background: var(--bg-2); color: var(--ink); }
.price-table .btn-number.btn-success { color: var(--brand); }
.price-table .btn-number.btn-danger { color: var(--danger); }
.price-table .input-number { width: 42px; height: 34px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 600; font-size: 13px; outline: 0; }
.price-table td .glyphicon { font-size: 12px; }

/* CP sidebar server form */
.cp .cp-srv { padding: 16px 18px; display: grid; gap: 8px; font-size: 13.5px; }
.cp .cp-srv label { font-size: 12px; color: var(--muted); }
.cp .cp-srv input[type="text"] { width: 80px; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; }
.cp .cp-srv .line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cp .cp-srv .sub { font-size: 12px; color: var(--ink-2); }
.cp .cp-srv .grand { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line-2); }
.cp .cp-srv .grand .total { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--brand); letter-spacing: -.02em; }
.cp .cp-srv .btn { justify-content: center; width: 100%; }

/* commercial proposal document */
.cp-doc { padding: 12px 0 56px; }
.cp-doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px,3vw,42px); letter-spacing: -.02em; margin: 8px 0 20px; }
.cp-doc .cp-imgs { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 24px; }
.cp-doc .cp-imgs img { height: 140px; width: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.cp-doc table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cp-doc th, .cp-doc thead td { background: var(--bg-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 12px 14px; text-align: left; }
.cp-doc td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cp-doc tfoot td { background: var(--bg-2); font-size: 15px; }
.cp-doc tfoot tr:last-child td { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--brand); }
.cp-doc .note { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 24px; max-width: 80ch; }

/* =========================================================
   Cart page + One-page checkout (smopc) — design overlay
   ========================================================= */
/* Cart page */
.cart-wrap { padding: 12px 0 64px; }
.cart-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-table th { background: var(--bg-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 12px 14px; text-align: left; }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-table img { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.cart-table .input-group { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cart-table .input-group .form-control { width: 56px; border: 0; text-align: center; padding: 8px; outline: 0; }
.cart-table .input-group .btn { border: 0; background: #fff; padding: 0 10px; color: var(--ink-2); border-left: 1px solid var(--line); }
.cart-table .input-group .btn-danger { color: var(--danger); }
.cart-totals { width: 360px; max-width: 100%; margin-left: auto; }
.cart-totals table { width: 100%; }
.cart-totals td { padding: 8px 0; font-size: 14.5px; }
.cart-totals tr:last-child td { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); padding-top: 12px; border-top: 1px dashed var(--line); }
.cart-buttons { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* One-page checkout (smopc-*) */
#smopc-page { max-width: var(--maxw); margin: 0 auto; padding: 12px clamp(16px,2.5vw,32px) 64px; }
#smopc-page h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px,3vw,40px); letter-spacing: -.02em; margin: 4px 0 18px; }
#smopc-page h4 { font-family: var(--display); }
#smopc-page .smopc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
#smopc-page .smopc-panel-heading { padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
#smopc-page .smopc-panel-title { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0; letter-spacing: -.01em; }
#smopc-page .smopc-panel-body { padding: 20px; }
#smopc-page .smopc-form-control { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14.5px; background: #fff; outline: 0; }
#smopc-page .smopc-form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,122,92,.08); }
#smopc-page .smopc-control-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; display: block; }
#smopc-page .smopc-form-group { margin-bottom: 14px; }
#smopc-page .smopc-btn, #smopc-page .smopc-btn.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s var(--ease); }
#smopc-page .smopc-btn-default.active, #smopc-page .smopc-btn-default.smopc-active, #smopc-page .smopc-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
#smopc-page .smopc-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 18px -6px rgba(255,122,31,.35); padding: 14px 26px; font-size: 15px; }
#smopc-page .smopc-btn-primary:hover { background: var(--accent-2); }
#smopc-page .smopc-well { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
#smopc-page table td { padding: 10px 12px; font-size: 14px; }
#smopc-page .smopc-radio label, #smopc-page .smopc-checkbox label { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
#smopc-page .breadcrumb { background: transparent; padding: 16px 0; font-size: 13px; color: var(--muted); list-style: none; }
#smopc-page .breadcrumb > li { display: inline; }
#smopc-page .breadcrumb > li + li::before { content: "/"; padding: 0 8px; color: var(--line-2); }
#smopc-page .smopc-alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
#smopc-page .smopc-alert-danger { background: #fde7e1; color: var(--danger); }

/* smopc panel headings — override extension blue with brand-neutral */
#smopc-page .smopc-panel-heading {
  background: var(--bg-2) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
#smopc-page .smopc-panel-title,
#smopc-page .smopc-panel-heading h4,
#smopc-page .smopc-panel-heading a { color: var(--ink) !important; }
#smopc-page .smopc-panel-title i, #smopc-page .smopc-panel-heading i { color: var(--brand) !important; }
#smopc-page .smopc-panel { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; }
/* account toggle active state already handled; ensure default readable */
#smopc-page #account-buttons .smopc-btn { background: #fff; }
/* order/cart product image in checkout */
#smopc-page .smopc-panel img { max-width: 60px; height: auto; border-radius: 8px; }
/* totals emphasis */
#smopc-page .smopc-text-right, #smopc-page td.text-right { text-align: right; }

/* =========================================================
   FIXES BATCH 1 (menu, cards, live-search, mobile, home text)
   ========================================================= */

/* (#2) Catalog mega menu — cleaner 2/3 level look */
.mega.mega--catalog {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  width: max-content; max-width: min(1080px, 92vw);
  max-height: 76vh; overflow-y: auto;
  gap: 4px 26px; padding: 22px 26px;
}
.mega--catalog > div { margin-bottom: 6px; }
.mega--catalog h4 {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 8px;
}
.mega--catalog h4 a { color: var(--ink); }
.mega--catalog h4 a:hover { color: var(--brand); }
.mega--catalog ul li { padding: 3px 0; }
.mega--catalog ul li a { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.mega--catalog ul li a:hover { color: var(--brand); }

/* (#3) Product cards: smaller title/price, add-to-cart with label */
.prod__title { font-size: 15px; line-height: 1.25; }
.prod__title small { font-size: 11px; }
/* lighter + smaller price so price (with «грн») and the button stay on one line */
.prod__price { font-size: 14px; font-weight: 600; white-space: nowrap; min-width: 0; line-height: 1.1; }
.prod__price small { font-size: 10px; }
.prod__price del { font-size: 11px; }
.prod__foot { gap: 5px; flex-wrap: nowrap; }
.prod__add {
  width: auto; height: 36px; padding: 0 8px; gap: 4px; flex: 0 0 auto;
  border-radius: 10px; font-weight: 700; font-size: 11.5px; white-space: nowrap;
}
.prod__add svg { width: 13px; height: 13px; }
.prod__add span { font-size: 11.5px; }
.prod__add:hover { transform: none; }

/* (#6) Live search dropdown — anchored under the search field */
.search { position: relative; }
.live-search {
  position: absolute !important;
  top: calc(100% + 8px) !important; bottom: auto !important;
  left: 0 !important; right: 0 !important; width: 100% !important;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); z-index: 90;
  max-height: 70vh; overflow-y: auto; padding: 6px; margin: 0 !important;
}
.live-search ul { list-style: none; margin: 0; padding: 0; }
.live-search ul li { height: auto !important; border-bottom: 1px solid var(--line); }
.live-search ul li:last-child { border-bottom: 0; }
.live-search ul li a { display: flex; gap: 10px; align-items: center; padding: 8px; color: var(--ink); }
.live-search ul li a:hover { background: var(--bg-2); border-radius: 8px; }
.live-search .product-image img { width: 44px; height: 44px; object-fit: contain; }
.live-search .product-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.live-search .product-name p { font-size: 11px; color: var(--muted); font-weight: 400; margin: 2px 0 0; }
.live-search .product-price { margin-left: auto; font-weight: 700; font-size: 13px; white-space: nowrap; }
.live-search .product-price .special { color: var(--brand); margin-right: 6px; }
.live-search .product-price .price { color: var(--ink); }
.live-search .result-text { padding: 8px; }
.live-search .result-text a { display: block; text-align: center; color: var(--brand); font-weight: 700; font-size: 13px; }
.live-search .loading { width: 22px; height: auto; }

/* (#4) Home content modules (SEO text / banner) padding */
.home-modules { padding-top: 28px; padding-bottom: 8px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.home-modules h1, .home-modules h2, .home-modules h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; line-height: 1.15; }
.home-modules img { height: auto; border-radius: var(--r); }
/* nested module .wrap (e.g. Featured "Готові рішення") must fill, not double-pad → full site width */
.home-modules .wrap { max-width: none; padding-left: 0; padding-right: 0; width: 100%; }
.home-modules .section { padding: 8px 0 0; }
/* banner module: stretch ONLY the slide image to slide width + cap height.
   Do NOT force .owl-wrapper / .owl-item / .item widths — owl-carousel sets those
   inline (wrapper holds every slide in one row, off-screen slides translated away);
   forcing them to 100% broke the carousel (all 4 shown at once, then empty after auto-advance). */
.home-modules .owl-carousel { width: 100%; }
.home-modules .owl-carousel .item img,
.home-modules .owl-carousel img.img-responsive {
  width: 100% !important; height: 340px !important; display: block;
  object-fit: cover; border-radius: var(--r-lg);
}
@media (max-width: 992px) {
  .home-modules .owl-carousel .item img,
  .home-modules .owl-carousel img.img-responsive { height: 240px !important; }
}
@media (max-width: 560px) {
  .home-modules .owl-carousel .item img,
  .home-modules .owl-carousel img.img-responsive { height: 170px !important; }
}

/* =========================================================
   (#7) MOBILE — global adaptation
   ========================================================= */
@media (max-width: 992px) {
  .mega.mega--catalog { grid-template-columns: 1fr 1fr; min-width: 0; max-width: 92vw; }
}
@media (max-width: 760px) {
  /* topbar: keep it light */
  .topbar .wrap { height: auto; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; gap: 6px; }
  .topbar__left { display: none; }
  .topbar__right { gap: 12px; width: 100%; justify-content: flex-end; font-size: 12px; }
  .topbar__right a { white-space: nowrap; }

  /* header row: logo + actions */
  .header__row { grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; }
  .brand img { height: 38px; }
  .header__actions { gap: 4px; justify-content: flex-end; }
  .iconbtn { width: 40px; height: 40px; }
  #cart > .cart-button, #cart button.cart-button { height: 40px; padding: 0 12px; }
  #cart #cart-total { font-size: 12px; }

  /* hero metrics no clipping */
  .hero { padding: 24px 0 36px; }
  .hero__metrics { gap: 10px; margin-top: 24px; padding-top: 18px; }
  .hero__metrics .m strong { font-size: 21px; }
  .hero__metrics .m span { font-size: 11.5px; }
  .hero__ctas .btn { flex: 1; justify-content: center; }

  /* sections tighter */
  .section { padding: 40px 0; }
  .section__head { margin-bottom: 20px; }

  /* product cards: stack price + full-width button */
  .products { gap: 12px; }
  .prod__body { padding: 12px; gap: 6px; }
  .prod__foot { flex-direction: column; align-items: stretch; }
  .prod__price { font-size: 15px; }
  .prod__price small { font-size: 9.5px; }
  .prod__price del { font-size: 11px; margin-right: 4px; }
  .prod__add { width: 100%; justify-content: center; height: 42px; font-size: 13px; }
  .prod__wish { opacity: 1; }

  /* wide tables scroll horizontally */
  .price-main, .cp-doc, .cart-wrap form, #smopc-page { overflow-x: auto; }
  .price-table, .cart-table { min-width: 560px; }

  /* category sidebar above list, not sticky */
  .side { position: static; max-height: none; margin-bottom: 16px; }

  /* product gallery stack */
  .product { gap: 20px; }
  .p-trust { grid-template-columns: 1fr; gap: 10px; }

  /* mega inside mobile catbar: single column, in-flow */
  .catbar.is-open .mega.mega--catalog { grid-template-columns: 1fr; width: 100%; max-width: 100%; max-height: none; padding: 6px 14px 12px; }

  /* footer */
  .footer { padding: 40px 0 20px; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .hero__metrics { grid-template-columns: 1fr 1fr; }
  .hero__metrics .m:last-child { grid-column: span 2; }
  .topbar__right a:not(:last-child) { display: none; }
  .prod__price { font-size: 13.5px; }
  .prod__price del { font-size: 10px; }
}

/* =========================================================
   FIXES BATCH 2 (sidebar, live-search, cart, footer logo, header search/phones)
   ========================================================= */

/* (#1) Category sidebar: legacy column_left module no longer squished */
.side #column-left { width: 100% !important; float: none !important; padding: 0 !important; margin: 0; }
.side .list-group { margin: 0 0 4px; border: 0; }
.side .list-group-item {
  display: block; width: 100%; white-space: normal; word-break: break-word;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 8px 4px; font-size: 14px; color: var(--ink-2); line-height: 1.35;
}
.side .list-group-item:hover { color: var(--brand); background: var(--bg-2); }
.side .list-group-item.active { color: var(--brand); font-weight: 700; background: transparent; }
.side #column-left .col-sm-3, .side .col-sm-3 { width: 100% !important; }

/* (#2) Live search "view all" no longer overlaps last item */
.live-search .result-text {
  position: static !important;
  border-top: 1px solid var(--line); margin-top: 4px; padding: 10px 8px !important;
  clear: both;
}
.live-search ul li:last-child { border-bottom: 0; }

/* (#3) Header cart dropdown — clean rows, taller button */
#cart > .cart-button, #cart button.cart-button { height: 48px; padding: 0 18px; font-size: 14.5px; }
#cart .dropdown-menu.cart-list { padding: 10px; }
#cart .cart-row {
  display: grid; grid-template-columns: 48px 1fr auto 24px; gap: 10px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid var(--line);
}
#cart .cart-row:last-of-type { border-bottom: 0; }
#cart .cart-row img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
#cart .cart-row .ci-name { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink); }
#cart .cart-row .ci-name a { color: var(--ink); }
#cart .cart-row .ci-opt { font-size: 11px; color: var(--muted); }
#cart .cart-row .ci-qty { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
#cart .cart-row .ci-total { font-weight: 700; font-size: 13px; white-space: nowrap; text-align: right; }
#cart .cart-row .ci-del { color: var(--muted); cursor: pointer; text-align: center; }
#cart .cart-row .ci-del:hover { color: var(--danger); }
#cart .cart-foot { padding: 10px 4px 2px; }
#cart .cart-foot .ct-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
#cart .cart-foot .ct-row.ct-grand { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
#cart .cart-foot .ct-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
#cart .cart-foot .ct-btns a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 13px; }
#cart .cart-foot .ct-btns a.go-cart { background: var(--bg-2); color: var(--ink); }
#cart .cart-foot .ct-btns a.go-checkout { background: var(--accent); color: #fff; }
#cart .cart-empty { padding: 24px 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* (#4) Footer logo — white chip instead of inverted white box */
.footer__brand img {
  filter: none !important;
  background: #fff; padding: 10px 14px; border-radius: 12px;
  height: 56px; box-sizing: content-box; max-width: 200px;
}

/* (#5,#6) Header search: narrower field, matching button + phones/viber */
.search { max-width: 440px; }
.search #search button.search-button { height: 40px; padding: 0 20px; font-size: 14.5px; border-radius: 999px; }
.header__phones { display: flex; flex-direction: column; align-items: flex-end; gap: 0; padding-right: 12px; margin-right: 4px; border-right: 1px solid var(--line); }
.header__phones a.ph { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
.header__phones a.ph:hover { color: var(--brand); }
.header__phones .viber { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #7360f2; font-weight: 600; margin-top: 2px; }
.header__phones .viber img { width: 15px; height: 15px; }
.header__phones .ph-msgs { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
/* tight boxes (box ≈ glyph) → equal visual spacing (full glyphs hug edges; tg whitespace is symmetric) */
.header__phones .ph-msgs a { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; line-height: 0; border: 0; transition: transform .15s; }
.header__phones .ph-msgs a:hover { transform: translateY(-1px); }
.header__phones .ph-msgs svg { display: block; }
/* equalize visual glyph height (each brand mark fills its viewBox differently) */
.header__phones .ph-msgs .viber svg { width: 23px; height: 23px; }
.header__phones .ph-msgs .tg svg { width: 30px; height: 30px; }
/* the plane glyph sits right-of-centre in its box → nudge left to even out the gaps */
.header__phones .ph-msgs .tg { position: relative; left: -2px; }
.header__phones .ph-msgs .wa svg { width: 24px; height: 24px; }
.header__phones .ph-msgs .viber { color: #7360f2; }
.header__phones .ph-msgs .tg { color: #229ED9; }
.header__phones .ph-msgs .wa { color: #25D366; }

@media (max-width: 992px) {
  .header__phones { display: none; }
}
@media (max-width: 760px) {
  .search { max-width: none; }
  #cart .dropdown-menu.cart-list { position: fixed; left: 8px; right: 8px; top: auto; }
}

/* =========================================================
   FIXES BATCH 3 (search button, viber, cart size)
   ========================================================= */

/* (#1) Search button flush, full field height */
.search { height: 48px; padding: 0 0 0 18px; align-items: stretch; }
.search #search, .search #search.input-group { width: 100%; height: 100%; align-items: stretch; }
.search #search input.form-control { display: flex; align-items: center; height: 100%; }
.search .input-group-btn { display: inline-flex; align-items: stretch; }
.search #search button.search-button {
  height: 100%; border-radius: 0 999px 999px 0; padding: 0 24px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

/* (#2) Viber next to its phone, bigger */
.header__phones { gap: 1px; }
.header__phones .ph-row { display: flex; align-items: center; gap: 9px; }
.header__phones .viber { margin-top: 0; }
.header__phones .viber img { width: 26px; height: 26px; }
.header__phones .viber span { display: none; }

/* (#3) Cart dropdown — fits content, taller, scrolls */
#cart .dropdown-menu.cart-list {
  min-width: 380px; max-width: 94vw;
  max-height: calc(100vh - 96px); overflow-y: auto;
}
#cart .cart-row { grid-template-columns: 46px 1fr auto 22px; padding: 9px 4px; }
#cart .cart-row .ci-name { font-size: 12.5px; }
#cart .cart-foot { position: sticky; bottom: 0; background: #fff; padding-top: 8px; }

/* =========================================================
   FIX: search field + button as one unit (touching, flat seam)
   ========================================================= */
.search {
  max-width: 440px; height: 48px; padding: 0;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  border-radius: 0; align-items: stretch;
}
.search:focus-within { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.search svg { display: none; } /* hide leftover design magnifier; OpenCart module has its own button */
.search #search, .search #search.input-group { width: 100%; height: 100%; display: flex; align-items: stretch; }
.search #search input.form-control {
  flex: 1; height: 100%;
  border: 1px solid var(--line) !important; border-right: 0 !important;
  background: var(--bg-2) !important;
  border-radius: 999px 0 0 999px;
  padding: 0 14px 0 20px; font-size: 14.5px; color: var(--ink);
  box-shadow: none !important;
}
.search #search input.form-control:focus { border-color: var(--brand) !important; background: #fff !important; }
.search .input-group-btn { display: inline-flex; align-items: stretch; }
.search #search button.search-button {
  height: 100%; padding: 0 26px; border: 0 !important;
  background: var(--brand) !important; color: #fff !important;
  border-radius: 0 999px 999px 0;
}
.search #search button.search-button:hover { background: var(--brand-2) !important; }

/* =========================================================
   FIX: header cart button fits its text (2 lines, header height)
   ========================================================= */
#cart { display: inline-flex; align-items: stretch; }
#cart #cart-total::before { content: none !important; }   /* drop duplicate icon */
#cart > .cart-button, #cart button.cart-button {
  height: 56px; min-width: 122px; max-width: 180px;
  padding: 6px 16px; gap: 8px;
  white-space: normal; line-height: 1.18;
  font-size: 12.5px; font-weight: 700; text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
#cart #cart-total { white-space: normal; font-size: 12.5px; line-height: 1.18; }
#cart #cart-total .fa-shopping-cart { font-size: 16px; margin-right: 4px; }
@media (max-width: 760px) {
  #cart > .cart-button, #cart button.cart-button { height: 44px; min-width: 0; max-width: 120px; font-size: 11.5px; padding: 4px 10px; }
}

/* FIX: kill legacy strike-through line over cart total */
#cart #cart-total::after, #cart-total::after { display: none !important; content: none !important; }
#cart #cart-total { line-height: 1.18; }

/* FIX: long mega-menu category titles wrap to 2 lines */
.mega--catalog h4 { white-space: normal; overflow-wrap: break-word; line-height: 1.2; }
.mega--catalog h4 a { display: inline; white-space: normal; }

/* =========================================================
   FIXES BATCH 6 (product page: gallery overlap, price/title size)
   ========================================================= */
/* (#1) main image must stay in its column (kill legacy .thumbnails margins) */
.gallery { grid-template-columns: 84px minmax(0,1fr); gap: 16px; align-items: start; }
.gallery .thumbs { min-width: 0; }
.gallery .main, .gallery .main.thumbnails { margin: 0 !important; padding: 0 !important; min-width: 0; list-style: none; }
.gallery .main.thumbnails > a { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.gallery .main.thumbnails > a img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.gallery .thumbs button { margin: 0 !important; }

/* (#2) price not huge */
.price-block { padding: 18px 20px; }
.price-block .price { font-size: 30px; }
.price-block .price small { font-size: 12px; }
.price-block .price del { font-size: 14px; }

/* (#3) title not huge */
.pinfo h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; margin: 0 0 8px; }

/* =========================================================
   Contacts page
   ========================================================= */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; padding-bottom: 8px; }
.ci-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.ci-card .ci-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-card .ci-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ci-card .ci-item:first-child { padding-top: 0; }
.ci-card .ci-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.ci-card .ci-l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ci-card .ci-v { font-size: 15.5px; color: var(--ink); line-height: 1.5; margin-top: 2px; }
.ci-card .ci-v a { color: var(--ink); }
.ci-card .ci-v a:hover { color: var(--brand); }
.ci-card .ci-v .big { font-family: var(--display); font-weight: 700; font-size: 19px; display: block; letter-spacing: -.01em; }
.ci-card .ci-viber { display: inline-flex; align-items: center; gap: 6px; color: #7360f2; font-weight: 600; font-size: 13px; margin-top: 4px; }
.ci-card .ci-viber img { width: 18px; height: 18px; }
.ci-card .ci-tg, .ci-card .ci-wa { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-top: 4px; margin-left: 14px; }
.ci-card .ci-tg { color: #229ED9; }
.ci-card .ci-wa { color: #25D366; }
.ci-card .ci-tg svg, .ci-card .ci-wa svg { width: 18px; height: 18px; }
.ci-card .ci-soc { display: flex; gap: 8px; margin-top: 6px; }
.ci-card .ci-soc a { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.ci-card .ci-soc a:hover { background: var(--brand); color: #fff; }

.contacts-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.contacts-form legend { font-family: var(--display); font-weight: 700; font-size: 18px; border: 0; margin: 0 0 16px; padding: 0; color: var(--ink); }
.contacts-form .form-group { margin-bottom: 16px; }
.contacts-form .control-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; float: none; width: auto; text-align: left; }
.contacts-form .form-control { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14.5px; background: #fff; outline: 0; }
.contacts-form .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,122,92,.08); }
.contacts-form textarea.form-control { min-height: 140px; resize: vertical; }
.contacts-form .col-sm-2, .contacts-form .col-sm-10 { width: 100%; float: none; padding: 0; }
.contacts-form .buttons { display: flex; justify-content: flex-end; margin-top: 4px; }
.contacts-form .btn-primary, .contacts-form input[type="submit"] {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border: 0;
  background: var(--accent); color: #fff; border-radius: 12px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 18px -6px rgba(255,122,31,.35); cursor: pointer;
}
.contacts-form .btn-primary:hover, .contacts-form input[type="submit"]:hover { background: var(--accent-2); }

.contacts-map { margin: 24px 0 8px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.contacts-map iframe { display: block; width: 100%; height: 380px; border: 0; }

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

/* =========================================================
   Information (CMS) pages — readable typography
   ========================================================= */
.page-doc { max-width: 920px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); padding-bottom: 8px; }
.page-doc h1, .page-doc h2, .page-doc h3, .page-doc h4 { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; line-height: 1.2; margin: 28px 0 12px; }
.page-doc h2 { font-size: 24px; } .page-doc h3 { font-size: 19px; }
.page-doc p { margin: 0 0 14px; }
.page-doc ul, .page-doc ol { margin: 0 0 14px; padding-left: 20px; }
.page-doc ul { list-style: disc; } .page-doc ol { list-style: decimal; }
.page-doc li { margin: 4px 0; }
.page-doc a { color: var(--brand); }
.page-doc a:hover { text-decoration: underline; }
.page-doc img { height: auto; border-radius: var(--r); margin: 10px 0; }
.page-doc table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.page-doc table td, .page-doc table th { border: 1px solid var(--line); padding: 8px 10px; }

/* =========================================================
   FIX: print — hide header/cart/dropdown overlay; bigger cart imgs
   ========================================================= */
@media print {
  .topbar, .catbar, .search, .header__phones, .nav-burger,
  #cart, #cart .dropdown-menu, .cart-list, .dropdown-menu,
  .footer, .cp, .cp-toggle, .live-search, .header__actions { display: none !important; }
  .header { box-shadow: none !important; border: 0 !important; position: static !important; }
  body { background: #fff !important; }
}
/* bigger product images in header cart dropdown */
#cart .cart-row { grid-template-columns: 64px 1fr auto 22px; gap: 12px; }
#cart .cart-row img { width: 64px; height: 64px; }

/* =========================================================
   FIXES BATCH 8 (price stepper, mobile CP sheet, cart btns)
   ========================================================= */
/* clean qty stepper on price page: [-][input][+] */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty-stepper .btn-number { width: 32px; height: 36px; background: #fff; border: 0; color: var(--ink-2); font-size: 17px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.qty-stepper .btn-number.btn-success { color: var(--brand); }
.qty-stepper .btn-number.btn-danger { color: var(--ink-2); }
.qty-stepper .btn-number.btn-success:hover { background: var(--brand-soft); }
.qty-stepper .btn-number.btn-danger:hover { background: #fde7e1; color: var(--danger); }
.qty-stepper .input-number { width: 42px; height: 36px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 600; font-size: 13px; outline: 0; -moz-appearance: textfield; }

/* mobile commercial-proposal as bottom sheet + floating toggle */
@media (max-width: 1100px) {
  .price-layout .cp {
    position: fixed !important; left: 0; right: 0; bottom: 0; top: auto !important;
    width: 100%; max-height: 84vh !important;
    transform: translateY(106%); transition: transform .32s var(--ease);
    z-index: 95; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px -12px rgba(0,0,0,.35);
  }
  .price-layout .cp.is-open { transform: none; }
  .cp-toggle { display: inline-flex !important; }
  .cp__close { display: inline-flex !important; }
}
.cp__close { display: none; position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; z-index: 2; }
.cp__head { position: relative; }

/* mobile CP sheet: keep inputs within bounds */
@media (max-width: 1100px) {
  .price-layout .cp { overflow-x: hidden; }
  .price-layout .cp .cp-srv { padding: 14px 18px 18px; }
  .price-layout .cp .cp-srv input[type="text"] { width: 70px; }
  .price-layout .cp .cp__list { display: none; } /* server CP has no list, hide empty area */
}

/* =========================================================
   FIXES BATCH 9 (cart single btn + z-index, mobile mega tap)
   ========================================================= */
/* cart dropdown above Bootstrap dropdown-backdrop(990) so mobile taps register */
#cart .dropdown-menu, #cart .dropdown-menu.cart-list { z-index: 1001 !important; }
.ct-btns.ct-btns--single { grid-template-columns: 1fr !important; }
.ct-btns.ct-btns--single .go-checkout { padding: 13px; font-size: 14px; }

/* mobile: open mega by tap (not hover) */
@media (max-width: 992px) {
  .catbar .item.mega-open .mega { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}
@media (max-width: 760px) {
  .catbar .item:hover .mega { display: none; }
  .catbar .item.mega-open .mega { display: grid !important; }
  #cart .dropdown-menu.cart-list { position: fixed; left: 8px; right: 8px; top: 66px; max-height: 80vh; overflow-y: auto; }
}

/* =========================================================
   FIX: cart dropdown narrower + checkout button right (~38%)
   ========================================================= */
#cart .dropdown-menu.cart-list { min-width: 320px !important; max-width: 360px; }
.ct-btns.ct-btns--single { display: flex !important; justify-content: flex-end; grid-template-columns: none !important; }
.ct-btns.ct-btns--single .go-checkout { width: auto; min-width: 38%; padding: 11px 18px; }
@media (max-width: 760px) {
  #cart .dropdown-menu.cart-list { min-width: 0 !important; max-width: none; }
  .ct-btns.ct-btns--single .go-checkout { min-width: 48%; }
}

/* =========================================================
   FIX: header cart dropdown — kill legacy min-width:427 inner overflow
   ========================================================= */
#cart .dropdown-menu.cart-list { width: 330px; min-width: 330px !important; max-width: 92vw; padding: 8px !important; overflow: hidden; }
#cart .dropdown-menu li,
#cart .dropdown-menu li > div { min-width: 0 !important; padding: 0 !important; }
#cart .cart-row { grid-template-columns: 52px minmax(0,1fr) auto 20px !important; gap: 8px; padding: 8px 4px !important; align-items: center; }
#cart .cart-row img { width: 52px !important; height: 52px !important; }
#cart .cart-row .ci-name { min-width: 0; }
#cart .cart-row .ci-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
#cart .cart-row .ci-qty, #cart .cart-row .ci-total { white-space: nowrap; text-align: right; }
#cart .cart-foot { padding: 8px 4px 2px !important; }
#cart .cart-foot .ct-row { padding: 3px 0 !important; min-width: 0 !important; }
#cart .cart-foot .ct-row p { margin: 20px 0 !important; } /* neutralize legacy li p */
#cart .dropdown-menu li p { margin: 0 !important; }
@media (max-width: 760px) {
  #cart .dropdown-menu.cart-list { width: auto; min-width: 0 !important; left: 8px; right: 8px; }
}

/* FIX: bootstrap dropdown <a> padding was squashing cart row images */
#cart .cart-row a { padding: 0 !important; clear: none !important; line-height: normal !important; }
#cart .cart-row > a:first-child { display: inline-flex; width: 52px; height: 52px; align-items: center; }
#cart .cart-row > a:first-child img { width: 52px !important; height: 52px !important; object-fit: contain; }
#cart .cart-row .ci-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* (mobile catbar reverted to single-burger menu — see integration block above) */

/* =========================================================
   FIX: category sidebar — clean rebuild (no inner scroll, tidy list)
   ========================================================= */
.cat-page .side { position: static !important; max-height: none !important; overflow: visible !important; padding: 14px 16px; }
.cat-page .side #column-left { width: 100% !important; float: none !important; padding: 0 !important; margin: 0; }
.cat-page .side .list-group { display: block; border: 0; margin: 0; }
.cat-page .side .list-group-item {
  display: block; width: 100%; box-shadow: none !important; border: 0 !important;
  border-bottom: 1px solid var(--line) !important; border-radius: 0 !important;
  background: transparent !important; padding: 9px 4px !important;
  font-size: 14px; color: var(--ink-2); line-height: 1.35; white-space: normal; word-break: break-word;
}
.cat-page .side .list-group-item:last-child { border-bottom: 0 !important; }
.cat-page .side .list-group-item:hover { color: var(--brand); background: var(--bg-2) !important; }
.cat-page .side .list-group-item.active { color: var(--brand) !important; background: transparent !important; font-weight: 700; }
.cat-page .side .list-group-item.oz { font-weight: 700; color: var(--ink) !important; font-size: 14.5px; margin-top: 10px; padding-top: 12px !important; border-top: 1px solid var(--line); }
.cat-page .side h4 { margin: 0 0 8px; }

/* =========================================================
   FIX: category sidebar promo slider (#banner0) — kill blue frame
   ========================================================= */
.cat-page .side #banner0 { margin-top: 16px; border-radius: 12px; overflow: hidden; }
.cat-page .side #column-left .owl-carousel .owl-wrapper-outer,
.cat-page .side #banner0 .owl-wrapper-outer {
  padding: 0 !important; border: 0 !important; background: transparent !important;
}
.cat-page .side #banner0 img,
.cat-page .side #column-left .owl-carousel img {
  width: 100% !important; height: auto !important; display: block;
  border: 1px solid var(--line) !important; border-radius: 12px !important;
}
.cat-page .side #banner0 .owl-pagination, .cat-page .side #banner0 .owl-controls { margin-top: 6px; }
.cat-page .side #banner0 .owl-page span { background: var(--line-2) !important; }
.cat-page .side #banner0 .owl-page.active span { background: var(--brand) !important; }

/* =========================================================
   FIX: viber SVG before phones; search field+button flush
   ========================================================= */
.header__phones { flex-direction: row !important; align-items: center; gap: 10px; }
.header__phones .viber { display: inline-flex; width: 30px; height: 30px; color: #7360f2; flex: 0 0 auto; margin: 0; }
.header__phones .viber svg { width: 30px; height: 30px; }
.header__phones .viber span { display: none; }
.header__phones .ph-col { display: flex; flex-direction: column; align-items: flex-end; }

/* search: no gap between field and button (kill Bootstrap input-group table quirks) */
.search { display: flex !important; align-items: stretch; height: 48px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.search #search, .search #search.input-group { display: flex !important; flex-wrap: nowrap !important; gap: 0 !important; width: 100%; height: 100%; align-items: stretch; }
.search #search input.form-control { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; float: none !important; height: 100%; margin: 0 !important; border: 1px solid var(--line) !important; border-right: 0 !important; background: var(--bg-2) !important; border-radius: 999px 0 0 999px; padding: 0 12px 0 18px; }
.search #search input.form-control:focus { border-color: var(--brand) !important; background: #fff !important; }
.search #search .input-group-btn { flex: 0 0 auto !important; width: auto !important; display: flex !important; align-items: stretch; margin: 0 !important; }
.search #search button.search-button { height: 100%; margin: 0 !important; border: 0 !important; border-radius: 0 999px 999px 0; padding: 0 24px; background: var(--brand) !important; color: #fff !important; white-space: nowrap; }

/* print price page: thumb + model/article */
.price-table .pp-pic { width: 54px; }
.price-table .pp-pic img { width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); display: block; }
.price-table .name .pp-model { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* =========================================================
   FIX: mobile header layout (logo+icons row, full-width search, lang-only topbar)
   ========================================================= */
@media (max-width: 760px) {
  /* topbar: keep only language switch on the right */
  .topbar { font-size: 12px; }
  .topbar .wrap { justify-content: flex-end; height: auto; padding: 5px 16px; flex-wrap: nowrap; }
  .topbar__left { display: none !important; }
  .topbar__right { gap: 0; }
  .topbar__right > a { display: none !important; }
  .topbar .language-box a { display: inline-block; }

  /* header: logo + actions on row 1, search full-width on row 2 */
  .header { position: static; }
  .header__row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; grid-template-columns: none !important; }
  .brand { order: 1; flex: 0 1 auto; min-width: 0; }
  .brand img { height: 34px; width: auto; max-width: 100%; }
  .header__phones { display: none !important; }
  .header__actions { order: 2; margin-left: auto; flex: 0 0 auto; gap: 6px; align-items: center; }
  /* declutter: on mobile keep only call + cart */
  .header__actions .iconbtn { display: none !important; }
  .header__actions .iconbtn--call { display: inline-flex !important; width: 44px; height: 44px; color: var(--brand); }
  .header__actions .iconbtn--call svg { width: 22px; height: 22px; }
  .search { order: 3; flex: 0 0 100%; width: 100% !important; max-width: none !important; min-width: 0; height: 44px; display: flex !important; }
  .header > .wrap { padding-left: 16px; padding-right: 16px; }
  /* Bootstrap .input-group is display:table and won't shrink — force flex so the
     input can shrink and not push the header wider than the screen */
  .search #search, .search .input-group { display: flex !important; width: 100% !important; min-width: 0 !important; }
  .search #search > .form-control, .search .input-group > .form-control { flex: 1 1 0 !important; width: 1% !important; min-width: 0 !important; }
  .search #search .input-group-btn, .search .input-group .input-group-btn { flex: 0 0 auto !important; width: auto !important; }
}
/* desktop: call icon hidden (phones block shown instead) */
.iconbtn--call { display: none; }

/* mobile: compact cart button (icon only) so logo+icons fit one row */
@media (max-width: 760px) {
  .header__actions { flex-wrap: nowrap; }
  #cart > .cart-button, #cart button.cart-button {
    width: 44px !important; min-width: 44px !important; max-width: 44px !important;
    padding: 0 !important; height: 44px; gap: 0;
  }
  #cart #cart-total { font-size: 0 !important; line-height: 0; }
  #cart #cart-total i, #cart #cart-total .fa { font-size: 18px !important; line-height: 1; margin: 0 !important; }
  #cart #cart-total::before { content: none !important; }
}

/* =========================================================
   FIX: mobile horizontal overflow — mega had min-width:720 (abs) → page overflow
   ========================================================= */
/* overflow-x:clip clips horizontal overflow WITHOUT creating a scroll container,
   so it does not break position:sticky on the header (hidden would). hidden = fallback. */
html, body { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 760px) {
  .catbar .mega, .catbar .mega.mega--catalog {
    display: none !important; min-width: 0 !important; max-width: 100% !important; width: auto !important;
    position: static; box-shadow: none; border: 0; transform: none; opacity: 1; visibility: visible;
    grid-template-columns: 1fr; padding: 4px 14px 10px;
  }
  .catbar .item.mega-open .mega, .catbar .item.mega-open .mega.mega--catalog { display: grid !important; }
}

/* =========================================================
   Mobile call popup (slides from top): 2 phones + Viber
   ========================================================= */
.call-popup { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 25, 30, .5); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease); }
.call-popup.open { opacity: 1; visibility: visible; }
.call-popup__panel { position: absolute; top: 0; left: 0; right: 0; background: #fff; border-radius: 0 0 20px 20px; padding: 18px 16px 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .2); transform: translateY(-100%); transition: transform .28s var(--ease); }
.call-popup.open .call-popup__panel { transform: translateY(0); }
.call-popup__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: var(--bg-2); border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.call-popup__title { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); margin: 2px 0 14px; padding-right: 44px; }
.call-popup__row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); background: #fff; }
.call-popup__row:last-child { margin-bottom: 0; }
.call-popup__row svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--brand); }
.call-popup__row--viber { color: #7360f2; border-color: rgba(115, 96, 242, .35); background: rgba(115, 96, 242, .06); }
.call-popup__row--viber svg { color: #7360f2; }
.call-popup__row--tg { color: #229ED9; border-color: rgba(34, 158, 217, .35); background: rgba(34, 158, 217, .06); }
.call-popup__row--tg svg { color: #229ED9; }
.call-popup__row--wa { color: #25D366; border-color: rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .06); }
.call-popup__row--wa svg { color: #25D366; }

/* ============ HOMEPAGE ARTICLES (compact blog list) ============ */
.articles { padding: 30px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.articles__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.articles__head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; color: var(--ink); }
.articles__head h2 em { font-style: normal; color: var(--brand); }
.articles__list { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 36px; }
.articles__list li { break-inside: avoid; margin: 0 0 8px; }
.articles__list a { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.4; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.articles__list a:hover { color: var(--brand); }
.articles__list a:hover span { text-decoration: underline; }
.articles__list svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 3px; color: var(--brand); opacity: .65; }
@media (max-width: 900px) { .articles__list { columns: 2; column-gap: 28px; } }
@media (max-width: 560px) { .articles { padding: 24px 0 30px; } .articles__list { columns: 1; } .articles__head h2 { font-size: 18px; } }

/* ============ CHECKOUT — compact quantity stepper (smopc cart) ============ */
#smopc-page #checkout-cart .smopc-input-group { display: flex !important; align-items: stretch; width: 110px !important; max-width: 110px !important; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
#smopc-page #checkout-cart .smopc-input-group-btn { display: flex !important; flex: 0 0 auto; width: auto !important; font-size: 13px !important; }
#smopc-page #checkout-cart .smopc-input-group .smopc-btn-primary { display: inline-flex !important; align-items: center; justify-content: center; width: 32px !important; min-width: 32px !important; height: 36px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--bg-2) !important; color: var(--ink) !important; box-shadow: none !important; font-size: 13px !important; line-height: 1; }
#smopc-page #checkout-cart .smopc-input-group .smopc-btn-primary:hover { background: var(--brand) !important; color: #fff !important; }
#smopc-page #checkout-cart .smopc-input-group .smopc-form-control { flex: 1 1 auto; float: none !important; width: auto !important; min-width: 0 !important; height: 36px; text-align: center; border: 0 !important; border-left: 1.5px solid var(--line) !important; border-right: 1.5px solid var(--line) !important; border-radius: 0 !important; padding: 0 2px !important; margin: 0 !important; font-weight: 700; font-size: 14px; box-shadow: none !important; }
#smopc-page #checkout-cart .smopc-btn-danger { padding: 0 !important; width: 36px; height: 36px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; box-shadow: none !important; }

/* ============ ADD-TO-CART FEEDBACK: toast + cart icon bump ============ */
.cart-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 2000;
  display: flex; align-items: center; gap: 12px;
  max-width: 340px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(28,37,48,.28);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s;
}
.cart-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cart-toast__ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.cart-toast__ic svg { width: 20px; height: 20px; }
.cart-toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-toast__title { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.2; }
.cart-toast__link { font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; }
.cart-toast__link:hover { text-decoration: underline; }
.cart-toast__close { flex: 0 0 auto; margin-left: 4px; background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.cart-toast__close:hover { color: var(--ink); }
@media (max-width: 560px) { .cart-toast { right: 12px; left: 12px; bottom: 12px; max-width: none; } }

/* cart icon attention bump */
@keyframes cartBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  55% { transform: scale(.94); }
  100% { transform: scale(1); }
}
#cart.cart-bump > button { animation: cartBump .5s ease; }

/* ============ COMPACT-ON-SCROLL: full size at top, shrinks once stuck ============ */
.header__row, .brand img, .search,
#cart > .cart-button, #cart button.cart-button,
.catbar a, .catbar .item:first-child > a {
  transition: height .18s ease, padding .18s ease, margin .18s ease, font-size .18s ease;
}
.header.is-stuck .header__row { padding: 7px 0; }
.header.is-stuck .brand img { height: 36px; }
.header.is-stuck .header__actions .iconbtn { width: 38px; height: 38px; }
.header.is-stuck .search { height: 40px; }
.header.is-stuck #cart > .cart-button,
.header.is-stuck #cart button.cart-button { height: 42px; padding: 4px 12px; line-height: 1.05; font-size: 11px; }
/* smaller cart label + cart icon so it fits the shorter button height */
.header.is-stuck #cart #cart-total { font-size: 10px; line-height: 1.05; }
.header.is-stuck #cart #cart-total .fa-shopping-cart { font-size: 12px; margin-right: 3px; }
/* catbar shrinks too (incl. the wide "Каталог товаров" pill) */
.catbar.is-stuck a { padding: 8px 14px; font-size: 13.5px; }
.catbar.is-stuck .item:first-child > a { padding: 7px 14px; margin: 4px 0; }

/* ============ Homepage SEO list: subcategories with product counts ============ */
.seo-col__subs { list-style: none; margin: 0; padding: 0; }
.seo-col__subs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.seo-col__subs li a { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; text-decoration: none; }
.seo-col__subs li a:hover { color: var(--brand); }
.seo-col__count { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 1px 9px; flex: 0 0 auto; }

/* ============ MOBILE: stack hero CTAs full-width so they never overflow ============ */
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; width: 100%; }
}

/* ============ MOBILE: category toolbar (results + sort/limit) — stack, no overflow ============ */
@media (max-width: 760px) {
  .toolbar { flex-direction: column; align-items: stretch; padding: 12px; gap: 10px; }
  .toolbar .left { width: 100%; }
  .toolbar .left:last-child { gap: 8px; }
  .toolbar .left:last-child label { flex: 0 0 auto; }
  .toolbar #input-sort { flex: 1 1 auto; min-width: 0; }
  .toolbar #input-limit { flex: 0 0 auto; width: auto; }
}

/* ============ ARTICLES (news/ncategory) — masonry card grid ============ */
.articles-grid { columns: 3 280px; column-gap: 24px; margin: 10px 0 30px; }
.artcard {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: inline-block; width: 100%; margin: 0 0 24px;
  background: #fff; border: 1px solid var(--line, #ececec); border-radius: 16px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.artcard:hover { box-shadow: 0 12px 30px rgba(0,0,0,.10); transform: translateY(-2px); }
.artcard__media { display: block; overflow: hidden; background: var(--bg-2, #f5f5f0); }
.artcard__media img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.artcard:hover .artcard__media img { transform: scale(1.04); }
.artcard__body { padding: 16px 18px 18px; }
.artcard__date { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand, #2e7d32); letter-spacing: .02em; margin-bottom: 8px; }
.artcard__title { margin: 0 0 10px; font-size: 17px; line-height: 1.3; }
.artcard__title a { color: var(--ink, #1a1a1a); text-decoration: none; }
.artcard__title a:hover { color: var(--brand, #2e7d32); }
.artcard__excerpt { font-size: 13.5px; line-height: 1.55; color: var(--ink-2, #555); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.artcard__excerpt p { margin: 0 0 6px; }
.artcard__excerpt img { display: none; }
.artcard__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand, #2e7d32); text-decoration: none; transition: gap .15s ease; }
.artcard__more:hover { gap: 10px; }
.art-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 8px 0 26px; }
.art-pager__res { color: var(--muted, #888); font-size: 13px; }
@media (max-width: 980px) { .articles-grid { columns: 2 240px; column-gap: 18px; } }
@media (max-width: 560px) { .articles-grid { columns: 1; } .art-pager { flex-direction: column; align-items: flex-start; } }

/* ============ CALLBACK FORM (home) ============ */
.callback { display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center; background: linear-gradient(135deg, var(--brand, #2e7d32), #1f5f23); border-radius: 24px; padding: 42px 46px; color: #fff; }
.callback__info .lbl { background: rgba(255,255,255,.18); color: #fff; }
.callback__info h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; margin: 12px 0 12px; color: #fff; }
.callback__info p { color: rgba(255,255,255,.92); margin: 0 0 18px; max-width: 48ch; line-height: 1.55; }
.callback__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.callback__perks li { position: relative; padding-left: 28px; color: #fff; font-size: 14.5px; line-height: 1.4; }
.callback__perks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; line-height: 19px; text-align: center; font-size: 12px; font-weight: 700; color: var(--brand, #2e7d32); background: #fff; border-radius: 50%; }
.callback__form { background: #fff; border-radius: 18px; padding: 24px; display: grid; gap: 12px; box-shadow: 0 22px 54px rgba(0,0,0,.20); }
.cbf__field input, .cbf__field textarea { width: 100%; border: 1.5px solid var(--line, #e3e3e3); border-radius: 12px; padding: 13px 15px; font-size: 15px; font-family: inherit; color: var(--ink, #1a1a1a); background: var(--bg-2, #f7f7f2); transition: border-color .15s ease, background .15s ease; }
.cbf__field textarea { resize: vertical; min-height: 64px; }
.cbf__field input::placeholder, .cbf__field textarea::placeholder { color: #9a9a93; }
.cbf__field input:focus, .cbf__field textarea:focus { outline: none; border-color: var(--brand, #2e7d32); background: #fff; }
.cbf__field input.is-invalid, .cbf__field textarea.is-invalid { border-color: #e23b3b; background: #fff5f5; }
.callback__form .cbf__submit { width: 100%; justify-content: center; margin-top: 2px; }
.cbf__note { font-size: 11.5px; color: var(--muted, #999); text-align: center; line-height: 1.45; }
.cbf__result { font-size: 14px; border-radius: 10px; text-align: center; line-height: 1.45; }
.cbf__result--ok { padding: 12px 14px; background: #e8f6e9; color: #1f7a26; }
.cbf__result--err { padding: 12px 14px; background: #fdeaea; color: #c0392b; }
@media (max-width: 820px) { .callback { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }

/* ============ Варіантні опції товару (напр. висота гірки) ============ */
.var-group { margin: 16px 0 8px; }
.var-group__label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--ink); }
.var-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.var-tile {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  min-width: 116px; padding: 11px 16px; cursor: pointer; user-select: none;
  border: 2px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.var-tile input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.var-tile__name { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.1; }
.var-tile__price { font-size: 12.5px; color: var(--muted); }
.var-tile:hover { border-color: var(--brand); }
.var-tile.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 14px rgba(12,122,92,.12); }
.var-tile.is-active .var-tile__price { color: var(--brand-2); font-weight: 600; }
.var-select {
  display: none; width: 100%; height: auto; min-height: 50px;
  padding: 12px 40px 12px 14px; font-size: 16px; line-height: 1.3;
  border: 2px solid var(--line); border-radius: 12px; background-color: #fff;
  color: var(--ink); font-weight: 600; box-sizing: border-box;
}
#js-price { transition: opacity .18s ease; display: inline-block; }

/* мобільна: селект замість плиток */
@media (max-width: 600px) {
  .var-tiles { display: none; }
  .var-select { display: block; }
}

/* лістинги: "від" + кнопка "Детальніше" */
.prod__from { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
a.prod__more { text-decoration: none; }

/* сторінка пошуку: форма */
.search-panel { background: var(--brand-soft); border-radius: 16px; padding: 18px 20px; margin: 0 0 22px; }
.search-panel__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-panel__row .form-control { flex: 1 1 220px; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 15px; background: #fff; color: var(--ink); }
.search-panel__row select.form-control { flex: 0 1 260px; }
.search-panel__row .btn { flex: 0 0 auto; height: 46px; }
.search-panel__opts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.search-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
@media (max-width: 600px) { .search-panel__row .btn { flex: 1 1 100%; } }

/* ============================================================
   CATALOG PAGE — nashi_ploshchakdi (information_id 9)
   content-first: categories+subcategories, then text, then blocks
   ============================================================ */
.cl-page { padding-bottom: 64px; }
.cl-intro {
  max-width: 820px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 6px 0 0;
}
.cl-blk-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 44px 0 20px;
}
.cl-blk-h em { color: var(--brand); font-style: normal; }

/* category + subcategory navigator (main block) */
.catnav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
.catnav__card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.catnav__card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.catnav__top {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.catnav__thumb {
  flex: 0 0 auto;
  width: 58px; height: 58px; border-radius: 12px;
  background: var(--bg-3) center/cover no-repeat;
}
.catnav__thumb[data-empty] {
  background: var(--brand-soft);
}
.catnav__meta { flex: 1; min-width: 0; }
.catnav__name {
  display: block;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: -.01em; color: var(--ink);
  line-height: 1.2;
  transition: color .25s var(--ease);
}
.catnav__card:hover .catnav__name { color: var(--brand); }
.catnav__count { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.catnav__arrow {
  flex: 0 0 auto; color: var(--muted);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.catnav__card:hover .catnav__arrow { color: var(--brand); transform: translateX(3px); }
.catnav__subs { list-style: none; margin: 0; padding: 6px 8px 8px; }
.catnav__subs li { margin: 0; }
.catnav__subs li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink-2);
  font-size: 14.5px; line-height: 1.3;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.catnav__subs li a:hover { background: var(--brand-soft); color: var(--brand); }
.catnav__subs .s-name { flex: 1; min-width: 0; }
.catnav__subs .s-count {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line);
  min-width: 26px; text-align: center;
  padding: 1px 7px; border-radius: 999px;
}
.catnav__subs li a:hover .s-count { background: #fff; border-color: var(--brand-soft); color: var(--brand); }

/* restored text block */
.cl-doc { margin-top: 8px; }
.page-doc--info { margin-top: 18px; }
/* neutralise legacy TinyMCE table#frame so the text flows as clean prose */
.page-doc--info #frame,
.page-doc--info #frame tbody,
.page-doc--info #frame tr,
.page-doc--info #frame td { display: block; width: 100%; border: 0; padding: 0; margin: 0; }

/* why-us (compact, contained) */
.cl-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cl-feat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 20px;
}
.cl-feat__ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--brand);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.cl-feat h4 { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 6px; color: var(--ink); letter-spacing: -.01em; }
.cl-feat p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* safety (contained, light) */
.cl-safety {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  margin-top: 16px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center;
}
.cl-safety .cl-blk-h { margin: 0; }
.cl-safety__intro p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cl-safety__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cl-stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 16px;
}
.cl-stat strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; color: var(--brand); }
.cl-stat span { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }

/* callback spacing on this page */
.cl-page .callback { margin-top: 44px; }

/* responsive */
@media (max-width: 980px) {
  .cl-safety { grid-template-columns: 1fr; gap: 22px; }
  .cl-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cl-blk-h { margin: 34px 0 16px; }
  .catnav { grid-template-columns: 1fr; gap: 14px; }
  .cl-safety { padding: 22px 18px; }
  .cl-safety__stats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cl-feats { grid-template-columns: 1fr; }
}
