﻿/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: #007bff;
    color: white;
    text-align: center;
    padding: 20px;
}

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1.2em;
        margin: 10px 0;
    }

#searchInput {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    margin: 10px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Main */
main {
    padding: 20px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

/* Grid de cards (responsivo) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .card img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .card h3 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .card a {
        display: inline-block;
        background: #007bff;
        color: white;
        padding: 10px 15px;
        border-radius: 5px;
        text-decoration: none;
    }

/* Destaques */
#destaques ul {
    list-style: none;
    padding: 0;
}

#destaques li {
    background: #e9ecef;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

/* Responsividade (mobile-first) */
@media (max-width: 768px) { /* Celular e tablet pequeno */
    .grid-container {
        grid-template-columns: 1fr;
    }
    /* Uma coluna */
    header h1 {
        font-size: 1.5em;
    }

    header p {
        font-size: 1em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) { /* Tablet */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Duas colunas */
}

/* Para a página honda.html (tabela responsiva) */
.table-responsive {
    overflow-x: auto; /* Scroll horizontal no celular */
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #007bff;
    color: white;
}

.img-tabela {
    width: 80px;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto 10px;
}

.btn-voltar {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-marca {
    max-width: 150px;
    margin-bottom: 10px;
}

.nota {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

/* Responsividade extra para tabela em mobile */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

        thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

        td:before {
            position: absolute;
            top: 12px;
            left: 15px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: bold;
        }

        td:nth-of-type(1):before {
            content: "Modelo";
        }

        td:nth-of-type(2):before {
            content: "Preço Aprox.";
        }

        td:nth-of-type(3):before {
            content: "Motor / Potência";
        }

        td:nth-of-type(4):before {
            content: "Características";
        }
}

.img-principal {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

ul, ol {
    margin: 15px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

