@charset "UTF-8";
/* =====================================================
   cat_product-card.css — Горизонтальная карточка товара
   Путь: /css2/cat_product-card.css
   Группа конфигуратора: css_каталоги (2-й в группе)
   Версия: 2.1 — modern card design, shadows, cleaner hover
   ===================================================== */

/* ═══ СПИСОК ТОВАРОВ ═══ */

.list-goods {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.list-goods__product {
  list-style-type: none;
  border-radius: 12px;
}

.product-preview { display: grid; }

/* ═══ LAYOUT: ПОЛНАЯ КАРТОЧКА ═══ */

.product-preview_horizontal {
  grid-template-columns: 180px minmax(auto, 160px) max-content minmax(auto, auto) 1fr 300px;
  grid-template-rows: minmax(28px, min-content) min-content min-content min-content;
  grid-template-areas:
    "foto price type name list list"
    "foto price specifications specifications specifications discription"
    "foto price specifications specifications specifications full";
  gap: 1px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(50, 70, 120, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.product-preview_horizontal:hover {
  box-shadow: 0 4px 16px rgba(50, 70, 120, 0.15);
  transform: translateY(-1px);
}

/* LAYOUT: БЕЗ ХАРАКТЕРИСТИК */
.product-preview_without-characteristics {
  grid-template-columns: 180px minmax(auto, 160px) auto minmax(min-content, 1fr);
  grid-template-rows: min-content min-content min-content;
  grid-template-areas:
    "foto price type name"
    "foto price discription discription"
    "foto price full full";
  gap: 1px;
  background: #fff;
}

/* ═══ НАЗВАНИЕ ═══ */

.product-preview__a-name {
  text-decoration: none;
  color: #3a5894;
  grid-area: name;
  height: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  background: #f0f4ff;
  transition: background 0.2s ease;
}
.product-preview__a-name:hover {
  color: #5e7de1;
  background: #e4ebff;
}

.product-preview__name-item {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  padding: 0;
}

/* ═══ ТИП ТОВАРА ═══ */

.product-preview__type {
  margin: 0;
  display: flex;
  align-items: center;
  color: #5a6a88;
  grid-area: type;
  font-size: 13px;
  height: 100%;
  padding: 0 10px;
  background: #e8edff;
  max-width: 200px;
  font-weight: 500;
}

/* ═══ ТЕГИ ХАРАКТЕРИСТИК ═══ */

.product-preview__value-characteristics-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style-type: none;
  color: #00891a;
  text-transform: lowercase;
  grid-area: list;
  font-size: 12px;
  width: 100%;
  background: #f0f4ff;
  font-style: italic;
  font-weight: 600;
}

.product-preview__value-characteristic-li { padding: 0 0 0 8px; }
.product-preview__value-characteristic-li::after { content: ","; }
.product-preview__value-characteristic-li:last-child { padding-right: 15px; }
.product-preview__value-characteristic-li:last-child::after { content: ""; }

.product-preview__decor {
  background: #f0f4ff;
  grid-area: list;
}

/* ═══ ФОТО ═══ */

.product-preview__picture {
  grid-area: foto;
  align-self: center;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
  background: white;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
}

.product-preview__foto {
  width: 100%;
  max-width: 250px;
  max-height: 120px;
  transition: transform 0.4s ease;
  object-fit: contain;
  padding: 8px;
}
.product-preview__foto:hover { transform: scale(1.4); }

/* Знак качества / бренд */
.product-preview__hallmark { position: absolute; top: 4px; right: 4px; }
.product-preview__hallmark-img {
  border-radius: 8px;
  opacity: 0.8;
  max-width: 40px;
}

/* Комплектные изображения */
.product-preview__picture-kit { width: 50%; height: auto; }
.product-preview__picture-kit-image { height: auto; width: 100%; }

/* ═══ СРАВНЕНИЕ ═══ */

.product-preview__compare {
  padding: 4px 10px;
  color: #5e7de1;
  border-radius: 0 20px 20px 0;
  background: #f0f4ff;
  white-space: nowrap;
  border: 1px solid #d0d8f0;
  font-size: 11px;
  font-weight: 500;
  grid-area: foto;
  align-self: end;
  justify-self: start;
  margin-bottom: 8px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.product-preview__compare:hover {
  background: #5e7de1;
  color: #fff;
  border-color: #5e7de1;
}

.product-preview__go-to-comparison {
  padding: 4px 12px;
  color: #fff;
  border-radius: 0 20px 20px 0;
  background: #00c908;
  white-space: nowrap;
  border: 1px solid #00a807;
  font-size: 11px;
  font-weight: 500;
  grid-area: foto;
  align-self: end;
  justify-self: start;
  margin-bottom: 8px;
  cursor: pointer;
  z-index: 10;
  text-decoration: none;
  transition: all 0.2s ease;
}
.product-preview__go-to-comparison:hover {
  background: #009906;
}

/* ═══ ЦЕНА / НАЛИЧИЕ ═══ */

.product-preview__price-tag {
  grid-area: price;
  background: #f8f9ff;
  border-right: 1px solid #e8edff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 160px;
  min-width: 120px;
  justify-self: center;
  width: 170px;
  box-sizing: border-box;
}

.product-preview__article {
  margin: 0;
  display: flex;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: #4a68a8;
  min-height: 22px;
  align-items: center;
  font-weight: 500;
}
.product-preview__article:first-child {
  border-radius: 0;
}

.product-preview__part-number {
  font-size: 12px;
  padding: 4px;
  color: #5a6a88;
  margin: 0;
}

.product-preview__sale {
  font-size: 12px;
  color: #e53935;
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.product-preview__availability {
  color: #00891a;
  font-weight: 600;
  font-size: 13px;
  margin: 0;
  padding: 4px;
}
.product-preview__availability_small { font-size: 12px; font-weight: 400; }
.product-preview__availability_order { color: #4a68a8; }
.product-preview__expected { font-size: 12px; font-weight: 400; }

.product-preview__electronic-delivery {
  font-size: 12px;
  font-weight: 400;
  padding-bottom: 5px;
  color: #00891a;
  margin: 0;
}

.product-preview__store-address {
  font-size: 11px;
  margin: 0;
  color: #7a8aa8;
  padding: 2px 4px;
}

.product-preview__price-text {
  margin: 0;
  text-align: center;
  color: #9e9e9e;
  padding-top: 5px;
  font-size: 13px;
}
.product-preview__price-text_crossed { text-decoration: line-through; }

.product-preview__price0 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  padding: 6px 0;
}

.product-preview__price {
  margin: 0;
  color: #e53935;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 0 2px;
  letter-spacing: -0.5px;
}
.product-preview__price_park { color: #006f05; font-size: 14px; }

.product-preview__price-val {
  color: #5a6a88;
  font-size: 13px;
}

.shopping_cart {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  background: #00c908;
  padding: 4px;
  border-radius: 0 0 0 0;
}

/* ═══ ХАРАКТЕРИСТИКИ (таблица) ═══ */

.product-preview__specifications {
  margin: 0;
  color: #4a5578;
  font-size: 13px;
  grid-area: specifications;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: stretch;
  padding: 8px 12px;
  background: #fafbff;
  box-sizing: border-box;
  width: -webkit-fill-available;
  line-height: 1.5;
}

.product-preview__feature-name {
  border-bottom: 1px dashed #e0e5f0;
  display: flex;
  padding: 2px 0;
}

.product-preview__feature-help::before {
  content: "?";
  margin-left: -15px;
  color: #5e7de1;
  background: #f0f4ff;
  border-radius: 50%;
  border: 1px solid #d0d8f0;
  font-size: 11px;
  padding: 1px 4px;
  cursor: help;
  line-height: 1;
}
.product-preview__feature-help:hover::before {
  background: #5e7de1;
  color: #fff;
  border-color: #5e7de1;
}

.product-preview__value-characteristics {
  margin: 0;
  padding: 2px 0 2px 8px;
  display: flex;
  align-items: end;
  color: #3a5894;
  border-bottom: 1px dashed #e0e5f0;
}

.product-preview__link { color: #4a5578; }

/* ═══ ОПИСАНИЕ ═══ */

.product-preview__description {
  margin: 0;
  grid-area: discription;
  font-size: 14px;
  padding: 10px 12px 8px;
  color: #4a5578;
  background: #fff;
  line-height: 1.5;
}

/* ═══ «ПОДРОБНЕЕ» ═══ */

.product-preview__full {
  margin: 0;
  grid-area: full;
  padding: 6px 12px;
  text-align: center;
  color: #5e7de1;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 30px;
  align-self: end;
  width: 100%;
  box-sizing: border-box;
  background: #f8f9ff;
  border-top: 1px solid #e8edff;
  border-radius: 0 0 12px 0;
}
.product-preview__full:hover {
  color: #fff;
  background: #5e7de1;
}

/* Маркеры релевантности (сохраняем правый бордер) */
.product-preview__full_m1 { border-right: 2px solid #5e7de133; }
.product-preview__full_m2 { border-right: 4px solid #5e7de144; }
.product-preview__full_m3 { border-right: 6px solid #5e7de155; }
.product-preview__full_m4 { border-right: 8px solid #5e7de166; }
.product-preview__full_m5 { border-right: 10px solid #5e7de177; }
.product-preview__full_m6 { border-right: 12px solid #5e7de188; }
.product-preview__full_m7 { border-right: 14px solid #5e7de199; }

.product_m1 { border-left-width: 5px; }
.product_m2 { border-left-width: 7px; }
.product_m3 { border-left-width: 9px; }
.product_m4 { border-left-width: 11px; }
.product_m5 { border-left-width: 13px; }
.product_m6 { border-left-width: 15px; }
.product_m7 { border-left-width: 17px; }

/* ═══ «ОСНОВНЫЕ ПРЕИМУЩЕСТВА» ═══ */

.OsnPreim {
  text-align: center;
  color: #00891a;
  font-weight: 600;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f0fff0, #e8f5e9);
  font-size: 13px;
  margin-top: 4px;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
}
.OsnPreim_b2 { font-size: 12px; font-weight: 400; padding-top: 3px; }

/* ═══ КНОПКА «КУПИТЬ» ═══ */

.buy-button {
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #00c908, #00a807);
  border-radius: 8px;
  position: relative;
  padding: 8px 20px;
  border: none;
  max-width: 110px;
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 169, 7, 0.25);
}
.buy-button:hover {
  background: linear-gradient(135deg, #00b307, #009906);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 169, 7, 0.35);
}
.buy-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 169, 7, 0.2);
}
.buy-button:focus { outline: 2px solid #00c908; outline-offset: 2px; }

/* ═══ ПОДСКАЗКИ ═══ */

.hint-window {
  position: absolute;
  font-size: 14px;
  padding: 24px;
  z-index: 17000;
  background: #fff;
  display: none;
  cursor: pointer;
  line-height: 1.5;
  max-width: 400px;
  min-width: 200px;
  border: 1px solid #d0d8f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(50, 70, 120, 0.15);
  color: #3a5894;
}
.hint-window__heat {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
}
.hint-window__close {
  width: 24px;
  height: 24px;
  background: #f0f4ff;
  text-align: center;
  border-radius: 50%;
  color: #5e7de1;
  cursor: pointer;
  border: 1px solid #d0d8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}
.hint-window__close:hover {
  background: #5e7de1;
  color: #fff;
}

/* ═══ АДАПТИВ ═══ */

@media (max-width: 1080px) {
  .product-preview_horizontal {
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-areas:
      "type name list"
      "foto price specifications"
      "discription discription full";
    justify-items: center;
  }
  .product-preview__a-name {
    width: 100%;
    padding: 0 10px;
  }
  .product-preview__type {
    max-width: none;
    width: 100%;
    padding-right: 0;
    font-size: 0.8rem;
  }
}

@media (max-width: 820px) {
  .product-preview__price-tag { max-width: 100%; width: 100%; }
  .product-preview__specifications { width: 100%; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .product-preview_horizontal {
    grid-template-areas:
      "name" "type" "list" "foto" "price"
      "specifications" "discription" "full";
    gap: 0;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
  }

  .product-preview__picture {
    height: 180px;
    border-radius: 0;
  }

  .product-preview__a-name {
    padding: 0;
    width: 100%;
    background: #3a5894;
    border-radius: 0;
  }
  .product-preview__name-item {
    padding: 10px 12px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    width: 100%;
  }

  .product-preview__price-tag {
    max-width: none;
    border-radius: 0;
    margin: 0;
  }

  .product-preview__article {
    border-radius: 0;
    background: #f0f4ff;
    color: #4a68a8;
  }

  .product-preview__price {
    font-size: 22px;
    padding: 4px;
  }

  .product-preview__value-characteristics-list { justify-content: center; }
  
  .product-preview__full { border-radius: 0; }
  
  .buy-button {
    padding: 10px 28px;
    font-size: 15px;
    max-width: 140px;
  }
}

@media (max-width: 360px) {
  .product-preview__description { font-size: 13px; padding: 8px; }
  .product-preview__full { font-size: 12px; min-height: 36px; }
  .buy-button { font-size: 14px; padding: 8px 20px; }
}

@media (max-width: 240px) {
  .product-preview__name-item { font-size: 12px; }
  .product-preview__price { font-size: 20px; }
  .product-preview__description { font-size: 12px; }
  .buy-button { font-size: 13px; max-width: 100px; }
}

/* Отключаем hover на тачскринах */
@media (hover: none) and (pointer: coarse) {
  .product-preview__foto:hover { transform: none; }
  .product-preview_horizontal:hover {
    box-shadow: 0 1px 4px rgba(50, 70, 120, 0.08);
    transform: none;
  }
}
