/*
 * New Arrivals Scroll Carousel — homepage [mr_arrivals]
 * @package log-core
 */

.arrivals-viewport {
	position: relative;
}

#arrivals .trend-viewall {
	margin-top: 8px;
}

.arrivals-row {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 10px 4px 16px;
	margin-top: 8px;
	cursor: grab;
	scroll-behavior: smooth;
}

.arrivals-row.dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}

.arrivals-row::-webkit-scrollbar {
	display: none;
}

.arrivals-row>* {
	scroll-snap-align: start;
	flex-shrink: 0;
	width: 240px;
}

/* ── Fade overlays ── */
.arrivals-fade {
	position: absolute;
	top: 10px;
	bottom: 18px;
	width: 64px;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	transition: opacity .3s var(--ease);
}

.arrivals-fade.fade-l {
	left: 0;
	background: linear-gradient(90deg, var(--paper) 22%, transparent);
}

.arrivals-fade.fade-r {
	right: 0;
	background: linear-gradient(270deg, var(--paper) 22%, transparent);
}

/* ── Scroll controls (arrows) ── */
.scroll-controls {
	display: flex;
	gap: 10px;
}

.scroll-arrow {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.4px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .25s var(--ease);
	background: #fff;
	cursor: pointer;
	color: var(--ink-700);
	padding: 0;
}

.scroll-arrow:hover {
	background: var(--plum-700);
	border-color: var(--plum-700);
	color: #fff;
}

.scroll-arrow .icon {
	width: 16px;
	height: 16px;
}

.scroll-arrow.disabled {
	opacity: .32;
	pointer-events: none;
}

/* ── Dots ── */
.scroll-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 24px;
}

.scroll-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line);
	transition: all .3s var(--ease);
	cursor: pointer;
	border: none;
	padding: 0;
}

.scroll-dot.active {
	width: 24px;
	background: var(--sage-600);
}