:root {
	--mh-red: #e30613;
	--mh-red-dark: #b80912;
	--mh-ink: #172033;
	--mh-muted: #667085;
	--mh-line: #e7eaf0;
	--mh-soft: #f7f8fa;
	--mh-radius: 16px;
	--mh-shadow: 0 12px 34px rgba(23, 32, 51, 0.09);
}

/* Shop frame and toolbar */
#shop-display-list,
#shop-display-grid {
	display: none;
}

.woocommerce.archive .shop-products,
.woocommerce-page.archive .shop-products {
	padding-bottom: 48px;
}

.woocommerce.archive .shop-toolbar,
.woocommerce-page.archive .shop-toolbar {
	padding: 12px 14px;
	border: 1px solid var(--mh-line);
	border-radius: 12px;
	background: #fff;
}

.woocommerce.archive .widget-area-side,
.woocommerce-page.archive .widget-area-side {
	border-radius: 14px;
}

/* Product card */
.products-wrapper .product,
.woocommerce .products .product {
	display: flex;
	padding-right: 6px;
	padding-left: 6px;
	margin-bottom: 22px;
}

.products-wrapper .product-inner,
.woocommerce .products .product-inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 11px;
	border: 1px solid var(--mh-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.products-wrapper .product-inner::before,
.products-wrapper .product-inner::after,
.woocommerce .products .product-inner::before,
.woocommerce .products .product-inner::after {
	display: none !important;
}

.products-wrapper .product-inner:hover,
.woocommerce .products .product-inner:hover {
	transform: translateY(-4px);
	border-color: #d9dde6;
	box-shadow: var(--mh-shadow);
}

.product-inner .product-image {
	position: relative;
	min-height: 0;
	border-radius: 10px;
	background: transparent;
}

.product-inner .product-image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 4px;
	border-radius: inherit;
}

.product-inner .product-image > a > img,
.product-inner .product-image img.wp-post-image {
	width: 100% !important;
	height: 100% !important;
	max-height: none;
	object-fit: contain !important;
}

.product-inner .product-image:hover img {
	transform: scale(1.035);
}

.product-inner .product-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 15px 3px 3px;
}

.product-inner .product-category {
	margin-bottom: 7px;
}

