/* ==========================================================================
   MT Base · estilos comunes a todas las marcas
   Los colores y tipografías vienen de variables (--mt-*).
   Cada tema hijo las cambia en su brand.css: aquí solo hay valores neutros.
   ========================================================================== */

:root {
	/* Colores */
	--mt-bg: #ffffff;
	--mt-surface: #f5f5f5;
	--mt-text: #1f1f1f;
	--mt-muted: #5f5f5f;
	--mt-border: #e2e2e2;
	--mt-primary: #1f1f1f;        /* botones principales */
	--mt-primary-text: #ffffff;
	--mt-accent: #555555;         /* enlaces y detalles */

	/* Tipografía */
	--mt-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mt-font-heading: Georgia, "Times New Roman", serif;

	/* Medidas */
	--mt-wrap: 1200px;
	--mt-gutter: clamp(16px, 4vw, 24px);
	--mt-radius: 16px;
	--mt-radius-pill: 999px;
	--mt-space: clamp(48px, 8vw, 88px); /* separación entre secciones */
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--mt-bg);
	color: var(--mt-text);
	font-family: var(--mt-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--mt-accent); }
h1, h2, h3, h4 { font-family: var(--mt-font-heading); line-height: 1.15; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mt-accent); outline-offset: 2px; }

/* Texto solo para lectores de pantalla (accesibilidad). */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 8px 16px; background: var(--mt-primary); color: var(--mt-primary-text); }
.mt-skip-link:focus { left: 8px; }

/* ---------- Estructura ---------- */
.mt-wrap { width: 100%; max-width: var(--mt-wrap); margin-inline: auto; padding-inline: var(--mt-gutter); }
.mt-wrap--content { max-width: 820px; }
.mt-main { padding-block: 32px var(--mt-space); }
.mt-page-title { font-size: clamp(30px, 4vw, 44px); margin: 16px 0 24px; }

/* ---------- Botones ---------- */
.mt-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--mt-radius-pill);
	background: var(--mt-primary); color: var(--mt-primary-text);
	font-weight: 600; text-decoration: none; cursor: pointer;
}
.mt-btn:hover { color: var(--mt-primary-text); filter: brightness(1.1); }
.mt-btn--ghost { background: transparent; color: var(--mt-text); box-shadow: inset 0 0 0 1.5px var(--mt-border); }
.mt-btn--ghost:hover { color: var(--mt-text); box-shadow: inset 0 0 0 1.5px var(--mt-text); }

/* ---------- Barra de aviso ---------- */
.mt-announcement { background: var(--mt-primary); color: var(--mt-primary-text); text-align: center; font-size: 13px; padding: 10px var(--mt-gutter); }

/* ---------- Cabecera ---------- */
.mt-header { background: var(--mt-bg); border-bottom: 1px solid var(--mt-border); position: sticky; top: 0; z-index: 50; }
.mt-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.mt-header__logo img { max-height: 48px; width: auto; }
.mt-logo-text { font-family: var(--mt-font-heading); font-size: 26px; font-weight: 600; text-decoration: none; }
.mt-header__nav { flex: 1; }
.mt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px clamp(12px, 1.4vw, 22px); font-weight: 500; }
.mt-menu a { white-space: nowrap; }
.mt-menu a { text-decoration: none; }
.mt-menu .sub-menu { display: none; }
.mt-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mt-header__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; text-decoration: none; }
.mt-cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--mt-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.mt-header__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.mt-header__search { border-top: 1px solid var(--mt-border); padding-block: 16px; }
.mt-header__search form { display: flex; gap: 8px; }
.mt-header__search input[type="search"] { flex: 1; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--mt-border); border-radius: var(--mt-radius-pill); }

@media (max-width: 900px) {
	.mt-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
	.mt-header__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--mt-bg); border-bottom: 1px solid var(--mt-border); padding: 16px var(--mt-gutter) 24px; }
	.mt-header__nav.is-open { display: block; }
	.mt-menu { flex-direction: column; gap: 16px; font-size: 18px; }
}

/* ---------- Contenido de páginas ---------- */
.mt-content > * + * { margin-top: 1em; }
.mt-content h2 { font-size: 28px; margin-top: 1.6em; }
.mt-content h3 { font-size: 22px; margin-top: 1.4em; }

