/* =============================================================================
   UGL OZ Replica — BASE
   Reset · layout grid · typography · page-title bar · shared product card ·
   pagination · search form · floating chat button.
   Values measured from ugloz.is (InBio, dark mode forced).

   NOTE FOR WAVE 2 (shop / product / woo agents): the SHARED PRODUCT CARD and
   PAGINATION blocks below are site-wide on purpose. Reuse them; do not fork.
   ========================================================================== */

/* ---------- reset ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ugloz-bg);
	color: var(--ugloz-body);
	font-family: var(--ugloz-font-primary);
	font-size: var(--ugloz-fs-body);
	font-weight: var(--ugloz-w-regular);
	line-height: var(--ugloz-lh-body);
	overflow-x: hidden;
}

body.ugloz-no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
svg { vertical-align: middle; }

a {
	color: var(--ugloz-heading);
	text-decoration: none;
	transition: 0.3s;
}
a:hover { color: var(--ugloz-primary); }

button { font-family: inherit; }

/* ---------- headings ------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ugloz-font-secondary);
	font-weight: var(--ugloz-w-bold);
	color: var(--ugloz-heading);
	margin: 0 0 20px;
	/* overflow-wrap, NOT word-break: `word-break: break-word` behaves like
	   `anywhere` in Blink and re-breaks product titles one word earlier than the
	   source does (e.g. "SHOGUN MK-677 (Ibutamoren) 5mg X 60 Units" gained a
	   third line, adding 27px to that whole grid row). */
	overflow-wrap: break-word;
}
h1 { font-size: var(--ugloz-h1); line-height: 1.2; }
h2 { font-size: var(--ugloz-h2); line-height: 1.2; }
h3 { font-size: var(--ugloz-h3); line-height: 30px; }
h4 { font-size: var(--ugloz-h4); line-height: 1.3; }
h5 { font-size: var(--ugloz-h5); line-height: 1.4; }
h6 { font-size: var(--ugloz-h6); line-height: 1.4; }

p {
	margin: 0 0 20px;
	color: var(--ugloz-body);
	font-size: var(--ugloz-fs-body);
	line-height: 32px;
}

/* ---------- layout: container / row / cols (bootstrap-compatible subset) ---- */
.container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-right: 15px;
	padding-left: 15px;
}
/* InBio ships a CUSTOMISED bootstrap: the xl container is 1310px, not 1140px.
   Combined with Elementor's --content-width:1140px on .e-con-inner this puts the
   homepage content at x=150..1290 at a 1440 viewport — the measured position. */
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1310px; } }

.row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}
.row.align-items-center { align-items: center; }

.col-6, .col-12, .col-lg-2, .col-lg-10, .col-lg-12 {
	position: relative;
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
}
.col-6  { flex: 0 0 50%;  max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 992px) {
	.col-lg-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
	.col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
	.col-lg-12 { flex: 0 0 100%; max-width: 100%; }
	.col-lg-2.col-6, .col-lg-10.col-6 { max-width: none; }
	.col-lg-2  { max-width: 16.666667%; }
	.col-lg-10 { max-width: 83.333333%; }
}

.plr--45 { padding-left: 45px; padding-right: 45px; }
@media only screen and (max-width: 767px) {
	.breadcrumb-area .plr--45 { padding: 0 15px !important; }
}

.text-center { text-align: center; }
.mt--30 { margin-top: 30px !important; }

.d-block { display: block !important; }
.d-none  { display: none !important; }
@media (min-width: 1200px) {
	.d-xl-block { display: block !important; }
	.d-xl-none  { display: none !important; }
}

.screen-reader-text,
.elementor-screen-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- section rhythm ------------------------------------------------- */
.rn-section-gap { padding: var(--ugloz-section-gap) 0; }
@media only screen and (max-width: 991px) {
	.rn-section-gap { padding: var(--ugloz-section-gap-sm) 0; }
}

