/* ==========================================================================
   AN PHAT WINDOOR GUTENBERG - WOOCOMMERCE STYLES (Stage 1 & Global)
   Palette locked: #0e51d1, #0a3d91, #082f70, #1e73be, #ffffff, #ebf2f5, #0a0a0a, #4b5563, #e5e7eb
   ========================================================================== */

/* Price ("Liên hệ" & normal) */
.apw-price-contact,
.wc-block-components-product-price .apw-price-contact {
	color: #0e51d1;
	font-weight: 700;
	font-size: 0.9375rem;
}

/* Breadcrumbs */
.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	font-size: 0.875rem;
	color: #4b5563;
	margin-bottom: 0.75rem;
	line-height: 1.5;
	word-break: break-word;
}

.wc-block-breadcrumbs a,
.woocommerce-breadcrumb a {
	color: #1e73be;
}

/* Archive / Category Header & Toolbar */
.apw-archive-header-banner {
	margin-top: 0.25rem;
	margin-bottom: 0.5rem;
	text-align: center;
}

.apw-archive-main .wp-block-query-title {
	margin-top: 0.25rem;
	margin-bottom: 0.5rem;
	color: #0a3d91;
	text-align: center;
}

.apw-archive-main .wp-block-term-description {
	color: #4b5563;
	margin-bottom: 1.25rem;
	max-width: 78ch;
}

.apw-archive-main .wp-block-term-description p {
	margin-top: 0;
}

.apw-archive-toolbar {
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	align-items: center;
}

.apw-archive-toolbar .wc-block-product-results-count,
.apw-archive-toolbar .woocommerce-result-count {
	margin: 0;
	font-size: 0.9375rem;
	color: #4b5563;
}

.apw-archive-toolbar .woocommerce-ordering select {
	min-height: 48px;
	padding: 0.5rem 0.875rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background-color: #ffffff;
	color: #0a0a0a;
	font-family: inherit;
	font-size: 0.9375rem;
	max-width: 100%;
}

