/**
 * Our Haute — Single-product styles.
 *
 * Scoped ONLY to single-product pages: every rule lives under
 * body.single-product or .oh-section. Nothing here touches the
 * homepage, header, footer, shop archive, cart or checkout.
 *
 * Design tokens (same as the policy design system):
 *   white #FFFFFF · ink #171717 · off-white #F5F3EF
 *   muted #555555 · borders #DEDAD4
 *   sans-serif · body 16–18px, line-height 1.6–1.75
 *   H2 25–32px (22–26px on mobile) · H3 19–22px
 *   8px spacing scale · radius 6–10px · 44px touch targets
 *
 * JS contract (assets/js/product.js, handle 'oh-child-product'):
 *  - The in-page nav is built by the JS from .oh-section elements
 *    in the DOM and inserted into .oh-product-nav-slot. Style the
 *    nav it builds with .oh-product-nav / .oh-product-nav-list /
 *    .oh-product-nav-link / .oh-product-nav-link.is-active. The ROW
 *    lives on the <ul class="oh-product-nav-list"> (1.0.11): the
 *    <nav> itself is a plain full-width block wrapper.
 *  - The sticky mobile bar is hidden by the JS toggling
 *    .oh-sticky-bar--hidden whenever the purchase panel is in
 *    view, whenever the footer is in view (1.0.18), and on
 *    desktop. The rule below is REQUIRED, and it MUST beat
 *    the display:flex rule in the <=767px block: the two
 *    selectors had equal specificity (0,2,1) and flex came
 *    later, so the bar could never hide (1.0.19 fix). The
 *    hide rule therefore uses the doubled class
 *    (.oh-sticky-bar.oh-sticky-bar--hidden) AND !important.
 *  - Anchor offset: .oh-section headings carry
 *    scroll-margin-top: 90px to clear the sticky header. The JS
 *    sets no scroll offsets of its own.
 *  - The sticky-bar CTA submits nothing itself; the JS triggers
 *    a click on the main form's native .single_add_to_cart_button.
 *
 * 1.0.5 — top-of-page redesign (breadcrumb 01, gallery 02, purchase
 * panel 03, reassurance 04, description 05 visual only):
 *   - 1.0.8 (Defect C): the .oh-product-top two-column grid was
 *     REMOVED. It assumed the gallery and the purchase panel were
 *     the wrapper's direct children, but Woostify's container
 *     hooks insert .product-page-container > .woostify-container
 *     between them, so the grid had a single child (the container)
 *     which took the 7fr track and left the 5fr track empty — the
 *     product column rendered left-aligned at ~58% width on
 *     staging while live centres. Woostify's own CSS already lays
 *     the gallery left and the summary right inside
 *     .woostify-container, so removing the grid restores live's
 *     centred layout with the two-column top intact. The
 *     template now matches the stock WooCommerce structure.
 *   - Variation swatches: the JS builds .oh-swatches (buttons
 *     .oh-swatch, aria-pressed state) after each non-MPN variation
 *     <select> and adds .oh-swatches-on to that select's value
 *     cell; ONLY then is the native select hidden. If JS is
 *     disabled or fails, no class is added and the select stays
 *     fully visible and functional.
 *   - Buy Now (snippet button): the snippet's exact class is not
 *     recorded locally — the rules below cover its likely classes
 *     (.oh-buy-now / .buy-now / .buy-now-button / [name=buy-now])
 *     and the structural positions it can occupy in the cart form.
 *     The staging test must confirm the white/black-border style
 *     applied and report the button's actual class.
 */

/* ------------------------------------------------------------------ */
/*  Tokens + base                                                      */
/* ------------------------------------------------------------------ */

body.single-product {
	--oh-white: #ffffff;
	--oh-ink: #171717;
	--oh-off-white: #f5f3ef;
	--oh-muted: #555555;
	--oh-border: #dedad4;
	--oh-radius: 8px;
	--oh-space-1: 8px;
	--oh-space-2: 16px;
	--oh-space-3: 24px;
	--oh-space-4: 32px;
	--oh-space-5: 40px;
	color: var(--oh-ink);
	font-size: 16px;
	line-height: 1.6;
}

body.single-product a {
	color: var(--oh-ink);
}

body.single-product a:focus-visible,
body.single-product button:focus-visible,
body.single-product summary:focus-visible {
	outline: 2px solid var(--oh-ink);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/*  01 — Breadcrumb                                                    */
/*                                                                     */
/* Rendered by the parent theme / WooCommerce, not by this template:   */
/* style only — links and structure untouched. Clean, muted, wraps.   */
/* ------------------------------------------------------------------ */

body.single-product .woocommerce-breadcrumb,
body.single-product .woostify-breadcrumb {
	margin: 0 0 var(--oh-space-2);
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--oh-muted);
}

body.single-product .woocommerce-breadcrumb a,
body.single-product .woostify-breadcrumb a {
	color: var(--oh-muted);
	text-decoration: none;
}

body.single-product .woocommerce-breadcrumb a:hover,
body.single-product .woostify-breadcrumb a:hover {
	color: var(--oh-ink);
	text-decoration: underline;
}

