/*
  La Tienda de España · tema hijo de Hummingbird (starter veohummingbird)
  Todo el CSS de la tienda va aquí, por secciones. Colores, fuentes, zonas, anchos, cajón de carrito
  y buscador los gobierna el módulo Hummingbird Customizer (veohummingbirdcustomizer): emite los
  tokens --veo-* en el <head> y su propia hoja de mapeo. Aquí no se redefinen tokens; se usan.
  La paleta de esta tienda está en config/veo-theme.json y se importa desde el módulo.
*/

/*global*/
/* Títulos: Oswald, formato frase, interlineado corto */
h1, h2, h3, .h1, .h2, .h3 {
    font-weight: 600;
    line-height: 1.1em;
    text-wrap: balance;
}

/* Franja de la bandera (rojo, amarillo, rojo en 1:2:1), bajo la barra superior y sobre el pie */
.ltde-franja {
    height: 20px;
    background: linear-gradient(var(--ltde-rojo) 25%, var(--ltde-amarillo) 25% 75%, var(--ltde-rojo) 75%);
}

/* Marca de bandera sobre los títulos de sección */
.ltde-marca {
    display: block;
    width: 160px;
    height: 8px;
    margin-bottom: 1rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ltde-rojo) 25%, var(--ltde-amarillo) 25% 75%, var(--ltde-rojo) 75%);
}

@media (width <= 767px) {
    .ltde-franja {
        height: 16px;
    }
}

/* Fuentes de la tienda en local (assets/fonts). Oswald y Source Sans 3 son variables: un woff2 por familia
   (subconjunto latino) cubre todos los pesos. En config/veo-theme.json el origen es "theme". */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-latin.woff2') format('woff2');
}

/* Colores fijos de la bandera (franjas y marcas): no son de la paleta, no cambian */
:root {
    --ltde-rojo: #c60b1e;
    --ltde-amarillo: #ffc400;
}

/* El foco de Bootstrap (sombra al 25 %) apenas se ve en casillas y botones de opción */
.form-check-input:focus-visible {
    border-color: var(--veo-brand);
    box-shadow: 0 0 0 3px var(--veo-brand);
    outline: 0;
}

/*header*/
/* Barra negra: tienda física, envío gratis, WhatsApp y teléfono */
.ltde-barra {
    font-size: 0.875rem;
    line-height: 1.4em;
}

.ltde-barra__fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 40px;
}

.ltde-barra__tienda,
.ltde-barra__envio,
.ltde-barra__contacto,
.ltde-barra__tel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ltde-barra__tienda svg,
.ltde-barra__envio {
    color: var(--veo-extra);
}

.ltde-barra__envio {
    font-weight: 600;
}

.ltde-barra a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.ltde-barra__icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Fila del logo, el buscador, la cuenta y el carrito */
.header-bottom__row {
    min-height: 96px;
}

/* El logo no toma el color de enlace al pasar el ratón que veohummingbirdcustomizer da a la cabecera */
.ltde-logo,
#header .header-bottom a.ltde-logo.ltde-logo:not(.dropdown-item):not(.btn):hover,
#header .header-bottom a.ltde-logo.ltde-logo:not(.dropdown-item):not(.btn):focus-visible {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--veo-header);
    text-decoration: none;
}

.ltde-logo__marca {
    flex: none;
    width: 59px;
    height: 60px;
}

