/* Product card — single stylesheet for every product tile on the site.
   Markup comes from template-parts/product-card.php; wrappers add
   .bfa-product-card (WC loop <li> and the carousel <div> alike). */

.bfa-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.bfa-product-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
  border-color: var(--steel-xl);
}

.bfa-product-card .product-card-img {
  display: block;
  aspect-ratio: 1;
  background: var(--off);
  overflow: hidden;
  position: relative;
}

.bfa-product-card .product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.4s ease;
}

.bfa-product-card:hover .product-card-img img { transform: scale(1.05); }

.bfa-product-card .product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-cta);
  text-transform: uppercase;
  background: var(--steel);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}
.bfa-product-card .product-card-badge.is-preorder { background: var(--copper); }
.bfa-product-card .product-card-badge.is-oos { background: var(--muted); }
.bfa-product-card .product-card-badge.is-new { background: var(--black); }

.bfa-product-card .product-card-preorder {
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 8px;
}
.bfa-product-card .product-card-preorder.is-oos { color: var(--muted); }

/* Out-of-stock tiles stay browsable but visually recede a touch. */
.bfa-product-card:has(.product-card-badge.is-oos) .product-card-img img { opacity: 0.6; }

/* Photo badges (trust seals etc, see the PDP gallery's photo_badges field)
   — same ACF field, same image, shown on the card too so it's not only
   visible once a shopper is already on the product page. */
.product-card-photo-badge {
  position: absolute;
  z-index: 4;
  width: 44px; height: 44px;
  display: block;
}
.product-card-photo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card-photo-badge.pos-top-left { top: 12px; left: 12px; }
.product-card-photo-badge.pos-top-right { top: 12px; right: 12px; }
.product-card-photo-badge.pos-bottom-left { bottom: 12px; left: 12px; }
.product-card-photo-badge.pos-bottom-right { bottom: 12px; right: 12px; }

.bfa-product-card .product-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.bfa-product-card .product-card-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.bfa-product-card .product-card-name:hover { color: var(--steel); }

.bfa-product-card .product-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.bfa-product-card .product-card-price {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bfa-product-card .product-card-price.on-sale { color: var(--steel-dk); }

.bfa-product-card .product-card-was {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
/* Only the original ("was") price is struck through — the whole line
   (including "Save $X") was getting line-through before since it was all
   one text node under .product-card-was. */
.bfa-product-card .product-card-was-price {
  text-decoration: line-through;
}

.bfa-product-card .product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.bfa-product-card .btn-card-primary {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-cta);
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.bfa-product-card .btn-card-primary:hover { background: var(--steel-dk); }

.bfa-product-card .btn-card-ghost {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.bfa-product-card .btn-card-ghost:hover { border-color: var(--steel); color: var(--steel); }
