/* Final AVS3D storefront polish. Intentionally limited to branding, archive and footer. */
#header [data-row='middle'] {
	border-bottom: 1px solid #e8e0d6 !important;
	background: #fff !important;
}

#header [data-row='middle'] > .ct-container {
	min-height: 74px !important;
	height: 74px !important;
}

#header .site-title a {
	display: block !important;
	width: 174px;
	height: 54px;
	overflow: hidden;
	background: url('../images/avs3d-logo.png') center / 230px auto no-repeat !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	-webkit-text-fill-color: transparent !important;
}

#header .ct-menu-link { color: #30353a !important; }
#header .ct-menu-link:hover { color: #bd6200 !important; }
#header .ct-header-search .ct-icon,
#header .ct-header-trigger .ct-icon { color: #101820 !important; fill: #101820 !important; }

.avs3d-product-shop-nav {
	margin-top: 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.avs3d-product-shop-nav a {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
	min-height: 44px;
	color: #8a4b13;
	font-weight: 600;
	text-decoration: none;
}

.avs3d-product-shop-nav a:hover {
	text-decoration: underline;
}

.avs3d-product-shop-nav a:focus-visible {
	outline: 2px solid #bd6200;
	outline-offset: 4px;
}

/* Product breadcrumb: reuse Blocksy's semantic navigation in the information column. */
body.single-product .entry-summary > .ct-breadcrumbs.avs3d-product-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.45rem;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.9rem;
	padding: 0.48rem 0.75rem;
	border: 1px solid #ded3c3;
	border-radius: 999px;
	background: #f3eee5;
	color: #6f675e;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

body.single-product .entry-summary > .ct-breadcrumbs.avs3d-product-breadcrumb a {
	color: #8a4b13;
	text-decoration: none;
}

body.single-product .entry-summary > .ct-breadcrumbs.avs3d-product-breadcrumb a:hover {
	color: #bd6200;
}

body.single-product .entry-summary > .ct-breadcrumbs.avs3d-product-breadcrumb .ct-separator {
	color: #b4935b;
}

body.single-product .entry-header.avs3d-empty-product-header {
	display: none;
}

body.single-product.avs3d-product-breadcrumb-ready .product-entry-wrapper {
	padding-top: clamp(1.25rem, 2.6vw, 2.25rem);
}

/* Compact public product-category archives. */
body.avs3d-compact-product-category .hero-section {
	display: none;
}

body.avs3d-compact-product-category .site-main {
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

body.avs3d-compact-product-category .site-main > .ct-container {
	padding-top: 0;
}

.avs3d-category-header {
	margin: 0 0 clamp(1.35rem, 2.5vw, 2rem);
	padding: clamp(1.1rem, 1.8vw, 1.35rem);
	border: 1px solid #e4dacd;
	border-radius: 18px;
	background: linear-gradient(145deg, #fffdf9 0%, #f6f0e7 100%);
	box-shadow: 0 14px 38px rgb(62 43 20 / 6%);
}

.avs3d-category-header .ct-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.45rem;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.8rem;
	padding: 0.45rem 0.72rem;
	border: 1px solid #ded3c3;
	border-radius: 999px;
	background: #f3eee5;
	color: #6f675e;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

.avs3d-category-header .ct-breadcrumbs a {
	color: #8a4b13;
	text-decoration: none;
}

.avs3d-category-header .ct-breadcrumbs a:hover {
	color: #bd6200;
}

.avs3d-category-header .ct-breadcrumbs .ct-separator {
	color: #b4935b;
}

.avs3d-category-header .page-title {
	margin: 0;
	color: #151a20;
	font-size: clamp(1.8rem, 3.5vw, 2.55rem);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-align: left;
}

.avs3d-category-header__description {
	max-width: 850px;
	margin-top: 0.75rem;
	color: #5d625f;
	font-size: 0.98rem;
	line-height: 1.55;
}

.avs3d-category-header__description p {
	margin: 0;
}

body.avs3d-compact-product-category .woocommerce-result-count,
body.avs3d-compact-product-category .woocommerce-ordering {
	margin-top: 0;
}

body.avs3d-compact-product-category .products {
	margin-top: 1.25rem;
}

@media (max-width: 689px) {
	body.single-product .entry-summary > .ct-breadcrumbs.avs3d-product-breadcrumb {
		width: 100%;
		border-radius: 12px;
		font-size: 0.7rem;
	}

	body.single-product.avs3d-product-breadcrumb-ready .product-entry-wrapper {
		padding-top: 1rem;
	}

	body.avs3d-compact-product-category .site-main {
		padding-top: 1rem;
	}

	body.avs3d-compact-product-category .site-main > .ct-container {
		padding-top: 0;
	}

	.avs3d-category-header {
		margin-bottom: 1.15rem;
		padding: 1rem;
		border-radius: 15px;
	}

	.avs3d-category-header .ct-breadcrumbs {
		width: 100%;
		margin-bottom: 0.7rem;
		border-radius: 11px;
		font-size: 0.7rem;
	}

	.avs3d-category-header .page-title {
		font-size: clamp(1.7rem, 9vw, 2.15rem);
	}

	.avs3d-category-header__description {
		margin-top: 0.6rem;
		font-size: 0.92rem;
		line-height: 1.55;
	}
}

body.woocommerce-shop .hero-section { display: none !important; }
body.woocommerce-shop .site-main { padding-top: clamp(42px,6vw,76px); }
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering { display: none; }
body.woocommerce-shop .products { margin-top: 0; }

/* Make the complete title, including wrapped line spacing, one native link target. */
body.woocommerce-shop .woocommerce-loop-product__title a,
body.tax-product_cat .woocommerce-loop-product__title a {
	display: block;
}

/* Product-specific archive framing. Keep the card geometry unchanged. */
body.woocommerce-shop ul.products li.product.post-167 img.wp-post-image,
body.woocommerce-shop ul.products li.product.post-119 img.wp-post-image,
body.woocommerce-shop ul.products li.product.post-146 img.wp-post-image,
body.tax-product_cat ul.products li.product.post-167 img.wp-post-image,
body.tax-product_cat ul.products li.product.post-119 img.wp-post-image,
body.tax-product_cat ul.products li.product.post-146 img.wp-post-image {
	aspect-ratio: 3 / 4;
	object-position: 50% 50%;
	object-fit: contain;
	background: #101010;
}

.avs3d-card-sizes {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 9px 0 11px;
	color: #5c6268;
	font-size: 12px;
	line-height: 1.45;
}

.avs3d-card-sizes strong { color: #bd6200; font-size: 11px; letter-spacing: .035em; text-transform: uppercase; }
.avs3d-card-sizes span { color: #3c4248; }
.avs3d-card-sizes em { color:#72787e; font-size:11px; font-style:normal; }

/* Keep WooCommerce product tab content aligned with the site container. */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
	box-sizing: border-box;
	width: min(1180px, 100%);
	max-width: 1180px;
	margin-inline: auto !important;
	padding-inline: clamp(22px, 3vw, 34px);
	text-align: left;
}

.avs3d-bust-points,
.avs3d-bust-guidance,
.avs3d-product-section,
.avs3d-product-guidance {
	margin: 28px 0;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid #eadfd2;
	border-radius: 18px;
	background: #fffaf4;
}

.avs3d-bust-points h2,
.avs3d-bust-guidance h2,
.avs3d-product-section h2,
.avs3d-product-guidance h2 { margin-top: 0; }
.avs3d-bust-points ul,
.avs3d-bust-guidance ul,
.avs3d-product-section ul,
.avs3d-product-guidance ul { margin-bottom: 0; }
.avs3d-bust-guidance__grid,
.avs3d-product-guidance__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.avs3d-bust-guidance__note,
.avs3d-product-guidance__note { margin:24px 0 0; padding:14px 16px; border-left:3px solid #f7931e; background:#fff; }

footer.ct-footer { display: none !important; }
.avs3d-global-legal { padding:24px 20px; background:#0b1117; color:#fff; }
.avs3d-global-legal>div { display:flex; align-items:center; justify-content:space-between; gap:24px; width:min(1280px,100%); margin:0 auto; }
.avs3d-global-legal__brand { display:flex; flex-direction:column; gap:5px; }
.avs3d-global-legal__brand strong { color:#fff; font-size:19px; font-weight:900; letter-spacing:-.045em; }
.avs3d-global-legal__brand strong span { display:inline; color:#f7931e; }
.avs3d-global-legal__brand small { color:rgb(255 255 255 / 52%); font-size:11px; }
.avs3d-global-legal__links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px 22px; }
.avs3d-global-legal a { color:rgb(255 255 255 / 72%); font-size:12px; text-decoration:none; }
.avs3d-global-legal a:hover { color:#f7931e; }

@media (max-width: 689px) {
	#header [data-row='middle'] > .ct-container { min-height: 66px !important; height: 66px !important; }
	#header .site-title a { width: 137px; height: 48px; background-size: 184px auto !important; }
	body.woocommerce-shop .site-main { padding-top: 34px; }
	.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
		width: 100%;
		padding-inline: 18px;
	}
	.avs3d-global-legal>div { align-items:flex-start; flex-direction:column; }
	.avs3d-global-legal__links { justify-content:flex-start; }
	.avs3d-bust-guidance__grid,
	.avs3d-product-guidance__grid { grid-template-columns:1fr; gap:14px; }
}
