main {
    background-color: var(--back-main);
    padding: 3% 0% 0% 0%;
    display: flex;
    flex-direction: column;
}


/* =========================
   CAROUSEL
========================= */

.carousel {
    width: 100%;
    max-width: 85%;
    margin: 0 auto;
    overflow: hidden;
}

.carouselTrack {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
}

.carouselSlide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.4s ease-in-out,
        visibility 0.4s ease-in-out;
}

.carouselSlide.active {
    opacity: 1;
    visibility: visible;
}

.carouselSlide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carouselControls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
}

.carouselButton {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 32px;
    height: 32px;

    border: 2px solid #d1d1d1;
    border-radius: 50%;

    background: transparent;
    color: #b5b5b5;

    font-size: 18px;
    cursor: pointer;

    transition: 0.2s ease;
}

.carouselButton:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.carouselDots {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.carouselDots .dot:nth-child(1) {
    background-color: var(--red);
}

.carouselDots .dot:nth-child(2) {
    background-color: var(--blue);
}

.carouselDots .dot:nth-child(3) {
    background-color: var(--green);
}

.carouselDots .dot:nth-child(4) {
    background-color: var(--purple);
}

.dot {
    width: 10px;
    height: 10px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background-color: var(--blue);

    cursor: pointer;

    transition: 0.1s ease;
}

.dot.active {
    border-radius: 38%;
    width: 18px;

    transition: width 0.1s ease;
}


/* =========================
   DESTAQUES
========================= */

.featured {
    margin: 3% 0;
}

.titleFeatured {
    display: flex;
    flex-direction: column;

    gap: 0;

    color: var(--blue);
    text-align: center;

    margin: 0;
    padding: 0;
}

.primaryTitleFeatured {
    display: flex;
    flex-direction: row;

    font-size: 2.3rem;

    justify-content: center;
    align-items: baseline;

    font-weight: 500;

    gap: 10px;

    margin: 0;
    padding: 0;
}

.cursiveTitleFeatured {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 600;
}

.subtitleFeatured {
    font-size: 1.4rem;

    margin: 0;
    padding: 0;
}

.photosFeatured {
    margin: 3% 0;
}

.featuredGrid {
    display: grid;

    grid-template-columns: 50% 25% 25%;
    grid-template-rows: 50% 50%;

    gap: 10px;

    width: 85%;
    margin: 3% auto;
}

.photo {
    position: relative;

    overflow: hidden;

    border-radius: 6px;
}

.photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.2s ease;

    will-change: transform;
    backface-visibility: hidden;
}

.photoLarge {
    grid-row: span 2;
}

.photoOverlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;

    padding: 20px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        transparent 70%
    );

    opacity: 0;

    transition: opacity 0.4s ease;
}

.photoOverlay p {
    color: white;

    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;

    margin: 0;

    transform: translateY(10px);

    transition: transform 0.4s ease;
}

.photo:hover .photoOverlay {
    opacity: 1;
}

.photo:hover .photoOverlay p {
    transform: translateY(0);
}

.photo:hover img {
    transform: scale(1.04);
}


/* =========================
   CATÁLOGO
========================= */

.catalog {
    margin: 4% 0;
}

.titleCatalog {
    display: flex;
    flex-direction: column;

    gap: 0;

    color: var(--blue);
    text-align: center;

    margin: 0;
    padding: 0;
}

.primaryTitleCatalog {
    display: flex;
    flex-direction: row;

    font-size: 2rem;

    justify-content: center;
    align-items: baseline;

    font-weight: 500;

    gap: 10px;

    margin: 0;
    padding: 0;
}

.boldTitleCatalog {
    font-weight: 700;
}

.subtitleCatalog {
    font-size: 1.4rem;

    margin: 0.8% 0;
    padding: 0;
}


.catalogCategories {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    width: 90%;
    max-width: 1200px;

    margin: 25px auto;

    gap: 10px;
}

.linkCatalogCategory {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-width: 110px;
    min-height: 42px;

    padding: 10px 18px;

    box-sizing: border-box;

    background-color: var(--green);
    color: white;

    border-radius: 25px;

    font-weight: 500;
    text-align: center;
    text-decoration: none;

    margin: 0;

    white-space: nowrap;
}

.linkCatalogCategory:hover {
    background-color: white;
    color: var(--green);

    box-shadow: rgba(0, 0, 0, 0.04) 0px 2px 4px;
}



/* =========================
   PRODUTOS
========================= */

.productsContainer {
    position: relative;
}

.productsContainer::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -10px;

    height: 220px;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--back-main) 85%
    );

    pointer-events: none;

    z-index: 1;
}

.productCards {
    width: 90%;

    margin: 40px auto;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 20px;
}

