/*
 * product-regular.css — WC single product page for non-plan products.
 * Plan products use the approved-by-Kemar chn-plan-detail-* mu-plugins
 * and are untouched by this stylesheet.
 *
 * Brand tokens only. The Elementor product widgets emit their own
 * markup; we override via body.chn-product--regular scoping so plan
 * pages are not affected.
 */

/* Section rhythm */
body.chn-product--regular .single-product,
body.chn-product--regular .product.type-product {
	background: var(--chn-color-surface);
}

body.chn-product--regular .chn-breadcrumb {
	padding-top: var(--chn-space-4);
	padding-bottom: var(--chn-space-2);
}

body.chn-product--regular .elementor-element-pd_hero {
	background: linear-gradient(180deg, var(--chn-color-surface) 0%, #fbfaf7 100%) !important;
}
body.chn-product--regular .elementor-element-pd_hero > .elementor-container {
	align-items: flex-start;
	gap: clamp(28px, 4vw, 64px);
}
body.chn-product--regular .elementor-element-pd_col_img,
body.chn-product--regular .elementor-element-pd_col_info {
	padding: 0 !important;
}
body.chn-product--regular .elementor-element-pd_col_info > .elementor-widget-wrap {
	padding: clamp(24px, 3vw, 36px) !important;
	background: var(--chn-color-surface);
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-md);
	box-shadow: 0 18px 42px -34px rgba(11, 59, 148, .55);
}

.chn-regular-product-context {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: var(--chn-space-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--chn-color-muted);
}
.chn-regular-product-context a {
	color: var(--chn-color-primary);
	text-decoration: none;
}
.chn-regular-product-context a:hover { text-decoration: underline; }
.chn-regular-product-context__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	letter-spacing: .08em;
}
.chn-regular-product-context__stock::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.chn-regular-product-context__stock.is-in-stock { color: #25734b; }
.chn-regular-product-context__stock.is-out-of-stock { color: #a13b31; }

/* Title — replace the inline-styled headline with editorial type. */
body.chn-product--regular .product_title,
body.chn-product--regular h1[style*="font-size"] {
	font-family: var(--chn-font-serif) !important;
	font-size: clamp(28px, 3.2vw, 40px) !important;
	font-weight: 600 !important;
	font-variation-settings: "opsz" 48, "wght" 600;
	letter-spacing: -.015em;
	color: var(--chn-color-text) !important;
	line-height: 1.1;
	margin: 0 0 var(--chn-space-3) !important;
}

/* Price */
body.chn-product--regular .price,
body.chn-product--regular .elementor-widget-woocommerce-product-price .price,
body.chn-product--regular .woocommerce-Price-amount {
	font-family: var(--chn-font-mono);
	font-size: 22px;
	color: var(--chn-color-primary);
	font-feature-settings: "tnum";
}
body.chn-product--regular .price del,
body.chn-product--regular .price del .woocommerce-Price-amount { color: var(--chn-color-muted); font-size: 16px; }
body.chn-product--regular .price ins { background: transparent; text-decoration: none; }

/* Add to cart */
body.chn-product--regular form.cart .single_add_to_cart_button,
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart .button {
	background: var(--chn-color-primary) !important;
	color: #fff !important;
	border: 0 !important;
	font-family: var(--chn-font-sans) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
	padding: 13px 28px !important;
	border-radius: 2px !important;
	transition: background .15s ease, transform .12s ease;
}
body.chn-product--regular form.cart .single_add_to_cart_button:hover,
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart .button:hover {
	background: var(--chn-color-primary-700) !important;
	transform: translateY(-1px);
}
body.chn-product--regular form.cart .quantity .qty {
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-sm);
	padding: 10px 8px;
	font-family: var(--chn-font-mono);
	font-feature-settings: "tnum";
}

/* Sale badge */
body.chn-product--regular .onsale {
	background: var(--chn-color-accent) !important;
	color: #fff !important;
	font-family: var(--chn-font-sans) !important;
	font-weight: 700 !important;
	font-size: 10px !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	padding: 4px 10px !important;
	border-radius: 2px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
}

/* Short description / excerpt */
body.chn-product--regular .woocommerce-product-details__short-description,
body.chn-product--regular .elementor-widget-woocommerce-product-short-description {
	color: var(--chn-color-text);
	font-size: 15px;
	line-height: 1.6;
}

/* Product meta (SKU + categories + tags) */
body.chn-product--regular .product_meta,
body.chn-product--regular .product_meta a {
	font-family: var(--chn-font-sans);
	font-size: 13px;
	color: var(--chn-color-muted);
}
body.chn-product--regular .product_meta a { color: var(--chn-color-primary); text-decoration: none; }
body.chn-product--regular .product_meta a:hover { color: var(--chn-color-primary-700); text-decoration: underline; }

/* Description / Tabs */
body.chn-product--regular .woocommerce-tabs ul.tabs,
body.chn-product--regular .woocommerce-tabs .tabs {
	border-bottom: 1px solid var(--chn-color-border) !important;
	margin: 0 0 var(--chn-space-4) !important;
	padding: 0 !important;
	display: flex;
	gap: var(--chn-space-5);
	list-style: none;
}
body.chn-product--regular .woocommerce-tabs ul.tabs li {
	background: transparent !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
}
body.chn-product--regular .woocommerce-tabs ul.tabs li a {
	padding: var(--chn-space-3) 0 !important;
	font-family: var(--chn-font-sans) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
	color: var(--chn-color-muted) !important;
	border-bottom: 2px solid transparent !important;
	text-decoration: none !important;
}
body.chn-product--regular .woocommerce-tabs ul.tabs li.active a {
	color: var(--chn-color-primary) !important;
	border-bottom-color: var(--chn-color-primary) !important;
}
body.chn-product--regular .woocommerce-tabs ul.tabs li::before,
body.chn-product--regular .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.chn-product--regular .woocommerce-Tabs-panel h2,
body.chn-product--regular .elementor-tab-title {
	font-family: var(--chn-font-serif) !important;
	font-size: 22px !important;
	color: var(--chn-color-text) !important;
	margin: 0 0 var(--chn-space-3) !important;
}
body.chn-product--regular .woocommerce-Tabs-panel p {
	color: var(--chn-color-text);
	font-size: 15px;
	line-height: 1.7;
}

/* Product gallery — keep WC's default but soften borders */
body.chn-product--regular .woocommerce-product-gallery__image {
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-md);
	overflow: hidden;
}
body.chn-product--regular .woocommerce-product-gallery__wrapper .flex-control-thumbs {
	margin-top: var(--chn-space-3);
}
body.chn-product--regular .flex-control-thumbs li img {
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-sm);
	opacity: .7;
	transition: opacity .15s ease, border-color .15s ease;
}
body.chn-product--regular .flex-control-thumbs li img:hover,
body.chn-product--regular .flex-control-thumbs li img.flex-active {
	opacity: 1;
	border-color: var(--chn-color-primary);
}

