/* 1.19.7: No exposed browser scrollbar; cards remain real scroll containers for keyboard, wheel and native touch. */
body.theme-demo2 .demo2-home .d2-drag-rail{
  overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none!important;-ms-overflow-style:none!important;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
  scroll-behavior:auto;
  cursor:grab;
  padding-bottom:3px!important;
}
body.theme-demo2 .demo2-home .d2-drag-rail::-webkit-scrollbar,
body.theme-demo2 .demo2-home .d2-drag-rail::-webkit-scrollbar-track,
body.theme-demo2 .demo2-home .d2-drag-rail::-webkit-scrollbar-thumb{display:none!important;width:0!important;height:0!important;background:transparent!important}
body.theme-demo2 .demo2-home .d2-drag-rail.d2-is-dragging{cursor:grabbing!important;scroll-snap-type:none!important;scroll-behavior:auto!important;user-select:none!important;-webkit-user-select:none!important}
body.theme-demo2 .demo2-home .d2-drag-rail.d2-is-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
body.theme-demo2 .demo2-home .d2-drag-rail:focus-visible{outline:2px solid var(--d2-accent,#294239);outline-offset:4px;border-radius:8px}
body.theme-demo2 .demo2-home .d2-product-slider{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:13px!important;scroll-snap-type:x proximity}
body.theme-demo2 .demo2-home .d2-product-slider>.demo2-shop-card{flex:0 0 clamp(172px,22.5%,255px)!important;scroll-snap-align:start;min-width:0!important}
body.theme-demo2 .demo2-home .d2-category-list{padding-top:3px;padding-bottom:3px!important;min-width:0}
body.theme-demo2 .demo2-home .d2-section-title{flex-wrap:wrap;align-items:center}
body.theme-demo2 .d2-rail-indicator{display:inline-flex;align-items:center;gap:9px;margin-inline-start:auto;color:var(--d2-muted,#77877e);white-space:nowrap;user-select:none;line-height:1.5}
body.theme-demo2 .d2-rail-indicator[hidden]{display:none!important}
body.theme-demo2 .d2-rail-indicator-text{font-size:10px;font-weight:600}
body.theme-demo2 .d2-rail-progress{position:relative;display:block;width:54px;height:3px;border-radius:99px;background:#e8ece8;overflow:hidden;direction:ltr}
body.theme-demo2 .d2-rail-progress i{display:block;position:absolute;left:0;top:0;height:100%;min-width:9px;background:var(--d2-accent,#294239);border-radius:99px;transition:width .15s ease,transform .15s ease}
/* The next tile peeks into view, replacing oversized arrow buttons. */
body.theme-demo2 .demo2-home .d2-products-widget .d2-product-slider.d2-has-overflow{padding-inline-end:10px}
body.theme-demo2 .demo2-home .d2-category-list.d2-has-overflow{padding-inline-end:12px}
body.theme-demo2 [data-d2-carousel]{cursor:grab}
body.theme-demo2 [data-d2-carousel].d2-carousel-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
body.theme-demo2 [data-d2-carousel] img{user-select:none;-webkit-user-select:none}
@media(max-width:740px){
 body.theme-demo2 .demo2-home .d2-product-slider>.demo2-shop-card{flex-basis:calc(50% - 11px)!important;max-width:240px!important}
 body.theme-demo2 .d2-rail-indicator-text{display:none}
 body.theme-demo2 .d2-rail-progress{width:38px}
}
@media(prefers-reduced-motion:reduce){body.theme-demo2 .d2-rail-progress i{transition:none}}

/* Guard against stale controls injected by the legacy rail enhancement. */
body.theme-demo2 .demo2-home .cms-rail-controls{display:none!important}
