/**
 * Mirrihue — Catálogo WooCommerce
 */


/* =========================================================
   GENERATEPRESS — SHOP LAYOUT RESET
   ========================================================= */

/*
 * WooCommerce + GeneratePress puede aplicar el layout
 * de columnas mediante .site-content y .content-area.
 *
 * Normalizamos todas las vistas del catálogo:
 * Tienda + categorías de producto.
 */

body.post-type-archive-product #page,
body.tax-product_cat #page,
body.tax-product_tag #page {
	width: 100%;
	max-width: none;
}

body.post-type-archive-product #content,
body.tax-product_cat #content,
body.tax-product_tag #content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
	display: block !important;

	width: 100% !important;
	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;
}

body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.post-type-archive-product .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area {
	float: none !important;

	width: 100% !important;
	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;
}

body.post-type-archive-product #right-sidebar,
body.post-type-archive-product #left-sidebar,
body.tax-product_cat #right-sidebar,
body.tax-product_cat #left-sidebar,
body.tax-product_tag #right-sidebar,
body.tax-product_tag #left-sidebar {
	display: none !important;
}


/* =========================================================
   HERO
   ========================================================= */

.mh-shop-hero {
	position: relative;
	min-height: 290px;

	display: flex;
	align-items: flex-end;

	color: var(--mh-color-white);
	background:
		linear-gradient(
			90deg,
			rgba(0, 0, 0, 0.94) 0%,
			rgba(0, 0, 0, 0.80) 46%,
			rgba(0, 0, 0, 0.34) 100%
		),
		url("../img/shop-hero.jpg")
		center 55% / cover no-repeat,
		var(--mh-color-black);
}

.mh-shop-hero__overlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.10),
			rgba(0, 0, 0, 0.34)
		);
}

.mh-shop-hero__container {
	position: relative;
	z-index: 2;

	padding-block:
		clamp(88px, 9vw, 130px)
		48px;
}

.mh-shop-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;

	margin-bottom: 16px;

	color: rgba(255, 255, 255, 0.65);

	font-size: var(--mh-text-label);
	font-weight: 600;
}

.mh-shop-hero__breadcrumb a {
	color: var(--mh-color-primary);
}

.mh-shop-hero__breadcrumb a:hover {
	color: var(--mh-color-white);
}

.mh-shop-hero__title {
	max-width: 760px;
	margin-bottom: 12px;

	color: var(--mh-color-white);

	font-size: var(--mh-text-page-title);
	line-height: 1;
	letter-spacing: -0.035em;

	text-transform: uppercase;
}

.mh-shop-hero__description {
	max-width: 620px;
	margin: 0;

	color: rgba(255, 255, 255, 0.82);

	font-size: var(--mh-text-body-lg);
	line-height: 1.55;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.mh-shop {
	background: var(--mh-color-white);
}

.mh-shop > .mh-container {
	padding-block: 56px var(--mh-section-space);
}

.mh-shop__layout {
	display: grid;
	grid-template-columns:
		minmax(220px, 245px)
		minmax(0, 1fr);

	align-items: start;

	gap: 30px;

	margin-bottom: 0;
}

.mh-shop__sidebar {
	position: sticky;
	top: 105px;
}

.mh-shop__content {
	min-width: 0;
}


/* =========================================================
   SIDEBAR / FILTER
   ========================================================= */

.mh-shop-filter {
	background: #f7f7f7;

	border: 1px solid var(--mh-color-border);
	border-radius: var(--mh-radius-md);

	overflow: hidden;
}

.mh-shop-filter__section {
	padding: 22px 18px;
}

.mh-shop-filter__section + .mh-shop-filter__section {
	border-top: 1px solid var(--mh-color-border);
}

.mh-shop-filter__title {
	margin-bottom: 14px;

	font-size: var(--mh-text-ui);
	font-weight: 700;

	letter-spacing: 0.025em;
	text-transform: uppercase;
}


/* Search */

.mh-shop-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;

	background: var(--mh-color-white);

	border: 1px solid var(--mh-color-border);
	border-radius: var(--mh-radius-sm);

	overflow: hidden;
}