.productCard {
    background-color: white;
    border-radius: 8px;
    padding: 15px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    height: 100%;
    box-sizing: border-box;

    box-shadow: rgba(0, 0, 0, 0.04) 0px 2px 4px;
}

.descriptionProduct {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.cardProductTitle {
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    margin: 10px 0 5px;
    line-height: 1.4;
}

.productPackaging {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 0;
}

.buttonProductCard {
    width: 50%;
    margin: auto 0 0;
    border: none;
    border-radius: 8px;
    padding: 10px 8px;

    background-color: var(--blue);
    color: white;
    cursor: pointer;

    font-family: var(--font-primary);
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.productCard img {
    width: 90%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    margin: 2px 0;
}

.cardProductRef {
    font-size: 0.7rem;
    width: 100%;
    color: var(--light-gray);
}


.prodcutPack {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    color: var(--light-gray);
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 500;
}

.prodcutPack img {
    width: 16px;
    height: 16px;

    aspect-ratio: auto;
}

.seeMoreProducts {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    z-index: 2;

    padding: 5px 15px;

    border: solid 2px var(--green);

    color: var(--green);

    border-radius: 10px;

    font-size: 1.2rem;

    font-weight: 600;

    text-decoration: none;

    transition: transform 0.1s ease;
}

.seeMoreProducts:hover {
    transform: translateX(-50%) scale(1.05);
}


/* =========================
   ATÉ 1200px
========================= */

@media (max-width: 1200px) {

    .logoNav {
        width: 12%;
    }

    .navLinks {
        min-width: 40%;
    }

    .navLinks a {
        font-size: 1.2rem;
    }

    .formNav {
        min-width: 22%;
    }

    .iconNav {
        width: 3.2%;
    }

    .carousel {
        max-width: 90%;
    }

    .featuredGrid {
        width: 90%;
    }

    .productCards {
        width: 92%;

        grid-template-columns: repeat(4, 1fr);

        gap: 15px;
    }

    .productCard {
        padding: 15px;
    }

    .productCard button {
        width: 65%;
    }

    .phone {
        font-size: 1.4rem;
    }

    .phones {
        gap: 20px;
    }

    .newsletter {
        width: 350px;
    }
}


/* =========================
   ATÉ 900px
========================= */

@media (max-width: 900px) {

    header {
        padding: 4px 4%;
    }

    nav {
        position: relative;

        display: grid;

        grid-template-columns:
            auto
            1fr
            auto
            auto;

        align-items: center;

        gap: 12px;

        width: 100%;
    }

    .logoNav {
        width: 130px;

        justify-self: start;
    }

    .navLinks {
        position: absolute;

        top: calc(100% + 20px);
        left: 0;

        width: 100%;

        min-width: 0;

        display: flex;
        flex-direction: row;

        align-items: center;

        gap: 0;

        padding: 0;

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        background-color: white;

        border-radius: 10px;

        box-shadow:
            rgba(0, 0, 0, 0.08)
            0px 5px 10px;

        transition:
            max-height 0.4s ease,
            opacity 0.3s ease,
            padding 0.3s ease;

        z-index: 20;
    }

    .navLinks.active {
        max-height: 400px;

        padding: 20px 0;

        opacity: 1;
    }

    .navLinks a {
        width: 100%;

        padding: 12px 0;

        text-align: center;

        border: none;

        font-size: 1rem;
    }

    .navLinks a::after {
        display: none;
    }

    .formNav {
        width: 60%;

        min-width: 0;

        justify-self: center;

        box-sizing: border-box;

        padding: 8px 14px;
    }

    .formNav img {
        width: 20px;

        flex-shrink: 0;
    }

    .formNav input {
        width: 100%;

        min-width: 0;
    }

    .iconNav {
        width: 32px;

        justify-self: end;

        flex-shrink: 0;
    }

    .menuHamburguer {
        display: flex;

        width: 42px;
        height: 42px;

        padding: 0;

        border: none;

        background-color: transparent;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 5px;

        cursor: pointer;

        justify-self: end;
    }

    .menuHamburguer span {
        width: 25px;
        height: 3px;

        background-color: var(--blue);

        border-radius: 10px;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    .menuHamburguer.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menuHamburguer.active span:nth-child(2) {
        opacity: 0;
    }

    .menuHamburguer.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    main {
        padding-top: 4%;
    }

    .primaryTitleFeatured {
        font-size: 2rem;
    }

    .cursiveTitleFeatured {
        font-size: 2.4rem;
    }

    .subtitleFeatured {
        font-size: 1.2rem;
    }

    .catalog {
        margin: 6% 0;
    }

    .primaryTitleCatalog {
        font-size: 1.8rem;
    }

    .subtitleCatalog {
        font-size: 1.2rem;
    }

    .featuredGrid {
        width: 92%;

        grid-template-columns: repeat(2, 1fr);

        grid-template-rows: auto;

        gap: 10px;
    }

    .photoLarge {
        grid-row: auto;

        grid-column: span 2;

        aspect-ratio: 16 / 7;
    }

    .photo:not(.photoLarge) {
        aspect-ratio: 1 / 1;
    }

    .catalogCategories {
        width: 90%;

        margin: auto;

        flex-wrap: wrap;
    }

    .linkCatalogCategory {
        padding: 10px 18px;

        margin: 25px 0 0 0;
    }

    .productCards {
        grid-template-columns: repeat(3, 1fr);

        width: 92%;

        gap: 15px;
    }

    .productCard button {
        width: 75%;
    }

    .contact {
        padding: 35px 0;

        gap: 10px;
    }

    .containersContact {
        width: 100%;
    }

    .phones {
        flex-wrap: wrap;

        justify-content: center;

        gap: 25px 40px;
    }

    .phone {
        font-size: 1.3rem;
    }

    .containerContact {
        flex-wrap: wrap;
    }

    .containerContact h3 {
        font-size: 1.3rem;
    }

    .footerContent {
        width: 90%;

        flex-wrap: wrap;

        justify-content: center;

        gap: 40px;
    }

    .newsletter {
        width: 100%;

        max-width: 500px;

        box-sizing: border-box;
    }
}


/* =========================
   ATÉ 600px
========================= */

@media (max-width: 600px) {

    header {
        padding: 5px 5%;
    }

    nav {
        justify-content: center;
    }

    .logoNav {
        width: 100px;
    }

    .navLinks {
        gap: 15px;

        flex-wrap: wrap;
    }

    .navLinks a {
        font-size: 0.85rem;
    }

    .formNav {
        width: 80%;

        min-width: 0;

        box-sizing: border-box;

        padding: 10px 15px;
    }

    .formNav input {
        width: 100%;

        font-size: 0.95rem;
    }

    .formNav input::placeholder {
        font-size: 0.9rem;
    }

    .iconNav {
        width: 25px;
    }

    main {
        padding-top: 25px;
    }

    .carousel {
        max-width: 90%;
    }

    .carouselTrack {
        aspect-ratio: 16 / 9;
    }

    .carouselControls {
        gap: 12px;
    }

    .carouselButton {
        width: 25px;
        height: 25px;

        font-size: 15px;
    }


    /* =========================
       DESTAQUES - CELULAR
    ========================= */

    .featured {
        margin: 40px 0 50px;
    }

    .titleFeatured {
        width: 100%;
    }

    .primaryTitleFeatured {
        gap: 8px;

        font-size: 1.8rem;
    }

    .cursiveTitleFeatured {
        font-size: 2.2rem;
    }

    .subtitleFeatured {
        padding: 0 20px;

        font-size: 1.2rem;
    }

    .photosFeatured {
        margin: 25px 0 0;
    }

    /*
        IMPORTANTE:
        No celular a grade vira
        uma única coluna.
    */

    .featuredGrid {
        width: 90%;

        display: grid;

        grid-template-columns: 1fr;

        /*
            Remove as linhas 50% / 50%
            do desktop.
        */
        grid-template-rows: none;

        gap: 10px;

        margin: 35px auto 0;
    }

    .photo {
        width: 100%;

        height: auto;

        aspect-ratio: 4 / 3;
    }

    .photoLarge {
        grid-column: auto;

        /*
            Remove o span de 2 linhas
            do desktop.
        */
        grid-row: auto;

        aspect-ratio: 4 / 3;
    }

    .photo:not(.photoLarge) {
        aspect-ratio: 4 / 3;
    }

    .photoOverlay {
        padding: 15px;
    }

    .photoOverlay p {
        font-size: 1rem;
    }


    /* =========================
       CATÁLOGO - CELULAR
    ========================= */

    .catalog {
        margin: 35px 0;
    }

    .primaryTitleCatalog {
        gap: 7px;

        padding: 0 15px;

        font-size: 1.8rem;
    }

    .subtitleCatalog {
        padding: 0 20px;

        font-size: 1.2rem;
    }

    .catalogCategories {
        width: 80%;

        margin: 20px auto 0;

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        column-gap: 8px;
        row-gap: 8px;
    }

    .linkCatalogCategory {
        min-width: auto;

        padding: 8px 15px;

        font-size: 0.9rem;

        margin: 0;
    }


    /* =========================
       PRODUTOS - CELULAR
    ========================= */

    .productCards {
        width: 80%;

        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }

    .productCard {
        padding: 12px;

        gap: 10px;
    }

    .productCard img {
        width: 100%;
    }

    .cardProductRef {
        font-size: 0.7rem;
    }

    .cardProductTitle {
        font-size: 0.85rem;
    }

    .prodcutPack {
        font-size: 0.75rem;
    }

    .prodcutPack img {
        width: 15px;
        height: 15px;
    }

    .productCard button {
        width: 90%;

        font-size: 0.85rem;

        padding: 8px;
    }

    .seeMoreProducts {
        font-size: 1rem;

        white-space: nowrap;
    }


    /* =========================
       CONTATO - CELULAR
    ========================= */

    .contact {
        padding: 30px 0;

        gap: 15px;
    }

    .primaryTitleContact {
        font-size: 1.8rem;
    }

    .containersContact {
        width: 100%;

        gap: 25px;
    }

    .phones {
        width: 90%;

        display: grid;

        grid-template-columns: repeat(2, auto);

        justify-content: center;
        align-items: center;

        column-gap: 25px;
        row-gap: 18px;

        margin: 0 auto;
    }

    .phone {
        width: auto;

        font-size: 1.2rem;

        display: flex;

        align-items: center;

        gap: 8px;

        white-space: nowrap;
    }

    .phone:nth-child(3) {
        grid-column: 1 / -1;

        justify-self: center;
    }

    .iconPhone {
        width: 20px;
        height: 20px;

        padding: 7px;
    }

    .containerContact {
        display: flex;

        flex-direction: row;

        justify-content: center;

        gap: 18px;
    }

    .containerContact h3 {
        font-size: 1.2rem;

        margin-bottom: 5px;
    }

    .socialIcon {
        width: 36px;
        height: 36px;
    }

    .linearLine {
        padding: 30px 0;
    }

    .linearLine::after {
        height: 4px;

        bottom: -4px;
    }


    /* =========================
       FOOTER - CELULAR
    ========================= */

    .footer {
        padding-top: 30px;

        gap: 25px;
    }

    .footerLogo img {
        width: 150px;
    }

    .footerContent {
        width: 85%;

        gap: 30px;
    }

    .footerColumn h3 {
        font-size: 1.1rem;

        text-align: center;
    }

    .footerColumn a {
        font-size: 0.95rem;
    }

    .newsletter {
        width: 100%;

        padding: 18px;

        box-sizing: border-box;
    }

    .newsletter h3 {
        font-size: 1.1rem;
    }

    .newsletter p {
        font-size: 0.9rem;
    }

    .newsletterForm input {
        font-size: 0.9rem;
    }

    .newsletterForm button {
        width: 100%;
    }

    .footerBottom {
        flex-direction: column;

        text-align: center;

        gap: 8px;

        padding: 15px 10px;

        box-sizing: border-box;
    }
}


/* =========================
   ATÉ 400px
========================= */

@media (max-width: 400px) {

    .formNav {
        display: none;
    }

    .navLinks {
        gap: 10px;
    }

    .navLinks a {
        font-size: 0.78rem;
    }

    .primaryTitleFeatured {
        font-size: 1.4rem;
    }

    .subtitleFeatured {
        font-size: 1.1rem;
    }

    .cursiveTitleFeatured {
        font-size: 1.8rem;
    }

    .primaryTitleCatalog {
        font-size: 1.35rem;
    }

    .productCards {
        grid-template-columns: 1fr;
    }

    .subtitleCatalog {
        font-size: 1.1rem;
    }

    .productCard {
        max-width: 300px;

        margin: auto;
    }

    .productCard img {
        width: 80%;
    }

    .phone {
        font-size: 0.95rem;
    }

    .primaryTitleContact {
        font-size: 1.6rem;
    }

    .containerContact {
        gap: 10px;
    }

    .footerContent {
        flex-direction: column;

        align-items: center;
    }

    .footerColumn {
        width: 100%;

        align-items: center;
    }

    .footerColumn h3 {
        width: 40%;
    }

    .containerContact h3 {
        font-size: 1rem;
    }

    .footerColumn a {
        text-align: center;
    }

    .socialIcon {
        width: 34px;
        height: 34px;
    }

    .featuredGrid {
        width: 80%;
    }
}

/* =========================
   BOTÃO FLUTUANTE WHATSAPP
========================= */

.whatsappFloat {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #25D366;

    border-radius: 50%;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    z-index: 9999;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.whatsappFloat img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}

.whatsappFloat:hover {
    transform: scale(1.1);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* CELULAR */

@media (max-width: 600px) {
    .whatsappFloat {
        width: 58px;
        height: 58px;

        right: 18px;
        bottom: 18px;
    }

    .whatsappFloat img {
        width: 32px;
        height: 32px;
    }
}