/**
 * ==========================================================
 * Aventine SEO Enhancements
 * Frontend Styles
 * Version: 2.0.0
 *
 * These styles only affect HTML generated by this plugin.
 * They do not override WooCommerce, Blocksy, or WordPress styles.
 * ==========================================================
 */


/* ==========================================================
   Product Category SEO Content
   ========================================================== */

.apseo-category-content {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.apseo-category-bottom-content {
	margin: 0;
}

.apseo-category-faq {
	margin-top: 3rem;
}


/* ==========================================================
   Product FAQ Tab
   ========================================================== */

.apseo-product-faq {
	padding-top: 1.5rem;
}


/* ==========================================================
   Page FAQ
   ========================================================== */

.apseo-page-faq {
	margin-top: 3rem;
}

.apseo-page-faq-item + .apseo-page-faq-item {
	margin-top: 2rem;
}


/* ==========================================================
   Typography
   ========================================================== */

.apseo-category-content h2,
.apseo-product-faq h2,
.apseo-product-faq-heading,
.apseo-page-faq h2 {
	display: block;
	margin: 0 0 1.25rem;
	visibility: visible;
	opacity: 1;
}

.apseo-category-content h3,
.apseo-product-faq h3,
.apseo-page-faq h3 {
	margin: 2rem 0 0.75rem;
}

.apseo-category-content p,
.apseo-product-faq p,
.apseo-page-faq p {
	margin: 0 0 1rem;
	line-height: inherit;
}


/* ==========================================================
   Lists
   ========================================================== */

.apseo-category-content ul,
.apseo-category-content ol,
.apseo-product-faq ul,
.apseo-product-faq ol,
.apseo-page-faq ul,
.apseo-page-faq ol {
	margin: 1rem 0 1rem 1.5rem;
	padding: 0;
}


/* ==========================================================
   Images
   ========================================================== */

.apseo-category-content img,
.apseo-product-faq img,
.apseo-page-faq img {
	display: block;
	max-width: 100%;
	height: auto;
}


/* ==========================================================
   Tables
   ========================================================== */

.apseo-category-content table,
.apseo-product-faq table,
.apseo-page-faq table {
	width: 100%;
	border-collapse: collapse;
}


/* ==========================================================
   Long URLs & Long Words
   ========================================================== */

.apseo-category-content,
.apseo-product-faq,
.apseo-page-faq {
	overflow-wrap: break-word;
	word-break: normal;
}


/* ==========================================================
   Product Benefits
   ========================================================== */

.apseo-benefits {
	background: #26215A;
	padding: 3rem;
	margin: 3rem 0;
	border-radius: 12px;
}

.apseo-benefits-heading {
	color: #FFFFFF;
	text-align: center;
	margin: 0 0 2.5rem;
}

.apseo-benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.apseo-benefit-item {
	text-align: center;
	padding: 0 1rem;
}

.apseo-benefit-item h3 {
	color: #ED5B24;
	margin: 0 0 1rem;
}

.apseo-benefit-item p {
	color: #D6D8E7;
	margin: 0;
	line-height: 1.7;
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 1024px) {

	.apseo-benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

	.apseo-benefits {
		padding: 2rem;
	}

	.apseo-benefits-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ==========================================================
   Buy Now Button
   ========================================================== */

.single-product button.apseo-buy-now-button {
	background-color: #B64016;
	border-color: #B64016;
	color: #FFFFFF;
	margin-left: 10px;
}

.single-product button.apseo-buy-now-button:hover {
	background-color: #26215A;
	border-color: #26215A;
	color: #FFFFFF;
}


/* ==========================================================
   View Cart Button
   ========================================================== */

.single-product a.added_to_cart.wc-forward {
	background-color: #26215A;
	color: #FFFFFF;
	border-radius: 4px;
	padding: 0.9em 1.5em;
	text-decoration: none;
	display: inline-block;
	margin-left: 10px;
}

.single-product a.added_to_cart.wc-forward:hover {
	background-color: #B64016;
	color: #FFFFFF;
}

/* Buy Now redirect */

body.apseo-buy-now-active .woocommerce-message,
body.apseo-buy-now-active .woocommerce-notices-wrapper,
body.apseo-buy-now-active a.added_to_cart.wc-forward {
	display: none;
}

/* ==========================================================
   Custom Order Section
   ========================================================== */

/*
 * The Custom Order section is inserted at the beginning of
 * WooCommerce product_meta. These styles are limited to the
 * custom section and do not globally change product metadata.
 */

.single-product .product_meta > .apseo-custom-order {
	display: block;
	clear: both;
	box-sizing: border-box;
	width: 100%;
	flex: 0 0 100%;
	grid-column: 1 / -1;
	margin: 0 0 24px;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
}


/* ==========================================================
   Custom Order Heading
   ========================================================== */

.single-product .apseo-custom-order h2 {
	margin: 0 0 16px;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
}


/* ==========================================================
   Custom Order Content
   ========================================================== */

.single-product .apseo-custom-order-content {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
}

.single-product .apseo-custom-order-content p {
	margin: 0 0 16px;
	padding: 0;
	line-height: 1.7;
	letter-spacing: normal;
	text-transform: none;
}

.single-product .apseo-custom-order-content p:last-child {
	margin-bottom: 0;
}

.single-product .apseo-custom-order-content ul,
.single-product .apseo-custom-order-content ol {
	margin: 1rem 0 1rem 1.5rem;
	padding: 0;
	line-height: 1.7;
}

.single-product .apseo-custom-order-content a {
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: normal;
}


/* ==========================================================
   Custom Order Button Wrapper
   ========================================================== */

.single-product .apseo-custom-order-button-wrap {
	margin: 24px 0 16px;
	padding: 0;
	line-height: normal;
}


/* ==========================================================
   Custom Order Button
   ========================================================== */

.single-product .apseo-custom-order a.apseo-custom-order-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 14px 28px;
	background-color: transparent;
	border: 2px solid #ED5B24;
	border-radius: 4px;
	color: inherit;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	text-decoration: none;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
}

.single-product .apseo-custom-order a.apseo-custom-order-button:hover {
	background-color: #26215A;
	border-color: #ED5B24;
	color: #FFFFFF;
	text-decoration: none;
}

.single-product .apseo-custom-order a.apseo-custom-order-button:focus {
	background-color: #26215A;
	border-color: #ED5B24;
	color: #FFFFFF;
	text-decoration: none;
}

.single-product .apseo-custom-order a.apseo-custom-order-button:focus-visible {
	outline: 2px solid #ED5B24;
	outline-offset: 3px;
}

.single-product .apseo-custom-order a.apseo-custom-order-button:active {
	background-color: #26215A;
	border-color: #ED5B24;
	color: #FFFFFF;
	text-decoration: none;
}


/* ==========================================================
   Custom Order Notice
   ========================================================== */

.single-product .apseo-custom-order-note {
	margin: 0;
	padding: 0;
	color: #6B7280;
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.6;
	letter-spacing: normal;
	text-transform: none;
}


/* ==========================================================
   Custom Order: Tablet
   ========================================================== */

@media (min-width: 769px) and (max-width: 1024px) {

	.single-product .product_meta > .apseo-custom-order {
		margin-bottom: 22px;
	}

	.single-product .apseo-custom-order h2 {
		margin-bottom: 14px;
	}

	.single-product .apseo-custom-order-button-wrap {
		margin-top: 20px;
		margin-bottom: 16px;
	}

	.single-product .apseo-custom-order a.apseo-custom-order-button {
		padding: 13px 24px;
	}
}


/* ==========================================================
   Custom Order: Mobile
   ========================================================== */

@media (max-width: 768px) {

	.single-product .product_meta > .apseo-custom-order {
		margin-bottom: 20px;
	}

	.single-product .apseo-custom-order h2 {
		margin-bottom: 14px;
	}

	.single-product .apseo-custom-order-content p {
		margin-bottom: 14px;
	}

	.single-product .apseo-custom-order-button-wrap {
		margin-top: 20px;
		margin-bottom: 14px;
	}

	.single-product .apseo-custom-order a.apseo-custom-order-button {
		width: 100%;
		min-height: 48px;
		padding: 14px 20px;
	}

	.single-product .apseo-custom-order-note {
		line-height: 1.6;
	}
}
/* Product demo videos — stacked under gallery (left column).
 *
 * .product > .product-entry-wrapper
 *      > .woocommerce-product-gallery
 *      > .apseo-product-video-stack   (one or more .apseo-product-video)
 *      > .summary.entry-summary
 */
.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 2rem;
	row-gap: 1.25rem;
	align-items: start;
}

