/*
 * Block: product grids — new arrivals (tabs) and special offers (rotating window).
 * Reference: grid gap 20px; arrivals 1 / 2 (sm) / 3 (md) / 5 (lg) columns; special offers 1 / 2 (sm) / 4 (lg).
 */

.kd-home .kd-sec--arrivals {
	padding-block: 0 56px;
}

.kd-home .kd-sec--special {
	padding-block: 32px;
}

.kd-home .kd-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr);
}

.kd-home .kd-grid__item {
	min-width: 0;
	display: flex;
}

.kd-home .kd-grid__item > .kd-card {
	flex: 1;
}

@media (min-width: 640px) {
	.kd-home .kd-grid--cols-4,
	.kd-home .kd-grid--cols-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.kd-home .kd-grid--cols-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.kd-home .kd-grid--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.kd-home .kd-grid--cols-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Arrivals: the tab root wraps the header and the panels */
.kd-home .kd-arrivals {
	display: block;
}

/* Rotating grid: items are ordered by JS and hidden beyond the visible count */
.kd-home [data-kd-rotator] > [data-kd-item] {
	transition: opacity 0.2s var(--kd-ease);
}
