/**
 * Aura Custom Product Style - Moments Layout Styles
 * Row-based layout: Title + Icon, Description, Checkbox + Add to Cart + Price
 *
 * @package Aura_Custom_Product_Style
 */

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

.aura-moments-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #9A9A9A;
	overflow: hidden;
	background: transparent;
	transition: box-shadow 0.3s ease;
	padding: 20px;
	gap: 20px;
	height: 100%;
	min-height: 100%;
}

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

/* ========================================
   ROW 1: Title (left) + Icon (right)
   ======================================== */

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

.aura-moments-card .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.3em !important;
	line-height: 135% !important;
	color: #333 !important;
}

.aura-moments-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

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

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

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

/* ========================================
   ROW 3: Checkbox + Add to Cart (left) | Price (right)
   ======================================== */

.aura-moments-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid #000;
	gap: 15px;
}

/* Left side: Checkbox + "Add to Cart" text */
.aura-moments-add-wrapper {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Checkbox Button */
.aura-moments-checkbox-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 2px solid #333 !important;
	border-radius: 3px;
	background: transparent !important;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none !important;
	padding: 0;
	margin: 0;
	box-shadow: none !important;
}

.aura-moments-checkbox-btn:hover {
	background-color: #f5f5f5 !important;
	border-color: #000 !important;
	box-shadow: none !important;
	outline: none !important;
}

.aura-moments-checkbox-btn:active {
	transform: scale(0.95);
	background-color: #f5f5f5 !important;
	box-shadow: none !important;
}

.aura-moments-checkbox-btn:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* Checkmark (hidden by default, shown when checked) */
.aura-moments-checkmark {
	font-size: 18px;
	line-height: 1;
	color: #333;
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* Checked state */
.aura-moments-checkbox-btn[aria-checked="true"] {
	background-color: #333 !important;
	border-color: #333 !important;
	box-shadow: none !important;
	outline: none !important;
}

.aura-moments-checkbox-btn[aria-checked="true"]:hover {
	background-color: #333 !important;
	border-color: #333 !important;
	box-shadow: none !important;
	outline: none !important;
}

.aura-moments-checkbox-btn[aria-checked="true"] .aura-moments-checkmark {
	opacity: 1;
	color: #fff;
}

/* Add to Cart text */
.aura-moments-add-text {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 1em;
	line-height: 150%;
	color: #333;
	user-select: none;
}

/* Right side: Price */
.aura-moments-price {
	flex: 0 0 auto;
	font-family: 'Open Sans', sans-serif !important;
	font-weight: 700 !important;
	font-style: normal !important;
	font-size: 1.1em !important;
	line-height: 150% !important;
	color: #333 !important;
	text-align: right;
}

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

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

.aura-moments-card.loading {
	opacity: 0.6;
}

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

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

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

	.aura-moments-header {
		gap: 12px;
	}

	.aura-moments-icon {
		flex: 0 0 20px;
		width: 20px;
		height: 20px;
	}

	.aura-moments-card .aura-product-title {
		font-size: 1.2em !important;
	}

	.aura-moments-description {
		font-size: 0.95em !important;
	}

	.aura-moments-footer {
		padding-top: 15px;
	}

	.aura-moments-add-text {
		font-size: 0.95em;
	}

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

/* Mobile */
@media screen and (max-width: 480px) {
	.aura-moments-card {
		padding: 12px;
		gap: 12px;
	}

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

	.aura-moments-icon {
		flex: 0 0 18px;
		width: 18px;
		height: 18px;
	}

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

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

	.aura-moments-footer {
		padding-top: 12px;
		gap: 10px;
	}

	.aura-moments-checkbox-btn {
		width: 28px;
		height: 28px;
	}

	.aura-moments-checkmark {
		font-size: 16px;
	}

	.aura-moments-add-text {
		font-size: 0.85em;
	}

	.aura-moments-price {
		font-size: 0.9em !important;
	}
}

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

.elementor-editor-active .aura-moments-card {
	pointer-events: auto;
}

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

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

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

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

.rtl .aura-moments-add-wrapper {
	flex-direction: row-reverse;
}

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

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

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

	.aura-moments-checkbox-btn {
		display: none;
	}
}

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

.aura-moments-card * {
	box-sizing: border-box;
}

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

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

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

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

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

	.aura-moments-checkbox-btn {
		border-color: #666;
	}

	.aura-moments-checkbox-btn:hover {
		background-color: #333;
		border-color: #fff;
	}

	.aura-moments-checkbox-btn[aria-checked="true"] {
		background-color: #fff;
		border-color: #fff;
	}

	.aura-moments-checkbox-btn[aria-checked="true"] .aura-moments-checkmark {
		color: #000;
	}

	.aura-moments-checkmark {
		color: #fff;
	}

	.aura-moments-add-text {
		color: #fff;
	}

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

	.aura-moments-icon {
		background-color: #2a2a2a;
	}

	.aura-moments-footer {
		border-color: #666;
	}
}