.ltde-logo__nombre {
    font-family: var(--veo-font-title-family);
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 1.05em;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.ltde-buscador {
    display: flex;
    justify-content: flex-end;
}

.ltde-buscador .ps-searchbar {
    width: 100%;
    max-width: 520px;
}

.ltde-acciones {
    align-items: center;
    gap: 0.5rem;
}

/* Fila del menú, entre filetes */
.ltde-menu {
    background: var(--veo-header-bg);
    border-top: 1px solid var(--veo-border);
    border-bottom: 1px solid var(--veo-border);
}

/* Desplegables a todo el ancho, con el contenido alineado al contenedor de la tienda */
.veomm__panel--full .veomm__grid {
    max-width: var(--veo-container-max-width);
}

@media (width <= 1199px) {
    .ltde-logo__nombre {
        font-size: 2rem;
    }
}

@media (width <= 767px) {
    .ltde-barra__fila {
        min-height: 44px;
        gap: 0.5rem;
    }

    .ltde-barra__icono,
    .ltde-barra__tel {
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .header-bottom__row {
        min-height: 64px;
    }

    .ltde-logo {
        gap: 6px;
    }

    .ltde-logo__marca {
        width: 28px;
        height: 28px;
    }

    .ltde-logo__nombre {
        font-size: 1.1875rem;
    }

    /* Cabecera fija en dos filas (logo con iconos y buscador, unos 108 px en vez de 200): la barra negra y la bandera
       se quedan arriba de la página, con un top negativo de su alto (lo mide custom.js), y el menú pasa a un icono
       junto al logo, sin fila propia */
    #header.header {
        top: calc(-1 * var(--ltde-cabecera-oculta, 68px));
    }

    .ltde-menu {
        position: absolute;
        top: calc(var(--ltde-cabecera-oculta, 68px) + 4px);
        left: 0;
        border: 0;
        background: none;
    }

    .ltde-menu .container-md,
    .ltde-menu .veomm-wrap {
        padding: 0;
    }

    .ltde-menu .row {
        margin: 0;
    }

    .ltde-menu .veomm__burger {
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .ltde-menu .veomm__burger-text {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .header-bottom__logo {
        min-height: 44px;
        padding-left: 44px;
    }

    /* El buscador va en su propia columna: en el móvil, fila entera y con su alto desde el principio (si no, la
       cabecera crece al colocar Hummingbird el campo y la página salta, CLS 0,39) */
    .ltde-buscador {
        flex: 0 0 100%;
        order: 99;
        min-height: 50px;
    }

    .ltde-buscador .ps-searchbar,
    .ltde-buscador .ps-searchbar--mobile {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/*menu*/
/* Desplegables de escritorio (el módulo pasa a panel lateral por debajo de 768 px): con muchas categorías (Catálogo
   España tiene 54) las fotos van más pequeñas y juntas y, si aun así no cabe en la pantalla, el desplegable tiene su scroll */
@media (width >= 768px) {
    .veomm__panel {
        max-height: calc(100vh - 14.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .veomm__cats--images:has(> li:nth-child(13)) {
        grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
        gap: 0.125rem 0.25rem;
    }

    .veomm__cats--images:has(> li:nth-child(13)) .veomm__cat {
        gap: 0.25rem;
        padding: 0.375rem 0.25rem;
        font-size: 0.875rem;
        line-height: 1.2em;
    }

    .veomm__cats--images:has(> li:nth-child(13)) .veomm__cat-img {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/*buscador*/

/*carrito*/

/*home*/
/* Hero oscuro con las cuatro categorías principales */
#home-hero {
    background: var(--veo-header);
    color: var(--veo-primary);
}

.home-hero__fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5.5rem 0 6rem;
}

.home-hero__texto {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.home-hero__antetitulo {
    margin: 0;
    font-family: var(--veo-font-title-family);
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.2em;
    color: var(--veo-extra);
}

#home-hero h1 {
    margin: 0;
    font-size: 4.75rem;
    line-height: 1.05em;
    color: var(--veo-primary);
}

.home-hero__entradilla {
    margin: 0;
    max-width: 34em;
    font-size: 1.3125rem;
    line-height: 1.55em;
    opacity: 0.9;
}

.home-hero__botones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-hero__botones .btn {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.home-hero__categorias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 520px;
}

.tarjeta-categoria {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: var(--veo-primary);
    color: var(--veo-text);
    text-decoration: none;
}

.tarjeta-categoria img {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 1rem;
    object-fit: contain;
}

.tarjeta-categoria img.tarjeta-categoria__foto--cubre {
    padding: 0;
    object-fit: cover;
}

.tarjeta-categoria__nombre {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--veo-border);
    font-family: var(--veo-font-title-family);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2em;
}

.tarjeta-categoria:hover .tarjeta-categoria__nombre {
    color: var(--veo-brand);
}

/* Franja de ventajas */
#home-ventajas {
    background: var(--veo-secondary);
    border-bottom: 1px solid var(--veo-border);
}

.home-ventajas__lista {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 2rem 0;
    list-style: none;
}

.bloque-ventaja {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bloque-ventaja strong {
    display: block;
}

.bloque-ventaja strong + span {
    font-size: 1rem;
    color: var(--veo-text);
    opacity: 0.85;
}

.bloque-ventaja__icono {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--veo-border);
    border-radius: 50%;
    background: var(--veo-primary);
}

/* Secciones de dos columnas: personalizados y tienda física */
#home-personalizados,
#home-tienda {
    padding: 6rem 0;
    background: var(--veo-secondary);
    border-top: 1px solid var(--veo-border);
    border-bottom: 1px solid var(--veo-border);
}

#home-tienda {
    background: var(--veo-primary);
    border-bottom: 0;
}

.home-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.home-dos-columnas h2 {
    margin-bottom: 1.5rem;
    font-size: 3.25rem;
}

.home-dos-columnas p {
    max-width: 36em;
    margin-bottom: 1.5rem;
}

.home-personalizados__foto {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 14px;
}

.home-dos-columnas--foto {
    grid-template-columns: 1.1fr 1fr;
}

.home-tienda__foto {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 14px;
}

.home-tienda__datos {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.home-tienda__datos dd {
    margin: 0;
}

@media (width <= 1199px) {
    #home-hero h1 {
        font-size: 3.5rem;
    }

    .home-hero__fila,
    .home-dos-columnas {
        gap: 2.5rem;
    }
}

@media (width <= 991px) {
    .home-hero__fila,
    .home-dos-columnas {
        grid-template-columns: 1fr;
    }

    .home-hero__fila {
        padding: 3rem 0;
    }

    .home-hero__categorias {
        height: auto;
        grid-template-rows: none;
    }

    .tarjeta-categoria img {
        aspect-ratio: 16 / 10;
    }

    .home-ventajas__lista {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    #home-personalizados,
    #home-tienda {
        padding: 3.5rem 0;
    }
}

@media (width <= 767px) {
    #home-hero h1 {
        font-size: 2.5rem;
    }

    .home-hero__entradilla {
        font-size: 1.0625rem;
    }

    .home-hero__categorias {
        gap: 0.75rem;
    }

    .tarjeta-categoria__nombre {
        padding: 0.625rem 0.75rem;
        font-size: 1.125rem;
    }

    .home-dos-columnas h2 {
        font-size: 2rem;
    }

    .home-tienda__foto {
        height: 240px;
    }

    .home-tienda__datos {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .home-tienda__datos dd {
        margin-bottom: 0.5rem;
    }
}


/*categoria*/
/* Ordenación sin href: cursor de enlace, menú con scroll propio y sin desbordar a 360 */
.products__sort-dropdown a:not([href]),
.search-filters a:not([href]),
.active-filters a:not([href]) {
    cursor: pointer;
}

.products__sort-dropdown .dropdown-menu {
    max-height: min(60vh, 30rem);
    overflow-y: auto;
}

.products__sort-dropdown .dropdown-item.current {
    font-weight: 700;
}

@media (width <= 575px) {
    .products__sort-dropdown .dropdown-menu {
        min-width: 0;
        max-width: calc(100vw - 2rem);
    }

    .products__sort-dropdown .dropdown-item {
        white-space: normal;
    }
}

/* Cabecera: título con la marca de bandera y descripción */
.ltde-cat {
    margin: 1.75rem 0 2rem;
}

.ltde-cat__h1 {
    margin: 0;
    font-size: 3.75rem;
    line-height: 1.05em;
}

.ltde-cat__desc {
    max-width: 40em;
    margin-top: 0.875rem;
    color: var(--veo-text);
}

.ltde-cat__desc > :last-child {
    margin-bottom: 0;
}

/* Subcategorías con foto: lo único que enseña una categoría que las tiene (category.tpl no pinta el listado) */
.ltde-subcats {
    margin-bottom: 3rem;
}

.ltde-subcats__lista {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ltde-subcat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    padding: 1rem 0.75rem;
    border: 1px solid var(--veo-border);
    border-radius: 12px;
    color: var(--veo-text);
    font-weight: 600;
    line-height: 1.25em;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ltde-subcat:hover,
.ltde-subcat:focus-visible {
    border-color: var(--veo-brand);
    color: var(--veo-brand);
}

.ltde-subcat__foto {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

#js-product-list-header:has(.ltde-subcats) ~ #products {
    display: none;
}

/* Barra de Filtrar, número de productos y orden */
.ltde-barra-listado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    min-height: 72px;
    margin-bottom: 1.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--veo-border);
    border-bottom: 1px solid var(--veo-border);
}

.ltde-barra-listado__izquierda {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ltde-barra-listado .products__count {
    margin: 0;
}

.ltde-barra-listado .products__filter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 48px;
    padding: 0 1.25rem;
    border-width: 2px;
    border-radius: 8px;
    font-weight: 700;
}

.ltde-barra-listado .products__sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ltde-barra-listado .products__sort-dropdown-button {
    min-height: 48px;
    border-color: var(--veo-border);
    border-radius: 8px;
}

/* Paginación de 48 px, la página actual en negro */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 48px;
    height: 48px;
    border: 1px solid var(--veo-border);
    border-radius: 8px;
    color: var(--veo-text);
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    border-color: var(--veo-header);
    background: var(--veo-header);
    color: #fff;
}

/* Foco que se ve: el anillo de Bootstrap (azul o rojo al 25-50 %) no llega a 3:1 sobre blanco */
.pagination .page-link:focus-visible,
.ltde-barra-listado .products__sort-dropdown-button:focus-visible,
#offcanvas-faceted .accordion-button:focus-visible,
.product-variant__radio .btn-check:focus-visible + .btn,
.product__add-to-cart-button:focus-visible,
.product-miniature__add:focus-visible,
.product-miniature__details:focus-visible,
.product__quantity .input-group:focus-within {
    outline: 2px solid var(--veo-text);
    outline-offset: 2px;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link {
    border: 0;
}

.products__pagination {
    margin-top: 3rem;
}

@media (width <= 1199px) {
    .ltde-subcats__lista {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (width <= 767px) {
    .ltde-cat {
        margin: 1rem 0 1.25rem;
    }

    .ltde-cat__h1 {
        font-size: 2.5rem;
    }

    .ltde-subcats__lista {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .ltde-subcat {
        padding: 0.75rem 0.5rem;
        font-size: 0.9375rem;
    }

    /* Filtrar y el orden en una fila; el número de productos, debajo */
    .ltde-barra-listado {
        flex-direction: row;
    }

    .ltde-barra-listado__izquierda {
        display: contents;
    }

    .ltde-barra-listado .products__sort {
        order: 2;
    }

    .ltde-barra-listado .products__count {
        order: 3;
        flex-basis: 100%;
        font-size: 0.9375rem;
    }

    .ltde-barra-listado .products__sort-label {
        display: none;
    }
}

/* Bloques de productos de la portada (veohomecategories): marca de bandera sobre el título y subcategorías como
   botones en una fila de ocho */
.veohc__title::before {
    content: "";
    display: block;
    width: 160px;
    height: 8px;
    margin-bottom: 1rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ltde-rojo) 25%, var(--ltde-amarillo) 25% 75%, var(--ltde-rojo) 75%);
}

.veohc__title {
    font-size: 3rem;
}

.veohc__chips {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.75rem;
}

.veohc__chip {
    justify-content: center;
    width: 100%;
    min-height: 64px;
    border-color: var(--veo-border);
    text-align: center;
    font-family: var(--veo-font-title-family);
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.15em;
}

.veohc__chip:hover {
    border-color: var(--veo-brand);
    color: var(--veo-brand);
}

@media (width <= 991px) {
    .veohc__chips {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (width <= 767px) {
    .veohc__title {
        font-size: 2rem;
    }

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

/*miniaturas*/
/* De serie: toda la tarjeta lleva a la ficha. El enlace del nombre se estira sobre la tarjeta; lo que tiene su propia
   acción (añadir, favoritos, vista rápida, variantes) queda encima */
.product-miniature__inner {
    position: relative;
}

.product-miniature__title::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
}

.product-miniature__actions,
.product-miniature__variants {
    position: relative;
    z-index: 2;
}

.product-miniature__quickview-button,
.product-miniature__quickview-touch,
.product-miniature .wishlist-button-add {
    z-index: 2;
}

/* Tarjeta del diseño: borde y esquinas de 12 px, foto entera sobre blanco, nombre en dos líneas y precio en Oswald */
.product-miniature__inner {
    overflow: hidden;
    border: 1px solid var(--veo-border);
    border-radius: 12px;
}

.product-miniature__top {
    padding: 1.25rem;
}

.product-miniature__inner:hover .product-miniature__image {
    transform: none;
}

.product-miniature__bottom {
    gap: 0.625rem;
    padding: 1rem 1.125rem 1.125rem;
    border-top: 1px solid var(--veo-bg-subtle);
}

.product-miniature__title {
    min-height: 2.6em;
    color: var(--veo-text);
    font-weight: 600;
    line-height: 1.3em;
}

.product-miniature__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.375rem;
}

.product-miniature__price {
    font-family: var(--veo-font-title-family);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1em;
}

.product-miniature__tax {
    font-size: 0.8125rem;
}

/* En oferta: precio anterior tachado, debajo el descuento y debajo el precio rebajado en rojo */
.product-miniature__discount-price:not(:empty) {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    order: -1;
    gap: 0.125rem;
    margin-bottom: 0.25rem;
}

.product-miniature__regular-price {
    text-decoration: line-through;
}

.product-miniature__discount,
.product__discount-percentage,
.product__discount-amount {
    --bs-primary-text-emphasis: var(--veo-brand);
    color: var(--veo-brand);
    font-weight: 700;
}

/* groupinc pinta en la tarjeta el texto de la promoción que escribe el cliente («-50%») y una cuenta atrás: el texto va
   en el sitio del descuento y el calculado no se repite; la cuenta atrás vacía no ocupa fila */
.product-miniature__prices .prodListDisplay {
    flex: 0 0 100%;
}

.product-miniature__prices .prodListDisplay:empty {
    display: none;
}

.product-miniature__prices .prodListDisplay:has(.groupincText) {
    order: -1;
}

.product-miniature__prices:has(.groupincText) .product-miniature__discount-price {
    order: -2;
    margin-bottom: 0;
}

.product-miniature__prices:has(.groupincText) .product-miniature__discount {
    display: none;
}

.groupincText p {
    margin: 0;
}

.product-miniature__prices:has(.product-miniature__regular-price) .product-miniature__price,
.product__prices-block:has(.product__regular-price) .product__price {
    color: var(--veo-brand);
}

.product-miniature__details,
.product-miniature__add {
    width: 100%;
    min-height: 44px;
    border-width: 2px;
    border-radius: 8px;
    font-weight: 600;
}

/* Productos sin opciones: «Añadir al carrito» con texto y sin selector de cantidad, como en el diseño (en la tarjeta
   no cabía y se partía en dos filas) */
.product-miniature__form .quantity-button {
    display: none;
}

.product-miniature__add-text {
    display: block;
}

.product-miniature__add {
    gap: 0.5rem;
}

.product-miniature__add,
.product-miniature__details {
    --bs-btn-bg: transparent;
    --bs-btn-color: var(--veo-text);
    --bs-btn-border-color: var(--veo-text);
    --bs-btn-hover-bg: var(--veo-text);
    --bs-btn-hover-border-color: var(--veo-text);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--veo-text);
    --bs-btn-active-color: #fff;
}

.product-miniature__details {
    --bs-btn-color: var(--veo-text);
    --bs-btn-border-color: var(--veo-text);
    --bs-btn-hover-bg: var(--veo-text);
    --bs-btn-hover-border-color: var(--veo-text);
    --bs-btn-hover-color: #fff;
}

@media (width <= 767px) {
    .product-miniature__top {
        padding: 0.5rem;
    }

    .product-miniature__bottom {
        padding: 0.75rem;
    }

    .product-miniature__title {
        font-size: 0.875rem;
    }

    .product-miniature__price {
        font-size: 1.25rem;
    }

    .product-miniature__details,
    .product-miniature__add {
        padding-inline: 0.25rem;
        font-size: 0.875rem;
    }
}

/*producto*/
/* Productos relacionados (ps_categoryproducts, ps_crossselling): marca de bandera sobre el título */
.page-product .module-products .section-title::before {
    content: "";
    display: block;
    width: 160px;
    height: 8px;
    margin-bottom: 1rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ltde-rojo) 25%, var(--ltde-amarillo) 25% 75%, var(--ltde-rojo) 75%);
}

.page-product .module-products {
    margin-top: 4rem;
}

/* De serie: sin fila de miniaturas cuando el producto tiene una sola imagen (repetía la misma foto y empujaba el
   título y el precio fuera de la primera pantalla en el móvil) */
.product__images:not(:has(.product__thumbnails-item + .product__thumbnails-item)) .product__thumbnails {
    display: none;
}

/* Dos columnas 7/5 con aire entre medias; foto y miniaturas con borde y esquinas redondeadas */
@media (width >= 992px) {
    .product__container {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 4rem;
        margin-top: 1.75rem;
    }
}

.product__carousel .carousel-item img {
    border: 1px solid var(--veo-border);
    border-radius: 14px;
}

.product__thumbnail-image {
    padding: 6px;
    border: 1px solid var(--veo-border);
    border-radius: 10px;
}

.product__thumbnail.active .product__thumbnail-image {
    outline: 2px solid var(--veo-text);
    outline-offset: -2px;
}

/* Columna de compra: categoría, título, precio y opciones con el ritmo del diseño */
.product__right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product__right > * {
    margin-bottom: 0 !important;
}

.ltde-ficha__categoria {
    margin-bottom: -0.75rem !important;
    font-weight: 600;
    text-decoration: none;
}

.product__name {
    font-size: 3rem;
    line-height: 1.1em;
    text-wrap: balance;
}

.product__price {
    font-family: var(--veo-font-title-family);
    font-size: 2.75rem;
    line-height: 1.1em;
}

.product__tax-label {
    font-size: 1rem;
}

.product__discount-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    margin-bottom: 0.25rem;
}

