/**
 * Directory Plugin - Variable Product Add to Cart
 * Design: 40/60 layout, color swatches, quantity grid, total, add to cart button
 * Compatible with GeneratePress + WooCommerce
 */

/* Product hero - full width, shown before article */
body.directory-variable-product .directory-product-hero {
	width: 100% !important;
	max-width: none !important;
	min-width: 100%;
	box-sizing: border-box;
	padding: 48px 24px 56px;
	text-align: center;
}

body.directory-variable-product .directory-product-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 800px;
	margin: 0 auto;
}

body.directory-variable-product .directory-product-hero__title {
	font-family: "Cormorant Garamond", serif !important;
	font-size: 40px;
	font-weight: 600;
	color: #2d2a26;
	margin: 0;
	line-height: 1.2;
}

body.directory-variable-product .directory-product-hero__subtitle {
	font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 16px;
	font-weight: 400;
	color: #55504a;
	margin: 0;
	line-height: 1.5;
}

/* Full-width product layout - override theme */
body.directory-variable-product .site-content {
	display: block !important;
	max-width: none !important;
	width: 100% !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

body.directory-variable-product #content.site-content,
body.directory-variable-product .content-area,
body.directory-variable-product .site-main,
body.directory-variable-product main#main,
body.directory-variable-product .inside-article {
	max-width: none !important;
	width: 100% !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

body.directory-variable-product .entry-content {
	max-width: none !important;
}

/* Allow .grid-container to use theme defaults (max-width: 1200px, margin: auto) */

/* Hide sidebar on product page so content takes full width */
body.directory-variable-product .sidebar,
body.directory-variable-product .widget-area {
	display: none !important;
}

/* Article / product wrapper full width */
body.directory-variable-product article.directory-product-layout {
	width: 100% !important;
	max-width: none !important;
}

/* Main product layout - 50% gallery, 50% options, full width */
body.directory-variable-product .directory-product-layout {
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 48px;
	max-width: none !important;
	width: 100% !important;
	margin: 0;
	padding: 40px 0 60px;
	background: #f8f6f3;
	border-radius: 16px;
	padding: 48px 40px 64px;
	align-items: start;
}

.directory-product-column {
	min-width: 0;
}

/* Left column - product visual */
.directory-product-gallery-col {
	position: relative;
	width: 100%;
	min-width: 0;
}

.directory-product-gallery-wrap {
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 1;
	background: #2d2a26;
	border-radius: 12px;
	overflow: hidden;
}

.directory-product-gallery-col .woocommerce-product-gallery {
	margin: 0 !important;
	position: absolute;
	inset: 0;
	width: 100% !important;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.directory-product-gallery-col .woocommerce-product-gallery__image {
	overflow: hidden;
}

.directory-product-gallery-col .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
}

/* Ensure main image fills its box (live server / theme fallback) - viewport only, not thumbnails */
.directory-product-gallery-wrap .flex-viewport img,
.directory-product-gallery-wrap .woocommerce-product-gallery__wrapper img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center;
	display: block !important;
}

/* Gallery layout: main image + arrows + dots + thumbnail strip */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery,
.directory-product-gallery-col .woocommerce-product-gallery {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start;
	align-items: stretch;
	height: 100%;
}

/* Main image area: flex so it shrinks and leaves room for thumbnails below */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery__wrapper,
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport {
	flex: 1 1 0;
	min-height: 0;
	min-width: 0;
	width: 100% !important;
	overflow: hidden !important;
}
.directory-product-gallery-col .woocommerce-product-gallery__wrapper,
.directory-product-gallery-col .woocommerce-product-gallery .flex-viewport {
	flex: 1 1 0;
	min-height: 0;
	min-width: 0;
	width: 100% !important;
	overflow: hidden !important;
}

/* Flexslider slides container - full height; width is set by script for multiple slides */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport .slides,
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport ul.slides {
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport .slides li,
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport ul.slides li {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	overflow: hidden !important;
}

/* Slide inner wrapper and image container - fill the slide so image can cover full area; clip overflow */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport li .woocommerce-product-gallery__image,
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport li > div {
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	overflow: hidden !important;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery__image {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Main image: fill 100% width and height, crop anything outside (object-fit: cover) */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery__image img,
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-viewport img {
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	overflow: hidden;
}

/* Left/right slide arrows - always visible */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav {
	display: block !important;
	opacity: 1 !important;
	pointer-events: none;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.28) !important;
	backdrop-filter: blur(6px);
	color: #fff !important;
	text-decoration: none !important;
	text-indent: -9999px !important;
	overflow: hidden !important;
	z-index: 10 !important;
	opacity: 1 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
	pointer-events: auto !important;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a:hover,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a:hover {
	background: rgba(0, 0, 0, 0.45) !important;
	color: #fff !important;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-prev,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-prev {
	left: 14px !important;
	right: auto !important;
	margin-left: 0 !important;
	transform: translateY(-50%) !important;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-next,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-next {
	right: 14px !important;
	left: auto !important;
	margin-left: 0 !important;
	transform: translateY(-50%) !important;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a::before,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a::before {
	content: '' !important;
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome", sans-serif !important;
	font-weight: 900 !important;
	font-size: 20px !important;
	text-indent: 0 !important;
	color: inherit !important;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-prev::before,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-prev::before {
	content: '\f053' !important; /* fa-chevron-left */
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-next::before,
.directory-product-gallery-col .woocommerce-product-gallery .flex-direction-nav a.flex-next::before {
	content: '\f054' !important; /* fa-chevron-right */
}

/* Injected left/right arrows (when Flexslider nav is missing or hidden) */
.directory-product-gallery-wrap .directory-gallery-arrows {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 10;
}

.directory-product-gallery-wrap .directory-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	font-size: 22px;
	line-height: 1;
	font-family: inherit;
}
.directory-product-gallery-wrap .directory-gallery-arrow span {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	width: 1em;
	height: 1em;
	text-align: center;
}

.directory-product-gallery-wrap .directory-gallery-arrow:hover {
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
}

.directory-product-gallery-wrap .directory-gallery-arrow-prev {
	left: 14px;
}

.directory-product-gallery-wrap .directory-gallery-arrow-next {
	right: 14px;
}

/* Dot pagination under main image */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-nav.flex-control-paging {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 4;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-nav.flex-control-paging li {
	margin: 0;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-nav.flex-control-paging li a {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-nav.flex-control-paging li a.flex-active {
	background: #ffffff;
}

/* Thumbnail strip below main image - always visible, never shrink to zero */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs,
.directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs {
	display: flex !important;
	flex: 0 0 auto !important;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0 8px 12px 8px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scroll-behavior: smooth;
	min-width: 0;
	max-width: 100%;
	min-height: 60px;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Scrollbar styling for desktop (optional - keeps thumbnails scrollable) */
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar,
.directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
	height: 6px;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-track,
.directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.08);
	border-radius: 3px;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb,
.directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.25);
	border-radius: 3px;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs li,
.directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 80px;
	margin: 0;
	min-width: 80px;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	border: 2px solid transparent;
	opacity: 0.65;
	transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: #ffffff;
}

.woocommerce div.product div.images img {
	border-radius: 15px;
}

.directory-product-gallery-col .woocommerce-product-gallery__image:first-child img {
	display: block;
}

/* Placeholder cube icon - shown when no image, hidden when gallery has image */
.directory-product-gallery-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.25);
	font-size: 64px;
	pointer-events: none;
}

.directory-product-gallery-col:has(.woocommerce-product-gallery__image img) .directory-product-gallery-placeholder {
	display: none;
}

.directory-product-color-label {
	font-family: "Cormorant Garamond", "Nunito Sans", -apple-system, sans-serif;
	font-size: 16px;
	color: #6b6560;
	margin-top: 16px;
	text-align: center;
	text-transform: capitalize;
	min-height: 24px;
}

/* Right column - options */
.directory-product-options-col .summary {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.directory-product-options-col .product_title {
	display: none;
}

/* Variation rows */
.directory-variations {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.directory-variation-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.directory-variation-label {
	font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 12px;
	font-weight: 600;
	color: #2d2a26;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0;
}

/* Color swatches - circular */
.directory-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.directory-swatch {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.directory-swatch:hover {
	box-shadow: 0 2px 8px rgba(45, 42, 38, 0.15);
}

.directory-swatch.selected {
	border-color: #9a9290 !important;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #9a9290;
}

/* Quantity grid - 2x2 */
.directory-variation-quantity .directory-variation-options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.directory-quantity-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 16px 14px;
	background: #fff;
	border: 1px solid #e8e4de;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	font-family: "Nunito Sans", -apple-system, sans-serif;
	text-align: left;
}

.directory-quantity-option:hover {
	background: #000;
	border-color: #000;
}

.directory-quantity-option:hover .directory-qty-label,
.directory-quantity-option:hover .directory-qty-price {
	color: #f8f6f3 !important;
}

.directory-quantity-option.disabled,
.directory-quantity-option:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.directory-quantity-option.selected {
	background: #000;
	border-color: #000;
	color: #f8f6f3 !important;
}

.directory-quantity-option.selected .directory-qty-label,
.directory-quantity-option.selected .directory-qty-price {
	color: #f8f6f3 !important;
}

.directory-qty-label {
	font-size: 15px;
	font-weight: 600;
	color: #333333;
	display: block;
	margin-bottom: 6px;
}

.directory-qty-price {
	font-size: 14px;
	font-weight: 400;
	color: #666666;
}

.directory-quantity-option.selected .directory-qty-price {
	color: #f8f6f3 !important;
}

/* Total row */
.directory-variation-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	margin-top: 8px;
	border-top: 1px solid #e0dcd6;
}

.directory-total-label {
	font-family: "Nunito Sans", -apple-system, sans-serif !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2d2a26;
}

.directory-total-price {
	font-family: "Nunito Sans", -apple-system, sans-serif !important;
	font-size: 24px;
	font-weight: 700;
	color: #2d2a26;
}

.directory-total-price .woocommerce-Price-amount {
	color: inherit;
}

/* Add to cart button */
.directory-add-to-cart-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px !important;
	background: #2d2a26 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px;
	font-family: "Nunito Sans", -apple-system, sans-serif !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	margin-top: 0 !important;
}

.directory-add-to-cart-btn:hover:not(:disabled) {
	background: #1a1816 !important;
	color: #fff !important;
}

.directory-add-to-cart-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.directory-add-to-cart-btn.loading {
	opacity: 0.7;
	pointer-events: none;
	padding-right: 24px !important; /* Override WooCommerce padding for right spinner */
}

/* Hide WooCommerce's loading spinner (right) - we show our own on the left */
.directory-add-to-cart-btn.loading::after {
	display: none !important;
	content: none !important;
}

.directory-add-to-cart-btn.loading i {
	animation: directory-spin 0.8s linear infinite;
}

@keyframes directory-spin {
	to { transform: rotate(360deg); }
}

.directory-add-to-cart-btn i {
	font-size: 18px;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
	font-weight: 900;
}

.directory-add-to-cart-btn.directory-proceed-to-checkout {
	background: #1a5f2a !important;
}

.directory-add-to-cart-btn.directory-proceed-to-checkout:hover:not(:disabled) {
	background: #0f3d1a !important;
}

.directory-product-gallery-placeholder i {
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
	font-weight: 900;
}

/* "What's Included" section - below add to cart button */
.directory-product-included {
	background: #f5efe7;
	border-radius: 12px;
	padding: 24px 20px;
	margin-top: 24px;
}

.directory-product-included__title {
	font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 16px;
	font-weight: 600;
	color: #2d2a26;
	margin: 0 0 16px;
}

.directory-product-included__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.directory-product-included__list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
	font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 15px;
	font-weight: 400;
	color: #2d2a26;
	line-height: 1.5;
}

.directory-product-included__list li:last-child {
	margin-bottom: 0;
}

.directory-product-included__list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 16px;
	font-weight: 700;
	color: #c9a227;
}

/* Hide WooCommerce default dropdowns */
.directory-hidden-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}



/* Hide duplicate WooCommerce variation price/description only - keep wrapper for add-to-cart logic */
.directory-single_variation_wrap .woocommerce-variation .woocommerce-variation-description,
.directory-single_variation_wrap .woocommerce-variation .woocommerce-variation-price,
.directory-single_variation_wrap .woocommerce-variation .woocommerce-variation-availability {
	display: none !important;
}
.directory-single_variation_wrap .woocommerce-variation {
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

/* Responsive - 100% width, minimal padding */
@media (max-width: 768px) {
	body.directory-variable-product .site-content,
	body.directory-variable-product .content-area,
	body.directory-variable-product .site-main,
	body.directory-variable-product main#main {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.directory-variable-product .directory-product-hero {
		width: 100% !important;
		padding: 24px 12px 32px;
	}

	body.directory-variable-product .directory-product-hero__title {
		font-size: 23px !important;
	}

	body.directory-variable-product .directory-product-hero__subtitle {
		font-size: 15px;
	}

	body.directory-variable-product .directory-product-layout {
		width: 100% !important;
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 20px 12px 32px;
		border-radius: 0;
	}

	.directory-product-included {
		width: 100%;
		box-sizing: border-box;
		padding: 16px 12px;
		margin-top: 16px;
		border-radius: 0;
	}

	.directory-product-included__title {
		font-size: 15px;
		margin-bottom: 10px;
	}

	.directory-product-included__list li {
		font-size: 14px;
		margin-bottom: 6px;
	}

	.directory-product-gallery-col {
		order: 1;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	.directory-product-gallery-wrap {
		width: 100% !important;
		max-width: 100%;
		min-height: 0;
	}

	.directory-product-gallery-col .woocommerce-product-gallery {
		width: 100% !important;
		max-width: 100%;
	}

	.directory-product-gallery-col .woocommerce-product-gallery__wrapper {
		width: 100% !important;
		max-width: 100% !important;
		height: 100% !important;
	}

	.directory-product-gallery-col .woocommerce-product-gallery__image {
		width: 100% !important;
	}

	.directory-product-gallery-col .woocommerce-product-gallery__image {
		width: 100% !important;
		height: 100% !important;
	}

	.directory-product-gallery-col .woocommerce-product-gallery__image img {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		object-fit: cover !important;
		display: block !important;
	}

	.directory-product-options-col {
		order: 2;
	}

	.directory-variation-total {
		padding: 12px 0;
	}

	.directory-total-price {
		font-size: 20px;
	}

	.directory-add-to-cart-btn {
		padding: 14px 16px !important;
	}

	.directory-variations {
		gap: 20px;
	}

	.directory-quantity-option {
		padding: 12px 10px;
	}

	body.directory-variable-product .directory-product-cta {
		width: 100% !important;
		padding: 32px 12px 40px;
	}

	body.directory-variable-product .directory-product-cta__title {
		font-size: 22px;
	}

	body.directory-variable-product .directory-product-cta__text {
		font-size: 15px;
	}
}

/* Hide default WooCommerce/theme elements on product page */
.summary.entry-summary p.price {
	display: none;
}

.product_meta {
	display: none;
}

/* Hide fullscreen/zoom triggers (live + local) – high specificity so theme cannot override */
a.woocommerce-product-gallery__trigger,
body.directory-variable-product .woocommerce-product-gallery a.woocommerce-product-gallery__trigger,
.directory-product-gallery-wrap a.woocommerce-product-gallery__trigger,
.directory-product-gallery-col a.woocommerce-product-gallery__trigger {
	display: none !important;
	visibility: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

/* Live: hide duplicate main image block (wrapper direct child, sibling to ul.slides) so only our slides show */
.directory-product-gallery-col .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image,
body.directory-variable-product .directory-product-gallery-col .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	display: none !important;
	visibility: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

/* When there is no .flex-viewport (e.g. live), wrapper directly contains ul.slides – make slides area fill */
.directory-product-gallery-col .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	display: flex !important;
	flex-direction: column !important;
}

.directory-product-gallery-col .woocommerce-product-gallery__wrapper > ul.slides {
	flex: 1 1 0;
	min-height: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.directory-product-gallery-col .woocommerce-product-gallery__wrapper > ul.slides li {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.directory-product-gallery-col .woocommerce-product-gallery__wrapper > ul.slides .woocommerce-product-gallery__image,
.directory-product-gallery-col .woocommerce-product-gallery__wrapper > ul.slides img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center;
	display: block !important;
}

.inside-article {
	display: none;
}

/* Hide any duplicate hero inside theme content (we output ours before article) */
body.directory-variable-product .inside-article .directory-product-hero {
	display: none !important;
}

/* "Why This Is a System" CTA section - below content-area */
body.directory-variable-product .directory-product-cta {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
	background: #fdfcfb;
	padding: 56px 24px 64px;
	text-align: center;
	margin: 0;
	clear: both;
	grid-column: 1 / -1; /* span full width when inside grid (e.g. site-content) */
}

body.directory-variable-product .directory-product-cta__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 640px;
	margin: 0 auto;
}

body.directory-variable-product .directory-product-cta__title {
	font-family: "Cormorant Garamond", serif !important;
	font-size: 28px;
	font-weight: 600;
	color: #585652;
	margin: 0;
	line-height: 1.3;
}

body.directory-variable-product .directory-product-cta__text {
	font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 16px;
	font-weight: 400;
	color: #706e6b;
	line-height: 1.5;
	margin: 0;
}

body.directory-variable-product .directory-product-cta__btn {
	display: inline-block;
	padding: 14px 28px;
	font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 16px;
	font-weight: 500;
	color: #706e6b;
	background: transparent;
	border: 1.5px solid #706e6b;
	border-radius: 999px;
	text-decoration: none;
	margin-top: 8px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

body.directory-variable-product .directory-product-cta__btn:hover {
	background: #706e6b;
	color: #fff;
	border-color: #706e6b;
}
