
/*
==============================================================
PREMIUM ECOLÓGICA
BOARD 1 — HOME V5
==============================================================
*/


/* ==========================================================
   ESTRUTURA GERAL
========================================================== */

body.cms-index-index .premium-home {
    background: #fff !important;
}

body.cms-index-index .premium-home .premium-shell {
    width: min(calc(100% - 48px), 1260px) !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* ==========================================================
   CATEGORIAS
========================================================== */

body.cms-index-index
#premium-escolha {
    padding-top: 52px !important;
    padding-bottom: 54px !important;

    background: #fff !important;
}

body.cms-index-index
#premium-escolha
.premium-section-heading {
    margin-bottom: 27px !important;

    text-align: left !important;
}

body.cms-index-index
#premium-escolha
.premium-section-heading h2 {
    margin: 5px 0 7px !important;

    color: #0f4b2e !important;

    font-size: 30px !important;
    line-height: 1.15 !important;
}

body.cms-index-index
#premium-escolha
.premium-section-heading p {
    margin: 0 !important;

    color: #6a776f !important;

    font-size: 14px !important;
}


body.cms-index-index
.premium-category-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 14px !important;
}


body.cms-index-index
.premium-category-card {
    display: flex !important;
    flex-direction: column !important;

    min-height: 0 !important;

    margin: 0 !important;

    background: #fff !important;

    border: 1px solid #e0e8e2 !important;
    border-radius: 13px !important;

    overflow: hidden !important;

    box-shadow: none !important;
}


body.cms-index-index
.premium-category-card__image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 150px !important;

    padding: 12px !important;

    background: #f7faf8 !important;
}


body.cms-index-index
.premium-category-card__image img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 125px !important;

    object-fit: contain !important;
}


body.cms-index-index
.premium-category-card__body {
    padding: 15px 16px 16px !important;
}


body.cms-index-index
.premium-category-card__body h3 {
    margin: 0 0 7px !important;

    color: #143f2b !important;

    font-size: 15px !important;
    font-weight: 800 !important;
}


body.cms-index-index
.premium-category-card__body p {
    min-height: 37px !important;

    margin: 0 0 12px !important;

    color: #68766e !important;

    font-size: 11px !important;
    line-height: 1.45 !important;
}


body.cms-index-index
.premium-category-card__body span {
    color: #168846 !important;

    font-size: 11px !important;
    font-weight: 800 !important;
}


/* ==========================================================
   MODELOS MAIS BUSCADOS
========================================================== */

body.cms-index-index
.premium-section--products {
    padding-top: 48px !important;
    padding-bottom: 54px !important;

    background: #f8faf8 !important;

    border-top: 1px solid #edf1ee !important;
}


body.cms-index-index
.premium-section--products
.premium-section-heading {
    margin-bottom: 23px !important;
}


body.cms-index-index
.premium-section--products
.premium-section-heading h2 {
    margin: 4px 0 0 !important;

    color: #0f4b2e !important;

    font-size: 29px !important;
}


body.cms-index-index
.premium-section--products
.premium-text-link,
body.cms-index-index
.premium-section--products
.premium-text-link:visited {
    color: #168846 !important;

    font-size: 12px !important;
    font-weight: 800 !important;

    text-decoration: none !important;
}


/*
 * Remove definitivamente a moldura visual do Swissup
 * nesta vitrine.
 */

body.cms-index-index
.premium-native-products
.block.widget.block-highlight.highlight-carousel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
}


body.cms-index-index
.premium-native-products
.block.widget.block-highlight.highlight-carousel
> .block-title {
    display: none !important;
}


body.cms-index-index
.premium-native-products
.block.widget.block-highlight.highlight-carousel
> .block-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Cards mais densos, próximos ao Board */

body.cms-index-index
.premium-native-products
.product-item-info {
    padding: 12px 12px 14px !important;

    background: #fff !important;

    border: 1px solid #e1e8e3 !important;
    border-radius: 12px !important;

    box-shadow: none !important;
}


body.cms-index-index
.premium-native-products
.product-image-container {
    max-width: 185px !important;
}


body.cms-index-index
.premium-native-products
.product-item-name {
    min-height: 36px !important;

    margin: 5px 0 6px !important;
}


body.cms-index-index
.premium-native-products
.product-item-link {
    color: #173f2c !important;

    font-size: 12px !important;
    font-weight: 700 !important;
}


body.cms-index-index
.premium-native-products
.price-box {
    margin-top: 2px !important;
}


body.cms-index-index
.premium-native-products
.price {
    color: #168846 !important;

    font-size: 18px !important;
    font-weight: 800 !important;
}


/* ==========================================================
   INSTITUCIONAL — BOARD 1
========================================================== */

body.cms-index-index
.premium-board1-institutional {
    padding: 30px 0 !important;

    background:
        linear-gradient(
            90deg,
            #f2f8f3 0%,
            #edf7f0 100%
        ) !important;

    border-top: 1px solid #dfe9e2 !important;
    border-bottom: 1px solid #dfe9e2 !important;
}


body.cms-index-index
.premium-board1-institutional__inner {
    display: grid !important;

    grid-template-columns:
        minmax(280px, 1.15fr)
        minmax(430px, 1.4fr)
        auto !important;

    align-items: center !important;

    gap: 30px !important;
}