/* ---------- Blog ---------- */
.mt-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.mt-card__media img { border-radius: var(--mt-radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.mt-card__title { font-size: 20px; margin-top: 12px; }
.mt-card__title a { text-decoration: none; }

/* ---------- Tienda ---------- */
.mt-shop__layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.mt-filter + .mt-filter { margin-top: 32px; }
.mt-filter__title { font-family: var(--mt-font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) { .mt-shop__layout { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.mt-footer { background: var(--mt-surface); padding-block: 48px 32px; font-size: 14px; }
/* Separación antes del pie, salvo que la última sección ya tenga fondo propio. */
.mt-home > :last-child:not(.mt-sizes):not(.mt-trust) { margin-bottom: var(--mt-space); }
.mt-footer__trust { list-style: none; margin: 0 0 40px; padding: 0 0 32px; border-bottom: 1px solid var(--mt-border); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; font-weight: 600; }
.mt-footer__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.mt-footer__menu, .mt-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.mt-footer__menu a, .mt-footer__legal a { text-decoration: none; }
.mt-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--mt-border); color: var(--mt-muted); }
.mt-footer__bottom p { margin: 0; }
@media (max-width: 700px) { .mt-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Prioridad frente a estilos globales de plugins (Elementor) ----------
   "body.mt-theme" gana a los estilos generales de Elementor sin usar !important. */
body.mt-theme { font-family: var(--mt-font-body); color: var(--mt-text); }
body.mt-theme h1, body.mt-theme h2, body.mt-theme h3, body.mt-theme h4 { font-family: var(--mt-font-heading); color: var(--mt-text); }
body.mt-theme .mt-header__icon,
body.mt-theme .mt-header__toggle { background: none; border: 0; padding: 0; color: var(--mt-text); box-shadow: none; border-radius: 0; }
body.mt-theme .mt-header__icon:hover,
body.mt-theme .mt-header__toggle:hover { background: none; color: var(--mt-accent); }

/* ---------- Utilidades ---------- */
.mt-404 { text-align: center; }
.mt-404 form { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }

/* ---------- Accesos a subcategorías ---------- */
.mt-subcats ul { list-style: none; margin: 16px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mt-subcats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--mt-radius-pill); box-shadow: inset 0 0 0 1.5px var(--mt-border); background: var(--mt-bg); text-decoration: none; font-size: 14px; font-weight: 500; }
.mt-subcats a:hover { box-shadow: inset 0 0 0 1.5px var(--mt-text); color: var(--mt-text); }
.mt-subcats a[aria-current="page"] { background: var(--mt-primary); color: var(--mt-primary-text); box-shadow: none; }

/* ---------- Tienda y categorías ---------- */
.mt-cat-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 8px 0 32px; }
.mt-cat-hero__text { flex: 2 1 480px; display: flex; flex-direction: column; gap: 14px; }
.mt-cat-hero__title { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }
.mt-cat-hero__desc { max-width: 640px; color: var(--mt-muted); font-size: 17px; }
.mt-cat-hero__desc p { margin: 0; }
.mt-cat-hero__media { flex: 1 1 300px; }
.mt-cat-hero__media img, .mt-cat-hero__media .mt-img-placeholder { width: 100%; height: 260px; object-fit: cover; border-radius: var(--mt-radius); }

.mt-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--mt-border); }
.mt-toolbar__start .mt-subcats ul { margin: 0; }
.mt-toolbar__end { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14px; color: var(--mt-muted); }
.mt-toolbar .woocommerce-ordering, .mt-perpage { margin: 0; float: none; }
.mt-toolbar .woocommerce-ordering select, .mt-perpage select { min-height: 42px; padding: 0 36px 0 16px; border: 1.5px solid var(--mt-border); border-radius: var(--mt-radius-pill); background-color: transparent; font-size: 14px; color: var(--mt-text); }

.mt-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.mt-unit-price { margin-left: auto; font-size: 12px; color: var(--mt-muted); }

.mt-cat-bottom { margin-top: var(--mt-space); padding-block: 64px; background: var(--mt-surface); }
.mt-cat-bottom__inner { display: flex; flex-wrap: wrap; gap: 48px; }
.mt-cat-bottom__text { flex: 1 1 460px; line-height: 1.7; }
.mt-cat-bottom__text h2 { font-size: 30px; margin-top: 0; }
.mt-cat-bottom__faq { flex: 1 1 420px; }
.mt-cat-bottom__faq h2 { font-size: 30px; margin: 0 0 12px; }
.mt-faq { border-bottom: 1px solid var(--mt-border); padding: 16px 0; }
.mt-faq summary { font-weight: 600; cursor: pointer; }
.mt-faq p { margin: 10px 0 0; color: var(--mt-muted); line-height: 1.6; }
/* Si hay bloque inferior, el pie va pegado a él. */
.mt-shop:has(.mt-cat-bottom) { padding-bottom: 0; }

/* ---------- Ficha de producto ---------- */
.mt-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.mt-theme div.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; padding-top: 8px; }
body.mt-theme div.product > * { grid-column: 1 / -1; }
body.mt-theme div.product > .woocommerce-product-gallery { grid-column: 1; width: auto; float: none; margin: 0; }
body.mt-theme div.product > .summary { grid-column: 2; width: auto; float: none; margin: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) {
	body.mt-theme div.product { grid-template-columns: 1fr; }
	body.mt-theme div.product > .woocommerce-product-gallery, body.mt-theme div.product > .summary { grid-column: 1; }
}
body.mt-theme div.product .product_title { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; }
body.mt-theme div.product .woocommerce-product-rating { margin: 0; }
body.mt-theme div.product .summary > * { margin-top: 0; margin-bottom: 0; }
.mt-single__eyebrow { text-decoration: none; }
.mt-single__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
body.mt-theme div.product .mt-single__price .price { margin: 0; font-size: 34px; }
body.mt-theme div.product .mt-single__price .price del { font-size: 18px; font-weight: 400; color: var(--mt-muted); }
body.mt-theme div.product .mt-single__price .price ins { text-decoration: none; }
body.mt-theme div.product .mt-single__price .onsale { position: static; display: inline-flex; min-height: 0; min-width: 0; padding: 4px 10px; line-height: 1.4; border-radius: var(--mt-radius-pill); font-size: 13px; }
.mt-single__unit { width: 100%; font-size: 14px; color: var(--mt-muted); }
.woocommerce-product-details__short-description p { margin: 0 0 .6em; }

/* Galería */
body.mt-theme .woocommerce-product-gallery__wrapper img,
body.mt-theme .woocommerce-product-gallery .flex-viewport { border-radius: 18px; }
body.mt-theme .woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; }
body.mt-theme .woocommerce-product-gallery .flex-control-thumbs li { width: auto; float: none; margin: 0; }
body.mt-theme .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 12px; opacity: .6; border: 2px solid transparent; }
body.mt-theme .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.mt-theme .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--mt-text); }

/* Compra: opciones, cantidad y botón */
body.mt-theme div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
body.mt-theme div.product form.cart::before, body.mt-theme div.product form.cart::after { display: none; }
body.mt-theme div.product form.variations_form { display: block; }
body.mt-theme table.variations { width: 100%; margin: 0 0 12px; border: 0; }
body.mt-theme table.variations th, body.mt-theme table.variations td { display: block; padding: 0; border: 0; text-align: left; }
body.mt-theme table.variations th label { font-size: 14px; font-weight: 600; }
body.mt-theme table.variations .reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; }
.mt-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mt-option { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--mt-border); border-radius: var(--mt-radius-pill); background: var(--mt-bg); font-weight: 600; cursor: pointer; }
.mt-option[aria-pressed="true"] { border-color: var(--mt-text); background: var(--mt-text); color: var(--mt-bg); }
.mt-option:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
body.mt-theme .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
body.mt-theme div.product .quantity { margin: 0; float: none; }
.mt-qty { display: inline-flex; align-items: center; min-height: 52px; border: 1.5px solid var(--mt-text); border-radius: var(--mt-radius-pill); }
.mt-qty input.qty { width: 36px; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.mt-qty input.qty::-webkit-inner-spin-button, .mt-qty input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mt-qty-btn { width: 46px; height: 48px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: inherit; }
body.mt-theme div.product form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 52px; float: none; font-size: 16px; font-weight: 700; }

