.product-dialog { overflow: hidden; }
.product-dialog-layout { height: min(760px, calc(100vh - 30px)); }
.product-dialog-media { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.product-gallery { position: relative; min-height: 0; flex: 1; overflow: hidden; background: #e9e8df; }
.product-gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.product-gallery-track::-webkit-scrollbar { display: none; }
.product-gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.product-gallery-slide img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.gallery-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(247,246,239,.9); color: #26372d; font-size: 18px; box-shadow: 0 8px 28px rgba(23,35,27,.15); }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow:disabled { display: none; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-count { position: absolute; right: 16px; bottom: 14px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(36,50,41,.8); color: #fff; font-size: 10px; letter-spacing: .08em; }
.product-gallery-thumbnails { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: #f1f0e8; scrollbar-width: thin; }
.gallery-thumbnail { flex: 0 0 62px; width: 62px; height: 62px; padding: 0; border: 1px solid transparent; background: transparent; opacity: .58; }
.gallery-thumbnail[aria-current="true"] { border-color: #34483d; opacity: 1; }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-dialog-copy { min-height: 0; overflow-y: auto; justify-content: flex-start; }
.product-dialog-description p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.product-dialog-details { width: 100%; margin: 10px 0 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-dialog-details > span { display: block; margin-bottom: 10px; color: #34483d; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-dialog-details ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.product-dialog-details li { position: relative; padding-left: 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-dialog-details li::before { content: "—"; position: absolute; left: 0; color: #7b8a7a; }
@media (max-width: 700px) {
  .product-dialog { overflow-y: auto; }
  .product-dialog-layout { height: auto; max-height: none; }
  .product-dialog-media { min-height: 430px; }
  .product-gallery { height: 360px; flex: 0 0 360px; }
  .product-gallery-slide img { height: 360px; }
  .product-dialog-copy { overflow: visible; }
  .gallery-arrow { width: 38px; height: 38px; }
}