/* Hairline above the footer — .section-separator::after on the source */
.section-separator { position: relative; }
.section-separator::after {
	position: absolute;
	max-width: 1270px;
	height: 1px;
	background: #121415;
	content: "";
	top: 0; left: 0; right: 0;
	margin: 0 auto;
}

/* ---------- Simple Banner (present in the DOM, EMPTY, height 0) ------------ */
/* Replicate-don't-fix: the source ships this element with no text. */
#simple-banner.simple-banner {
	background-color: var(--ugloz-e-text);
	color: var(--ugloz-white);
	font-family: var(--ugloz-font-primary);
	font-size: 16px;
	font-weight: 400;
	text-align: center;
	position: relative;
	padding: 0;
}
#simple-banner .simple-banner-text:empty,
#simple-banner .simple-banner-text span:empty { display: block; }

/* ---------- page-title bar (.breadcrumb-area) ------------------------------ */
/* Measured: bg rgb(31,33,37), padding 40px 0, height ~119px.
   .breadcrumb-inner is flex + space-between; .title has margin:0 auto, so a
   page WITHOUT a crumb list renders its H1 dead-centre (the homepage), while a
   page WITH one (shop) sits centred in the remaining space. Source behaviour. */
.breadcrumb-area.breadcrumb-style-one {
	background: var(--ugloz-bar-bg);
	padding: 40px 0;
}
.breadcrumb-style-one .breadcrumb-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}
.breadcrumb-style-one .breadcrumb-inner .title {
	font-family: var(--ugloz-font-secondary);
	font-size: 30px;
	font-weight: var(--ugloz-w-bold);
	line-height: 38.7px;
	color: var(--ugloz-heading);
	margin: 0 auto;
}
.breadcrumb-style-one .breadcrumb-inner .page-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.breadcrumb-style-one .breadcrumb-inner .page-list li {
	margin: 0;
	font-size: 16px;
	color: var(--ugloz-body);
	list-style: none;
}
.breadcrumb-style-one .breadcrumb-inner .page-list li a { color: var(--ugloz-body); }
.breadcrumb-style-one .breadcrumb-inner .page-list li a:hover { color: var(--ugloz-primary); }
.breadcrumb-style-one .breadcrumb-inner .page-list li.separator {
	position: relative;
	padding: 0 20px;
}
.breadcrumb-style-one .breadcrumb-inner .page-list li.separator::after {
	position: absolute;
	content: "";
	background-color: var(--ugloz-primary);
	width: 5px; height: 5px;
	border-radius: 100%;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.5;
}
/* No extra bottom margin at mobile: the source's bar measures 157.4px at 390
   = 40 + 77.4 (a 2-line title) + 40, i.e. padding only. */

/* ---------- editor prose (SEO zone, content pages) ------------------------- */
.ugloz-prose h1, .ugloz-prose h2, .ugloz-prose h3,
.ugloz-prose h4, .ugloz-prose h5, .ugloz-prose h6 { color: var(--ugloz-heading); }
.ugloz-prose h2 { font-size: var(--ugloz-h2); line-height: 1.25; margin-bottom: 20px; }
.ugloz-prose p  { color: var(--ugloz-body); }
.ugloz-prose a  { color: var(--ugloz-heading); }
.ugloz-prose a:hover { color: var(--ugloz-primary); }
.ugloz-prose ul, .ugloz-prose ol { color: var(--ugloz-body); padding-left: 20px; }
.ugloz-prose li { margin-bottom: 8px; }

/* =============================================================================
   SHARED PRODUCT CARD  (template-parts/content-product-card.php)
   Homepage grids AND, from Wave 2, /shop/, category archives and search.
   Measured: grid 4 x 270px, gap 40px 20px, thumb radius 10px,
             title Montserrat 18/700/27 #c4cfde, price Poppins 16/400 rgb(117,117,137).
   The add-to-cart / read-more button is opacity:0 visibility:hidden, absolutely
   centred over the thumbnail, and fades in on card hover. It IS there.
   ========================================================================== */
