/* =========================================================
   PepX Scientific — Global wide layout
========================================================= */

:root {
	--pepx-page-gutter: 40px;
	--pepx-wide-width: calc(100vw - (var(--pepx-page-gutter) * 2));
}

/* Global theme containers */

.pepx-container {
	width: var(--pepx-wide-width) !important;
	max-width: none !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

/* Standard WordPress pages */

.site-main > article,
.site-main article.page {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.site-main .entry-header,
.site-main .entry-content {
	max-width: none;
}

/* Header and footer */

.site-header .pepx-container,
.site-footer .pepx-container {
	width: var(--pepx-wide-width) !important;
	max-width: none !important;
}

/* =========================================================
   Homepage hero image
========================================================= */

.home-hero {
	position: relative;
	isolation: isolate;
	background:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 1) 0%,
			rgba(255, 255, 255, 0.99) 25%,
			rgba(255, 255, 255, 0.94) 34%,
			rgba(255, 255, 255, 0.72) 43%,
			rgba(255, 255, 255, 0.28) 52%,
			rgba(255, 255, 255, 0) 64%
		),
		url("https://pepxscientific.com/wp-content/uploads/2026/07/Hero-home-page.png")
			center right / cover no-repeat;
}

/*
 * Hide the separate image element because the same image is now
 * used as a full-width hero background.
 */

.home-hero__render {
	display: none !important;
}

.home-hero__grid {
	position: relative;
	z-index: 2;
}

/*
 * Keep the right visual column available for the floating badge
 * and featured product panel.
 */

.home-hero__visual {
	position: relative;
	background: transparent !important;
}

/* Remove old decorative shapes that compete with the real render */

.home-hero__glow,
.home-hero::after,
.home-hero__visual .hero-orbit,
.home-hero__visual .hero-vial {
	display: none !important;
}

/* Ensure the left text stays readable */

.home-hero__content {
	position: relative;
	z-index: 4;
}

/* Floating hero panels */

.home-hero .hero-quality-badge,
.home-hero .hero-product-card {
	z-index: 6;
}

/* Homepage sections */

.home-hero .pepx-container,
.home-trust .pepx-container,
.home-section .pepx-container,
.home-quality .pepx-container,
.home-statistics .pepx-container,
.home-cta .pepx-container {
	width: var(--pepx-wide-width) !important;
	max-width: none !important;
}

/* Custom information pages */

.collections-page .pepx-container,
.quality-page .pepx-container,
.about-page .pepx-container,
.research-page .pepx-container,
.coa-page .pepx-container,
.contact-page .pepx-container {
	width: var(--pepx-wide-width) !important;
	max-width: none !important;
}

/* WooCommerce shop and products */

body.woocommerce-shop .pepx-container,
body.tax-product_cat .pepx-container,
body.tax-product_tag .pepx-container,
body.single-product .pepx-container {
	width: var(--pepx-wide-width) !important;
	max-width: none !important;
}

/* Cart and checkout outer page wrappers */

body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.woocommerce-cart .site-main > article,
body.woocommerce-cart article.page,
body.woocommerce-checkout .site-main > article,
body.woocommerce-checkout article.page {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.woocommerce-cart .entry-header,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-header,
body.woocommerce-checkout .entry-content {
	width: var(--pepx-wide-width) !important;
	max-width: none !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/* WooCommerce Cart block */

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

body.woocommerce-cart .wc-block-cart {
	display: grid !important;
	grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.7fr) !important;
	align-items: start !important;
	gap: 32px !important;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

/* WooCommerce Checkout block */

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout {
	display: grid !important;
	grid-template-columns: minmax(0, 1.75fr) minmax(400px, 0.7fr) !important;
	align-items: start !important;
	gap: 36px !important;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.woocommerce-checkout
	.wc-block-checkout__main
	.wc-block-components-checkout-step {
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout
	.wc-block-components-checkout-step__container,
body.woocommerce-checkout
	.wc-block-components-address-form {
	width: 100% !important;
	max-width: none !important;
}

/* Large desktop screens */

@media (min-width: 1800px) {
	:root {
		--pepx-page-gutter: 56px;
	}

	.home-hero {
		background-position: center right;
		background-size: cover;
	}

	body.woocommerce-cart .wc-block-cart {
		grid-template-columns: minmax(0, 1.9fr) minmax(420px, 0.65fr) !important;
		gap: 42px !important;
	}

	body.woocommerce-checkout .wc-block-checkout {
		grid-template-columns: minmax(0, 1.9fr) minmax(430px, 0.65fr) !important;
		gap: 42px !important;
	}
}

/* Tablet */

@media (max-width: 1050px) {
	:root {
		--pepx-page-gutter: 24px;
	}

	.home-hero {
		background:
			linear-gradient(
				90deg,
				rgba(255, 255, 255, 1) 0%,
				rgba(255, 255, 255, 0.96) 42%,
				rgba(255, 255, 255, 0.48) 65%,
				rgba(255, 255, 255, 0.12) 100%
			),
			url("https://pepxscientific.com/wp-content/uploads/2026/07/Hero-home-page.png")
				center right / cover no-repeat;
	}

	body.woocommerce-cart .wc-block-cart,
	body.woocommerce-checkout .wc-block-checkout {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-cart .wc-block-cart__sidebar,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		position: static !important;
	}
}

/* Mobile */

@media (max-width: 680px) {
	:root {
		--pepx-page-gutter: 16px;
	}

	.pepx-container,
	.site-header .pepx-container,
	.site-footer .pepx-container,
	body.woocommerce-cart .entry-header,
	body.woocommerce-cart .entry-content,
	body.woocommerce-checkout .entry-header,
	body.woocommerce-checkout .entry-content {
		width: var(--pepx-wide-width) !important;
	}

	.home-hero {
		background:
			linear-gradient(
				180deg,
				rgba(255, 255, 255, 1) 0%,
				rgba(255, 255, 255, 0.98) 52%,
				rgba(255, 255, 255, 0.55) 72%,
				rgba(255, 255, 255, 0.12) 100%
			),
			url("https://pepxscientific.com/wp-content/uploads/2026/07/Hero-home-page.png")
				68% center / cover no-repeat;
	}

	.home-hero__visual {
		min-height: 430px;
	}

	body.woocommerce-cart .wc-block-cart,
	body.woocommerce-checkout .wc-block-checkout {
		gap: 20px !important;
	}
}