.mt-single__assurance { padding-top: 16px; border-top: 1px solid var(--mt-border); font-size: 14px; }

/* Secciones de abajo */
.mt-single__details { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; }
.mt-single__specs, .mt-single__desc { flex: 1 1 440px; min-width: 0; }
.mt-single__details h2, .mt-single__reviews h2, .mt-single__faq h2, body.mt-theme div.product .related > h2 { font-size: 32px; margin: 0 0 20px; }
.mt-specs { width: 100%; border-collapse: collapse; background: var(--mt-bg); border-radius: var(--mt-radius); overflow: hidden; }
.mt-specs th, .mt-specs td { padding: 14px 16px; border-bottom: 1px solid var(--mt-border); text-align: left; font-size: 15px; }
.mt-specs th { width: 42%; font-weight: 600; color: var(--mt-muted); }
.mt-specs tr:last-child th, .mt-specs tr:last-child td { border-bottom: 0; }
.mt-single__desc .mt-content { line-height: 1.7; }
.mt-single__reviews { padding-top: 56px; }
.mt-single__faq { max-width: 880px; padding-top: 56px; }
body.mt-theme div.product .related, body.mt-theme div.product .upsells { padding-top: 56px; }
html, body { overflow-x: clip; } /* Evita scroll lateral por las franjas a todo el ancho. */
body.mt-theme div.product div.images .flex-control-thumbs li { width: 100%; float: none; margin: 0; }
body.mt-theme div.product div.images .flex-control-thumbs li img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mt-single__specs { position: sticky; top: 110px; align-self: flex-start; }
/* Cantidad más compacta; botón de compra a la misma altura. */
.mt-qty { min-height: 48px; border-width: 1px; }
.mt-qty-btn { width: 34px; height: 44px; font-size: 17px; }
.mt-qty input.qty { width: 28px; font-size: 15px; }
body.mt-theme div.product form.cart .single_add_to_cart_button { min-height: 48px; }
/* Tarjetas: sin "Ver carrito"; si ya está en el carrito, el botón pasa a ser  − 2 +  */
ul.products li.product .added_to_cart { display: none !important; }
.mt-card-qty { display: flex; align-items: center; justify-content: space-between; margin-top: auto; min-height: 46px; border-radius: var(--mt-radius-pill); background: var(--mt-primary); color: #fff; transition: opacity .2s; }
.mt-card-qty.is-busy { opacity: .6; pointer-events: none; }
.mt-card-qty__btn { width: 46px; height: 46px; border: 0; border-radius: var(--mt-radius-pill); background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.mt-card-qty__btn:hover { background: rgba(0, 0, 0, .12); }
.mt-card-qty__n { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
ul.products li.product .button[hidden] { display: none !important; }

/* ---------- Móvil ---------- */
/* WooCommerce fuerza tarjetas al 48 % en móvil: lo anulamos para usar nuestra rejilla. */
body.mt-theme ul.products[class*="columns-"] li.product,
body.mt-theme .woocommerce ul.products[class*="columns-"] li.product { width: auto; float: none; margin: 0; clear: none; }
@media (max-width: 600px) {
	body.mt-theme ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mt-cat-hero { gap: 16px; padding-bottom: 20px; }
	.mt-cat-hero__desc { font-size: 15px; }
	.mt-cat-hero__media img { height: 160px; }
	.mt-cat-hero__media .mt-img-placeholder { display: none; } /* Sin foto todavía: no ocupar media pantalla. */
	.mt-toolbar { gap: 12px; margin-bottom: 20px; padding-bottom: 16px; }
	.mt-toolbar__start { width: 100%; overflow-x: auto; scrollbar-width: none; }
	.mt-toolbar__start .mt-subcats ul { flex-wrap: nowrap; }
	.mt-subcats a { min-height: 36px; padding: 0 14px; white-space: nowrap; }
	.mt-toolbar__end { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
	.mt-toolbar__count { flex: 1 0 100%; }
	.mt-toolbar .woocommerce-ordering, .mt-perpage { flex: 1 1 0; }
	.mt-toolbar .woocommerce-ordering select, .mt-perpage select { width: 100%; }
	/* Ruta de navegación en una sola línea. */
	body.mt-theme .woocommerce-breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
	/* Ficha: cantidad y botón en la misma fila. */
	body.mt-theme div.product form.cart { flex-wrap: nowrap; }
	body.mt-theme div.product form.cart .single_add_to_cart_button { flex: 1 1 auto; min-width: 0; padding: 0 16px; }
	.mt-assure { grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
	.mt-single__details { gap: 32px; padding-top: 48px; }
	.mt-single__specs { position: static; }
	.mt-single__details h2, .mt-single__reviews h2, .mt-single__faq h2, body.mt-theme div.product .related > h2 { font-size: 26px; }
	.mt-cat-bottom { padding-block: 40px; }
	.mt-cat-bottom__inner { gap: 32px; }
}
/* La cabecera (y su menú móvil) siempre por encima de la lupa de la galería. */
.mt-header { z-index: 100; }
body.mt-theme .woocommerce-product-gallery__trigger { z-index: 5; }
/* Buscador de la página 404. */
.mt-404 form input[type="search"] { min-height: 48px; padding: 0 16px; border: 1.5px solid var(--mt-border); border-radius: var(--mt-radius-pill); background: var(--mt-bg); }
.mt-404 form button, .mt-404 form input[type="submit"] { min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--mt-radius-pill); background: var(--mt-text); color: var(--mt-bg); font-weight: 600; cursor: pointer; }
/* Barra de aviso: las partes van separadas por un punto. */
.mt-announcement__extra::before { content: " · "; }
/* Cabecera en móvil, como IKEA, Zara Home, Kave Home o El Corte Inglés:
   [menú][logo] ........ [lupa][cuenta][carrito]; al tocar la lupa se abre el buscador debajo. */
@media (max-width: 900px) {
	.mt-header__inner { display: flex; gap: 4px; min-height: 60px; }
	.mt-header__toggle { margin-left: -10px; }
	.mt-header__logo img { max-height: 36px; }
	/* Lupa, cuenta y carrito juntos y a la misma distancia. */
	.mt-header__actions { gap: 0; margin-right: -6px; }
	.mt-header__icon { width: 36px; }
	/* El buscador aparece al tocar la lupa, debajo de la cabecera. */
	.mt-header__search { border-top: 0; padding: 0 0 12px; }
	.mt-header__search input[type="search"] { min-height: 44px; padding-left: 44px; background: var(--mt-card, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B6257' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center; }
	.mt-header__search button, .mt-header__search input[type="submit"] { display: none; } /* Se busca con la tecla Intro del teclado del móvil. */
	.mt-announcement { font-size: 12px; padding-block: 8px; }
	.mt-announcement__extra { display: none; }
}
/* Pantallas medianas (portátiles pequeños, tablet en horizontal): menú algo más compacto para que quepa en una línea. */
@media (min-width: 901px) and (max-width: 1180px) {
	.mt-menu { font-size: 14px; column-gap: 14px; }
	.mt-header__inner { gap: 16px; }
}
ul.products li.product .button.added::after { display: none !important; content: none !important; } /* Sin ✓ en las tarjetas: ya se ve la cantidad. */
/* El precio de la opción elegida ya se ve arriba, en grande (base.js). */
.single-product form.variations_form .woocommerce-variation-price { display: none !important; }

/* ==========================================================================
   Páginas de texto (legales, envíos, preguntas…)
   Las legales están hechas con Elementor: aquí solo se cambia cómo se ven, no el texto.
   ========================================================================== */
.mt-wrap--doc { max-width: 1120px; }
.mt-doc { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; column-gap: 56px; }
.mt-doc__head { grid-column: 1 / -1; padding: 8px 0 28px; margin-bottom: 36px; border-bottom: 1px solid var(--mt-border); }
.mt-doc__head .mt-page-title { margin: 0; }
.mt-doc.has-toc { grid-template-columns: 240px minmax(0, 760px); }
.mt-doc.has-toc .mt-doc__head { grid-column: 2; }
.mt-toc { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
.mt-toc summary { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mt-muted); cursor: pointer; padding: 6px 0 10px; list-style: none; }
.mt-toc summary::-webkit-details-marker { display: none; }
.mt-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--mt-border); }
.mt-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mt-muted); text-decoration: none; line-height: 1.35; }
.mt-toc li a:hover { color: var(--mt-text); }
.mt-toc li a[aria-current] { color: var(--mt-text); font-weight: 600; border-left-color: var(--mt-accent); }

.mt-doc__body { font-size: 16.5px; line-height: 1.75; color: var(--mt-text); }
.mt-doc__body > :first-child, .mt-doc__body .elementor > :first-child { margin-top: 0; }
.mt-doc__body p { margin: 0 0 1.1em; }
.mt-doc__body h1, .mt-doc__body h2 { font-size: clamp(22px, 2.4vw, 27px); margin: 2.2em 0 .6em; scroll-margin-top: 100px; }
.mt-doc__body h3, .mt-doc__body h4 { font-size: 19px; margin: 1.8em 0 .5em; scroll-margin-top: 100px; }
.mt-doc__body h5, .mt-doc__body h6 { font-family: var(--mt-font-body); font-size: 16.5px; margin: 1.4em 0 .4em; }
.mt-doc__body ul, .mt-doc__body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.mt-doc__body li { margin: .35em 0; }
.mt-doc__body li::marker { color: var(--mt-accent); }
.mt-doc__body a { color: var(--mt-accent); text-decoration: underline; word-break: break-word; }
.mt-doc__body strong { font-weight: 600; }
.mt-doc__body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.5em; font-size: 14px; line-height: 1.5; }
.mt-doc__body th, .mt-doc__body td { padding: 10px 12px; border: 1px solid var(--mt-border); text-align: left; vertical-align: top; }
.mt-doc__body th { background: var(--mt-surface); font-weight: 600; }
.mt-doc__body blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 3px solid var(--mt-accent); background: var(--mt-surface); border-radius: 0 12px 12px 0; }
.mt-doc__body hr { border: 0; border-top: 1px solid var(--mt-border); margin: 2.5em 0; }

