.media-gallery{min-width:0;outline-offset:5px}.gallery-stage{position:relative;aspect-ratio:1;overflow:hidden;border-radius:var(--radius-panel);background:var(--soft);touch-action:pan-y}.gallery-slide{width:100%;height:100%}.gallery-slide img,.gallery-slide video{display:block;width:100%;height:100%;object-fit:contain}.gallery-slide video{background:#19171c}.gallery-video-expand{position:absolute;top:14px;left:14px;z-index:1;border:1px solid #ffffff50;border-radius:999px;background:#302d36d9;color:#fff;padding:9px 13px;font:12px var(--body);cursor:pointer}.gallery-image-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.gallery-image-open:focus-visible{outline:3px solid var(--green);outline-offset:-5px}.product-lightbox{width:96vw;max-width:1600px;height:94dvh;max-height:94dvh;padding:16px;border:0;border-radius:18px;background:#18161b;color:#fff;overflow:hidden;box-shadow:0 15px 80px #0008}.product-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}.product-lightbox::backdrop{background:#151218d9}.lightbox-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.lightbox-toolbar button{padding:10px 14px;border:1px solid #ffffff50;border-radius:999px;background:#ffffff12;color:#fff;cursor:pointer;font:14px var(--body)}.lightbox-toolbar button:hover{background:#ffffff30}.lightbox-stage{position:relative;min-height:0;overflow:hidden;display:grid;place-items:center}.lightbox-stage img,.lightbox-stage video{display:block;width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain}.lightbox-stage.has-video .gallery-counter{bottom:64px}.lightbox-caption{margin:0;text-align:center;color:#eee;font-size:14px;overflow-wrap:anywhere}@media (max-width:600px){.product-lightbox{padding:10px;width:98vw;height:96dvh;max-height:96dvh;border-radius:12px}.lightbox-toolbar{gap:6px}.lightbox-toolbar button{padding:9px 10px;font-size:12px}.lightbox-counter{font-size:12px}}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#fffcf7ed;color:var(--ink);font:38px/1 var(--body);cursor:pointer;box-shadow:0 2px 12px #0001}.gallery-prev{left:16px}.gallery-next{right:16px}.gallery-arrow:hover{background:#fff}.gallery-counter{position:absolute;right:16px;bottom:16px;padding:7px 13px;border-radius:999px;background:#302d36c9;color:#fff;font-size:14px;pointer-events:none}.gallery-stage:has(.gallery-slide:not([hidden]) video) .gallery-counter{bottom:64px}.gallery-thumbnails{display:flex;gap:12px;padding:16px 3px 4px;overflow-x:auto}.gallery-thumb{position:relative;flex:0 0 80px;width:80px;height:80px;border:2px solid transparent;border-radius:16px;padding:2px;overflow:hidden;background:var(--soft);color:var(--ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:12px var(--body)}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:11px}.gallery-thumb[aria-pressed=true]{border-color:var(--green)}.gallery-video-icon{position:absolute;inset:0;display:grid;place-items:center;font-size:23px;color:#fff;text-shadow:0 1px 7px #000;background:#0002;pointer-events:none}.gallery-message{font-size:13px;color:var(--muted);margin-top:10px}@media (max-width:600px){.gallery-arrow{width:40px;height:40px;font-size:32px}.gallery-prev{left:12px}.gallery-next{right:12px}.gallery-thumb{flex-basis:68px;width:68px;height:68px}.gallery-thumbnails{gap:10px}.gallery-counter{right:12px;bottom:12px}}.gallery-variant-note{margin:14px 0 0;font-size:13px;color:var(--muted);line-height:1.6}.variant-samples{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px}.variant-sample{display:flex;align-items:center;gap:10px;flex:1;min-width:150px;text-align:left;border:1px solid var(--line);border-radius:14px;padding:8px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}.variant-sample img{width:52px;height:52px;object-fit:contain;border-radius:8px}