/* Category Filter Pills (Unified with components.css) */
.apw-cat-pills-wrap {
	width: 100% !important;
	max-width: var(--wp--style--global--wide-size, 1280px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 14px !important;
	margin-bottom: 24px !important;
	padding-left: 16px !important;
	padding-right: 16px !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.apw-cat-pills-track,
.apw-cat-pills-container {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 10px 12px !important;
	padding: 6px 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

@media (max-width: 959px) {
	.apw-cat-pills-wrap {
		padding-left: 16px !important;
		padding-right: 16px !important;
		margin-top: 10px !important;
		margin-bottom: 18px !important;
		overflow: hidden !important;
	}

	.apw-cat-pills-track,
	.apw-cat-pills-container {
		flex-wrap: nowrap !important;
		justify-content: flex-start !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		scroll-snap-type: x proximity !important;
		padding-bottom: 8px !important;
		padding-top: 4px !important;
		gap: 8px !important;
		scrollbar-width: none !important;
	}

	.apw-cat-pills-container::-webkit-scrollbar,
	.apw-cat-pills-track::-webkit-scrollbar {
		display: none !important;
	}
}

.apw-cat-pill {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.apw-cat-pill .wp-block-button__link {
	min-height: 48px;
	padding: 0.625rem 1.125rem;
	border-radius: 99px !important;
	border: 1.5px solid #e5e7eb !important;
	background-color: #ffffff !important;
	color: #0a0a0a !important;
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.apw-cat-pill .wp-block-button__link:hover {
	border-color: #0e51d1 !important;
	background-color: #ebf2f5 !important;
	color: #0e51d1 !important;
}

.apw-cat-pill.is-active .wp-block-button__link {
	background-color: #0e51d1 !important;
	border-color: #0e51d1 !important;
	color: #ffffff !important;
	font-weight: 700;
}

/* Archive & Category Product Grid: 2-col Mobile / 3-col Tablet / 4-col Desktop */
.apw-archive-main .wp-block-woocommerce-product-collection ul.wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 0.75rem !important;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.apw-archive-main .wp-block-woocommerce-product-collection ul.wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 1rem !important;
	}
}

@media (min-width: 960px) {
	.apw-archive-main .wp-block-woocommerce-product-collection ul.wc-block-product-template {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 1.25rem !important;
	}
}

/* Shared Product Card Styling (Archive + Related + Homepage) */
.wp-block-woocommerce-product-collection ul.wc-block-product-template > li.wc-block-product {
	min-width: 0;
	width: 100% !important;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.75rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 782px) {
	.wp-block-woocommerce-product-collection ul.wc-block-product-template > li.wc-block-product {
		padding: 0.875rem;
	}
}

.wp-block-woocommerce-product-collection ul.wc-block-product-template > li.wc-block-product:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(10, 61, 145, 0.1);
	border-color: #0e51d1;
}

/* Preserved Original Product Image Aspect Ratios (No cropping / No distortion) */
.wc-block-product .wc-block-components-product-image {
	margin-bottom: 0.75rem;
	background-color: #ebf2f5;
	border-radius: 8px;
	overflow: hidden;
}

.wc-block-product .wc-block-components-product-image a {
	display: block;
}

.wc-block-product .wc-block-components-product-image img {
	border-radius: 8px;
	width: 100% !important;
	height: auto !important;
	object-fit: contain;
	display: block;
}

.wc-block-product .wp-block-post-title {
	margin: 0 0 0.4rem;
}

.wc-block-product .wp-block-post-title a {
	color: #0a0a0a;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 782px) {
	.wc-block-product .wp-block-post-title a {
		font-size: 1rem;
	}
}

.wc-block-product .wp-block-post-title a:hover {
	color: #0e51d1;
}

.wc-block-product .wc-block-components-product-price {
	margin-top: auto;
	margin-bottom: 0.5rem;
}

.wc-block-product .wc-block-components-product-button {
	margin-top: 0.25rem;
}

.wc-block-product .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	min-height: 48px;
	padding: 0.625rem 0.75rem;
	border-radius: 6px;
	background-color: #0e51d1;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover {
	background-color: #0a3d91;
	color: #ffffff;
}

/* Pagination */
.apw-archive-main .wp-block-query-pagination {
	margin-top: 2rem;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.apw-archive-main .wp-block-query-pagination a,
.apw-archive-main .wp-block-query-pagination span.page-numbers {
	min-width: 48px;
	min-height: 48px;
	padding: 0 0.875rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #ffffff;
	color: #0a0a0a;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.apw-archive-main .wp-block-query-pagination a:hover {
	border-color: #0e51d1;
	color: #0e51d1;
	background: #ebf2f5;
}

.apw-archive-main .wp-block-query-pagination span.page-numbers.current {
	background: #0e51d1;
	border-color: #0e51d1;
	color: #ffffff;
	font-weight: 700;
}

/* Homepage Product Scroll Strip */
.apw-home-products ul.wc-block-product-template {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 1rem;
	padding-bottom: 0.5rem;
	scrollbar-width: thin;
	scrollbar-color: #0e51d1 #ebf2f5;
}

.apw-home-products ul.wc-block-product-template > li.wc-block-product {
	flex: 0 0 74% !important;
	width: auto !important;
	scroll-snap-align: start;
}

@media (min-width: 600px) {
	.apw-home-products ul.wc-block-product-template > li.wc-block-product {
		flex: 0 0 45% !important;
	}
}

@media (min-width: 960px) {
	.apw-home-products ul.wc-block-product-template {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		overflow-x: visible;
	}
	.apw-home-products ul.wc-block-product-template > li.wc-block-product {
		flex: initial !important;
	}
}

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.apw-single-product-hero {
	margin-top: 0.75rem;
	align-items: flex-start;
}

.apw-product-gallery-col,
.apw-product-summary-col {
	min-width: 0;
}

.apw-product-summary-col .wp-block-post-title,
.apw-single-product-main h1.wp-block-post-title {
	font-family: 'Roboto', sans-serif !important;
	font-size: clamp(1.375rem, 2.4vw, 1.625rem) !important; /* 22px - 26px */
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #00152c !important; /* Architectural Luminescence structural-navy */
	margin-top: 0 !important;
	margin-bottom: 0.65rem !important;
	letter-spacing: -0.01em !important;
	word-break: break-word !important;
}

@media (max-width: 768px) {
	.apw-product-summary-col .wp-block-post-title,
	.apw-single-product-main h1.wp-block-post-title {
		font-size: 1.25rem !important; /* 20px */
		line-height: 1.4 !important;
		margin-bottom: 0.5rem !important;
	}
}

/* Single Product Gallery: Original Aspect Ratio + Balanced Centered Thumbnails */
.apw-product-gallery-col .wp-block-woocommerce-product-image-gallery,
.apw-product-gallery-col .woocommerce-product-gallery {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	position: relative;
	box-sizing: border-box !important;
}

.apw-product-gallery-col .woocommerce-product-gallery .flex-viewport {
	width: 100% !important;
	max-width: 100% !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #ffffff !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__wrapper {
	margin: 0 !important;
	max-width: 100% !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__image {
	background-color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__image a {
	display: block !important;
	width: 100% !important;
	cursor: zoom-in;
	text-align: center !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__image img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 480px !important;
	object-fit: contain !important;
	display: block !important;
	margin: 0 auto !important;
	border-radius: 6px !important;
}

/* Thumbnails: Centered, 16:10 / 16:9 Aspect Ratio (No awkward cropping) */
.apw-product-gallery-col .flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 12px 0 4px 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
}

.apw-product-gallery-col .flex-control-thumbs li {
	flex: 0 0 88px !important;
	width: 88px !important;
	height: 58px !important;
	float: none !important;
	margin: 0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #f1f5f9 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.apw-product-gallery-col .flex-control-thumbs li img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	border: 2px solid #e2e8f0 !important;
	opacity: 0.75 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	display: block !important;
	box-sizing: border-box !important;
}

.apw-product-gallery-col .flex-control-thumbs li img.flex-active,
.apw-product-gallery-col .flex-control-thumbs li img:hover {
	opacity: 1 !important;
	border-color: #0e51d1 !important;
	box-shadow: 0 0 0 2px rgba(14, 81, 209, 0.25) !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__trigger {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 15 !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.94) !important;
	border: 1px solid #cbd5e1 !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: all 0.25s ease !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	overflow: hidden !important;
	text-indent: -9999px !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__trigger::before,
.apw-product-gallery-col .woocommerce-product-gallery__trigger::after {
	content: "" !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: 19px !important;
	height: 19px !important;
	background-color: #0e51d1 !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain !important;
	display: block !important;
	transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__trigger:hover {
	background: #ffffff !important;
	border-color: #0e51d1 !important;
	transform: scale(1.08) !important;
	box-shadow: 0 4px 14px rgba(14, 81, 209, 0.25) !important;
}

.apw-product-gallery-col .woocommerce-product-gallery__trigger:hover::before,
.apw-product-gallery-col .woocommerce-product-gallery__trigger:hover::after {
	background-color: #0a3d91 !important;
	transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Trust Badges Desktop vs Mobile Toggle */
.apw-trust-badges-mobile {
	display: none !important;
}

@media (max-width: 781px) {
	.apw-trust-badges-desktop {
		display: none !important;
	}
	.apw-trust-badges-mobile {
		display: flex !important;
		margin-top: 14px !important;
		margin-bottom: 16px !important;
	}
}

/* Single Product Price Badge ("Liên hệ") */
.apw-single-price-badge {
	margin: 0.75rem 0;
}

.apw-single-price-badge .apw-price-contact {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.45rem 1.125rem;
	background-color: #ebf2f5;
	border: 1.5px solid #0e51d1;
	border-radius: 8px;
	color: #0e51d1;
	font-size: 1.125rem;
	font-weight: 700;
}

.apw-single-price-badge .apw-price-contact::before {
	content: "Giá: ";
	font-weight: 500;
	color: #0a3d91;
	margin-right: 0.35rem;
}

/* Single Product Direct CTA Buttons */
.apw-single-cta-wrap {
	margin: 1.25rem 0;
}

.apw-product-cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.apw-product-cta-buttons .apw-cta-btn {
	flex: 1 1 200px;
}

.apw-product-cta-buttons .apw-cta-btn .wp-block-button__link {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1.125rem;
	font-size: 0.9375rem;
	font-weight: 700;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.apw-product-cta-buttons .apw-cta-quote.is-style-outline .wp-block-button__link {
	border: 1.5px solid #0e51d1;
	color: #0e51d1;
	background-color: #ffffff;
}

.apw-product-cta-buttons .apw-cta-quote.is-style-outline .wp-block-button__link:hover {
	background-color: #ebf2f5;
	color: #0a3d91;
}

.apw-quick-quote-details {
	margin-top: 0.875rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #ebf2f5;
}

.apw-quick-quote-details summary {
	min-height: 48px;
	color: #0a3d91;
	font-weight: 700;
}

.apw-quick-quote-details[open] .apw-form-wrapper {
	margin-top: 0.75rem;
	background: #ffffff;
}

/* Single Product Meta */
.wp-block-woocommerce-product-meta {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
	font-size: 0.9375rem;
	color: #4b5563;
}

.wp-block-woocommerce-product-meta .wp-block-group {
	gap: 0.75rem 1.5rem;
}

/* Single Product Details Tabs / Accordion */
.apw-product-details-wrap {
	margin-top: 2.5rem;
}

.apw-product-details-wrap .woocommerce-tabs {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background-color: #ffffff;
	overflow: hidden;
}

.apw-product-details-wrap ul.tabs.wc-tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0.625rem 0.75rem 0;
	background-color: #ebf2f5;
	border-bottom: 1px solid #e5e7eb;
	scrollbar-width: none;
}

.apw-product-details-wrap ul.tabs.wc-tabs::-webkit-scrollbar {
	display: none;
}

.apw-product-details-wrap ul.tabs.wc-tabs li {
	margin: 0;
	flex: 0 0 auto;
}

.apw-product-details-wrap ul.tabs.wc-tabs li a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.625rem 1.25rem;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #4b5563;
	white-space: nowrap;
	border-radius: 8px 8px 0 0;
	border: 1px solid transparent;
	border-bottom: 0;
}

.apw-product-details-wrap ul.tabs.wc-tabs li a:hover {
	color: #0e51d1;
}

.apw-product-details-wrap ul.tabs.wc-tabs li.active a {
	background-color: #ffffff;
	color: #0e51d1;
	border-color: #e5e7eb;
	position: relative;
	bottom: -1px;
}

/* ==========================================================================
   PRODUCT DESCRIPTION / BLOG PANEL TYPOGRAPHY & SPACING (Architectural Luminescence)
   ========================================================================== */
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.apw-product-details-wrap .woocommerce-Tabs-panel,
.apw-product-details-wrap .panel {
	margin: 0 !important;
	padding: 1.25rem 1rem !important;
	color: #1f2937 !important;
	background-color: #ffffff !important;
	box-sizing: border-box !important;
	font-family: 'Roboto', -apple-system, sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.7 !important;
}

@media (min-width: 768px) {
	.woocommerce div.product .woocommerce-tabs .panel,
	.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
	.apw-product-details-wrap .woocommerce-Tabs-panel,
	.apw-product-details-wrap .panel {
		padding: 2rem 2.25rem !important;
	}
}

@media (min-width: 1024px) {
	.woocommerce div.product .woocommerce-tabs .panel,
	.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
	.apw-product-details-wrap .woocommerce-Tabs-panel,
	.apw-product-details-wrap .panel {
		padding: 2.25rem 2.75rem !important;
	}
}

/* Hide redundant WooCommerce default "Mô tả" h2 if output inside description tab */
.apw-product-details-wrap .woocommerce-Tabs-panel--description > h2:first-child,
.woocommerce div.product .woocommerce-tabs .panel--description > h2:first-child {
	display: none !important;
}

/* In case any first-child h2 remains, ensure zero top margin */
.apw-product-details-wrap .woocommerce-Tabs-panel > h2:first-child,
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	margin-top: 0 !important;
	margin-bottom: 1.25rem !important;
}

/* Product Blog Content Headings (H2) */
.apw-product-details-wrap .woocommerce-Tabs-panel h2:not(:first-child),
.woocommerce div.product .woocommerce-tabs .panel h2:not(:first-child) {
	margin-top: 2.25rem !important;
	margin-bottom: 1rem !important;
	font-size: clamp(1.25rem, 2vw, 1.45rem) !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
	color: #0e51d1 !important;
	padding-left: 14px !important;
	border-left: 4px solid #0e51d1 !important;
	clear: both !important;
}

/* Product Blog Content Headings (H3) */
.apw-product-details-wrap .woocommerce-Tabs-panel h3,
.woocommerce div.product .woocommerce-tabs .panel h3 {
	margin-top: 1.75rem !important;
	margin-bottom: 0.75rem !important;
	font-size: clamp(1.1rem, 1.5vw, 1.25rem) !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	color: #00152c !important;
	clear: both !important;
}

/* Product Blog Content Paragraphs */
.apw-product-details-wrap .woocommerce-Tabs-panel p,
.woocommerce div.product .woocommerce-tabs .panel p {
	font-size: 1rem !important;
	line-height: 1.7 !important;
	color: #1f2937 !important;
	margin-top: 0 !important;
	margin-bottom: 1.25rem !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel strong,
.woocommerce div.product .woocommerce-tabs .panel strong {
	color: #00152c !important;
	font-weight: 700 !important;
}

/* Product Blog Images & Figures Spacing */
.apw-product-details-wrap .woocommerce-Tabs-panel figure,
.woocommerce div.product .woocommerce-tabs .panel figure,
.apw-product-details-wrap .woocommerce-Tabs-panel .wp-caption,
.woocommerce div.product .woocommerce-tabs .panel .wp-caption {
	margin: 1.75rem auto !important;
	max-width: 100% !important;
	width: auto !important;
	display: block !important;
	text-align: center !important;
	clear: both !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel figure img,
.woocommerce div.product .woocommerce-tabs .panel figure img,
.apw-product-details-wrap .woocommerce-Tabs-panel img,
.woocommerce div.product .woocommerce-tabs .panel img {
	max-width: 100% !important;
	height: auto !important;
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Image Captions */
.apw-product-details-wrap .woocommerce-Tabs-panel figcaption,
.woocommerce div.product .woocommerce-tabs .panel figcaption,
.apw-product-details-wrap .woocommerce-Tabs-panel .wp-caption-text,
.woocommerce div.product .woocommerce-tabs .panel .wp-caption-text {
	display: block !important;
	text-align: center !important;
	font-size: 0.875rem !important;
	font-style: italic !important;
	color: #64748b !important;
	margin-top: 0.625rem !important;
	margin-bottom: 0 !important;
	padding: 0 0.5rem !important;
	line-height: 1.5 !important;
}

/* Lists inside Product Blog */
.apw-product-details-wrap .woocommerce-Tabs-panel ul:not(.wc-tabs),
.woocommerce div.product .woocommerce-tabs .panel ul:not(.wc-tabs),
.apw-product-details-wrap .woocommerce-Tabs-panel ol,
.woocommerce div.product .woocommerce-tabs .panel ol {
	margin-top: 0.5rem !important;
	margin-bottom: 1.25rem !important;
	padding-left: 1.75rem !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel li,
.woocommerce div.product .woocommerce-tabs .panel li {
	margin-bottom: 0.5rem !important;
	line-height: 1.65 !important;
	color: #1f2937 !important;
}

/* Blockquotes */
.apw-product-details-wrap .woocommerce-Tabs-panel blockquote,
.woocommerce div.product .woocommerce-tabs .panel blockquote {
	margin: 1.5rem 0 !important;
	padding: 1rem 1.25rem !important;
	background-color: #f8fafc !important;
	border-left: 4px solid #0e51d1 !important;
	border-radius: 0 8px 8px 0 !important;
	font-style: italic !important;
	color: #334155 !important;
}

.apw-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1rem 0;
}

.apw-product-details-wrap .woocommerce-Tabs-panel table {
	width: 100% !important;
	max-width: 100% !important;
	border-collapse: collapse !important;
	display: table !important;
	margin: 1.5rem 0 !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
	font-family: 'Roboto', sans-serif !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel th,
.apw-product-details-wrap .woocommerce-Tabs-panel td {
	padding: 12px 16px !important;
	border: 1px solid #e2e8f0 !important;
	text-align: left !important;
	font-size: 14.5px !important;
	line-height: 1.6 !important;
	vertical-align: top !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel th,
.apw-product-details-wrap .woocommerce-Tabs-panel thead td {
	background-color: #f1f5f9 !important;
	color: #00152c !important;
	font-weight: 700 !important;
	font-size: 14.5px !important;
	letter-spacing: 0.02em !important;
	border-bottom: 2px solid #cbd5e1 !important;
}

/* Fallback for table header row when no <thead>/<th> was used (e.g. first row with bold text) */
.apw-product-details-wrap .woocommerce-Tabs-panel table > tbody > tr:first-child:not(:has(ul)) td {
	background-color: #f1f5f9 !important;
	color: #00152c !important;
	font-weight: 700 !important;
	border-bottom: 2px solid #cbd5e1 !important;
	padding: 12px 16px !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel tr:nth-child(even) td {
	background-color: #f8fafc !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel tr:hover td {
	background-color: #eff6ff !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel table ul {
	margin: 6px 0 0 0 !important;
	padding-left: 18px !important;
}

.apw-product-details-wrap .woocommerce-Tabs-panel table li {
	margin-bottom: 4px !important;
	line-height: 1.5 !important;
}

/* Collapsible long description to avoid endless mobile scrolling */
.apw-desc-collapsible.is-collapsed {
	max-height: 440px;
	overflow: hidden;
	position: relative;
}

@media (min-width: 768px) {
	.apw-desc-collapsible.is-collapsed {
		max-height: 580px;
	}
}

.apw-desc-collapsible.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 84px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
	pointer-events: none;
}

.apw-desc-toggle-wrap {
	margin-top: 0.75rem;
	text-align: center;
}

.apw-desc-toggle-btn {
	min-height: 48px;
	padding: 0.625rem 1.5rem;
	border-radius: 99px;
	border: 1.5px solid #0e51d1;
	background: #ffffff;
	color: #0e51d1;
	font-weight: 700;
	font-size: 0.9375rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.apw-desc-toggle-btn:hover {
	background: #0e51d1;
	color: #ffffff;
}

/* Related Products Horizontal Carousel */
.apw-related-products {
	margin-top: 2.5rem;
}

.apw-related-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.apw-related-head h2 {
	margin: 0;
}

.apw-related-products .apw-carousel-controls {
	margin-top: 0;
	gap: 0.5rem;
}

.apw-related-products .apw-carousel-btn {
	width: auto;
	height: auto;
	border: 0;
	background: transparent;
}

.apw-related-products .apw-carousel-btn .wp-block-button__link {
	width: 48px;
	height: 48px;
	min-height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid #0e51d1;
	background-color: #ffffff;
	color: #0e51d1;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.apw-related-products .apw-carousel-btn .wp-block-button__link:hover {
	background-color: #0e51d1;
	color: #ffffff;
}

.apw-related-products ul.wc-block-product-template {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: 1rem;
	margin: 0;
	padding: 0 0 0.75rem;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: #0e51d1 #ebf2f5;
}

.apw-related-products ul.wc-block-product-template > li.wc-block-product {
	flex: 0 0 74% !important;
	width: auto !important;
	scroll-snap-align: start;
}

@media (min-width: 600px) {
	.apw-related-products ul.wc-block-product-template > li.wc-block-product {
		flex: 0 0 46% !important;
	}
}

@media (min-width: 960px) {
	.apw-related-products ul.wc-block-product-template > li.wc-block-product {
		flex: 0 0 calc((100% - 3rem) / 4) !important;
	}
}
