/* --- VARIÁVEIS GLOBAIS --- */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --primary-color: #FFD700;
    --text-main: #ffffff;
    --text-secondary: #b3b3b3;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESET E BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
header {
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
}

.logo h1 span { color: var(--primary-color); }

.nav ul { display: flex; gap: 30px; }
.nav a { 
    font-weight: 500; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    position: relative;
}

.nav a::after {
    content: '';
    width: 0; height: 2px; background: var(--primary-color);
    position: absolute; bottom: -5px; left: 0;
    transition: var(--transition);
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 15px; align-items: center; }
.header-actions input {
    background: #333; border: none; padding: 8px 15px;
    border-radius: 4px; color: white;
}
.header-actions button {
    background: var(--primary-color); color: black;
    border: none; padding: 8px 20px; border-radius: 4px;
    font-weight: 700; cursor: pointer;
    text-transform: uppercase; font-size: 0.8rem;
}

/* --- BANNER HERO --- */
.banner {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* --- BARRA DE CONFIANÇA --- */
.trust-bar {
    background: #1a1a1a;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}
.trust-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-around; flex-wrap: wrap;
    text-align: center; gap: 20px;
}
.trust-item h4 { color: var(--primary-color); margin-bottom: 5px; font-family: var(--font-title); }
.trust-item p { font-size: 0.85rem; color: var(--text-secondary); }

/* --- SEÇÕES DE PRODUTOS --- */
main { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.product-section { margin-bottom: 80px; }
.product-section h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    text-transform: uppercase;
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* Categorias Sidebar */
.categories ul li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.categories ul li:hover { color: var(--primary-color); padding-left: 10px; }

/* Grid de Cards */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid #2a2a2a;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-card img {
    width: 100%; height: 300px; object-fit: cover;
}

.card-info { padding: 15px; text-align: center; }

.product-card h3 {
    font-size: 1rem; margin-bottom: 8px; font-weight: 400;
}

.product-card p {
    color: var(--primary-color);
    font-weight: 700; font-size: 1.2rem;
}

/* --- INPUTS DO FORMULÁRIO (Novo Estilo) --- */
.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    font-family: var(--font-body);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    background: #000; border-top: 1px solid #333;
    padding: 40px 20px; text-align: center; margin-top: 50px;
}
footer p { color: #666; margin-bottom: 15px; }
footer ul { display: flex; justify-content: center; gap: 20px; }
footer a:hover { color: var(--primary-color); }

/* --- MENU MOBILE --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .header-main { flex-direction: column; gap: 15px; }
    .nav ul { gap: 15px; font-size: 0.8rem; }
    .layout-grid { grid-template-columns: 1fr; } 
    .categories { display: none; }
    .banner { height: 50vh; }
    
    .hamburger { display: flex; z-index: 1001; }

    .nav {
        position: fixed; top: 0; right: -100%;
        width: 70%; height: 100vh; background-color: #000;
        flex-direction: column; justify-content: center;
        transition: 0.4s ease; z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav.active { right: 0; }
    .nav ul { flex-direction: column; align-items: center; gap: 40px; }
    .nav a { font-size: 1.2rem; }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .product-container { grid-template-columns: 1fr; }
    .main-image img { height: 400px; }
}

/* --- PÁGINA PRODUTO --- */
.breadcrumb { max-width: 1200px; margin: 20px auto; padding: 0 20px; color: var(--text-secondary); font-size: 0.9rem; }
.breadcrumb a { color: var(--primary-color); }

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px; max-width: 1200px; margin: 0 auto 80px auto; padding: 0 20px;
}