body.cms-index-index
.premium-board1-institutional__copy h2 {
    max-width: 430px !important;

    margin: 5px 0 7px !important;

    color: #0f4b2e !important;

    font-size: 22px !important;
    line-height: 1.15 !important;
}


body.cms-index-index
.premium-board1-institutional__copy p {
    max-width: 480px !important;

    margin: 0 !important;

    color: #68766e !important;

    font-size: 11px !important;
    line-height: 1.5 !important;
}


body.cms-index-index
.premium-board1-institutional__proof {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 8px !important;
}


body.cms-index-index
.premium-board1-institutional__proof > div {
    display: flex !important;
    align-items: center !important;

    gap: 9px !important;

    padding: 10px !important;
}


body.cms-index-index
.premium-board1-institutional__proof i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 34px !important;

    width: 34px !important;
    height: 34px !important;

    color: #168846 !important;
    background: #fff !important;

    border-radius: 50% !important;
}


body.cms-index-index
.premium-board1-institutional__proof strong {
    display: block !important;

    color: #143f2b !important;

    font-size: 10px !important;
    font-weight: 800 !important;
}


body.cms-index-index
.premium-board1-institutional__proof small {
    display: block !important;

    margin-top: 2px !important;

    color: #6d7a72 !important;

    font-size: 8.5px !important;
}


body.cms-index-index
.premium-board1-institutional__cta,
body.cms-index-index
.premium-board1-institutional__cta:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    min-height: 39px !important;

    padding: 0 17px !important;

    color: #fff !important;
    background: #228c3a !important;

    border-radius: 20px !important;

    font-size: 10px !important;
    font-weight: 800 !important;

    white-space: nowrap !important;

    text-decoration: none !important;
}


/* ==========================================================
   BOARD 1:
   RETIRA DA HOME OS BLOCOS QUE TERÃO PÁGINAS PRÓPRIAS
========================================================== */

body.cms-index-index .premium-guide,
body.cms-index-index .premium-section--soft,
body.cms-index-index .premium-support,
body.cms-index-index .premium-final-cta,
body.cms-index-index .premium-cta {
    display: none !important;

    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1023px) {

    body.cms-index-index
    .premium-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    body.cms-index-index
    .premium-board1-institutional__inner {
        grid-template-columns: 1fr !important;
    }


    body.cms-index-index
    .premium-board1-institutional__proof {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    body.cms-index-index
    .premium-home .premium-shell {
        width: calc(100% - 24px) !important;
    }


    body.cms-index-index
    #premium-escolha {
        padding-top: 31px !important;
        padding-bottom: 34px !important;
    }


    body.cms-index-index
    #premium-escolha
    .premium-section-heading {
        margin-bottom: 18px !important;

        text-align: left !important;
    }


    body.cms-index-index
    #premium-escolha
    .premium-section-heading h2 {
        font-size: 23px !important;
    }


    body.cms-index-index
    .premium-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 9px !important;
    }


    body.cms-index-index
    .premium-category-card__image {
        height: 105px !important;

        padding: 8px !important;
    }


    body.cms-index-index
    .premium-category-card__image img {
        max-height: 88px !important;
    }


    body.cms-index-index
    .premium-category-card__body {
        padding: 11px !important;
    }


    body.cms-index-index
    .premium-category-card__body h3 {
        font-size: 12px !important;
    }


    body.cms-index-index
    .premium-category-card__body p {
        display: none !important;
    }


    body.cms-index-index
    .premium-category-card__body span {
        font-size: 9.5px !important;
    }


    /* MODELOS */

    body.cms-index-index
    .premium-section--products {
        padding-top: 32px !important;
        padding-bottom: 35px !important;
    }


    body.cms-index-index
    .premium-section--products
    .premium-section-heading h2 {
        font-size: 23px !important;
    }


    /*
     * Card horizontal em telas pequenas.
     * Mantemos todos os dados reais do Magento.
     */

    body.cms-index-index
    .premium-native-products
    .product-item-info {
        display: grid !important;

        grid-template-columns:
            105px
            minmax(0, 1fr) !important;

        align-items: center !important;

        gap: 10px !important;

        min-height: 145px !important;

        padding: 9px !important;
    }


    body.cms-index-index
    .premium-native-products
    .product-item-photo {
        grid-column: 1 !important;

        width: 105px !important;

        margin: 0 !important;
    }


    body.cms-index-index
    .premium-native-products
    .product-image-container {
        width: 100% !important;
        max-width: 105px !important;
    }


    body.cms-index-index
    .premium-native-products
    .product-item-details {
        grid-column: 2 !important;

        min-width: 0 !important;
    }


    body.cms-index-index
    .premium-native-products
    .product-item-name {
        min-height: 0 !important;
    }


    body.cms-index-index
    .premium-native-products
    .price {
        font-size: 17px !important;
    }


    /* INSTITUCIONAL */

    body.cms-index-index
    .premium-board1-institutional {
        padding: 27px 0 !important;
    }


    body.cms-index-index
    .premium-board1-institutional__inner {
        gap: 19px !important;
    }


    body.cms-index-index
    .premium-board1-institutional__copy h2 {
        font-size: 20px !important;
    }


    body.cms-index-index
    .premium-board1-institutional__proof {
        grid-template-columns: 1fr !important;

        gap: 3px !important;
    }


    body.cms-index-index
    .premium-board1-institutional__proof > div {
        padding: 5px 0 !important;
    }


    body.cms-index-index
    .premium-board1-institutional__cta {
        width: fit-content !important;
    }

}

