/* Карточка и каталог по образцу lithium-store.ru (24.09.2026), цвета GWTOOL.
   Подключается после gwtool.css. Классы — с префиксом gw-, разметка — product/gw_*.twig. */
:root {
  --gw-graphite: #242424;
  --gw-green: #74b000;
  --gw-green-dark: #4f7a00;
  --gw-line: #e3e5e1;
  --gw-muted: #6b6f68;
  --gw-bg-soft: #f5f7f2;
}

/* бейдж платформы: на фото карточки и на плитке каталога */
.gw-badge-platform {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gw-green); color: var(--gw-graphite);
  font-size: 13px; font-weight: 700; line-height: 18px; letter-spacing: .02em;
  pointer-events: none;
}

/* «фишки» — главные особенности */
.gw-features { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 28px; }
.gw-badge-platform--inline { position: static; padding: 6px 12px; font-size: 14px; }
.gw-feature {
  padding: 6px 12px; border: 1px solid var(--gw-green); border-radius: 999px;
  font-size: 14px; line-height: 18px; color: var(--gw-graphite); background: #fff;
}

/* выбор комплектации: строки «подпись — цена» */
.gw-kitlist { margin: 4px 0 20px; }
.gw-kitlist__title { font-size: 20px; font-weight: 500; line-height: 1.5; margin-bottom: 15px; }
.gw-kitlist__list { display: flex; flex-direction: column; gap: 8px; }
.gw-kitrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--gw-line); border-radius: 10px;
  color: var(--gw-graphite); text-decoration: none; background: #fff;
  transition: border-color .15s;
}
.gw-kitrow:hover { border-color: var(--gw-graphite); color: var(--gw-graphite); text-decoration: none; }
.gw-kitrow--active { border: 2px solid var(--gw-graphite); padding: 10px 13px; cursor: default; }
.gw-kitrow__label { font-size: 15px; line-height: 20px; }
.gw-kitrow__price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.gw-kitrow--active .gw-kitrow__price::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--gw-green); vertical-align: 1px;
}

/* главные характеристики рядом с кнопкой покупки */
.gw-keyspecs { margin: 20px 0 0; padding: 0; list-style: none; }
.gw-keyspecs li { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; line-height: 20px; border-bottom: 1px dashed var(--gw-line); }
.gw-keyspecs__name { color: var(--gw-muted); flex: 0 0 48%; }
.gw-keyspecs__value { color: var(--gw-graphite); }
.gw-keyspecs-more { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--gw-green-dark); }

/* ссылки «Все товары Greenworks / раздела» */
.gw-more-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gw-more-links a {
  padding: 7px 14px; border-radius: 999px; background: var(--gw-bg-soft);
  font-size: 14px; color: var(--gw-graphite); text-decoration: none;
}
.gw-more-links a:hover { background: #e9eee2; }

/* навигация по разделам карточки, прилипает при прокрутке */
.gw-tabs {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto;
  margin: 48px 0 24px; padding: 10px 0; background: #fff; border-bottom: 1px solid var(--gw-line);
  scrollbar-width: none;
}
.gw-tabs::-webkit-scrollbar { display: none; }
.gw-tabs a {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 8px; background: var(--gw-bg-soft);
  font-size: 14px; color: var(--gw-graphite); text-decoration: none; white-space: nowrap;
}
.gw-tabs a.is-active { background: var(--gw-graphite); color: #fff; }

.gw-section { scroll-margin-top: 72px; margin-bottom: 48px; }
.gw-section-title { font-size: 26px; line-height: 32px; margin: 0 0 20px; }

/* характеристики по группам, две колонки на широком экране */
.gw-specs__group { margin-bottom: 24px; }
.gw-specs__group-name { font-weight: 600; font-size: 16px; margin: 0 0 8px; }
.gw-specs__rows { display: grid; grid-template-columns: 1fr; column-gap: 48px; }
@media (min-width: 992px) { .gw-specs__rows { grid-template-columns: 1fr 1fr; } }
.gw-specs__row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--gw-line); font-size: 14px; line-height: 20px; }
.gw-specs__name { flex: 0 0 50%; color: var(--gw-muted); }
.gw-specs__value { color: var(--gw-graphite); }