/* minmax(0,1fr), not 1fr: a bare 1fr is minmax(auto,1fr), so a long product
   title's min-content width makes the tracks uneven (measured 163.6/156.4 at
   390px). The source's Elementor grid renders equal tracks. */
.woocommerce ul.products,
ul.products.ugloz-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-column-gap: 20px;
	grid-row-gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }

/* The [class*="columns-"] selectors are here to OUT-SPECIFY WooCommerce's own
   float layout — in particular woocommerce-smallscreen.css's
   `.woocommerce ul.products[class*="columns-"] li.product { width:48% }`,
   which otherwise shrinks every card to 48% of its grid track below 768px
   (measured: 78.5px thumbnails inside a 163.6px track). Wave 2 archives need
   this too; keep the selector list intact. */
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	position: relative;
	float: none;
	clear: none;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products li.product .shop-thumbnail {
	position: relative;
	overflow: hidden;
	border-radius: var(--ugloz-radius-thumb);
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: block;
	position: relative;
}

/* NOT display:block — the source leaves the loop image inline, and the ~4px
   inline baseline gap under it is part of the measured 437px row pitch. */
.woocommerce ul.products li.product .shop-thumbnail img {
	width: 100%;
	border-radius: var(--ugloz-radius-thumb);
	transition: all 0.5s;
}

/* the hover-reveal button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	display: inline-block;
	z-index: 5;
	width: max-content;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.45s cubic-bezier(0.23, 0.88, 0.34, 0.99);
	text-transform: uppercase;
	letter-spacing: 0.2px;
	font-family: var(--ugloz-font-primary);
	font-weight: var(--ugloz-w-medium);
	font-size: 13px;
	line-height: 13px;
	padding: 11px 15px;
	border-radius: var(--ugloz-radius-btn);
	color: var(--ugloz-white);
	border: var(--ugloz-border-width) solid var(--ugloz-primary);
	background: var(--ugloz-primary);
}

.woocommerce ul.products li.product:hover .button,
.woocommerce ul.products li.product:hover .added_to_cart {
	opacity: 1;
	visibility: visible;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
	background: var(--ugloz-primary);
	color: var(--ugloz-white);
	margin-top: -3px;
}

.woocommerce ul.products li.product .added_to_cart {
	padding-right: 30px !important;
}

/* title — the source's own rules, verbatim:
     .product .shop-product-info      { padding-top:17px; padding-bottom:5px }
     .product .shop-product-info h3 a { font-weight:700; font-size:18px;
                                        line-height:1.5em; letter-spacing:-0.02em }
   The -0.02em is load-bearing: without it "SHOGUN MK-677 (Ibutamoren) 5mg X 60
   Units" needs 272.9px in a 270px column and takes a third line, adding 27px to
   that whole grid row. Measured card box: 397 = 270 thumb + 103 info + 24 price. */
.woocommerce ul.products li.product .shop-product-info {
	margin: 0;
	padding-top: 17px;
	padding-bottom: 5px;
}
.woocommerce ul.products li.product .shop-product-info h3 {
	font-family: var(--ugloz-font-secondary);
	margin: 0;
	padding: 0;
	text-transform: none;
}
.woocommerce ul.products li.product .shop-product-info h3 a {
	font-family: var(--ugloz-font-secondary);
	font-weight: var(--ugloz-w-bold);
	color: var(--ugloz-heading);
	font-size: 18px;
	line-height: 1.5em;
	letter-spacing: -0.02em;
	transition: 0.3s;
}
.woocommerce ul.products li.product .shop-product-info h3 a:hover { color: var(--ugloz-primary) !important; }