body.single-product .woostify-breadcrumb .item-bread {
	color: var(--oh-muted);
}

body.single-product .woostify-breadcrumb .item-bread:last-child {
	color: var(--oh-ink);
}

/* ------------------------------------------------------------------ */
/*  02 + 03 — Top layout: gallery left, purchase panel right          */
/*                                                                     */
/* 1.0.8 (Defect C): the .oh-product-top grid was REMOVED — see the   */
/* header note. Woostify's own CSS lays the gallery left and the      */
/* summary right inside .woostify-container (its own two-column       */
/* layout, stacked on mobile); the child theme must not impose its    */
/* own grid on top of it. The only rule kept here is the bottom       */
/* spacing the wrapper used to provide, now on the real container.    */
/* ------------------------------------------------------------------ */

body.single-product .product-page-container {
	margin-bottom: var(--oh-space-4);
}

/* ------------------------------------------------------------------ */
/*  02 — Gallery (Woostify's OWN gallery: style only)                 */
/*                                                                     */
/* 1.0.8: the parent builds its own gallery — .product-gallery >      */
/* .product-images > .product-images-container > figure                */
/* .image-item.ez-zoom slides (Flickity slider, EasyZoom hover zoom,  */
/* PhotoSwipe lightbox). There is NO .woocommerce-product-gallery      */
/* element when the theme gallery layout is active, so the            */
/* stock-gallery rules below (flex-viewport / flex-control-thumbs /   */
/* __trigger) match nothing on a real product page; they are kept     */
/* only because removing them is out of scope for this round. The     */
/* rules after them target the REAL gallery. Rounded corners on the    */
/* main image and on the thumbnails, which sit in a neat row          */
/* underneath. The Photoswipe lightbox is untouched.                   */
/* ------------------------------------------------------------------ */

body.single-product .oh-product-top .woocommerce-product-gallery__image img,
body.single-product .oh-product-top .woocommerce-product-gallery .flex-viewport img {
	border-radius: 10px;
}

body.single-product .oh-product-top .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--oh-space-1);
	margin: var(--oh-space-2) 0 0;
	padding: 0;
	list-style: none;
}

body.single-product .oh-product-top .woocommerce-product-gallery .flex-control-thumbs li {
	float: none;
	width: calc(25% - 6px);
	margin: 0;
}

body.single-product .oh-product-top .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
	opacity: 0.7;
	cursor: pointer;
}

body.single-product .oh-product-top .woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1;
}

body.single-product .oh-product-top .woocommerce-product-gallery .flex-control-thumbs li.flex-active img,
body.single-product .oh-product-top .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--oh-ink);
	opacity: 1;
}

/* Photoswipe trigger: keep it usable, just rounded and subtle. */
body.single-product .oh-product-top .woocommerce-product-gallery__trigger {
	border-radius: var(--oh-radius);
}

/* Real Woostify gallery (theme 1.0.8): the figure is the positioning
   anchor for the zoom pane, and the main image gets the rounded
   corners the 1.0.5 brief asked for (the stock-gallery rule above
   was dead — it never matched a real product page). */
body.single-product .product-images .image-item {
	position: relative;
}

body.single-product .product-images .image-item img {
	border-radius: 10px;
}

body.single-product .product-thumbnail-images-container .thumbnail-item img {
	border-radius: var(--oh-radius);
}

/* Self-contained hover zoom pane (theme 1.0.8, defect A — see
   assets/js/product.js initOHGalleryZoom). The JS creates this div
   inside the hovered figure and positions its img so the point
   under the cursor stays centred. pointer-events: none, so clicks
   pass through to the figure's link and open the PhotoSwipe
   lightbox exactly as without it; display: none until the JS adds
   .oh-zoom-pane--active. */
body.single-product .product-images .oh-zoom-pane {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: none;
	overflow: hidden;
	background: #fff;
	border-radius: 10px;
	pointer-events: none;
}

body.single-product .product-images .oh-zoom-pane--active {
	display: block;
}

body.single-product .product-images .image-item .oh-zoom-pane img {
	position: absolute;
	max-width: none;
	max-height: none;
	border-radius: 0;
}

/* EasyZoom loading notice (theme 1.0.8, defect B): EasyZoom appends
   <div class="easyzoom-notice">Loading image</div> inside the
   figure while its full-size image loads, and its teardown() can
   orphan the div in the DOM (it deletes the JS reference without
   detaching the element), so the text can render visibly under the
   gallery after Clear. The notice is a loading indicator only —
   hiding it loses no functionality (the zoom flyout still appears
   when ready). The JS also removes orphaned notices via a
   MutationObserver; this CSS guard makes the text unrenderable
   whatever the timing. Scoped to .product-images so it cannot hide
   any other text, and it cannot hide the zoom trigger icon, the
   prev/next controls or the thumbnails (none of them is an
   .easyzoom-notice). */
