/* Storefront custom styles */

/* ── Product Cards ────────────────────────────────────────── */
.product-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.12) !important;
}

.card-img-top {
  height: auto !important;
  max-height: 220px;
  width: 100%;
  object-fit: contain !important;
}

.img-placeholder-card {
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 3rem;
}

/* ── Stock Badge ──────────────────────────────────────────── */
.stock-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* ── Product Gallery ──────────────────────────────────────── */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: #0d6efd;
}

/* ── Price Calculator ─────────────────────────────────────── */
.price-live {
  font-size: 1.5rem;
  font-weight: 700;
  color: #198754;
  transition: color 0.2s;
}
.price-live.updated {
  color: #0d6efd;
}

/* ── Sort/Filter Bar ──────────────────────────────────────── */
.filter-bar {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Discount Code Input ──────────────────────────────────── */
.discount-applied {
  color: #198754;
  font-weight: 600;
}
.discount-line {
  color: #198754;
}

/* ── Empty State (Store) ──────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-state-icon {
  font-size: 4rem;
  color: #dee2e6;
}

/* ── Category Pills ───────────────────────────────────────── */
.category-pills .btn {
  border-radius: 2rem;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
}
