/* Tema de tienda de MultiAtlas sobre Storefront. La marca está en estas variables. */
:root {
    --shop-brand: #0b3d91;
    --shop-brand-dark: #082b68;
    --shop-accent: #f26a1b;
    --shop-accent-dark: #d4540a;
    /* Fondo naranja con texto blanco encima: el de marca da 3,06:1 y hace falta 4,5. Este da 5,18:1; el siguiente, para
       pasar el ratón y para la página actual. El de marca se queda donde no lleva texto (bordes, iconos). */
    --shop-accent-strong: #c2410c;
    --shop-accent-stronger: #9a3412;
    --shop-ink: #10233f;
    --shop-muted: #5d6b82;
    --shop-line: #d9dfe8;
    --shop-soft: #f4f6fa;
    --shop-ok: #15803d;
    --shop-warn: #b45309;
    --shop-radius: 10px;
    --shop-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
body,
button,
input,
select,
textarea {
    font-family: var(--shop-font);
    color: var(--shop-ink);
}

body {
    background: #fff;
    font-size: 16px;
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
.site-title {
    font-family: var(--shop-font);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--shop-ink);
}

a {
    color: var(--shop-brand);
}

/* Texto naranja sobre blanco: el oscuro, que pasa de 4,5:1 (el de marca y el «dark» se quedaban en 3,06 y 4,15). */
a:hover {
    color: var(--shop-accent-stronger);
}

/* Anillo de foco en el azul de marca: el naranja transparente de antes daba 1,86:1 sobre blanco. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--shop-brand);
    outline-offset: 2px;
}

.shop-icon {
    flex: none;
    vertical-align: middle;
}

.col-full {
    max-width: 1320px;
    padding-inline: 20px;
    margin-inline: auto;
    box-sizing: border-box;
}

/* Los campos nunca heredan su color: fondo y texto explícitos en todos. */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
    background: #fff;
    color: var(--shop-ink);
    border: 1px solid #9aa7ba;
    border-radius: 8px;
    box-shadow: none;
}

/* ---------- cabecera ---------- */
.site-header {
    padding: 0;
    margin-bottom: 0;
    border-bottom: 0;
    background: #fff;
    color: var(--shop-ink);
}

/* Storefront separa la cabecera del contenido con un margen grande, distinto en cada tipo de página. */
body .site-header {
    margin-bottom: 0 !important;
}

.site-header .shop-header__main {
    display: grid;
    grid-template-columns: minmax(180px, 300px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding-block: 14px;
}

.site-header .shop-nav__inner {
    padding-block: 0;
}

/* Storefront mete un «clearfix» en .col-full: dentro de una rejilla contaría como una celda más. */
.shop-header__main::before,
.shop-header__main::after,
.shop-nav__inner::before,
.shop-nav__inner::after {
    display: none;
}

.shop-logo {
    display: block;
    line-height: 0;
}

.shop-logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.shop-header__tools {
    display: flex;
    align-items: center;
    gap: 22px;
}

.shop-account,
.shop-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--shop-ink);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.shop-account .shop-icon,
.shop-cart .shop-icon {
    width: 30px;
    height: 30px;
    color: var(--shop-brand);
}

.shop-cart__text {
    display: flex;
    flex-direction: column;
}

.shop-cart__text span {
    color: var(--shop-muted);
    font-size: 13px;
    font-weight: 500;
}

.shop-cart__count {
    position: absolute;
    top: -8px;
    left: 18px;
    min-width: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--shop-accent-strong);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

/* Barra de familias: siempre una fila. «Todas las familias» abre el panel con todas; después, las destacadas que quepan
   (las que no, bajan a una segunda línea que no se ve: alto fijo y overflow oculto, así nunca asoma una cortada) y, al
   final, «Códigos de error». */
.shop-nav {
    --shop-nav-h: 50px;
    background: var(--shop-brand);
    color: #fff;
}

.shop-nav__inner {
    position: relative;
    display: flex;
    align-items: stretch;
    height: var(--shop-nav-h);
}

.shop-nav__all {
    display: flex;
    flex: none;
}

.shop-nav .shop-nav__toggle,
.shop-nav__list a,
.shop-nav__promo,
.shop-nav__codes {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--shop-nav-h);
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.shop-nav .shop-nav__toggle {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--shop-brand-dark);
    font-family: inherit;
    letter-spacing: 0;
    cursor: pointer;
}