body.single-product .product-images .easyzoom-notice {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/*  03 — Purchase panel: title, price, stock, short description       */
/* ------------------------------------------------------------------ */

body.single-product div.product .oh-purchase-panel {
	font-size: 16px;
	line-height: 1.6;
}

body.single-product div.product .oh-purchase-panel .product_title {
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 var(--oh-space-1);
	color: var(--oh-ink);
}

body.single-product div.product .oh-purchase-panel .price {
	font-size: 24px;
	line-height: 1.4;
	font-weight: 700;
	margin: 0 0 var(--oh-space-2);
	color: var(--oh-ink);
}

/* A sale price, if one ever legitimately exists: struck-through
   regular price, no invented discount styling. */
body.single-product div.product .oh-purchase-panel .price del {
	font-weight: 400;
	color: var(--oh-muted);
}

body.single-product div.product .oh-purchase-panel .price ins {
	text-decoration: none;
}

body.single-product div.product .oh-purchase-panel .stock {
	font-size: 15px;
	margin: 0 0 var(--oh-space-2);
}

body.single-product div.product .oh-purchase-panel .woocommerce-product-details__short-description {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: var(--oh-space-3);
}

/* ------------------------------------------------------------------ */
/*  03 — Variation form + colour swatches (JS-built, 1.0.5)            */
/* ------------------------------------------------------------------ */

body.single-product .oh-purchase-panel form.cart .variations {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 var(--oh-space-2);
}

body.single-product .oh-purchase-panel form.cart .variations td.label {
	padding: 0 var(--oh-space-2) var(--oh-space-1) 0;
	vertical-align: middle;
	text-align: left;
}

body.single-product .oh-purchase-panel form.cart .variations td.label label {
	font-weight: 600;
	font-size: 15px;
	color: var(--oh-ink);
}

body.single-product .oh-purchase-panel form.cart .variations td.value {
	padding: 0 0 var(--oh-space-1);
	text-align: left;
}

body.single-product .oh-purchase-panel form.cart .variations select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--oh-ink);
	background: var(--oh-white);
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
}

body.single-product .oh-purchase-panel form.cart .reset_variations {
	font-size: 14px;
	color: var(--oh-muted);
	margin-left: 8px;
	white-space: nowrap;
}

/* The "Clear" link, once the JS has moved it into the colour row's
   value cell (1.0.6, defect 3), sits on its own line under the
   swatch group (the group is a block-level flex container): give
   it a top gap so it does not crowd the swatches. This also applies
   in its native position on non-MPN products, where the link already
   sits after the swatches. */
body.single-product .oh-purchase-panel form.cart .variations td.value > .reset_variations {
	display: inline-block;
	margin: 8px 0 0 0;
}

/* Swatch-style buttons: pill buttons carrying the option label as
   text (no colour is invented — labels such as "Gray Camouflage"
   are the product's own data). Clicking one sets the native select
   value and fires the change event WooCommerce listens for. */
body.single-product .oh-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: var(--oh-space-1);
	margin-top: var(--oh-space-1);
}

