/* Base styles for mobile first approach */
.container {
    width: 95vw;
    padding: 0;
    margin: 0 auto;
}

/* Estilos padrão para mobile (até 575px) */
.offers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
}

.offer-card {
    max-width: 100%;
    margin: 0 auto;
    order: 2;
}

.dois-potes{
    order: 3;
}

.tres-potes{
    order: 2;
}

.seis-potes{
    order: 1;
}

.stock-banner h2 {
    font-size: 18px;
}

.price {
    font-size: 3rem;
}

.per-bottle {
    font-size: 13px;
}

.buy-button {
    max-width: 100%;
}

.footer-links {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 12px; /* Adiciona o tamanho da fonte */
}

@media screen and (max-width: 1279px) {
    .offers-grid {
        flex-wrap: wrap;
    }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .container {
        width: 90vw;
    }

    .stock-banner h2 {
        font-size: 20px;
    }

    .offer-card {
        max-width: 400px;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .container {
        width: 90vw;
    }


    .stock-banner h2 {
        font-size: 24px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .container {
        width: 90vw;
    }

    .offers-grid {
        flex-wrap: wrap;
    }

    .offer-card.featured {
        transform: scale(1.02);
    }

    .stock-banner h2 {
        font-size: 2.5rem;
    }
}

/* Extra large devices (1140px and up) */
@media (min-width: 1280px) {
    .container {
        width: 1140px;
    }
    .offers-grid {
        flex-wrap: nowrap;
    }
}

/* XXL devices (1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 90vw;
    }
}

/* Ajustes específicos para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .offer-card.featured {
        grid-column: auto;
        max-width: none;
    }
}

/* Ajustes para garantir que o vídeo seja responsivo */
.video-wrapper {
    margin: 0 auto;
    max-width: 800px;
}

/* Ajustes para imagens responsivas */
.offer-image img {
    max-width: 100%;
    height: auto;
}

.payment-methods img,
.certifications img,
.guarantee-badge {
    max-width: 100%;
    height: auto;
}

/* Controles de imagem globais */
img {
    max-width: 100%;
    height: auto;
}

/* Ajustes específicos para imagens de oferta */
.offer-image {
    max-width: 190px !important;
    width: 100%;
    max-width: 300px; /* Limita a largura máxima */
    margin: 0 auto;
    padding: 10px;
}

.um-pote .offer-image{
    max-width: 70% !important;
}

.offer-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ajustes para botões de compra */
.buy-button {
    width: 100%;
    max-width: 250px; /* Limita a largura máxima */
    margin: 0 auto;
}

.buy-button img {
    width: 100%;
    height: auto;
}

/* Ajustes para métodos de pagamento */
.payment-methods {
    width: 100%;
    max-width: 200px; /* Limita a largura máxima */
    margin: 1px auto;
}

/* Ajustes para badges e bônus */
.bonus-tag {
    width: 100%;
    max-width: 139px; /* Limita a largura máxima */
    margin: 0px auto 10px;
}

/* Ajustes para certificações no footer */
.certifications {
    width: 100%;
    max-width: 500px; /* Limita a largura máxima */
    margin: 20px auto;
}

/* Responsividade para diferentes tamanhos de tela */
@media (max-width: 576px) {
    
    .buy-button {
        max-width: 150px;
    }
    
    .payment-methods {
        max-width: 180px;
    }
}

@media screen and (min-width: 1024px) {
    .offer-card {
    width: calc(100% / 3 - 14px);
    flex-direction: column;
    display: flex;
    justify-content: space-between;
    padding: 20px 13px;
    max-width: calc(100%/3 - 10px);
    }

    .offer-card{
        order: unset !important
    }

    /* Ajustes específicos para imagens de oferta */
.offer-image {
    max-width: 100% !important;
    width: 100%;
    max-width: 300px; /* Limita a largura máxima */
    margin: 0 auto;
    padding: 15px;
}

.offer-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}