/**
 * S & J Soaps — Quick View Modal Styles
 *
 * Targets the ecosoap parent-theme quick view, which uses Magnific Popup
 * with mainClass: 'goal-mfp-zoom-in goal-quickview'.
 *
 * Key selectors confirmed from ecosoap/js/woocommerce.js (initQuickview):
 *   .goal-mfp-zoom-in.goal-quickview  — body class added by Magnific Popup
 *   #goal-quickview-modal             — modal wrapper rendered by the AJAX template
 *   .mfp-bg                           — Magnific Popup overlay
 *   .mfp-content                      — Magnific Popup content wrapper
 *   .mfp-close / button.mfp-close     — close button
 *
 * Inner template (ecosoap/woocommerce/content-product-quickview.php):
 *   #single-product.product-info.details-product
 *     .row
 *       .col-lg-6.gallery-wrapper > .wrapper-img-main
 *       .col-lg-6 > .information-wrapper > .information
 *         .top-info-detail  (title + price + rating)
 *         .woocommerce-product-details__short-description
 *         form.cart  (add to cart)
 *
 * @package Ecosoap_Child
 * @version 1.1.0
 */

/* ==========================================================================
   1. OVERLAY — Magnific Popup background
   ========================================================================== */

.goal-mfp-zoom-in.goal-quickview ~ .mfp-bg,
body.goal-quickview .mfp-bg {
	background: rgba( 8, 37, 103, 0.65 ); /* Dark Navy */
	opacity: 1 !important;
	backdrop-filter: blur( 3px );
	-webkit-backdrop-filter: blur( 3px );
}

/* ==========================================================================
   2. MODAL CONTENT WRAPPER
   ========================================================================== */

.goal-mfp-zoom-in.goal-quickview .mfp-content,
.goal-quickview .mfp-content {
	max-width: 900px;
	width: calc( 100% - 32px );
	margin: 0 auto;
}

/* The actual white card */
.goal-quickview #goal-quickview-modal,
.goal-quickview .woocommerce {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba( 8, 37, 103, 0.22 );
	overflow: hidden;
	position: relative;
}

/* ==========================================================================
   3. INNER LAYOUT — two-column grid (image | summary)
   ========================================================================== */

.goal-quickview #single-product .row {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	align-items: stretch;
}

/* Image column */
.goal-quickview #single-product .gallery-wrapper {
	flex: 0 0 45%;
	max-width: 45%;
	padding: 0;
	background: #f5f3fa;
	border-radius: 16px 0 0 16px;
	overflow: hidden;
}

.goal-quickview #single-product .gallery-wrapper .wrapper-img-main,
.goal-quickview #single-product .gallery-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Summary column */
.goal-quickview #single-product .information-wrapper {
	flex: 1;
	padding: 0;
}

.goal-quickview #single-product .information {
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ==========================================================================
   4. TYPOGRAPHY — headings, body
   ========================================================================== */

/* Product title */
.goal-quickview .woocommerce div.product .product_title,
.goal-quickview #single-product .product_title {
	font-family: 'Jabula', 'Georgia', serif;
	font-size: clamp( 1.2rem, 2.5vw, 1.65rem );
	color: #082567; /* Dark Navy */
	line-height: 1.25;
	margin: 0 0 2px;
	font-weight: 700;
}

/* Short description */
.goal-quickview #single-product .woocommerce-product-details__short-description,
.goal-quickview #single-product .short-description {
	font-family: 'Lora', 'Georgia', serif;
	font-size: 0.88rem;
	color: #444;
	line-height: 1.7;
	margin: 0;
}

/* ==========================================================================
   5. PRICE
   ========================================================================== */

.goal-quickview #single-product .price,
.goal-quickview #goal-quickview-modal .price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #db2876; /* Hot Pink */
	margin: 0;
	line-height: 1.2;
}

.goal-quickview #single-product .price del,
.goal-quickview #goal-quickview-modal .price del {
	color: #999;
	font-size: 1rem;
	font-weight: 400;
	margin-right: 6px;
}

.goal-quickview #single-product .price ins {
	text-decoration: none;
}

/* ==========================================================================
   6. ADD TO CART BUTTON
   ========================================================================== */

