/* Reset and Variables */
:root {
    --primary-red: #B72A38;
    --dark-red: #9A2230;
    --dark-bg: #0C0C0C;
    --light-bg: #FEFEFE;
    --yellow-accent: #B72A38;
    --text-main: #3F3A3B;
    --text-light: #FEFEFE;
    --border-color: #ddd;
    --font-main: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.5;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding { padding: 4rem 0; }
.section-margin { margin: 4rem auto; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--text-light); }
.bg-primary { background-color: var(--primary-red); color: var(--text-light); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 15px; }

/* Buttons */
.btn-red, .btn-yellow, .btn-dark, .btn-filter {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-red { background-color: var(--primary-red); color: #fff; }
.btn-red:hover { background-color: var(--dark-red); }

.btn-yellow { background-color: #FEFEFE; color: #0C0C0C; font-weight: 900; }
.btn-yellow:hover { background-color: #e0e0e0; }

.btn-dark { background-color: var(--dark-bg); color: #fff; }
.btn-dark:hover { background-color: #000; }

.btn-filter { background-color: var(--dark-bg); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;}
.btn-filter:hover { background-color: #000; }

/* Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-bg);
    text-transform: uppercase;
}
.section-title.light h2 {
    color: #fff;
}
.title-stripes {
    flex-grow: 1;
    height: 15px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--primary-red) 10px, var(--primary-red) 20px);
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}
.carousel-dots .dot.active {
    background-color: var(--primary-red);
}

/* ========================================= */
/* Header & Navigation */
/* ========================================= */
.top-bar {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo {
    max-height: 50px;
    width: auto;
}
.site-logo-footer {
    max-height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.search-area {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.search-area input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    outline: none;
}
.search-area button {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: none;
    border-left: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--primary-red);
}

.contact-info, .user-actions .login {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info i, .user-actions .login i {
    font-size: 1.5rem;
    color: var(--primary-red);
}
.contact-info .text, .user-actions .login .text {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}
.text .label { font-weight: 700; color: #555; }
.text .value { font-weight: 700; color: var(--dark-bg); }
.text .value a { color: var(--primary-red); }

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.favorites, .cart {
    font-size: 1.5rem;
    color: var(--dark-bg);
    position: relative;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    background-color: var(--dark-bg);
}
.main-nav ul {
    display: flex;
    justify-content: space-between;
}
.main-nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.main-nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ========================================= */
/* Hero Banner */
/* ========================================= */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #111, #333);
    height: 500px; /* Placeholder height */
    display: flex;
    align-items: center;
}
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}
.hero-text-overlay {
    max-width: 500px;
    color: #fff;
}
.hero-text-overlay h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0;
}
.hero-text-overlay h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--yellow-accent);
    line-height: 1;
    margin-bottom: 10px;
}
.hero-text-overlay p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Search Filter (The Red Box) */
.search-filter {
    background-color: var(--primary-red);
    padding: 20px;
    border-radius: 4px;
    position: absolute;
    bottom: -40px; /* Overlaps hero */
    left: 15px;
    right: 15px;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.filter-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #fff;
}
.filter-header h3 {
    font-weight: 900;
    font-style: italic;
    margin: 0;
}
.filter-header .stripes {
    width: 50px;
    height: 15px;
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,0.3) 5px, rgba(255,255,255,0.3) 10px);
}
.filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
}
.filter-controls select {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    outline: none;
}

/* ========================================= */
/* Highlights Grid (Carreta, etc) */
/* ========================================= */
.highlights {
    padding-top: 60px; /* space for overlapping filter */
}
.highlight-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}
.highlight-card .card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.highlight-card .card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
    color: #fff;
}
.highlight-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* ========================================= */
/* Explore by Group */
/* ========================================= */
.group-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.group-card .card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.group-card h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* ========================================= */
/* Suppliers */
/* ========================================= */
.supplier-logos .logo-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
}