.product__description-short {
    max-width: 34em;
}

.product__description-short > :last-child {
    margin-bottom: 0;
}

.product-variant__legend {
    font-weight: 700;
}

.product-variant__radio .btn {
    min-width: 56px;
    min-height: 56px;
    border-color: color-mix(in srgb, var(--veo-text) 50%, var(--veo-primary));
    border-radius: 8px;
    color: var(--veo-text);
    font-weight: 700;
}

.product-variant__radio .btn-check:checked + .btn {
    border-color: var(--veo-text);
    background: var(--veo-text);
    color: #fff;
}

/* Precios por cantidad: tabla con cabecera crema y el ahorro en verde */
.product__discounts-titulo {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product__discounts .discounts-table {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--veo-border);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
}

.product__discounts .discounts-table th {
    background: var(--veo-bg-subtle);
    font-weight: 600;
}

.product__discounts .discounts-table th,
.product__discounts .discounts-table td {
    padding: 0.75rem 1rem;
    border-color: var(--veo-border);
}

.product__discounts .discounts-table td:last-child {
    color: #1e7b34;
    font-weight: 600;
}

/* Cantidad y «Añadir al carrito» de 56 px, el botón en rojo de marca */
.product__actions-qty-add {
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.product__quantity {
    flex: none;
    width: auto;
}

.product__add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
}

