@import url('categories-no-image.css');

/* Categories Section */
.categories-section {
	padding: 80px 0;
	background: linear-gradient(135deg, var(--primary-background-color) 0%, var(--secondary-background-color) 100%);
	position: relative;
}

.categories-section .section-title {
	text-align: center;
	margin-bottom: 60px;
}

.categories-section .section-title h2 {
	font-size: 42px;
	color: var(--sc-categories-v1-section-title-heading-text, var(--primary-title-color));
	margin-bottom: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.categories-section .section-title h2::after {
	content: "";
	display: block;
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-brand-color), var(--secondary-brand-color));
	margin: 20px auto 0;
	border-radius: 2px;
}

.categories-section .section-title p {
	font-size: 17px;
	color: var(--sc-categories-v1-section-title-paragraph-text, var(--primary-text-color));
	opacity: 0.75;
	margin-top: 15px;
	font-style: italic;
}

/* Categories Slider */
.categories-slider-wrapper {
	position: relative;
	padding: 0 60px;
}

.categories-slider-container {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.categories-slider-track {
	display: flex;
	gap: 25px;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	padding: 0;
	align-items: center;
}

.category-card {
	flex: 0 0 auto;
	display: block;
	position: relative;
	height: 320px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	transform: scale(0.85);
	opacity: 0.6;
}

.category-card.active {
	transform: scale(1);
	opacity: 1;
	z-index: 2;
}

.categories-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border: 2px solid var(--sc-categories-v1-slider-btn-border, var(--primary-brand-color));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	background-color: var(--sc-categories-v1-slider-btn-bg, var(--primary-button-background-color));
	color: var(--sc-categories-v1-slider-btn-text, var(--primary-button-text-color));
	font-size: 18px;
}

.categories-slider-btn:hover {
	background: var(--sc-categories-v1-slider-btn-hover-bg, var(--primary-button-hover-background-color));
	color: var(--sc-categories-v1-slider-btn-hover-text, var(--primary-button-hover-text-color));
	transform: translateY(-50%) scale(1.1);
}

.categories-slider-btn:active {
	transform: translateY(-50%) scale(0.95);
}

.categories-slider-btn.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.categories-slider-prev {
	left: 0;
}

