/* Estilos de búsqueda/searches — páginas/searches.php */

/* ─── Breadcrumbs / Ruta ─────────────────────────────────────────────────── */
.div-breadcrumbs {
    width: 100%;
    padding: 0 10px;
    overflow-x: hidden;
    border-bottom: none;
}

.ruta2 {
    padding: 10px 10px !important;
    font-size: 2rem;
    color: white;
    border-bottom: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

.ruta2 a {
    color: #fff;
    text-transform: capitalize;
}

.ruta2 h1 {
    padding: 2rem 3rem;
    font-size: 3rem;
    color: white;
    text-align: center;
}

.ruta2 > :nth-last-child(2) {
    color: aqua !important;
}

h2.ruta2 {
    scroll-padding-left: 100px;
    position: relative;
    overflow-x: auto;           /* única declaración */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    align-items: center;
    padding: 10px 10px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

h2.ruta2::-webkit-scrollbar {
    display: none;
}

h2.ruta2 > * {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: 0 !important;
    padding-left: 0 !important;
    position: relative !important;
}

h2.ruta2 a,
h2.ruta2 .item {
    display: inline-block;
    width: auto !important;
}

/* ─── Botón Step Back ────────────────────────────────────────────────────── */
a.btn-step-back,
a.btn-back {
    padding: 5px 12px;
    font: 21px/1.2 'BentonSans-Regular', 'BentonSans-Bold' !important;
    color: #fff !important;
    background: #545454;
    cursor: pointer;
    z-index: 100;
    width: max-content;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

h2.ruta2 a.btn-step-back,
h2.ruta2 a.btn-back {
    margin-left: 2rem !important;
}

/* ─── Búsqueda info / utilidades ─────────────────────────────────────────── */
.busqueda-info {
    flex-direction: row;
    flex-wrap: wrap;
    display: inline-flex;
    margin: 2rem 0;
}

.centrar {
    text-align: center;
    justify-content: center;
}

.btn-busqueda {
    border-left: groove;
    height: 100%;
    width: auto;
    max-width: 4rem;
    max-height: 2.5rem;
    background: white;
    padding: 0.5rem;
}

#menubuscar {
    border-bottom: groove;
}

/* ─── Grid de productos ──────────────────────────────────────────────────── */
.prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    padding: 0 2rem 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    /* Altura del bloque de imagen — ajustable por breakpoint */
    --card-img-h: 30rem;
}

.listing-volver-envio {
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Escritorio ancho: grid centrado con 10% de margen a cada lado.
   Entre 769 px y 1300 px manda el bloque de una columna (70% + 15%). */
@media (min-width: 1301px) {
    .prod-grid,
    .listing-volver-envio {
        width: 80%;
        max-width: 80%;
        margin-left: 10%;
        margin-right: 10%;
        box-sizing: border-box;
    }
}

.div-prod {
    position: relative;
    background-color: #fff;
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: flex-end;
    border: none;
    box-shadow: none;
}

/* Evita mostrar la tarjeta mientras la imagen principal está incompleta. */
.prod-grid .div-prod.prod-card--image-pending {
    display: none;
}

.prod-grid .div-prod.prod-card--image-ready {
    opacity: 1;
    transition: opacity .18s ease;
}

/* Contenido arriba para que íconos absolutos no queden desplazados */
.prod-grid .div-prod {
    justify-content: flex-start;
}

/* Barra comparar siempre al fondo */
.prod-grid .div-prod .producto-comparar {
    margin-top: auto;
}

/* Bloque tarjeta: padding único */
.prod-grid .prod-card-padded {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 1rem 1rem 1.25rem;
}

/* ─── Área de imagen (media) ─────────────────────────────────────────────── */
.prod-card-media {
    position: relative;
    width: 100%;
    min-height: 14rem;
}

/* Altura fija en la grilla de búsqueda → imagen, flechas y título alineados */
.prod-grid .prod-card-media {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
}

.prod-grid .prod-card-media .div-producto-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
}

/* Sin imagen en BD */
.prod-grid .prod-card-media .div-producto-img.prod-card-media__sin-foto {
    background: #ececec;
}

.prod-grid .prod-card-media__placeholder {
    display: block;
    width: 100%;
    min-height: 12rem;
}

/* Barra superior: corazón · nombre · lupa (flujo normal, encima de la imagen) */
.prod-card-media__header {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.prod-card-media__header .btn-favorito,
.prod-card-media__header .boton-favorito-producto {
    position: static;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-height: 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    font-size: inherit;
    pointer-events: auto;
}

.prod-card-media__header .btn-favorito svg,
.prod-card-media__header .prod-card-media__lupa svg {
    display: block;
    width: 4.8rem;
    height: 4.8rem;
    flex-shrink: 0;
}

.prod-card-media__nombre {
    flex: 1 1 auto;
    align-self: center;
    min-width: 0;
    margin: 0;
    padding: 0.15rem 0.25rem 0.2rem;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.45;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

/* Ícono lupa → enlace a la ficha */
.prod-card-media__header .prod-card-media__lupa {
    position: static;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.prod-card-media__lupa svg {
    display: block;
}

/* Enlace a la ficha: cubre solo la imagen */
.prod-card-media__hit {
    position: relative;
    z-index: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ─── Carrusel de imágenes ───────────────────────────────────────────────── */
.prod-grid .prod-card-carousel {
    flex: 1 1 auto;
    height: var(--card-img-h);
    min-height: var(--card-img-h);
}

.prod-card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.prod-card-carousel__viewport {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.prod-card-carousel__track {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.prod-card-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

/* Centrar foto dentro del slide */
.prod-grid .prod-card-carousel__slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.prod-grid .prod-card-carousel__slide .div-producto-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Imagen sin deformar, centrada en el espacio fijo */
.prod-grid .prod-card-media .producto-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Flechas del carrusel */
.prod-card-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 6rem;
    height: 6rem;
    max-height: none;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111;
    background: transparent;
    box-shadow: none;
    line-height: 0;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.prod-card-carousel__btn:hover {
    color: #000;
}

.prod-card-carousel__btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.prod-card-carousel__chev {
    display: block;
    width: calc(1.85rem * 3);
    height: calc(1.85rem * 3);
    flex-shrink: 0;
}

.prod-card-carousel__btn--prev {
    left: 6px;
}

.prod-card-carousel__btn--next {
    right: 6px;
}

/* Una sola imagen: flechas ocultas */
.prod-card-carousel--single .prod-card-carousel__btn {
    display: none;
}

/* ─── CTA "+ Info" ───────────────────────────────────────────────────────── */
.prod-card-info-cta {
    display: block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0.85rem auto 0;
    padding: 0.5rem 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    background: #fff;
    border: 1.5px solid #111;
    text-decoration: none;
    position: relative;
    z-index: 1;
    font-family: 'BentonSans-Bold', 'BentonSans-Regular', sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.prod-card-info-cta:hover {
    background: #6e6e6e;
    color: #fff;
    border-color: #6e6e6e;
    text-decoration: none;
}

.prod-card-info-cta:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
    text-decoration: none;
}

/* ─── Información textual (título / subtítulo) ───────────────────────────── */
.prod-card-info {
    display: block;
}

.prod-card-info__titles {
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.prod-card-info__titles .product-title,
.prod-card-info__titles .product-subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

/* Jerarquía visual: título más prominente que subtítulo */
.product-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto;
    padding: 0.15rem 0.25rem 0.2rem;
    font-weight: 500;
    color: #111;
    line-height: 1.45;
}

.product-subtitle {
    font-size: 2.1rem;
    text-align: center;
    margin: 4px auto;
    font-weight: 400;
    color: #444;
    line-height: 1.2;
}

/* ─── Barra Comparar ─────────────────────────────────────────────────────── */
/* Anula styles30042021.css (.producto-comparar { justify-content: space-around !important }) */
.prod-grid .div-prod .producto-comparar,
.producto-comparar {
    background-color: #111;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start !important;
    gap: 1.35rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    min-height: 4.6rem;
    height: auto !important;
    padding: 0.35rem 0.55rem 0.35rem 0.2rem;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.prod-grid .div-prod .producto-comparar {
    margin-top: auto;
}

.producto-comparar > small,
.producto-comparar > label {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.15;
    align-self: flex-start;
}

.producto-comparar__label {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    width: auto;
    max-width: none;
    min-width: 0;
    color: #fff;
    margin: 0 !important;
    white-space: nowrap;
    align-self: flex-start;
}

/* Sin login: solo checkbox "Comparar" (sin precio), centrado verticalmente e izquierdo */
.prod-grid .div-prod .producto-comparar.producto-comparar--sin-login,
.producto-comparar.producto-comparar--sin-login {
    justify-content: flex-start !important;
    align-items: center;
    padding-inline: 0.8rem;
}

.prod-grid .div-prod .producto-comparar.producto-comparar--sin-login .producto-comparar__label,
.producto-comparar.producto-comparar--sin-login .producto-comparar__label {
    flex: 0 1 auto !important;
    margin: 0 !important;
    justify-content: flex-start;
    align-self: center;
    max-width: none;
    width: auto;
}

.producto-comparar__precio {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.2em;
    flex: 1 1 0% !important;
    width: auto;
    min-width: 0;
    max-width: 100%;
    color: #fff;
    /* Mismo tamaño que el botón Comparar */
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.15;
    text-transform: uppercase;
    overflow: hidden;
}

.producto-comparar__precio-linea {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.2em;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: inherit;
}

/* Evita el flash del primer segundo (tipografía desbordada) */
.producto-comparar__precio:not(.is-fitted) {
    visibility: hidden;
}

.producto-comparar__precio.is-fitted {
    visibility: visible;
}

.producto-comparar__precio--descuento {
    font-size: 1.8rem;
}

.producto-comparar__precio--descuento .producto-comparar__precio-linea {
    gap: 0.12em;
}

.producto-comparar__precio span {
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
    flex-shrink: 0;
    max-width: 100%;
}

.producto-precio-original {
    color: #fff;
    text-decoration: line-through;
    text-decoration-color: #ff0000;
    text-decoration-thickness: 0.08em;
}

.producto-descuento-badge,
.producto-descuento-flecha {
    color: #ff0000;
}

.producto-descuento-badge {
    text-transform: none;
}

.producto-descuento-flecha {
    justify-content: center;
    width: 1.2em;
    height: 0.9em;
    line-height: 0;
}

.producto-descuento-flecha svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: translateY(0.06em);
}

.producto-precio-final {
    color: #fff;
}

.producto-formato-precio {
    flex-shrink: 0;
    margin-left: 0.45em;
    text-transform: none;
}

.producto-costo-envio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    line-height: 1.2;
    font-size: inherit;
}

/* ─── Ícono favorito (botón) ─────────────────────────────────────────────── */
.boton-favorito-producto {
    height: 5rem;
    width: 50%;          /* valor único, sin duplicado */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    font-size: 3rem;
    font-family: 'BentonSans-Regular', 'BentonSans-Bold';
    cursor: pointer;
    color: black;
    z-index: 100;
}

.boton-favorito-producto img {
    height: auto;
    width: 5rem;
}

/* ─── Links del grid ─────────────────────────────────────────────────────── */
.prod-grid div a {
    z-index: 1;
    max-width: 100%;
    text-decoration: none;
    color: #111;
    padding: 1rem;
}

/* Sin padding extra en los <a> de búsqueda (lo aporta prod-card-padded) */
.prod-grid .prod-card-padded a.prod-card-media__hit,
.prod-grid .prod-card-padded a.prod-card-info {
    padding: 0;
}

.prod-grid .prod-card-padded a.prod-card-info-cta {
    padding: 0.5rem 2rem;
}

/* ─── Compatibilidad: .btn-favorito fuera de .prod-card-media ────────────── */
.div-prod > .btn-favorito {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* ─── Imagen genérica (fuera del carrusel) ───────────────────────────────── */
.producto-img {
    max-height: 30rem;
    width: 100%;
    max-width: 100%;
    object-fit: scale-down;
}

.div-producto-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Marcado de lupa antiguo ────────────────────────────────────────────── */
.btn-zoom {
    width: auto;
    min-width: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 2;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: none;
}

/* ─── Utilidades ─────────────────────────────────────────────────────────── */
.cienwidth {
    width: 100% !important;
}

.separator {
    margin-right: 1rem;
    margin-left: 0.5rem;
}

.coming-soon {
    text-align: center;
    font-size: 4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #9a9a9a;
    font-family: 'BentonSans-Regular', Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-synthesis: none;
}

/* ─── Checkbox comparar ──────────────────────────────────────────────────── */
.checkbox {
    -webkit-transform: scale(1.35);
    transform: scale(1.35);
    margin: 0 0.65rem 0 0;
}

/* ─── FEL helper classes ─────────────────────────────────────────────────── */
.fel-min-height-10 {
    min-height: 10rem;
}

.fel-product-subtitle-color {
    color: #111;
}

.fel-label-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* ─── Comparar / consultar extras ───────────────────────────────────────── */
.div-produ-compara {
    color: black;
    padding: 1rem 0;
    font-family: 'BentonSans-Regular', 'BentonSans-Bold';
    font-size: 2.5rem;
    margin: 0;
}

.div-consulta-comparar {
    background: white;
    border-top: groove;
    display: flex;
    justify-content: center;
}

.div-consulta-comparar label {
    color: black;
}

/* ─── Botones extra (btn-extra y btn-extra-favorito comparten base) ───────── */
.btn-extra,
.btn-extra-favorito {
    padding: 1rem;
    text-align: center;
}

.btn-extra a,
.btn-extra-favorito a {
    display: block;
    padding: 1px 4px;
    font: 23px/42px 'BentonSans-Regular', 'BentonSans-Bold';
    color: #988B85;
    border: 1.5px solid black;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

.btn-extra a:hover,
.btn-extra-favorito a:hover {
    color: #493E3A;
    border-color: #EBE9E7;
    background-color: #D5D0CA;
    box-shadow: 0 0 10px #CECAC4;
}

.btn-extra a.active {
    color: #493E3A;
    border-color: #988B85;
    background-color: #D5D0CA;
}

/* ─── Premium badge ──────────────────────────────────────────────────────── */
.premium {
    height: 12rem !important;
    width: 12rem !important;
    z-index: 9999;
    margin: 2rem;
    position: absolute !important;
    left: 0 !important;
    margin-left: 5rem !important;
}

.premium-favorito {
    display: block;
    height: 8rem;
}

.premium-consulta {
    display: block;
    height: 6rem !important;
}

.premium-menu {
    height: 4rem !important;
    width: 4rem !important;
}

.nombre-premium {
    justify-content: center;
}

/* ─── FAB footer ─────────────────────────────────────────────────────────── */
#btnConsultaFab img {
    filter: brightness(0) invert(1) !important;
}

#btnFavoritosFab .btn-favoritos-fab-icon {
    color: #fff !important;
}

#btnFavoritosFab .btn-favoritos-fab-icon svg,
#btnFavoritosFab .btn-favoritos-fab-icon svg path {
    fill: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 950px) {
    .ruta2 {
        font-size: 1.5rem !important;
        line-height: 5rem;
        padding: 10px 10px !important;
        justify-content: flex-start;
    }
}

/* ≤ 991 px — misma columna y altura de foto que el celular */
@media (max-width: 991px) {
    .prod-grid,
    .listing-volver-envio {
        width: 100%;
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .prod-grid {
        grid-template-columns: 1fr;
        --card-img-h: 26rem;   /* igual que el celular (≤480) */
    }

    /* Ruta */
    .ruta2 {
        font-size: 1.5rem !important;
        line-height: 5rem;
        padding: 10px 10px !important;
    }

    .ruta2 h1 {
        font-size: 2rem;
    }

    a.btn-step-back,
    a.btn-back {
        padding: 0.5rem;
    }

    .nombre-premium {
        justify-content: left;
    }

    /* Premium */
    .premium {
        height: 8rem !important;
        width: 8rem !important;
        margin-left: 2rem !important;
    }

    .premium-favorito {
        height: 6rem;
    }

    /* Imágenes */
    .producto-img {
        width: 100%;
        display: block;
        object-fit: scale-down;
    }

    .div-producto-img {
        width: 100%;
        display: block;
    }

    /* Búsqueda: flex centrado en 1 columna (hereda reglas globales de prod-grid) */
    .prod-grid .prod-card-media .div-producto-img {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Celular: sin check Comparar. Logueado, el precio ocupa toda la barra. */
    .prod-grid .div-prod .producto-comparar__label,
    .producto-comparar__label {
        display: none !important;
    }

    /* Sin login: la barra queda como hueco negro, a la mitad, para separar ítems. */
    .prod-grid .div-prod .producto-comparar.producto-comparar--sin-login,
    .producto-comparar.producto-comparar--sin-login {
        display: flex !important;
        align-items: stretch;
        min-height: 2.3rem;
        height: 2.3rem !important;
        padding: 0;
        gap: 0;
        background-color: #111;
    }

    .prod-grid .div-prod .producto-comparar:not(.producto-comparar--sin-login),
    .producto-comparar:not(.producto-comparar--sin-login) {
        justify-content: center !important;
        gap: 0;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .producto-comparar:not(.producto-comparar--sin-login) .producto-comparar__precio {
        flex: 1 1 100% !important;
        width: 100%;
        max-width: 100%;
    }
}

/* Desktop angosto: una tarjeta por línea para que la barra inferior no se rompa.
   15% + 15% de margen: el ancho es el 70% restante (border-box incluye padding y borde).
   ≤991 px no entra: ahí el listado es el de celular. */
@media (min-width: 992px) and (max-width: 1300px) {
    .prod-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem 0;
        width: 70%;
        max-width: 70%;
        margin-left: 15%;
        margin-right: 15%;
        padding: 1.25rem 0;
        box-sizing: border-box;
        --card-img-h: 34rem;
    }

    .listing-volver-envio {
        width: 70%;
        max-width: 70%;
        margin-left: 15%;
        margin-right: 15%;
        padding: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .ruta2 {
        padding: 10px 10px !important;
    }

    a.btn-step-back,
    a.btn-back {
        font: 15px/9px 'BentonSans-Regular', 'BentonSans-Bold' !important;
    }
}

@media (max-width: 480px) {
    .prod-grid {
        --card-img-h: 26rem;   /* móvil pequeño: reducir para no ocupar toda la pantalla */
    }
}

@media (max-width: 550px) {
    .prod-card-carousel__btn {
        width: 5rem;
        height: 5rem;
    }

    .prod-card-carousel__chev {
        width: calc(1.5rem * 3);
        height: calc(1.5rem * 3);
    }

    .prod-grid .prod-card-padded a.prod-card-info-cta {
        font-size: 1.5rem;
        padding: 0.45rem 1.1rem;
    }

    .div-produ-compara {
        font-size: 1.5rem;
    }

    .boton-favorito-producto {
        font-size: 1.5rem;
        height: 4rem;
    }

    .boton-favorito-producto small {
        font-size: 1.5rem;
    }

    .boton-favorito-producto img {
        width: 4rem;
    }

    .prod-card-media__header .btn-favorito,
    .prod-card-media__header .boton-favorito-producto {
        height: auto;
        width: auto;
    }

    .prod-card-media__header .btn-favorito svg,
    .prod-card-media__header .prod-card-media__lupa svg {
        width: 4rem;
        height: 4rem;
    }

    .prod-card-media__nombre {
        font-size: 1.75rem;
        line-height: 1.45;
        padding-bottom: 0.15rem;
    }

    .product-title {
        font-size: 1.85rem;
        line-height: 1.45;
        padding-bottom: 0.15rem;
    }

    .producto-comparar {
        gap: 1.1rem;
        padding-inline: 0.5rem;
    }

    .producto-comparar > small,
    .producto-comparar > label {
        font-size: 1.45rem;
    }

    .producto-comparar__label {
        flex: 0 0 auto;
        max-width: none;
    }

    .producto-comparar--sin-login .producto-comparar__label {
        flex-basis: auto;
    }

    .producto-comparar__precio {
        font-size: 1.45rem;
        gap: 0.1em;
    }

    .producto-comparar__precio--descuento {
        font-size: 1.45rem;
    }

    .producto-descuento-flecha {
        width: 1.1em;
        height: 0.85em;
    }

    .checkbox {
        -webkit-transform: scale(1.15);
        transform: scale(1.15);
        margin-right: 0.45rem;
    }
}

@media (max-width: 500px) {
    .ruta2 {
        font-size: 1.25rem !important;
    }

    .ruta2 h1 {
        font-size: 1.5rem;
    }
}

/* Todas las medidas: flechas en columnas propias, sin cubrir la foto.
   El HTML sigue siendo anterior, siguiente, visor; las columnas se asignan aquí.
   El track sigue al 100% del visor, así translateX(-n * 100%) mide ese visor.
   Una sola imagen no entra: sigue sin flechas y sin columnas vacías. */
#page-busqueda .prod-card-carousel:not(.prod-card-carousel--single) {
    --prod-card-arrow-col: 6rem;
    display: grid;
    grid-template-columns: var(--prod-card-arrow-col) minmax(0, 1fr) var(--prod-card-arrow-col);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#page-busqueda .prod-card-carousel:not(.prod-card-carousel--single) > .prod-card-carousel__btn {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    align-self: center;
    justify-self: center;
    margin: 0;
    max-width: 100%;
}

#page-busqueda .prod-card-carousel:not(.prod-card-carousel--single) > .prod-card-carousel__btn--prev {
    grid-column: 1;
    grid-row: 1;
}

#page-busqueda .prod-card-carousel:not(.prod-card-carousel--single) > .prod-card-carousel__viewport {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
}

#page-busqueda .prod-card-carousel:not(.prod-card-carousel--single) > .prod-card-carousel__btn--next {
    grid-column: 3;
    grid-row: 1;
}

#page-busqueda .prod-grid .prod-card-carousel:not(.prod-card-carousel--single) .producto-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* En móvil angosto el botón ya mide 5rem: la columna lateral acompaña ese tamaño. */
@media (max-width: 550px) {
    #page-busqueda .prod-card-carousel:not(.prod-card-carousel--single) {
        --prod-card-arrow-col: 5rem;
    }
}