.goal-quickview #single-product form.cart {
	margin-top: 6px;
}

.goal-quickview #single-product form.cart .single_add_to_cart_button,
.goal-quickview #single-product form.cart button[type="submit"],
.goal-quickview #single-product .button.alt {
	background-color: #082567 !important; /* Dark Navy */
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px;
	font-family: 'Jabula', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	display: block;
	text-align: center;
	margin: 0;
}

.goal-quickview #single-product form.cart .single_add_to_cart_button:hover,
.goal-quickview #single-product .button.alt:hover {
	background-color: #0076e2 !important; /* Bright Blue on hover */
	transform: translateY( -1px );
}

.goal-quickview #single-product form.cart .single_add_to_cart_button:active {
	transform: translateY( 0 );
}

/* Quantity row */
.goal-quickview #single-product .quantity input[type="number"] {
	border: 1.5px solid #082567;
	border-radius: 6px;
	height: 44px;
	padding: 0 12px;
	font-size: 1rem;
	color: #082567;
	width: 72px;
}

/* ==========================================================================
   7. STAR RATINGS
   ========================================================================== */

.goal-quickview #single-product .star-rating {
	color: #db2876;
}

/* ==========================================================================
   8. PRODUCT META (SKU, categories)
   ========================================================================== */

.goal-quickview #goal-quickview-modal .product_meta,
.goal-quickview #single-product .product_meta {
	font-size: 0.8rem;
	color: #666;
	margin: 4px 0 0;
}

/* ==========================================================================
   9. CLOSE BUTTON — Magnific Popup .mfp-close
   ========================================================================== */

.goal-quickview button.mfp-close,
.goal-quickview .mfp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	min-width: 44px; /* touch target */
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba( 0, 0, 0, 0.15 ) !important;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	color: #082567 !important;
	opacity: 1 !important;
	transition: background 0.2s ease, color 0.2s ease;
	z-index: 10;
	padding: 0;
	/* override Magnific Popup default positioning */
	top: 12px !important;
	right: 12px !important;
}

.goal-quickview button.mfp-close:hover,
.goal-quickview .mfp-close:hover {
	background: rgba( 219, 40, 118, 0.15 ) !important; /* hot pink tint */
	color: #db2876 !important;
}

/* ==========================================================================
   10. ANIMATION — zoom-in entrance (Magnific Popup goal-mfp-zoom-in class)
   ========================================================================== */

.goal-mfp-zoom-in.goal-quickview .mfp-content {
	opacity: 0;
	transform: scale( 0.96 ) translateY( 12px );
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.goal-mfp-zoom-in.goal-quickview.mfp-ready .mfp-content {
	opacity: 1;
	transform: scale( 1 ) translateY( 0 );
}

.goal-mfp-zoom-in.goal-quickview.mfp-removing .mfp-content {
	opacity: 0;
	transform: scale( 0.96 ) translateY( 12px );
}

/* ==========================================================================
   11. MOBILE — single column stacked at ≤640px
   ========================================================================== */

@media ( max-width: 640px ) {
	.goal-quickview #single-product .row {
		flex-direction: column;
	}

	.goal-quickview #single-product .gallery-wrapper {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
		border-radius: 16px 16px 0 0;
		max-height: 220px;
		overflow: hidden;
	}

	.goal-quickview #single-product .gallery-wrapper img {
		height: 220px;
		object-fit: cover;
	}

	.goal-quickview #single-product .information {
		padding: 20px 16px 24px;
	}

	.goal-quickview .woocommerce div.product .product_title,
	.goal-quickview #single-product .product_title {
		font-size: 1.2rem;
	}

	.goal-quickview #goal-quickview-modal,
	.goal-quickview .woocommerce {
		border-radius: 16px;
	}

	.goal-quickview .mfp-content {
		width: calc( 100% - 16px );
	}
}

/* ==========================================================================
   12. FALLBACK — generic selectors for any other quick view plugin
   ========================================================================== */

/* Generic Magnific Popup quick view patterns */
[class*="quick-view"] .mfp-content {
	max-width: 900px;
}

/* Broad add-to-cart override inside any quick view context */
.mfp-wrap .single_add_to_cart_button {
	min-height: 48px;
}
