/* Smart Quick View Modal Styles */
.smart-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.5);
	backdrop-filter: blur(5px);
}

.smart-modal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 0;
	border-radius: 12px;
	width: 80%;
	max-width: 800px;
	position: relative;
	box-shadow: 0 5px 25px rgba(0,0,0,0.2);
	animation: smart-modal-show 0.3s ease-out;
}

@keyframes smart-modal-show {
	from { transform: translateY(-20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.smart-modal-close {
	color: #333;
	float: right;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	right: 15px;
	top: 10px;
	z-index: 10;
	background: #f1f1f1;
	width: 30px;
	height: 30px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
}

.smart-modal-close:hover,
.smart-modal-close:focus {
	background: #ddd;
	text-decoration: none;
}

.smart-modal-body {
	padding: 30px;
	min-height: 300px;
}

.smart-modal-loader {
	text-align: center;
	padding: 50px;
	font-size: 18px;
	color: #666;
}

/* Product Quick View Layout */
.smart-product-quick-view {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.smart-pq-left {
	flex: 1 1 40%;
	min-width: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
	border-radius: 8px;
	padding: 20px;
}

.smart-pq-left img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.smart-pq-right {
	flex: 1 1 50%;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.smart-pq-title {
	font-size: 24px;
	margin-top: 0;
	margin-bottom: 10px;
	color: #222;
	font-weight: 700;
}

.smart-pq-price {
	font-size: 20px;
	color: #0c8a24; /* Green color from reference */
	font-weight: bold;
	margin-bottom: 20px;
}

.smart-pq-price del {
	color: #999;
	font-size: 16px;
	font-weight: normal;
	margin-right: 10px;
}

/* WooCommerce Variation Form overrides in popup */
.smart-product-quick-view .variations_form {
	margin-bottom: 0;
	width: 100%;
}

/* Hide Clear link */
.smart-product-quick-view a.reset_variations {
	display: none !important;
}

/* Hide Secondary Price */
.smart-product-quick-view .woocommerce-variation-price {
	display: none !important;
}

.smart-product-quick-view table.variations {
	width: 100%;
	margin-bottom: 15px;
}

.smart-product-quick-view table.variations td {
	padding-bottom: 10px;
	display: block;
}

.smart-product-quick-view table.variations td.label {
	padding-bottom: 5px;
	color: #555;
	font-weight: bold;
}

.smart-product-quick-view .single_variation_wrap {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.smart-product-quick-view .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	align-items: center;
}

/* Quantity +/- Styling */
.smart-product-quick-view .quantity {
	display: block !important;
	margin-right: 0 !important;
}

.smart-qty-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	height: 44px;
	overflow: hidden;
}

.smart-qty-btn {
	background: #f9f9f9;
	border: none;
	width: 36px;
	height: 100%;
	cursor: pointer;
	font-size: 18px;
	color: #333;
	transition: background 0.2s;
}

.smart-qty-btn:hover {
	background: #ebebeb;
}

.smart-qty-wrapper input.qty {
	width: 50px;
	height: 100%;
	text-align: center;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	-moz-appearance: textfield;
	padding: 0;
	margin: 0;
}

.smart-qty-wrapper input.qty::-webkit-outer-spin-button,
.smart-qty-wrapper input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Add to Cart button */
.smart-product-quick-view button.single_add_to_cart_button {
	background-color: #8cc38d;
	color: #fff;
	border: none;
	height: 44px;
	padding: 0 24px;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	flex: 1;
	transition: background-color 0.3s;
}

.smart-product-quick-view button.single_add_to_cart_button:hover {
	background-color: #6eb06f;
}

/* Buy Now button style */
.smart-product-quick-view .smart-buy-now-btn {
	background-color: #ff6b6b; /* Reddish or choose your color */
	color: #fff;
	border: none;
	width: 100%;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.3s, opacity 0.3s;
}

.smart-product-quick-view .smart-buy-now-btn:hover {
	background-color: #fa5252;
}

.smart-product-quick-view .smart-buy-now-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
	.smart-modal-content {
		width: 95%;
		margin: 5% auto;
	}
	.smart-product-quick-view {
		flex-direction: column;
	}
}
