/* InstantShop v28 - correção isolada apenas do slide da página inicial.
   Não altera cards, checkout, carrinho, toast, botões globais ou estrutura da loja. */

body.instantshop-home-body .instantshop-storefront-v20,
body.instantshop-home-body .instantshop-storefront-v20 * {
    box-sizing: border-box;
}

body.instantshop-home-body .instantshop-storefront-v20 .instantshop-store-hero {
    max-width: 100%;
    overflow: hidden;
}

body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-slider,
body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-track,
body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-slide,
body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-image,
body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info {
    max-width: 100%;
    min-width: 0;
}

body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-slider {
    width: 100%;
    overflow: hidden;
}

body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info h2,
body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info p,
body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-buy {
    max-width: 100%;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

@media (max-width: 991.98px) {
    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-store-hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-slider {
        min-height: 0 !important;
        height: auto !important;
        border-radius: 18px;
        display: block;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-track {
        position: relative;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        display: block;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-slide {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none !important;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-slide.is-active {
        display: grid !important;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-image {
        display: block;
        width: 100%;
        height: clamp(210px, 52vw, 300px) !important;
        min-height: 0 !important;
        max-height: 300px;
        aspect-ratio: 16 / 10;
        border-radius: 16px 16px 0 0;
        overflow: hidden;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info {
        width: 100%;
        padding: 16px !important;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info h2 {
        font-size: clamp(1.25rem, 5.4vw, 1.75rem);
        line-height: 1.08;
        margin-bottom: 8px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info p {
        font-size: .94rem;
        line-height: 1.38;
        margin-bottom: 10px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-buy {
        display: flex;
        
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-buy strong {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem);
        line-height: 1;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-buy .btn {
        width: auto;
        max-width: 100%;
        min-height: 38px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-dots {
        bottom: 10px;
        z-index: 2;
    }
}

@media (max-width: 575.98px) {
    body.instantshop-home-body .instantshop-storefront-v20 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-store-hero {
        padding: 12px !important;
        border-radius: 16px;
        gap: 12px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-slider {
        border-radius: 16px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-image {
        height: clamp(180px, 56vw, 235px) !important;
        max-height: 235px;
        border-radius: 14px 14px 0 0;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info {
        padding: 13px !important;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info h2 {
        font-size: clamp(1.12rem, 5.6vw, 1.45rem);
        line-height: 1.08;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-buy {
        gap: 8px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-buy .btn {
        padding: .45rem .85rem;
    }
}

@media (max-width: 390px) {
    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-image {
        height: 172px !important;
        max-height: 172px;
    }

    body.instantshop-home-body .instantshop-storefront-v20 .instantshop-featured-info {
        padding: 12px !important;
    }
}
