/*
Theme Name: MDI
Description: Child theme, based on the Generatepress WordPress theme.
Author: Gary Mavis
Author URI: https://www.garymavis.com/
Template: generatepress
Version: 1.0
*/




/* ==========================================================================
   WooCommerce / Product System
   Shared front-end styling
   ========================================================================== */

/* =========================================================
   Shared product grid / card system
========================================================= */

.woocommerce ul.products,
.gm-products-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.gm-products-grid::before,
.gm-products-grid::after {
	display: none !important;
}

.woocommerce ul.products li.product,
.gm-products-grid li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.gm-products-grid li.product a.woocommerce-LoopProduct-link {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
	background: #d9dde3;
	aspect-ratio: 1 / 1;
	text-decoration: none;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link::after,
.gm-products-grid li.product a.woocommerce-LoopProduct-link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(29, 59, 88, 0.03) 35%, rgba(29, 59, 88, 0.95) 100%);
	z-index: 2;
	pointer-events: none;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.gm-products-grid li.product a.woocommerce-LoopProduct-link img {
	width: 100% !important;
	height: 100% !important;
	display: block;
	object-fit: cover;
	margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.gm-products-grid li.product .woocommerce-loop-product__title {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 48px;
	z-index: 3;
	margin: 0 !important;
	padding: 0 !important;
	color: #fff !important;
	font-size: 24px !important;
	line-height: 1.05;
	font-weight: 500;
	text-align: left;
}

.woocommerce ul.products li.product .gm-loop-cta,
.gm-products-grid li.product .gm-loop-cta {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 18px;
	z-index: 3;
	color: #fff;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 600;
	opacity: 1;
	text-align: left;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .gm-inquiry-button-wrap,
.gm-products-grid li.product .price,
.gm-products-grid li.product .star-rating,
.gm-products-grid li.product .gm-inquiry-button-wrap {
	display: none !important;
}


/* =========================================================
   Single product
========================================================= */

.product-category {
	margin: 0 0 10px;
}

.product-category a {
	text-decoration: none;
}

.gm-inquiry-button-wrap {
	margin-top: 25px;
}

.gm-product-specs-section {
	clear: both;
	margin-top: 50px;
}

.gm-product-specs-title {
	font-size: 42px;
	line-height: 1.1;
	margin: 0 0 30px;
	color: #31527D;
}

.gm-product-specs-table {
	border-top: 1px solid #e5e5e5;
}

.gm-product-specs-row {
	display: grid;
	grid-template-columns: 320px 1fr;
	border-bottom: 1px solid #e5e5e5;
}

.gm-product-specs-label,
.gm-product-specs-value {
	padding: 24px 20px;
	background: #f5f5f5;
}

.gm-product-specs-label {
	font-weight: 700;
	border-right: 1px solid #e5e5e5;
}

.gm-product-specs-value p {
	margin: 0 0 12px;
}

.gm-product-specs-value p:last-child,
.gm-product-specs-value ul:last-child,
.gm-product-specs-value ol:last-child {
	margin-bottom: 0;
}

.gm-product-specs-value ul,
.gm-product-specs-value ol {
	margin: 0 0 12px 20px;
}


/* =========================================================
   Related products
========================================================= */

.gm-related-products {
	clear: both;
	margin-top: 70px;
}

.gm-related-products__heading {
	margin: 0 0 30px;
	font-size: 42px;
	line-height: 1;
	font-weight: 500;
	color: #31527D;
}


/* =========================================================
   Filter bar
========================================================= */

.gm-woocommerce-filter-bar {
	margin: 0 0 30px;
}

.gm-woocommerce-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

.gm-filter-field {
	flex: 1 1 260px;
}

.gm-filter-field input,
.gm-filter-field select {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #d8dde3;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	color: #1D3B58;
}

.gm-filter-field input:focus,
.gm-filter-field select:focus {
	outline: none;
	border-color: #1D3B58;
}

.gm-filter-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex: 0 0 auto;
}

.gm-filter-actions button,
.gm-filter-reset,
.gm-mdi-products-more__button {
	height: 52px;
	padding: 0 20px;
	border-radius: 8px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}

.gm-filter-actions button {
	border: none;
	background: #E7673D;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	text-transform: uppercase;
	transition: .25s;
}

.gm-filter-actions button:hover {
	background: #8EB7DF;
	color: #1D3B58;
}

.gm-filter-reset {
	border: 1px solid #d8dde3;
	background: #fff;
	color: #1D3B58;
	text-transform: uppercase;
	font-weight: 600;
	transition: .25s;
}

.gm-filter-reset:hover {
	background: #8EB7DF;
	color: #1D3B58;
	border-color: #8EB7DF;
}


/* =========================================================
   Shortcode button
========================================================= */

.gm-mdi-products-more {
	margin-top: 35px !important;
	text-align: center;
}

.gm-mdi-products-more__button {
	background-color: #E7673D !important;
	color: #fff;
	border: none;
	border-radius: 5px !important;
	text-transform: uppercase;
	font-weight: 600 !important;
	padding: 16px 35px !important;
	transition: .25s;
	height:62px;
}

.gm-mdi-products-more__button:hover {
	background-color: #8EB7DF !important;
	color: #1D3B58 !important;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
	.woocommerce ul.products,
	.gm-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products,
	.gm-products-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
	.gm-products-grid li.product a.woocommerce-LoopProduct-link {
		border-radius: 20px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.gm-products-grid li.product .woocommerce-loop-product__title {
		left: 20px;
		right: 20px;
		bottom: 38px;
		font-size: 22px !important;
	}

	.woocommerce ul.products li.product .gm-loop-cta,
	.gm-products-grid li.product .gm-loop-cta {
		left: 20px;
		right: 20px;
		bottom: 16px;
	}

	.gm-product-specs-row {
		grid-template-columns: 1fr;
	}

	.gm-product-specs-label {
		border-right: none;
		border-bottom: 1px solid #e5e5e5;
		padding-bottom: 12px;
	}

	.gm-product-specs-value {
		padding-top: 12px;
	}

	.gm-product-specs-title,
	.gm-related-products__heading {
		font-size: 32px;
	}

	.gm-woocommerce-filter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.gm-filter-field,
	.gm-filter-actions {
		width: 100%;
	}

	.gm-filter-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.gm-filter-actions button,
	.gm-filter-reset,
	.gm-mdi-products-more__button {
		width: 100%;
	}
}