/* The scene preserves the original hero footprint; only product layers rotate. */
.editorial-store .hero-image-shell.hero-roll-scene {
  --hero-roll-length: 78%;
  --hero-roll-x: 44%;
  --hero-roll-y: 55%;
  --hero-roll-angle: 75.222deg;
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 1;
  filter: none;
  transition: none;
  isolation: isolate;
}
.hero-roll-scene .hero-roll-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  pointer-events: none;
}
.hero-roll-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Each tube rolls in place; the complete artwork stays within the scene. */
  pointer-events: none;
}
.hero-roll-product {
  position: absolute;
  left: var(--hero-roll-x);
  top: var(--hero-roll-y);
  width: var(--hero-roll-length);
  aspect-ratio: 4.2;
  transform: translate(-50%, -50%) rotate(var(--hero-roll-angle));
  transform-origin: center;
  backface-visibility: hidden;
}
.hero-roll-product[hidden] { display: none; }
.hero-roll-scene[data-hero-volume-active="true"] .hero-roll-product { visibility: hidden; }
.hero-roll-scene .hero-roll-product img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  user-select: none;
  pointer-events: none;
}
/* A correctly positioned first frame is available before JS or image decoding. */
.hero-roll-product[data-product-name="Americano"] {
  aspect-ratio: 968.226 / 233.472;
}
.hero-roll-scene .hero-roll-product[data-product-name="Americano"] img {
  width: 129.515216%;
  height: 537.109375%;
  left: calc(50% - 61.349313%);
  top: calc(50% - 290.727368%);
  transform-origin: 47.368421% 54.12815%;
  transform: rotate(-75.222deg);
}
.hero-roll-controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--ink, #111);
  font-size: 10px;
  letter-spacing: .04em;
}
.hero-roll-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.hero-roll-controls button[hidden] { display: none; }
.hero-roll-controls button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.hero-roll-controls button:disabled { cursor: default; }
.hero-roll-controls [data-hero-roll-next]:disabled { opacity: .35; }
.hero-roll-controls [data-hero-roll-name] { margin-left: 7px; }
.hero-roll-toggle-icon { display: inline-flex; justify-content: space-between; width: 9px; height: 11px; }
.hero-roll-toggle-icon::before, .hero-roll-toggle-icon::after { content: ''; width: 2px; height: 11px; background: currentColor; }
[data-hero-roll-toggle][data-paused="true"] .hero-roll-toggle-icon::before { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; background: none; }
[data-hero-roll-toggle][data-paused="true"] .hero-roll-toggle-icon::after { display: none; }
@media (max-width: 860px) {
  .hero-roll-controls { bottom: -19px; right: 3%; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-roll-product { animation: none; transition: none; }
  .hero-roll-toggle-icon { display: none; }
}
