/* A quiet cream stage, original photos and a user-controlled, three-dimensional fan. */
body.storefront-page #products>.product>.bundle-gallery{display:flex;flex-direction:column;position:relative;isolation:isolate;box-sizing:border-box;aspect-ratio:3/4;padding:0;border:1px solid #e2d2bb;background:radial-gradient(ellipse at 50% 36%,#fffdf7 0,#f2e9d9 72%);cursor:default;container-type:inline-size}
.bundle-gallery .bundle-stage{position:relative;flex:1;min-height:0;width:100%;perspective:850px;touch-action:pan-y;user-select:none}
.bundle-gallery .bundle-stage::after{content:"";position:absolute;left:19%;right:19%;bottom:9%;height:10%;border-radius:50%;background:#77523319;filter:blur(12px);pointer-events:none}
.bundle-gallery .bundle-slide{--shift:0%;--yaw:0deg;--roll:0deg;--scale:1;--lift:0px;position:absolute;z-index:3;left:50%;top:46%;display:block;width:54%;aspect-ratio:3/4;height:auto;max-height:84%;padding:0;border:1px solid #fff7e8;border-radius:12px;background:#e9dfcd;box-shadow:0 10px 20px #50361e2b;transform:translate(-50%,-50%) translateX(var(--shift)) translateY(var(--lift)) rotateY(var(--yaw)) rotate(var(--roll)) scale(var(--scale));transform-origin:center;overflow:hidden;cursor:pointer;transition:transform .45s cubic-bezier(.22,.7,.3,1),opacity .3s,box-shadow .2s,border-color .2s;backface-visibility:hidden}
.bundle-gallery .bundle-slide[data-position="left"]{--shift:-44%;--yaw:24deg;--roll:-6deg;--scale:.76;z-index:2}
.bundle-gallery .bundle-slide[data-position="right"]{--shift:44%;--yaw:-24deg;--roll:6deg;--scale:.76;z-index:2}
.bundle-gallery .bundle-slide[data-position="back"]{--scale:.7;opacity:0;visibility:hidden;pointer-events:none;z-index:1}
body.storefront-page #products .bundle-slide img{display:block;width:100%;height:100%;aspect-ratio:3/4;object-fit:cover;pointer-events:none;transform:none;border-radius:0;transition:none}
.bundle-gallery .bundle-slide:focus-visible{outline:3px solid #975d37;outline-offset:3px}
.bundle-gallery .bundle-gallery-hint{position:absolute;z-index:4;bottom:10px;left:6px;right:6px;display:flex;align-items:center;justify-content:center;gap:5px;color:#795638;font:12px/1.4 Arial,sans-serif;text-align:center;pointer-events:none}
.bundle-gallery .bundle-gallery-hint svg{width:15px;height:15px;flex:none}
.bundle-gallery .bundle-hint-touch,.bundle-gallery .bundle-hint-compact{display:none}
@media(hover:none),(pointer:coarse){.bundle-gallery .bundle-hint-mouse{display:none}.bundle-gallery .bundle-hint-touch{display:inline}}
.bundle-gallery .bundle-gallery-footer{position:relative;z-index:4;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:6px;flex:none;padding:10px 8px;border-top:1px solid #ddccb380;background:#fffcf5e6;min-height:70px;box-sizing:border-box}
.bundle-gallery .bundle-gallery-caption{min-width:0;text-align:center;color:#574735;font:12px/1.4 Arial,sans-serif}
.bundle-gallery [data-bundle-caption]{display:block;overflow-wrap:anywhere}
.bundle-gallery .bundle-gallery-count{display:block;margin-top:4px;font:11px/1.3 Arial,sans-serif;color:#8c6648;font-variant-numeric:tabular-nums;letter-spacing:1px}
.bundle-gallery .bundle-gallery-step{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #d9c4a8;border-radius:50%;background:#fffcf7;color:#975d37;cursor:pointer;transition:background-color .18s,color .18s,border-color .18s}
.bundle-gallery .bundle-gallery-step svg{width:17px;height:17px}
.bundle-gallery .bundle-gallery-step:hover{background:#975d37;border-color:#975d37;color:#fffdf8}
.bundle-gallery .bundle-gallery-step:focus-visible{outline:2px solid #975d37;outline-offset:3px}
@media(hover:hover) and (pointer:fine){
 .bundle-gallery .bundle-slide:hover{--lift:-5px;border-color:#c7986d;box-shadow:0 16px 28px #50361e40}
 .bundle-gallery .bundle-slide[data-position="center"]:hover{--yaw:-3deg;--roll:-1deg}
}
/* Keep the small cards legible, with a larger touch target and concise counter. */
@container(max-width:210px){
 .bundle-gallery .bundle-gallery-footer{grid-template-columns:40px minmax(0,1fr) 40px;min-height:48px;padding:3px 4px;gap:2px}
 .bundle-gallery .bundle-gallery-step{width:40px;height:40px;border-color:transparent;background:transparent}
 .bundle-gallery .bundle-gallery-step:hover{background:#975d37}
 .bundle-gallery [data-bundle-caption]{display:none}
 .bundle-gallery .bundle-gallery-count{font-size:12px;margin:0}
 .bundle-gallery .bundle-slide{top:44%;border-radius:8px}
 .bundle-gallery .bundle-gallery-hint{bottom:7px;font-size:12px;gap:4px}
 .bundle-gallery .bundle-hint-mouse,.bundle-gallery .bundle-hint-touch{display:none}
 .bundle-gallery .bundle-hint-compact{display:inline}
}
/* List thumbnails stay compact; the centred original photo opens the existing bundle details. */
@container(max-width:150px){.bundle-gallery .bundle-slide{width:50%;top:40%}}
body.storefront-page #products[data-view="list"] .bundle-gallery .bundle-gallery-footer{display:none}
body.storefront-page #products[data-view="list"] .bundle-gallery .bundle-stage{height:100%}
body.storefront-page #products[data-view="list"] .bundle-gallery .bundle-stage::after{display:none}
body.storefront-page #products[data-view="list"] .bundle-gallery .bundle-gallery-hint{display:none}
body.storefront-page #products[data-view="list"] .bundle-gallery .bundle-slide{display:none}
body.storefront-page #products[data-view="list"] .bundle-gallery .bundle-slide[data-position="center"]{display:block;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;transform:none;border:0;border-radius:0;box-shadow:none}
@media(prefers-reduced-motion:reduce){.bundle-gallery .bundle-slide,.bundle-gallery .bundle-gallery-step{transition:none}.bundle-gallery .bundle-slide:hover{--lift:0px}.bundle-gallery .bundle-slide[data-position="center"]:hover{--yaw:0deg;--roll:0deg}}