.mh-shop-search input {
	min-width: 0;
	height: var(--mh-control-height-sm);

	padding: 0 var(--mh-control-padding-inline);

	background: transparent;
	border: 0;

	font: inherit;
	font-size: var(--mh-text-ui);
}

.mh-shop-search input:focus {
	outline: none;
}

.mh-shop-search:focus-within {
	border-color: var(--mh-color-primary);
	box-shadow: var(--mh-focus-ring);
}

.mh-shop-search button {
	width: var(--mh-control-height-sm);
	height: var(--mh-control-height-sm);

	padding: 0;

	color: var(--mh-color-black);
	background: transparent;

	border: 0;

	font-size: 1rem;

	cursor: pointer;
}


/* Categories */

.mh-shop-categories {
	display: grid;
	gap: 2px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.mh-shop-categories a {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 12px;

	padding: 9px 8px;

	color: var(--mh-color-text);

	border-radius: var(--mh-radius-sm);

	font-size: var(--mh-text-body-sm);
	font-weight: 600;
}

.mh-shop-categories a:hover,
.mh-shop-categories .is-active a {
	color: var(--mh-color-primary);
	background: rgba(215, 25, 32, 0.06);
}

.mh-shop-categories small {
	color: var(--mh-color-muted);

	font-size: var(--mh-text-label);
	font-weight: 600;
}


/* Sidebar quote */

.mh-shop-filter__quote {
	padding: 24px 18px;

	color: var(--mh-color-white);
	background:
		linear-gradient(
			145deg,
			#171717,
			#0d0d0d
		);
}

.mh-shop-filter__quote-title {
	margin-bottom: 10px;

	color: var(--mh-color-white);

	font-size: var(--mh-text-card-title);
	font-weight: 700;
	line-height: 1.2;
}

.mh-shop-filter__quote-title span {
	display: block;
	color: var(--mh-color-primary);
}

.mh-shop-filter__quote > p:not(.mh-shop-filter__quote-title) {
	margin-bottom: 20px;

	color: rgba(255, 255, 255, 0.66);

	font-size: var(--mh-text-ui);
	line-height: 1.55;
}

.mh-shop-filter__quote .mh-button {
	width: 100%;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.mh-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 24px;

	min-height: 44px;
	margin-bottom: 22px;
}

.mh-shop__result-count .woocommerce-result-count {
	margin: 0;

	color: var(--mh-color-muted);

	font-size: var(--mh-text-ui);
}

.mh-shop__ordering .woocommerce-ordering {
	margin: 0;
}

.mh-shop__ordering select {
	min-height: var(--mh-control-height-sm);

	padding: 0 38px 0 var(--mh-control-padding-inline);

	color: var(--mh-color-text);
	background: var(--mh-color-white);

	border: 1px solid var(--mh-color-border);
	border-radius: var(--mh-radius-sm);

	font-family: inherit;
	font-size: var(--mh-text-ui);
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.mh-shop__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));

	gap: var(--mh-card-gap);
}


/* Reutilizamos el lenguaje visual de Productos destacados */

.mh-shop .mh-product-card {
	min-width: 0;

	background: var(--mh-color-white);

	border: 1px solid var(--mh-color-border);
	border-radius: var(--mh-radius-md);

	overflow: hidden;

	transition:
		transform 250ms ease,
		box-shadow 250ms ease,
		border-color 250ms ease;
}

.mh-shop .mh-product-card:hover {
	transform: translateY(-5px);

	border-color: rgba(215, 25, 32, 0.25);

	box-shadow: var(--mh-shadow-card-hover);
}

.mh-shop .mh-product-card__link {
	display: flex;
	flex-direction: column;

	height: 100%;

	color: inherit;
	text-decoration: none;
}

.mh-shop .mh-product-card__media {
	position: relative;

	aspect-ratio: 4 / 3;

	overflow: hidden;

	background: #f2f2f2;
}

.mh-shop .mh-product-card__image {
	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 400ms ease;
}

.mh-shop .mh-product-card:hover .mh-product-card__image {
	transform: scale(1.035);
}

.mh-shop .mh-product-card__placeholder {
	width: 100%;
	height: 100%;

	background:
		linear-gradient(
			135deg,
			#eeeeee,
			#dddddd
		);
}