body.single-product .oh-swatch {
	min-height: 44px;
	min-width: 44px;
	padding: 10px 16px;
	border: 1.5px solid var(--oh-border);
	border-radius: 10px;
	background: var(--oh-white);
	color: var(--oh-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

body.single-product .oh-swatch:hover {
	border-color: var(--oh-ink);
}

body.single-product .oh-swatch[aria-pressed="true"] {
	background: var(--oh-ink);
	border-color: var(--oh-ink);
	color: var(--oh-white);
}

body.single-product .oh-swatch:disabled,
body.single-product .oh-swatch.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* The native select is hidden ONLY in a value cell the JS has
   built swatches for (cell carries .oh-swatches-on). If JS is
   disabled or fails, no class is added and the select stays fully
   visible and functional. The MPN row keeps its own hiding rule
   (1.0.3) and never gets swatches. */
body.single-product .oh-swatches-on select {
	display: none;
}

/* ------------------------------------------------------------------ */
/*  03 — Quantity, Add to Cart, Buy Now (stacked, full width)         */
/* ------------------------------------------------------------------ */

body.single-product .oh-purchase-panel form.cart .woocommerce-variation-add-to-cart,
body.single-product .oh-purchase-panel form.cart .variations_button {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.single-product .oh-purchase-panel form.cart .quantity {
	width: 100%;
	display: flex;
	margin: 0;
}

body.single-product .oh-purchase-panel form.cart .quantity .qty {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	padding: 10px 12px;
	font-size: 16px;
	text-align: center;
	color: var(--oh-ink);
	background: var(--oh-white);
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
}

/* Parent-theme quantity +/- buttons, if present: same height as
   the input. (WooCommerce's default input has no such buttons;
   if they are absolutely positioned this rule does not move them.) */
body.single-product .oh-purchase-panel form.cart .quantity button {
	flex: 0 0 48px;
	min-height: 48px;
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
	background: var(--oh-white);
	font-size: 18px;
	cursor: pointer;
}

/* 44px minimum touch targets on purchase controls. */
body.single-product div.product .oh-purchase-panel .single_add_to_cart_button {
	min-height: 44px;
}

/* Black Add to Cart (native button, styled). */
body.single-product .oh-purchase-panel form.cart .single_add_to_cart_button {
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;
	background: var(--oh-ink);
	border: 1px solid var(--oh-ink);
	border-radius: 10px;
	color: var(--oh-white);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

body.single-product .oh-purchase-panel form.cart .single_add_to_cart_button:hover:not(:disabled) {
	background: #000000;
}

body.single-product .oh-purchase-panel form.cart .single_add_to_cart_button:disabled,
body.single-product .oh-purchase-panel form.cart .single_add_to_cart_button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* White Buy Now with a black border (existing snippet's button:
   style ONLY — its flow and the validated checkout are untouched).
   The snippet's exact class is not recorded locally, so these
   rules cover its likely classes and the structural positions a
   Buy Now button can occupy in the cart form (a direct-child
   button/link of the variations button area or of the form,
   other than Add to Cart; quantity buttons are nested inside
   .quantity, so the direct-child selectors cannot catch them).
   The staging test must confirm the style applied and report the
   button's actual class. */
body.single-product .oh-purchase-panel form.cart .oh-buy-now,
body.single-product .oh-purchase-panel form.cart .buy-now,
body.single-product .oh-purchase-panel form.cart .buy-now-button,
body.single-product .oh-purchase-panel form.cart button[name="buy-now"],
body.single-product .oh-purchase-panel form.cart .variations_button > button:not(.single_add_to_cart_button),
body.single-product .oh-purchase-panel form.cart .woocommerce-variation-add-to-cart > button:not(.single_add_to_cart_button),
body.single-product .oh-purchase-panel form.cart > button:not(.single_add_to_cart_button),
body.single-product .oh-purchase-panel form.cart .variations_button > a.button:not(.single_add_to_cart_button),
body.single-product .oh-purchase-panel form.cart .woocommerce-variation-add-to-cart > a.button:not(.single_add_to_cart_button),
body.single-product .oh-purchase-panel form.cart > a.button:not(.single_add_to_cart_button) {
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;
	background: var(--oh-white);
	border: 1.5px solid var(--oh-ink);
	border-radius: 10px;
	color: var(--oh-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

body.single-product .oh-purchase-panel form.cart .oh-buy-now:hover,
body.single-product .oh-purchase-panel form.cart .buy-now:hover,
body.single-product .oh-purchase-panel form.cart .buy-now-button:hover,
body.single-product .oh-purchase-panel form.cart .variations_button > button:not(.single_add_to_cart_button):hover,
body.single-product .oh-purchase-panel form.cart .woocommerce-variation-add-to-cart > button:not(.single_add_to_cart_button):hover,
body.single-product .oh-purchase-panel form.cart > button:not(.single_add_to_cart_button):hover {
	background: var(--oh-off-white);
}

/* MPN variation attribute row (theme 1.0.3). Hidden ONLY when the
   theme JS has added .oh-mpn-attribute-hidden AFTER auto-selecting
   the row's single MPN value (see product.js initMPNHiding). There
   is deliberately no plain-CSS rule hiding the MPN row: if JS fails
   or is disabled, the row must stay visible so the customer can
   still select the value and Add to Cart keeps working. The colour
   attribute row is never given this class. */
body.single-product tr.oh-mpn-attribute-hidden,
body.single-product select.oh-mpn-attribute-hidden,
body.single-product label.oh-mpn-attribute-hidden {
	display: none;
}

/* ------------------------------------------------------------------ */
/*  Sections (shared)                                                  */
/* ------------------------------------------------------------------ */

body.single-product .oh-section {
	margin: var(--oh-space-5) 0;
	padding: 0;
	scroll-margin-top: 90px;
}

body.single-product .oh-section h2,
body.single-product .oh-section h3 {
	scroll-margin-top: 90px;
}

body.single-product .oh-section__heading {
	font-size: 25px;
	line-height: 1.25;
	margin: 0 0 var(--oh-space-2);
	color: var(--oh-ink);
}

body.single-product .oh-section h3 {
	font-size: 19px;
	line-height: 1.4;
	margin: 0 0 var(--oh-space-1);
	color: var(--oh-ink);
}

body.single-product .oh-section p {
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 var(--oh-space-2);
}

body.single-product .oh-section p:last-child {
	margin-bottom: 0;
}

body.single-product .oh-note {
	color: var(--oh-muted);
	font-size: 15px;
}

body.single-product .oh-policy-list {
	margin: 0 0 var(--oh-space-2);
	padding-left: 20px;
	font-size: 16px;
	line-height: 1.7;
}

body.single-product .oh-policy-list li {
	margin-bottom: var(--oh-space-1);
}

body.single-product .oh-returns-address {
	font-style: normal;
	font-size: 16px;
	line-height: 1.7;
	background: var(--oh-off-white);
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
	padding: var(--oh-space-2);
	margin: 0 0 var(--oh-space-2);
}

/* ------------------------------------------------------------------ */
/*  04 — Purchase reassurance (light beige panel, icon rows)           */
/*                                                                     */
/* Same four approved facts, same links — presentation only: each      */
/* item is an icon + text row instead of a bulleted list. No new       */
/* claims, no guarantees, no badges.                                   */
/* ------------------------------------------------------------------ */

body.single-product .oh-purchase-reassurance {
	margin-top: var(--oh-space-3);
	padding: var(--oh-space-2);
	background: var(--oh-off-white);
	border: 1px solid var(--oh-border);
	border-radius: 10px;
}

body.single-product .oh-purchase-reassurance__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	font-size: 15px;
	line-height: 1.6;
}

body.single-product .oh-purchase-reassurance__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

body.single-product .oh-purchase-reassurance__icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	color: var(--oh-ink);
}

body.single-product .oh-purchase-reassurance__icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* ------------------------------------------------------------------ */
/*  05 — Description (VISUAL ONLY — content lock)                      */
/*                                                                     */
/* The description text is output verbatim by                          */
/* oh_render_description(); this block styles its presentation         */
/* only: reading width, line spacing, headings, lists. No text is      */
/* added, removed, reordered or rewritten here.                        */
/* ------------------------------------------------------------------ */

body.single-product .oh-section--description .oh-description {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.75;
}

body.single-product .oh-section--description .oh-description p {
	margin: 0 0 var(--oh-space-2);
}

body.single-product .oh-section--description .oh-description p:last-child {
	margin-bottom: 0;
}

body.single-product .oh-section--description .oh-description h2,
body.single-product .oh-section--description .oh-description h3 {
	font-size: 20px;
	line-height: 1.4;
	margin: var(--oh-space-3) 0 var(--oh-space-1);
	color: var(--oh-ink);
}

body.single-product .oh-section--description .oh-description h2:first-child,
body.single-product .oh-section--description .oh-description h3:first-child {
	margin-top: 0;
}

body.single-product .oh-section--description .oh-description ul,
body.single-product .oh-section--description .oh-description ol {
	margin: 0 0 var(--oh-space-2);
	padding-left: 24px;
}

body.single-product .oh-section--description .oh-description li {
	margin-bottom: var(--oh-space-1);
	line-height: 1.7;
}

body.single-product .oh-section--description .oh-description li:last-child {
	margin-bottom: 0;
}

body.single-product .oh-section--description .oh-description strong {
	font-weight: 700;
	color: var(--oh-ink);
}

body.single-product .oh-section--description .oh-description a {
	text-decoration: underline;
}

body.single-product .oh-section--description .oh-description img {
	max-width: 100%;
	height: auto;
	border-radius: var(--oh-radius);
}

/* ------------------------------------------------------------------ */
/*  06 / 07 / 08 — Overview, highlights, feature list                 */
/* ------------------------------------------------------------------ */

body.single-product .oh-highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--oh-space-1);
}

body.single-product .oh-highlights__item {
	background: var(--oh-off-white);
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
	padding: var(--oh-space-2);
	font-size: 16px;
	line-height: 1.7;
}

body.single-product .oh-feature-list {
	margin: 0;
}

body.single-product .oh-feature-list__row {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: var(--oh-space-2);
	padding: var(--oh-space-1) 0;
	border-bottom: 1px solid var(--oh-border);
	font-size: 16px;
	line-height: 1.7;
}

body.single-product .oh-feature-list__row:last-child {
	border-bottom: 0;
}

body.single-product .oh-feature-list__row dt {
	font-weight: 700;
	margin: 0;
}

body.single-product .oh-feature-list__row dd {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/*  17 — Specifications table                                          */
/* ------------------------------------------------------------------ */

body.single-product .oh-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
}

body.single-product .oh-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

body.single-product .oh-specs-table th,
body.single-product .oh-specs-table td {
	text-align: left;
	vertical-align: top;
	padding: 12px var(--oh-space-2);
	border-bottom: 1px solid var(--oh-border);
}

body.single-product .oh-specs-table tr:last-child th,
body.single-product .oh-specs-table tr:last-child td {
	border-bottom: 0;
}

body.single-product .oh-specs-table th {
	width: 220px;
	font-weight: 700;
	background: var(--oh-off-white);
	white-space: normal;
}

/* ------------------------------------------------------------------ */
/*  22 — Product FAQs (details/summary, policy FAQ look)               */
/* ------------------------------------------------------------------ */

body.single-product .oh-faqs {
	display: grid;
	gap: var(--oh-space-1);
}

body.single-product .oh-faq {
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
	background: var(--oh-white);
	overflow: hidden;
}

body.single-product .oh-faq__summary {
	cursor: pointer;
	min-height: 44px;
	display: flex;
	align-items: center;
	padding: 12px var(--oh-space-2);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	list-style: none;
}

body.single-product .oh-faq__summary::-webkit-details-marker {
	display: none;
}

body.single-product .oh-faq__answer {
	padding: 0 var(--oh-space-2) var(--oh-space-2);
}

body.single-product .oh-faq__answer p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
}

body.single-product .oh-faq[open] {
	background: var(--oh-off-white);
}

body.single-product .oh-faqs__more {
	margin-top: var(--oh-space-2);
}

/* ------------------------------------------------------------------ */
/*  23 — Reviews (honest empty state)                                  */
/* ------------------------------------------------------------------ */

body.single-product .oh-reviews-empty {
	font-size: 16px;
	line-height: 1.7;
	color: var(--oh-muted);
	margin: 0 0 var(--oh-space-2);
}

/* The native comments template prints its own "There are no
   reviews yet." line; hide it so the empty state above appears
   exactly once. The review form itself is untouched. */
body.single-product .oh-section--reviews .woocommerce-noreviews {
	display: none;
}

body.single-product .oh-section--reviews #reviews .woocommerce-Reviews-title {
	font-size: 22px;
	line-height: 1.3;
}