.shop-nav__all.is-open .shop-nav__toggle,
.shop-nav__all:not(.is-js):hover .shop-nav__toggle,
.shop-nav__all:not(.is-js):focus-within .shop-nav__toggle {
    background: color-mix(in srgb, var(--shop-brand-dark) 78%, #000);
    color: #fff;
}

/* El color de pasar el ratón, solo con ratón: en pantalla táctil el :hover se queda pegado tras tocar y «Familias»,
   ya cerrado, seguía con el color de abierto. */
@media (hover: hover) {
    .shop-nav .shop-nav__toggle:hover {
        background: color-mix(in srgb, var(--shop-brand-dark) 78%, #000);
        color: #fff;
    }
}

.shop-nav__toggle .shop-icon:last-child {
    width: 18px;
    height: 18px;
    transition: transform 0.15s;
}

.shop-nav__all.is-open .shop-nav__toggle .shop-icon:last-child,
.shop-nav__all:not(.is-js):hover .shop-nav__toggle .shop-icon:last-child,
.shop-nav__all:not(.is-js):focus-within .shop-nav__toggle .shop-icon:last-child {
    transform: rotate(180deg);
}

.shop-nav__toggle-short {
    display: none;
}

.shop-nav__list {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    min-width: 0;
    height: var(--shop-nav-h);
    margin: 0;
    padding: 0;
    /* «clip» y no solo «hidden»: lo oculto no se puede desplazar, ni siquiera llevando el foco a una que no cabe. */
    overflow: hidden;
    overflow: clip;
    list-style: none;
}

.shop-nav__list li {
    flex: none;
}

/* Sin JavaScript nadie quita del tabulador las destacadas que no caben: cuando el foco llega a una, la lista se
   despliega debajo de la barra, con su fondo, para que se vea dónde está. */
.shop-nav__all:not(.is-js) ~ .shop-nav__list:focus-within {
    position: relative;
    z-index: 81;
    align-self: flex-start;
    height: auto;
    overflow: visible;
    background: var(--shop-brand);
}

.shop-nav__list a:hover,
.shop-nav__list a[aria-current="page"] {
    background: var(--shop-brand-dark);
    color: #fff;
}

.shop-nav__codes {
    flex: none;
    background: var(--shop-accent-strong);
}

/* Cinta amarilla «de tela rasgada» (Rubén, 28-oct): Ofertas flash en la barra y en el banner, y Reacondicionados en el banner.
   Amarillo intenso con trama de tela y los bordes deshilachados (clip-path); texto casi negro (contraste 13:1). La sombra va
   en el padre: un clip-path recorta la sombra del propio elemento. */
:root {
    --shop-tape: #ffd60a;
    --shop-tape-hot: #ffe43a;
    --shop-tape-ink: #111827;
    --shop-tear: polygon(1% 4%, 12% 0, 25% 3%, 40% 0, 55% 4%, 70% 1%, 85% 4%, 99% 0, 97% 12%, 100% 24%, 96% 37%, 99% 50%, 95% 63%,
        100% 76%, 97% 88%, 100% 100%, 86% 96%, 71% 100%, 56% 96%, 41% 100%, 26% 97%, 12% 100%, 0 97%, 3% 86%, 0 73%, 4% 60%, 1% 47%,
        5% 34%, 0 21%, 3% 10%);
}

.shop-tape {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 20px;
    background-color: var(--shop-tape);
    background-image:
        repeating-linear-gradient(0deg, rgba(17, 24, 39, .06) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(17, 24, 39, .05) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%, rgba(17, 24, 39, .08));
    color: var(--shop-tape-ink);
    clip-path: var(--shop-tear);
    line-height: 1.05;
    text-decoration: none;
    text-transform: uppercase;
    transform: rotate(-2deg);
    transition: background-color .15s, transform .15s;
}

a.shop-tape:hover,
a:hover > .shop-tape,
a:focus-visible > .shop-tape {
    background-color: var(--shop-tape-hot);
    color: var(--shop-tape-ink);
    transform: rotate(-2deg) scale(1.03);
}

.shop-tape strong {
    display: block;
    font-weight: 900;
    letter-spacing: .02em;
}

.shop-tape small {
    display: block;
    margin-top: 2px;
    font-size: .68em;
    font-weight: 700;
    letter-spacing: .03em;
}

.shop-tape .shop-icon {
    flex: none;
    fill: var(--shop-tape-ink);
    stroke: var(--shop-tape-ink);
}

/* En la barra: la cinta dentro del botón, sobre el azul. */
.shop-nav .shop-nav__promo--flash,
.shop-nav .shop-nav__promo--flash:hover,
.shop-nav .shop-nav__promo--flash[aria-current="page"] {
    padding: 0 10px;
    background: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}

.shop-nav__promo--flash .shop-tape {
    padding: 7px 18px 7px 14px;
    font-size: 15px;
}

.shop-nav__promo--flash[aria-current="page"] .shop-tape {
    outline: 0;
    background-color: var(--shop-tape-hot);
}

/* En el banner: más grande. */
.shop-hero__promo {
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35));
}

.shop-tape--big {
    padding: 14px 32px 14px 26px;
    font-size: 22px;
}

.shop-tape--big .shop-icon {
    width: 30px;
    height: 30px;
}

/* Reacondicionados, como una pegatina girada al otro lado, encima de los puntos del banner. */
.shop-hero__side {
    display: grid;
    gap: 22px;
    justify-items: start;
}

.shop-nav__promo--flash .shop-nav__promo-long,
.shop-tape--big > span {
    display: block;
}

.shop-tape--refurb {
    display: grid;
    gap: 4px;
    padding: 16px 30px;
    font-size: 15px;
    text-align: left;
    transform: rotate(2deg);
}

a.shop-tape--refurb:hover {
    transform: rotate(2deg) scale(1.03);
}

.shop-tape--refurb strong {
    font-size: 25px;
}

.shop-tape--refurb span {
    font-weight: 800;
    font-size: 17px;
}

.shop-tape--refurb em {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-self: start;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--shop-tape-ink);
    color: var(--shop-tape);
    font-style: normal;
    font-weight: 900;
    font-size: 15px;
}

.shop-tape--refurb em .shop-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--shop-tape);
}

/* Antes «Descuentos de lanzamiento» (LM, 21-oct): verde, con texto blanco a 5,0:1. Queda para los demás botones de la clase. */
.shop-nav__promo {
    flex: none;
    background: var(--shop-ok);
}

.shop-nav__promo:hover,
.shop-nav__promo[aria-current="page"] {
    background: #166534;
    color: #fff;
}

.shop-nav__promo-short {
    display: none;
}

.shop-nav__codes:hover,
.shop-nav__codes[aria-current="page"] {
    background: var(--shop-accent-stronger);
    color: #fff;
}

/* Storefront pinta un contorno morado a todo :focus, también al pulsar con el ratón: en la barra, solo el de teclado, y
   por dentro, porque la lista recorta lo que sale de su alto. */
.shop-nav a:focus,
.shop-nav .shop-nav__toggle:focus {
    outline: none;
}

.shop-nav a:focus-visible,
.shop-nav .shop-nav__toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

