/* =========================================================================
   BioPex — shared design layer (Concept 3 V2)
   Loaded on product, shop, category and cart pages. Everything is scoped to
   body.bpx-woo so the Elementor header/footer and other pages are untouched.
   ========================================================================= */

body.bpx-woo {
	--bpx-ink: #0E1726;
	--bpx-navy: #1B2B45;
	--bpx-deep: #0B1422;
	--bpx-mist: #F3F5F7;
	--bpx-mist-2: #E7EBEF;
	--bpx-line: #E1E5EA;
	--bpx-field: #CDD3DA;
	--bpx-slate: #5A6472;
	--bpx-steel: #3E5675;
	--bpx-ok: #2B6A4F;
	--bpx-ok-bg: #E6F1EB;
	--bpx-img-bg: #DDE1E6;
	--bpx-r: 12px;
	--bpx-rs: 8px;
	--bpx-max: 1440px;           /* outer width incl. side padding — matches the header */
	--bpx-gutter: clamp(16px, 4vw, 56px);
	--bpx-gal-ratio: 1 / 1;
	--bpx-sticky-top: 110px;     /* clears the sticky Elementor header */
	--bpx-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--bpx-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
	--bpx-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	background: #fff;
}

/* ---------- page frame ---------- */
body.bpx-woo .site-main {
	max-width: var(--bpx-max);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--bpx-gutter);
	font-family: var(--bpx-sans);
	color: var(--bpx-ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.bpx-woo .site-main *,
body.bpx-woo .site-main *::before,
body.bpx-woo .site-main *::after { box-sizing: border-box; }
body.bpx-woo .site-main a { color: inherit; }
body.bpx-woo .site-main :focus-visible { outline: 2px solid var(--bpx-steel); outline-offset: 2px; }
body.bpx-woo .site-main img { max-width: 100%; }
body.bpx-woo .bpx-mono { font-family: var(--bpx-mono); }
body.bpx-woo .bpx-ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.bpx-woo .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* display type */
body.bpx-woo .bpx-d1 {
	font-family: var(--bpx-display);
	font-weight: 600;
	font-size: clamp(46px, 7.4vw, 116px);
	line-height: .95;
	letter-spacing: -.045em;
	margin: 0;
	color: inherit;
}
body.bpx-woo .bpx-d2,
body.bpx-woo section.related > h2,
body.bpx-woo section.upsells > h2,
body.bpx-woo .cross-sells > h2 {
	font-family: var(--bpx-display);
	font-weight: 600;
	font-size: clamp(34px, 4.8vw, 68px);
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--bpx-ink);
	margin: 0 0 clamp(32px, 4vw, 56px);
}

