/**
 * Mixcar Plugins - Car Makes & Body Type Slider Styles
 */

/* Slider Wrapper */
.mixcar-slider-wrapper {
	padding: 60px 20px;
	background: #ffffff;
	position: relative;
}

/* Title */
.mixcar-slider-title {
	font-size: 36px;
	font-weight: 700;
	color: #333333;
	margin: 0 0 10px 0;
	text-align: center;
	letter-spacing: -0.5px;
}

/* Subtitle */
.mixcar-slider-subtitle {
	font-size: 16px;
	color: #666666;
	text-align: center;
	margin: 0 0 40px 0;
	font-weight: 300;
}

/* Tabs Navigation */
.mixcar-slider-tabs {
	display: flex !important;
	justify-content: center !important;
	gap: 20px !important;
	margin: 40px 0 40px 0 !important;
	border-bottom: 2px solid #e0e0e0 !important;
	padding-bottom: 0 !important;
	position: relative !important;
	z-index: 100 !important;
	background: #ffffff !important;
}

.mixcar-tab-button {
	padding: 15px 30px !important;
	background: none !important;
	border: none !important;
	border-bottom: 3px solid transparent !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #666666 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	position: relative !important;
	bottom: -2px !important;
	z-index: 101 !important;
}

.mixcar-tab-button:hover {
	color: #1bc744 !important;
}

.mixcar-tab-button.mixcar-tab-active {
	color: #1bc744 !important;
	border-bottom-color: #1bc744 !important;
}

/* Tab Content */
.mixcar-tab-content {
	display: none;
	animation: fadeIn 0.3s ease;
}

.mixcar-tab-content.mixcar-tab-active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Swiper Container */
.mixcar-slider {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px;
}

/* Swiper Wrapper */
.mixcar-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

/* Swiper Slide */
.mixcar-slider .swiper-slide {
	height: auto;
	display: flex;
	align-items: stretch;
}

/* Slide Item */
.mixcar-slide-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	background: #f5f5f5;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.mixcar-slide-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(27, 199, 68, 0) 0%, rgba(27, 199, 68, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.mixcar-slide-item:hover {
	border-color: #1bc744;
	box-shadow: 0 8px 24px rgba(27, 199, 68, 0.2);
	transform: translateY(-8px);
}

.mixcar-slide-item:hover::before {
	opacity: 1;
}

/* Slide Image */
.mixcar-slide-image {
	width: 100%;
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 8px;
}

.mixcar-slide-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.mixcar-slide-item:hover .mixcar-slide-image img {
	transform: scale(1.1);
}

/* Slide Content */
.mixcar-slide-content {
	text-align: center;
	width: 100%;
}

/* Slide Title */
.mixcar-slide-title {
	font-size: 16px;
	font-weight: 600;
	color: #333333;
	margin: 0;
	transition: color 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mixcar-slide-item:hover .mixcar-slide-title {
	color: #1bc744;
}

/* Navigation Buttons - Always LTR Direction */
.mixcar-slider-prev,
.mixcar-slider-next {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 48px !important;
	height: 48px !important;
	background: #1bc744 !important;
	border: none !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #ffffff !important;
	font-size: 20px !important;
	transition: all 0.3s ease !important;
	z-index: 10 !important;
	box-shadow: 0 4px 12px rgba(27, 199, 68, 0.3) !important;
	outline: none !important;
	padding: 0 !important;
	direction: ltr !important; /* Force LTR direction */
}

.mixcar-slider-prev::before {
	content: '‹' !important;
	font-size: 28px !important;
	font-weight: bold !important;
	color: #ffffff !important;
}

.mixcar-slider-next::before {
	content: '›' !important;
	font-size: 28px !important;
	font-weight: bold !important;
	color: #ffffff !important;
}

/* Always keep left arrow on left side */
.mixcar-slider-prev {
	left: 10px !important;
	right: auto !important;
}

/* Always keep right arrow on right side */
.mixcar-slider-next {
	right: 10px !important;
	left: auto !important;
}

/* Force LTR positioning even in RTL mode */
[dir="rtl"] .mixcar-slider-prev,
html[dir="rtl"] .mixcar-slider-prev,
body[dir="rtl"] .mixcar-slider-prev {
	left: 10px !important;
	right: auto !important;
}

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

.mixcar-slider-prev:hover,
.mixcar-slider-next:hover {
	background: #19b33e !important;
	box-shadow: 0 6px 16px rgba(27, 199, 68, 0.4) !important;
	transform: translateY(-50%) scale(1.1) !important;
}

.mixcar-slider-prev:disabled,
.mixcar-slider-next:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

/* Hide Swiper Default Navigation */
.swiper-button-prev,
.swiper-button-next {
	display: none !important;
}

/* Pagination */
.mixcar-slider-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
}