/* Elementor: misma letra, color y ancho que el resto de la web. */
.mt-doc__body .elementor-section, .mt-doc__body .e-con, .mt-doc__body .elementor-container { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; display: block !important; }
.mt-doc__body .elementor-column, .mt-doc__body .elementor-widget-wrap, .mt-doc__body .e-con-inner { width: 100% !important; padding: 0 !important; display: block !important; }
.mt-doc__body .elementor-widget { margin: 0 !important; }
.mt-doc__body .elementor-widget-text-editor, .mt-doc__body .elementor-widget-text-editor * { color: var(--mt-text) !important; font-family: var(--mt-font-body) !important; font-size: inherit; line-height: inherit !important; }
.mt-doc__body .elementor-widget-text-editor a { color: var(--mt-accent) !important; }
.mt-doc__body .elementor-widget-text-editor h1, .mt-doc__body .elementor-widget-text-editor h2, .mt-doc__body .elementor-widget-text-editor h3, .mt-doc__body .elementor-widget-text-editor h4 { font-family: var(--mt-font-heading) !important; }
.mt-doc__body .elementor-heading-title { font-family: var(--mt-font-heading) !important; color: var(--mt-text) !important; font-size: clamp(22px, 2.4vw, 27px) !important; line-height: 1.2 !important; margin: 2.2em 0 .6em !important; }
.mt-doc__body .elementor-widget-text-editor h1, .mt-doc__body .elementor-widget-text-editor h2 { font-size: clamp(22px, 2.4vw, 27px) !important; }
.mt-doc__body .elementor-widget-text-editor h3, .mt-doc__body .elementor-widget-text-editor h4 { font-size: 19px !important; }
.mt-doc__body .elementor-widget-divider, .mt-doc__body .elementor-widget-spacer { display: none !important; }