.product-inner .product-category > a {
	color: var(--mh-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .035em;
}

.product-inner .product-title > * {
	display: -webkit-box !important;
	height: 88px !important;
	min-height: 88px;
	max-height: 88px;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.45;
	overflow: hidden !important;
	text-transform: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.product-inner .product-title > * a {
	color: var(--mh-ink);
}

.product-inner .product-price {
	margin: auto 0 13px;
}

.product-inner .price {
	flex-wrap: wrap;
	gap: 4px 7px;
	color: var(--mh-ink);
	font-size: 17px;
	font-weight: 750;
	line-height: 1.25;
}

.product-inner .price del {
	color: #98a2b3;
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
}

.product-inner .price ins {
	color: var(--mh-red);
}

.product-inner .product-content .product-cart {
	position: static;
	margin-top: auto;
	opacity: 1;
	transform: none;
}

.product-inner .product-content .product-cart a,
.product-layout-2 .product-inner .action-links .product-cart a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mh-red);
	border-radius: 999px;
	background: var(--mh-red);
	color: #fff;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Elementor/Slick product carousels use the same card proportions as catalog. */
.products-wrapper.slick-slider .slick-track {
	display: flex;
}

.products-wrapper.slick-slider .slick-slide {
	height: auto;
}

/* Elementor carousels need inner gutters because Slick sets slide widths inline. */
.elementor-widget-rt_tab_products .products-wrapper.slick-slider .slick-slide,
.elementor-widget-rt_products .products-wrapper.slick-slider .slick-slide,
.elementor-widget-rt_special_products .products-wrapper.slick-slider .slick-slide {
	box-sizing: border-box !important;
	padding-right: 7px !important;
	padding-left: 7px !important;
}

.elementor-widget-rt_tab_products .products-wrapper.slick-slider .slick-slide .product,
.elementor-widget-rt_products .products-wrapper.slick-slider .slick-slide .product,
.elementor-widget-rt_special_products .products-wrapper.slick-slider .slick-slide .product {
	padding-right: 0;
	padding-left: 0;
}

.product-inner .product-content .product-cart a::before {
	display: none;
}

.product-inner .product-content .product-cart a:hover,
.product-inner .product-content .product-cart a:focus-visible {
	border-color: var(--mh-red-dark);
	background: var(--mh-red-dark);
	color: #fff;
}

/* Badge stack */
.product-inner .product-labels,
.woocommerce-product-gallery .product-labels {
	position: absolute;
	top: 11px;
	left: 11px;
	z-index: 8;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

.product-inner .product-labels .product-label,
.woocommerce-product-gallery .product-labels .product-label {
	position: static;
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
	min-height: 27px;
	padding: 5px 9px;
	border-radius: 8px;
	opacity: 1 !important;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .015em;
	text-transform: uppercase;
}

.product-inner:hover .product-image .product-label {
	opacity: 1;
}

.mh-badge-sale {
	background: var(--mh-red) !important;
}

.mh-badge-out-of-stock {
	background: #344054 !important;
}

/* Customer Reviews for WooCommerce */
.cr-review-form-submit,
.cr-nosummary-add {
	background-color: var(--mh-red) !important;
}

.cr-all-reviews-shortcode ol li .comment_container .iv-comment-product-img {
	width: auto;
}

/* Promotion notice */
.aa_messages_layout1 {
	margin: 0 auto 26px;
	padding: 13px max(24px, calc((100vw - 1160px) / 2));
	border: 0;
	background: #fff1f2 !important;
	color: #9f1239 !important;
	box-shadow: inset 0 -1px #fecdd3;
}

.aa_messages_layout1 p {
	margin: 0;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
}

.aa_messages_layout1,
.aa_messages_layout1 * {
	font-size: 14px !important;
	line-height: 1.45 !important;
}

/* Replaced by the eligibility-aware child-theme banner. */
.single-product .aa_messages_layout1 {
	display: none !important;
}

.footer-bottom a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.45);
	text-underline-offset: 3px;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
	color: var(--mh-red, #e30613);
	text-decoration-color: currentColor;
}

/* YITH already outputs its own SVG heart. The old theme icon would duplicate it. */
.single-product .summary .yith-wcwl-add-to-wishlist a::before,
.single-product .summary a.single_add_to_wishlist::before,
.product-inner .action-links a.single_add_to_wishlist::before,
.product-inner .action-links a.add_to_wishlist::before,
.products-wrapper .action-links a.add_to_wishlist::before,
.woocommerce .products .action-links a.add_to_wishlist::before {
	display: none !important;
	content: none !important;
}

/* Center YITH's SVG optically inside the theme's circular card action. */
.product-inner .action-links li.add-to-wishlist,
.product-inner .action-links li.add-to-wishlist .yith-wcwl-add-to-wishlist,
.product-inner .action-links li.add-to-wishlist .yith-wcwl-add-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.product-inner .action-links li.add-to-wishlist a.single_add_to_wishlist {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	line-height: 1 !important;
}

.product-inner .action-links li.add-to-wishlist a.single_add_to_wishlist svg {
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
}

.product-inner .action-links li.add-to-wishlist a.single_add_to_wishlist span {
	display: none !important;
}

@media (hover: none), (pointer: coarse) {
	.product-inner:hover,
	.product-inner .product-image:hover img {
		transform: none !important;
	}

	.product-inner .action-links,
	.product-inner .product-quickview {
		display: none !important;
	}

	.product-inner .product-image > a:hover .product_thumbnail_hover {
		opacity: 0 !important;
	}

	.product-inner .product-image > a {
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}
}

/* Single product purchase area */
.single-product div.product .summary .product_title {
	margin-bottom: 10px;
	color: var(--mh-ink);
	font-size: clamp(25px, 2.5vw, 34px);
	font-weight: 750;
	line-height: 1.25;
	text-transform: none;
}

.single-product div.product .summary .price {
	margin-bottom: 20px;
	font-size: 25px;
	font-weight: 800;
}

.single-product div.product .summary .price ins {
	color: var(--mh-red);
}

.single-product div.product .summary .woocommerce-product-details__short-description {
	color: #475467;
	font-size: 15px;
	line-height: 1.65;
}

.single-product .woocommerce-product-gallery .image-wrapper {
	border: 1px solid var(--mh-line);
	border-radius: 18px;
	background: var(--mh-soft);
	overflow: hidden;
}

/* Keep the desktop gallery inside the first viewport without cropping products. */
@media (min-width: 992px) {
	.single-product .woocommerce-product-gallery .image-wrapper,
	.single-product .woocommerce-product-gallery .product-images,
	.single-product .woocommerce-product-gallery .product-images .slick-list,
	.single-product .woocommerce-product-gallery .product-images .slick-track,
	.single-product .woocommerce-product-gallery .product-image-item,
	.single-product .woocommerce-product-gallery .product-image-item > a {
		height: clamp(400px, 40vw, 500px) !important;
		min-height: 0 !important;
	}

	.single-product .woocommerce-product-gallery .product-image-item img:not(.zoomImg) {
		width: 100% !important;
		height: 100% !important;
		max-height: 500px !important;
		object-fit: contain !important;
	}
}

.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 20px;
	border-top: 1px solid var(--mh-line);
}

.single-product div.product form.cart .button {
	min-height: 48px;
	padding: 0 24px;
	border-radius: 10px;
	background: var(--mh-red);
	font-weight: 750;
}

.single-product div.product form.cart .button:hover,
.single-product div.product form.cart .button:focus-visible {
	background: var(--mh-red-dark);
}

@media (max-width: 767px) {
	.products-wrapper .product,
	.woocommerce .products .product {
		padding-right: 4px;
		padding-left: 4px;
		margin-bottom: 12px;
	}

	.products-wrapper .product-inner,
	.woocommerce .products .product-inner {
		padding: 8px;
		border-radius: 12px;
	}

	.products-wrapper .product-inner:hover,
	.woocommerce .products .product-inner:hover {
		transform: none;
	}

	.product-inner .product-image > a {
		padding: 6px;
	}

	.product-inner .product-content {
		padding: 11px 1px 1px;
	}

	.product-inner .product-title > * {
		display: -webkit-box !important;
		height: 91px !important;
		min-height: 91px;
		max-height: 91px;
		font-size: 13px;
		line-height: 1.4;
		overflow: hidden !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 5;
	}

	.product-inner .price {
		font-size: 15px;
	}

	.product-inner .product-content .product-cart a {
		height: 40px;
		padding: 0 8px;
		font-size: 10px;
	}

	.product-inner .product-labels,
	.woocommerce-product-gallery .product-labels {
		top: 7px;
		left: 7px;
	}

	.product-inner .product-labels .product-label,
	.woocommerce-product-gallery .product-labels .product-label {
		min-height: 24px;
		padding: 4px 7px;
		border-radius: 6px;
		font-size: 9px;
	}

	.aa_messages_layout1 {
		margin-bottom: 18px;
		padding: 11px 15px;
	}

	.aa_messages_layout1,
	.aa_messages_layout1 * {
		font-size: 13px !important;
	}

	.single-product div.product .summary .product_title {
		font-size: 24px;
	}
}
