/* ============================================================
   ТЕМА LIEBHERR — BENTO CSS
   Акцент: #e65100
   Путь: /templates/liebherr/resource/css/bento.css
   ============================================================ */

/* ============== ПЕРЕМЕННЫЕ ============== */
:root {
  --bento-bg: #f5f5f7;
  --bento-card: #ffffff;
  --bento-text: #1d1d1f;
  --bento-muted: #6e6e73;
  --bento-accent: #e65100;
  --bento-accent-hover: #cc4800;
  --bento-accent-light: rgba(230, 81, 0, 0.06);
  --bento-glow: 0 0 40px rgba(230, 81, 0, 0.25), 0 0 80px rgba(230, 81, 0, 0.10);
  --bento-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --bento-shadow-hover: 0 2px 6px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.08);
  --bento-radius: 20px;
  --bento-radius-sm: 14px;
  --bento-gap: 20px;
}

/* ============== ОБНУЛЕНИЕ И БАЗА ============== */
.bento-product {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px var(--bento-gap) 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--bento-text);
  background: var(--bento-bg);
}

/* ============== ВЕРХНЯЯ ПОЛОСА ============== */
.bento-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 16px;
  font-size: 14px;
  color: var(--bento-muted);
}
.bento-backlink {
  color: var(--bento-accent);
  text-decoration: none;
  font-weight: 500;
}
.bento-backlink:hover {
  text-decoration: underline;
}
.bento-sku strong {
  color: var(--bento-text);
  font-weight: 600;
}

/* ============== BENTO-СЕТКА ============== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.9fr;
  gap: var(--bento-gap);
  align-items: start;
}

@media (max-width: 1199px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card--buy {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-product {
    padding: 12px 12px 40px;
  }
}

/* ============== BENTO-КАРТОЧКА (общие стили) ============== */
.bento-card {
  background: var(--bento-card);
  border-radius: var(--bento-radius);
  padding: 24px;
  box-shadow: var(--bento-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  /* Лёгкое свечение позади */
  position: relative;
}
.bento-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  background: transparent;
  transition: background 0.4s ease;
}
.bento-card:hover {
  box-shadow: var(--bento-shadow-hover);
  transform: translateY(-2px);
}
.bento-card:hover::after {
  background: var(--bento-glow);
  filter: blur(12px);
}

/* ============== ГАЛЕРЕЯ ============== */
.bento-gallery {
  border-radius: var(--bento-radius-sm);
  overflow: hidden;
}
.product-gallery-top {
  border-radius: var(--bento-radius-sm);
  overflow: hidden;
}
.product-gallery-top img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  border-radius: var(--bento-radius-sm);
}
.bento-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
}
.product-gallery-thumbs {
  flex: 1;
}
.product-gallery-thumbs .swiper-slide {
  width: 64px !important;
  height: 64px !important;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.product-gallery-thumbs .swiper-slide:hover,
.product-gallery-thumbs .swiper-slide-thumb-active {
  border-color: var(--bento-accent);
}
.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-gallery-thumbs__video {
  margin-right: 4px;
}
.bento-gallery-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--bento-accent-light);
  transition: background 0.2s;
}
.bento-gallery-video:hover {
  background: rgba(230, 81, 0, 0.12);
}

/* Стрелки Swiper */
.swiper-button-prev,
.swiper-button-next {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 12px !important;
  font-weight: 700;
  color: var(--bento-text);
}

/* ============== ЗАГОЛОВОК ============== */
.bento-header {
  margin-bottom: 20px;
}
.bento-brand {
  display: inline-block;
  margin-bottom: 12px;
}
.bento-brand img {
  max-height: 40px;
}
.bento-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  line-height: 1.2;
}
.bento-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Рейтинг */
.bento-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-stars {
  width: 80px;
  height: 16px;
  background: #e0e0e0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.rating-stars__act {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--bento-accent);
  border-radius: 4px;
}
.bento-rating__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--bento-muted);
  text-decoration: none;
}
.bento-rating__ball {
  font-weight: 700;
  color: var(--bento-text);
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* Метки */
.bento-labels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bento-label {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
}

/* ============== КОМПЛЕКТАЦИИ ============== */
.bento-offers {
  margin-bottom: 20px;
}

/* ============== ХАРАКТЕРИСТИКИ (краткие) ============== */
.bento-specs__block {
  background: var(--bento-accent-light);
  border-radius: var(--bento-radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.bento-specs__heading {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--bento-accent);
}
.bento-specs__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  font-size: 14px;
}
.bento-specs__label {
  color: var(--bento-muted);
  flex-shrink: 0;
  margin-right: 12px;
}
.bento-specs__value {
  text-align: right;
  font-weight: 500;
}
.bento-specs__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bento-accent);
  text-decoration: none;
}
.bento-specs__more:hover {
  text-decoration: underline;
}
.bento-short-desc {
  font-size: 14px;
  color: var(--bento-muted);
  line-height: 1.6;
}
.bento-popover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0e0e0;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  margin-left: 4px;
}

