/* V926 — Manual shop product gallery. No autoplay. */
#productGrid > .product > .cover.has-product-gallery-v926,#publicProductGrid > .public-product > .public-product-cover.has-product-gallery-v926{position:relative;overflow:hidden}
.product-gallery-v926{
  position:absolute;inset:0;z-index:0;
  display:block;width:100%;height:100%;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;scroll-behavior:smooth;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;touch-action:pan-x pan-y;
  cursor:grab;
}
.product-gallery-v926::-webkit-scrollbar{display:none}
.product-gallery-v926.dragging-v926{cursor:grabbing;scroll-behavior:auto;scroll-snap-type:none}
.product-gallery-track-v926{display:flex;width:100%;height:100%;min-width:100%}
.product-gallery-image-v926{
  flex:0 0 100%;width:100%;height:100%;min-width:100%;
  object-fit:cover;scroll-snap-align:start;scroll-snap-stop:always;
  user-select:none;-webkit-user-drag:none;
}
.product-gallery-dots-v926{
  position:absolute;left:50%;bottom:6px;z-index:8;transform:translateX(-50%);
  display:flex;align-items:center;justify-content:center;gap:4px;
  min-height:15px;padding:3px 6px;border-radius:999px;
  background:rgba(255,255,255,.78);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  box-shadow:0 1px 5px rgba(15,23,42,.12);
}
.product-gallery-dot-v926{
  appearance:none;border:0;margin:0;padding:0;width:5px;height:5px;border-radius:50%;
  background:rgba(71,85,105,.4);box-shadow:none;cursor:pointer;transition:width .15s ease,background .15s ease;
}
.product-gallery-dot-v926.active{width:12px;border-radius:999px;background:#3187ee}
#productGrid > .product .cover.has-product-gallery-v926 > .tag,
#productGrid > .product .cover.has-product-gallery-v926 > .discount-badge-v49,
#productGrid > .product .cover.has-product-gallery-v926 > .product-promotion-badge-v184,
#publicProductGrid > .public-product .public-product-cover.has-product-gallery-v926 > .tag,
#publicProductGrid > .public-product .public-product-cover.has-product-gallery-v926 > .product-promotion-badge-v184{z-index:10}

@media (max-width:760px){
  /* Match V724: whole product image remains visible on compact phones. */
  body.webshop-v724 .product-gallery-image-v926{padding:3px!important;object-fit:contain!important}
  .product-gallery-dots-v926{bottom:4px;min-height:13px;padding:2px 5px;gap:3px}
  .product-gallery-dot-v926{width:4px;height:4px}
  .product-gallery-dot-v926.active{width:10px}
}
@media (prefers-reduced-motion:reduce){
  .product-gallery-v926{scroll-behavior:auto}
  .product-gallery-dot-v926{transition:none}
}


/* V931 — Condition popup uses the same manual 1–3 image gallery. */
.condition-product-gallery-v931{position:relative;width:100%;height:170px;margin-bottom:12px;overflow:hidden;border:1px solid #eef2f7;border-radius:16px;background:#fff}
.condition-product-gallery-viewport-v931{width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x pan-y;cursor:grab}
.condition-product-gallery-viewport-v931::-webkit-scrollbar{display:none}.condition-product-gallery-viewport-v931.dragging-v926{cursor:grabbing;scroll-behavior:auto;scroll-snap-type:none}
.condition-product-gallery-track-v931{display:flex;width:100%;height:100%}.condition-product-gallery-image-v931{flex:0 0 100%;width:100%;height:100%;min-width:100%;object-fit:contain;scroll-snap-align:start;scroll-snap-stop:always;background:#fff;user-select:none;-webkit-user-drag:none}
.condition-product-gallery-dots-v931{position:absolute;left:50%;bottom:7px;z-index:3;transform:translateX(-50%);display:flex;gap:4px;align-items:center;padding:3px 6px;border-radius:999px;background:rgba(255,255,255,.86);box-shadow:0 1px 6px rgba(15,23,42,.12)}
.condition-product-gallery-dot-v931{appearance:none;border:0;margin:0;padding:0;width:5px;height:5px;border-radius:999px;background:rgba(71,85,105,.4)}.condition-product-gallery-dot-v931.active{width:12px;background:#3187ee}
@media(max-width:760px){.condition-product-gallery-v931{height:145px;border-radius:14px;margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.condition-product-gallery-viewport-v931{scroll-behavior:auto}}

/* V933 — direct-on-card swipe/drag reliability. */
#productGrid > .product > .cover.has-product-gallery-v926,
#publicProductGrid > .public-product > .public-product-cover.has-product-gallery-v926{
  /* V985: the ancestor used to be pan-y only, which blocks the browser from
     starting a horizontal swipe on the scrollable gallery below it. */
  touch-action:pan-x pan-y!important;
}
.product-gallery-v926,.condition-product-gallery-viewport-v931{
  -webkit-user-select:none;user-select:none;
}
.product-gallery-v926{touch-action:pan-x pan-y!important;overscroll-behavior-x:contain!important;}
.condition-product-gallery-viewport-v931{touch-action:pan-x pan-y!important;}
.product-gallery-image-v926,.condition-product-gallery-image-v931{
  pointer-events:auto;
}
