/* GPT000000000001 - 2026-11-23 - Adapta el banner de SUNMI al ancho y al alto de un hueco existente. */
/* GPT000000000002 - 2026-11-23 - Encuadra los dos terminales de la foto original de SUNMI en huecos anchos y estrechos. */
/* GPT000000000003 - 2026-11-23 - Da altura al banner cuando ocupa una fila propia en móvil. */

/* GPT000000000001 - Mantiene fuera del flujo la portada para no agrandar la fila de productos. */
.fone-catalog-results > ul.products > .fone-sunmi-promo {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    list-style: none;
}

.fone-sunmi-promo > a {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid #303747;
    border-radius: 12px;
    background: #11151e;
    color: #fff;
    text-decoration: none;
}

.fone-sunmi-promo > a::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, #11151e30 61%, #11151ef5 100%);
    content: "";
    pointer-events: none;
}

/* GPT000000000002 - Centra los terminales del lado derecho en el hueco real, sin alterar el archivo oficial. */
.fone-sunmi-promo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 66% center;
}

.fone-sunmi-promo[data-span="1"] img {
    position: absolute;
    inset-block-start: 46%;
    height: auto;
    max-height: 76%;
    aspect-ratio: 1;
    transform: translateY(-50%);
    mask-image: linear-gradient(transparent, #000 14% 86%, transparent);
}

/* GPT000000000001 - Mantiene visible el nombre del producto y el foco del enlace. */
.fone-sunmi-promo__label {
    position: absolute;
    z-index: 1;
    inset-inline: clamp(10px, 2vw, 23px);
    inset-block-end: clamp(10px, 2vw, 23px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #fff;
    font-size: clamp(.85rem, 1.8vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 5px #11151e;
}

.fone-sunmi-promo[data-span="1"] .fone-sunmi-promo__label {
    font-size: clamp(.78rem, 1.4vw, 1rem);
}

.fone-sunmi-promo > a:focus-visible {
    outline: 3px solid #63ded5;
    outline-offset: -5px;
}

/* GPT000000000003 - Conserva un formato horizontal sin alargar la última fila de productos. */
@media (max-width: 767px) {
    .fone-catalog-results > ul.products > .fone-sunmi-promo[data-appended] {
        min-height: clamp(145px, 48vw, 225px);
    }
}
