/*
Theme Name: GymHigh Child
Description: Minimal child theme for Hello Elementor.
Template: hello-elementor
Version: 1.0.2
Text Domain: gymhigh-child
*/

/* Shop design tokens
--------------------------------------------- */
body.post-type-archive-product {
	--gh-shop-accent: #00a4ff;
	--gh-shop-accent-hover: #008edb;
	--gh-shop-text: #171a1f;
	--gh-shop-muted: #68707b;
	--gh-shop-border: #e3e7eb;
	--gh-shop-surface: #ffffff;
	--gh-shop-rating: #c79a2b;
	--gh-shop-focus: rgba(0, 164, 255, 0.28);
	--gh-shop-font: "Roboto", Arial, Helvetica, sans-serif;
}

/* Shop heading and breadcrumb
--------------------------------------------- */
body.post-type-archive-product .woocommerce-products-header__title.page-title {
	color: var(--gh-shop-text);
	font-family: var(--gh-shop-font);
	font-weight: 700;
}

body.post-type-archive-product .woocommerce-breadcrumb {
	color: var(--gh-shop-muted);
	font-family: var(--gh-shop-font);
}

body.post-type-archive-product .woocommerce-breadcrumb a,
body.post-type-archive-product .woocommerce-breadcrumb a:visited {
	color: #454c55;
	text-underline-offset: 0.2em;
}

/* Shop product cards
--------------------------------------------- */
body.post-type-archive-product ul.products li.product {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin-bottom: 2.25rem;
	border: 1px solid var(--gh-shop-border);
	border-radius: 10px;
	background-color: var(--gh-shop-surface);
	box-shadow: 0 4px 14px rgba(15, 23, 32, 0.06);
	font-family: var(--gh-shop-font);
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease;
}

body.post-type-archive-product ul.products li.product:hover {
	border-color: rgba(0, 164, 255, 0.42);
	box-shadow: 0 8px 22px rgba(15, 23, 32, 0.1);
}

body.post-type-archive-product ul.products li.product > a.woocommerce-LoopProduct-link,
body.post-type-archive-product ul.products li.product > a.woocommerce-LoopProduct-link:visited {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	color: var(--gh-shop-text);
	text-decoration: none;
}

body.post-type-archive-product ul.products li.product img {
	height: auto;
	margin-bottom: 0;
	object-fit: contain;
}

/* Shop product content
--------------------------------------------- */
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
	min-height: 4.1em;
	margin: 0;
	padding: 0.875rem 0.75rem 0.375rem;
	color: var(--gh-shop-text);
	font-family: var(--gh-shop-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

body.post-type-archive-product ul.products li.product .star-rating {
	margin: 0 0.75rem 0.5rem;
	color: var(--gh-shop-rating);
}

body.post-type-archive-product ul.products li.product .price {
	margin: 0 0.75rem 0.5rem;
	color: var(--gh-shop-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

body.post-type-archive-product ul.products li.product .price del {
	color: var(--gh-shop-muted);
	opacity: 0.8;
}

body.post-type-archive-product ul.products li.product .price ins {
	color: var(--gh-shop-text);
	text-decoration: none;
}

/* Shop product buttons
--------------------------------------------- */
body.post-type-archive-product ul.products li.product a.button {
	box-sizing: border-box;
	display: inline-flex;
	width: calc(100% - 1.5rem);
	min-width: 0;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	margin: 0.375rem 0.75rem 1rem;
	margin-top: auto;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--gh-shop-accent);
	border-radius: 7px;
	color: #ffffff;
	background-color: var(--gh-shop-accent);
	box-shadow: none;
	font-family: var(--gh-shop-font);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

body.post-type-archive-product ul.products li.product a.button:hover {
	border-color: var(--gh-shop-accent-hover);
	color: #ffffff;
	background-color: var(--gh-shop-accent-hover);
	box-shadow: 0 5px 12px rgba(0, 142, 219, 0.2);
}

body.post-type-archive-product ul.products li.product a.button:focus-visible {
	outline: 2px solid var(--gh-shop-accent);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px var(--gh-shop-focus);
}

/* Shop result count and sorting
--------------------------------------------- */
body.post-type-archive-product .woocommerce-result-count {
	color: var(--gh-shop-muted);
	font-family: var(--gh-shop-font);
	line-height: 44px;
}

body.post-type-archive-product .woocommerce-ordering {
	max-width: 100%;
}

body.post-type-archive-product .woocommerce-ordering select.orderby {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 44px;
	padding: 0.625rem 2.25rem 0.625rem 0.75rem;
	border: 1px solid #cfd5db;
	border-radius: 7px;
	color: var(--gh-shop-text);
	background-color: #ffffff;
	font-family: var(--gh-shop-font);
	font-size: 0.875rem;
	line-height: 1.25;
}

body.post-type-archive-product .woocommerce-ordering select.orderby:hover {
	border-color: #aeb7c0;
}

body.post-type-archive-product .woocommerce-ordering select.orderby:focus-visible {
	border-color: var(--gh-shop-accent);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 4px var(--gh-shop-focus);
}

/* Shop mobile adjustments
--------------------------------------------- */
@media (max-width: 767px) {
	body.post-type-archive-product .woocommerce-result-count,
	body.post-type-archive-product .woocommerce-ordering {
		float: none;
		width: calc(100% - 20px);
		margin-right: 10px;
		margin-left: 10px;
	}

	body.post-type-archive-product .woocommerce-ordering select.orderby {
		width: 100%;
	}

	body.post-type-archive-product ul.products li.product {
		margin-bottom: 1.5rem;
		border-radius: 8px;
		box-shadow: 0 3px 10px rgba(15, 23, 32, 0.05);
	}

	body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
		min-height: 5.4em;
		padding: 0.75rem 0.5rem 0.375rem;
		font-size: 0.9375rem;
	}

	body.post-type-archive-product ul.products li.product .star-rating,
	body.post-type-archive-product ul.products li.product .price {
		margin-right: 0.5rem;
		margin-left: 0.5rem;
	}

	body.post-type-archive-product ul.products li.product a.button {
		width: calc(100% - 1rem);
		margin-right: 0.5rem;
		margin-bottom: 0.75rem;
		margin-left: 0.5rem;
		padding-right: 0.5rem;
		padding-left: 0.5rem;
		font-size: 0.8125rem;
	}
}
