/**
 * Aura Custom Product Style - Wine Layout Styles
 * 2-column layout: Image 20% left, Content 80% right
 * Content structure: Title+Color top, Description middle, Controls+Price bottom
 *
 * @package Aura_Custom_Product_Style
 */

/* ========================================
   WINE CARD STRUCTURE
   ======================================== */

.aura-wine-card {
	display: flex;
	flex-direction: row;
	border: 1px solid #9A9A9A;
	border-radius: 3px;
	overflow: hidden;
	background: #ffffff;
	transition: box-shadow 0.3s ease;
	height: 100%;
	min-height: 100%;
	min-width: 140px;
}

.aura-wine-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   IMAGE COLUMN (20%)
   ======================================== */

.aura-wine-card .aura-product-image {
	flex: 0 0 34%;
	max-width: 34%;
	position: relative;
	overflow: hidden;
	background-color: #f5f5f5;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: 200px;
}

/* ========================================
   CONTENT COLUMN (80%)
   ======================================== */

.aura-wine-card .aura-product-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	gap: 24px;
}

/* ========================================
   ROW 1: Title Section + Color Circle
   ======================================== */

.aura-wine-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 15px;
}

.aura-wine-title-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.aura-wine-text-before {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 0.9em;
	line-height: 135%;
	color: #666;
	text-transform: none;
	letter-spacing: normal;
}

.aura-wine-card .aura-product-title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: 'Open Sans', sans-serif !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 1.5em !important;
	line-height: 135% !important;
	color: #333 !important;
}

.aura-wine-color-circle {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #ddd;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ROW 2: Description
   ======================================== */

.aura-wine-card .aura-product-description {
	font-family: 'Open Sans', sans-serif !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 1em !important;
	line-height: 150% !important;
	color: #666 !important;
	margin: 0 !important;
}

.aura-wine-card .aura-product-description p {
	margin: 0 0 8px 0;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.aura-wine-card .aura-product-description p:last-child {
	margin-bottom: 0;
}

/* ========================================
   ROW 3: Quantity Controls + Price
   ======================================== */

.aura-wine-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
}

/* Quantity Controls */
.aura-wine-card .aura-product-controls {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.aura-wine-card .aura-btn {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
	outline: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.aura-wine-card .aura-btn:hover {
	opacity: 0.7;
}

.aura-wine-card .aura-btn:active {
	transform: scale(0.95);
}

.aura-wine-card .aura-btn img {
	width: 100%;
	height: 100%;
	display: block;
}

.aura-wine-card .aura-quantity-display {
	font-family: 'Open Sans', sans-serif;
	font-weight: 600;
	font-size: 1em;
	line-height: 1;
	color: #333;
	min-width: 24px;
	text-align: center;
}

/* Price - Alice font, bold */
.aura-wine-price {
	flex: 0 0 auto;
	font-family: 'Alice', serif !important;
	font-weight: 700 !important;
	font-style: normal !important;
	font-size: 1.3em !important;
	line-height: 150% !important;
	color: #333 !important;
	text-align: right;
}

.aura-wine-price strong {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

/* ========================================
   LOADING STATE
   ======================================== */

.aura-wine-card.loading .aura-product-content {
	opacity: 0.6;
}

.aura-wine-card.loading .aura-qty-btn {
	pointer-events: none;
	opacity: 0.3;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media screen and (max-width: 768px) {
	.aura-wine-card .aura-product-content {
		padding: 15px;
		gap: 20px;
	}

	.aura-wine-card .aura-product-title {
		font-size: 1.3em !important;
	}

	.aura-wine-text-before {
		font-size: 0.85em;
	}

	.aura-wine-color-circle {
		width: 28px;
		height: 28px;
	}

	.aura-wine-price {
		font-size: 1.2em !important;
	}
}

/* Mobile - Keep horizontal layout (20% image, 80% content) */
@media screen and (max-width: 480px) {
	/* Maintain horizontal layout */
	.aura-wine-card {
		flex-direction: row;
	}

	/* Keep image at 20% */
	.aura-wine-card .aura-product-image {
		flex: 0 0 34%;
		max-width: 34%;
		min-height: 150px;
	}

	.aura-wine-card .aura-product-content {
		padding: 10px;
		gap: 15px;
	}

	.aura-wine-header {
		gap: 10px;
	}

	.aura-wine-card .aura-product-title {
		font-size: 1em !important;
	}

	.aura-wine-text-before {
		font-size: 0.75em;
	}

	.aura-wine-color-circle {
		width: 24px;
		height: 24px;
	}

	.aura-wine-card .aura-product-description {
		font-size: 0.85em !important;
	}

	.aura-wine-footer {
		gap: 10px;
	}

	.aura-wine-card .aura-qty-btn {
		width: 28px;
		height: 28px;
	}

	.aura-wine-card .aura-quantity-display {
		font-size: 0.9em;
		min-width: 20px;
	}

	.aura-wine-price {
		font-size: 1em !important;
	}
}

/* ========================================
   ELEMENTOR PREVIEW FIXES
   ======================================== */

/* Ensure proper display in Elementor editor */
.elementor-editor-active .aura-wine-card {
	pointer-events: auto;
}

.elementor-editor-active .aura-wine-card.hidden-item {
	display: flex;
	opacity: 0.3;
}

/* ========================================
   RTL SUPPORT
   ======================================== */

.rtl .aura-wine-card {
	flex-direction: row-reverse;
}

.rtl .aura-wine-title-section {
	align-items: flex-end;
}

.rtl .aura-wine-footer {
	flex-direction: row-reverse;
}

.rtl .aura-wine-price {
	text-align: left;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
	.aura-wine-card {
		border: 1px solid #000;
		page-break-inside: avoid;
		box-shadow: none;
	}

	.aura-wine-card .aura-qty-btn {
		display: none;
	}
}

/* ========================================
   CUSTOM ELEMENTOR OVERRIDES
   ======================================== */

/* Ensure typography settings from Elementor are respected while maintaining defaults */
.aura-wine-card * {
	box-sizing: border-box;
}

/* Reset Elementor defaults that might interfere */
.aura-wine-card .aura-product-title,
.aura-wine-card .aura-product-description,
.aura-wine-price,
.aura-wine-text-before {
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* ========================================
   DARK MODE SUPPORT (if theme supports it)
   ======================================== */

@media (prefers-color-scheme: dark) {
	.aura-wine-card {
		background: #1a1a1a;
		border-color: #444;
	}

	.aura-wine-card .aura-product-title {
		color: #fff !important;
	}

	.aura-wine-text-before {
		color: #aaa;
	}

	.aura-wine-card .aura-product-description {
		color: #ccc !important;
	}

	.aura-wine-price {
		color: #fff !important;
	}

	.aura-wine-card .aura-product-image {
		background-color: #ffffff;
	}

	.aura-wine-card .aura-qty-btn {
		border-color: #666;
		color: #fff;
	}

	.aura-wine-card .aura-qty-btn:hover {
		background-color: #333;
		border-color: #fff;
	}

	.aura-wine-card .aura-quantity-display {
		color: #fff;
	}

	.aura-wine-color-circle {
		border-color: #555;
	}
}
