/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}




body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #e2cf89;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo span {
    color: #333;
}

/* Navegação Desktop */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Carrossel */
.carrossel {
    max-width: 1000px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 450px;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legenda {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: max-content;
}

.legenda h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.legenda p {
    font-size: 1.1rem;
}

.controles {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.indicadores {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicador.ativo {
    background: white;
    transform: scale(1.2);
}

/* Produtos */
.products {
    margin: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

/* Cards de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* CORREÇÃO DAS IMAGENS - AGORA PREENCHEM MELHOR */
.product-image {
    height: 250px; /* Aumentei a altura */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    padding: 10px;
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mudei para cover para preencher melhor */
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d4af37;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: center;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 15px;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.buy-btn {
    flex: 1;
    background-color: #ebc720;
    color: white;
    border: none;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 14px;
}

.buy-btn:hover {
    background-color: #b8941f;
}

/* Botão Ver Mais */
.ver-mais-container {
    text-align: center;
    margin-top: 40px;
    display: none;
}

.ver-mais-btn {
    background-color: #e2cf89;
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ver-mais-btn:hover {
    background-color: #d4af37;
    color: white;
    transform: translateY(-2px);
}

/* Modal para imagem ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #d4af37;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #d4af37;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d4af37;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    /* Navegação Mobile - MESMAS CORES E ESTILO DO DESKTOP */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #e2cf89; /* MESMA COR DO HEADER */
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 0;
        margin: 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        color: #333; /* MESMA COR DO DESKTOP */
        font-weight: 500; /* MESMA FONTE DO DESKTOP */
        transition: all 0.3s; /* MESMA ANIMAÇÃO */
        text-decoration: none;
        width: 100%;
    }
    
    nav ul li a:hover {
        color: #ffffff; /* MESMO HOVER DO DESKTOP */
        background-color: rgba(255, 255, 255, 0.2); /* MESMO HOVER */
    }
    
    /* CORREÇÃO DEFINITIVA PARA MOBILE */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 180px; /* Ajuste para mobile */
    }
    
    .product-info h3 {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 17px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .buy-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .carrossel {
        height: 300px;
    }
    
    .slides {
        height: 300px;
    }
    
    .legenda h3 {
        font-size: 1.4rem;
    }
    
    .legenda p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* CORREÇÃO PARA CELULARES PEQUENOS */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-image {
        height: 200px; /* Ajuste para mobile */
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .carrossel {
        height: 250px;
    }
    
    .slides {
        height: 250px;
    }
    
    .legenda {
        padding: 10px 15px;
        bottom: 15px;
    }
    
    .legenda h3 {
        font-size: 1.2rem;
    }
    
    .legenda p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    /* CORREÇÃO PARA CELULARES MUITO PEQUENOS */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 350px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info h3 {
        font-size: 15px;
    }
    
    .product-price {
        font-size: 17px;
    }
    
    .buy-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
}