/**
 * Product detail — white storefront (matches homepage cards)
 */
body.pdp-storefront .page-wrapper,
body.pdp-storefront {
  background: #ffffff !important;
}

body.pdp-storefront .pdp-ml-related--storefront {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

body.pdp-storefront .pdp-ml-related--storefront .jp-ws-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

body.pdp-storefront .pdp-ml-related--storefront .jp-ws-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

body.pdp-storefront .pdp-ml-related--storefront .jp-ws-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: #6b7280;
}

body.pdp-storefront .pdp-ml-related--storefront .jp-ws-viewall {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

body.pdp-storefront .pdp-ml-related--storefront .jp-ws-viewall::after {
  content: " →";
}

body.pdp-storefront .products-grid--storefront {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

/* Reuse homepage storefront card rules on PDP */
body.pdp-storefront .jp-card-storefront.janosci-product-card {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

body.pdp-storefront .jp-card-storefront .card-img-wrap {
  aspect-ratio: unset !important;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem !important;
}

body.pdp-storefront .jp-card-storefront .card-img-wrap img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

body.pdp-storefront .jp-card-storefront .card-body {
  padding: 0.85rem 0.15rem 0 !important;
}
body.pdp-storefront .jp-card-storefront .card-title {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  line-height: 1.35 !important;
  min-height: 2.7em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.pdp-storefront .jp-card-storefront .card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  color: #6b7280;
}
body.pdp-storefront .jp-card-storefront .card-stars {
  color: #f59e0b;
  font-size: 0.75rem;
}
body.pdp-storefront .jp-card-storefront .card-price-now {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}
body.pdp-storefront .jp-card-storefront .card-price-off {
  color: #16a34a !important;
  font-weight: 600 !important;
}
body.pdp-storefront .jp-card-storefront .card-brand,
body.pdp-storefront .jp-card-storefront .card-sku,
body.pdp-storefront .jp-card-storefront .card-gst,
body.pdp-storefront .jp-card-storefront .card-actions,
body.pdp-storefront .jp-card-storefront .stock-badge,
body.pdp-storefront .jp-card-storefront .card-zoom-hint {
  display: none !important;
}

body.pdp-storefront .pdp-ml-related--storefront .jp-shop-strip-track {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body.pdp-storefront .pdp-ml-related--storefront .ml-shop-swiper {
  overflow: hidden;
  padding: 4px 0 12px;
}

body.pdp-storefront .pdp-ml-related--storefront .swiper-slide {
  height: auto;
  display: flex;
}

@media (max-width: 991.98px) {
  body.pdp-storefront .products-grid--storefront {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  body.pdp-storefront .products-grid--storefront {
    grid-template-columns: 1fr;
  }
}
