/**
 * Unimax WooCommerce shop / cart / checkout — match site header + pageheader banner.
 */

/* —— Do NOT touch Divi Theme Builder header containers —— */
body.unimax-woo-page .et-l--header .container,
body.unimax-woo-page .et-l--header .et_pb_row {
	float: none;
	max-width: none;
	width: auto;
	padding-left: inherit;
	padding-right: inherit;
}

/* Keep utility buttons inline (same as homepage). */
body.unimax-woo-page .et_pb_column_1_tb_header.pa-inline-buttons {
	align-items: center !important;
	display: flex !important;
	flex-direction: row-reverse !important;
	flex-wrap: nowrap !important;
	gap: 0.5rem;
	height: auto !important;
	min-height: 0 !important;
}

body.unimax-woo-page .pa-inline-buttons .et_pb_button_module_wrapper {
	clear: none !important;
	display: block !important;
	float: none !important;
	margin: 0 !important;
	width: auto !important;
}

body.unimax-woo-page .et_pb_row_0_tb_header {
	height: auto !important;
	min-height: 0 !important;
	padding-bottom: 8px !important;
	padding-top: 8px !important;
}

/* Remove “send message” on shop / cart / checkout. */
body.unimax-woo-page .et_pb_button_2_tb_header,
body.unimax-woo-page .et_pb_button_2_tb_header_wrapper {
	display: none !important;
}

/* —— Layout: main content only (no leftover sidebar gutter) —— */
body.unimax-woo-page #sidebar,
body.unimax-woo-page #sidebar-right,
body.unimax-woo-page .et_pb_widget_area,
body.unimax-woo-page aside.sidebar,
body.unimax-woo-page .widget_recent_entries,
body.unimax-woo-page .widget_recent_comments {
	display: none !important;
}

body.unimax-woo-page #main-content .container::before {
	content: none !important;
	display: none !important;
}

body.unimax-woo-page #main-content {
	background: #fff;
	padding-top: 0 !important;
}

body.unimax-woo-page #main-content > .container,
body.unimax-woo-page #main-content .container {
	float: none !important;
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.unimax-woo-page #left-area,
body.unimax-woo-page #content-area {
	float: none !important;
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* —— Pageheader banner (same language as Hardware / PAYG) —— */
.unimax-woo-banner {
	align-items: center;
	background-color: #0a4f6e;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	box-sizing: border-box;
	display: flex;
	height: 280px;
	justify-content: flex-start;
	margin: 0;
	max-height: 350px;
	padding: 7.5rem 8% 2rem;
	position: relative;
	width: 100%;
}

@media (min-width: 981px) {
	.unimax-woo-banner {
		height: 350px;
		padding: 5.5rem 12% 2.5rem;
	}
}