/* Related products grid — match the catalogue card language */
body.chn-product--regular .related.products,
body.chn-product--regular .related-products,
body.chn-product--regular .elementor-widget-woocommerce-product-related {
	padding-top: var(--chn-space-6);
	border-top: 1px solid var(--chn-color-border);
	margin-top: var(--chn-space-6);
}
body.chn-product--regular .related.products > h2,
body.chn-product--regular .related-products > h2,
body.chn-product--regular .elementor-widget-woocommerce-product-related .elementor-heading-title {
	font-family: var(--chn-font-serif) !important;
	font-size: 24px !important;
	color: var(--chn-color-text) !important;
	margin-bottom: var(--chn-space-4) !important;
	font-variation-settings: "opsz" 36, "wght" 600;
	letter-spacing: -.01em;
}

/* HIDE the plan-only "More Designs by this Architect" rail on regular
   products — chn-plan-related-as-catalog-cards.php was designed for plans
   only but emits on every WC product. Restrict it via body class. */
body.chn-product--regular .chnu-architect-related,
body.chn-product--regular section[class*="architect-related"],
body.chn-product--regular .more-designs-by-architect { display: none !important; }

/* HIDE plan-only "Bid" / "Modify this design" CTAs on regular products
   (they only make sense for house plans). */
body.chn-product--regular .chn-plan-detail-ctas,
body.chn-product--regular .chn-plan-detail-cta { display: none !important; }

/* HIDE plan-only Elementor widgets that the shared product template renders
   on every product. The shared Elementor template (`pd_*` widget IDs) is
   used for both plans AND regular WC products, so any plan-specific widget
   leaks through onto regulars and must be suppressed at the CSS layer.
   These IDs are stable Elementor element IDs from the template. */
body.chn-product--regular .elementor-element-pd_w_modify,
body.chn-product--regular .elementor-element-pd_w_arch,
body.chn-product--regular .elementor-element-pd_w_code,
body.chn-product--regular .elementor-element-pd_w_facts,
body.chn-product--regular .elementor-element-pd_w_rel_head,
body.chn-product--regular .elementor-element-48dbb00,
body.chn-product--regular .elementor-element-9f844a8,
body.chn-product--regular .elementor-element-ad2e22a { display: none !important; }