.product-gallery { display: flex; flex-direction: column; gap: 15px; }
.main-image img { width: 100%; height: 600px; object-fit: cover; border-radius: 4px; border: 1px solid #333; }

.product-details { padding: 20px 0; }
.product-title { font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 10px; line-height: 1.2; }
.rating { color: #FFD700; margin-bottom: 20px; font-size: 0.9rem; }

.price-box { margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.old-price { text-decoration: line-through; color: #666; margin-right: 10px; }
.current-price { font-size: 2rem; color: var(--primary-color); font-weight: 700; }
.installments { font-size: 0.9rem; color: var(--text-secondary); margin-top: 5px; }

.selector-container { margin-bottom: 30px; }
.selector-container label { display: block; margin-bottom: 10px; font-weight: 600; }
.size-selector { display: flex; gap: 10px; }
.size-option {
    width: 45px; height: 45px;
    border: 1px solid #444; color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
    font-weight: 600;
}
.size-option:hover, .size-option.selected {
    background-color: var(--primary-color);
    color: black; border-color: var(--primary-color);
}
.size-guide-link { display: block; margin-top: 10px; font-size: 0.85rem; text-decoration: underline; }

.btn-buy {
    width: 100%; padding: 18px;
    background-color: var(--primary-color); color: black;
    font-family: var(--font-title); font-weight: 900; font-size: 1.1rem;
    border: none; cursor: pointer; text-transform: uppercase;
    transition: transform 0.2s ease; letter-spacing: 1px;
}
.btn-buy:hover { transform: scale(1.02); background-color: #e6c200; }

.product-description { margin-top: 40px; color: #ccc; line-height: 1.8; }
.product-description h3 { color: white; margin-bottom: 15px; border-left: 3px solid var(--primary-color); padding-left: 10px; }

/* --- HOME: DEPOIMENTOS & NEWSLETTER --- */
.testimonials { background-color: #151515; padding: 60px 20px; margin-top: 50px; }
.section-title { text-align: center; margin-bottom: 40px; font-family: var(--font-title); font-size: 2rem; }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.testimonial-card {
    background: #222; padding: 30px; border-radius: 8px;
    border-bottom: 3px solid var(--primary-color);
}
.testimonial-card p { font-style: italic; color: #ddd; margin-bottom: 15px; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-avatar { width: 50px; height: 50px; border-radius: 50%; background: #333; }
.user-name strong { display: block; color: white; }
.user-name span { font-size: 0.8rem; color: #888; }

.newsletter {
    background: linear-gradient(45deg, #000, #1a1a1a);
    padding: 60px 20px; text-align: center; border-top: 1px solid #333;
}
.newsletter-form {
    display: flex; max-width: 500px; margin: 20px auto 0; gap: 10px;
}
.newsletter-form input { flex: 1; padding: 15px; border: none; border-radius: 4px; }
/* --- ESTILOS MOBILE (max-width: 768px) --- */
@media screen and (max-width: 768px) {

    /* --- GERAL --- */
    .breadcrumb, .product-container {
        padding: 0 15px; /* Reduz o padding lateral em telas menores */
    }

    /* --- HEADER (Exemplo de ajuste para o Header, caso necessário) --- */
    .header-main {
        padding: 15px 15px;
    }
    .nav {
        /* Ocultar a navegação principal, geralmente substituída por um menu hambúrguer interativo */
        display: none; 
    }
    .header-actions {
        gap: 15px;
    }
    .logo h1 {
        font-size: 1.5rem; /* Reduz o tamanho do logo */
    }
    .hamburger {
        display: flex; /* Garante que o ícone do hambúrguer apareça */
    }

    /* --- PÁGINA PRODUTO --- */

    /** Container do Produto: Muda para layout de coluna única **/
    .product-container {
        grid-template-columns: 1fr; /* 1 coluna: Imagem e Detalhes empilhados */
        gap: 30px; /* Reduz o espaço entre as seções */
        margin-bottom: 50px;
    }

    /** Galeria de Imagens **/
    .main-image img {
        height: auto; /* Muda de altura fixa para automática */
        max-height: 400px; /* Define uma altura máxima razoável para mobile */
        width: 100%; /* Garante que a imagem use a largura total */
        object-fit: contain; /* Ajusta o object-fit para 'contain' ou 'cover' dependendo da preferência. 'Cover' pode cortar, 'contain' evita o corte, mas pode deixar barras laterais. Mantive 'cover' para um design mais preenchido, mas reduzi o height. */
    }

    /** Detalhes do Produto **/
    .product-details {
        padding: 0; /* Remove o padding horizontal extra */
    }

    .product-title {
        font-size: 1.8rem; /* Reduz o tamanho do título do produto */
    }

    .current-price {
        font-size: 1.6rem; /* Reduz o tamanho da fonte do preço */
    }

    /** Formulário de Compra e Quantidade **/
    .client-info input.form-input {
        width: 100%;
        padding: 12px;
        margin-bottom: 10px;
        box-sizing: border-box; /* Garante que padding e borda não aumentem a largura */
        background: #1a1a1a;
        color: white;
        border: 1px solid #333;
        border-radius: 4px;
    }
    .quantity-selector {
        justify-content: flex-start; /* Alinha o seletor de quantidade à esquerda */
    }

    /** Botão de Compra **/
    .btn-buy {
        padding: 15px; /* Reduz um pouco o padding do botão */
        font-size: 1rem;
    }
    
    /* --- HOME: DEPOIMENTOS & NEWSLETTER --- */

    /** Depoimentos **/
    .testimonials {
        padding: 40px 15px; /* Ajusta o padding da seção */
    }
    .section-title {
        font-size: 1.5rem; /* Reduz o tamanho do título da seção */
    }
    .testimonials-grid {
        grid-template-columns: 1fr; /* Coloca os depoimentos em uma coluna única */
    }
    .testimonial-card {
        padding: 20px;
    }

    /** Newsletter **/
    .newsletter {
        padding: 40px 15px;
    }
    .newsletter-form {
        flex-direction: column; /* Input e botão empilhados */
        max-width: 350px;
    }
    .newsletter-form input {
        padding: 12px;
    }
    .newsletter-form button {
        padding: 12px;
        /* Estilos adicionais para o botão se necessário, por exemplo: */
        /* background-color: var(--primary-color);
        color: black;
        border: none;
        border-radius: 4px;
        font-weight: 700; */
    }
    
    /* FOOTER */
    footer {
        padding: 15px;
    }

}