/* Home page dynamic layout */

.kids-shop-hero {
	margin-top: 16px;
}

.kids-shop-hero__container {
	width: 100%;
	max-width: 100%;
}

.kids-shop-hero-slider {
	position: relative;
	width: 100%;
}

.kids-shop-hero-slider .carousel-container {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 345px;
	background: #e6e6e6;
	border-radius: 4px;
}

.kids-shop-hero-slider .carousel-wrapper {
	display: flex;
	height: 100%;
	transition: transform 0.45s ease;
	will-change: transform;
}

.kids-shop-hero-slider .carousel-slide {
	flex: 0 0 100%;
	min-width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.kids-shop-hero-slider .carousel-slide a,
.kids-shop-hero-slide-link {
	display: block;
	height: 100%;
	line-height: 0;
}

.kids-shop-hero-slider .carousel-slide img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.kids-shop-hero-slider .carousel-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kids-shop-hero-slider .carousel-container:hover .carousel-control {
	opacity: 1;
	visibility: visible;
}

.kids-shop-hero-slider .carousel-control.prev {
	left: 12px;
}

.kids-shop-hero-slider .carousel-control.next {
	right: 12px;
}

.kids-shop-hero-slider .carousel-indicators {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
}

.kids-shop-hero-slider .carousel-indicators .indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
}

.kids-shop-hero-slider .carousel-indicators .indicator.active {
	background: #fff;
}

@media only screen and (max-width: 599px) {
	.kids-shop-hero-slider .carousel-container {
		height: 31.46667vw;
		min-height: 120px;
	}
}

.kids-shop-home .products-cards {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

@media (max-width: 1199px) {
	.kids-shop-home .products-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.kids-shop-home .products-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

.kids-shop-home-section:empty {
	display: none;
}

/* ── Add-to-cart spinner ─────────────────────────────────────────── */
@keyframes ks-rotate {
	to { transform: rotate(360deg); }
}

.ks-spin {
	display: block;
	animation: ks-rotate 0.75s linear infinite;
}

/* ── Toast notification ──────────────────────────────────────────── */
.ks-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 99999;
	white-space: nowrap;
	pointer-events: none;
}

.ks-toast.ks-toast--in {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.ks-toast--success {
	background: linear-gradient(135deg, #1db954 0%, #17a345 100%);
}

.ks-toast--error {
	background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.ks-toast__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ks-toast__msg {
	flex: 1;
}

.ks-toast__view {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 50px;
	padding: 4px 12px;
	font-size: 13px;
	transition: background 0.2s;
}

.ks-toast__view:hover {
	background: rgba(255, 255, 255, 0.2);
}

.ks-toast__close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	border-radius: 50px;
	padding: 4px 12px;
	cursor: pointer;
	transition: background 0.2s;
}

.ks-toast__close:hover {
	background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 480px) {
	.ks-toast {
		bottom: 80px;
		left: 16px;
		right: 16px;
		transform: translateY(20px);
		white-space: normal;
		border-radius: 14px;
	}
	.ks-toast.ks-toast--in {
		transform: translateY(0);
	}
}