@media (max-width: 999px) {
	.mt-doc.has-toc { grid-template-columns: minmax(0, 760px); }
	.mt-doc.has-toc .mt-doc__head { grid-column: 1; }
	.mt-toc { grid-column: 1; grid-row: auto; position: static; max-height: none; margin: -12px 0 32px; padding: 4px 16px; border: 1px solid var(--mt-border); border-radius: 14px; background: var(--mt-card, #fff); }
	.mt-toc summary { padding: 12px 0; }
	.mt-toc summary::after { content: "+"; float: right; font-size: 18px; line-height: 1; }
	.mt-toc details[open] summary::after { content: "−"; }
	.mt-toc ol { margin-bottom: 12px; }
	.mt-doc__body { font-size: 16px; }
}

/* ==========================================================================
   Formularios de WooCommerce (caja, cuenta, seguimiento de pedido)
   ========================================================================== */
.mt-wrap--shop-page { max-width: var(--mt-wrap); }
body.mt-theme .woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
body.mt-theme .woocommerce form .form-row label, body.mt-theme .woocommerce-form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
body.mt-theme .woocommerce form .form-row .required { color: var(--mt-accent); text-decoration: none; }
body.mt-theme .woocommerce form .input-text,
body.mt-theme .woocommerce form select,
body.mt-theme .woocommerce form textarea,
body.mt-theme .woocommerce .select2-container .select2-selection--single,
body.mt-theme .mt-content input[type="text"], body.mt-theme .mt-content input[type="email"], body.mt-theme .mt-content input[type="tel"], body.mt-theme .mt-content input[type="password"] {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--mt-border); border-radius: 12px; background: var(--mt-card, #fff); font-size: 16px; line-height: 1.3; box-shadow: none; outline: 0;
}
body.mt-theme .woocommerce form textarea { min-height: 96px; }
body.mt-theme .woocommerce form .input-text:focus, body.mt-theme .woocommerce form select:focus, body.mt-theme .woocommerce form textarea:focus, body.mt-theme .select2-container--focus .select2-selection--single { border-color: var(--mt-text); }
body.mt-theme .woocommerce .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 14px; }
body.mt-theme .woocommerce .select2-container .select2-selection__rendered { padding: 0; line-height: 1.3; }
body.mt-theme .woocommerce .select2-container .select2-selection__arrow { top: 12px; right: 10px; }
body.mt-theme .woocommerce form .form-row.woocommerce-invalid .input-text, body.mt-theme .woocommerce form .form-row.woocommerce-invalid select { border-color: #B3261E; }
body.mt-theme .woocommerce form .form-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mt-accent); vertical-align: -3px; margin-right: 6px; }

/* Avisos de WooCommerce */
body.mt-theme .woocommerce-message, body.mt-theme .woocommerce-info, body.mt-theme .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 24px; padding: 14px 18px; border: 0; border-radius: 14px; background: var(--mt-surface); color: var(--mt-text); font-size: 15px; list-style: none;
}
body.mt-theme .woocommerce-message::before, body.mt-theme .woocommerce-info::before, body.mt-theme .woocommerce-error::before { display: none; }
body.mt-theme .woocommerce-message { background: #E7F0E3; }
body.mt-theme .woocommerce-error { background: #FBE9E7; flex-direction: column; align-items: flex-start; }
body.mt-theme .woocommerce-message .button, body.mt-theme .woocommerce-info .button { order: 2; margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 14px; }
body.mt-theme .woocommerce-info a:not(.button) { color: var(--mt-accent); font-weight: 600; }

/* ==========================================================================
   Carrito
   ========================================================================== */
.mt-cart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 8px 0 28px; }
.mt-cart-head .mt-page-title { margin: 0; }
.mt-cart-head__count { font-family: var(--mt-font-body); font-size: 16px; font-weight: 500; color: var(--mt-muted); letter-spacing: 0; }
.mt-cart-head__back { font-size: 15px; font-weight: 600; color: var(--mt-muted); text-decoration: none; }
.mt-cart-head__back:hover { color: var(--mt-accent); }

body.woocommerce-cart .mt-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-auto-flow: row dense; gap: 0 40px; align-items: start; }
body.woocommerce-cart .mt-content > .woocommerce > * { grid-column: 1 / -1; }
body.woocommerce-cart .mt-content > .woocommerce > .woocommerce-cart-form { grid-column: 1; }
body.woocommerce-cart .mt-content > .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: 96px; width: auto; }

/* Lista de productos en tarjetas */
body.mt-theme table.shop_table.cart { display: block; border: 0; margin: 0; border-radius: 0; }
body.mt-theme table.shop_table.cart thead { display: none; }
body.mt-theme table.shop_table.cart tbody { display: flex; flex-direction: column; gap: 12px; }
body.mt-theme table.shop_table.cart tr.cart_item {
	display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "thumb name remove" "thumb price price" "thumb qty subtotal";
	gap: 2px 18px; align-items: center; padding: 16px; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-radius: var(--mt-radius);
}
body.mt-theme table.shop_table.cart tr.cart_item td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
body.mt-theme table.shop_table.cart tr.cart_item td::before { display: none !important; }
body.mt-theme table.shop_table.cart td.product-thumbnail { grid-area: thumb; display: block !important; align-self: start; }
body.mt-theme table.shop_table.cart td.product-thumbnail img { width: 96px !important; height: 96px; object-fit: cover; border-radius: 12px; background: var(--mt-surface); }
body.mt-theme table.shop_table.cart td.product-name { grid-area: name; font-weight: 600; line-height: 1.35; }
body.mt-theme table.shop_table.cart td.product-name a { text-decoration: none; }
body.mt-theme table.shop_table.cart td.product-name a:hover { text-decoration: underline; }
body.mt-theme table.shop_table.cart td.product-name dl.variation { margin: 4px 0 0; font-size: 14px; font-weight: 400; color: var(--mt-muted); }
body.mt-theme table.shop_table.cart td.product-name dl.variation dt, body.mt-theme table.shop_table.cart td.product-name dl.variation dd, body.mt-theme table.shop_table.cart td.product-name dl.variation p { display: inline; margin: 0; }
body.mt-theme table.shop_table.cart td.product-price { grid-area: price; font-size: 14px; color: var(--mt-muted); }
body.mt-theme table.shop_table.cart td.product-price::after { content: " / ud."; }
body.mt-theme table.shop_table.cart td.product-quantity { grid-area: qty; margin-top: 10px !important; }
body.mt-theme table.shop_table.cart td.product-subtotal { grid-area: subtotal; justify-self: end; margin-top: 10px !important; font-weight: 700; font-size: 17px; }
body.mt-theme table.shop_table.cart td.product-remove { grid-area: remove; align-self: start; }
body.mt-theme table.shop_table.cart a.remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--mt-muted) !important; font-size: 22px; font-weight: 400; background: transparent; }
body.mt-theme table.shop_table.cart a.remove:hover { background: var(--mt-surface); color: var(--mt-text) !important; }
body.mt-theme table.shop_table.cart .mt-qty { min-height: 42px; border-width: 1px; border-color: var(--mt-border); background: var(--mt-bg); }
body.mt-theme table.shop_table.cart .mt-qty-btn { width: 40px; height: 40px; }
body.mt-theme table.shop_table.cart .quantity:not(.mt-qty) input.qty { width: 72px; min-height: 42px; border: 1px solid var(--mt-border); border-radius: 10px; text-align: center; }