.product__quantity .input-group {
    flex-wrap: nowrap;
    width: 8.5rem;
    height: 56px;
    border: 2px solid var(--veo-text);
    border-radius: 8px;
    overflow: hidden;
}

.product__quantity .input-group > * {
    border: 0;
}

/* El foco va en el grupo entero (regla compartida de /*categoria*/): el overflow recortaba el anillo de Bootstrap */
.product__quantity .input-group > :focus {
    box-shadow: none;
}

.product__add-to-cart-button {
    min-height: 56px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1875rem;
}

.ltde-ficha__presupuesto {
    margin: 1rem 0 0;
    font-size: 1rem;
}

.ltde-ficha__presupuesto a {
    text-decoration: underline;
}

/* Ventajas (blockreassurance, lo edita el cliente) en una caja crema */
.ltde-ficha__ventajas {
    margin-top: 1.5rem;
    padding: 1.25rem 1.375rem;
    border: 1px solid var(--veo-border);
    border-radius: 12px;
    background: var(--veo-bg-subtle);
    font-size: 1rem;
    line-height: 1.45em;
}

.ltde-ficha__ventajas .blockreassurance {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
}

.ltde-ficha__ventajas .reassurance {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    color: var(--veo-text);
    text-align: left;
    text-decoration: none;
}