.mixcar-slider-pagination .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: #ddd;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.mixcar-slider-pagination .swiper-pagination-bullet:hover {
	background: #1bc744;
	transform: scale(1.2);
}

.mixcar-slider-pagination .swiper-pagination-bullet-active {
	background: #1bc744;
	width: 32px;
	border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.mixcar-slider-wrapper {
		padding: 50px 15px;
	}

	.mixcar-slider-title {
		font-size: 28px;
		margin-bottom: 8px;
	}

	.mixcar-slider-subtitle {
		font-size: 14px;
		margin-bottom: 30px;
	}

	.mixcar-slide-image {
		height: 150px;
		margin-bottom: 12px;
	}

	.mixcar-slide-title {
		font-size: 14px;
	}

	.mixcar-slider-prev,
	.mixcar-slider-next {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.mixcar-slider-prev {
		left: -12px !important;
		right: auto !important;
	}

	.mixcar-slider-next {
		right: -12px !important;
		left: auto !important;
	}

	/* Force LTR positioning in RTL mode - Tablet */
	[dir="rtl"] .mixcar-slider-prev,
	html[dir="rtl"] .mixcar-slider-prev,
	body[dir="rtl"] .mixcar-slider-prev {
		left: -12px !important;
		right: auto !important;
	}

	[dir="rtl"] .mixcar-slider-next,
	html[dir="rtl"] .mixcar-slider-next,
	body[dir="rtl"] .mixcar-slider-next {
		right: -12px !important;
		left: auto !important;
	}
}

@media (max-width: 768px) {
	.mixcar-slider-wrapper {
		padding: 40px 12px;
	}

	.mixcar-slider-title {
		font-size: 24px;
		margin-bottom: 6px;
	}

	.mixcar-slider-subtitle {
		font-size: 13px;
		margin-bottom: 25px;
	}

	.mixcar-slide-item {
		padding: 15px;
		border-radius: 8px;
	}

	.mixcar-slide-image {
		height: 120px;
		margin-bottom: 10px;
		border-radius: 6px;
	}

	.mixcar-slide-title {
		font-size: 13px;
	}

	.mixcar-slider-prev,
	.mixcar-slider-next {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.mixcar-slider-prev {
		left: -8px !important;
		right: auto !important;
	}

	.mixcar-slider-next {
		right: -8px !important;
		left: auto !important;
	}

	/* Force LTR positioning in RTL mode - Mobile */
	[dir="rtl"] .mixcar-slider-prev,
	html[dir="rtl"] .mixcar-slider-prev,
	body[dir="rtl"] .mixcar-slider-prev {
		left: -8px !important;
		right: auto !important;
	}

	[dir="rtl"] .mixcar-slider-next,
	html[dir="rtl"] .mixcar-slider-next,
	body[dir="rtl"] .mixcar-slider-next {
		right: -8px !important;
		left: auto !important;
	}

	.mixcar-slider-pagination {
		margin-top: 20px;
		gap: 6px;
	}

	.mixcar-slider-pagination .swiper-pagination-bullet {
		width: 10px;
		height: 10px;
	}

	.mixcar-slider-pagination .swiper-pagination-bullet-active {
		width: 28px;
	}
}

@media (max-width: 480px) {
	.mixcar-slider-wrapper {
		padding: 30px 10px;
	}

	.mixcar-slider-title {
		font-size: 20px;
		margin-bottom: 4px;
	}

	.mixcar-slider-subtitle {
		font-size: 12px;
		margin-bottom: 20px;
	}

	.mixcar-slide-item {
		padding: 12px;
		border-radius: 6px;
	}

	.mixcar-slide-image {
		height: 100px;
		margin-bottom: 8px;
		border-radius: 4px;
	}

	.mixcar-slide-title {
		font-size: 12px;
	}

	.mixcar-slider-prev,
	.mixcar-slider-next {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.mixcar-slider-prev {
		left: -4px !important;
		right: auto !important;
	}

	.mixcar-slider-next {
		right: -4px !important;
		left: auto !important;
	}

	/* Force LTR positioning in RTL mode - Small Mobile */
	[dir="rtl"] .mixcar-slider-prev,
	html[dir="rtl"] .mixcar-slider-prev,
	body[dir="rtl"] .mixcar-slider-prev {
		left: -4px !important;
		right: auto !important;
	}

	[dir="rtl"] .mixcar-slider-next,
	html[dir="rtl"] .mixcar-slider-next,
	body[dir="rtl"] .mixcar-slider-next {
		right: -4px !important;
		left: auto !important;
	}

	.mixcar-slider-pagination {
		margin-top: 15px;
		gap: 4px;
	}

	.mixcar-slider-pagination .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
	}

	.mixcar-slider-pagination .swiper-pagination-bullet-active {
		width: 24px;
	}
}
