/* ==========================================================================
   cowboy-card-2026.css — элементы улучшенной карточки товара
   (бейджи, артикул, совместимость, старая цена, быстрый просмотр)
   Подключать ПОСЛЕ cowboy-2026.css.
   ========================================================================== */

.product-card__media { position: relative; }

.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #fff;
  background: #6b7280;
}
.badge--original { background: #1f6feb; }
.badge--brand    { background: #4b5563; }
.badge--hit      { background: #e8590c; }
.badge--new      { background: #2f9e44; }
.badge--last     { background: #c92a2a; }

.product-card__sku {
  font-size: 13px;
  color: #7b8794;
  margin-top: 4px;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
}
.product-card__brand { font-weight: 600; }
.product-card__compat { color: #5c6670; }

.product-card__state {
  font-size: 13px;
  color: #7b8794;
  margin-top: 4px;
}

.product-card__prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card__price-old {
  color: #98a2ad;
  text-decoration: line-through;
  font-size: 14px;
}

.product-card__stock { font-size: 13px; margin-top: 4px; }
.product-card__stock.in-stock { color: #2f9e44; }
.product-card__stock.out-stock { color: #8b949e; }

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.product-card__quick {
  background: none;
  border: 1px solid var(--cm-line, #dfe3e8);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  color: inherit;
}
.product-card__quick:hover { border-color: var(--cm-accent, #e8590c); }

/* Быстрый просмотр */
.quickview { position: fixed; inset: 0; z-index: 1200; display: none; }
.quickview.is-open { display: block; }
.quickview__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 20, 26, .6);
}
.quickview__dialog {
  position: relative;
  margin: 40px auto;
  max-width: 900px;
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  color: #1b212a;
  border-radius: 10px;
  padding: 24px;
}
.quickview__close {
  position: absolute; top: 10px; right: 14px;
  border: 0; background: none; font-size: 26px; cursor: pointer; color: #5c6670;
}

/* Бейджи и артикул на странице товара */
.product-detail__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.product-detail__sku {
  color: #7b8794;
  font-size: 14px;
  margin: -6px 0 6px;
}
.product-detail__price-old {
  color: #98a2ad;
  text-decoration: line-through;
  font-size: 18px;
}
