/* =========================================
   1. DESIGN SYSTEM & CONFIGURAÇÃO GLOBAL
   ========================================= */
:root {
    /* Cores da Marca */
    --color-black: #1a1a1a;
    --color-navy: #050f1a;      /* Azul Marinho Profundo */
    --color-blue: #0044cc;      /* Azul Eurorepar */
    --color-cream: #fdfbf7;
    --color-success: #27ae60;
    --color-white: #ffffff;
    --color-gray: #f4f4f4;
    
    /* Tipografia */
    --font-head: 'Funnel Sans', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Variáveis de Layout */
    --header-height: 90px;
    --transition: all 0.3s ease;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-navy); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blue); }

/* Reset e Bases */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-black);
    padding-top: var(--header-height);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

/* =========================================
   2. CLASSES UTILITÁRIAS
   ========================================= */
/* Espaço global PADRÃO (usado na Oficina, etc.) */
.pt-section { padding-top: 100px !important; }

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-navy { color: var(--color-navy) !important; }
.w-full { width: 100%; }
.mt-20 { margin-top: 20px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =========================================
   3. TIPOGRAFIA & BOTÕES
   ========================================= */
h1, h2, h3, h4, h5 { font-family: var(--font-head); text-transform: uppercase; font-weight: 800; color: var(--color-navy); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; transition: var(--transition); border-radius: 4px; gap: 10px; font-size: 0.95rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-primary { background: var(--color-navy); color: white; }
.btn-primary:hover { background: var(--color-blue); }
.btn-black { background: var(--color-black); color: white; }
.btn-black:hover { background: #333; }
.btn-success { background: var(--color-success); color: white; }
.btn-success:hover { background: #219150; }
.btn-outline { border: 2px solid var(--color-navy); background: transparent; color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: white; }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================================
   4. LAYOUT & GRELHAS
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.page-info { font-weight: 700; color: var(--color-navy); font-family: var(--font-head); }

/* =========================================
   5. HEADER & NAVEGAÇÃO
   ========================================= */
header { 
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); 
    background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 1000; 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 30px; border-bottom: 3px solid var(--color-navy); 
}

.logo-wrapper { height: 70px; display: flex; align-items: center; }
.main-logo { height: 100%; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo-wrapper:hover .main-logo { transform: scale(1.05); }

nav ul { display: flex; gap: 25px; }

nav a { 
    font-weight: 800; 
    font-size: 1.15rem; 
    position: relative; 
    color: var(--color-navy); 
    letter-spacing: 0.5px;
}

nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: var(--color-blue); transition: var(--transition); }
nav a:hover::after, nav a.active::after { width: 100%; }

.header-actions { display: flex; gap: 20px; align-items: center; color: var(--color-navy); }
.cart-icon { position: relative; cursor: pointer; font-size: 1.3rem; }
.badge { position: absolute; top: -8px; right: -8px; background: var(--color-blue); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--color-navy); }

/* =========================================
   6. SECÇÕES, SLIDER & BENEFÍCIOS
   ========================================= */
section.page { display: none; }
section.page.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slider { position: relative; height: 85vh; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.slide::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 1; } 
.slide-content { position: relative; z-index: 2; text-align: center; color: white; background: rgba(0,21,64,0.7); padding: 50px; max-width: 900px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); }
.slide-content h2 { font-size: 5rem; margin-bottom: 20px; line-height: 1; color: white; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.slide-content p { font-size: 1.5rem; font-weight: 300; color: #eee; }

.benefits-bar { 
    background: var(--color-navy); 
    color: white; 
    padding: 50px 0; 
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
    text-align: center; 
    gap: 30px;
    
    /* ALTERAÇÃO: Margem removida para alinhar com a Oficina */
    margin-bottom: 0 !important; 
}
.benefit-item i { font-size: 2.5rem; color: #4fa3ff; margin-bottom: 15px; }
.benefit-item p { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }

/* Espaçamento nos Títulos das Secções (Oficina, etc) */
.section-header { 
    margin-top: 100px !important;    /* Espaço em cima */
    margin-bottom: 60px !important;  /* Espaço em baixo */
    border-left: 5px solid var(--color-navy); 
    padding-left: 15px; 
    font-size: 2rem; 
    color: var(--color-navy); 
}
.big-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--color-navy); }

/* =========================================
   7. SERVIÇOS & PRODUTOS
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 40px; }
.service-card { background: white; border: 1px solid #eee; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--color-navy); }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card h4 { padding: 15px; text-align: center; color: var(--color-navy); font-size: 1.1rem; margin: 0; }
.mech-text { max-width: 900px; margin: 0 auto; text-align: center; font-size: 1.1rem; color: #444; line-height: 1.8; }

.product-card { border: 1px solid #eee; background: white; transition: var(--transition); display: flex; flex-direction: column; position: relative; cursor: pointer; animation: fadeInUp 0.6s ease-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-img { height: 220px; width: 100%; overflow: hidden; position: relative; background: #f0f0f0; } 
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-cat { color: var(--color-blue); font-size: 0.8rem; font-weight: 700; }
.card-title { font-size: 1.3rem; margin: 5px 0 15px; color: var(--color-navy); }
.car-year-badge { position: absolute; top: 15px; left: 15px; background-color: var(--color-navy); color: white; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; padding: 8px 15px; border-radius: 4px; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.filter-bar { background: var(--color-gray); padding: 25px; margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.filter-group { flex: 1; min-width: 150px; }
.filter-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; color: var(--color-navy); }
.filter-group select, .filter-group input { width: 100%; padding: 12px; border: 1px solid #ccc; font-family: var(--font-body); }

/* =========================================
   8. SOBRE & CONTACTOS
   ========================================= */
/* Gap aumentado para afastar imagem do texto (Desktop) */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }

/* Espaçamento específico para o título "Colisão" */
.about-text h3 { 
    font-size: 2rem; 
    margin-bottom: 40px !important; /* Espaço para o texto abaixo */
    margin-top: 20px !important;    /* Espaço do topo */
    color: var(--color-navy); 
}
.about-text p { font-size: 1.1rem; color: #555; margin-bottom: 15px; text-align: justify; }
.about-img img { width: 100%; height: 400px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.texto-parceria { margin-top: 15px; font-size: 1.1rem; color: #444; border-left: 4px solid #E2001A; padding-left: 15px; }

.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.mvv-card { background: var(--color-gray); padding: 40px 30px; border-radius: 8px; text-align: center; transition: var(--transition); border-bottom: 4px solid transparent; }
.mvv-card:hover { background: white; transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-bottom-color: var(--color-navy); }
.mvv-card i { font-size: 2.5rem; color: var(--color-navy); margin-bottom: 20px; }
.mvv-card h4 { color: var(--color-navy); }

.section-navy { background-color: #0a1f35; color: white; padding: 80px 0; }
.contact-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.navy-title { color: white; font-size: 2.2rem; margin-bottom: 20px; font-weight: 700; }
.navy-desc { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 35px; max-width: 90%; }
.action-buttons { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; max-width: 450px; }
.btn-action { display: flex; align-items: center; justify-content: center; padding: 18px 30px; border-radius: 8px; font-size: 1.2rem; font-weight: bold; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.btn-action .icon { margin-right: 15px; font-size: 1.4rem; }
.btn-call { background-color: white; color: #0a1f35; border: 2px solid white; }
.btn-call:hover { background-color: #e2e8f0; transform: translateY(-3px); }
.btn-whats { background-color: #25D366; color: white; }
.btn-whats:hover { background-color: #1ebe57; transform: translateY(-3px); }
.navy-details { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 30px; }
.detail-row { display: flex; align-items: flex-start; margin-bottom: 25px; }
.icon-box { color: #38bdf8; font-size: 1.3rem; width: 40px; margin-top: 2px; }
.detail-row strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: white; }
.detail-row p { color: #94a3b8; margin: 0; line-height: 1.5; }

/* MAPA CORRIGIDO (FIX PARA RECORTE E MOLDURA) */
.map-side {
    height: 550px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden; /* Corta o conteúdo do iframe */
    border: 5px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    
    /* FORÇA O RECORTE EM TODOS OS NAVEGADORES */
    transform: translateZ(0); 
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    background-color: #eee;
}

.map-side iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================
   9. CHECKOUT, AVALIAÇÕES & FOOTER
   ========================================= */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.order-summary { background: var(--color-gray); padding: 30px; height: fit-content; border-radius: 4px; }
.form-control { margin-bottom: 20px; }
.form-control label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--color-navy); }
.form-control input, .form-control textarea { width: 100%; padding: 15px; border: 1px solid #ccc; font-family: var(--font-body); border-radius: 4px; }

.section-reviews { padding: 60px 0; background-color: #f9f9f9; }
.reviews-header { text-align: center; margin-bottom: 50px; }
.title-gradiente { font-size: 2rem; color: #222; margin-bottom: 10px; }
.subtitle { color: #666; margin-bottom: 20px; }
.google-rating-badge { display: inline-flex; align-items: center; gap: 10px; background: white; padding: 8px 20px; border-radius: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); font-weight: bold; color: #444; }
.g-icon { font-family: sans-serif; font-weight: 900; color: #4285F4; font-size: 1.2rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 50px; }
.review-card { background: white; padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; height: 100%; border: 1px solid #eee; }
.review-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.card-top { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.9rem; color: #888; }
.review-text { font-size: 1.05rem; line-height: 1.6; color: #333; font-style: italic; margin-bottom: 25px; flex-grow: 1; }
.badge-container { flex-grow: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.verified-badge { background: #e6f4ea; color: #137333; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; }
.review-footer { display: flex; align-items: center; gap: 15px; border-top: 1px solid #f0f0f0; padding-top: 15px; }
.avatar-circle { width: 40px; height: 40px; background: #222; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.simple-avatar { background: #e0e0e0; color: #777; }
.author-info { display: flex; flex-direction: column; font-size: 0.9rem; }
.author-info .name { font-weight: bold; color: #222; }
.author-info .verified { font-size: 0.75rem; color: #888; }
.cta-box { text-align: center; background: white; padding: 30px; border-radius: 12px; border: 2px dashed #ddd; max-width: 600px; margin: 0 auto; }
.cta-box p { margin-bottom: 20px; color: #555; font-weight: 500; }
.btn-review-google { display: inline-block; background-color: #4285F4; color: white; padding: 14px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4); transition: all 0.3s ease; }
.btn-review-google:hover { background-color: #3367d6; transform: scale(1.05); box-shadow: 0 6px 20px rgba(66, 133, 244, 0.6); }

.site-footer { background-color: #050f1a; color: #a0aec0; padding: 50px 0 30px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 0; }
.footer-stack { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.footer-brand h3 { font-size: 1.8rem; color: #fff; margin: 0; }
.social-links { display: flex; gap: 15px; }
.social-btn { width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all 0.3s ease; text-decoration: none; }
.social-btn:hover { background: #3182ce; transform: translateY(-3px); }
.parceiro-footer { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 40px auto; width: 100%; }
.label-parceiro-destaque { color: #ffffff; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.logo-container-white { background-color: white; padding: 20px 45px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.4); transition: transform 0.3s ease; }
.logo-container-white:hover { transform: scale(1.03); }
.logo-eurorepar-footer { width: 250px; height: auto; display: block; }
.legal-links { margin-top: 10px; }
.legal-links a { color: #a0aec0; text-decoration: none; font-size: 0.9rem; }
.legal-links a:hover { color: white; text-decoration: underline; }
.separator { margin: 0 10px; color: #4a5568; }

/* =========================================
   10. MODAIS, COOKIES & SIDEBARS
   ========================================= */
.sidebar { position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background: white; z-index: 9999 !important; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: right 0.3s ease; display: flex; flex-direction: column; }
.sidebar.open { right: 0; }
.sidebar-header { background: var(--color-navy); color: white; padding: 25px; display: flex; justify-content: space-between; align-items: center; }
.sidebar-content { padding: 25px; overflow-y: auto; flex-grow: 1; }

/* --- NOVO: Estilos do Carrinho e Quantidade --- */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
    background: #fff;
    margin-bottom: 0;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--color-navy);
}

.cart-item-info small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cart-price {
    font-weight: 700;
    color: var(--color-blue);
    font-size: 0.9rem;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    margin-top: 8px;
}

.qty-controls button {
    border: none;
    background: none;
    padding: 2px 10px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--color-navy);
}

.qty-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-controls span {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #e74c3c; /* Vermelho */
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: 0.2s;
}

.btn-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

.empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.sidebar-footer { padding: 25px; border-top: 1px solid #eee; }

.site-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(2px); }
.site-overlay.active { opacity: 1; visibility: visible; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-content { background: var(--color-cream); width: 100%; max-width: 1300px; height: 95vh; display: grid; grid-template-columns: 1.8fr 1fr; position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: 15px; right: 15px; font-size: 2rem; cursor: pointer; background: white; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; z-index: 100; border-radius: 50%; transition: var(--transition); }
.modal-gallery { background: #000; display: flex; flex-direction: column; height: 100%; justify-content: center; position: relative; }
.main-img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; margin: auto; cursor: zoom-in; }
.thumb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px; background: #111; margin-top: auto; }
.thumb-grid img { height: 70px; width: 100%; object-fit: cover; cursor: pointer; opacity: 0.6; transition: var(--transition); border: 1px solid #333; }
.thumb-grid img.active, .thumb-grid img:hover { opacity: 1; border-color: var(--color-blue); }
.modal-info { padding: 40px; overflow-y: auto; background: var(--color-cream); }

/* SETAS DE NAVEGAÇÃO MODAL (NOVO) */
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.3); color: white; font-size: 2rem; padding: 10px 15px; cursor: pointer; z-index: 10; user-select: none; transition: all 0.3s ease; border-radius: 4px; }
.nav-arrow:hover { background-color: rgba(0, 0, 0, 0.8); color: var(--color-blue); }
.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--color-navy); color: white; padding: 20px; z-index: 10002; display: flex; justify-content: center; align-items: center; gap: 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.95rem; max-width: 800px; }

/* Lightbox & Utilitários */
.lightbox { display: none; position: fixed; z-index: 4000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(5px); }
.lightbox-content { margin: auto; display: block; max-width: 95%; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.5); animation: zoomIn 0.3s; }
@keyframes zoomIn { from {transform:scale(0.8); opacity:0} to {transform:scale(1); opacity:1} }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.lightbox-close:hover { color: #bbb; }
.lightbox .prev, .lightbox .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 40px; transition: 0.3s ease; border-radius: 0 3px 3px 0; user-select: none; z-index: 100000; background-color: rgba(0, 0, 0, 0.3); text-decoration: none; }
.lightbox .next { right: 0; border-radius: 3px 0 0 3px; }
.lightbox .prev { left: 0; border-radius: 3px 0 0 3px; }
.lightbox .prev:hover, .lightbox .next:hover { background-color: rgba(0, 0, 0, 0.9); }

#backToTop { position: fixed; bottom: 30px; right: 30px; background-color: #050f1a; color: white; border: 2px solid white; width: 45px; height: 45px; border-radius: 50%; text-align: center; line-height: 41px; font-size: 1.2rem; text-decoration: none; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.3); opacity: 0; visibility: hidden; transition: all 0.3s ease; cursor: pointer; }
#backToTop:hover { background-color: white; color: #050f1a; border-color: white; transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.4); }
#backToTop.show { opacity: 1; visibility: visible; }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.toast { background: white; color: #333; padding: 15px 25px; margin-top: 10px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; border-left: 5px solid #2ecc71; animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards; min-width: 250px; }
.toast.error { border-left-color: #e74c3c; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }

.skeleton { background: #eeeeee; background: linear-gradient(90deg, #eeeeee 25%, #f5f5f5 50%, #eeeeee 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-card { background: white; border: 1px solid #eee; border-radius: 8px; overflow: hidden; height: 100%; }
.skeleton-img { width: 100%; height: 220px; display: block; }
.skeleton-body { padding: 20px; }
.skeleton-text { height: 20px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.long { width: 90%; }

/* Mobile */
@media (max-width: 1150px) { /* Aumentado para 1150px para corrigir iPhone Landscape */
    header { 
        padding: 0 15px !important; /* Espaço para o logo respirar lateralmente */
    }
    .menu-toggle { display: block; z-index: 1001; }
    nav ul { display: flex; position: fixed; top: var(--header-height); left: -100%; width: 100%; height: calc(100vh - var(--header-height)); background: white; flex-direction: column; padding: 40px 20px; box-shadow: none; transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; }
    nav ul.show { left: 0; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
    nav ul li { width: 100%; border-bottom: 1px solid #eee; }
    nav ul li a { display: block; padding: 15px 0; font-size: 1.2rem; width: 100%; }
    nav a::after { display: none; }
    
    .logo-wrapper { height: 60px; } /* Ajuste de altura do logo no mobile */

    .slide-content h2 { font-size: 2.2rem; }
    .big-title { font-size: 2.2rem; }
    .modal-content { display: flex; flex-direction: column; height: 100%; max-width: 100%; border-radius: 0; overflow-y: auto; }
    .modal-gallery { height: auto; flex-shrink: 0; background: #000; }
    .main-img { max-height: 40vh; object-fit: contain; }
    .modal-info { overflow-y: visible; height: auto; padding-bottom: 80px; }
    .lightbox .prev, .lightbox .next { font-size: 25px; padding: 12px; background-color: rgba(0,0,0,0.5); }
    .nav-arrow { padding: 5px 10px; font-size: 1.5rem; }
    .about-split, .contacts-grid, .checkout-grid, .contact-grid-layout { grid-template-columns: 1fr; }
    .map-side { height: 350px; margin-top: 20px; }
    .navy-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr !important; }
    .sidebar { width: 85% !important; right: -85%; }
    .sidebar.open { right: 0; }
    .cookie-banner { flex-direction: column; text-align: center; padding-bottom: 30px; }
}

@media (max-width: 600px) {
    .logo-eurorepar-footer { width: 180px; }
    .label-parceiro-destaque { font-size: 0.9rem; }
}

@media (max-width: 400px) {
    .logo-container-white { padding: 15px 20px !important; width: 90%; box-sizing: border-box; }
    .logo-eurorepar-footer { width: 100% !important; }
}

/* =======================================================
   UNIFORMIZAÇÃO: BEM-VINDO E OFICINA
   ======================================================= */

/* 1. Assegura espaçamento igual para a "intro" de Boas-vindas e Oficina */
#home .pt-section, #mecanica.pt-section {
    padding-top: 80px !important; /* Altura visualmente alinhada */
}

/* 2. Remove margens extra dos títulos para alinhar pelo topo */
.big-title, 
#mecanica .section-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =======================================================
   AJUSTE "COLADO": CARROS E PEÇAS
   ======================================================= */

/* 1. Remove totalmente o espaço do topo da secção */
#carros, #pecas, #stand, #cars, #parts {
    padding-top: 0 !important; 
}

/* 2. Remove margens e define um espaço mínimo */
#carros .section-header, 
#pecas .section-header,
#stand .section-header,
#cars .section-header,
#parts .section-header {
    margin-top: 0 !important;
    padding-top: 10px !important; 
    margin-bottom: 25px !important;
}

/* 3. Ajuste idêntico para Mobile */
@media (max-width: 900px) {
    #carros, #pecas, #stand, #cars, #parts {
        padding-top: 0 !important;
    }
    #carros .section-header, #pecas .section-header {
        padding-top: 5px !important;
    }
}

/* =========================================
   ESTILO DO LOGÓTIPO (MOURA & SUSANA)
   ========================================= */
.logo-img {
    height: 70px; /* Altura ideal para PC */
    width: auto;  /* Mantém a proporção */
    background-color: transparent; /* Remove o fundo branco */
    padding: 0; /* Remove a margem interna que criava a caixa */
    border-radius: 0; /* Remove os cantos arredondados */
    box-shadow: none; /* Remove a sombra em volta da imagem */
    transition: transform 0.3s ease; /* Mantém o efeito suave ao passar o rato */
}

/* Quando passar o rato por cima, o logo aumenta ligeiramente */
.logo-img:hover {
    transform: scale(1.02);
}

/* Ajuste para telemóveis e tablets (Corrigido para 1150px) */
@media (max-width: 1150px) {
    .logo-img {
        height: 60px; /* Um pouco menor para caber no telemóvel/tablet */
    }
}
/* =========================================
   NOVO: DESTAQUE ENERGIA VERDE
   ========================================= */
.fa-solar-panel {
    color: #27ae60 !important; /* Verde sustentável */
}