

/* Start:/local/templates/main/css/product-card.css?17954724098887*/
/* ================================================================
   Shared product card component — used on all pages
   BEM: .product-card
   ================================================================ */

/* BX_FOREACH product */
.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #f0ece7;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.product-card[data-hidden="true"] { display: none; }

/* Image area. Рамка 3:4 — пропорции фото из Saby (900×1200): картинка
   занимает всю ширину карточки и видна целиком. Была фиксированная высота
   220px с object-fit: contain — вертикальное фото садилось узкой полосой
   с серыми полями по бокам. Снимок других пропорций обрезается по краям
   (cover), а не сжимается. */
.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f8f7f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
/* Увеличение при наведении — только там, где есть мышь: на телефоне касание
   «залипает» в :hover, и фото дёргалось при нажатии перед переходом */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__img-wrap img { transform: scale(1.05); }
}
/* Картинка — ссылка на страницу товара или коллекции, как и название */
.product-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Заглушка, когда у товара нет картинки */
.product-card__img-empty {
  color: #dcd7d1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.product-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  /* Каждая плашка по ширине своего слова. Без этого колонка растягивает
     все до самой широкой, и рядом с «КОЛЛЕКЦИЯ» короткий «ХИТ»
     превращался в такую же длинную кнопку. */
  align-items: flex-start;
  gap: 0.35rem;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--hit {
  background: #E30613;
  color: #fff;
  box-shadow: 0 2px 8px rgba(227,6,19,.4);
}
.badge--new {
  background: #1A9E5C;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,158,92,.4);
}
/* Метки товара из свойства TAGS инфоблока */
.badge--sale {
  background: #E30613;
  color: #fff;
  box-shadow: 0 2px 8px rgba(227,6,19,.4);
}

/* Favourite */
.product-card__fav {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
  z-index: 2;
  color: #bbb;
}
.product-card__fav:hover { transform: scale(1.15); box-shadow: 0 4px 14px rgba(0,0,0,.15); color: #E30613; }
.product-card__fav.active { color: #E30613; }
.product-card__fav.active svg { fill: #E30613; }

/* Body */
.product-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.product-card__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #000;
  line-height: 1.4;
  cursor: pointer;
  flex: 1;
  /* У коллекции название — тег <a>, у товара <span>: подчёркивание убираем,
     цвет наследуем, чтобы обе карточки выглядели одинаково */
  text-decoration: none;
}
.product-card__name:hover { color: #E30613; }
.product-card__volume {
  font-size: 0.78rem;
  color: #aaa;
  font-weight: 500;
}
.product-card__price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}
.product-card__price-old {
  font-size: 0.85rem;
  color: #bbb;
  text-decoration: line-through;
  margin-left: 0.4rem;
  font-weight: 400;
}

/* Buy button */
.product-card__buy {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: none;
  background: #E30613;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.product-card__buy:hover { background: #c00510; }
.product-card__buy:active { transform: scale(.97); }

/* Нулевой остаток: кнопка остаётся на месте, но купить нельзя */
.product-card__buy--out {
  background: #f2f0ee;
  color: #999;
  cursor: default;
}
.product-card__buy--out:hover { background: #f2f0ee; }
.product-card__buy--out:active { transform: none; }

/* Qty control (replaces buy button) */
.product-card__qty {
  display: none;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #E30613;
  height: 44px;
}
.product-card__qty.visible { display: flex; }
.product-card__qty-btn {
  width: 44px;
  flex-shrink: 0;
  background: #fff;
  border: none;
  color: #E30613;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__qty-btn:hover { background: rgba(227,6,19,.08); }
.product-card__qty-num {
  flex: 1;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  pointer-events: none;
}
.product-card__qty-cart {
  width: 44px;
  flex-shrink: 0;
  background: #E30613;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  transition: background .15s;
}
.product-card__qty-cart:hover { background: #c00510; }
/* /BX_FOREACH */

/* ── Group / collection card variant ── */
.badge--group {
  background: #6941C6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(105,65,198,.4);
}

.product-card__price-range {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.product-card__price-range .product-card__price { color: #000; }
.product-card__price-sep {
  font-size: 1rem;
  color: #bbb;
  font-weight: 400;
}
.product-card__price-to {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #555;
}

/* "Выбрать" — dark button, visually distinct from red "В корзину" */
.product-card__select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: none;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
}
.product-card__select:hover { background: #383838; color: #fff; }
.product-card__select:active { transform: scale(.97); }

/* ── Mobile: compact card for narrow 2-column grids ── */
@media (max-width: 520px) {
  .product-card__body {
    padding: 0.65rem 0.7rem 0.8rem;
    gap: 0.3rem;
  }
  .product-card__name { font-size: 0.78rem; }
  .product-card__volume { font-size: 0.7rem; }
  .product-card__price { font-size: 1rem; }

  /* Buy button — keep icon, shrink text */
  .product-card__buy {
    padding: 0.6rem 0.4rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }
  .product-card__buy svg { width: 13px; height: 13px; flex-shrink: 0; }

  /* Qty control — slimmer, narrower buttons */
  .product-card__qty { height: 36px; }
  .product-card__qty-btn {
    width: 32px;
    font-size: 1.1rem;
  }
  .product-card__qty-num { font-size: 0.88rem; }
  .product-card__qty-cart {
    width: 32px;
  }
  .product-card__qty-cart svg { width: 13px; height: 13px; }
}

/* End */
/* /local/templates/main/css/product-card.css?17954724098887 */
