/* ==========================================================================
   Product Grid / Card
   Used by [gpg_products] shortcode and gpg_render_product_card()
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--product-grid-columns, 4), 1fr);
  gap: 24px;
}

.product-grid__empty {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

.product-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #101010;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f0862e;
  color: #0a0a0a;
}

.product-card__badge--sale { background: #ee5b4f; color: #fff; }
.product-card__badge--new { background: #2e9cdb; color: #fff; }
.product-card__badge--bestseller { background: #f2c744; color: #0a0a0a; }
.product-card__badge--out_of_stock { background: #555; color: #ccc; }

.product-card__body {
  padding: 16px 18px 20px;
}

.product-card__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f0862e;
  font-weight: 600;
}

.product-card__title {
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0;
}

.product-card__title a {
  color: #fff;
  text-decoration: none;
}

.product-card__desc {
  font-size: 13px;
  color: #b0b0b0;
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.product-card__price-old {
  font-size: 13px;
  color: #777;
  text-decoration: line-through;
}

.product-card__price-current {
  font-size: 17px;
  font-weight: 700;
  color: #f0862e;
}

.product-card__stock--out {
  display: inline-block;
  font-size: 12px;
  color: #ee5b4f;
  margin-bottom: 8px;
}

.product-card__enquiry {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #f0862e;
  border-radius: 6px;
  color: #f0862e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.product-card__enquiry:hover {
  background: #f0862e;
  color: #0a0a0a;
}

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}