/* Style the WC related-products widget's own h2 (it emits a native
   "Related products" heading inside the widget container — we just need
   to brand it. The plan-only `pd_w_rel_head` heading above is hidden so
   this one stands alone. */
/* F-CSS-100: now that F-PHP-020 suppresses the empty pd_w_rel_head section,
   pd_hero sits directly adjacent to pd_w_related — bump padding-top to
   --chn-space-7 (48px) so the section change reads, clears 38px floor. */
body.chn-product--regular .elementor-element-pd_w_related { padding-top: var(--chn-space-7); }
body.chn-product--regular .elementor-element-pd_w_related .products-related h2,
body.chn-product--regular .elementor-element-pd_w_related > .elementor-widget-container > h2,
body.chn-product--regular .elementor-widget-woocommerce-product-related h2 {
	font-family: var(--chn-font-serif) !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	font-variation-settings: "opsz" 36, "wght" 600;
	letter-spacing: -.01em;
	color: var(--chn-color-text) !important;
	margin: 0 0 var(--chn-space-4) !important;
	padding-bottom: var(--chn-space-3);
	border-bottom: 1px solid var(--chn-color-border);
}

/* HIDE plan-only design-code chip + facts row */
body.chn-product--regular .chn-design-code,
body.chn-product--regular .chn-facts-row { display: none !important; }

/* CTA band spacing inside the WC main */
body.chn-product--regular .chn-cta-band { margin-top: var(--chn-space-6); }

/* Strengthen title override — Elementor renders the title via shortcode
   widget with inline styles that previously bled through. Tighten selectors
   so neither widget-container nor shortcode emission can win. */
body.chn-product--regular .elementor-widget-shortcode .product_title,
body.chn-product--regular .elementor-element-pd_w_title .product_title,
body.chn-product--regular .elementor-element-pd_w_title h1,
body.chn-product--regular .elementor-element-pd_w_title h1[style] {
	font-family: var(--chn-font-serif) !important;
	font-size: clamp(28px, 3.2vw, 40px) !important;
	font-weight: 600 !important;
	color: var(--chn-color-text) !important;
	line-height: 1.1 !important;
	letter-spacing: -.015em !important;
	margin: 0 0 var(--chn-space-3) !important;
}

/* Layout polish — give the right-column summary a bit more breathing room */
body.chn-product--regular div.product .summary,
body.chn-product--regular div.product .entry-summary {
	padding-left: var(--chn-space-5);
}

/* Mobile responsive */
@media (max-width: 900px) {
	body.chn-product--regular div.product .summary,
	body.chn-product--regular div.product .entry-summary { padding-left: 0; }
}
@media (max-width: 600px) {
	body.chn-product--regular .woocommerce-tabs ul.tabs { flex-direction: column; gap: 0; }
	body.chn-product--regular .woocommerce-tabs ul.tabs li a { padding: 12px 0 !important; }
}

/* ============================================================
   ELEMENTOR PRODUCT WIDGETS — the regular product page actually
   uses Elementor's woocommerce widgets, not WC default tabs.
   Style those container classes too.
   ============================================================ */

/* Description widget (renders the long product description content) */
body.chn-product--regular .elementor-widget-woocommerce-product-content { margin-top: var(--chn-space-5); }
body.chn-product--regular .elementor-widget-woocommerce-product-content .elementor-widget-container > h2,
body.chn-product--regular .elementor-widget-woocommerce-product-content h2 {
	font-family: var(--chn-font-serif) !important;
	font-size: 22px !important;
	color: var(--chn-color-text) !important;
	font-variation-settings: "opsz" 36, "wght" 600;
	letter-spacing: -.01em;
	margin: 0 0 var(--chn-space-3) !important;
	padding-bottom: var(--chn-space-2);
	border-bottom: 1px solid var(--chn-color-border);
}
body.chn-product--regular .elementor-widget-woocommerce-product-content p,
body.chn-product--regular .elementor-widget-woocommerce-product-content li {
	color: var(--chn-color-text);
	font-family: var(--chn-font-sans);
	font-size: 15px;
	line-height: 1.7;
}
body.chn-product--regular .elementor-widget-woocommerce-product-content ul,
body.chn-product--regular .elementor-widget-woocommerce-product-content ol {
	padding-left: var(--chn-space-5);
	margin-bottom: var(--chn-space-4);
}

/* Price widget alignment + sale wrapper */
body.chn-product--regular .elementor-widget-woocommerce-product-price .price {
	margin: var(--chn-space-4) 0 var(--chn-space-3);
}