.ltde-ficha__ventajas .reassurance__image {
    flex: none;
    width: 22px;
    margin: 0;
}

.ltde-ficha__ventajas .reassurance__image svg,
.ltde-ficha__ventajas .reassurance__image img {
    width: 22px;
    height: 22px;
}

.ltde-ficha__ventajas .reassurance__title {
    font-weight: 700;
}

.ltde-ficha__ventajas .reassurance__content br {
    display: none;
}

.ltde-ficha__ventajas .reassurance__desc {
    display: block;
    font-size: 0.9375rem;
}

.ltde-ficha__ventajas a.reassurance:hover .reassurance__title {
    color: var(--veo-brand);
}

/* Desplegables de abajo: a lo ancho de la columna de lectura, títulos en Oswald */
.product__bottom {
    display: block;
    max-width: 920px;
    margin-top: 4.5rem;
}

.product__bottom-right:empty {
    display: none;
}

#product_accordion {
    border-top: 1px solid var(--veo-border);
}

#product_accordion .accordion-item {
    border-bottom: 1px solid var(--veo-border);
}

#product_accordion .accordion-button {
    min-height: 72px;
    padding-inline: 0;
    font-family: var(--veo-font-title-family);
    font-weight: 500;
    font-size: 1.625rem;
    line-height: 1.2em;
    background: none;
    box-shadow: none;
}

