/**
 * WC Product Combo - Frontend Styles
 * Dark mode friendly with specified color palette
 * Flatsome-inspired responsive design
 */

/* Container */
.wc-combo-container {
	position: relative;
	margin: 30px 0;
	padding: 30px;
	background: #fff;
	border: 2px solid #5ec4ff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(94, 196, 255, 0.15);
}

/* Badge */
.wc-combo-badge-wrapper {
	position: absolute;
	top: -15px;
	right: 20px;
	z-index: 10;
}

.wc-combo-badge {
	display: inline-block;
	padding: 8px 20px;
	background: linear-gradient(135deg, #5eff9e 0%, #5ec4ff 100%);
	color: #364153;
	font-weight: 700;
	font-size: 18px;
	border-radius: 25px;
	box-shadow: 0 4px 10px rgba(94, 255, 158, 0.4);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

/* Header */
.wc-combo-header {
	margin-bottom: 25px;
	text-align: center;
}

.wc-combo-title {
	margin: 0 0 15px 0;
	font-size: 28px;
	font-weight: 700;
	color: #364153;
}

/* Countdown */
.wc-combo-countdown {
	margin-top: 15px;
	padding: 15px;
	background: linear-gradient(135deg, #364153 0%, #5ec4ff 100%);
	border-radius: 8px;
	text-align: center;
}

.countdown-label {
	display: block;
	margin-bottom: 10px;
	color: #5eff9e;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.countdown-timer {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.countdown-timer > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 60px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	backdrop-filter: blur(10px);
}

.countdown-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #5eff9e;
	line-height: 1;
}

.countdown-unit {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #fff;
	text-transform: uppercase;
}

/* Products Layout */
.wc-combo-products {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 25px;
}

.wc-combo-separator {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
}

.wc-combo-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #5eff9e 0%, #5ec4ff 100%);
	color: #364153;
	font-size: 24px;
	font-weight: 700;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(94, 255, 158, 0.3);
}

/* Product Item */
.wc-combo-product-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.wc-combo-product-item:hover {
	border-color: #5ec4ff;
	box-shadow: 0 4px 12px rgba(94, 196, 255, 0.2);
	transform: translateY(-2px);
}

.wc-combo-product-image {
	text-align: center;
	margin-bottom: 10px;
}

.wc-combo-product-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.wc-combo-product-title {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 600;
	color: #364153;
	line-height: 1.4;
}

.wc-combo-product-price {
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 700;
	color: #5ec4ff;
}

.wc-combo-product-price del {
	color: #999;
	margin-right: 8px;
}

.wc-combo-product-price ins {
	text-decoration: none;
	color: #5eff9e;
}

/* Variations */
.wc-combo-variation-select {
	margin-bottom: 10px;
}

.wc-combo-variation-select label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #364153;
}

.wc-combo-variation-select select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.3s ease;
}

.wc-combo-variation-select select:focus {
	outline: none;
	border-color: #5ec4ff;
}

/* Quantity */
.wc-combo-product-quantity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wc-combo-product-quantity label {
	font-size: 13px;
	font-weight: 600;
	color: #364153;
}

.wc-combo-quantity-input {
	width: 80px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
}

/* Footer */
.wc-combo-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-top: 25px;
	border-top: 2px solid #5ec4ff;
}

.wc-combo-pricing {
	flex: 1;
}

.wc-combo-total-price {
	font-size: 18px;
	margin-bottom: 8px;
}

.wc-combo-price-label {
	font-weight: 600;
	color: #364153;
	margin-right: 10px;
}

.wc-combo-price-value {
	font-size: 24px;
	font-weight: 700;
	color: #5eff9e;
}

.wc-combo-savings {
	display: inline-block;
	padding: 6px 15px;
	background: #5eff9e;
	color: #364153;
	font-weight: 700;
	font-size: 14px;
	border-radius: 20px;
}