body.single-product .oh-section--reviews #reviews .comment-form-rating .stars a,
body.single-product .oh-section--reviews #reviews .comment-form input[type="submit"] {
	min-height: 44px;
}

/* ------------------------------------------------------------------ */
/*  24 — Related products                                              */
/* ------------------------------------------------------------------ */

body.single-product .related.products > h2 {
	font-size: 25px;
	line-height: 1.25;
	margin: 0 0 var(--oh-space-2);
	color: var(--oh-ink);
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	line-height: 1.5;
}

body.single-product .related.products ul.products li.product .price {
	font-size: 16px;
	color: var(--oh-ink);
}

/* ------------------------------------------------------------------ */
/*  25 — Shop by collection                                            */
/* ------------------------------------------------------------------ */

body.single-product .oh-collection {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--oh-space-1);
}

body.single-product .oh-collection__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px var(--oh-space-2);
	border: 1px solid var(--oh-border);
	border-radius: 10px;
	background: var(--oh-white);
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
}

body.single-product .oh-collection__link:hover {
	background: var(--oh-off-white);
}

/* ------------------------------------------------------------------ */
/*  26 — Customer support                                              */
/* ------------------------------------------------------------------ */

body.single-product .oh-support-list {
	list-style: none;
	margin: 0 0 var(--oh-space-2);
	padding: 0;
	font-size: 16px;
	line-height: 1.7;
}

