/*
 * Файл сформирован из assets/css/style.css.
 * Исходные диапазоны строк: 961-1013, 1198-1392.
 */

/* ===== ПЛАШКА СКИДКИ НА КАРТОЧКЕ ===== */
.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: #fff;
    padding: 0.35rem 0.8rem 0.4rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.5), 0 0 0 2px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-12deg);
}
.sale-badge-text {
    font-size: 1rem;
    font-weight: 800;
}
.sale-badge-sub {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-transform: uppercase;
}

/* ===== ОБЁРТКА ИЗОБРАЖЕНИЯ В КАРТОЧКЕ (ЗАПОЛНЕНИЕ КВАДРАТА) ===== */
.card-img-wrapper {
    width: 100%;
    height: 200px;
    background-color: #0e1210;
    overflow: hidden;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1f1c;
    color: #6c757d;
}

/* ===== КАРТОЧКА ТОВАРА В КАТАЛОГЕ: БЫСТРОЕ СРАВНЕНИЕ НА ФОТО ===== */
.product-card-catalog {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.product-card-catalog:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(230,126,34,0.08), transparent 38%, rgba(92,122,62,0.12));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}
.product-card-catalog:hover:before {
  opacity: 1;
}
.product-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 42%, rgba(92,122,62,0.25), transparent 45%),
    linear-gradient(180deg, #121812, #070a08);
  border-bottom: 1px solid rgba(92,122,62,0.45);
}
.product-card-image-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.product-card-image-link img,
.product-card-media .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.45));
  transition: transform 0.35s ease, filter 0.35s ease;
}
.product-card-catalog:hover .product-card-image-link img {
  transform: scale(1.05);
  filter: drop-shadow(0 24px 26px rgba(0,0,0,0.58));
}
.product-card-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.product-compare-float {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(184,168,124,0.42);
  border-radius: 50%;
  background: rgba(7,10,8,0.78);
  color: var(--accent-khaki);
  box-shadow: 0 12px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
}
.product-compare-float i {
  font-size: 1.08rem;
  line-height: 1;
}
.product-compare-float:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--accent-orange);
  background: rgba(230,126,34,0.22);
  color: #fff;
}
.product-compare-float.in-compare {
  border-color: rgba(122,158,85,0.85);
  background: linear-gradient(135deg, var(--accent-olive), #334629);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(92,122,62,0.18), 0 14px 24px rgba(0,0,0,0.5);
}
.product-card-sale-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(230,126,34,0.35);
}
.product-card-body {
  min-height: 245px;
  position: relative;
  z-index: 2;
}
.product-card-title {
  line-height: 1.28;
  min-height: 42px;
  margin-bottom: 10px;
}
.product-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card-old-price {
  color: #89947f;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: line-through;
}
.product-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.product-card-actions .btn {
  margin: 0;
}
.product-details-btn,
.product-cart-icon-btn {
  min-height: 40px;
}
.product-cart-icon-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 50%;
}
.product-cart-icon-btn.disabled,
.product-cart-icon-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: radial-gradient(circle, rgba(92,122,62,0.16), rgba(7,10,8,0.78));
}
@media (max-width: 768px) {
  .product-card-media {
    height: 180px;
  }
  .product-card-body {
    min-height: 230px;
    padding: 14px !important;
  }
  .product-compare-float {
    width: 40px;
    height: 40px;
  }
  .product-card-actions {
    grid-template-columns: 1fr;
  }
  .product-cart-icon-btn {
    width: 100%;
    border-radius: 999px;
  }
}