/* Add to Cart Button */
.wc-combo-add-to-cart {
	padding: 15px 40px !important;
	background: linear-gradient(135deg, #5eff9e 0%, #5ec4ff 100%) !important;
	border: none !important;
	border-radius: 8px !important;
	color: #364153 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(94, 255, 158, 0.3);
}

.wc-combo-add-to-cart:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(94, 255, 158, 0.5);
}

.wc-combo-add-to-cart:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Messages */
.wc-combo-messages {
	margin-top: 15px;
}

.wc-combo-message {
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.wc-combo-message.success {
	background: #5eff9e;
	color: #364153;
}

.wc-combo-message.error {
	background: #ff5e5e;
	color: #fff;
}

/* Slider Layout */
.wc-combo-slider-layout .wc-combo-products {
	display: block;
}

.wc-combo-slider-wrapper {
	position: relative;
	padding: 0 50px;
}

.wc-combo-slider {
	display: flex;
	overflow: hidden;
	gap: 20px;
	scroll-behavior: smooth;
}

.wc-combo-slide {
	flex: 0 0 calc(25% - 15px);
	min-width: 0;
	transition: transform 0.3s ease;
}

.wc-combo-separator-slide {
	flex: 0 0 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Product Card (Slider) */
.wc-combo-product-card {
	height: 100%;
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.wc-combo-product-card:hover {
	border-color: #5ec4ff;
	box-shadow: 0 4px 12px rgba(94, 196, 255, 0.2);
}

.wc-combo-product-badge {
	text-align: center;
	margin-bottom: 10px;
}

.wc-combo-product-badge span {
	display: inline-block;
	padding: 4px 12px;
	background: #5eff9e;
	color: #364153;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 12px;
}

/* Slider Navigation */
.wc-combo-slider-prev,
.wc-combo-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	padding: 0;
	background: #364153;
	border: none;
	border-radius: 50%;
	color: #5eff9e;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wc-combo-slider-prev {
	left: 0;
}

.wc-combo-slider-next {
	right: 0;
}

.wc-combo-slider-prev:hover,
.wc-combo-slider-next:hover {
	background: #5ec4ff;
	color: #fff;
	transform: translateY(-50%) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
	.wc-combo-container {
		padding: 20px;
	}
	
	.wc-combo-title {
		font-size: 22px;
	}
	
	.wc-combo-products {
		flex-direction: column;
	}
	
	.wc-combo-separator {
		transform: rotate(90deg);
	}
	
	.wc-combo-footer {
		flex-direction: column;
		text-align: center;
	}
	
	.wc-combo-slide {
		flex: 0 0 calc(50% - 10px);
	}
	
	.countdown-timer {
		gap: 10px;
	}
	
	.countdown-timer > span {
		min-width: 50px;
		padding: 8px;
	}
	
	.countdown-value {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.wc-combo-slide {
		flex: 0 0 100%;
	}
	
	.wc-combo-slider-wrapper {
		padding: 0 40px;
	}
	
	.countdown-timer > span {
		min-width: 40px;
		padding: 6px;
	}
	
	.countdown-value {
		font-size: 18px;
	}
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
	.wc-combo-container {
		background: #1e1e1e;
		border-color: #364153;
	}
	
	.wc-combo-title {
		color: #5eff9e;
	}
	
	.wc-combo-product-item,
	.wc-combo-product-card {
		background: #2a2a2a;
		border-color: #364153;
	}
	
	.wc-combo-product-title {
		color: #5ec4ff;
	}
	
	.wc-combo-variation-select label {
		color: #5ec4ff;
	}
	
	.wc-combo-variation-select select {
		background: #1e1e1e;
		border-color: #364153;
		color: #fff;
	}
	
	.wc-combo-quantity-input {
		background: #1e1e1e;
		border-color: #364153;
		color: #fff;
	}
	
	.wc-combo-price-label {
		color: #5ec4ff;
	}
}