body.single-product .oh-support-list li {
	margin-bottom: var(--oh-space-1);
}

body.single-product .oh-support-links {
	font-size: 16px;
	line-height: 1.7;
}

/* ------------------------------------------------------------------ */
/*  28 — In-page navigation (built by the JS into the nav slot)        */
/* ------------------------------------------------------------------ */

body.single-product .oh-product-nav-slot {
	/* 1.0.12 — clear the floats. The slot is the first in-flow child
	   of the inner .woostify-container, echoed at priority 5 on
	   woocommerce_after_single_product_summary (product-sections.php),
	   immediately before the first section — but it sits at the
	   container's content top (y≈275 in the browser) in the SAME
	   vertical band as the floated gallery + summary (each
	   calc((100% - 30px) / 2) wide, Woostify 2.5.2 CSS), so the
	   nav rendered as a ~220px-wide vertical column in the right
	   margin instead of the intended full-width pill row (1.0.11
	   staging test). clear: both drops the slot below the floats
	   into normal flow at full container width, above section 05 —
	   the horizontal wrapping pill row the 1.0.11 list rules were
	   written for. The exact narrowing mechanism could not be
	   pinned down from the files (no flex/grid/absolute rule
	   touches the slot or its ancestors; the slot's containing
	   block IS the 1200px container — the sibling sections render
	   full-width in it), and no local layout engine is available
	   (stock Chromium download needs approval; jsdom has none),
	   so the staging browser test is the visual proof. */
	clear: both;
	display: block;
	box-sizing: border-box;
	min-height: 0;
	width: 100%;
}

/* The nav itself is a plain full-width block wrapper. The row lives
   on the list it contains (below). */
body.single-product .oh-product-nav {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 var(--oh-space-3);
	padding: 0;
}

/* 1.0.11 — the LIST is the row. The JS builds
   nav.oh-product-nav > ul.oh-product-nav-list > li >
   a.oh-product-nav-link. 1.0.0–1.0.10 styled the <nav> wrapper as
   the flex row and left the <ul> completely unstyled, so the links
   stacked vertically as block list items with visible bullets; with
   the parent theme's body { word-break: break-word } the labels then
   wrapped letter-by-letter in the narrow column the unstyled list
   collapsed to. Verified in the 1.0.4 and 1.0.10 staging
   screenshots (same narrow column, same letters, both versions) —
   the defect is pre-existing since the nav was first built, NOT new
   in 1.0.10 and NOT caused by the container change. The row now
   lives on the <ul> itself, and the labels are forced onto one
   line, so the nav renders as the intended wrapping pill row.
   1.0.12 — the labels were fixed but the PLACEMENT was not: on
   staging the nav still rendered as a single vertical column of
   pills in the right-hand margin (x≈1538–1760, outside the 1170px
   container, y≈275 down past the viewport), scrolling away with
   the summary. Chosen form (brief §28): (a) the horizontal
   wrapping pill row above the lower sections — the slot is already
   in the right DOM position for it (inside the 1200px container,
   before the first section), so no template move; form (b), a
   sticky side nav, would have meant discarding the readable full
   labels for dots/short labels. Fix: clear: both on the slot
   (above) — it drops the slot below the floated gallery/summary
   into normal flow at full container width. */
