/*
 * Custom DTC Cart Drawer — "Others Also Bought" / empty-cart recommendation
 * carousel. Swipe/drag only, by design — no arrow or dot controls: the
 * track is a native scroll-snap container, so touch and trackpad dragging
 * already work with zero JS. cart-drawer-carousel.js only adds autoplay and
 * keyboard arrow-key paging on top. Loaded alongside cart-drawer-cards.css,
 * which styles the card itself.
 */

.cdc-carousel { position: relative; }

.cdc-carousel__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	/* pan-x only (not pan-x pan-y): this track claims horizontal gestures
	   for itself and lets vertical ones fall through to .cdc-scroll above
	   it, rather than trying to handle both, which is what let a diagonal
	   swipe get resolved as a horizontal pan of the whole drawer. Paired
	   with overscroll-behavior-x so hitting either end of the track doesn't
	   chain into panning its parent once the track itself can't scroll
	   further. */
	touch-action: pan-x;
	overscroll-behavior-x: contain;
	padding: 4px;
	margin: -4px;
}
.cdc-carousel__track::-webkit-scrollbar { display: none; }
.cdc-carousel__track:focus-visible { outline: 2px solid var(--cdc-dark); outline-offset: 4px; }

/*
 * One full-width row per slide — matches the reference design, where each
 * horizontal swipe reveals the next whole product row rather than paging
 * through a grid of small tiles. The slight peek of the next card's edge is
 * a deliberate width-under-100% (not a layout accident): it's the visual
 * cue that more items exist to swipe to.
 */
.cdc-carousel__slide {
	flex: 0 0 auto;
	width: 94%;
	scroll-snap-align: start;
}

/* Section wrapper + heading — shared by "Others Also Bought" and the
   empty-cart bestsellers carousel. */
.cdc-upsell { padding: 18px 0 4px; }
.cdc-upsell-title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0 0 12px;
	color: var(--cdc-dark);
}
