/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variáveis de Cor */
:root {
    --primary-color: #FF2800; /* Vermelho Ferrari */
    --primary-hover: #D62200;
    --dark-color: #2c2c2c;
    --body-color: #555;
    --light-gray: #f8f9fa;
    --font-family: 'Poppins', sans-serif;
    --border-color: #eee;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* Configurações Globais */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Altura do header */
}

body {
    font-family: var(--font-family);
    color: var(--body-color);
    line-height: 1.7;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

.lead-lg {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botões */
.btn {
    border-radius: 8px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 40, 0, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}
.navbar-brand strong {
    color: var(--primary-color);
}
.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}
.navbar .btn-primary {
    padding: 0.6rem 1.2rem;
}

/* Estilo para o Logo Principal na Navbar */
.navbar-logo-img {
    max-height: 45px;  /* Altura do logo no menu */
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero-section {
    height: 90vh;
    min-height: 700px;
    /* Usa a variável CSS --hero-bg-image definida no index.php */
    background: var(--hero-bg-image, url('https://images.unsplash.com/photo-1543632483-e1d3e856942e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTk3M3wwfDF8c2VhcmNofDE4fHxvcHRpY2lhbnxlbnwwfHx8fDE3MjkyNjU5MzQ&ixlib=rb-4.0.3&q=80&w=1920')) no-repeat center center;
    background-size: cover;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Seções */
.section {
    padding: 80px 0;
}
.section-title {
    margin-bottom: 4rem;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}
.section-title p {
    font-size: 1.1rem;
    color: var(--body-color);
    max-width: 600px;
    margin: 0 auto;
}
.section-h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Cards de Categoria (Produtos) */
.category-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.category-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover img {
    transform: scale(1.05);
}
.category-card-body {
    padding: 1.5rem;
}
.category-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.category-card-body p {
    font-size: 0.95rem;
    color: var(--body-color);
}

/* Seção de Tecnologia */
.tech-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: all 0.3s ease;
}
.tech-box:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary-color);
}
.tech-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Card de Promoção */
.product-card-promo {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}
.product-card-promo:hover {
    transform: translateY(-5px);
}
.product-card-promo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-card-promo .card-body {
    padding: 1.5rem;
}
.product-card-promo .product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.product-card-promo .product-title a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s;
}
.product-card-promo .product-title a:hover {
    color: var(--primary-color);
}
.product-card-promo .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Estilo para links de produto (genérico) */
.product-link {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}
.product-link:hover {
    color: var(--primary-color);
}


/* Seção Sobre */
.list-check {
    padding-left: 0;
    list-style: none;
}
.list-check li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.list-check i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Seção Marcas */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
}
.marcas-grid img {
    max-width: 100%;
    height: 50px; /* Altura fixa para logos */
    object-fit: contain; /* Garante que o logo não distorça */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.marcas-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Seção de Contato */
.contact-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem;
}
.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 40, 0, 0.15);
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
.contact-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

/* Rodapé (Footer) */
.footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 60px 0 20px 0;
}
.footer-brand {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}
.footer-brand strong {
    color: var(--primary-color);
}
.footer-slogan {
    font-size: 1.1rem;
    font-style: italic;
    color: #ccc;
    margin-top: 0.5rem;
}
.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding-left: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links li,
.footer-links li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}
.social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #888;
}

/* Estilo para o Logo no Rodapé */
.footer-logo-img {
    max-height: 50px;  /* Altura do logo no rodapé */
    width: auto;
    object-fit: contain;
}

/* Animações de Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ------------------------------------------- */
/* --- ESTILOS DA PÁGINA DE DETALHE (EXTRA) --- */
/* ------------------------------------------- */
.product-detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #eee;
}

.product-detail-category {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-title {
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn-success {
    background-color: #25D366; /* Cor do WhatsApp */
    border-color: #25D366;
}
.btn-success:hover {
    background-color: #1EAE54;
    border-color: #1EAE54;
}