.main {
	padding: 40px 0;
}

.main .container {
	padding: 0 15px;
}

a {
	text-decoration: none;
}

.slider-container {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.slide.active {
	opacity: 1;
	z-index: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.prev-btn,
.next-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 18px;
	z-index: 10;
	transition: background 0.3s ease;
	border-radius: 4px;
}

.prev-btn {
	left: 10px;
}

.next-btn {
	right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 992px) {
	.slider-container {
		height: 300px;
	}
}

@media (max-width: 768px) {
	.slider-container {
		height: 220px;
	}

	.prev-btn,
	.next-btn {
		padding: 8px 12px;
		font-size: 14px;
	}

	.prev-btn {
		left: 5px;
	}

	.next-btn {
		right: 5px;
	}
}

@media (max-width: 480px) {
	.slider-container {
		height: 180px;
	}
}

.popular-category {
	margin: 40px 0;
}

.popular-category-title {
	font-size: 24px;
	font-weight: 600;
	color: #464c53;
}

.category-list {
	margin: 40px 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 180px));
	justify-content: center;
	gap: 12px;
}

@media (max-width: 550px) {
	.category-list {
		grid-template-columns: repeat(3, 1fr);
		justify-items: center;
	}
}

@media (max-width: 480px) {
	.category-list {
		grid-template-columns: repeat(2, minmax(170px, 200px));
		justify-items: center;
	}

	.category-item {
		min-width: 0;
		width: 100%;
		max-width: 200px;
	}
}

.category-item {
	padding: 20px 0;
	background: white;
	width: 100%;
	height: 160px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
}

.category-name {
    white-space: nowrap;    /* Запрещаем перенос текста на новую строку */
    overflow: hidden;       /* Скрываем всё, что выходит за пределы блока */
    text-overflow: ellipsis;
    text-align: center;
    width: 145px;
}

.category-item img {
	width: 85%;
	height: 70%;
	object-fit: scale-down;
	border-radius: 8px;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.products-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

.products-title {
	font-size: 24px;
	font-weight: 600;
	color: #212427;

}

.products-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 16px;
}

.product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 2;
}

.favorite-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #999;
	z-index: 10;
	transition: all 0.3s ease;
}

.favorite-btn:hover {
	color: #ff3b30;
}

.badge-discount {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: rgb(115, 190, 111);
	color: white;
	font-size: 10px;
	font-weight: 600;
	padding: 4px;
	border-radius: 4px;
	z-index: 10;
}

.product-image {
	width: 100%;
	height: 160px;
	object-fit: contain;
	margin-bottom: 10px;
}

.product-title {
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	margin: 0 0 8px 0;
	font-weight: 400;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 60px;
}

.rating-container {
	display: flex;
	align-items: center;
	font-size: 13px;
	gap: 4px;
}

.rating-score {
	font-weight: bold;
	color: #333;
}

.stars {
	color: #ffc107;
	font-size: 12px;
}

.reviews-count {
	color: #999;
}

.price {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #000;
	margin-bottom: 12px;
}

.currency {
	font-size: 16px;
}

.add-to-cart-btn {
	background-color: #2196f3;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 8px 0;
	width: 100%;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	margin-top: auto;
	transition: background 0.2s;
}

.add-to-cart-btn:hover {
	background-color: #1976d2;
}

.multi-slider-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 10px;
}

.multi-slider-track-container {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
}

.multi-slider-track-container::-webkit-scrollbar {
	display: none;
}

.multi-slider-track {
	display: flex;
	gap: 16px;
	padding: 10px 0;
	width: max-content;
}

.product-card {
	background: #fff;
	border-radius: 12px;
	padding: 12px;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
	cursor: pointer;
	width: calc((100% - 80px) / 6);
	max-width: 215px;
	min-width: 170px;
	flex-shrink: 0;
	scroll-snap-align: start;
}

.ms-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: white;
	border: 1px solid #eee;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: all 0.3s;
}

.ms-btn:hover {
	background: #f8f9fa;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ms-prev {
	left: -20px;
}

.ms-next {
	right: -20px;
}

@media (max-width: 1400px) {
	.product-card {
		width: 200px;
	}
}

@media (max-width: 992px) {
	.ms-btn {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.ms-prev {
		left: -10px;
	}

	.ms-next {
		right: -10px;
	}
}

@media (max-width: 768px) {
	.ms-btn {
		display: none;
	}

	.multi-slider-wrapper {
		padding: 0;
	}

	.multi-slider-track {
		gap: 15px;
	}

	.product-card {
		scroll-snap-align: center;
		margin-right: 0;
	}

	.products-title {
		text-align: center;
	}
}
