/* assets/css/style.css - VERSÃO MOBILE OTIMIZADA */

/* --- 1. VARIÁVEIS E RESET --- */
:root {
    --primary-orange: #F37021;
    --dark-black: #101010;
    --dark-grey: #333333;
    --medium-grey: #777777;
    --light-grey: #F5F5F5;
    --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: var(--light-grey); color: var(--dark-grey); display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; max-width: 100%; }

/* --- 2. HEADER --- */
header {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 4px solid var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 1000;
}
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; width: 100%; }
.header-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

.logo-img { height: 85px; width: auto; transition: 0.3s; }

.search-bar { flex: 1; display: flex; max-width: 550px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-radius: 4px; }
.search-bar input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-right: none; outline: none; border-radius: 4px 0 0 4px; }
.search-bar input:focus { border-color: var(--primary-orange); }
.search-bar button { background-color: var(--primary-orange); border: none; padding: 0 25px; cursor: pointer; color: white; font-size: 1.1rem; border-radius: 0 4px 4px 0; }
.search-bar button:hover { background-color: #d65a10; }

.user-actions { display: flex; align-items: center; gap: 30px; }
.cart-btn { position: relative; cursor: pointer; font-size: 1.4rem; color: var(--dark-grey); transition: 0.3s; }
.cart-btn:hover { color: var(--primary-orange); transform: scale(1.1); }
#cart-count { 
    position: absolute; top: -8px; right: -10px; background: var(--primary-orange); color: white; 
    font-size: 0.75rem; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-links { display: flex; gap: 20px; font-weight: bold; align-items: center; }
.menu-links a:hover { color: var(--primary-orange); }
.login-link { color: var(--primary-orange); border: 1px solid var(--primary-orange); padding: 5px 15px; border-radius: 20px; }
.login-link:hover { background: var(--primary-orange); color: white; }

/* --- 3. HERO CAROUSEL --- */
.hero-section { margin-bottom: 20px; width: 100%; background: #000; position: relative; overflow: hidden; }
.carousel-container { display: flex; width: 100%; height: 320px; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; position: relative; display: flex; align-items: center; justify-content: flex-start; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; z-index: 0; }
.slide-content { position: relative; z-index: 2; padding: 0 50px; max-width: 1200px; margin: 0 auto; width: 100%; color: white; }
.slide-title { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.btn-hero { background-color: var(--primary-orange); color: white; padding: 12px 30px; font-weight: bold; border-radius: 4px; display: inline-block; margin-top: 15px; }

.carousel-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary-orange); transform: scale(1.2); }

/* --- 4. SEÇÕES GERAIS --- */
.brand-section { background: var(--white); padding: 20px 0; margin-bottom: 30px; border-bottom: 1px solid #eee; }
.brands-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.brand-item { font-size: 1.1rem; font-weight: 800; color: #ccc; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.brand-item:hover { color: var(--primary-orange); }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.section-title { font-size: 1.6rem; color: var(--dark-black); position: relative; font-weight: 800; }
.section-title::after { content:''; display: block; width: 60px; height: 4px; background: var(--primary-orange); position: absolute; bottom: -12px; left: 0; }

/* --- 5. GRID DE PRODUTOS --- */
.products-grid { 
    display: grid; gap: 20px; padding-bottom: 50px;
    grid-template-columns: 1fr; 
}
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card { background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid #eee; display: flex; flex-direction: column; transition: all 0.3s ease; height: 100%; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--primary-orange); }

.stock-badge { position: absolute; top: 10px; right: 10px; background-color: #27ae60; color: white; font-size: 0.65rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; z-index: 2; text-transform: uppercase; }
.product-image-area { height: 180px; padding: 15px; background: #fff; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #f9f9f9; cursor: pointer; }
.product-image-area img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 0.7rem; color: var(--primary-orange); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.product-title { font-size: 0.95rem; color: var(--dark-grey); font-weight: 600; margin-bottom: 10px; height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; }
.product-price { font-size: 1.4rem; color: var(--dark-black); font-weight: 800; margin-top: auto; }
.btn-buy { background-color: var(--dark-black); color: white; border: none; padding: 10px; width: 100%; border-radius: 4px; font-weight: bold; cursor: pointer; text-transform: uppercase; margin-top: 12px; font-size: 0.8rem; transition: 0.2s; }
.btn-buy:hover { background-color: var(--primary-orange); }

/* --- 6. MODAL DE DETALHES (DESIGN OTIMIZADO) --- */

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

dialog.produto-modal {
    position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 95%; max-width: 1100px;
    max-height: 95vh;
    border: none; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    padding: 0; margin: 0; z-index: 10000;
    overflow: hidden; background: #fff;
    animation: fadeIn 0.3s ease-out forwards;
}

dialog::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }

.modal-content { display: flex; flex-wrap: wrap; width: 100%; height: 100%; }

.close-btn { 
    position: absolute; top: 15px; right: 20px; 
    font-size: 2rem; font-weight: bold; color: #aaa; 
    cursor: pointer; z-index: 10; line-height: 1; transition: 0.2s; 
    background: none; border: none; 
}
.close-btn:hover { color: var(--primary-orange); transform: scale(1.1); }

/* IMAGEM */
.modal-img { 
    flex: 1.2; 
    min-width: 400px; 
    background-color: #fff; 
    display: flex; align-items: center; justify-content: center; 
    padding: 20px; border-right: 1px solid #eee; 
}
.modal-img img { 
    max-width: 100%; 
    max-height: 500px; 
    object-fit: contain; 
    mix-blend-mode: multiply; 
}

/* ÁREA DE TEXTO */
.modal-info { flex: 1; padding: 40px; display: flex; flex-direction: column; overflow-y: auto; max-height: 95vh; }

.brand-tag { 
    background-color: var(--dark-black); 
    color: #fff; 
    padding: 6px 12px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    align-self: flex-start; 
    margin-bottom: 15px; 
    letter-spacing: 1px; 
}

.modal-title { font-size: 1.8rem; line-height: 1.2; color: var(--dark-black); margin-bottom: 5px; }
.ref-text { color: #888; font-size: 0.9rem; margin-bottom: 15px; font-family: monospace; }

/* CAIXA DE OBSERVAÇÃO */
.obs-box { 
    background: #fdfdfd; 
    border: 1px solid #eee; 
    border-left: 4px solid var(--primary-orange); 
    padding: 15px; 
    border-radius: 0 4px 4px 0; 
    margin-bottom: 15px; 
    color: #555; 
    font-size: 0.9rem; 
    line-height: 1.6; 
    max-height: 300px; /* Grande no Desktop */
    overflow-y: auto; 
}
.obs-box strong { color: var(--dark-black); display: block; margin-bottom: 5px; font-size: 0.95rem; }

/* PREÇO REDUZIDO */
.price-big { 
    font-size: 1.8rem; /* Reduzido de 2.5rem */
    font-weight: 800; 
    color: var(--primary-orange); 
    margin: 10px 0 20px 0; 
}

.qtd-selector { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; background: #f5f5f5; width: fit-content; padding: 5px; border-radius: 8px; border: 1px solid #ddd; }
.qtd-label { font-weight: bold; font-size: 0.9rem; padding-left: 10px; color: #555; }
.qtd-btn { width: 35px; height: 35px; background: #fff; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 1.2rem; color: var(--dark-black); transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.qtd-btn:hover { background: var(--primary-orange); color: #fff; border-color: var(--primary-orange); }
.qtd-input { width: 40px; text-align: center; border: none; background: transparent; font-weight: bold; font-size: 1.1rem; }

.modal-actions { display: flex; gap: 15px; margin-top: auto; }
.btn-modal { flex: 1; padding: 15px; border-radius: 8px; font-weight: bold; text-transform: uppercase; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; text-decoration: none; border: none; }
.btn-add-cart { background-color: var(--dark-black); color: #fff; } 
.btn-add-cart:hover { background-color: var(--primary-orange); }


/* --- RESPONSIVO CELULAR (AJUSTES FINOS) --- */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .search-bar { width: 100%; order: 3; }
    .logo-img { height: 60px; }
    
    /* Ajuste Modal Celular */
    .modal-content { flex-direction: column; overflow-y: auto; }
    
    .modal-img { 
        min-width: auto; 
        height: 180px; /* Imagem menor para sobrar espaço */
        padding: 10px; 
    }
    .modal-img img { max-height: 100%; }

    .modal-info { 
        padding: 15px; /* Espaçamento interno reduzido */
        flex: auto;
    }
    
    .modal-title { font-size: 1.3rem; }
    
    /* Preço ainda menor no celular */
    .price-big { font-size: 1.5rem; margin: 5px 0 15px 0; } 
    
    /* Observação mais compacta no celular */
    .obs-box { 
        max-height: 120px; 
        padding: 10px; 
        font-size: 0.85rem; 
        margin-bottom: 15px;
    }

    .modal-actions { flex-direction: column; }
    dialog.produto-modal { width: 95%; max-height: 95vh; }
}

/* --- 7. FOOTER --- */
footer { background: var(--dark-black); color: white; padding: 40px 0; text-align: center; margin-top: auto; }

/* --- LAYOUT DO CATÁLOGO (FILTROS + GRID) --- */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr; /* Lateral fixa 250px, Resto livre */
    gap: 30px;
    align-items: start;
}

/* Barra Lateral */
.filter-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.filter-group { margin-bottom: 25px; }
.filter-title { font-size: 1rem; font-weight: 800; margin-bottom: 10px; color: var(--dark-black); display: flex; justify-content: space-between; }

.filter-list { list-style: none; max-height: 250px; overflow-y: auto; }
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.filter-list li { margin-bottom: 8px; font-size: 0.9rem; color: #555; }
.filter-list li a { display: block; padding: 2px 0; transition: 0.2s; }
.filter-list li a:hover { color: var(--primary-orange); padding-left: 5px; }
.filter-list li a.active { color: var(--primary-orange); font-weight: bold; }

/* Botão Limpar Filtros */
.btn-clear-filters {
    display: block; width: 100%; text-align: center;
    background: #eee; padding: 8px; border-radius: 4px;
    font-size: 0.85rem; font-weight: bold; color: #555; margin-bottom: 20px;
}
.btn-clear-filters:hover { background: #ddd; color: red; }

/* --- PAGINAÇÃO --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.page-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    color: var(--dark-grey);
    font-weight: bold;
    transition: 0.2s;
}

.page-link:hover { border-color: var(--primary-orange); color: var(--primary-orange); }
.page-link.active { background-color: var(--primary-orange); color: white; border-color: var(--primary-orange); }

/* Responsivo Mobile para o Catálogo */
@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; } /* Vira uma coluna só */
    .filter-sidebar { margin-bottom: 20px; }
    .filter-list { max-height: 150px; } /* Menor no celular */
}

/* --- ESTILOS DO CARRINHO --- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px; /* Lista larga | Resumo estreito */
    gap: 30px;
    align-items: start;
}

/* Lista de Itens */
.cart-items { background: #fff; border-radius: 8px; border: 1px solid #eee; overflow: hidden; }

.cart-row {
    display: flex; align-items: center; gap: 20px;
    padding: 20px; border-bottom: 1px solid #eee;
}
.cart-row:last-child { border-bottom: none; }

.cart-img img { width: 80px; height: 80px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; }

.cart-details { flex: 1; }
.cart-details h3 { font-size: 1rem; margin-bottom: 5px; color: var(--dark-black); }
.cart-brand { font-size: 0.7rem; color: var(--primary-orange); font-weight: bold; text-transform: uppercase; }
.cart-ref { font-size: 0.8rem; color: #888; font-family: monospace; }

.cart-qtd { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; }
.cart-qtd button { width: 30px; height: 30px; background: #f5f5f5; border: none; cursor: pointer; font-weight: bold; }
.cart-qtd input { width: 40px; text-align: center; border: none; font-weight: bold; }

.cart-price { font-size: 1.1rem; font-weight: 800; color: var(--dark-black); width: 100px; text-align: right; }

.cart-remove button { background: none; border: none; color: #999; cursor: pointer; font-size: 1.1rem; transition: 0.2s; }
.cart-remove button:hover { color: red; }

/* Resumo (Checkout) */
.cart-summary { background: #fff; padding: 25px; border-radius: 8px; border: 1px solid #eee; position: sticky; top: 100px; }
.cart-summary h3 { margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: #555; }
.summary-total { display: flex; justify-content: space-between; margin-top: 20px; margin-bottom: 25px; font-size: 1.5rem; font-weight: 800; color: var(--dark-black); }

.btn-checkout {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    background: #25D366; color: white; width: 100%; padding: 15px;
    border-radius: 6px; font-weight: bold; text-transform: uppercase;
    font-size: 1.1rem; margin-bottom: 10px;
}
.btn-checkout:hover { background: #1ebe57; transform: translateY(-2px); }

.btn-continue { display: block; text-align: center; color: #666; font-size: 0.9rem; font-weight: bold; padding: 10px; }
.btn-continue:hover { color: var(--primary-orange); text-decoration: underline; }

/* Responsivo Carrinho */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-row { flex-wrap: wrap; }
    .cart-price { width: 100%; text-align: left; margin-top: 10px; color: var(--primary-orange); font-size: 1.3rem; }
    .cart-img { display: none; } /* Oculta imagem no mobile se quiser economizar espaço */
}

/* --- FOOTER COMPLETO E MODERNO --- */
footer {
    background-color: #101010;
    color: #e0e0e0;
    padding: 60px 0 20px 0;
    margin-top: auto;
    border-top: 5px solid var(--primary-orange);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Colunas iguais */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col { display: flex; flex-direction: column; }

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
    width: fit-content;
}

/* Redes Sociais */
.social-links { display: flex; gap: 15px; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 1.2rem;
}
.social-links a:hover { background: var(--primary-orange); transform: translateY(-3px); }

/* Lista de Contato */
.contact-list { list-style: none; padding: 0; }
.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #ccc;
}
.contact-list li i {
    color: var(--primary-orange);
    font-size: 1.1rem;
    margin-top: 4px; /* Alinha ícone com a primeira linha do texto */
}

/* Mapa */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
}
.map-container iframe { display: block; filter: grayscale(20%); transition: 0.3s; }
.map-container:hover iframe { filter: grayscale(0%); }

/* Rodapé Inferior */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Responsivo Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 Coluna no celular */
        gap: 40px;
        text-align: center;
    }
    
    .footer-title { margin: 0 auto 20px auto; } /* Centraliza título */
    .social-links { justify-content: center; }
    .contact-list li { justify-content: center; text-align: center; }
}

/* --- PÁGINA DA OFICINA --- */

/* Hero Específico da Oficina */
.oficina-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?q=80&w=1920');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--primary-orange);
}

/* Grid de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    width: 70px; height: 70px;
    background: #fdf2e9;
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark-black); }
.service-card p { color: #666; font-size: 0.95rem; line-height: 1.5; }

/* Seção de Agendamento */
.booking-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    border: 1px solid #eee;
}

.booking-info {
    flex: 1;
    background: var(--dark-black);
    color: white;
    padding: 50px;
    min-width: 300px;
}

.booking-form-area {
    flex: 1.5;
    padding: 50px;
    min-width: 350px;
}

.booking-input-group { margin-bottom: 20px; }
.booking-input-group label { display: block; font-weight: bold; margin-bottom: 8px; color: var(--dark-grey); }
.booking-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
}
.booking-input:focus { border-color: var(--primary-orange); }

.btn-schedule {
    width: 100%;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-schedule:hover { background: #d65a10; }

.benefits-list { list-style: none; margin-top: 30px; }
.benefits-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.benefits-list li i { color: var(--primary-orange); }

/* Responsivo */
@media (max-width: 768px) {
    .booking-section { flex-direction: column; }
    .booking-info, .booking-form-area { padding: 30px; }
}

/* --- SEÇÃO DE MARCAS (Compacta) --- */
.brands-section {
    padding: 30px 0; /* Menos espaçamento vertical */
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.brands-grid {
    display: grid;
    /* Colunas mais estreitas: mínimo de 120px */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 15px; /* Espaço menor entre os itens */
    align-items: center;
    justify-items: center;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 100%;
    height: 60px; /* Reduzi de 100px para 60px (tamanho de uma barra pequena) */
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Sombra bem leve */
    transition: 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none; /* Garante que não tenha sublinhado se for link */
}

.brand-item img {
    max-width: 90%;
    max-height: 25px; /* Reduzi drasticamente para ficar da altura de um texto */
    object-fit: contain;
    
    /* EFEITO PRETO E BRANCO */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s ease;
}

/* EFEITO AO PASSAR O MOUSE (HOVER) */
.brand-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px); /* Movimento sutil */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Ajuste para celular */
@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 marcas por linha no celular */
        gap: 10px;
    }
    .brand-item {
        height: 50px; /* Ainda menor no celular */
    }
    .brand-item img {
        max-height: 20px;
    }
}

/* --- CORREÇÃO DE ESPAÇAMENTO NO MOBILE --- */
.brands-section .section-title {
    margin-bottom: 45px !important; /* Empurra o texto de baixo para longe do traço */
}

/* Ajuste específico para garantir que fique bom no celular */
@media (max-width: 600px) {
    .brands-section .section-title {
        margin-bottom: 50px !important; /* Um pouco mais de espaço no celular */
    }
    
    .brands-section p {
        margin-top: 10px;
        position: relative;
        z-index: 2; /* Garante que o texto fique "na frente" se algo encostar */
    }
}

/* --- ESTILO DO HEADER E ÍCONES (Correção) --- */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Área dos ícones (Carrinho, Links, Login) */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 25px; /* Espaço entre os itens */
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-orange);
}

/* Ícone do Carrinho */
.cart-icon {
    position: relative; /* Necessário para a bolinha ficar presa nele */
    color: #333;
    font-size: 1.4rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* A bolinha laranja com o número */
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%; /* Deixa redondo */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botão Entrar */
.btn-login {
    text-decoration: none;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background-color: var(--primary-orange);
    color: white;
}

/* Ajuste para Celular */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .nav-icons {
        width: 100%;
        justify-content: space-between; /* Espalha os ícones no celular */
        padding: 0 10px;
    }
}