.categories-slider-next {
	right: 0;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes shine {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

.category-card {
	display: block;
	position: relative;
	height: 320px;
	background: linear-gradient(135deg, var(--primary-brand-color) 0%, var(--secondary-brand-color) 100%);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	animation: fadeInUp 0.8s ease-out forwards;
	opacity: 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover {
	transform: translateY(-12px) scale(1.02);
}

.category-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, var(--overlay-color) 0%, var(--overlay-color) 100%);
	transition: opacity 0.5s ease;
	z-index: 1;
}

.category-card:hover .category-overlay {
	background: linear-gradient(135deg, rgba(28, 28, 28, 0.85) 0%, rgba(28, 28, 28, 0.7) 100%);
}

.category-shine {
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transform: skewX(-25deg);
	z-index: 2;
	transition: left 0.7s ease;
}

.category-card:hover .category-shine {
	left: 100%;
}

.category-info {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 30px;
	text-align: center;
}

.category-icon-wrapper {
	width: 80px;
	height: 80px;
	background: var(--sc-categories-v1-category-icon-wrapper-bg, rgba(255, 255, 255, 0.15));
	backdrop-filter: blur(10px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 25px;
	border: 2px solid var(--sc-categories-v1-category-icon-wrapper-border, rgba(255, 255, 255, 0.3));
	transition: transform 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}

.category-card:hover .category-icon-wrapper {
	transform: scale(1.15) rotate(360deg);
	background: var(--sc-categories-v1-category-icon-wrapper-hover-bg, rgba(255, 255, 255, 0.25));
	border-color: var(--sc-categories-v1-category-icon-wrapper-hover-border, rgba(255, 255, 255, 0.5));
}

.category-icon-wrapper i {
	font-size: 36px;
	color: var(--sc-categories-v1-category-icon-wrapper-icon-text, #fff);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.category-name {
	font-size: 28px;
	font-weight: 700;
	color: var(--sc-categories-v1-category-name-text, #fff);
	margin-bottom: 12px;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.category-card:hover .category-name {
	transform: scale(1.05);
	text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.category-products {
	display: inline-block;
	font-size: 14px;
	color: var(--sc-categories-v1-category-products-text, rgba(255, 255, 255, 0.9));
	background: var(--sc-categories-v1-category-products-bg, rgba(255, 255, 255, 0.15));
	backdrop-filter: blur(10px);
	padding: 8px 20px;
	border-radius: 20px;
	margin-bottom: 25px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: 1px solid var(--sc-categories-v1-category-products-border, rgba(255, 255, 255, 0.2));
	transition: background 0.3s ease, border-color 0.3s ease;
}

.category-card:hover .category-products {
	background: var(--sc-categories-v1-category-products-hover-bg, rgba(255, 255, 255, 0.25));
	border-color: var(--sc-categories-v1-category-products-hover-border, rgba(255, 255, 255, 0.4));
}

.category-explore {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--sc-categories-v1-category-explore-text, #fff);
	font-size: 16px;
	font-weight: 600;
	padding: 12px 30px;
	background: var(--sc-categories-v1-category-explore-bg, rgba(255, 255, 255, 0.2));
	backdrop-filter: blur(10px);
	border: 2px solid var(--sc-categories-v1-category-explore-border, rgba(255, 255, 255, 0.3));
	border-radius: 30px;
	transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.category-card:hover .category-explore {
	background: var(--sc-categories-v1-category-explore-hover-bg, rgba(255, 255, 255, 0.3));
	border-color: var(--sc-categories-v1-category-explore-hover-border, rgba(255, 255, 255, 0.5));
	transform: scale(1.05);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.category-explore i {
	font-size: 18px;
	transition: transform 0.4s ease;
}

.category-card:hover .category-explore i {
	transform: translateX(5px);
}

/* Responsive Design for Categories */
@media (max-width: 992px) {
	.categories-section {
		padding: 60px 0;
	}

	.categories-section .section-title h2 {
		font-size: 1.375rem;
	}

	.category-card {
		height: 280px;
	}

	.category-name {
		font-size: 24px;
	}

	.category-icon-wrapper {
		width: 70px;
		height: 70px;
	}

	.category-icon-wrapper i {
		font-size: 32px;
	}
}

@media (max-width: 768px) {
	.categories-slider-wrapper {
		padding: 0 20px;
	}

	.categories-slider-container {
		overflow: hidden;
		margin: 0 -10px;
		padding: 0 10px;
	}

	.categories-slider-track {
		gap: 20px;
	}

	.category-card {
		height: 260px;
		transform: scale(0.85);
		opacity: 0.6;
	}

	.category-card.active {
		transform: scale(1);
		opacity: 1;
	}

	.categories-slider-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
		z-index: 15;
	}

	.categories-slider-prev {
		left: 10px;
	}

	.categories-slider-next {
		right: 10px;
	}

	.categories-section {
		padding: 50px 0;
	}

	.categories-section .section-title {
		margin-bottom: 40px;
	}

	.categories-section .section-title h2 {
		font-size: 1.25rem;
	}

	.category-info {
		padding: 30px 20px;
	}

	.category-icon-wrapper {
		width: 65px;
		height: 65px;
		margin-bottom: 20px;
	}

	.category-icon-wrapper i {
		font-size: 28px;
	}

	.category-name {
		font-size: 1rem;
	}

	.category-products {
		font-size: 12px;
		padding: 6px 16px;
		margin-bottom: 20px;
	}

	.category-explore {
		font-size: 14px;
		padding: 10px 24px;
	}

	.category-explore i {
		font-size: 16px;
	}
}

/* RTL Support */
[dir="rtl"] .categories-slider-prev,
html[dir="rtl"] .categories-slider-prev {
	left: auto;
	right: 0;
}

[dir="rtl"] .categories-slider-next,
html[dir="rtl"] .categories-slider-next {
	right: auto;
	left: 0;
}

[dir="rtl"] .categories-slider-track,
html[dir="rtl"] .categories-slider-track {
	direction: ltr;
}

@media (max-width: 768px) {
	[dir="rtl"] .categories-slider-prev,
	html[dir="rtl"] .categories-slider-prev {
		left: auto;
		right: 10px;
	}

	[dir="rtl"] .categories-slider-next,
	html[dir="rtl"] .categories-slider-next {
		right: auto;
		left: 10px;
	}
}
