/* Packaging remains complete at every size. The source artwork is unchanged. */
.product-card .product-image {
  aspect-ratio: 1.18;
  padding: clamp(16px, 2vw, 28px);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff 35%, #f0faff);
}
.product-card .product-image img {
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.detail-photo {
  aspect-ratio: 1.08;
  padding: 24px 24px 60px;
  display: grid;
  place-items: center;
}
.detail-photo img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}
#image-dialog {
  width: min(1120px, 94vw);
  max-height: 94vh;
  max-height: 94dvh;
  padding: 50px 28px 22px;
  overflow: auto;
}
#image-dialog img {
  width: 100%;
  height: min(70vh, 760px);
  height: min(70dvh, 760px);
  max-height: none;
  object-fit: contain;
  object-position: center;
}
#image-dialog p { margin-top: 16px; line-height: 1.7; }
#image-dialog .dialog-close { top: 10px; right: 12px; width: 36px; height: 36px; }
.tl-product-card > img { object-fit: contain; object-position: center; }
.tl-expanded-product { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; }
.tl-expanded-product > img { height: min(58vh, 540px); object-fit: contain; object-position: center; }
@media (max-width: 767px) {
  .tl-expanded-product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tl-expanded-product > img { height: min(42svh, 350px); }
  .detail-photo { padding: 18px 18px 60px; }
  #image-dialog { padding: 50px 16px 18px; border-radius: 24px; }
  #image-dialog img { height: 62vh; height: 62dvh; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .product-card .product-image { aspect-ratio: 1.3; padding: 22px; }
  .product-card .body { padding: 20px 22px 22px; }
  .product-card h3 { font-size: 20px; }
  .product-card .spec { font-size: 13px; }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .product-card:hover .product-image img { transform: none; }
}

.product-detail-section { margin: 1.5rem 0; }
.product-detail-section h3 { margin-bottom: .5rem; }
.product-detail-section p { white-space: pre-line; overflow-wrap: anywhere; }