/* Fila de cupón y "Actualizar carrito" */
body.mt-theme table.shop_table.cart tr:not(.cart_item) { display: block; }
body.mt-theme table.shop_table.cart td.actions { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 0 !important; border: 0 !important; background: none; text-align: left !important; }
body.mt-theme table.shop_table.cart td.actions .coupon { display: flex; flex: 1 1 320px; max-width: 440px; gap: 8px; float: none; padding: 0; }
body.mt-theme table.shop_table.cart td.actions .coupon label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.mt-theme table.shop_table.cart td.actions .coupon .input-text { flex: 1; width: auto !important; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--mt-border); border-radius: var(--mt-radius-pill); background: var(--mt-card, #fff); font-size: 15px; margin: 0; }
body.mt-theme table.shop_table.cart td.actions .coupon .button { min-height: 46px; padding: 0 20px; background: var(--mt-text); color: var(--mt-bg); font-size: 15px; }
body.mt-theme table.shop_table.cart td.actions > .button { min-height: 46px; background: transparent; color: var(--mt-text); box-shadow: inset 0 0 0 1.5px var(--mt-border); float: none; }
html.mt-js body.mt-theme table.shop_table.cart td.actions > button[name="update_cart"] { display: none; }

/* Resumen del pedido */
body.mt-theme .cart-collaterals .cart_totals { float: none; width: 100%; padding: 24px; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-radius: var(--mt-radius); }
body.mt-theme .cart_totals h2 { font-size: 24px; margin: 0 0 12px; }
body.mt-theme .cart_totals table.shop_table, body.mt-theme .woocommerce-checkout-review-order-table { border: 0 !important; margin: 0 !important; border-radius: 0; width: 100%; }
body.mt-theme .cart_totals table.shop_table th, body.mt-theme .cart_totals table.shop_table td { display: table-cell; padding: 10px 0 !important; border: 0 !important; border-top: 1px solid var(--mt-border) !important; font-weight: 500; background: none !important; vertical-align: top; }
body.mt-theme .cart_totals table.shop_table tr:first-child th, body.mt-theme .cart_totals table.shop_table tr:first-child td { border-top: 0 !important; }
body.mt-theme .cart_totals table.shop_table td { text-align: right !important; }
body.mt-theme .cart_totals table.shop_table td::before { display: none !important; }
body.mt-theme .cart_totals table.shop_table th { color: var(--mt-muted); width: 45%; }
body.mt-theme .cart_totals .order-total th, body.mt-theme .cart_totals .order-total td { padding-top: 14px !important; font-size: 20px; font-weight: 700 !important; color: var(--mt-text); }
body.mt-theme .cart_totals .order-total .includes_tax { display: block; font-size: 13px; font-weight: 400; color: var(--mt-muted); }
body.mt-theme .cart_totals .cart-discount td, body.mt-theme .cart_totals .cart-discount th, body.mt-theme .woocommerce-checkout-review-order-table .cart-discount th, body.mt-theme .woocommerce-checkout-review-order-table .cart-discount td { color: #2E7D32; font-weight: 600; }
body.mt-theme .cart_totals .woocommerce-shipping-destination, body.mt-theme .cart_totals .woocommerce-shipping-calculator { display: none; }
body.mt-theme .cart_totals #shipping_method { margin: 0; padding: 0; list-style: none; }
body.mt-theme .cart_totals .wc-proceed-to-checkout { padding: 16px 0 0; }
body.mt-theme .cart_totals .wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; min-height: 56px; margin: 0; font-size: 17px; font-weight: 700; }

/* Ventajas (envío, regalos, devolución, pago) */
.mt-perks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--mt-border); display: grid; gap: 12px; font-size: 14px; line-height: 1.4; }
.mt-perks__item { display: flex; gap: 12px; align-items: flex-start; }
.mt-perks__item svg { flex: none; width: 22px; height: 22px; color: var(--mt-accent); margin-top: 1px; }
.mt-perks__item strong { font-weight: 600; }
.mt-perks__item span span { color: var(--mt-muted); }
.mt-perks--checkout { margin-top: 20px; }

/* Carrito vacío */
body.mt-theme .cart-empty.woocommerce-info { justify-content: center; padding: 28px 18px; font-size: 17px; text-align: center; background: var(--mt-surface); }
.mt-cart-empty__lead { margin: 32px 0 14px; font-family: var(--mt-font-heading); font-size: 24px; }
body.woocommerce-cart .return-to-shop { margin: 28px 0 0; text-align: center; }
.mt-cart-head--empty { margin-bottom: 20px; }