/* price */
.woocommerce ul.products li.product .products-shop { margin: 0; }
.woocommerce ul.products li.product .price {
	display: block;
	font-family: var(--ugloz-font-primary);
	font-size: 16px;
	font-weight: var(--ugloz-w-regular);
	line-height: 24px;
	color: var(--ugloz-price);
	margin: 0;
}
/* PRICE COLOUR — diagnosed twice, and the SECOND diagnosis is the right one.
 *
 * Wave 1's audit measured our sale price as gold vs the source's rgb(196,207,222) and I first
 * "fixed" it by recolouring `ins`. That treated a symptom. tuju-shop then measured the source's
 * actual cascade over CDP and found the real mechanism:
 *
 *   .price                        rgb(117,117,137)  <- the WRAPPER. Paints nothing; Woo nests
 *                                                      the text one level deeper.
 *   .price span.…Price-amount     rgb(196,207,222)  <- what you actually SEE. InBio's style.css
 *                                                      sets this to var(--color-heading).
 *   del                           opacity 0.7       <- we had 0.5, i.e. too faint.
 *
 * RECON §7's "card price rgb(117,117,137)" is the wrapper value, which is why following it
 * produced the wrong rendered colour. So `ins` keeps its source-faithful gold + bold, and the
 * nested `.amount` override below is what makes both regular and sale prices match the source.
 * Affects every surface sharing this card: homepage grids, shop, category archives, search.
 */
.woocommerce ul.products li.product .price del {
	display: inline-block;
	color: inherit;
	opacity: 0.7;
	text-decoration: line-through;
}
.woocommerce ul.products li.product .price ins {
	background: none;
	font-weight: var(--ugloz-w-bold);
	display: inline-block;
	color: var(--ugloz-primary);
	text-decoration: none;
}
.woocommerce ul.products li.product .price span.woocommerce-Price-amount.amount {
	color: var(--ugloz-heading);
	font-weight: 400;
}

/* responsive columns — Elementor grid-tablet-3 / grid-mobile-2 */
@media only screen and (max-width: 1024px) {
	.woocommerce ul.products,
	ul.products.ugloz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media only screen and (max-width: 767px) {
	.woocommerce ul.products,
	ul.products.ugloz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.woocommerce ul.products li.product .shop-product-info h3 { font-size: 16px; line-height: 24px; }
}

/* ---------- pagination ----------------------------------------------------- */
/* Replicate-don't-fix: the theme emits a bare ul.page-numbers.
   .woocommerce-pagination does NOT exist on the source. */
ul.page-numbers {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	gap: 10px;
}
ul.page-numbers li { margin: 0; list-style: none; }
ul.page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--ugloz-radius-badge);
	font-family: var(--ugloz-font-primary);
	font-size: 14px;
	color: var(--ugloz-heading);
	background: var(--ugloz-surface);
	border: var(--ugloz-border-width) solid transparent;
	box-shadow: var(--ugloz-shadow-1);
}
ul.page-numbers li .page-numbers.current,
ul.page-numbers li a.page-numbers:hover {
	background: var(--ugloz-primary);
	border-color: var(--ugloz-primary);
	color: var(--ugloz-white);
	box-shadow: none;
}

/* ---------- Elementor-Pro search form (used on the homepage + searchform.php) */
.ugloz-search-form { display: block; transition: 0.2s; }
.ugloz-search-form__container {
	display: flex;
	min-height: 50px;
	overflow: hidden;
	border: 0 solid transparent;
	border-radius: var(--ugloz-radius-sm);
	background: #f1f2f3;
	transition: 0.2s;
}
.ugloz-search-form__input,
.ugloz-search-form__submit {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	margin: 0;
	min-width: 0;
	padding: 0;
	vertical-align: middle;
	white-space: normal;
}
/* Measured widths at 1440: input 578.45px, submit 561.55px (sum = container). */
.ugloz-search-form__input {
	flex: 578 1 0%;
	color: #3f444b;
	font-family: var(--ugloz-font-primary);
	padding-left: 16.66px;
	padding-right: 16.66px;
	height: 40px;
}
.ugloz-search-form__input::placeholder { color: inherit; opacity: 0.6; }
.ugloz-search-form__input:focus { outline: 0; color: inherit; }
.ugloz-search-form__submit {
	flex: 561 1 0%;
	min-width: 50px;
	background-color: #69727d;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	border-radius: 0;
	transition: color 0.2s, background 0.2s;
}
.ugloz-search-form__submit svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- floating chat button (Chaty replacement, site chrome) ---------- */
/* Source: single Link channel, Messenger glyph, bottom-right, waggle anim,
   aria-label "Join the UGL OZ Community Chat" -> ugltalk.is thread. */
