/* ==========================================================================
   MMO Mi Cuenta — estilos de frontend
   ========================================================================== */

/* ----- Modal ----- */
.mmo-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 4vh 16px;
}
.mmo-modal.is-open { display: flex; }

.mmo-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 20, 0.55);
}

.mmo-modal__card {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: #fff;
	padding: 48px 44px 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: mmoFadeIn 0.25s ease;
}
@keyframes mmoFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mmo-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: 6px;
}
.mmo-modal__close:hover { color: #000; background: none; }

.mmo-modal__logo {
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	letter-spacing: 5px;
	color: #111122;
	margin-bottom: 30px;
}
.mmo-modal__logo img {
	max-width: 240px;
	max-height: 70px;
	width: auto;
	height: auto;
	display: inline-block;
}

.mmo-title {
	font-size: 18px;
	margin: 0 0 8px;
	color: #111122;
}
.mmo-text {
	font-size: 14px;
	color: #555;
	margin: 0 0 16px;
}

.mmo-label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #222;
	margin: 16px 0 6px;
}
.mmo-label small { font-weight: 400; color: #888; }

.mmo-input {
	width: 100%;
	border: 1px solid #ccc;
	background: #fff;
	padding: 12px 14px;
	font-size: 15px;
	border-radius: 0;
	box-shadow: none;
}
.mmo-input:focus {
	border-color: #111122;
	outline: none;
	box-shadow: none;
}

.mmo-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #333;
	margin: 16px 0 0;
	cursor: pointer;
}
.mmo-check input { margin: 0; }

.mmo-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 18px;
	margin-top: 14px;
	border: none;
	border-radius: 2px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease;
	box-sizing: border-box;
}
.mmo-btn:hover { filter: brightness(1.15); text-decoration: none; }

