.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background-color: #f4f1ec;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: zoom-in;
}

.product-image:hover {
  box-shadow: inset 0 0 0 2px #234438;
}

.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.product-detail-modal.open { display: grid; }

.product-detail-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  width: min(1100px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
}

.product-detail-photo {
  width: 100%;
  height: min(78vh, 760px);
  padding: 22px;
  object-fit: contain;
  background: #f4f1ec;
}

.product-detail-copy {
  align-self: center;
  padding: 52px 42px;
}

.product-detail-copy small {
  color: #777;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.product-detail-copy h2 {
  margin: 10px 0 18px;
  font: 600 clamp(30px, 3.5vw, 48px)/1.05 "Playfair Display", serif;
}

.product-detail-copy p { color: #666; line-height: 1.7; }
.product-detail-copy .price { margin: 24px 0; font-size: 16px; }
.product-detail-copy label { display: block; margin-bottom: 20px; font-size: 11px; font-weight: 700; }
.product-detail-copy select { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #ccc; background: #fff; }
.product-detail-copy .add-cart { width: 100%; min-height: 48px; }
.product-detail-close { position: absolute; right: 16px; top: 12px; z-index: 2; border: 0; background: #fff; width: 42px; height: 42px; font-size: 28px; cursor: pointer; }

@media (max-width: 760px) {
  .product-image { aspect-ratio: 1 / 1; }
  .product-detail-modal { padding: 10px; }
  .product-detail-panel { grid-template-columns: 1fr; }
  .product-detail-photo { height: 48vh; padding: 10px; }
  .product-detail-copy { padding: 28px 22px; }
}
