/* Modern product catalogue cards — locked Design 4 */
.detail-wrap {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 160, 23, 0.08), transparent 34rem),
    var(--cream);
}

.detail-header {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.products-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1440px;
  margin: 44px auto 0;
  align-items: stretch;
}

.product-photo-card,
.product-photo-card.has-image {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 540px;
  aspect-ratio: auto;
  padding: 22px 22px 28px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(155deg, rgba(255,255,255,0.76), rgba(252,247,236,0.96));
  border: 1px solid rgba(212, 160, 23, 0.78);
  border-radius: 22px;
  box-shadow:
    0 18px 46px rgba(13, 35, 64, 0.10),
    0 4px 12px rgba(13, 35, 64, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-photo-card:hover,
.product-photo-card.has-image:hover {
  transform: translateY(-7px);
  border-color: var(--gold);
  box-shadow:
    0 24px 58px rgba(13, 35, 64, 0.15),
    0 6px 18px rgba(212, 160, 23, 0.12);
}

.product-photo-placeholder,
.product-photo-card.has-image .product-photo-placeholder {
  position: relative;
  width: 100%;
  height: 350px;
  min-height: 350px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  background: transparent;
  border: 0;
}

/* Soft product-colour halo from the selected Design 4. */
.product-photo-placeholder::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 6%;
  right: 6%;
  bottom: 18px;
  height: 64%;
  border-radius: 50% 50% 14% 14% / 78% 78% 22% 22%;
  background: linear-gradient(145deg, var(--product-accent, #dce4ea), color-mix(in srgb, var(--product-accent, #dce4ea) 58%, white));
  transform: rotate(-4deg);
}


.product-photo-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 96%;
  max-height: 338px;
  padding: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(13, 35, 64, 0.16));
}

/* The supplied pack PNGs have white photo canvases. Multiply visually removes
   the rectangular white box while retaining the original pack artwork. */
.product-photo-placeholder img[src$=".png"] {
  mix-blend-mode: multiply !important;
}

.product-photo-placeholder img.background-cleaned,
.custom-product-image .product-photo-placeholder img {
  mix-blend-mode: normal !important;
}

.product-photo-info,
.product-photo-card.has-image .product-photo-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px 0;
}

.product-photo-info .var-badge {
  display: none;
}

.product-photo-info h3 {
  display: block;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--green-deep);
}

.product-weight {
  margin-top: 7px;
  color: var(--green-mid);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.product-photo-info p,
.product-photo-card.has-image .product-photo-info p {
  display: block;
  max-width: 330px;
  margin-top: 13px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-mid);
}

.product-photo-placeholder .ph-icon {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(212,160,23,0.58);
  font-size: 34px;
  opacity: 0.85;
}

.product-photo-placeholder .ph-text {
  position: relative;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  color: var(--green-deep);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: 0.78;
}

.back-row {
  text-align: center;
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .products-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.products-photo-grid:has(> .product-photo-card:only-child) {
  grid-template-columns: minmax(280px, 440px);
  justify-content: center;
}

@media (max-width: 660px) {
  .detail-wrap { padding:42px 7px; }
  .detail-header { margin-bottom:26px; padding:0 12px; }
  .detail-header .sec-title { font-size:30px; }
  .detail-header > p { font-size:13px !important; line-height:1.5; }
  .products-photo-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:26px; }
  .products-photo-grid:has(> .product-photo-card:only-child) {
    grid-template-columns:minmax(0,150px);
    justify-content:center;
  }
  .product-photo-card,
  .product-photo-card.has-image { min-height:275px; padding:7px 5px 12px; border-radius:13px; }
  .product-photo-placeholder,
  .product-photo-card.has-image .product-photo-placeholder {
    height:132px;
    min-height:132px;
  }
  .product-photo-placeholder::before { left:1%; right:1%; bottom:5px; height:62%; }
  .product-photo-placeholder img { max-width:100%; max-height:128px; filter:drop-shadow(0 5px 5px rgba(13,35,64,.14)); }
  .product-photo-info,
  .product-photo-card.has-image .product-photo-info { padding:7px 2px 0; }
  .product-photo-info h3 { font-size:15px; line-height:1.05; }
  .product-weight { margin-top:5px; font-size:13px; }
  .product-photo-info p,
  .product-photo-card.has-image .product-photo-info p {
    margin-top:7px;
    font-size:10.5px;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .product-photo-placeholder .ph-icon { width:38px; height:38px; font-size:18px; }
  .product-photo-placeholder .ph-text { max-width:88px; padding:4px 5px; font-size:8px; letter-spacing:.4px; }
  .back-row { margin-top:34px; gap:9px; padding:0 8px; }
  .back-row .btn-outline { padding:10px 14px; font-size:11px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-photo-card,
  .product-photo-card.has-image { transition: none; }
  .product-photo-card:hover,
  .product-photo-card.has-image:hover { transform: none; }
}
