/**
 * Aura Custom Product Style - Card Layout Styles
 * Specific styles for the card layout design
 *
 * @package Aura_Custom_Product_Style
 */

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

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

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

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

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

/* ========================================
   INFO COLUMN (70%)
   ======================================== */

.aura-product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	gap: 12px;
}

/* ========================================
   HEADER ROW (Title + Controls)
   ======================================== */

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

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

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

.aura-product-controls .aura-btn {
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.aura-product-controls .aura-btn:hover,
.aura-product-controls .aura-btn:focus,
.aura-product-controls .aura-btn:active {
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	border: none !important;
}

.aura-product-controls .aura-quantity-display {
	min-width: 30px;
	text-align: center;
	font-size: 1em;
	font-weight: 600;
}

/* ========================================
   DESCRIPTION ROW
   ======================================== */

.aura-product-description {
	flex: 1;
	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-product-description p {
	margin: 0 0 8px 0;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

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

/* ========================================
   PRICE ROW
   ======================================== */

.aura-product-price-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-bottom: 12px;
	border-bottom: 1px solid #9A9A9A;
	font-family: 'Open Sans', sans-serif !important;
	font-weight: 400 !important;
	font-size: 1em !important;
	line-height: 150% !important;
	color: #333 !important;
}

.aura-product-price-row .aura-price {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.aura-product-price-row .aura-price strong {
	font-weight: 600 !important;
}

/* ========================================
   TOTAL ROW
   ======================================== */

.aura-product-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Open Sans', sans-serif !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-size: 1.2em !important;
	line-height: 150% !important;
	color: #333 !important;
}

.aura-product-total-row .aura-total-label,
.aura-product-total-row .aura-total-price {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

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

/* Tablet - Keep horizontal layout */
@media screen and (max-width: 768px) {
	.aura-product-info {
		padding: 15px;
		gap: 10px;
	}

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

	.aura-product-total-row {
		font-size: 1.1em !important;
	}
}

/* Mobile - Keep horizontal layout (30% image, 70% info) */
@media screen and (max-width: 480px) {
	/* Maintain horizontal layout */
	.aura-product-card {
		flex-direction: row;
	}

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

	.aura-product-info {
		padding: 10px;
		gap: 8px;
	}

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

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

	.aura-product-price-row {
		font-size: 0.85em !important;
		padding-bottom: 8px;
	}

	.aura-product-total-row {
		font-size: 0.95em !important;
	}

	.aura-product-controls {
		gap: 6px;
	}

	.aura-product-controls .aura-btn {
		width: 18px;
		height: 18px;
	}

	.aura-product-controls .aura-btn img {
		width: 18px;
		height: 18px;
	}

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

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

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

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

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

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

.rtl .aura-product-header {
	flex-direction: row-reverse;
}

.rtl .aura-product-controls {
	flex-direction: row-reverse;
}

.rtl .aura-product-price-row {
	justify-content: flex-start;
}

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

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

	.aura-product-controls {
		display: none;
	}

	.aura-product-price-row {
		border-bottom: 1px solid #000;
	}
}

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

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

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

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

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

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

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

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

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

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

	.aura-product-price-row,
	.aura-product-total-row {
		color: #fff !important;
		border-color: #444;
	}

	.aura-product-image {
		background: #2a2a2a;
	}
}