/* Add-to-cart widget — Elementor's own button wrapper */
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart form.cart {
	margin-top: var(--chn-space-3);
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart .quantity {
	margin-right: var(--chn-space-3);
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations {
	width: 100%;
	margin: 0 0 var(--chn-space-4);
	border: 0;
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations tbody {
	display: grid;
	gap: 12px;
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations tr {
	display: grid;
	grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 0;
	background: transparent;
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations th,
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations td {
	display: block;
	padding: 0;
	background: transparent;
	text-align: left;
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations label {
	font-size: 12px;
	font-weight: 700;
	color: var(--chn-color-text);
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations select {
	width: 100%;
	min-height: 46px;
	padding: 10px 38px 10px 12px;
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-sm);
	background-color: #fff;
	color: var(--chn-color-text);
	font-family: var(--chn-font-sans);
	font-size: 14px;
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations select:focus {
	border-color: var(--chn-color-primary);
	outline: 3px solid rgba(11, 59, 148, .12);
}
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart .reset_variations {
	display: inline-block;
	margin-top: 7px;
	font-size: 12px;
	font-weight: 700;
	color: var(--chn-color-primary);
}
body.chn-product--regular .single_variation_wrap {
	padding-top: var(--chn-space-2);
	border-top: 1px solid var(--chn-color-border);
}
body.chn-product--regular form.cart .quantity .qty {
	min-height: 46px;
	width: 64px;
}
body.chn-product--regular form.cart .single_add_to_cart_button,
body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart .button {
	min-height: 46px;
}
body.chn-product--regular form.cart .single_add_to_cart_button.disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

.chn-regular-product-assurances {
	display: grid;
	gap: 9px;
	list-style: none;
	margin: var(--chn-space-4) 0 0;
	padding: var(--chn-space-3) 0 0;
	border-top: 1px solid var(--chn-color-border);
}
.chn-regular-product-assurances li {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--chn-color-muted);
	font-size: 12px;
	line-height: 1.35;
}
.chn-regular-product-assurances svg {
	flex: 0 0 auto;
	color: var(--chn-color-primary);
}

body.chn-product--regular .elementor-element-pd_w_desc_head,
body.chn-product--regular .elementor-element-pd_w_content {
	background: var(--chn-color-surface) !important;
}
body.chn-product--regular .elementor-element-pd_w_desc_head {
	margin: var(--chn-space-5) 0 0 !important;
	padding: var(--chn-space-4) var(--chn-space-4) var(--chn-space-2) !important;
	border: 1px solid var(--chn-color-border) !important;
	border-bottom: 0 !important;
	border-radius: var(--chn-radius-md) var(--chn-radius-md) 0 0 !important;
}
body.chn-product--regular .elementor-element-pd_w_content {
	margin: 0 !important;
	padding: 0 var(--chn-space-4) var(--chn-space-4) !important;
	border: 1px solid var(--chn-color-border) !important;
	border-top: 0 !important;
	border-radius: 0 0 var(--chn-radius-md) var(--chn-radius-md) !important;
}
body.chn-product--regular .elementor-element-pd_w_desc_head > .elementor-widget-container,
body.chn-product--regular .elementor-element-pd_w_content > .elementor-widget-container {
	padding: 0 !important;
}
body.chn-product--regular .elementor-element-pd_w_desc_head h2 {
	margin: 0 !important;
}
body.chn-product--regular .elementor-element-pd_w_content > .elementor-widget-container > :first-child {
	margin-top: 0 !important;
}
body.chn-product--regular .elementor-element-pd_w_content > .elementor-widget-container > :last-child {
	margin-bottom: 0 !important;
}
body.chn-product--regular.chn-product--empty-description .elementor-element-pd_w_desc_head,
body.chn-product--regular.chn-product--empty-description .elementor-element-pd_w_content {
	display: none !important;
}

/* Related products grid — Elementor's grid layout.
   Target the inner `ul.products` specifically, NOT the wrapping
   `section.related.products` (which also carries the .products class and
   would absorb the grid rules, collapsing the inner UL to a single grid
   item). */
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products,
body.chn-product--regular .elementor-products-grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(190px, 240px)) !important;
	gap: var(--chn-space-4) !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
/* Make sure the outer section wrapper does NOT itself become a grid container.
   WC core renders `<section class="related products">...<ul class="products">...</ul></section>`
   so the `.products` class is shared by both. Reset section to block. */
body.chn-product--regular section.related.products,
body.chn-product--regular section.up-sells.products,
body.chn-product--regular section.cross-sells.products {
	display: block !important;
	grid-template-columns: none !important;
}
body.chn-product--regular .elementor-element-pd_related {
	background: var(--chn-color-surface-alt) !important;
	border-top: 0 !important;
}
body.chn-product--regular .elementor-element-pd_w_related {
	padding-top: 0;
}
body.chn-product--regular .elementor-element-pd_related .elementor-widget-woocommerce-product-related,
body.chn-product--regular .elementor-element-pd_related section.related.products {
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-top: 0 !important;
}
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li,
body.chn-product--regular .elementor-products-grid ul.products > li {
	background: var(--chn-color-surface);
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-md);
	overflow: hidden;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li:hover,
body.chn-product--regular .elementor-products-grid ul.products > li:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px -10px rgba(11, 59, 148, .2);
}
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li img,
body.chn-product--regular .elementor-products-grid ul.products > li img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	margin: 0 !important;
}
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li .woocommerce-loop-product__title,
body.chn-product--regular .elementor-products-grid ul.products > li .woocommerce-loop-product__title {
	padding: var(--chn-space-3) var(--chn-space-3) 0;
	font-family: var(--chn-font-serif);
	font-size: 15px;
	font-variation-settings: "opsz" 24, "wght" 600;
	letter-spacing: -.005em;
	margin: 0;
	line-height: 1.25;
}
body.chn-product--regular .related.products .chn-shop-card__category,
body.chn-product--regular .elementor-widget-woocommerce-product-related .chn-shop-card__category {
	display: block;
	padding: var(--chn-space-3) var(--chn-space-3) 0;
	font-family: var(--chn-font-sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--chn-color-muted);
}
body.chn-product--regular .related.products .chn-shop-card__category + .woocommerce-loop-product__title,
body.chn-product--regular .elementor-widget-woocommerce-product-related .chn-shop-card__category + .woocommerce-loop-product__title {
	padding-top: 6px;
}
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li .price,
body.chn-product--regular .elementor-products-grid ul.products > li .price {
	padding: 4px var(--chn-space-3) var(--chn-space-3);
	font-family: var(--chn-font-mono);
	font-size: 13px;
	color: var(--chn-color-primary);
}
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li .add_to_cart_button,
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li .button,
body.chn-product--regular .elementor-products-grid ul.products > li .add_to_cart_button,
body.chn-product--regular .elementor-products-grid ul.products > li .button {
	margin: 0 var(--chn-space-3) var(--chn-space-3);
	background: var(--chn-color-primary);
	color: #fff;
	border: 0;
	font-family: var(--chn-font-sans);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 10px 14px;
	border-radius: 2px;
	display: inline-block;
}
body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li .added_to_cart {
	margin: 0 var(--chn-space-3) var(--chn-space-3);
	font-size: 12px;
	color: var(--chn-color-primary);
	text-decoration: underline;
}
/* Related-products section heading — h2 inside section.related.products,
   not inside the grid widget itself */
body.chn-product--regular section.related.products > h2,
body.chn-product--regular section.up-sells.products > h2,
body.chn-product--regular section.cross-sells.products > h2 {
	font-family: var(--chn-font-serif) !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	color: var(--chn-color-text) !important;
	margin: 0 0 var(--chn-space-4) !important;
	padding-bottom: var(--chn-space-3);
	border-bottom: 1px solid var(--chn-color-border);
}

/* Related products heading */
body.chn-product--regular .elementor-widget-woocommerce-product-related .elementor-heading-title {
	font-family: var(--chn-font-serif) !important;
	font-size: 24px !important;
	color: var(--chn-color-text) !important;
	margin-bottom: var(--chn-space-4) !important;
	padding-bottom: var(--chn-space-3);
	border-bottom: 1px solid var(--chn-color-border);
}

@media (max-width: 900px) {
	body.chn-product--regular .elementor-element-pd_hero > .elementor-container { gap: var(--chn-space-4); }
	body.chn-product--regular .elementor-element-pd_col_info > .elementor-widget-wrap { padding: var(--chn-space-4) !important; }
	body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products,
	body.chn-product--regular .elementor-products-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
	body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products,
	body.chn-product--regular .elementor-products-grid ul.products {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: var(--chn-space-3) !important;
		padding-bottom: var(--chn-space-3) !important;
		scrollbar-width: thin;
	}
	body.chn-product--regular .elementor-widget-woocommerce-product-related ul.products > li,
	body.chn-product--regular .elementor-products-grid ul.products > li {
		flex: 0 0 min(78vw, 280px);
		scroll-snap-align: start;
	}
	body.chn-product--regular .elementor-widget-woocommerce-product-add-to-cart table.variations tr {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	body.chn-product--regular form.cart .single_add_to_cart_button {
		padding-inline: 20px !important;
	}
}