@media (max-width: 960px) {
	body.woocommerce-cart .mt-content > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	body.woocommerce-cart .mt-content > .woocommerce > .cart-collaterals { grid-column: 1; position: static; margin-top: 24px; }
}
@media (max-width: 560px) {
	body.mt-theme table.shop_table.cart tr.cart_item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px; }
	body.mt-theme table.shop_table.cart td.product-thumbnail img { width: 72px !important; height: 72px; }
	body.mt-theme table.shop_table.cart td.product-name { font-size: 15px; }
	body.mt-theme table.shop_table.cart td.actions .coupon { max-width: none; }
}

/* ==========================================================================
   Caja (finalizar compra)
   ========================================================================== */
body.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto 1fr; grid-template-areas: "details heading" "details review"; gap: 0 40px; align-items: start; }
body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
body.woocommerce-checkout #customer_details { grid-area: details; float: none; width: auto; }
body.woocommerce-checkout #customer_details .col-1, body.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; padding: 24px; margin: 0 0 16px; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-radius: var(--mt-radius); }
body.woocommerce-checkout #customer_details h3, body.woocommerce-checkout #order_review_heading { font-size: 22px; margin: 0 0 16px; }
body.woocommerce-checkout #order_review_heading { grid-area: heading; padding: 24px 24px 0; margin: 0; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-bottom: 0; border-radius: var(--mt-radius) var(--mt-radius) 0 0; }
body.woocommerce-checkout #order_review { grid-area: review; padding: 12px 24px 24px; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-top: 0; border-radius: 0 0 var(--mt-radius) var(--mt-radius); }
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { background: transparent; padding: 0; justify-content: flex-start; font-size: 14px; }
body.woocommerce-checkout form.checkout_coupon { display: flex; gap: 8px; max-width: 480px; margin: 0 0 24px; padding: 16px; border: 1px dashed var(--mt-border); border-radius: 14px; }
body.woocommerce-checkout form.checkout_coupon p { margin: 0; flex: 1; }
body.woocommerce-checkout form.checkout_coupon p:first-of-type { display: none; }
body.woocommerce-checkout form.checkout_coupon .form-row-last { flex: none; }
body.woocommerce-checkout .woocommerce-shipping-fields h3 label { font-family: var(--mt-font-body); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0 !important; border: 0 !important; border-top: 1px solid var(--mt-border) !important; background: none !important; font-weight: 500; vertical-align: top; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table tbody tr:first-child td { border-top: 0 !important; }
.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.woocommerce-checkout-review-order-table .product-name { font-size: 14px; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 700; color: var(--mt-muted); }
.woocommerce-checkout-review-order-table tfoot th { color: var(--mt-muted); text-align: left; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 20px; font-weight: 700 !important; color: var(--mt-text); }
.woocommerce-checkout-review-order-table #shipping_method { margin: 0; padding: 0; list-style: none; }
body.mt-theme #payment { background: transparent !important; border-radius: 0; margin-top: 12px; }
body.mt-theme #payment ul.payment_methods { padding: 0 !important; border: 0 !important; margin: 0 0 12px; }
body.mt-theme #payment ul.payment_methods li { padding: 12px 14px; margin: 0 0 8px; border: 1.5px solid var(--mt-border); border-radius: 12px; list-style: none; }
body.mt-theme #payment ul.payment_methods li input[type="radio"] { accent-color: var(--mt-accent); }
body.mt-theme #payment div.payment_box { background: var(--mt-surface) !important; border-radius: 10px; font-size: 14px; }
body.mt-theme #payment div.payment_box::before { display: none; }
body.mt-theme #payment div.form-row.place-order { padding: 12px 0 0 !important; margin: 0; }
body.mt-theme .woocommerce-privacy-policy-text, body.mt-theme .woocommerce-terms-and-conditions-wrapper { font-size: 13.5px; line-height: 1.5; color: var(--mt-muted); }
body.mt-theme .woocommerce-terms-and-conditions-wrapper .form-row label { font-weight: 500; font-size: 14px; color: var(--mt-text); }
body.mt-theme #place_order { width: 100%; min-height: 56px; margin-top: 8px; font-size: 17px; font-weight: 700; float: none; }
body.mt-theme #payment .woocommerce-info { font-size: 14px; }

@media (max-width: 960px) {
	body.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "details" "heading" "review"; }
}
@media (max-width: 560px) {
	body.woocommerce-checkout #customer_details .col-1, body.woocommerce-checkout #customer_details .col-2, body.woocommerce-checkout #order_review { padding-inline: 16px; }
	body.woocommerce-checkout #order_review_heading { padding-inline: 16px; }
	body.mt-theme .woocommerce form .form-row-first, body.mt-theme .woocommerce form .form-row-last { float: none; width: 100%; }
}