.mmo-btn--primary  { background: #111122; color: #fff; margin-top: 22px; }
.mmo-btn--facebook { background: #4a5fa5; color: #fff; }
.mmo-btn--google   { background: #cd6b52; color: #fff; }
.mmo-btn--gray     { background: #a9a9a9; color: #fff; }
.mmo-btn--primary:hover, .mmo-btn--facebook:hover, .mmo-btn--google:hover, .mmo-btn--gray:hover { color: #fff; }

.mmo-btn__icon {
	font-weight: 700;
	font-size: 16px;
	font-family: Georgia, serif;
}

.mmo-links {
	font-size: 14px;
	color: #444;
	margin: 18px 0 0;
	text-align: left;
}
.mmo-links a { color: #111122; text-decoration: underline; }

.mmo-sep {
	border: none;
	border-top: 1px solid #e5e5e5;
	margin: 26px 0 6px;
}

.mmo-msg {
	font-size: 14px;
	margin-top: 14px;
	display: none;
}
.mmo-msg.is-error   { display: block; color: #b32d2e; }
.mmo-msg.is-success { display: block; color: #1e7e34; }

.mmo-btn.is-loading { opacity: 0.6; pointer-events: none; }

@media (max-width: 520px) {
	.mmo-modal__card { padding: 40px 22px 30px; }
}

/* ----- Botón de wishlist (corazón) ----- */
.mmo-wishlist-btn {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease;
}
.mmo-wishlist-btn:hover { transform: scale(1.1); background: #fff; }

.mmo-wishlist-btn .mmo-heart {
	fill: none;
	stroke: #666;
	stroke-width: 1.8;
	transition: fill 0.15s ease, stroke 0.15s ease;
}
.mmo-wishlist-btn.is-active .mmo-heart {
	fill: #d63638;
	stroke: #d63638;
}

/* En la grilla de productos: corazón flotante arriba a la derecha */
ul.products li.product { position: relative; }
ul.products li.product .mmo-wishlist-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* En la ficha de producto: botón con texto */
.mmo-wishlist-single { margin: 14px 0; }
.mmo-wishlist-single .mmo-wishlist-btn {
	border-radius: 3px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	gap: 8px;
}
.mmo-wishlist-btn__text { font-size: 13px; color: #333; }

/* ----- Panel de datos en Mi Cuenta ----- */
.mmo-account-panel {
	border: 1px solid #e8e8e8;
	background: #fafafa;
	padding: 24px;
	margin-bottom: 28px;
}
.mmo-account-panel__header {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 20px;
}
.mmo-account-panel__avatar {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 50%;
	background: #111122;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-family: Georgia, serif;
}
.mmo-account-panel__name { margin: 0 0 4px; font-size: 18px; }
.mmo-account-panel__meta { margin: 0; font-size: 13px; color: #666; }

.mmo-badge {
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 6px;
	vertical-align: middle;
}
.mmo-badge--ok   { background: #e6f4ea; color: #1e7e34; }
.mmo-badge--warn { background: #fdf0e6; color: #b45309; }

.mmo-account-panel__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
}
.mmo-stat {
	background: #fff;
	border: 1px solid #e8e8e8;
	padding: 14px 10px;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease;
}
.mmo-stat:hover { border-color: #111122; text-decoration: none; }
.mmo-stat__num {
	display: block;
	font-size: 22px;
	color: #111122;
	font-family: Georgia, serif;
}
.mmo-stat__label {
	display: block;
	font-size: 12px;
	color: #666;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 4px;
}

.mmo-verify-notice {
	background: #fdf0e6;
	border-left: 3px solid #b45309;
	padding: 12px 16px;
	font-size: 14px;
}

.mmo-wishlist-hint { font-size: 13px; color: #777; margin-top: 16px; }

/* ----- Fotos en el formulario de reseña ----- */
.comment-form-mmo-photos label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form-mmo-photos small { font-weight: 400; color: #888; }
.mmo-review-photos-preview {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.mmo-review-photos-preview img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 3px;
}

/* ----- Galería de fotos dentro de una reseña ----- */
.mmo-review-gallery {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.mmo-review-gallery img.mmo-review-photo {
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid #e5e5e5;
	transition: transform 0.15s ease;
}
.mmo-review-gallery a:hover img.mmo-review-photo { transform: scale(1.05); }

/* ----- Grilla de reseñas (shortcode + muro) ----- */
.mmo-reviews-title {
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: 2px;
	margin: 10px 0 28px;
}
.mmo-reviews-grid {
	display: grid;
	gap: 20px;
	margin: 0 0 30px;
}
.mmo-reviews-cols-1 { grid-template-columns: 1fr; }
.mmo-reviews-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mmo-reviews-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mmo-reviews-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.mmo-reviews-cols-3, .mmo-reviews-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.mmo-reviews-grid { grid-template-columns: 1fr; }
}

.mmo-review-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mmo-review-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.mmo-stars {
	color: #e5a53a;
	font-size: 16px;
	letter-spacing: 2px;
}
.mmo-review-card__verified {
	font-size: 11px;
	color: #1e7e34;
	background: #e6f4ea;
	padding: 2px 8px;
	border-radius: 10px;
	white-space: nowrap;
}
.mmo-review-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	font-style: italic;
	flex-grow: 1;
}
.mmo-review-card__footer { border-top: 1px solid #f0f0f0; padding-top: 12px; }
.mmo-review-card__product {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	font-size: 13px;
	line-height: 1.4;
}
.mmo-review-card__product:hover { text-decoration: none; }
.mmo-review-card__product img.mmo-review-card__product-img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 3px;
	flex: 0 0 48px;
}
.mmo-review-card__date { color: #999; }

.mmo-reviews-wall {
	clear: both;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}
.mmo-reviews-empty { text-align: center; color: #777; }

/* ----- Estrellas en la grilla de productos ----- */
.mmo-loop-rating {
	font-size: 13px;
	line-height: 1;
	margin: 4px 0 6px;
	display: flex;
	align-items: center;
	justify-content: inherit;
	gap: 5px;
}
.mmo-loop-rating .mmo-stars { font-size: 13px; letter-spacing: 1px; }
.mmo-loop-rating__count { color: #888; font-size: 12px; }

/* ----- Página de restablecer contraseña (marca) ----- */
.mmo-reset-wrap {
	display: flex;
	justify-content: center;
	padding: 40px 16px;
}
.mmo-reset-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid #e8e8e8;
	padding: 40px 36px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.mmo-reset-logo { text-align: center; margin-bottom: 26px; }
.mmo-reset-logo img { max-width: 220px; max-height: 70px; width: auto; height: auto; display: inline-block; }
.mmo-reset-title { text-align: center; font-size: 20px; color: #111122; margin: 0 0 10px; }
.mmo-reset-text { text-align: center; font-size: 14px; color: #555; margin: 0 0 22px; line-height: 1.6; }
.mmo-reset-label { display: block; font-weight: 600; font-size: 14px; color: #222; margin: 14px 0 6px; }
.mmo-reset-label small { font-weight: 400; color: #888; }
.mmo-reset-input {
	width: 100%;
	border: 1px solid #ccc;
	padding: 12px 14px;
	font-size: 15px;
	border-radius: 0;
	box-sizing: border-box;
}
.mmo-reset-input:focus { border-color: #111122; outline: none; }
.mmo-reset-show { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; margin: 12px 0 0; cursor: pointer; }
.mmo-reset-btn {
	width: 100%;
	background: #111122;
	color: #fff;
	border: none;
	padding: 14px 18px;
	margin-top: 22px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 2px;
}
.mmo-reset-btn:hover { filter: brightness(1.15); }
.mmo-reset-msg { font-size: 14px; padding: 12px 14px; margin: 0 0 18px; border-radius: 3px; }
.mmo-reset-msg.is-error { background: #fdecea; color: #b32d2e; }

/* ==========================================================================
   Mini-carrito de Elementor (menu cart) — rediseño UX/UI responsive
   ========================================================================== */

/* Contenedor general */
.woocommerce.widget_shopping_cart,
.elementor-menu-cart__products {
	font-family: inherit;
}
.elementor-menu-cart__products {
	padding: 4px 2px !important;
	margin: 0 0 10px !important;
	max-height: 52vh;
	overflow-y: auto;
}

/* --- Cada producto --- */
.elementor-menu-cart__product.woocommerce-cart-form__cart-item {
	position: relative;
	display: grid !important;
	grid-template-columns: 64px 1fr auto;
	grid-template-areas: "img name remove" "img price remove";
	column-gap: 14px;
	row-gap: 2px;
	align-items: center;
	padding: 14px 8px !important;
	margin: 0 !important;
	border: none !important;
	border-bottom: 1px solid #eee !important;
}
.elementor-menu-cart__product:last-child {
	border-bottom: none !important;
}

/* Imagen */
.elementor-menu-cart__product-image {
	grid-area: img;
	width: 64px !important;
	margin: 0 !important;
}
.elementor-menu-cart__product-image img {
	width: 64px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #eee;
	display: block;
}

/* Nombre */
.elementor-menu-cart__product-name {
	grid-area: name;
	margin: 0 !important;
	padding-right: 6px;
}
.elementor-menu-cart__product-name a {
	font-size: 13.5px !important;
	line-height: 1.35 !important;
	color: #1a1a1a !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Precio / cantidad */
.elementor-menu-cart__product-price {
	grid-area: price;
	margin: 0 !important;
}
.elementor-menu-cart__product-price .quantity {
	font-size: 13px;
	color: #555;
}
.elementor-menu-cart__product-price .product-quantity {
	font-weight: 600;
	color: #111;
}
.elementor-menu-cart__product-price .amount {
	font-weight: 700;
	color: #111122;
}

/* Botón eliminar (✕) */
.elementor-menu-cart__product-remove {
	grid-area: remove;
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	align-self: start;
}
.elementor-menu-cart__product-remove a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #f2f2f4;
	color: #888 !important;
	font-size: 0;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
	text-decoration: none !important;
}
.elementor-menu-cart__product-remove a::before {
	content: "\00d7";
	font-size: 18px;
	font-weight: 400;
}
.elementor-menu-cart__product-remove a:hover {
	background: #e2401c;
	color: #fff !important;
}
/* Evitar la ✕ duplicada (Elementor imprime dos enlaces de borrado) */
.elementor-menu-cart__product-remove a + a {
	display: none !important;
}

/* --- Subtotal --- */
.elementor-menu-cart__subtotal {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	padding: 16px 8px !important;
	margin: 4px 0 0 !important;
	border-top: 2px solid #111122 !important;
	font-size: 16px;
}
.elementor-menu-cart__subtotal strong {
	font-weight: 600;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
}
.elementor-menu-cart__subtotal .amount {
	font-size: 18px;
	font-weight: 800;
	color: #111122;
}

/* --- Botones del pie --- */
.elementor-menu-cart__footer-buttons {
	display: flex !important;
	flex-direction: column;
	gap: 10px;
	padding: 4px 8px 10px !important;
}
.elementor-menu-cart__footer-buttons .elementor-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 14px 20px !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
	margin: 0 !important;
}
/* Finalizar compra: acción principal (aparece arriba en el panel) */
.elementor-menu-cart__footer-buttons .elementor-button--checkout {
	order: 1;
	background: #111122 !important;
	color: #fff !important;
	border: 2px solid #111122 !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout:hover {
	filter: brightness(1.2);
}
/* Ver carrito: acción secundaria (contorno) */
.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
	order: 2;
	background: transparent !important;
	color: #111122 !important;
	border: 2px solid #d4d4d8 !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover {
	border-color: #111122 !important;
	background: #fafafa !important;
}

/* Carrito vacío */
.woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 30px 12px;
	color: #777;
	font-size: 15px;
}

/* Ajustes finos en pantallas muy chicas */
@media (max-width: 360px) {
	.elementor-menu-cart__product.woocommerce-cart-form__cart-item {
		grid-template-columns: 54px 1fr auto;
		column-gap: 10px;
	}
	.elementor-menu-cart__product-image,
	.elementor-menu-cart__product-image img {
		width: 54px !important;
	}
	.elementor-menu-cart__product-image img { height: 68px; }
	.elementor-menu-cart__product-name a { font-size: 13px !important; }
}

/* ----- Botón de WhatsApp en el admin ----- */
.mmo-wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #25d366;
	color: #fff !important;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
}
.mmo-wa-btn:hover { background: #1fb457; color: #fff; }
