
/* =========================================================
   PERFECT PRODUCT GALLERY & THUMBNAILS PRESENTATION
   ========================================================= */

/* Gallery Layout Container */
.woocommerce div.product div.images,
.woocommerce-product-gallery,
div.woocommerce-product-gallery {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
	position: relative !important;
	margin-bottom: 24px !important;
}

/* Hide Default Oversized Zoom Trigger Icon */
.woocommerce-product-gallery__trigger {
	display: none !important;
}

/* Main Viewport / Featured Image */
.woocommerce-product-gallery .flex-viewport,
.woocommerce div.product div.images .flex-viewport {
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #ffffff !important;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
	border: 1px solid #eae6dc !important;
	margin: 0 0 14px 0 !important;
}

.woocommerce-product-gallery .flex-viewport img,
.woocommerce div.product div.images .flex-viewport img,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child img,
.woocommerce-product-gallery__image img {
	display: block !important;
	width: 100% !important;
	max-height: 520px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	background: #ffffff !important;
}

/* FIX: Remove 1. 2. 3. 4. ordered list styling and format thumbnails as a modern horizontal grid */
.woocommerce-product-gallery ol.flex-control-nav,
.woocommerce-product-gallery ol.flex-control-thumbs,
.woocommerce div.product div.images ol.flex-control-thumbs,
ol.flex-control-nav.flex-control-thumbs,
ol.flex-control-thumbs,
ol.flex-control-nav {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 12px !important;
	list-style: none !important;
	list-style-type: none !important;
	margin: 14px 0 0 0 !important;
	padding: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	float: none !important;
	position: static !important;
}

.woocommerce-product-gallery ol.flex-control-nav li,
.woocommerce-product-gallery ol.flex-control-thumbs li,
.woocommerce div.product div.images ol.flex-control-thumbs li,
ol.flex-control-nav.flex-control-thumbs li,
ol.flex-control-thumbs li,
ol.flex-control-nav li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	float: none !important;
	width: 100% !important;
	display: block !important;
}

.woocommerce-product-gallery ol.flex-control-thumbs li img,
.woocommerce div.product div.images ol.flex-control-thumbs li img,
ol.flex-control-nav.flex-control-thumbs li img,
ol.flex-control-thumbs li img,
ol.flex-control-nav li img {
	display: block !important;
	width: 100% !important;
	height: 90px !important;
	object-fit: cover !important;
	border-radius: 6px !important;
	border: 2px solid #e2ddd3 !important;
	background: #ffffff !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
	cursor: pointer !important;
	opacity: 0.75 !important;
	transition: all 0.22s ease-in-out !important;
	box-sizing: border-box !important;
}

.woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery ol.flex-control-thumbs li img:hover,
ol.flex-control-thumbs li img.flex-active,
ol.flex-control-thumbs li img:hover,
ol.flex-control-nav li img:hover {
	opacity: 1 !important;
	border-color: #06321a !important;
	box-shadow: 0 4px 12px rgba(6, 50, 26, 0.25) !important;
	transform: translateY(-2px) !important;
}

/* Standalone / Fallback HTML Gallery Layout */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 12px !important;
	margin: 0 0 16px 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child {
	grid-column: 1 / -1 !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child img {
	width: 100% !important;
	max-height: 520px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	border: 1px solid #eae6dc !important;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:not(:first-child) img {
	width: 100% !important;
	height: 90px !important;
	object-fit: cover !important;
	border-radius: 6px !important;
	border: 2px solid #e2ddd3 !important;
	cursor: pointer !important;
	transition: all 0.22s ease !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:not(:first-child) img:hover {
	border-color: #06321a !important;
	opacity: 1 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(6, 50, 26, 0.25) !important;
}



/* Master Hero Slider Rules */
.egc-hero, body.home .egc-hero {
	position: relative !important;
	min-height: 600px !important;
	height: 600px !important;
	display: flex !important;
	align-items: center !important;
	overflow: hidden !important;
	background: #06321a !important;
	background-image: none !important;
	padding: 40px clamp(24px, 5vw, 60px) !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	width: 100% !important;
}

.egc-hero-slider {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 1 !important;
	pointer-events: none !important;
}

.egc-hero-slide {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background-position: center right 10% !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
	opacity: 0 !important;
	transition: opacity 1.2s ease-in-out !important;
	z-index: 1 !important;
}

.egc-hero-slide.active {
	opacity: 1 !important;
	z-index: 2 !important;
}

.egc-hero-overlay {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 3 !important;
	background: linear-gradient(95deg, rgba(6, 50, 26, 0.94) 0%, rgba(6, 50, 26, 0.85) 38%, rgba(6, 50, 26, 0.45) 72%, rgba(6, 50, 26, 0.15) 100%) !important;
	pointer-events: none !important;
}

.egc-hero-copy, body.home .egc-hero-copy {
	position: relative !important;
	z-index: 4 !important;
	max-width: 600px !important;
}

.egc-hero-copy h1 {
	color: #ffffff !important;
	font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	margin: 0 0 16px 0 !important;
	letter-spacing: -0.02em !important;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

.egc-hero-subtitle {
	color: #f7f9f7 !important;
	font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
	line-height: 1.6 !important;
	margin: 0 0 28px 0 !important;
	text-shadow: 0 1px 6px rgba(0,0,0,0.3) !important;
}

.egc-hero-actions {
	display: flex !important;
	gap: 16px !important;
	flex-wrap: wrap !important;
}

.egc-hero-cta {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 14px 30px !important;
	border-radius: 4px !important;
	font-weight: 700 !important;
	font-size: 0.92rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	text-decoration: none !important;
	transition: all 0.25s ease !important;
}

.egc-hero-cta--solid {
	background: #8f7a3f !important;
	color: #ffffff !important;
	border: 2px solid #8f7a3f !important;
}

.egc-hero-cta--solid:hover {
	background: #736130 !important;
	border-color: #736130 !important;
	color: #ffffff !important;
}

.egc-hero-cta--ghost {
	background: transparent !important;
	color: #ffffff !important;
	border: 2px solid #ffffff !important;
}

.egc-hero-cta--ghost:hover {
	background: #ffffff !important;
	color: #06321a !important;
}

@media (max-width: 768px) {
	.egc-hero, body.home .egc-hero {
		min-height: 480px !important;
		height: auto !important;
		padding: 30px 20px !important;
		text-align: center !important;
	}
	.egc-hero-copy, body.home .egc-hero-copy {
		margin: 0 auto !important;
	}
	.egc-hero-actions {
		justify-content: center !important;
	}
	.egc-hero-slide {
		background-position: center center !important;
	}
	.egc-hero-overlay {
		background: rgba(6, 50, 26, 0.85) !important;
	}
}
