/**
 * DP Woo Product Carousel Styles - Vanilla JavaScript Version
 */

.dp-woo-carousel-wrapper {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.dp-carousel {
	position: relative;
	width: 100%;
	padding: 20px 0 40px;
	overflow: hidden;
}

.dp-carousel-track-container {
	overflow: hidden;
	position: relative;
}

.dp-carousel-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: grab;
	user-select: none;
}

.dp-carousel-track:active {
	cursor: grabbing;
}

.dp-carousel-slide {
	flex-shrink: 0;
	box-sizing: border-box;
}

.dp-product-item {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.dp-product-item:hover {
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-5px);
}

.dp-product-image {
	position: relative;
	overflow: hidden;
	background: #f8f8f8;
}

.dp-product-image a {
	display: block;
	line-height: 0;
}

.dp-product-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.dp-product-item:hover .dp-product-image img {
	transform: scale(1.05);
}

.dp-sale-badge {
	position: absolute;
	background: #e74c3c;
	color: #fff;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	z-index: 2;
}

/* Sale Badge Positions */
.dp-sale-badge.dp-badge-top-right {
	top: 10px;
	right: 10px;
}

.dp-sale-badge.dp-badge-top-left {
	top: 10px;
	left: 10px;
}

.dp-sale-badge.dp-badge-bottom-right {
	bottom: 10px;
	right: 10px;
}

.dp-sale-badge.dp-badge-bottom-left {
	bottom: 10px;
	left: 10px;
}

.dp-product-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.dp-product-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	flex: 1;
}

.dp-product-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.dp-product-title a:hover {
	color: #c70a0a;
}

.dp-product-price {
	margin: 10px 0;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.dp-product-price del {
	opacity: 0.5;
	font-weight: 400;
	margin-right: 8px;
}

.dp-product-price ins {
	text-decoration: none;
	color: #e74c3c;
}

.dp-product-cart {
	margin-top: 15px;
}

.dp-product-cart .button {
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	background: #c70a0a;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.dp-product-cart .button:hover {
	background: #005a87;
	transform: translateY(-2px);
}

.dp-product-cart .added_to_cart {
	display: block;
	text-align: center;
	margin-top: 10px;
	color: #c70a0a;
	text-decoration: none;
	font-size: 14px;
}

/* Custom Navigation Buttons */
.dp-carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	color: #333;
}

.dp-carousel-button:hover {
	background: #c70a0a;
	box-shadow: 0 4px 15px rgba(199, 10, 10, 0.3);
	color: #fff;
}

.dp-carousel-button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.dp-carousel-button:disabled:hover {
	background: #fff;
	color: #333;
}

.dp-carousel-button-prev {
	left: -22px;
}

.dp-carousel-button-next {
	right: -22px;
}

.dp-carousel-button svg {
	width: 24px;
	height: 24px;
}

/* Custom Pagination */
.dp-carousel-pagination {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.dp-pagination-dot {
	width: 10px;
	height: 10px;
	background: #ccc;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.dp-pagination-dot:hover {
	background: #999;
}

.dp-pagination-dot.active {
	background: #c70a0a;
	width: 30px;
	border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.dp-carousel {
		padding: 15px 0 35px;
	}

	.dp-product-content {
		padding: 15px;
	}

	.dp-product-title {
		font-size: 15px;
	}

	.dp-product-price {
		font-size: 16px;
	}

	.dp-carousel-button {
		width: 40px;
		height: 40px;
	}

	.dp-carousel-button svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 768px) {
	.dp-carousel {
		padding: 15px 0 35px;
	}

	.dp-product-content {
		padding: 12px;
	}

	.dp-product-title {
		font-size: 14px;
		margin-bottom: 8px;
	}

	.dp-product-price {
		font-size: 15px;
		margin: 8px 0;
	}

	.dp-product-cart .button {
		padding: 10px 15px;
		font-size: 14px;
	}

	.dp-carousel-button {
		width: 36px;
		height: 36px;
	}

	.dp-carousel-button svg {
		width: 18px;
		height: 18px;
	}

	.dp-carousel-button-prev {
		left: -18px;
	}

	.dp-carousel-button-next {
		right: -18px;
	}

	.dp-sale-badge {
		padding: 4px 10px;
		font-size: 11px;
	}
}

@media (max-width: 480px) {
	.dp-carousel-button {
		display: none;
	}

	.dp-product-item {
		border-radius: 6px;
	}

	.dp-carousel-pagination {
		bottom: 5px;
	}
}

/* Loading State */
.dp-woo-carousel-wrapper.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Empty State */
.dp-woo-carousel-wrapper p {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 16px;
}

/* Accessibility */
.dp-product-item:focus-within {
	outline: 2px solid #c70a0a;
	outline-offset: 2px;
}

.dp-product-title a:focus,
.dp-product-cart .button:focus,
.dp-carousel-button:focus {
	outline: 2px solid #c70a0a;
	outline-offset: 2px;
}

/* Prevent text selection during drag */
.dp-carousel-track * {
	user-select: none;
	-webkit-user-drag: none;
}

/* Smooth transitions */
.dp-carousel-slide {
	will-change: transform;
}

/* RTL Support */
[dir="rtl"] .dp-sale-badge.dp-badge-top-right {
	right: auto;
	left: 10px;
}

[dir="rtl"] .dp-sale-badge.dp-badge-top-left {
	left: auto;
	right: 10px;
}

[dir="rtl"] .dp-sale-badge.dp-badge-bottom-right {
	right: auto;
	left: 10px;
}

[dir="rtl"] .dp-sale-badge.dp-badge-bottom-left {
	left: auto;
	right: 10px;
}

[dir="rtl"] .dp-product-price del {
	margin-right: 0;
	margin-left: 8px;
}

[dir="rtl"] .dp-carousel-button-prev {
	left: auto;
	right: -22px;
}

[dir="rtl"] .dp-carousel-button-next {
	right: auto;
	left: -22px;
}

/* Animation for slide entrance */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dp-carousel-slide {
	animation: slideIn 0.5s ease-out;
}