.ugloz-chat {
	position: fixed;
	right: 25px;
	bottom: 25px;
	z-index: 99998;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #0084ff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	color: #fff;
	transition: transform 0.2s ease;
}
.ugloz-chat:hover { color: #fff; transform: scale(1.06); }
.ugloz-chat svg { width: 30px; height: 30px; fill: #fff; animation: ugloz-waggle 3s infinite; }

@keyframes ugloz-waggle {
	0%, 60%, 100% { transform: rotate(0deg); }
	65% { transform: rotate(-10deg); }
	70% { transform: rotate(10deg); }
	75% { transform: rotate(-10deg); }
	80% { transform: rotate(10deg); }
	85% { transform: rotate(-6deg); }
	90% { transform: rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
	.ugloz-chat svg { animation: none; }
}

/* ---------- neumorphic "rn-btn" (404 CTA, generic secondary button) -------- */
a.rn-btn,
button.rn-btn {
	display: inline-block;
	padding: 15px 35px;
	list-style: none;
	text-decoration: none;
	color: var(--ugloz-primary);
	border-radius: var(--ugloz-radius-btn);
	background: var(--ugloz-surface);
	box-shadow: var(--ugloz-shadow-1);
	transition: var(--ugloz-transition);
	position: relative;
	z-index: 2;
	font-family: var(--ugloz-font-primary);
	font-size: 14px;
	font-weight: var(--ugloz-w-medium);
	border: 0 none;
	cursor: pointer;
}
a.rn-btn::before,
button.rn-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: var(--ugloz-radius-btn);
	background: var(--ugloz-surface-2);
	opacity: 0;
	z-index: -1;
	transition: var(--ugloz-transition);
}
a.rn-btn:hover,
button.rn-btn:hover { transform: translateY(-5px); color: var(--ugloz-primary); }
a.rn-btn:hover::before,
button.rn-btn:hover::before { opacity: 1; }

/* ---------- 404 (theme .error-area — measured from the source) ------------- */
.row.justify-content-center { justify-content: center; }
.row.text-center { text-align: center; }
.col-10 {
	position: relative;
	width: 100%;
	flex: 0 0 83.333333%;
	max-width: 83.333333%;
	padding-right: 15px;
	padding-left: 15px;
}
.error-area .title {
	color: var(--ugloz-primary);
	font-size: 180px;
	line-height: 1;
	margin-bottom: 0;
}
@media only screen and (min-width: 768px) and (max-width: 991px) { .error-area .title { font-size: 90px; } }
@media only screen and (max-width: 767px) { .error-area .title { font-size: 76px; } }
.error-area .sub-title {
	font-weight: var(--ugloz-w-regular);
	font-size: 48px;
	margin-top: 20px;
	margin-bottom: 30px;
}
@media only screen and (min-width: 768px) and (max-width: 991px) { .error-area .sub-title { font-size: 30px; margin-bottom: 16px; } }
@media only screen and (max-width: 767px) { .error-area .sub-title { font-size: 28px; margin-bottom: 16px; } }
.error-area p {
	color: #c6c9d8;
	display: block;
	font-size: 16px;
	font-weight: var(--ugloz-w-light);
	margin-bottom: 50px;
}
@media only screen and (max-width: 991px) { .error-area p { margin-bottom: 30px; } }