/* ========================================= */
/* Banners (Catálogo, Pessoa Jurídica) */
/* ========================================= */
.promo-banner {
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    padding: 40px;
    display: flex;
    align-items: center;
    min-height: 250px;
}
.cat-eletronico { background: linear-gradient(135deg, #eee, #ddd); color: var(--dark-bg); }
.cat-eletronico h2 { font-size: 2.5rem; font-weight: 900; color: var(--dark-bg); line-height: 1;}
.cat-eletronico p { max-width: 300px; margin: 15px 0; color: #555;}
.cat-eletronico .apps { display: flex; gap: 10px; }

.pessoa-juridica { background: linear-gradient(135deg, var(--dark-bg), #1a2a4a); }
.pessoa-juridica h2 { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 5px; }
.pessoa-juridica p { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }

/* ========================================= */
/* Product Highlights */
/* ========================================= */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    text-align: center;
}
.product-card .code {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
    font-weight: bold;
}
.product-card .code i { cursor: pointer; }
.product-card .prod-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-bg);
}

/* ========================================= */
/* Institutional */
/* ========================================= */
.inst-content h2 { font-size: 2rem; font-weight: 900; color: var(--dark-bg); }
.inst-content .subtitle { font-size: 1.2rem; color: #555; margin-bottom: 20px; }
.inst-content ul { margin-top: 20px; padding-left: 20px; }
.inst-content li { margin-bottom: 8px; position: relative; }
.inst-content li::before {
    content: '◆';
    position: absolute;
    left: -20px;
    color: #999;
    font-size: 0.8rem;
}

/* ========================================= */
/* Branches (Filiais) */
/* ========================================= */
.branch-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--primary-red);
}
.branch-name {
    padding: 15px;
    color: #fff;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================= */
/* Badges Section */
/* ========================================= */
.badges-section p { font-size: 1.2rem; color: #777; margin-top: -20px; }
.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.badge-item i {
    font-size: 2.5rem;
    color: #ccc; /* placeholder for red icon */
}
.badge-item strong { display: block; color: var(--dark-bg); font-size: 0.9rem;}
.badge-item span { display: block; color: #777; font-size: 0.8rem; }

/* ========================================= */
/* Newsletter */
/* ========================================= */
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 15px;
}
.news-text h2 {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
}
.news-form {
    display: flex;
    flex-grow: 1;
    gap: 10px;
}
.news-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    outline: none;
}
.news-form .btn-dark {
    padding: 15px 30px;
}

/* ========================================= */
/* Footer */
/* ========================================= */
.main-footer {
    background-color: #fff;
    padding-top: 60px;
}
.footer-top h3 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 20px;
}
.footer-top ul li { margin-bottom: 10px; }
.footer-top ul a { color: #555; font-size: 0.9rem; }
.footer-top ul a:hover { color: var(--primary-red); }


.brand-col p { font-size: 0.85rem; color: #555; margin-bottom: 20px; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #999;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
}
.social-icons a:hover { background: var(--primary-red); }

.info-col p { font-size: 0.85rem; color: #555; margin-bottom: 10px; }
.security-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.security-badges span {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom {
    background-color: var(--dark-bg);
    padding: 20px 0;
    margin-top: 40px;
}
.contact-strip .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}
.contact-strip .contact-item i {
    font-size: 2rem;
    color: var(--primary-red);
}
.contact-strip .contact-item p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-copyright {
    padding: 20px 0;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid var(--border-color);
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.developed-by {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ========================================= */
/* Brands / Destaques Caminhões */
/* ========================================= */
.brands-section {
    width: 100%;
    max-width: 98%;
    margin: 4rem auto;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background-color: var(--border-color); /* This acts as the thin border */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}
.brand-card {
    position: relative;
    height: 380px;
    background-color: #111;
}
.brand-card .card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #333;
    z-index: 1;
}
.brand-card .card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 25px 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
    color: #fff;
}
.brand-card h3 {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    margin: 0;
    text-align: center;
}
.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
    .brand-card {
        height: 300px;
    }
}

/* ========================================= */
/* Responsive */
/* ========================================= */
@media (max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-7 { grid-template-columns: repeat(4, 1fr); }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .news-form { width: 100%; flex-direction: column; }
    .filter-controls { grid-template-columns: 1fr; }
    .search-filter { position: relative; bottom: 0; margin-top: -20px; }
    .hero-banner { height: auto; padding: 60px 0; }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .main-nav ul { flex-direction: column; display: none; /* Add JS for hamburger later */ }
    .top-bar-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .search-area { max-width: 100%; }
    .contact-strip.grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .footer-top.grid-4 { grid-template-columns: 1fr; }

}