.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .woocommerce-product-gallery {
	grid-column: 1 !important;
	grid-row: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .apseo-product-video-stack {
	grid-column: 1 !important;
	grid-row: 2 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .summary,
.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .entry-summary,
.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .summary.entry-summary {
	grid-column: 2 !important;
	grid-row: 1 / span 2 !important;
	width: 100% !important;
	max-width: 100% !important;
}

@media screen and (max-width: 991px) {
	.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .woocommerce-product-gallery {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .apseo-product-video-stack {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .summary,
	.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .entry-summary,
	.single-product .product-entry-wrapper:has(> .apseo-product-video-stack) > .summary.entry-summary {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}
}

.apseo-product-video-stack {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	box-sizing: border-box;
}


/* Full-frame cover poster (before play); video keeps original ratio when playing. */
.apseo-product-video-cover {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	cursor: pointer;
	background: #F5F5F5;
	border-radius: 14px;
	overflow: hidden;
}

.apseo-product-video-cover.is-hidden,
.apseo-product-video-cover[hidden] {
	display: none !important;
}

.apseo-product-video-cover-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.apseo-product-video[data-apseo-video="file"] {
	aspect-ratio: 16 / 9;
	max-height: 480px;
}

.apseo-product-video[data-apseo-video="file"] .apseo-product-video-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
	background-color: #F5F5F5;
	border-radius: 14px;
}

.apseo-product-video-yt .apseo-product-video-poster {
	object-fit: cover;
	width: 100%;
	height: 100%;
	max-height: none;
}

.apseo-product-video-yt {
	aspect-ratio: 16 / 9;
	max-height: 480px;
	width: 100%;
}

.apseo-pvg-main {
	width: 100%;
}

.apseo-pvg-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
}

.apseo-pvg-thumb {
	position: relative;
	display: block;
	width: 88px;
	height: 56px;
	padding: 0;
	margin: 0;
	border: 2px solid #E9E9E9;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #F5F5F5;
	box-sizing: border-box;
}

.apseo-pvg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.apseo-pvg-thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, #F7F8FC 0%, #E9E9E9 100%);
}

.apseo-pvg-thumb.is-active {
	border-color: #26215A;
	box-shadow: 0 0 0 1px #26215A;
}

.apseo-pvg-thumb-badge {
	position: absolute;
	right: 4px;
	bottom: 4px;
	padding: 1px 4px;
	border-radius: 3px;
	background: rgba(38, 33, 90, 0.9);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.apseo-product-video {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	background-color: #F5F5F5;
}

.apseo-product-video--hidden,
.apseo-product-video[hidden] {
	display: none !important;
}

.apseo-product-video-player,
.apseo-product-video-yt,
.apseo-product-video-iframe-wrap {
	display: block;
	width: 100%;
	border: 1px solid #E9E9E9;
	border-radius: 14px;
	background-color: #F5F5F5;
	box-shadow: 0 10px 30px rgba(38, 33, 90, 0.08);
	box-sizing: border-box;
	overflow: hidden;
}

.apseo-product-video-player {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
	background-color: #F5F5F5;
	vertical-align: middle;
}

.apseo-product-video-yt {
	position: relative;
	padding: 0;
	margin: 0;
	cursor: pointer;
	border: 1px solid #E9E9E9;
	text-align: left;
}

.apseo-product-video-poster {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
	background-color: #F5F5F5;
}

.apseo-product-video-fallback {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 420px;
	background: linear-gradient(180deg, #F7F8FC 0%, #E9E9E9 100%);
}

.apseo-product-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(38, 33, 90, 0.88);
	box-shadow: 0 6px 20px rgba(38, 33, 90, 0.25);
	pointer-events: none;
}

.apseo-product-video-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	margin: -10px 0 0 -6px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.apseo-product-video-iframe-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 420px;
	background-color: #F5F5F5;
}

.apseo-product-video-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
