.product-card[data-action="open-product"] { cursor: pointer; }
.product-title-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.product-title-button:hover { color: var(--teal-600); }
.product-card:focus-within { outline: 2px solid var(--teal-600); outline-offset: 3px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px; }
.product-detail-copy { min-width: 0; }
.product-detail-copy h3 { margin: 12px 0 8px; font-size: 20px; }
.product-description { white-space: pre-line; font-size: 15px; line-height: 1.75; }
.product-facts { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.product-facts span { padding: 7px 10px; border-radius: 8px; background: #f8f2e8; font-size: 12px; }
.product-detail-copy .field { margin-top: 14px; }
.product-detail-copy .quantity-field { max-width: 140px; }
.product-detail-actions { flex-wrap: wrap; }
.gallery-stage { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; width: min(100%,360px); margin: 0 auto; border-radius: 18px; background: #faf7f2; padding: 15px; }
.product-detail-copy .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.product-details .modal-head { position: sticky; top: 0; z-index: 2; background: white; }
.product-detail-copy select { min-width: 0; }
.gallery-stage .product-photo-wrap { width: 100%; height: 100%; }
.gallery-stage .product-photo { width: 100%; height: 100%; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; }
.gallery-controls span { color: var(--ink-soft); font-size: 13px; }
.gallery-thumbnails { display: flex; gap: 8px; padding: 4px; overflow-x: auto; max-width: 100%; }
.gallery-thumbnail { width: 64px; height: 64px; flex: 0 0 64px; padding: 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #faf7f2; }
.gallery-thumbnail.active { border: 2px solid var(--teal-600); }
.gallery-thumbnail .product-photo { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbnail .product-photo-wrap { height: 100%; }
.product-gallery .form-note { margin-top: 12px; }
.gallery-admin-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.gallery-admin-item { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.gallery-admin-image { display: grid; place-items: center; aspect-ratio: 1; background: #faf7f2; margin-bottom: 8px; overflow: hidden; }
.gallery-admin-image .product-photo-wrap { height: 100%; }
.gallery-admin-image .product-photo { width: 100%; height: 100%; object-fit: contain; }
.gallery-admin-item > span { display: block; font-size: 12px; }
.gallery-admin-item button { margin-top: 6px; font-size: 12px; }
.gallery-upload-progress { margin-top: 12px; color: var(--teal-900); font-size: 13px; }
@media(max-width:700px) {
  .product-detail-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .gallery-stage { max-width: 400px; margin: 0 auto; }
  .product-detail-actions .button { flex: 1 1 180px; }
  .gallery-admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:440px) { .product-detail-copy .form-grid { grid-template-columns: minmax(0,1fr); } }