/* ============== ТАБЫ ============== */
.bento-tabs {
  margin-top: 28px;
}
.bento-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  background: #f0f0f0;
  border-radius: var(--bento-radius-sm);
  padding: 6px;
}
.bento-tabs__item {
  margin: 0;
}
.bento-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bento-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.bento-tabs__link:hover {
  color: var(--bento-text);
  background: rgba(255,255,255,0.7);
}
.bento-tabs__link.active {
  background: white;
  color: var(--bento-accent);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bento-tabs__badge {
  background: var(--bento-accent-light);
  color: var(--bento-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.bento-tabs__pane {
  display: none;
}
.bento-tabs__pane.show,
.bento-tabs__pane.active {
  display: block;
}
.bento-article {
  font-size: 15px;
  line-height: 1.7;
}
.bento-article img {
  max-width: 100%;
  border-radius: var(--bento-radius-sm);
}

/* ============== ФАЙЛЫ ============== */
.bento-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fafafa;
  border-radius: var(--bento-radius-sm);
  margin-bottom: 8px;
}
.bento-file__size {
  color: var(--bento-muted);
  font-size: 13px;
  margin-left: 8px;
}
.bento-file__desc {
  font-size: 13px;
  color: var(--bento-muted);
  margin-top: 4px;
}
.bento-file__dl {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.bento-file__dl:hover {
  transform: scale(1.1);
}

/* ============== СКЛАДЫ ============== */
.bento-stock {
  border-radius: var(--bento-radius-sm);
  overflow: hidden;
  border: 1px solid #eee;
}
.bento-stock__head {
  display: grid;
  grid-template-columns: 1fr 140px 120px 160px;
  gap: 8px;
  padding: 14px 18px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: var(--bento-muted);
}
.bento-stock__row {
  display: grid;
  grid-template-columns: 1fr 140px 120px 160px;
  gap: 8px;
  padding: 14px 18px;
  font-size: 14px;
  border-top: 1px solid #f0f0f0;
  align-items: center;
}
.bento-stock__row.rs-warehouse-empty {
  opacity: 0.5;
}
.bento-stock__more {
  color: var(--bento-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.bento-stock__more:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .bento-stock__head,
  .bento-stock__row {
    grid-template-columns: 1fr 100px 80px;
  }
  .bento-stock__head > *:last-child,
  .bento-stock__row > *:last-child {
    display: none;
  }
}

/* ============== БЛОК ПОКУПКИ ============== */
.bento-card--buy {
  position: sticky;
  top: 20px;
}
.bento-buy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Цена */
.bento-price__status {
  font-size: 14px;
  color: var(--bento-muted);
  margin-bottom: 4px;
}
.bento-price__main {
  margin-bottom: 6px;
}
.bento-price__new {
  font-size: 32px;
  font-weight: 800;
  color: var(--bento-accent);
  letter-spacing: -1px;
  line-height: 1;
}
.bento-price__new .rs-price-new {
  text-shadow: 0 0 20px rgba(230, 81, 0, 0.3);
}
.bento-price__unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--bento-muted);
}
.bento-price__old {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-top: 4px;
}
.bento-price__nds {
  font-size: 13px;
  color: var(--bento-muted);
}

/* ============== КНОПКИ ============== */
.bento-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Главная кнопка */
.bento-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--bento-radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.25s ease;
  white-space: normal;
  text-align: center;
}
.bento-btn--primary {
  background: var(--bento-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230, 81, 0, 0.35);
  font-size: 16px;
  padding: 16px 28px;
}
.bento-btn--primary:hover {
  background: var(--bento-accent-hover);
  box-shadow: 0 6px 28px rgba(230, 81, 0, 0.5);
  transform: translateY(-1px);
}

/* Вторичная кнопка */
.bento-btn--outline {
  background: white;
  color: var(--bento-accent);
  border: 2px solid var(--bento-accent);
}
.bento-btn--outline:hover {
  background: var(--bento-accent-light);
  border-color: var(--bento-accent-hover);
  color: var(--bento-accent-hover);
}

/* Ghost-кнопка (Нашли дешевле) */
.bento-btn--ghost {
  background: #fafafa;
  color: var(--bento-text);
  border: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px;
  gap: 8px;
}
.bento-btn--ghost:hover {
  background: #fff;
  border-color: var(--bento-accent);
  color: var(--bento-accent);
  box-shadow: var(--bento-glow);
}

/* Иконки-кнопки (избранное, сравнение) */
.bento-actions__secondary {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}
.bento-icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bento-muted);
  background: #f5f5f7;
  text-decoration: none;
  transition: all 0.2s;
}
.bento-icon-btn:hover,
.bento-icon-btn.rs-in-favorite,
.bento-icon-btn.rs-in-compare {
  color: var(--bento-accent);
  background: var(--bento-accent-light);
}

/* Информация о наличии */
.bento-stock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0fdf4;
  border-radius: 10px;
  font-size: 14px;
}
.bento-stock-info a {
  color: #16a34a;
  text-decoration: none;
  font-weight: 500;
}
.bento-stock-info a:hover {
  text-decoration: underline;
}

/* Блок доверия */
.bento-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fafafa;
  border-radius: var(--bento-radius-sm);
}
.bento-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bento-muted);
}
.bento-trust__item svg {
  flex-shrink: 0;
  color: var(--bento-accent);
}

/* ============== СОПУТСТВУЮЩИЕ ============== */
.bento-concomitant {
  margin-top: var(--bento-gap);
}

/* ============== МОДАЛКА ВИДЕО ============== */
.bento-modal {
  border-radius: var(--bento-radius) !important;
  overflow: hidden;
  background: transparent !important;
}
.bento-modal iframe {
  border-radius: var(--bento-radius);
}

/* ============== ПЕРЕОПРЕДЕЛЕНИЕ RS-КЛАССОВ ============== */
.rs-product .swiper-button-prev,
.rs-product .swiper-button-next {
  color: var(--bento-text) !important;
}
.availability-indicator__point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  display: inline-block;
  margin-right: 3px;
}
.availability-indicator__point_act {
  background: #16a34a;
}
.availability-indicator__not {
  font-size: 12px;
  color: #999;
}