.shop-nav__panel {
    display: none;
    position: absolute;
    z-index: 80;
    top: 100%;
    right: 0;
    left: 0;
    padding: 16px 20px 20px;
    border: 1px solid var(--shop-line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #fff;
    color: var(--shop-ink);
    box-shadow: 0 22px 44px rgb(16 35 63 / 22%);
}

/* Sin JavaScript se abre al pasar el ratón y con el foco (teclado). Con él (.is-js) manda .is-open, que pone theme.js. */
.shop-nav__all:not(.is-js):hover .shop-nav__panel,
.shop-nav__all:not(.is-js):focus-within .shop-nav__panel,
.shop-nav__all.is-open .shop-nav__panel {
    display: block;
}

.shop-nav__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-nav__grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--shop-ink);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.shop-nav__grid a:hover,
.shop-nav__grid a[aria-current="page"] {
    background: var(--shop-soft);
    color: var(--shop-brand);
}

.shop-nav__grid a:focus-visible {
    outline: 3px solid var(--shop-brand);
    outline-offset: -3px;
    background: var(--shop-soft);
    color: var(--shop-brand);
}

.shop-nav__grid .shop-icon {
    width: 22px;
    height: 22px;
    color: var(--shop-accent);
}

/* ---------- contenido ---------- */
.site-content {
    padding-top: 24px;
}

.home.woocommerce-active .site-main,
.site-main {
    margin-bottom: 0;
}

.site-header + .storefront-breadcrumb,
.storefront-breadcrumb + .site-content {
    padding-top: 0;
}

.storefront-breadcrumb {
    margin: 0 0 16px;
    padding: 0;
    background: none;
    color: var(--shop-muted);
    font-size: 14px;
}

.storefront-breadcrumb a {
    color: var(--shop-muted);
}

.shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 36px 40px;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--shop-brand-dark), var(--shop-brand));
    color: #fff;
}

.shop-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.12;
}

.shop-hero p {
    margin: 0;
    color: #dbe6fb;
    font-size: 18px;
}

.shop-hero__promo {
    margin-top: 18px !important;
}

.shop-hero__promo-btn.button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--shop-accent-strong);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.shop-hero__promo-btn.button:hover {
    background: var(--shop-accent-stronger);
    color: #fff;
}

.shop-hero__points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
}

.shop-hero__points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-hero__points .shop-icon {
    color: #ffb27f;
}

.shop-section {
    margin-top: 40px;
}

.shop-section > h2,
.shop-section__head h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.shop-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.shop-section__head a {
    font-weight: 700;
    white-space: nowrap;
}

/* LM, 1-nov: el título de cada bloque de productos lleva a su listado y tiene que verse que se puede pulsar (zona táctil de 44 px). */
.shop-section__head h2 .shop-section__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--shop-ink);
    font-weight: inherit;
    white-space: normal;
    text-decoration: none;
}

.shop-section__go {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--shop-accent-strong);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.shop-section__head h2 .shop-section__link:hover .shop-section__text,
.shop-section__head h2 .shop-section__link:focus-visible .shop-section__text {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.shop-section__head h2 .shop-section__link:hover .shop-section__go,
.shop-section__head h2 .shop-section__link:focus-visible .shop-section__go {
    background: var(--shop-accent-stronger);
    transform: translateX(3px);
}

.shop-section__head h2 .shop-section__link:focus-visible {
    outline: 3px solid var(--shop-brand);
    outline-offset: 4px;
    border-radius: 6px;
}

.shop-section__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.shop-section--panel {
    padding: 28px 32px 32px;
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    background: var(--shop-soft);
}

.shop-section--panel > p {
    margin: 0 0 18px;
    color: var(--shop-muted);
}

.shop-families {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-families a {
    display: grid;
    gap: 4px;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: #fff;
    color: var(--shop-ink);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.shop-families a:hover {
    border-color: var(--shop-brand);
    box-shadow: 0 10px 24px rgb(16 35 63 / 10%);
    transform: translateY(-2px);
}

.shop-families .shop-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    color: var(--shop-accent);
}

.shop-families strong {
    font-size: 18px;
}

.shop-families span {
    color: var(--shop-muted);
    font-size: 14px;
}

/* ---------- portada: las 6 familias con foto grande (LM, 19-oct) ---------- */
.shop-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-cards a {
    display: grid;
    gap: 12px;
    height: 100%;
    padding: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: #fff;
    color: var(--shop-ink);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.shop-cards a:hover,
.shop-cards a:focus-visible {
    border-color: var(--shop-brand);
    box-shadow: 0 12px 28px rgb(16 35 63 / 12%);
    transform: translateY(-2px);
}

/* 3:2 y enteras: los carteles de LM (22-oct) llevan texto y logos hasta el borde; recortados se perdían. */
.shop-cards__img {
    display: block;
    aspect-ratio: 3 / 2;
    background: #fff;
}

.shop-cards__img img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
}

.shop-cards strong {
    font-size: 18px;
}

.shop-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-brands a {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: #fff;
    color: var(--shop-ink);
    font-weight: 600;
    text-decoration: none;
}

.shop-brands a:hover,
.shop-brands a:focus-visible {
    border-color: var(--shop-brand);
    color: var(--shop-brand);
}

/* ---------- dentro de una categoría: subcategorías y gama de modelo ---------- */
.shop-subcats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 18px;
    padding: 0;
    list-style: none;
}

.shop-subcats a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: #fff;
    color: var(--shop-ink);
    font-weight: 600;
    text-decoration: none;
}

.shop-subcats a span {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--shop-soft);
    color: var(--shop-muted);
    font-size: 13px;
    font-weight: 500;
}

.shop-subcats a:hover,
.shop-subcats a:focus-visible {
    border-color: var(--shop-brand);
    color: var(--shop-brand);
}

.shop-gama {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: var(--shop-soft);
}

.shop-gama label {
    font-weight: 600;
}

.shop-gama select {
    min-width: 220px;
    max-width: 100%;
}

@media (max-width: 900px) {
    .shop-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .shop-cards strong {
        font-size: 16px;
    }
}

/* ---------- tarjeta de producto ---------- */
ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

