/* Раздел «Техника»: генерируется parse_tehnika.py (scraper/site.py), правки вносить туда */

/* Рамка фото — квадрат, прибор по низу, одинаковые отступы со всех сторон (12%) */
.kg-photo { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.kg-stage {
  position: absolute; inset: 12%;
  display: flex; align-items: flex-end; justify-content: center;
}
.kg-stage img {
  display: block; max-width: 100%; max-height: 100%; height: auto;
  object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%;
}
.kg-fill { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Карусель на странице товара */
.kg-viewport { position: relative; outline: none; }
.kg-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.kg-track::-webkit-scrollbar { display: none; }
.kg-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.kg-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,10,10,0.35); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 0.4s ease, background-color 0.4s ease; cursor: pointer;
}
.kg-nav:hover { background: rgba(10,10,10,0.6); }
.kg-nav svg { width: 18px; height: 18px; }
.kg-prev { left: 16px; }
.kg-next { right: 16px; }
@media (max-width: 767px) {
  .kg-viewport .kg-nav { width: 34px; height: 34px; }
  .kg-viewport .kg-nav svg { width: 14px; height: 14px; }
  .kg-viewport .kg-prev { left: 6px; }
  .kg-viewport .kg-next { right: 6px; }
}
.kg-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .kg-viewport .kg-nav:not(:disabled) { opacity: 0; }
  .kg-viewport:hover .kg-nav:not(:disabled), .kg-nav:focus-visible { opacity: 1; }
}
.kg-count {
  position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.85); color: #0a0a0a; pointer-events: none;
}
.kg-count b { font-weight: 400; }
/* миниатюры — одна лента по 6 в ряд, остальные прокручиваются (у Graude бывает 16 фото) */
.kg-thumbs {
  display: flex; gap: 8px; margin-top: 8px; overflow-x: auto;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.kg-thumbs::-webkit-scrollbar { display: none; }
.kg-thumb {
  flex: 0 0 calc((100% - 40px) / 6); scroll-snap-align: start;
  padding: 0; background: none; border: 1px solid transparent; cursor: pointer;
  opacity: 0.5; transition: opacity 0.4s ease, border-color 0.4s ease;
}
.kg-thumb:hover { opacity: 0.85; }
.kg-thumb.is-active { opacity: 1; border-color: rgba(255,255,255,0.7); }

/* Фото на странице товара: квадратная рамка, отступ 12% со всех сторон.
   Масштаб подобран так, что 600-мм духовой шкаф заполняет рамку до отступов.
   Ширина ограничена, чтобы фото с миниатюрами помещались в экран по высоте */
.kg-media { width: 100%; max-width: max(320px, calc((100vh - 260px) / 1.17)); }
.kg-carousel .kg-photo { aspect-ratio: 1 / 1; }
.kg-carousel .kg-stage { inset: 12%; }
.kg-crumbs { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
@media (min-width: 1024px) { .kg-info { padding-top: 62px; } }

/* Стрелка «назад»: под логотипом, острие — по левому краю контента (и фото товара) */
.kg-back {
  display: inline-block; margin-bottom: 28px; color: rgba(255,255,255,0.7);
  transition: color 0.5s ease, transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.kg-back svg { display: block; width: 48px; height: 12px; overflow: visible; }
.kg-back path { fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.kg-back:hover { color: #fff; transform: translateX(-6px); }

/* Значки «сравнить» и «в избранное»: линия как у рамки кнопки «Отправить проект на расчёт»,
   при наведении заливаются белым снизу вверх, после нажатия — тёмно-красные */
.kg-actions { display: flex; align-items: flex-end; gap: 20px; }
.kg-toggle {
  position: relative; display: inline-block; flex-shrink: 0;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: rgba(255,255,255,0.7); transition: color 0.5s ease;
}
.kg-fav { width: 24px; height: 22px; }
.kg-compare { width: 19px; height: 18px; }
.kg-toggle-line, .kg-toggle-fill { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.kg-toggle-fill { height: 0; overflow: hidden; transition: height 0.5s cubic-bezier(0.4,0,0.2,1); }
.kg-toggle svg { position: absolute; left: 0; bottom: 0; display: block; overflow: visible; }
.kg-fav svg { width: 24px; height: 22px; }
.kg-compare svg { width: 19px; height: 18px; }
.kg-toggle path { stroke-width: 1; stroke-linejoin: miter; transition: fill 0.5s ease, stroke 0.5s ease; }
.kg-toggle-line path { fill: none; stroke: currentColor; }
.kg-toggle-fill path { fill: #fff; stroke: #fff; }
.kg-toggle:hover .kg-toggle-fill, .kg-toggle:focus-visible .kg-toggle-fill { height: 100%; }
.kg-toggle:focus { outline: none; }
.kg-toggle.is-on { color: #9b1b30; }
.kg-toggle.is-on .kg-toggle-fill { height: 100%; }
.kg-toggle.is-on .kg-toggle-fill path { fill: #9b1b30; stroke: #9b1b30; }
.kg-toggle.is-pop { animation: kg-pop 0.5s cubic-bezier(0.3,1.6,0.5,1); transform-origin: 50% 100%; }
@keyframes kg-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Сравнение и избранное в шапке */
.kg-head-link { position: relative; display: inline-block; color: rgba(255,255,255,0.8); transition: opacity 0.3s ease; }
.kg-head-link:hover { opacity: 0.6; }
.kg-head-link svg { display: block; overflow: visible; }
.kg-head-fav svg { width: 20px; height: 18px; }
.kg-head-compare svg { width: 16px; height: 15px; }
.kg-head-link path { fill: none; stroke: currentColor; stroke-width: 1; }
.kg-count-badge {
  position: absolute; top: -7px; right: -10px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: #9b1b30; color: #fff;
  font-size: 9px; line-height: 15px; text-align: center; font-weight: 400;
}
.kg-count-badge[hidden] { display: none; }

/* Избранное: карточка с сердечком поверх фото */
.kg-fav-card { position: relative; transition: opacity 0.4s ease; }
.kg-fav-card .kg-toggle { position: absolute; top: 16px; right: 16px; z-index: 2; }

/* Сравнение: тумблер, вкладки разделов, таблица с колонками товаров */
.kg-cmp-tabs { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 36px; }
.kg-cmp-tabs[hidden] { display: none; }
.kg-cmp-tab {
  padding: 0 0 6px; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer;
  color: rgba(255,255,255,0.45); transition: color 0.4s ease, border-color 0.4s ease;
}
.kg-cmp-tab:hover { color: #fff; }
.kg-cmp-tab.is-active { color: #fff; border-color: rgba(255,255,255,0.7); }
.kg-cmp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.kg-cmp-clear { padding: 0; border: 0; background: none; cursor: pointer; transition: color 0.4s ease; }
.kg-cmp-clear:hover { color: #fff; }
.kg-switch { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; }
.kg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.kg-switch-track {
  position: relative; width: 36px; height: 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4); transition: border-color 0.4s ease, background-color 0.4s ease;
}
.kg-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.7); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), background-color 0.4s ease;
}
.kg-switch input:checked + .kg-switch-track { border-color: #9b1b30; background: #9b1b30; }
.kg-switch input:checked + .kg-switch-track::after { transform: translateX(18px); background: #fff; }
.kg-switch input:focus-visible + .kg-switch-track { outline: 1px solid rgba(255,255,255,0.6); outline-offset: 3px; }
.kg-cmp-scroll { overflow-x: auto; border-top: 1px solid rgba(255,255,255,0.1); }
.kg-cmp-table { border-collapse: collapse; table-layout: fixed; min-width: 100%; }
.kg-cmp-table th, .kg-cmp-table td {
  width: 260px; min-width: 220px; padding: 14px 20px 14px 0; vertical-align: top; text-align: left;
  font-weight: 300; font-size: 14px; line-height: 1.6; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.kg-cmp-table .kg-cmp-label {
  position: sticky; left: 0; z-index: 1; width: 220px; background: #000; color: rgba(255,255,255,0.45);
}
.kg-cmp-table td { color: rgba(255,255,255,0.9); }
.kg-cmp-table tr.is-diff td { color: #fff; }
.kg-cmp-table .kg-cmp-group th {
  padding-top: 36px; color: rgba(255,255,255,0.4); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.kg-cmp-table thead th { padding: 28px 20px 28px 0; border-bottom-color: rgba(255,255,255,0.2); color: #fff; }
.kg-cmp-card { position: relative; display: block; }
.kg-cmp-card .kg-photo { width: 180px; max-width: 100%; margin-bottom: 18px; }
.kg-cmp-remove {
  position: absolute; top: 8px; left: 144px; z-index: 2; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(10,10,10,0.06); color: #0a0a0a; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease;
}
.kg-cmp-remove:hover { background: rgba(10,10,10,0.15); }
.kg-cmp-remove svg { width: 12px; height: 12px; }
.kg-cmp-name { display: block; font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.kg-cmp-name:hover { opacity: 0.7; }
.kg-cmp-price { display: block; font-size: 14px; color: rgba(255,255,255,0.6); }
.kg-cmp-note { padding: 24px 0; color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 300; }
@media (max-width: 767px) {
  .kg-cmp-table th, .kg-cmp-table td { width: 180px; min-width: 160px; }
  .kg-cmp-table .kg-cmp-label { width: 130px; min-width: 130px; font-size: 13px; }
}

/* Цена: при скидке рядом перечёркнутая цена без скидки, приглушённая и чуть мельче */
.kg-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.7em; row-gap: 2px; }
.kg-price-old {
  font-size: 0.8em; color: rgba(255,255,255,0.4);
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.kg-price-lg .kg-price-old { font-size: 0.6em; }

/* Документы */
.kg-docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .kg-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .kg-docs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kg-doc { display: flex; gap: 16px; align-items: flex-start; }
.kg-doc-icon { position: relative; flex: 0 0 30px; height: 38px; color: #a3a3a3; transition: color 0.4s ease; }
.kg-doc-icon svg { display: block; width: 30px; height: 38px; overflow: visible; }
.kg-doc-icon path { fill: none; stroke: currentColor; stroke-width: 1; }
.kg-doc-icon span { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-size: 8px; letter-spacing: 0.1em; }
.kg-doc-title { display: block; transition: opacity 0.4s ease; }
.kg-doc:hover .kg-doc-icon { color: #0a0a0a; }
.kg-doc:hover .kg-doc-title { opacity: 0.6; }

/* Ранее вы смотрели */
.kg-recent { padding: 64px 0 72px; }
.kg-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.kg-recent-nav { display: flex; gap: 8px; }
.kg-recent-nav .kg-nav { position: static; transform: none; }
.kg-recent-nav[hidden] { display: none; }
.kg-recent-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.kg-recent-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .kg-recent-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1024px) { .kg-recent-track { grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; } }
.kg-recent-item {
  display: flex; gap: 20px; align-items: center; padding: 12px; scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.1); transition: border-color 0.5s ease;
}
.kg-recent-item:hover { border-color: rgba(255,255,255,0.3); }
.kg-recent-pic { position: relative; flex: 0 0 96px; aspect-ratio: 1 / 1; background: #fff; }
.kg-recent-pic img {
  position: absolute; inset: 12%; width: 76%; height: 76%;
  object-fit: contain; object-position: 50% 100%;
}
.kg-recent-text { min-width: 0; }
.kg-recent-name {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.5;
}
.kg-recent-price { display: block; margin-top: 8px; }

/* Комплектующие: фото с отступами, название и количество.
   Фото у поставщика — белые предметы на прозрачном фоне, поэтому подложка не белая */
.kg-acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
@media (min-width: 768px) { .kg-acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .kg-acc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kg-acc {
  aspect-ratio: 4 / 3; background: #ebe8e3; padding: 10%; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.kg-acc img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Свёрнутые разделы «Функции» и «Технические характеристики» */
.kg-spoiler > summary { padding: 40px 0; }
.kg-spoiler > summary h2 { transition: opacity 0.4s ease; }
.kg-spoiler > summary:hover h2 { opacity: 0.6; }
.kg-spoiler-body { padding: 16px 0 80px; }
@media (min-width: 768px) {
  .kg-spoiler > summary { padding: 56px 0; }
  .kg-spoiler-body { padding-bottom: 112px; }
}

/* Просмотр на весь экран */
.kg-lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.96); }
.kg-lb .kg-track { height: 100%; }
.kg-lb .kg-slide {
  display: flex; align-items: center; justify-content: center;
  padding: 72px 16px 56px; cursor: default;
}
.kg-lb img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }  /* PNG без фона — на белом */
.kg-lb .kg-cut { background: #fff; padding: 6vmin; }
.kg-lb .kg-nav { opacity: 1; }
.kg-lb-close { top: 20px; right: 16px; transform: none; }
.kg-lb .kg-count { left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); }
@media (min-width: 768px) {
  .kg-lb .kg-slide { padding: 72px 96px 64px; }
  .kg-lb .kg-prev { left: 32px; }
  .kg-lb .kg-next { right: 32px; }
  .kg-lb-close { right: 32px; }
}

/* ===== Магазин: поиск, фильтры, корзина, цвета, логотипы (scraper/assets/shop.css) ===== */

/* Шапка: поиск и корзина — той же линией, что сердечко и сравнение */
.kg-head-search { padding: 0; border: 0; background: none; cursor: pointer; }
.kg-head-search svg { width: 17px; height: 17px; }
.kg-head-cart svg { width: 16px; height: 18px; }
.kg-head-link path { stroke-linejoin: miter; }
/* на узком экране в шапке пять значков: сдвигаем их плотнее, логотип чуть меньше */
@media (max-width: 480px) {
  header .gap-5 { gap: 14px; }
  header .logo-chip { padding: 2px 12px; }
  header .logo-chip img { height: 30px; }
}

/* Панель поиска под шапкой */
.kg-search {
  position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 100px 16px 24px; overflow-y: auto;
}
.kg-search[hidden] { display: none; }
.kg-search-box { max-width: 880px; margin: 0 auto; }
.kg-search-form {
  position: relative; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.35); padding: 0 0 12px;
}
.kg-search-form > svg { flex: 0 0 18px; width: 18px; height: 18px; overflow: visible; color: rgba(255,255,255,0.6); }
.kg-search-form path { fill: none; stroke: currentColor; stroke-width: 1; }
.kg-search-input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff;
  font-size: 22px; font-weight: 300; letter-spacing: 0.01em; padding: 6px 0;
}
.kg-search-input::placeholder { color: rgba(255,255,255,0.3); }
.kg-search-input::-webkit-search-cancel-button { display: none; }
.kg-search-close { width: 28px; height: 28px; padding: 6px; border: 0; background: none; color: rgba(255,255,255,0.7); cursor: pointer; }
.kg-search-close svg { width: 100%; height: 100%; }
.kg-search-inline { max-width: 720px; }
.kg-search-inline .kg-search-input { font-size: 18px; }
@media (max-width: 767px) { .kg-search-input { font-size: 17px; } .kg-search { padding-top: 88px; } }

/* Подсказки поиска */
.kg-suggest { margin-top: 8px; }
.kg-suggest:empty { display: none; }
.kg-suggest-head {
  display: block; margin: 22px 0 8px; font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 300;
}
.kg-suggest-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-suggest-chip {
  display: inline-block; padding: 7px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.85); transition: border-color 0.3s ease, background-color 0.3s ease;
}
.kg-suggest-chip:hover, .kg-suggest-chip.is-active { border-color: rgba(255,255,255,0.7); }
.kg-suggest-chip b { font-weight: 300; color: rgba(255,255,255,0.4); margin-left: 6px; }
.kg-suggest-item {
  display: flex; align-items: center; gap: 16px; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.3s ease;
}
.kg-suggest-item:hover, .kg-suggest-item.is-active { background: rgba(255,255,255,0.06); }
.kg-suggest-pic { position: relative; flex: 0 0 56px; height: 56px; background: #fff; }
.kg-suggest-pic img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.kg-suggest-pic .kg-logo-img { inset: 25% 15%; width: 70%; height: 50%; }
.kg-suggest-text { flex: 1; min-width: 0; }
.kg-suggest-name { display: block; font-size: 14px; font-weight: 300; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-suggest-meta { display: block; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 4px; }
.kg-suggest-price { flex-shrink: 0; font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.7); }
.kg-suggest-all {
  display: inline-block; margin-top: 22px; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 4px;
}
.kg-suggest-empty { padding: 22px 0 0; font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); }
mark.kg-hl { background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }

/* Логотипы брендов: на тёмном фоне — белым силуэтом, в рамке без фото — серым */
.kg-logo { display: block; height: 40px; width: auto; max-width: 78%; object-fit: contain; object-position: left center;
  filter: brightness(0) invert(1); opacity: 0.85; transition: opacity 0.5s ease; }
.kg-brand-tile { padding: 44px 40px 36px; justify-content: space-between; min-height: 190px; }
.kg-brand-tile:hover .kg-logo { opacity: 1; }
.kg-logo[src*="vzug."] { height: 58px; }   /* у V-ZUG логотип — квадратный значок, ему нужно больше высоты */
.kg-brand-head { margin-bottom: 28px; }
.kg-brand-head .kg-logo { height: 48px; }
.kg-nophoto { background: #fff; }
.kg-logo-ph { position: absolute; inset: 22%; display: flex; align-items: center; justify-content: center; }
.kg-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.3; }
.kg-photo .kg-stage .kg-logo-img { position: absolute; inset: 20%; width: 60%; height: 60%; margin: auto; }
.kg-recent-pic .kg-logo-img { inset: 25% 15%; width: 70%; height: 50%; }
.kg-logo-ph-text { color: #b5b5b5; font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }

/* Кнопки */
.kg-btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 40px; border: 1px solid #fff; background: #fff; color: #0a0a0a; cursor: pointer;
  font-size: 12px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.kg-btn-solid:hover { background: transparent; color: #fff; }
.kg-btn-solid.is-in { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.kg-btn-solid:disabled { opacity: 0.5; cursor: default; }
.kg-buy { display: flex; flex-wrap: wrap; gap: 12px; }
.kg-buy .kg-btn-solid { min-width: 220px; }

/* Цвета модели на странице товара */
.kg-variants { margin: -16px 0 36px; }
.kg-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.kg-swatch, .kg-dot {
  position: relative; display: inline-block; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.kg-swatch { width: 30px; height: 30px; padding: 0; border: 0; cursor: pointer; }
.kg-swatch::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.kg-swatch:hover::after { border-color: rgba(255,255,255,0.35); }
.kg-swatch.is-active::after { border-color: #fff; }
.kg-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 4px; }
.kg-dot { width: 12px; height: 12px; }
.kg-dot-more { font-size: 11px; color: rgba(255,255,255,0.45); margin-left: 2px; }

/* Карточка в списке: ссылка и «В корзину» внутри одной рамки */
.kg-card {
  position: relative; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.5s ease;
}
.kg-card:hover { border-color: rgba(255,255,255,0.3); }
.kg-card[hidden] { display: none; }
.kg-card-link { display: block; flex: 1; }
.kg-card-foot { padding-top: 6px; }
.kg-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kg-price-ask { color: rgba(255,255,255,0.5); }
.kg-cart-btn {
  display: inline-block; padding: 0 0 4px; border: 0; border-bottom: 1px solid rgba(255,255,255,0.5); background: none;
  color: #fff; cursor: pointer; font-size: 11px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.kg-cart-btn:hover { border-color: #fff; }
.kg-cart-btn.is-in { color: rgba(255,255,255,0.6); border-color: transparent; }

/* Список с фильтрами */
.kg-listing { position: relative; }
.kg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; }
.kg-chips:empty { display: none; }
.kg-chip {
  padding: 9px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; background: none; color: rgba(255,255,255,0.8);
  font-size: 13px; font-weight: 300; cursor: pointer; transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.kg-chip:hover { border-color: rgba(255,255,255,0.6); }
.kg-chip.is-on { background: #fff; color: #0a0a0a; border-color: #fff; }
.kg-chip b { font-weight: 300; opacity: 0.5; margin-left: 6px; }
.kg-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px;
}
.kg-filters-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.kg-filters-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #9b1b30; color: #fff;
  font-size: 10px; line-height: 18px; letter-spacing: 0; text-align: center; }
.kg-filters-n[hidden] { display: none; }
.kg-sort { display: inline-flex; align-items: center; gap: 10px; }
.kg-sort select {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 8px 30px 8px 12px;
  font: inherit; letter-spacing: 0.12em; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.kg-sort select option { background: #000; color: #fff; }
.kg-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.kg-active:empty { display: none; }
.kg-active button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.25);
  background: none; color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 300; cursor: pointer; transition: border-color 0.3s ease;
}
.kg-active button:hover { border-color: #fff; }
.kg-active button svg { width: 9px; height: 9px; }
.kg-active .kg-active-reset { border-color: transparent; color: rgba(255,255,255,0.5); text-decoration: underline; text-underline-offset: 3px; }

.kg-listing-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.kg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; }
@media (min-width: 640px) { .kg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .kg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Фильтры: на широком экране — колонка слева, на телефоне — выезжающая панель */
.kg-filters { display: none; }
.kg-filters-head, .kg-filters-foot { display: none; }
.kg-listing.no-filters .kg-filters, .kg-listing.no-filters .kg-filters-btn { display: none !important; }
@media (min-width: 1024px) {
  .kg-listing-body { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
  .kg-listing.no-filters .kg-listing-body { grid-template-columns: minmax(0, 1fr); }
  .kg-filters { display: block; position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto;
    scrollbar-width: thin; padding-right: 8px; }
  .kg-filters-btn { display: none; }
}
@media (max-width: 1023px) {
  .kg-filters.is-open {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 60; background: #000; padding: 20px 20px 0;
  }
  .kg-filters.is-open .kg-filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1); }
  .kg-filters.is-open .kg-filters-body { flex: 1; overflow-y: auto; }
  .kg-filters.is-open .kg-filters-foot { display: flex; align-items: center; gap: 24px; padding: 16px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.1); }
  .kg-filters.is-open .kg-filters-foot .kg-btn-solid { flex: 1; }
}
.kg-filters-close { width: 32px; height: 32px; padding: 9px; border: 0; background: none; color: #fff; cursor: pointer; }
.kg-filters-close svg { width: 100%; height: 100%; }
.kg-reset { padding: 0; border: 0; background: none; cursor: pointer; }

.kg-facet { border-bottom: 1px solid rgba(255,255,255,0.1); }
.kg-facet > summary {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 0;
  font-size: 11px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.kg-facet > summary::after { content: '+'; font-size: 18px; color: rgba(255,255,255,0.4); transition: transform 0.3s ease; letter-spacing: 0; }
.kg-facet[open] > summary::after { transform: rotate(45deg); }
.kg-facet-body { padding: 0 0 18px; }
.kg-check {
  display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer;
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.85); user-select: none;
}
.kg-check input { position: absolute; opacity: 0; pointer-events: none; }
.kg-check-box {
  position: relative; flex: 0 0 16px; height: 16px; border: 1px solid rgba(255,255,255,0.35); transition: border-color 0.3s ease, background-color 0.3s ease;
}
.kg-check-box::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #0a0a0a;
  border-width: 0 1px 1px 0; transform: rotate(45deg); opacity: 0;
}
.kg-check input:checked + .kg-check-box { background: #fff; border-color: #fff; }
.kg-check input:checked + .kg-check-box::after { opacity: 1; }
.kg-check input:focus-visible + .kg-check-box { outline: 1px solid rgba(255,255,255,0.6); outline-offset: 2px; }
.kg-check:hover .kg-check-box { border-color: rgba(255,255,255,0.8); }
.kg-check-n { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.35); }
.kg-check.is-zero { color: rgba(255,255,255,0.3); }
.kg-check .kg-dot { width: 14px; height: 14px; flex-shrink: 0; }
.kg-facet-more { margin-top: 8px; padding: 0; border: 0; background: none; color: rgba(255,255,255,0.5); cursor: pointer;
  font-size: 12px; font-weight: 300; text-decoration: underline; text-underline-offset: 3px; }
.kg-range { display: flex; align-items: center; gap: 10px; }
.kg-range input {
  width: 100%; min-width: 0; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff;
  padding: 9px 10px; font-size: 14px; font-weight: 300; outline: none; transition: border-color 0.3s ease; -moz-appearance: textfield;
}
.kg-range input::-webkit-outer-spin-button, .kg-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kg-range input:focus { border-color: rgba(255,255,255,0.7); }
.kg-range input::placeholder { color: rgba(255,255,255,0.3); }
.kg-range span { color: rgba(255,255,255,0.3); }
.kg-facet-bool { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* Корзина */
.kg-cart { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.kg-cart[hidden] { display: none; }
@media (min-width: 1024px) { .kg-cart { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.kg-cart-side { position: relative; }
@media (min-width: 1024px) { .kg-cart-side { position: sticky; top: 96px; } }
.kg-cart-sum { border: 1px solid rgba(255,255,255,0.15); padding: 32px 28px; }
.kg-cart-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); transition: opacity 0.3s ease;
}
.kg-cart-row:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 768px) { .kg-cart-row { grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; } }
.kg-cart-pic { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.kg-cart-pic img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; object-position: 50% 100%; }
.kg-cart-pic .kg-logo-img { inset: 30% 15%; width: 70%; height: 40%; object-position: 50% 50%; }
.kg-cart-name { display: block; font-size: 16px; font-weight: 300; line-height: 1.5; margin-bottom: 6px; transition: opacity 0.3s ease; }
.kg-cart-name:hover { opacity: 0.7; }
.kg-cart-color { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.kg-cart-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; grid-column: 2; }
@media (min-width: 768px) { .kg-cart-controls { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.kg-qty { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.2); }
.kg-qty button { width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 16px; font-weight: 300; cursor: pointer; transition: background-color 0.3s ease; }
.kg-qty button:hover { background: rgba(255,255,255,0.08); }
.kg-qty button:disabled { opacity: 0.3; cursor: default; background: none; }
.kg-qty span { min-width: 32px; text-align: center; font-size: 14px; font-weight: 300; }
.kg-cart-line { font-size: 16px; font-weight: 300; white-space: nowrap; }
.kg-cart-remove { padding: 0; border: 0; background: none; color: rgba(255,255,255,0.45); cursor: pointer; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 300; transition: color 0.3s ease; }
.kg-cart-remove:hover { color: #fff; }
.kg-order { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.kg-order .form-input { width: 100%; }
.kg-order .kg-btn-solid { margin-top: 8px; }
.kg-order .is-error { border-color: #c4475c; }
.kg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kg-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.kg-consent input { margin-top: 3px; accent-color: #fff; }
.kg-consent.is-error { color: #e07a8a; }
.kg-msg-ok { color: rgba(255,255,255,0.85); }
.kg-msg-err { color: #e07a8a; }
/* утилиты, которых нет в собранном tailwind.css */
.items-baseline { align-items: baseline; }
.mt-6 { margin-top: 1.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mb-20 { margin-bottom: 5rem; }
.text-\[12px\] { font-size: 12px; }

/* Уведомление «Добавлено в корзину» */
.kg-toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 16px;
  max-width: calc(100vw - 32px); padding: 14px 18px; background: #fff; color: #0a0a0a;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4); transform: translateY(20px); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease; pointer-events: none;
}
.kg-toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.kg-toast-pic { position: relative; flex: 0 0 48px; height: 48px; }
.kg-toast-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.kg-toast-text { min-width: 0; font-size: 13px; font-weight: 300; line-height: 1.4; }
.kg-toast-text b { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 2px; }
.kg-toast a { flex-shrink: 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid #0a0a0a; padding-bottom: 2px; }
