/**
 * CLW Product Slider - Elementor Extension Stylesheet
 * Premium Swiper Product Carousel Design
 */

/* Main Container Scope */
.clw-product-slider-wrapper {
	position: relative;
	width: 100%;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

.clw-product-slider-wrapper *,
.clw-product-slider-wrapper *::before,
.clw-product-slider-wrapper *::after {
	box-sizing: border-box;
}

/* Header Bar */
.clw-product-slider-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 16px;
	flex-wrap: wrap;
}

.clw-product-slider-title-wrap {
	flex: 1;
	min-width: 200px;
}

.clw-product-slider-title {
	margin: 0;
	padding: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	color: #0b2545;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.clw-product-slider-action-wrap {
	display: flex;
	align-items: center;
}

.clw-product-slider-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #1d4ed8;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.25s ease;
	padding: 6px 0;
}

.clw-product-slider-link:hover {
	color: #0284c7;
}

.clw-product-slider-link .clw-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clw-product-slider-link:hover .clw-link-icon {
	transform: translateX(5px);
}

.clw-product-slider-link svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Swiper Container Padding for Premium Box Shadows */
.clw-product-slider-container {
	position: relative;
	width: 100%;
	padding: 16px 8px 30px 8px !important;
	overflow: hidden;
}

/* Product Card Styling */
.clw-product-card-item {
	height: auto;
	display: flex;
}

.clw-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid rgba(226, 232, 240, 0.8);
	box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
	position: relative;
}

.clw-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 45px -8px rgba(15, 23, 42, 0.14), 0 8px 18px -4px rgba(15, 23, 42, 0.07);
	border-color: rgba(59, 130, 246, 0.35);
}

/* Badge (Optional) */
.clw-product-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	background: #ef4444;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Card Media / Image */
.clw-product-card-media {
	width: 100%;
	height: 180px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	overflow: hidden;
	position: relative;
	transition: background-color 0.3s ease;
}

.clw-product-card:hover .clw-product-card-media {
	background: #f1f5f9;
}

.clw-product-card-media img,
.clw-product-card-media svg {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
	filter: drop-shadow(0 6px 12px rgba(0,0,0,0.07));
}

.clw-product-card:hover .clw-product-card-media img,
.clw-product-card:hover .clw-product-card-media svg {
	transform: scale(1.08);
}

/* Card Body & Title */
.clw-product-card-body {
	padding: 18px 14px 20px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-grow: 1;
	background: #ffffff;
}

.clw-product-card-title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	transition: color 0.25s ease;
}

.clw-product-card:hover .clw-product-card-title {
	color: #1d4ed8;
}

.clw-product-card-subtitle {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
}

/* Custom Navigation Arrows with Premium Shadow */
.clw-product-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
	color: #1e293b;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 15;
	transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
	outline: none;
}

.clw-product-nav-btn:hover {
	background: #ffffff;
	color: #1d4ed8;
	box-shadow: 0 14px 30px -4px rgba(29, 78, 216, 0.25), 0 6px 14px -2px rgba(29, 78, 216, 0.12);
	transform: translateY(-50%) scale(1.08);
	border-color: #cbd5e1;
}

.clw-product-nav-btn.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

.clw-product-nav-prev {
	left: -20px;
}

.clw-product-nav-next {
	right: -20px;
}

.clw-product-nav-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1;
}

/* Pagination Dots */
.clw-product-pagination {
	position: relative !important;
	bottom: 0 !important;
	margin-top: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.clw-product-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #cbd5e1;
	opacity: 0.7;
	border-radius: 50%;
	margin: 0 !important;
	transition: all 0.3s ease;
	cursor: pointer;
}

.clw-product-pagination .swiper-pagination-bullet-active {
	width: 26px;
	border-radius: 10px;
	background: #1d4ed8;
	opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
	.clw-product-nav-prev {
		left: 2px;
	}
	.clw-product-nav-next {
		right: 2px;
	}
}

@media (max-width: 768px) {
	.clw-product-slider-header {
		margin-bottom: 16px;
	}
	.clw-product-slider-title {
		font-size: 18px;
	}
	.clw-product-slider-link {
		font-size: 13px;
	}
	.clw-product-card-media {
		height: 150px;
		padding: 12px;
	}
	.clw-product-card-title {
		font-size: 13px;
	}
	.clw-product-nav-btn {
		width: 38px;
		height: 38px;
	}
	.clw-product-nav-btn svg {
		width: 15px;
		height: 15px;
	}
}