#product_accordion .accordion-button:focus-visible {
    outline: 2px solid var(--veo-text);
    outline-offset: 2px;
}

#product_accordion .accordion-body {
    max-width: 40em;
    padding: 0 0 1.75rem;
}

@media (width <= 767px) {
    .product__name {
        font-size: 2rem;
    }

    .product__price {
        font-size: 2.25rem;
    }

    .product__bottom {
        margin-top: 2.5rem;
    }

    #product_accordion .accordion-button {
        min-height: 60px;
        font-size: 1.375rem;
    }
}

/*checkout*/

/*cuenta*/

/*cms*/

/*footer*/
/* Pie: marca, columnas de enlaces (ps_linklist), contacto y legales */
.ltde-pie {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.ltde-pie > .footer-block {
    width: auto;
    max-width: none;
    padding: 0;
}

.ltde-pie .footer-block__title {
    font-family: var(--veo-font-title-family);
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.2em;
}

.ltde-logo--pie,
.ltde-logo--pie:hover,
.ltde-logo--pie:focus-visible {
    color: var(--veo-primary);
    margin-bottom: 1rem;
}

.ltde-logo--pie .ltde-logo__marca {
    width: 55px;
    height: 56px;
}

.ltde-logo--pie .ltde-logo__nombre {
    font-size: 1.75rem;
}

.ltde-pie__marca p {
    max-width: 34ch;
}

.ltde-pie__nota {
    font-size: 0.875rem;
    opacity: 0.8;
}

.ltde-pie__dato {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.ltde-pie__dato svg {
    flex: none;
    margin-top: 3px;
    color: var(--veo-extra);
}

.ltde-pie__whatsapp {
    --bs-btn-color: var(--veo-primary);
    --bs-btn-border-color: var(--veo-primary);
    --bs-btn-hover-color: var(--veo-header);
    --bs-btn-hover-bg: var(--veo-primary);
    --bs-btn-hover-border-color: var(--veo-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 0.5rem;
    border-width: 2px;
    font-weight: 600;
}

.ltde-pie__legal {
    border-top: 1px solid rgb(255 255 255 / 0.15);
    font-size: 0.875rem;
}

.ltde-pie__legal .container,
.ltde-pie__legal .copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    min-height: 64px;
}

.ltde-pie__legal .copyright {
    flex: 1;
    margin: 0;
    padding: 0;
}

.ltde-pie__legal a {
    color: inherit;
}

/* Bloque «Legal» de ps_linklist (displayFooterAfter): una fila de enlaces, sin título ni acordeón */
.ltde-pie__legal .footer__main-bottom,
.ltde-pie__legal .ps-linklist {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ltde-pie__legal .footer-block__title {
    display: none;
}

.ltde-pie__legal .footer-block__content.collapse {
    display: block;
}

.ltde-pie__legal .footer-block__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (width <= 991px) {
    .ltde-pie {
        grid-template-columns: 1fr 1fr;
    }
}

@media (width <= 767px) {
    .ltde-pie {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 2.5rem 0 1.5rem;
    }

    .ltde-pie__legal .container,
    .ltde-pie__legal .copyright {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 1.25rem;
    }
}


/* Volver arriba: encima del botón de WhatsApp (50 px a 15 px del borde), centrado con él */
.ltde-arriba {
    position: fixed;
    right: 18px;
    bottom: 77px;
    z-index: 98;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--veo-border);
    border-radius: 50%;
    background: #fff;
    color: var(--veo-text);
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.2s ease, border-color 0.2s ease;
}

.ltde-arriba[hidden] {
    display: none;
}

.ltde-arriba.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.ltde-arriba:hover,
.ltde-arriba:focus-visible {
    border-color: var(--veo-brand);
    color: var(--veo-brand);
}

@media (prefers-reduced-motion: reduce) {
    .ltde-arriba {
        transition: none;
    }
}

@media (width <= 359px) {
    .ltde-logo__nombre {
        font-size: 1rem;
    }
}

/*responsive*/
