.product-gallery{min-width:0;width:100%;margin:0 0 24px}
.product-top>div,.card,.grid2>div{min-width:0}
.product-top{align-items:start}
.gallery-viewport{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;border:1px solid var(--line);border-radius:12px;background:#fff;color:#202a24;overscroll-behavior-x:contain}
.gallery-slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
.gallery-slide img{display:block;width:100%;height:260px;padding:12px;object-fit:contain;cursor:zoom-in}
.gallery-full .gallery-slide img{height:420px;padding:18px}
.gallery-slide figcaption{padding:10px 12px;font-size:12px;line-height:1.4;text-align:center;min-height:50px;background:#f5f5f1;color:#414a41}
.gallery-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0 8px}
.gallery-controls[hidden],.gallery-thumbs[hidden]{display:none}
.gallery-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);font-size:28px;line-height:1}
.gallery-arrow:disabled{opacity:.35;cursor:default}
.gallery-count{font-size:12px;text-align:center;min-width:40px;font-variant-numeric:tabular-nums}
.gallery-enlarge{margin-left:auto;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:24px;padding:8px 12px;min-height:44px;font-size:12px}
.gallery-thumbs{display:flex;gap:7px;overflow-x:auto;padding:4px 2px;scrollbar-width:thin}
.gallery-thumb{flex:1 0 44px;min-width:44px;max-width:80px;height:60px;padding:3px;border:2px solid var(--line);border-radius:7px;background:#fff}
.gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.gallery-thumb[aria-pressed=true]{border-color:var(--olive);box-shadow:0 0 0 1px var(--olive)}
.product-gallery .gallery-source{font-size:10px;line-height:1.5;color:var(--muted);margin:9px 0 0}
.gallery-source a{text-decoration:underline;text-underline-offset:2px}
.gallery-dialog{width:min(1080px,calc(100% - 32px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);overflow-y:auto}
.gallery-dialog::backdrop{background:#09130ed9}
.gallery-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.gallery-dialog-title{font-size:16px;line-height:1.3}
.gallery-close{flex-shrink:0;min-height:44px;border:1px solid var(--line);border-radius:24px;padding:8px 14px;background:var(--surface);color:var(--ink);font-size:14px}
.gallery-large-image{display:block;width:100%;height:min(65dvh,720px);object-fit:contain;background:#fff;border-radius:10px}
.gallery-large-caption{font-size:14px;margin:12px 0;text-align:center}
.gallery-dialog-controls{display:flex;justify-content:center;align-items:center;gap:20px}
.gallery-large-count{font-size:13px;min-width:40px;text-align:center}
@media(max-width:650px){.gallery-full .gallery-slide img{height:330px;padding:12px}.gallery-dialog{padding:14px}.gallery-slide img{height:280px}.gallery-thumb{height:54px}.gallery-large-image{height:55dvh}}
@media print{.gallery-controls,.gallery-thumbs,.gallery-dialog{display:none!important}.gallery-slide:not(:first-child){display:none}.gallery-source{display:none}}

.deal-card>.product-gallery{padding:14px 14px 0;margin-bottom:0}.deal-card .gallery-slide img{height:240px}.comparison-galleries{margin-bottom:28px}