ul.products::before,
ul.products::after {
    display: none;
}

ul.products li.product {
    display: flex;
    flex-direction: column;
    float: none;
    width: auto !important;
    margin: 0 !important;
    padding: 14px;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: #fff;
    text-align: left;
}

ul.products li.product:hover {
    border-color: #b9c4d6;
    box-shadow: 0 10px 24px rgb(16 35 63 / 8%);
}

ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: var(--shop-ink);
    text-decoration: none;
}

ul.products li.product img {
    width: 100%;
    aspect-ratio: 1;
    margin: 0 0 12px;
    border-radius: 8px;
    background: var(--shop-soft);
    object-fit: contain;
}

.shop-card__brand,
.shop-product__brand {
    color: var(--shop-brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

ul.products li.product .woocommerce-loop-product__title {
    margin: 2px 0 6px;
    color: var(--shop-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.shop-card__ref {
    display: block;
    color: var(--shop-muted);
    font-size: 13px;
}

ul.products li.product .price {
    display: block;
    margin: 10px 0 2px;
    color: var(--shop-accent-dark);
    font-size: 22px;
    font-weight: 800;
}

ul.products li.product .price .woocommerce-price-suffix,
.single-product div.product .price .woocommerce-price-suffix {
    color: var(--shop-muted);
    font-size: 12px;
    font-weight: 500;
}

.shop-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
}

.shop-stock .shop-icon {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.shop-stock--yes {
    color: var(--shop-ok);
}

.shop-stock--ask {
    color: var(--shop-warn);
}

/* Reacondicionado con 1 unidad (26-oct): pastilla, para que se lea antes que el plazo. */
.shop-stock--last {
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--shop-accent-strong);
    color: #fff;
}

.shop-stock--no {
    color: var(--shop-muted);
}

/* ---------- portada: códigos de error y TopManitas ---------- */
.shop-codes-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: center;
    padding: 26px 30px;
    border: 2px solid var(--shop-accent);
    border-radius: 16px;
    background: #fff7f0;
}

.shop-codes-home h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.shop-codes-home p {
    margin: 0;
    color: var(--shop-ink);
}

.shop-codes-home__brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-codes-home__brands a {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: #fff;
    color: var(--shop-brand);
    font-weight: 700;
    text-decoration: none;
}

.shop-codes-home__brands a:hover,
.shop-codes-home__brands a:focus-visible {
    border-color: var(--shop-accent);
    color: var(--shop-accent-stronger);
}

.shop-install-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.shop-install-home__box {
    padding: 24px 28px;
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    background: var(--shop-soft);
}

.shop-install-home__box h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.shop-install-home__box p {
    margin: 0 0 14px;
}

.shop-install-home__box p:last-child {
    margin: 0;
}

.button.button--ghost {
    border: 2px solid var(--shop-brand);
    background: #fff;
    color: var(--shop-brand);
}

.button.button--ghost:hover {
    background: var(--shop-brand);
    color: #fff;
}

@media (max-width: 782px) {
    .shop-codes-home {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .shop-codes-home h2 {
        font-size: 23px;
    }
}

/* ---------- botones ---------- */
.button,
button.button,
input[type="submit"],
.added_to_cart,
.wc-block-components-button:not(.is-link) {
    border-radius: 8px;
    background: var(--shop-accent-strong);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.added_to_cart:hover,
.wc-block-components-button:not(.is-link):hover {
    background: var(--shop-accent-stronger);
    color: #fff;
}

ul.products li.product .button {
    width: 100%;
    margin: 12px 0 0;
    padding: 12px;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    box-sizing: border-box;
}

ul.products li.product .added_to_cart {
    margin-top: 8px;
    padding: 8px;
    background: var(--shop-brand);
    font-size: 13px;
    text-align: center;
}

.button.alt,
button.alt,
.single_add_to_cart_button {
    background: var(--shop-accent-strong);
}

/* Storefront tiene su propio :hover para .alt, más específico que el de .button. */
.button.alt:hover,
button.alt:hover,
.single_add_to_cart_button:hover {
    background: var(--shop-accent-stronger);
    color: #fff;
}

/* ---------- ficha ---------- */
.single-product div.product .product_title {
    margin: 2px 0 6px;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.15;
}

.shop-product__brand {
    margin: 0;
}

.shop-product__ref {
    margin: 0 0 14px;
    color: var(--shop-muted);
}

.shop-product__ref strong {
    color: var(--shop-ink);
}

.single-product div.product p.price {
    margin: 0 0 6px;
    color: var(--shop-accent-dark);
    font-size: 34px;
    font-weight: 800;
}

.shop-product__stock {
    margin: 0 0 18px;
}

.shop-product__stock .shop-stock {
    font-size: 15px;
}

.single-product div.product form.cart {
    display: flex;
    gap: 12px;
    padding: 0;
    margin-bottom: 18px;
}

.single-product div.product form.cart .quantity .qty {
    width: 76px;
    height: 52px;
    font-size: 18px;
    text-align: center;
}

.single-product div.product form.cart .single_add_to_cart_button {
    flex: 1;
    max-width: 360px;
    height: 52px;
    font-size: 16px;
    text-transform: uppercase;
}

.single-product div.product .woocommerce-product-gallery img {
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: var(--shop-soft);
}

.single-product div.product .product_meta {
    padding-top: 14px;
    border-top: 1px solid var(--shop-line);
    color: var(--shop-muted);
    font-size: 14px;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--shop-brand);
}

/* ---------- listados ---------- */
.woocommerce-products-header__title,
.page-title {
    font-size: clamp(26px, 3vw, 36px);
}

.storefront-sorting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--shop-muted);
    font-size: 14px;
}

.storefront-sorting .woocommerce-ordering,
.storefront-sorting .woocommerce-result-count,
.storefront-sorting .woocommerce-pagination {
    float: none;
    margin: 0;
    padding: 0;
}

/* La página en la que se está, en el azul de la marca (antes, gris claro casi igual que las demás). */
.woocommerce-pagination .page-numbers li .page-numbers.current {
    background: var(--shop-brand);
    color: #fff;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-noreviews,
p.no-comments {
    border-radius: var(--shop-radius);
    background: var(--shop-brand);
}

/* ---------- pie ---------- */
/* Marca y atención al cliente a un lado; al otro, los enlaces de cada grupo seguidos en renglones. */
.site-footer {
    margin-top: 56px;
    padding: 32px 0 20px;
    background: var(--shop-ink);
    color: #c6d0e0;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffb27f;
}

/* Sobre el azul oscuro, el anillo naranja claro (el general apenas se distingue aquí). */
.site-footer a:focus-visible {
    outline-color: #ffb27f;
}

.shop-footer {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 24px 56px;
    align-items: start;
}

.shop-footer p {
    margin: 0;
}

.shop-footer__brand {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.shop-footer__label {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shop-footer__contact {
    margin-top: 14px;
}

.shop-footer__contact a {
    display: inline-block;
    padding: 2px 0;
}

/* Razón social, NIF y domicilio: debajo del horario, más pequeño que el teléfono. */
.shop-footer__company {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
}

.shop-footer__links {
    display: grid;
    gap: 10px;
}

.shop-footer__row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 2px 16px;
    align-items: baseline;
}

.shop-footer__inline {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    list-style: none;
}

.shop-footer__inline li {
    display: inline;
    white-space: nowrap;
}

/* El punto medio va pegado al enlace anterior: la línea parte después del punto, nunca antes. No se lee en voz alta. */
.shop-footer__inline li:not(:last-child)::after {
    content: "·";
    content: "·" / "";
    margin: 0 0.15em 0 0.5em;
    color: #8193ad;
}

/* Un enlace más largo que la columna (una entrada larga del menú «Pie de página») parte línea dentro de sí: no ensancha
   la columna ni saca a los demás de la pantalla. */
.shop-footer__inline a {
    display: inline-block;
    min-width: 24px;
    max-width: calc(100% - 1em);
    padding: 3px 0;
    line-height: 1.25;
    white-space: normal;
}

.shop-footer__legal {
    margin: 22px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgb(255 255 255 / 14%);
    font-size: 14px;
}

/* Firma de MultiAtlas: un recuadro propio, más grande que el pie y con el color de acento, para que se vea. */
.shop-footer__credit {
    margin: 18px 0 0;
    padding: 14px 18px;
    border: 1px solid var(--shop-accent);
    border-radius: var(--shop-radius);
    background: rgb(255 255 255 / 6%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.shop-footer__credit a {
    color: var(--shop-accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.shop-footer__credit a:hover,
.shop-footer__credit a:focus-visible {
    color: #fff;
}

/* ---------- móvil ---------- */
@media (max-width: 1199px) {
    .shop-nav__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .site-header .shop-header__main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 16px;
        padding-block: 10px;
    }

    .shop-logo img {
        max-width: 190px;
    }

    .shop-header__search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .shop-account span,
    .shop-cart__text {
        display: none;
    }

    .shop-header__tools {
        gap: 18px;
    }

    /* Móvil: «Familias» y «Códigos de error», mitad y mitad y de borde a borde; las destacadas, dentro del panel. */
    .shop-nav {
        --shop-nav-h: 48px;
    }

    .shop-nav .shop-nav__inner {
        padding-inline: 0;
    }

    .shop-nav__all {
        flex: 1 1 0;
        min-width: 0;
    }

    .shop-nav .shop-nav__toggle,
    .shop-nav__promo,
    .shop-nav__codes {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        padding: 0 10px;
        font-size: 14px;
        text-align: center;
        white-space: normal;
    }

    .shop-nav__toggle-long,
    .shop-nav__list {
        display: none;
    }

    .shop-nav__toggle-short,
    .shop-nav__promo-short {
        display: inline;
    }

    .shop-nav__promo-long {
        display: none;
    }

    /* Móvil con cuatro botones (LM, 26-oct: entra «Reparación»): icono encima y texto debajo, que a lo ancho no cabía. */
    .shop-nav {
        --shop-nav-h: 58px;
    }

    .shop-nav .shop-nav__toggle,
    .shop-nav__promo,
    .shop-nav__codes {
        flex-direction: column;
        gap: 3px;
        padding: 0 4px;
        font-size: 12px;
        line-height: 1.15;
    }

    .shop-nav .shop-nav__toggle .shop-icon:last-child {
        display: none;
    }

    /* Con la pantalla baja o con zoom, al menos 18rem; «dvh» descuenta las barras del navegador del móvil donde lo entiende. */
    .shop-nav__panel {
        max-height: max(18rem, calc(100vh - 170px));
        max-height: max(18rem, calc(100dvh - 170px));
        padding: 10px 12px 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .shop-nav__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 8px;
    }

    .shop-nav__grid a {
        padding: 8px;
    }

    .shop-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 26px 22px;
    }

    .shop-section--panel {
        padding: 22px 18px;
    }

    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    ul.products li.product {
        padding: 10px;
    }

    ul.products li.product .price {
        font-size: 19px;
    }

    /* minmax(0, …) y no 1fr: la columna no puede crecer más que la pantalla por un contenido largo. */
    .shop-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .shop-footer__row {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Objetivos táctiles de 24 px o más (WCAG 2.5.8) también en los enlaces seguidos. */
    .shop-footer__inline a {
        padding: 4px 0;
    }

    .single-product div.product form.cart .single_add_to_cart_button {
        max-width: none;
    }
}

/* Móvil estrecho (7-nov-2026): «AÑADIR AL CARRITO» partía en dos líneas y la segunda quedaba cortada por la altura fija del botón. */
@media (max-width: 420px) {
    .single-product div.product form.cart .single_add_to_cart_button {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 15px;
        white-space: nowrap;
    }
}

/* ---------- cabeceras de listado ---------- */
.storefront-breadcrumb {
    padding-top: 12px;
}

.site-main .woocommerce-products-header,
.site-main .hentry .entry-header {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    text-align: left;
}

.woocommerce-products-header__title,
.page-title,
.hentry .entry-title {
    margin: 0;
}

/* ---------- ficha: detalles ---------- */
.single-product div.product .product_meta .sku_wrapper {
    display: none; /* la referencia ya está bajo el nombre */
}

.single-product div.product .related > h2,
.single-product div.product .upsells > h2,
.site-main .cross-sells > h2 {
    margin: 0 0 14px;
    font-size: 24px;
    text-align: left;
}

.single-product div.product .related,
.single-product div.product .upsells {
    clear: both;
    padding-top: 32px;
}

@media (max-width: 782px) {
    .shop-families {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .shop-families a {
        padding: 14px;
    }

    .shop-families strong {
        font-size: 16px;
    }

    .shop-section {
        margin-top: 28px;
    }

    .shop-section__head {
        flex-wrap: wrap;
    }
}

/* Storefront centra estos títulos con una regla más específica que cualquiera razonable. */
.single-product div.product .related.products > h2,
.single-product div.product .upsells.products > h2 {
    text-align: left !important;
}

.single-product div.product .woocommerce-tabs {
    padding-top: 24px;
    padding-bottom: 0;
}

/* Ficha con una sola pestaña (7-nov-2026): la descripción va directa, sin la lista de pestañas de WooCommerce. */
.single-product div.product .shop-description-wrap {
    clear: both;
    padding-top: 24px;
}

.single-product div.product .shop-description > h2:first-child {
    margin: 0 0 16px;
    font-size: 24px;
}

/* Segundo «Añadir al carrito» al final de la descripción (7-nov-2026). Mismo formulario que el de arriba. */
.single-product div.product .shop-buy-again {
    clear: both;
    margin: 32px 0 8px;
    padding: 24px;
    border: 1px solid var(--shop-line);
    border-radius: 8px;
    background: var(--shop-surface, #fff);
}

.single-product div.product .shop-buy-again__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.single-product div.product .shop-buy-again p.price {
    font-size: 28px;
}

.single-product div.product .shop-buy-again form.cart {
    margin-bottom: 0;
}

/* Título de las páginas en móvil (23-oct): «Repuestos reacondicionados» partía la palabra con la letra de Storefront. */
@media (max-width: 782px) {
    .page .entry-title,
    .page .page-title {
        font-size: clamp(24px, 7.6vw, 32px);
        line-height: 1.15;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }
}

/* Reacondicionados (26-oct-2026): distintivo en ficha y listado, garantía y envío debajo del botón de compra. */
.ma-refurb-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 10px;
    border-radius: 4px;
    background: #e8f5ec;
    color: #1d6b3a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ma-refurb-badge--loop {
    margin: 0 0 4px;
    font-size: 11px;
}
.ma-refurb-promises {
    margin: 12px 0;
    padding: 12px 16px 12px 34px;
    border: 1px solid #cfe6d7;
    border-radius: 6px;
    background: #f6fbf8;
}
.ma-refurb-promises li {
    margin: 2px 0;
}
.ma-refurb-compatible,
.ma-refurb-twin {
    margin: 8px 0;
}
.ma-refurb-archive {
    margin: 0 0 20px;
}
.ma-refurb-archive .ma-refurb-promises {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: disc;
}
.ma-refurb-coming {
    margin: 10px 0 0;
    font-size: 16px;
}
.ma-refurb-coming .button {
    margin-left: 8px;
}

/* Barra de escritorio (LM, 26-oct: Calderas · Aire · Aerotermia · Reacondicionados · Reparación · Códigos · Descuentos): un poco más
   compacta para que quepan las cuatro familias desde 1280 px; hasta 1365 px, los tres botones sin icono. Medido sobre la portada real. */
@media (min-width: 783px) {
    .shop-nav .shop-nav__toggle,
    .shop-nav__list a,
    .shop-nav__promo,
    .shop-nav__codes {
        gap: 6px;
        padding: 0 11px;
        font-size: 14px;
    }
}

@media (min-width: 783px) and (max-width: 1365px) {
    .shop-nav__promo .shop-icon,
    .shop-nav__codes .shop-icon {
        display: none;
    }
}

/* Cinta de Ofertas flash en el móvil (28-oct): en la barra, «Flash» con el rayo, a la medida del botón; en el banner, a lo ancho. */
@media (max-width: 782px) {
    .shop-nav .shop-nav__promo--flash {
        padding: 0 4px;
    }

    .shop-nav__promo--flash .shop-nav__promo-long {
        display: none;
    }

    .shop-nav__promo--flash .shop-tape {
        gap: 4px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .shop-tape--big {
        padding: 12px 22px;
        font-size: 18px;
    }

    .shop-tape--refurb strong {
        font-size: 21px;
    }

    .shop-tape--refurb span {
        font-size: 15px;
    }
}

/* ---------- «Comprar ahora» (MA Shop, 11-nov-2026) ----------
   Con el botón puesto (clase has-shop-buy-now en el body): «Comprar ahora» es el principal, relleno, y «Añadir al carrito» pasa a segundo
   plano, con borde. En ordenador van lado a lado; en móvil, «Comprar ahora» junto a la cantidad y «Añadir al carrito» debajo, a lo ancho.
   En móvil, además, una barra fija abajo con el precio y los dos caminos desde que carga la ficha. Sin el botón, nada de esto se aplica. */
.has-shop-buy-now.single-product div.product form.cart {
    flex-wrap: wrap;
}

.single-product div.product form.cart .shop-buy-now {
    flex: 1 1 190px;
    height: 52px;
    padding: 0 12px;
    font-size: 16px;
    text-transform: uppercase;
    white-space: nowrap;
}

.has-shop-buy-now.single-product div.product form.cart .single_add_to_cart_button {
    flex: 1 1 190px;
    max-width: none;
    padding: 0 12px;
    border: 2px solid var(--shop-brand);
    background: #fff;
    color: var(--shop-brand);
    white-space: nowrap;
}

.has-shop-buy-now.single-product div.product form.cart .single_add_to_cart_button:hover {
    background: var(--shop-soft);
    color: var(--shop-brand-dark);
}

/* Con «Comprar ahora» puesto, en la ficha solo hay un botón relleno, y es ese (decano, 11-nov-2026): el de «Pide instalador en
   TopManitas» pasa a ir con borde, como «Añadir al carrito». */
.has-shop-buy-now .ma-install-cta__button {
    border: 2px solid var(--shop-brand);
    background: #fff;
    color: var(--shop-brand);
}

.has-shop-buy-now .ma-install-cta__button:hover {
    background: var(--shop-soft);
    color: var(--shop-brand-dark);
}

.shop-buybar {
    display: none;
}

@media (max-width: 782px) {
    .has-shop-buy-now.single-product div.product form.cart .single_add_to_cart_button {
        flex-basis: 100%;
    }

    /* Por debajo del aviso de cookies (que va en lo más alto): hasta que se contesta, manda el aviso. */
    .shop-buybar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 900;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--shop-line);
        background: #fff;
        box-shadow: 0 -4px 16px rgba(16, 35, 63, .14);
    }

    /* Con las ventajas puestas: las tres primeras, en una línea encima del precio y del botón. */
    .shop-buybar .shop-perks-strip {
        flex: 0 0 100%;
    }

    .shop-buybar .shop-buybar__price {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        color: var(--shop-ink);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.1;
    }

    .shop-buybar .shop-buybar__price del {
        display: block;
        color: var(--shop-muted);
        font-size: 12px;
        font-weight: 400;
    }

    .shop-buybar .shop-buybar__price ins {
        text-decoration: none;
    }

    .shop-buybar .shop-buybar__price .woocommerce-price-suffix {
        display: block;
        color: var(--shop-muted);
        font-size: 11px;
        font-weight: 400;
    }

    .shop-buybar__form {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        margin: 0;
    }

    .shop-buybar .shop-buybar__button {
        height: 48px;
        padding: 0 16px;
        font-size: 15px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .shop-buybar .shop-buybar__add {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 2px solid var(--shop-brand);
        background: #fff;
        color: var(--shop-brand);
    }

    .shop-buybar .shop-buybar__add:hover {
        background: var(--shop-soft);
        color: var(--shop-brand-dark);
    }

    /* El final de la página (el pie) no se queda debajo de la barra. */
    body.has-shop-buy-now {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }

    body.has-shop-buy-now.has-shop-perks {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    }
}

@media print {
    .shop-buybar {
        display: none;
    }
}

/* ---------- Móvil más compacto (Rubén, 11-nov-2026: «en el móvil lo veo todo súper alargado») ----------
   Solo estilos y solo en el móvil, bajo la clase shop-compact del body, que pone el tema según la opción ma_shop_movil_compacto
   (no · vista-previa · si). El escritorio no cambia. Menos alto en la cabecera, la portada, los listados y la ficha; letra de cuerpo 15 px;
   subcategorías en una fila que se desliza; la descripción de la ficha, plegada con «Ver más» (si no hay JavaScript, se ve entera). */
@media (max-width: 782px) {
    body.shop-compact {
        font-size: 15px;
    }

    body.shop-compact .site-header .shop-header__main {
        gap: 8px 12px;
        padding-block: 6px;
    }

    body.shop-compact .shop-logo img {
        max-width: 150px;
    }

    body.shop-compact .shop-account .shop-icon,
    body.shop-compact .shop-cart .shop-icon {
        width: 24px;
        height: 24px;
    }

    body.shop-compact .shop-header__search input[type="search"],
    body.shop-compact .shop-header__search input[type="text"] {
        height: 42px;
        font-size: 15px;
    }

    body.shop-compact .shop-header__search button {
        height: 42px;
    }

    body.shop-compact .shop-nav {
        --shop-nav-h: 44px;
    }

    body.shop-compact .shop-nav .shop-nav__toggle,
    body.shop-compact .shop-nav__promo,
    body.shop-compact .shop-nav__codes {
        flex-direction: row;
        gap: 5px;
        font-size: 12px;
        line-height: 1.1;
    }

    body.shop-compact .shop-nav .shop-icon {
        width: 16px;
        height: 16px;
    }

    body.shop-compact .shop-nav__promo--flash .shop-tape {
        padding: 4px 10px;
        font-size: 12px;
    }

    body.shop-compact .storefront-breadcrumb {
        overflow: hidden;
        padding-block: 6px;
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    body.shop-compact h1,
    body.shop-compact .page-title,
    body.shop-compact .woocommerce-products-header__title,
    body.shop-compact .entry-title {
        font-size: 22px;
        line-height: 1.15;
    }

    body.shop-compact h2 {
        font-size: 19px;
    }

    /* Portada */
    body.shop-compact .shop-hero {
        gap: 12px;
        padding: 16px 16px 18px;
        border-radius: 12px;
    }

    body.shop-compact .shop-hero h1 {
        margin-bottom: 6px;
        font-size: 22px;
    }

    body.shop-compact .shop-hero p {
        font-size: 15px;
        line-height: 1.45;
    }

    body.shop-compact .shop-tape--big {
        padding: 7px 14px;
        font-size: 14px;
    }

    body.shop-compact .shop-tape--refurb strong {
        font-size: 16px;
    }

    body.shop-compact .shop-tape--refurb span {
        font-size: 12px;
    }

    body.shop-compact .shop-hero__points {
        gap: 6px;
        font-size: 14px;
    }

    body.shop-compact .shop-section--panel {
        padding: 14px 12px;
    }

    /* Listados: dos por fila, tarjeta más corta (foto 4:3, nombre en dos líneas como mucho) */
    body.shop-compact ul.products {
        gap: 8px;
    }

    body.shop-compact ul.products li.product {
        padding: 8px;
    }

    body.shop-compact ul.products li.product img {
        aspect-ratio: 4 / 3;
        margin-bottom: 6px;
    }

    body.shop-compact .shop-card__brand {
        font-size: 11px;
    }

    body.shop-compact ul.products li.product .woocommerce-loop-product__title {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 0 4px;
        font-size: 13px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.shop-compact .shop-card__ref {
        font-size: 11px;
    }

    body.shop-compact ul.products li.product .price {
        font-size: 16px;
    }

    body.shop-compact ul.products li.product .shop-stock {
        font-size: 12px;
        line-height: 1.25;
    }

    body.shop-compact ul.products li.product .button {
        min-height: 38px;
        margin-top: 8px;
        padding: 8px 6px;
        font-size: 12px;
    }

    /* Familias: las subcategorías, en una fila que se desliza con el dedo */
    body.shop-compact .shop-subcats ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-inline: -16px;
        padding: 2px 16px 8px;
        scrollbar-width: none;
    }

    body.shop-compact .shop-subcats ul::-webkit-scrollbar {
        display: none;
    }

    body.shop-compact .shop-subcats li {
        flex: 0 0 auto;
    }

    body.shop-compact .shop-subcats a {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    body.shop-compact .storefront-sorting {
        gap: 6px 10px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    body.shop-compact .ma-req-cta {
        gap: 6px;
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Ficha */
    body.shop-compact.single-product div.product .woocommerce-product-gallery img {
        max-height: 230px;
        object-fit: contain;
    }

    body.shop-compact.single-product div.product .product_title {
        margin-bottom: 4px;
        font-size: 20px;
    }

    body.shop-compact .shop-product__brand {
        font-size: 11px;
    }

    body.shop-compact.single-product div.product p.price {
        font-size: 26px;
    }

    body.shop-compact .ma-install-cta {
        margin: 12px 0;
        padding: 10px 12px;
    }

    body.shop-compact .ma-install-cta__title {
        font-size: 15px;
    }

    body.shop-compact .ma-install-cta__text {
        font-size: 13px;
    }

    /* El segundo bloque de compra sobra con la barra fija de abajo, que hace lo mismo. */
    body.shop-compact.has-shop-buy-now .shop-buy-again {
        display: none;
    }

    body.shop-compact.single-product div.product .shop-description-wrap {
        padding-top: 12px;
    }

    /* El alto lo calcula theme.js (--shop-fold) para cortar al final de un bloque entero, nunca en medio de una línea ni debajo de un título
       (13-nov-2026). Sin degradado: lo que se ve está entero y el botón «Ver más» ya dice que hay más. */
    body.shop-compact .shop-description-wrap.is-foldable:not(.is-open) .shop-description {
        max-height: var(--shop-fold, 280px);
        overflow: hidden;
    }

    body.shop-compact .shop-fold-toggle {
        display: block;
        width: 100%;
        min-height: 44px;
        margin: 8px 0 0;
        border: 1px solid var(--shop-line);
        border-radius: 8px;
        background: #fff;
        color: var(--shop-brand);
        font-weight: 700;
    }

    /* Pago */
    body.shop-compact .wc-block-checkout {
        font-size: 15px;
    }
}

/* El pulido del pago (15-nov-2026, plan del 11-nov). El aviso de las islas, junto a la provincia (lo pone checkout-pago.js). */
.ma-islands-hint {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-left: 4px solid var(--shop-brand);
    border-radius: 6px;
    background: #f3f6fb;
    color: var(--shop-ink, #10233f);
    font-size: 15px;
    line-height: 1.4;
}

.ma-islands-hint a {
    color: var(--shop-brand);
    font-weight: 700;
}

/* Valoraciones de Google (16-nov-2026): el bloque de «pedido recibido» con el botón; nada de Google hasta que se pulsa (CustomerReviews). */
.ma-gcr {
    margin: 24px 0;
    padding: 16px 18px;
    border: 1px solid #d9e0ea;
    border-left: 4px solid var(--shop-brand);
    border-radius: 8px;
    background: #f3f6fb;
    color: var(--shop-ink, #10233f);
    font-size: 15px;
    line-height: 1.45;
}

.ma-gcr p {
    margin: 0 0 10px;
}

.ma-gcr p:last-child {
    margin-bottom: 0;
}

.ma-gcr__title {
    font-size: 18px;
    font-weight: 700;
}

.ma-gcr__btn[disabled] {
    opacity: 0.7;
    cursor: default;
}

.ma-gcr__small {
    font-size: 13px;
    color: #4a5a70;
}

@media (max-width: 782px) {
    /* El botón de pagar («Pagar · 80,80 €»), fijo abajo: hasta hoy estaba 3-4 pantallas más abajo. Solo la fila del botón: en el móvil
       WooCommerce mete dentro del mismo bloque el resumen entero del pedido, que se queda en su sitio. Por debajo del aviso de cookies (z 900). */
    .wc-block-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 900;
        margin: 0;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--shop-line);
        background: #fff;
        box-shadow: 0 -4px 16px rgba(16, 35, 63, .14);
    }

    /* El resumen plegado de arriba («Resumen del pedido · 80,80 €») sobra en el móvil: el entero va antes del botón y el botón lleva el importe. */
    .wc-block-checkout .wc-block-checkout__sidebar {
        display: none;
    }

    .wc-block-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-components-checkout-return-to-cart-button {
        display: none;
    }

    .wc-block-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-components-checkout-place-order-button {
        width: 100%;
        margin: 0;
    }

    /* Sitio para el botón fijo al final de la página. */
    .wc-block-checkout {
        padding-bottom: 84px;
    }
}