/* Pedido recibido */
body.mt-theme .woocommerce-order { max-width: 760px; margin: 0 auto; }
body.mt-theme .woocommerce-thankyou-order-received { font-family: var(--mt-font-heading); font-size: 26px; line-height: 1.25; margin: 8px 0 20px; }
body.mt-theme ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 32px; padding: 20px; list-style: none; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-radius: var(--mt-radius); }
body.mt-theme ul.woocommerce-order-overview li { margin: 0; padding: 0; border: 0; font-size: 13px; color: var(--mt-muted); text-transform: none; }
body.mt-theme ul.woocommerce-order-overview li strong { display: block; font-size: 16px; color: var(--mt-text); }
body.mt-theme .woocommerce-order-details table.shop_table, body.mt-theme .woocommerce-customer-details address { border: 1px solid var(--mt-border); border-radius: var(--mt-radius); background: var(--mt-card, #fff); }

/* ==========================================================================
   Mi cuenta
   ========================================================================== */
body.woocommerce-account .mt-content > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
body.woocommerce-account .mt-content > .woocommerce > * { grid-column: 1 / -1; }
body.woocommerce-account .mt-content > .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; float: none; width: auto; }
body.woocommerce-account .mt-content > .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-radius: var(--mt-radius); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--mt-surface); font-weight: 700; }
.woocommerce-MyAccount-navigation li a:hover { background: var(--mt-surface); color: var(--mt-text); }
body.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
body.woocommerce-account .u-columns.col2-set::before, body.woocommerce-account .u-columns.col2-set::after { display: none; }
body.woocommerce-account .u-columns .u-column1, body.woocommerce-account .u-columns .u-column2 { float: none; width: auto; padding: 28px; background: var(--mt-card, #fff); border: 1px solid var(--mt-border); border-radius: var(--mt-radius); }
body.woocommerce-account form.login, body.woocommerce-account form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.woocommerce-account .u-columns h2 { font-size: 24px; }
body.woocommerce-account:not(.logged-in) .mt-content > .woocommerce { display: block; max-width: 960px; }
body.woocommerce-account .woocommerce-orders-table { border: 1px solid var(--mt-border); border-radius: var(--mt-radius); background: var(--mt-card, #fff); font-size: 15px; }
@media (max-width: 800px) {
	body.woocommerce-account .mt-content > .woocommerce, body.woocommerce-account .u-columns.col2-set { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	body.woocommerce-account .mt-content > .woocommerce > .woocommerce-MyAccount-navigation, body.woocommerce-account .mt-content > .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 4px; }
	.woocommerce-MyAccount-navigation li a { white-space: nowrap; }
}

/* ==========================================================================
   Mini carrito (panel lateral)
   ========================================================================== */
html.mt-drawer-open { overflow: hidden; }
.mt-drawer { position: fixed; inset: 0; z-index: 9999; }
.mt-drawer[hidden] { display: none; }
.mt-drawer__overlay { position: absolute; inset: 0; background: rgba(20, 16, 12, .45); opacity: 0; transition: opacity .25s; }
.mt-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--mt-bg); box-shadow: -12px 0 40px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .25s ease; outline: 0; }
.mt-drawer.is-open .mt-drawer__overlay { opacity: 1; }
.mt-drawer.is-open .mt-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .mt-drawer__overlay, .mt-drawer__panel { transition: none; } }
.mt-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--mt-border); }
.mt-drawer__title { margin: 0; font-family: var(--mt-font-heading); font-size: 22px; font-weight: 600; }
.mt-drawer__close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.mt-drawer__close:hover { background: var(--mt-surface); }
.mt-drawer__added { margin: 0; padding: 10px 20px; background: #E7F0E3; color: #1E5B25; font-size: 14px; font-weight: 600; }
.mt-drawer__added[hidden], .mt-drawer__added:empty { display: none; }

.mt-minicart { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mt-minicart.is-loading { background: linear-gradient(90deg, transparent, rgba(0,0,0,.03), transparent) 0 0 / 200% 100%; animation: mt-shimmer 1.2s infinite linear; }
@keyframes mt-shimmer { to { background-position: -200% 0; } }
.mt-minicart__items { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 8px 20px; }
.mt-minicart__item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 32px 14px 0; border-bottom: 1px solid var(--mt-border); transition: opacity .2s; }
.mt-minicart__item:last-child { border-bottom: 0; }
.mt-minicart__item.is-busy { opacity: .45; pointer-events: none; }
.mt-minicart__thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--mt-surface); }
.mt-minicart__name { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.mt-minicart__meta { display: block; margin-top: 2px; font-size: 13px; color: var(--mt-muted); }
.mt-minicart__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.mt-minicart__qty { display: inline-flex; align-items: center; border: 1px solid var(--mt-border); border-radius: var(--mt-radius-pill); background: var(--mt-card, #fff); }
.mt-minicart__qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: inherit; }
.mt-minicart__qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.mt-minicart__price { font-weight: 700; }
.mt-minicart__remove { position: absolute; top: 10px; right: -6px; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--mt-muted); cursor: pointer; }
.mt-minicart__remove svg { width: 18px; height: 18px; }
.mt-minicart__remove:hover { background: var(--mt-surface); color: var(--mt-text); }
.mt-minicart__foot { padding: 16px 20px 20px; border-top: 1px solid var(--mt-border); background: var(--mt-card, #fff); box-shadow: 0 -8px 24px rgba(0, 0, 0, .04); }
.mt-minicart__totals { margin: 0 0 14px; font-size: 14.5px; }
.mt-minicart__totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.mt-minicart__totals dt { color: var(--mt-muted); }
.mt-minicart__totals dd { margin: 0; font-weight: 600; }
.mt-minicart__discount dt, .mt-minicart__discount dd { color: #2E7D32 !important; font-weight: 600; }
.mt-minicart__total { margin-top: 6px; padding-top: 10px !important; border-top: 1px solid var(--mt-border); font-size: 18px; }
.mt-minicart__total dt { color: var(--mt-text) !important; font-weight: 700; }
.mt-minicart__total dd { font-weight: 700; }
.mt-minicart__total .includes_tax, .mt-minicart__total small { display: none; }
.mt-minicart__actions { display: grid; gap: 8px; }
.mt-minicart__actions .mt-btn { width: 100%; min-height: 50px; }
.mt-minicart .mt-perks { margin-top: 14px; padding-top: 14px; gap: 8px; font-size: 13px; }
.mt-minicart .mt-perks__item svg { width: 18px; height: 18px; }
.mt-minicart .mt-perks__item:nth-child(n+3) { display: none; }
.mt-minicart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 20px; text-align: center; color: var(--mt-muted); }
body.mt-theme table.shop_table.cart .mt-qty input.qty { width: 34px !important; min-height: 0 !important; height: 40px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
body.mt-theme .cart_totals table.shop_table th { width: auto; white-space: nowrap; padding-right: 12px !important; }
body.admin-bar .mt-drawer { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mt-drawer { top: 46px; } }
body.mt-theme #payment .form-row.place-order { display: block; }
.mt-perks--checkout { clear: both; width: 100%; }
.woocommerce-checkout-review-order-table td { white-space: nowrap; }
.woocommerce-checkout-review-order-table td.product-name { white-space: normal; }
@media (max-height: 760px) { .mt-minicart .mt-perks { display: none; } }
.mt-toc li.is-sub a { padding-left: 26px; font-size: 13px; }
@media (max-width: 960px) { body.woocommerce-checkout form.checkout { grid-template-rows: none; } }