.mh-shop .mh-product-card__view {
	position: absolute;

	top: 14px;
	right: 14px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 38px;
	height: 38px;

	color: var(--mh-color-white);
	background: rgba(13, 13, 13, 0.72);

	border-radius: 50%;

	opacity: 0;
	transform: translateY(6px);

	transition:
		opacity 250ms ease,
		transform 250ms ease,
		background-color 250ms ease;
}

.mh-shop .mh-product-card:hover .mh-product-card__view {
	opacity: 1;
	transform: translateY(0);

	background: var(--mh-color-primary);
}

.mh-shop .mh-product-card__body {
	display: flex;
	flex-direction: column;

	flex: 1;

	padding: var(--mh-card-padding);
}

.mh-shop .mh-product-card__category {
	margin-bottom: 8px;

	color: var(--mh-color-primary);

	font-size: var(--mh-text-label);
	font-weight: 700;

	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.mh-shop .mh-product-card__title {
	margin-bottom: 9px;

	color: var(--mh-color-black);

	font-size: var(--mh-text-card-title);
	font-weight: 700;

	line-height: 1.25;
}

.mh-shop .mh-product-card__description {
	margin-bottom: 18px;

	color: var(--mh-color-muted);

	font-size: var(--mh-text-body-sm);
	line-height: 1.55;
}

.mh-shop .mh-product-card__cta {
	display: inline-flex;
	align-items: center;

	gap: 8px;

	margin-top: auto;

	color: var(--mh-color-primary);

	font-size: var(--mh-text-ui);
	font-weight: 700;

	text-transform: uppercase;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.mh-shop__pagination {
	display: flex;
	justify-content: center;

	margin-top: 34px;
}

.mh-shop__pagination .woocommerce-pagination ul.page-numbers {
	display: flex;
	align-items: center;

	gap: 6px;

	margin: 0;
	padding: 0;

	border: 0;
}

.mh-shop__pagination .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.mh-shop__pagination .page-numbers a,
.mh-shop__pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 36px;
	height: 36px;

	padding: 0 10px;

	color: var(--mh-color-text);
	background: var(--mh-color-white);

	border: 1px solid var(--mh-color-border);
	border-radius: var(--mh-radius-sm);

	font-size: var(--mh-text-ui);
	font-weight: 700;
}

.mh-shop__pagination .page-numbers .current,
.mh-shop__pagination .page-numbers a:hover {
	color: var(--mh-color-white);
	background: var(--mh-color-primary);
	border-color: var(--mh-color-primary);
}


/* =========================================================
   EMPTY
   ========================================================= */

.mh-shop__empty {
	padding: 48px;

	text-align: center;

	background: var(--mh-color-surface);
	border-radius: var(--mh-radius-md);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

	.mh-shop__layout {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 24px;
	}

	.mh-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}



}


@media (max-width: 768px) {

	.mh-shop-hero {
		min-height: 250px;
	}

	.mh-shop-hero__container {
		padding-block: 94px 38px;
	}

	.mh-shop-hero__description {
		font-size: var(--mh-text-body);
	}

	.mh-shop > .mh-container {
	padding-block: 32px var(--mh-section-space-mobile);
}

	.mh-shop__layout {
		grid-template-columns: 1fr;
	}

	.mh-shop__sidebar {
		position: static;
	}

	.mh-shop__toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.mh-shop__ordering,
	.mh-shop__ordering .woocommerce-ordering,
	.mh-shop__ordering select {
		width: 100%;
	}

	.mh-shop-filter {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.mh-shop-filter__section + .mh-shop-filter__section {
		border-top: 0;
		border-left: 1px solid var(--mh-color-border);
	}

	.mh-shop-filter__quote {
		grid-column: 1 / -1;
	}




}


@media (max-width: 520px) {

	.mh-shop-filter {
		display: block;
	}

	.mh-shop-filter__section + .mh-shop-filter__section {
		border-left: 0;
		border-top: 1px solid var(--mh-color-border);
	}

	.mh-shop__grid {
		grid-template-columns: 1fr;
	}



	.mh-shop-quote__benefits > div {
		padding: 10px 0;
	}

	.mh-shop-quote__benefits > div + div {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
	}

}