body.single-product .oh-product-nav-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
	gap: var(--oh-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product .oh-product-nav-list > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.single-product .oh-product-nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--oh-border);
	border-radius: 10px;
	background: var(--oh-white);
	font-size: 15px;
	line-height: 1.5;
	text-decoration: none;
	color: var(--oh-ink);
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

body.single-product .oh-product-nav-link:hover {
	background: var(--oh-off-white);
}

body.single-product .oh-product-nav-link.is-active {
	background: var(--oh-ink);
	border-color: var(--oh-ink);
	color: var(--oh-white);
}

/* ------------------------------------------------------------------ */
/*  27 — Sticky mobile purchase bar                                    */
/* ------------------------------------------------------------------ */

/* Desktop: the bar never shows. The JS also toggles
   .oh-sticky-bar--hidden on desktop. */
body.single-product .oh-sticky-bar {
	display: none;
}

/* REQUIRED by the JS contract: the JS hides the bar by toggling
   this class whenever the purchase panel is in view, whenever
   the footer is in view (1.0.18), and on desktop. 1.0.19: the
   doubled class + !important are REQUIRED — the <=767px
   display:flex rule has equal specificity (0,2,1) and comes
   later, so a plain .oh-sticky-bar--hidden rule never hid
   the bar. Do not remove, rename, or drop the !important. */
body.single-product .oh-sticky-bar.oh-sticky-bar--hidden {
	display: none !important;
}

/* Unscoped copy of the same rule, exactly as the JS contract
   states it, so the class hides the bar wherever it is toggled. */
.oh-sticky-bar.oh-sticky-bar--hidden {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/*                                                                     */
/* Breakpoints: 320 / 360 / 390 / 430 (phones), 768 / 820             */
/* (tablets), 1024 / 1280 / 1440 / 1920 (laptop / desktop).            */
/* No fixed pixel widths on layout containers: everything is fluid     */
/* (%, minmax, max-width) so nothing can force horizontal scroll.     */
/* ------------------------------------------------------------------ */

/* Smallest phones (320–359px): tightest spacing, smaller title. */
@media (max-width: 359px) {
	body.single-product div.product .oh-purchase-panel .product_title {
		font-size: 24px;
	}

	body.single-product div.product .oh-purchase-panel .price {
		font-size: 21px;
	}

	body.single-product .oh-purchase-reassurance {
		padding: 12px;
	}
}

/* Phones from 360px: base mobile title size. */
@media (min-width: 360px) {
	body.single-product div.product .oh-purchase-panel .product_title {
		font-size: 26px;
	}
}

/* Phones from 390px: title step. */
@media (min-width: 390px) {
	body.single-product div.product .oh-purchase-panel .product_title {
		font-size: 27px;
	}
}

/* Phones up to 430px: stack the variation table rows so each label
   sits above its select / swatches. The MPN row is excluded from
   the stacking selector, so its display: none rule (1.0.3) still
   wins and the row stays hidden on mobile. */
@media (max-width: 430px) {
	body.single-product .oh-purchase-panel form.cart .variations,
	body.single-product .oh-purchase-panel form.cart .variations tbody,
	body.single-product .oh-purchase-panel form.cart .variations tr:not(.oh-mpn-attribute-hidden),
	body.single-product .oh-purchase-panel form.cart .variations td {
		display: block;
		width: 100%;
	}

	body.single-product .oh-purchase-panel form.cart .variations td.label {
		padding-bottom: 4px;
	}

	body.single-product .oh-purchase-panel form.cart .variations td.value {
		padding-bottom: var(--oh-space-2);
	}

	body.single-product .oh-swatch {
		padding: 10px 14px;
	}
}

/* Mobile up to 767px: single stacked column (the grid base above),
   smaller section headings, single-column feature rows, narrower
   spec table headers, sticky mobile purchase bar. */
@media (max-width: 767px) {
	body.single-product {
		font-size: 16px;
	}

	body.single-product .oh-section__heading,
	body.single-product .related.products > h2 {
		font-size: 22px;
	}

	body.single-product .oh-section h3 {
		font-size: 19px;
	}

	body.single-product .oh-feature-list__row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	body.single-product .oh-specs-table th {
		width: 140px;
	}

	/* Sticky mobile purchase bar: fixed bottom, safe-area aware.
	   Hidden on desktop (above) and whenever the JS adds
	   .oh-sticky-bar--hidden (purchase panel in view). */
	body.single-product .oh-sticky-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--oh-space-2);
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: 12px var(--oh-space-2) calc(12px + env(safe-area-inset-bottom, 0px));
		background: var(--oh-white);
		border-top: 1px solid var(--oh-border);
		box-shadow: 0 -2px 12px rgba(23, 23, 23, 0.08);
	}

	body.single-product .oh-sticky-bar-price {
		font-size: 18px;
		font-weight: 700;
		line-height: 1.4;
		color: var(--oh-ink);
		white-space: nowrap;
	}

	body.single-product .oh-sticky-bar-price del {
		color: var(--oh-muted);
		font-weight: 400;
	}

	body.single-product .oh-sticky-bar-price ins {
		text-decoration: none;
	}

	body.single-product .oh-sticky-bar-cta {
		flex-shrink: 0;
		min-height: 44px;
		min-width: 44px;
		padding: 10px var(--oh-space-3);
		border: 1px solid var(--oh-ink);
		border-radius: 10px;
		background: var(--oh-ink);
		color: var(--oh-white);
		font-size: 16px;
		font-weight: 700;
		line-height: 1.4;
		cursor: pointer;
	}

	/* 1.0.18 - SCROLL-TO-TOP DISABLED on mobile/tablet
	   (defect 1, permanent fix; owner-authorized). The 1.0.17
	   unconditional raise (bottom: 80px) cleared the sticky
	   bar at every scroll position - verified in the 1.0.17
	   retest - but a fixed button can still transiently cover
	   scrolling content (product buttons, prices) as it passes
	   the button, and at maximum scroll it covered the tail
	   of the footer Sitemap link. The only way to guarantee
	   it never overlaps any content at any scroll position is
	   to remove it from the mobile/tablet viewport entirely.
	   The button is a back-to-top convenience only; hiding it
	   loses no functionality (customers scroll up with a swipe).
	   See the <=991px rule below. */

	/* 1.0.16 — BOTTOM SAFE AREA (defect 1). At maximum scroll the
	   fixed sticky bar (68px) and the raised scroll-to-top button
	   (80–120px from the bottom) would otherwise sit over the last
	   content (e.g. the related-products row). This padding lets the
	   last content scroll fully above both. */
	body.single-product .site-content {
		padding-bottom: 132px;
	}

	/* 1.0.17 — FOOTER CLEARANCE (defect 1, residual). The
	   .site-content padding above clears the main content, but
	   the footer sits outside .site-content, so at maximum
	   scroll the sticky bar still half-hid the footer "CASH ON
	   DELIVERY" badge and hid the footer search box. 80px on
	   the footer clears the 68px bar with the same 12px gap. */
	body.single-product footer#colophon {
		padding-bottom: 80px;
	}
}

