* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f5;
}

.banner {
    max-width: 1400px;
    margin: 25px auto;
    height: 450px;
    border-radius: 20px;

    background:
        linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
        url('../../img/Banner-promo-frete-200.webp');

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    text-align: center;
}

.banner h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

.banner button {
    margin-top: 20px;
    background: #ef4444;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
}

.categorias {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.categoria {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.categoria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.categoria h3 {
    padding: 20px;
    text-align: center;
}

.secao {
    max-width: 1400px;
    margin: 50px auto;
}

.secao h2 {
    margin-bottom: 25px;
    font-size: 30px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.produto {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.produto:hover {
    transform: translateY(-5px);
}

.produto img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: white;
    transition: 0.3s;
}

.produto-info {
    padding: 15px;
}

.colecao {
    color: #777;
    font-size: 13px;
}

.produto h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 50px;
}

.preco {
    font-size: 24px;
    color: #ef4444;
    font-weight: bold;
}

.comprar {
    width: 100%;
    margin-top: 15px;
    border: none;
    background: #ef4444;
    color: white;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}
.toast {
    position: fixed;

    top: 90px;
    right: 20px;

    padding: 15px 25px;

    border-radius: 12px;

    color: white;

    font-weight: bold;

    z-index: 9999;

    opacity: 0;

    transform: translateX(120%);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;

    transform: translateX(0);
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

@media (max-width: 1100px) {
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

        gap: 20px;
    }

    .produto img {
        height: 250px;

        object-fit: contain;
    }

    .banner {
        padding: 70px 30px;
    }

    .banner h1 {
        font-size: 42px;
    }

    .banner p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .secao {
        padding: 35px 15px;
    }

    .secao h2 {
        font-size: 28px;

        text-align: center;
    }

    .produtos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .produto {
        border-radius: 14px;
    }

    .produto img {
        height: 190px;

        padding: 12px;
    }

    .produto-info {
        padding: 15px;
    }

    .produto-info h4 {
        font-size: 16px;

        min-height: 40px;
    }

    .preco {
        font-size: 20px;
    }

    .comprar {
        height: 42px;

        font-size: 14px;
    }

    .banner {
        padding: 60px 20px;

        text-align: center;
    }

    .banner h1 {
        font-size: 34px;
    }

    .banner p {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .produtos-grid {
        grid-template-columns: 1fr 1fr;

        gap: 12px;
    }

    .produto {
        border-radius: 12px;
    }

    .produto img {
        height: 150px;
    }

    .produto-info {
        padding: 12px;
    }

    .produto-info h4 {
        font-size: 14px;

        min-height: 38px;
    }

    .preco {
        font-size: 18px;
    }

    .comprar {
        height: 40px;

        font-size: 13px;
    }

    .banner {
        padding: 45px 15px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .produtos-grid {
        grid-template-columns: 1fr;
    }

    .produto {
        max-width: 300px;

        margin: auto;
    }

    .produto img {
        height: 210px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: auto;

        aspect-ratio: 16 / 9;

        margin: 20px 15px;

        padding: 20px;

        background-size: 100% 100%;

        background-position: center;
    }
}
@media (max-width: 520px) {
    .banner {
        aspect-ratio: 16 / 9;

        margin: 15px 12px;

        border-radius: 14px;
    }
}
