/* Local product carousel: restrained motion, with native vertical touch scrolling. */
.stack-panel.swipe-enabled {
  touch-action: pan-y pinch-zoom;
  overflow-anchor: none;
  --stack-drag: 0px;
  --stack-drag-opacity: 1;
}
.stack-panel.swipe-enabled > .stack-panel-top,
.stack-panel.swipe-enabled > .stack-copy,
.stack-panel.swipe-enabled > .stack-visual {
  translate: var(--stack-drag) 0;
  opacity: var(--stack-drag-opacity);
  transition: translate .24s cubic-bezier(.2,.7,.3,1), opacity .24s ease;
}
.stack-panel.swipe-enabled.is-dragging { user-select: none; -webkit-user-select: none; }
.stack-panel.swipe-enabled.is-dragging > .stack-panel-top,
.stack-panel.swipe-enabled.is-dragging > .stack-copy,
.stack-panel.swipe-enabled.is-dragging > .stack-visual,
.stack-panel.swipe-enabled.is-swipe-changing > .stack-panel-top,
.stack-panel.swipe-enabled.is-swipe-changing > .stack-copy,
.stack-panel.swipe-enabled.is-swipe-changing > .stack-visual { transition: none; }
.stack-panel.swipe-enabled.is-swipe-changing,
.stack-panel.swipe-enabled.is-swipe-changing .stack-visual.is-switching { animation: none; }
.stack-panel.swipe-enabled:focus-visible {
  outline: 2px solid #168ca4;
  outline-offset: 5px;
}
.stack-swipe-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin-top: -5px;
  padding-top: 10px;
  border-top: 1px solid rgba(42,126,142,.13);
}
.stack-swipe-controls::before {
  content: '';
  height: 2px;
  width: 34px;
  margin-right: auto;
  border-radius: 2px;
  background: linear-gradient(90deg,#42b8c2,rgba(66,184,194,.1));
}
.stack-swipe-count {
  min-width: 46px;
  text-align: center;
  color: #147f97;
  font: 11px var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.stack-swipe-count span { color: #86a6af; margin-left: 3px; }
.stack-swipe-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  color: #167d91;
  border: 1px solid #cce4e7;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  transition: background .2s, border-color .2s, transform .2s;
}
.stack-swipe-controls button svg { width: 17px; height: 17px; pointer-events: none; }
.stack-swipe-controls button:hover { border-color: #88c4ce; background: #fff; }
.stack-swipe-controls button:active { transform: scale(.94); }
.stack-swipe-controls button:focus-visible { outline: 2px solid #168ca4; outline-offset: 3px; }
@media (hover:hover) and (pointer:fine) {
  .stack-panel.swipe-enabled { cursor: grab; }
  .stack-panel.swipe-enabled.is-dragging { cursor: grabbing; }
  .stack-panel.swipe-enabled a,
  .stack-panel.swipe-enabled button { cursor: pointer; }
}
@media (max-width:760px) {
  .stack-swipe-controls { gap: 10px; margin-top: 0; padding-top: 12px; }
  .stack-swipe-controls button { width: 44px; height: 44px; flex-basis: 44px; }
}
@media (prefers-reduced-motion:reduce) {
  .stack-panel.swipe-enabled > .stack-panel-top,
  .stack-panel.swipe-enabled > .stack-copy,
  .stack-panel.swipe-enabled > .stack-visual,
  .stack-swipe-controls button { transition: none; }
}
