/* --- ESTILOS GERAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABEÇALHO (HEADER) --- */
header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    color: #2a2a72;
}

header nav ul {
    display: flex;
    gap: 25px;
}

header nav a {
    font-weight: 700;
    color: #555;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #2a2a72;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.cart-count {
    background-color: #e30707;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

.menu-toggle {
    display: none; 
}

/* --- SEÇÃO HERO --- */
.hero {
    background: linear-gradient(90deg, #2a2a72 0%, #009ffd 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #fff;
    color: #2a2a72;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* --- SEÇÃO PRODUTOS --- */
.featured-products {
    padding: 80px 0;
}

.featured-products h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 50px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-button {
    background-color: #fff;
    color: #555;
    border: 2px solid #ccc;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    border-color: #2a2a72;
    color: #2a2a72;
}

.filter-button.active {
    background-color: #2a2a72;
    color: #fff;
    border-color: #2a2a72;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.product-card img.product-image {
    transition: all 0.3s ease;
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    flex-grow: 1; 
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #2a2a72;
    margin-bottom: 20px;
}

.add-to-cart-button {
    background-color: #2a2a72;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-button:hover {
    background-color: #009ffd;
}

/* Opções de cores */
.color-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    border-color: #2a2a72;
    transform: scale(1.1);
}

/* Classe para esconder produtos (usada no filtro) */
.product-card.hidden {
    display: none;
}

/* --- SEÇÃO SOBRE NÓS E CONTATO --- */
.about-us, .contact {
    padding: 80px 0;
    text-align: center;
}

.about-us {
    background-color: #fff;
}

.about-us h2, .contact h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
}

.about-us p, .contact p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 15px auto;
}

/* Estilo do formulário de contato */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #2a2a72;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #009ffd;
}

.phone {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- RODAPÉ (FOOTER) --- */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #009ffd;
}

/* --- MODAL DO CARRINHO --- */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
}

.cart-modal.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    font-size: 24px;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-items {
    list-style: none;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 15px;
}

.cart-item .item-info {
    flex-grow: 1;
}

.cart-item .item-name {
    font-weight: 700;
}

.cart-item .item-price {
    color: #555;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background-color: #eee;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e30707;
    cursor: pointer;
    font-size: 18px;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.cart-total-price {
    font-weight: 900;
    color: #2a2a72;
    font-size: 24px;
}

.checkout-btn {
    background-color: #2a2a72;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

/* --- MENSAGENS DE SUCESSO --- */
.success-message {
    text-align: center;
    padding: 40px;
    font-size: 20px;
    color: #28a745;
    font-weight: 700;
}

.success-message p {
    margin-bottom: 20px;
}

.back-to-cart-btn {
    background-color: #2a2a72;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* --- ESTILOS RESPONSIVOS --- */
/* Esconde o botão de fechar no desktop */
.close-menu {
    display: none;
}

@media (max-width: 768px) {
    
    /* Cabeçalho */
    header .container {
        justify-content: space-between;
        padding: 15px 20px;
        flex-wrap: wrap; 
    }
    
    .logo {
        flex-grow: 1; 
    }

    /* Mostra o menu hamburguer */
    .menu-toggle {
        display: block; 
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #2a2a72;
    }
    
    /* Oculta a navegação no layout desktop */
    header nav ul {
        display: none;
    }

    /* Estiliza o menu lateral que vai aparecer */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; 
        max-width: 300px;
        height: 100%;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transform: translateX(-100%); 
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
    }

    .nav-menu.active {
        transform: translateX(0); 
    }

    .nav-menu ul {
        flex-direction: column;
        display: flex;
        height: 100%;
        justify-content: center; 
    }

    .nav-menu ul li a {
        display: block;
        padding: 20px 40px; 
        font-size: 20px;
        border-bottom: 1px solid #eee;
    }
    
    /* Mostra o botão de fechar no celular */
    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #2a2a72;
    }

    /* Overlay */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 998;
        display: none;
    }

    .overlay.active {
        display: block;
    }
    
    /* Hero Section */
    .hero h2 {
        font-size: 32px;
    }

    /* Grid de Produtos */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-modal {
        max-width: 100%; 
    }
}