/* документы */
.gw-docs__list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .gw-docs__list { grid-template-columns: 1fr 1fr; } }
.gw-doc {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--gw-line); border-radius: 12px; color: var(--gw-graphite); text-decoration: none;
}
.gw-doc:hover { border-color: var(--gw-graphite); color: var(--gw-graphite); text-decoration: none; }
.gw-doc__icon {
  flex: 0 0 44px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: #fdecea; color: #c62828; font-size: 12px; font-weight: 700;
}
.gw-doc__icon--link { background: var(--gw-bg-soft); color: var(--gw-green-dark); }
.gw-doc__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gw-doc__title { font-size: 15px; line-height: 20px; }
.gw-doc__meta { font-size: 13px; color: var(--gw-muted); }

/* панель «цена + в корзину», появляется, когда основная кнопка ушла с экрана */
.gw-stickybar { display: none; }
@media (min-width: 992px) { .gw-stickybar {
  display: flex;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  transform: translateY(110%); transition: transform .2s;
}
}
.gw-stickybar.is-visible { transform: none; }
.gw-stickybar__img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px; }
.gw-stickybar__text { flex: 1 1 auto; min-width: 0; }
.gw-stickybar__name { font-size: 14px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-stickybar__kit { font-size: 12px; color: var(--gw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-stickybar__price { font-size: 18px; font-weight: 700; white-space: nowrap; }
.gw-stickybar__btn {
  flex: 0 0 auto; padding: 11px 20px; border: 0; border-radius: 999px;
  background: var(--gw-graphite); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.gw-stickybar__btn:hover { background: #000; }
@media (max-width: 575px) {
  .gw-stickybar__img, .gw-stickybar__kit { display: none; }
  .gw-stickybar__price { font-size: 16px; }
}

/* плитка каталога: «от … ₽» и число комплектаций */
.gw-price-from { font-weight: 400; font-size: .8em; margin-right: 4px; }
.gw-kit-count { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--gw-green-dark); }

/* лента мини-карточек: аккумуляторы и зарядки, аксессуары */
.gw-section-note { margin: -8px 0 20px; color: var(--gw-muted); font-size: 15px; }
.gw-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 220px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.gw-card { position: relative; display: flex; flex-direction: column; gap: 8px; color: var(--gw-graphite); text-decoration: none; scroll-snap-align: start; }
.gw-card:hover { color: var(--gw-graphite); text-decoration: none; }
.gw-card__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; background: var(--gw-bg-soft); overflow: hidden; }
.gw-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gw-card__img .gw-badge-platform { top: 8px; left: 8px; font-size: 12px; }
.gw-card__name { font-size: 14px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gw-card:hover .gw-card__name { color: var(--gw-green-dark); }
.gw-card__price { font-weight: 700; font-size: 16px; }
.gw-card__price s { font-weight: 400; color: var(--gw-muted); font-size: 13px; margin-left: 4px; }
.gw-desc__text { max-width: 900px; font-size: 16px; line-height: 1.6; }
.gw-desc__text.is-collapsed { max-height: 400px; overflow: hidden; position: relative; }
.gw-desc__text.is-collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.gw-desc__more { margin-top: 12px; padding: 10px 18px; border: 1px solid var(--gw-graphite); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.gw-desc__more:hover { background: var(--gw-graphite); color: #fff; }

/* фильтры раздела */
.gw-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: -10px 0 32px; }
.gw-filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gw-filters__name { font-size: 14px; color: var(--gw-muted); margin-right: 2px; }
.gw-chip {
  padding: 7px 14px; border: 1px solid var(--gw-line); border-radius: 999px; background: #fff;
  font-size: 14px; line-height: 18px; color: var(--gw-graphite); text-decoration: none; white-space: nowrap;
}
.gw-chip:hover { border-color: var(--gw-graphite); color: var(--gw-graphite); text-decoration: none; }
.gw-chip.is-active { background: var(--gw-graphite); border-color: var(--gw-graphite); color: #fff; }
.gw-filters__reset { font-size: 14px; color: var(--gw-green-dark); }
@media (max-width: 767px) {
  .gw-filters { gap: 10px; }
  .gw-filters__group { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .gw-filters__group::-webkit-scrollbar { display: none; }
}

/* плитка каталога: бейдж платформы над фото, кнопка «Выбрать комплектацию» */
.product-card__slider .gw-badge-platform { z-index: 3; }
.product-card .gw-kit-count { margin: 0 0 12px; }
.product-card .gw-choose-kit { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* страница «Акции», пока акций нет */
.gw-promo-empty { margin: 8px 0 60px; padding: 32px; border-radius: 15px; background: #f8f8f8; }
.gw-promo-empty__title { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.gw-promo-empty__text { max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--gw-muted); margin: 0 0 8px; }
@media (max-width: 767px) { .gw-promo-empty { padding: 20px 16px; } }