/* ---------- breadcrumb ---------- */
body.bpx-woo .woocommerce-breadcrumb {
	margin: 0;
	padding: 22px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--bpx-slate);
}
body.bpx-woo .woocommerce-breadcrumb a { color: var(--bpx-slate); text-decoration: none; }
body.bpx-woo .woocommerce-breadcrumb a:hover { color: var(--bpx-ink); }
body.bpx-woo .woocommerce-breadcrumb .bpx-sep { margin: 0 8px; color: #A6AEB8; }

/* ---------- notices ---------- */
body.bpx-woo .woocommerce-notices-wrapper:not(:empty) { margin-top: 20px; }
body.bpx-woo .woocommerce-message,
body.bpx-woo .woocommerce-info,
body.bpx-woo .woocommerce-error {
	border: 0;
	border-radius: var(--bpx-rs);
	background: var(--bpx-mist);
	color: var(--bpx-ink);
	font-size: 15px;
	line-height: 1.5;
	padding: 14px 18px 14px 48px;
	margin: 0 0 8px;
	list-style: none;
}
body.bpx-woo .woocommerce-message { background: var(--bpx-ok-bg); }
body.bpx-woo .woocommerce-message::before { color: var(--bpx-ok); top: 14px; left: 18px; }
body.bpx-woo .woocommerce-info::before { color: var(--bpx-steel); top: 14px; left: 18px; }
body.bpx-woo .woocommerce-error { background: #FBECEC; }
body.bpx-woo .woocommerce-error::before { color: #A23B3B; top: 14px; left: 18px; }
body.bpx-woo .woocommerce-message .button,
body.bpx-woo .woocommerce-info .button {
	float: right; background: transparent; color: var(--bpx-ink); border: 0; padding: 0; margin-left: 16px;
	font: 600 15px/1.5 var(--bpx-sans); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- buttons ---------- */
body.bpx-woo .bpx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; margin: 0;
	border-radius: var(--bpx-rs); border: 1px solid transparent;
	font: 600 15px/1.2 var(--bpx-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
body.bpx-woo .bpx-btn-dark { background: var(--bpx-ink); border-color: var(--bpx-ink); color: #fff; }
body.bpx-woo .bpx-btn-dark:hover { background: var(--bpx-navy); border-color: var(--bpx-navy); color: #fff; }
body.bpx-woo .bpx-btn-line { background: #fff; border-color: var(--bpx-field); color: var(--bpx-ink); }
body.bpx-woo .bpx-btn-line:hover { border-color: var(--bpx-ink); background: #fff; color: var(--bpx-ink); }
body.bpx-woo .bpx-btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
body.bpx-woo .bpx-btn-block { width: 100%; }
body.bpx-woo .bpx-ib {
	width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: var(--bpx-rs);
	background: none; color: var(--bpx-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
body.bpx-woo .bpx-ib:hover { background: var(--bpx-mist); color: var(--bpx-ink); }
body.bpx-woo .bpx-lnk {
	background: none; border: 0; padding: 0; min-height: 32px; display: inline-flex; align-items: center;
	font: 600 14px var(--bpx-sans); color: var(--bpx-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* WooCommerce default buttons on our pages (return to shop, apply coupon, update cart…) */
body.bpx-woo .site-main .button:not(.add_to_cart_button):not(.product_type_variable):not(.product_type_grouped):not(.product_type_external):not(.single_add_to_cart_button):not(.checkout-button),
body.bpx-woo .site-main button.button:not(.single_add_to_cart_button) {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 42px; padding: 0 16px; margin: 0;
	border: 1px solid var(--bpx-field); border-radius: var(--bpx-rs);
	background: #fff; color: var(--bpx-ink);
	font: 600 14px/1.2 var(--bpx-sans); text-decoration: none; text-transform: none; letter-spacing: 0;
	cursor: pointer; transition: border-color .15s;
}
body.bpx-woo .site-main .button:hover { border-color: var(--bpx-ink); background: #fff; color: var(--bpx-ink); }
body.bpx-woo .site-main .woocommerce-message .button,
body.bpx-woo .site-main .woocommerce-info .button { border: 0 !important; min-height: 0 !important; padding: 0 !important; background: transparent !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- select (sort etc.) ---------- */
body.bpx-woo .site-main select.orderby,
body.bpx-woo .site-main select.bpx-sel {
	appearance: none; -webkit-appearance: none;
	min-height: 46px; margin: 0; padding: 0 40px 0 14px;
	border: 1px solid var(--bpx-field); border-radius: var(--bpx-rs);
	font: 500 14.5px var(--bpx-sans); color: var(--bpx-ink); cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E1726' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

/* ---------- quantity stepper (− 1 +) ---------- */
body.bpx-woo .site-main div.quantity {
	display: inline-flex;
	align-items: center;
	float: none;
	height: 52px;
	margin: 0;
	border: 1px solid var(--bpx-line);
	border-radius: var(--bpx-rs);
	background: #fff;
	vertical-align: top;
}
body.bpx-woo .site-main div.quantity input.qty {
	width: 44px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font: 600 15px var(--bpx-sans);
	color: var(--bpx-ink);
	-moz-appearance: textfield;
	box-shadow: none;
}
body.bpx-woo .site-main div.quantity input.qty:focus { outline: 0; }
body.bpx-woo .site-main div.quantity:focus-within { border-color: var(--bpx-ink); }
body.bpx-woo .site-main div.quantity input.qty::-webkit-outer-spin-button,
body.bpx-woo .site-main div.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.bpx-woo .site-main div.quantity button.bpx-q {
	width: 44px; height: 50px; margin: 0; padding: 0; border: 0; border-radius: var(--bpx-rs);
	background: none; color: var(--bpx-ink); font: 400 18px/1 var(--bpx-sans); cursor: pointer;
}
body.bpx-woo .site-main div.quantity button.bpx-q:hover { background: var(--bpx-mist); color: var(--bpx-ink); }
body.bpx-woo .site-main div.quantity.bpx-qty-sm { height: 38px; }
body.bpx-woo .site-main div.quantity.bpx-qty-sm input.qty { height: 36px; width: 32px; font-size: 14.5px; }
body.bpx-woo .site-main div.quantity.bpx-qty-sm button.bpx-q { width: 36px; height: 36px; font-size: 17px; }

/* ---------- product card ---------- */
body.bpx-woo .site-main ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 44px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.bpx-woo .site-main ul.products::before,
body.bpx-woo .site-main ul.products::after { display: none; }
body.bpx-woo .site-main ul.products li.product {
	float: none;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
	position: relative;
	text-align: left;
	list-style: none;
}
body.bpx-woo .site-main ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--bpx-ink);
}
body.bpx-woo .site-main ul.products li.product .bpx-pc-img {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: var(--bpx-r);
	overflow: hidden;
	background: var(--bpx-img-bg);
}
body.bpx-woo .site-main ul.products li.product .bpx-pc-img img,
body.bpx-woo .site-main ul.products li.product a img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 68% 50%;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	display: block;
	transition: transform .5s ease;
}
body.bpx-woo .site-main ul.products li.product:hover .bpx-pc-img img { transform: scale(1.03); }
body.bpx-woo .site-main ul.products li.product span.onsale,
body.bpx-woo .site-main ul.products li.product .bpx-pc-img .onsale {
	position: absolute;
	top: 12px; left: 12px; right: auto;
	margin: 0; min-width: 0; min-height: 0;
	padding: 5px 9px;
	border-radius: 6px;
	background: #fff;
	color: var(--bpx-ink);
	font: 600 12px/1.3 var(--bpx-sans);
	z-index: 2;
}
body.bpx-woo .site-main ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--bpx-sans);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.3;
	margin: 16px 0 0;
	padding: 0;
	color: var(--bpx-ink);
}
body.bpx-woo .site-main ul.products li.product a:hover .woocommerce-loop-product__title { text-decoration: underline; text-underline-offset: 3px; }
body.bpx-woo .site-main ul.products li.product .bpx-sz { margin: 4px 0 0; font: 12.5px/1.4 var(--bpx-mono); color: var(--bpx-slate); }
body.bpx-woo .site-main ul.products li.product .star-rating { display: none; }
body.bpx-woo .site-main ul.products li.product .price {
	display: block; margin: 10px 0 0; font-size: 16px; font-weight: 600; color: var(--bpx-ink); line-height: 1.4;
}
body.bpx-woo .site-main ul.products li.product .price del { color: var(--bpx-slate); font-weight: 400; font-size: 13px; opacity: 1; margin-right: 4px; }
body.bpx-woo .site-main ul.products li.product .price ins { text-decoration: none; font-weight: 600; }
body.bpx-woo .site-main ul.products li.product .price .bpx-from { font-weight: 400; color: var(--bpx-slate); font-size: 13px; }
body.bpx-woo .site-main ul.products li.product .button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; min-height: 42px; margin: 14px 0 0; padding: 0 16px;
	border: 1px solid var(--bpx-field); border-radius: var(--bpx-rs); background: #fff;
	color: var(--bpx-ink); font: 600 14px/1.2 var(--bpx-sans); text-decoration: none; text-transform: none; letter-spacing: 0;
	transition: border-color .15s, background-color .15s, color .15s;
}
body.bpx-woo .site-main ul.products li.product .button:hover { border-color: var(--bpx-ink); background: #fff; color: var(--bpx-ink); }
body.bpx-woo .site-main ul.products li.product .button.loading { opacity: .6; }
body.bpx-woo .site-main ul.products li.product .button.loading::after { display: none; }
body.bpx-woo .site-main ul.products li.product .button.added { background: var(--bpx-ok); border-color: var(--bpx-ok); color: #fff; }
body.bpx-woo .site-main ul.products li.product .button.added::after { display: none; }
body.bpx-woo .site-main ul.products li.product .added_to_cart { display: none; }

/* related / upsells / cross-sells sections */
body.bpx-woo .site-main section.related,
body.bpx-woo .site-main section.upsells,
body.bpx-woo .site-main .cross-sells {
	clear: both;
	float: none;
	width: auto;
	margin: 0;
	padding: clamp(72px, 8vw, 120px) 0 clamp(72px, 9vw, 136px);
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
	body.bpx-woo .site-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.bpx-woo .site-main section.related ul.products li.product:nth-child(n+4),
	body.bpx-woo .site-main section.upsells ul.products li.product:nth-child(n+4),
	body.bpx-woo .site-main .cross-sells ul.products li.product:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
	body.bpx-woo .site-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
	body.bpx-woo .site-main section.related ul.products li.product:nth-child(n+4),
	body.bpx-woo .site-main section.upsells ul.products li.product:nth-child(n+4),
	body.bpx-woo .site-main .cross-sells ul.products li.product:nth-child(n+4) { display: flex; }
	body.bpx-woo .site-main ul.products li.product .woocommerce-loop-product__title { font-size: 15px; margin-top: 12px; }
	body.bpx-woo .site-main ul.products li.product .price { font-size: 15px; margin-top: 6px; }
	body.bpx-woo .site-main ul.products li.product .button { font-size: 13.5px; padding: 0 10px; }
	body.bpx-woo .site-main ul.products li.product span.onsale { top: 8px; left: 8px; font-size: 11px; padding: 4px 7px; }
	body.bpx-woo .bpx-d2,
	body.bpx-woo section.related > h2,
	body.bpx-woo section.upsells > h2,
	body.bpx-woo .cross-sells > h2 { font-size: 36px; }
	body.bpx-woo .bpx-btn { min-height: 50px; }
	body.bpx-woo .bpx-btn-sm { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
	body.bpx-woo .site-main *, body.bpx-woo .site-main *::before, body.bpx-woo .site-main *::after { transition: none !important; animation: none !important; }
}

/* ---------- cart / checkout page title ---------- */
body.bpx-woo .site-main > .page-header { display: none; }
body.bpx-woo .site-main > .page-content { margin: 0; padding: 0; }
body.bpx-woo .bpx-page-h { font-size: clamp(44px, 6vw, 88px); padding-top: 28px; }
