/**
 * MercadHol Combos — estilos de front.
 * Pensado para Woodmart: hereda tipografías y colores del tema, solo aporta
 * la estructura que el tema no trae.
 */

/* --------------------------------------------------------------------- */
/* Ahorro y lista de componentes                                          */
/* --------------------------------------------------------------------- */

.mhc-savings {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 10px;
	border-radius: 3px;
	background: rgba( 0, 0, 0, 0.05 );
	font-weight: 600;
	font-size: 0.95em;
}

.mhc-component-list {
	margin: 14px 0 18px;
	color: #0a58ca;
	font-size: 1.12em;
	line-height: 1.75;
}

.mhc-component-list strong,
.mhc-component-list .mhc-qty {
	color: inherit;
	font-weight: 700;
}

.mhc-component-list .mhc-dimmed {
	opacity: 0.45;
	text-decoration: line-through;
}

.mhc-component-list .mhc-total-units {
	display: inline-block;
	margin-top: 6px;
}

/* --------------------------------------------------------------------- */
/* Carrusel                                                               */
/*                                                                        */
/* Woodmart aplica estilos fuertes a cualquier <button>, y su hoja se     */
/* carga después de la nuestra. De ahí la especificidad y los !important  */
/* en las propiedades de maquetación: sin ellos el tema convierte las     */
/* flechas y los puntos en botones a todo lo ancho.                       */
/* --------------------------------------------------------------------- */

.mhc-carousel {
	margin: 16px 0 18px;
}

.mhc-carousel .mhc-stage {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.mhc-carousel .mhc-viewport {
	width: 100%;
	overflow: hidden;
}

.mhc-carousel .mhc-track {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* Cada diapositiva ocupa el ancho completo y lleva dos imágenes. */
.mhc-carousel .mhc-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 10px;
}

.mhc-carousel .mhc-cell {
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 3px;
	background: rgba( 0, 0, 0, 0.03 );
}

.mhc-carousel .mhc-cell img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
	-webkit-user-drag: none;
	user-select: none;
}

.mhc-carousel .mhc-slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 4px 8px;
	background: rgba( 0, 0, 0, 0.55 );
	color: #fff;
	font-size: 11px;
	line-height: 1.35;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

/* Flechas: una a cada lado, centradas verticalmente. */
.mhc-carousel .mhc-nav,
.mhc-carousel button.mhc-nav {
	position: absolute !important;
	top: 50% !important;
	bottom: auto !important;
	transform: translateY( -50% ) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba( 255, 255, 255, 0.92 ) !important;
	color: #222 !important;
	font-size: 15px !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: 0 1px 5px rgba( 0, 0, 0, 0.25 ) !important;
	cursor: pointer;
	z-index: 5;
}

.mhc-carousel .mhc-nav:hover {
	background: #fff !important;
	color: #000 !important;
}

.mhc-carousel .mhc-prev {
	left: 8px !important;
	right: auto !important;
}

.mhc-carousel .mhc-next {
	right: 8px !important;
	left: auto !important;
}

/* Puntos: debajo del carrusel, para no taparle nada a las imágenes. */
.mhc-carousel .mhc-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
}

.mhc-carousel .mhc-dot,
.mhc-carousel button.mhc-dot {
	display: block !important;
	width: 8px !important;
	height: 8px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba( 0, 0, 0, 0.22 ) !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: pointer;
}

.mhc-carousel .mhc-dot.is-active,
.mhc-carousel button.mhc-dot.is-active {
	background: #0a58ca !important;
}

.mhc-carousel.mhc-single-slide .mhc-dots {
	display: none;
}

/* --------------------------------------------------------------------- */
/* Distintivo en el catálogo                                              */
/* --------------------------------------------------------------------- */

.mhc-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	padding: 3px 8px;
	border-radius: 2px;
	background: #2b2b2b;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------- */
/* Acordeón del carrito y el checkout                                     */
/* --------------------------------------------------------------------- */

.mhc-cart-combo {
	margin-top: 6px;
}

.mhc-cart-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	opacity: 0.75;
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
}

.mhc-cart-toggle:hover {
	opacity: 1;
}

.mhc-cart-caret {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.2s ease;
}

.mhc-cart-toggle.is-open .mhc-cart-caret {
	transform: rotate( 180deg );
}

.mhc-cart-list {
	margin: 6px 0 0;
	padding: 6px 0 0 12px;
	border-left: 2px solid rgba( 0, 0, 0, 0.12 );
	list-style: none;
	color: #111;
	font-size: 12px;
	line-height: 1.6;
}

.mhc-cart-list li {
	margin: 0 0 2px;
	color: #111;
}

.mhc-cart-qty {
	display: inline-block;
	min-width: 22px;
	color: #111;
	font-weight: 600;
}

.mhc-cart-name {
	color: #111;
}

/* --------------------------------------------------------------------- */
/* Pedido                                                                 */
/* --------------------------------------------------------------------- */

.mhc-order-parent {
	display: block;
	margin-top: 2px;
	opacity: 0.65;
	font-size: 11px;
}