/* 1.0.18 - SCROLL-TO-TOP DISABLED on mobile/tablet (<=991px).
   Covers mobile (320/390) and tablet (768/820): the button is
   display:none, so it can never overlap product buttons, prices,
   the COD badge, footer links, the search box or checkout terms
   at any scroll position. Desktop (>991px) keeps the parent's
   default button (no sticky bar there, no overlap reported).
   Specificity (1,1,1) beats the parent's #scroll-to-top (1,0,0). */
@media (max-width: 991px) {
	body.single-product #scroll-to-top {
		display: none !important;
	}
}
/* Tablets from 768px: two balanced columns — gallery and purchase
   panel share the width; below 768px the panel stacks under the
   gallery. */
@media (min-width: 768px) {
	body.single-product {
		font-size: 17px;
	}

	body.single-product .oh-section__heading,
	body.single-product .related.products > h2 {
		font-size: 28px;
	}

	body.single-product .oh-section p,
	body.single-product .oh-highlights__item,
	body.single-product .oh-feature-list__row,
	body.single-product .oh-specs-table {
		font-size: 17px;
	}
}

/* Tablets from 820px (portrait large / landscape): slightly larger
   title. (1.0.8: the column-gap rule here belonged to the removed
   .oh-product-top grid.) */
@media (min-width: 820px) {
	body.single-product div.product .oh-purchase-panel .product_title {
		font-size: 30px;
	}
}

/* Laptops / desktops from 1024px: larger title and price.
   (1.0.8: the 7fr/5fr grid rule here belonged to the removed
   .oh-product-top wrapper; the two-column top is Woostify's
   native gallery/summary layout.) */
@media (min-width: 1024px) {
	body.single-product div.product .oh-purchase-panel .product_title {
		font-size: 32px;
	}

	body.single-product div.product .oh-purchase-panel .price {
		font-size: 26px;
	}
}

/* Wide desktops from 1280px: larger type. */
@media (min-width: 1280px) {
	body.single-product {
		font-size: 18px;
	}

	body.single-product .oh-section__heading,
	body.single-product .related.products > h2 {
		font-size: 32px;
	}
}

/* Very wide desktops from 1440px: largest title and price. */
@media (min-width: 1440px) {
	body.single-product div.product .oh-purchase-panel .product_title {
		font-size: 34px;
	}

	body.single-product div.product .oh-purchase-panel .price {
		font-size: 28px;
	}
}

/* ------------------------------------------------------------------ */
/*  Reduced motion                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	body.single-product *,
	body.single-product *::before,
	body.single-product *::after {
		scroll-behavior: auto;
		transition: none;
		animation: none;
	}
}