.unimax-woo-banner::before {
	background: linear-gradient(90deg, rgba(10, 79, 110, 0.72) 0%, rgba(10, 79, 110, 0.25) 55%, rgba(10, 79, 110, 0.1) 100%);
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.unimax-woo-banner__inner {
	position: relative;
	z-index: 1;
}

.unimax-woo-banner__title {
	color: #fff;
	font-family: Poppins, "Open Sans", sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.15;
	margin: 0 0 0.35rem;
	text-transform: uppercase;
}

.unimax-woo-banner__sub {
	color: rgba(255, 255, 255, 0.9);
	font-family: Poppins, "Open Sans", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	margin: 0;
}

/* Hide duplicate theme H1 — banner owns the title. */
body.unimax-woo-page.woocommerce-shop .entry-title,
body.unimax-woo-page.woocommerce-cart .entry-title,
body.unimax-woo-page.woocommerce-checkout .entry-title,
body.unimax-woo-page.post-type-archive-product .entry-title,
body.unimax-woo-page.woocommerce-shop h1.page-title,
body.unimax-woo-page .woocommerce-products-header__title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Content shell under banner */
body.unimax-woo-page .woocommerce,
body.unimax-woo-page .woocommerce-notices-wrapper,
body.unimax-woo-page .woocommerce-breadcrumb,
body.unimax-woo-page ul.products,
body.unimax-woo-page .woocommerce-result-count,
body.unimax-woo-page .woocommerce-ordering,
body.unimax-woo-page .woocommerce-pagination,
body.unimax-woo-page .wp-block-woocommerce-cart,
body.unimax-woo-page .wp-block-woocommerce-checkout,
body.unimax-woo-page div.product {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
	padding-left: 8%;
	padding-right: 8%;
	width: 100%;
}

@media (min-width: 981px) {
	body.unimax-woo-page .woocommerce,
	body.unimax-woo-page .woocommerce-notices-wrapper,
	body.unimax-woo-page .woocommerce-breadcrumb,
	body.unimax-woo-page ul.products,
	body.unimax-woo-page .woocommerce-result-count,
	body.unimax-woo-page .woocommerce-ordering,
	body.unimax-woo-page .woocommerce-pagination,
	body.unimax-woo-page .wp-block-woocommerce-cart,
	body.unimax-woo-page .wp-block-woocommerce-checkout,
	body.unimax-woo-page div.product {
		padding-left: 0;
		padding-right: 0;
	}

	body.unimax-woo-page #left-area > .woocommerce,
	body.unimax-woo-page #left-area > .woocommerce-notices-wrapper,
	body.unimax-woo-page .entry-content > .woocommerce,
	body.unimax-woo-page .entry-content > .wp-block-woocommerce-cart,
	body.unimax-woo-page .entry-content > .wp-block-woocommerce-checkout,
	body.unimax-woo-page .entry-content > .unimax-woo-banner + * {
		padding-left: 0;
		padding-right: 0;
	}

	body.unimax-woo-page #left-area,
	body.unimax-woo-page .entry-content {
		padding-left: 12% !important;
		padding-right: 12% !important;
		box-sizing: border-box;
	}

	/* Banner stays full-bleed; reverse horizontal padding from parent. */
	body.unimax-woo-page #left-area > .unimax-woo-banner,
	body.unimax-woo-page .entry-content > .unimax-woo-banner,
	body.unimax-woo-page .unimax-woo-banner {
		margin-left: -12%;
		margin-right: -12%;
		width: auto;
		max-width: none;
		padding-left: 12%;
		padding-right: 12%;
	}
}

body.unimax-woo-page .woocommerce-breadcrumb {
	color: #888;
	font-size: 0.8125rem;
	margin: 1.25rem auto 0.75rem;
	text-transform: none;
}

body.unimax-woo-page .woocommerce-breadcrumb a {
	color: #666;
}

body.unimax-woo-page .woocommerce-result-count {
	color: #666;
	font-size: 0.875rem;
	margin: 0;
}

body.unimax-woo-page .woocommerce-ordering {
	margin: 0;
}

body.unimax-woo-page .woocommerce-ordering select {
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	font-size: 0.875rem;
	padding: 0.45rem 2rem 0.45rem 0.65rem;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.woocommerce-shop .woocommerce-result-count {
	float: left !important;
	line-height: 2.2;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.woocommerce-shop .woocommerce-ordering {
	float: right !important;
}

/* —— Product grid —— */
body.unimax-woo-page ul.products {
	clear: both;
	display: grid !important;
	gap: 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 1.5rem auto 2rem !important;
	padding: 0 !important;
}

body.unimax-woo-page ul.products::before,
body.unimax-woo-page ul.products::after {
	display: none !important;
	content: none !important;
}

body.unimax-woo-page ul.products li.product {
	background: #fff;
	border: 1px solid #eee;
	box-shadow: none;
	float: none !important;
	margin: 0 !important;
	padding: 1rem 1rem 1.25rem !important;
	position: relative;
	text-align: left;
	width: 100% !important;
}

body.unimax-woo-page ul.products li.product a img,
body.unimax-woo-page ul.products li.product img.wp-post-image,
body.unimax-woo-page ul.products li.product .attachment-woocommerce_thumbnail {
	background: #fafafa;
	display: block;
	height: 220px !important;
	margin: 0 0 1rem !important;
	object-fit: contain;
	object-position: center;
	padding: 0.75rem;
	box-sizing: border-box;
	width: 100% !important;
}

body.unimax-woo-page ul.products li.product .woocommerce-loop-product__title,
body.unimax-woo-page ul.products li.product h2,
body.unimax-woo-page ul.products li.product h3 {
	color: #231f20;
	font-family: Poppins, "Open Sans", sans-serif;
	font-size: 0.95rem !important;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0 0 0.5rem;
	min-height: 2.7em;
	padding: 0;
	text-transform: none !important;
}

body.unimax-woo-page ul.products li.product .price {
	color: #231f20;
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.85rem;
}

body.unimax-woo-page ul.products li.product .button,
body.unimax-woo-page ul.products li.product a.button,
body.unimax-woo-page ul.products li.product .add_to_cart_button {
	background: #ed1c24 !important;
	border: 0 !important;
	border-radius: 2px !important;
	color: #fff !important;
	display: inline-block;
	font-size: 0.8125rem !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	margin: 0;
	padding: 0.7rem 1rem !important;
	text-transform: none !important;
}

body.unimax-woo-page ul.products li.product .button:hover,
body.unimax-woo-page ul.products li.product a.button:hover {
	background: #c4161d !important;
}

body.unimax-woo-page ul.products li.product .star-rating {
	display: none;
}

body.unimax-woo-page .woocommerce-pagination {
	margin: 0 auto 2rem;
	text-align: center;
}

@media (max-width: 980px) {
	body.unimax-woo-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	body.unimax-woo-page ul.products li.product a img,
	body.unimax-woo-page ul.products li.product img.wp-post-image {
		height: 180px !important;
	}

	body.unimax-woo-page #left-area,
	body.unimax-woo-page .entry-content {
		padding-left: 8% !important;
		padding-right: 8% !important;
	}

	body.unimax-woo-page #left-area > .unimax-woo-banner,
	body.unimax-woo-page .entry-content > .unimax-woo-banner,
	body.unimax-woo-page .unimax-woo-banner {
		margin-left: -8%;
		margin-right: -8%;
		padding-left: 8%;
		padding-right: 8%;
	}
}

@media (max-width: 600px) {
	body.unimax-woo-page ul.products {
		grid-template-columns: 1fr;
	}

	body.post-type-archive-product .woocommerce-result-count,
	body.post-type-archive-product .woocommerce-ordering,
	body.woocommerce-shop .woocommerce-result-count,
	body.woocommerce-shop .woocommerce-ordering {
		display: block;
		float: none !important;
		width: 100%;
	}
}

/* —— Single product —— */
body.single-product.unimax-woo-page div.product .product_title {
	font-family: Poppins, "Open Sans", sans-serif;
	font-size: 1.75rem;
	text-transform: none !important;
}

body.single-product.unimax-woo-page div.product .single_add_to_cart_button {
	background: #ed1c24 !important;
	border-radius: 2px !important;
}

/* —— Checkout order visual (above contact) —— */
.unimax-checkout-visual {
	margin: 1.25rem 0 1.5rem;
	width: 100%;
}

.unimax-checkout-visual--banner img {
	display: block;
	height: 160px;
	object-fit: cover;
	width: 100%;
}

.unimax-checkout-visual--products {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.unimax-checkout-visual__item {
	background: #f7f7f8;
	margin: 0;
	max-width: 180px;
	padding: 0.75rem;
	text-align: center;
}

.unimax-checkout-visual__item img {
	display: block;
	height: auto;
	margin: 0 auto 0.5rem;
	max-width: 100%;
}

.unimax-checkout-visual__item figcaption {
	color: #444;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.3;
}
