/* ==================== ESTILOS GERAIS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
header {
    background-color: #0d6efd;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #d4e6ff;
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==================== GRID DE PRODUTOS ==================== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* === IMAGEM DO PRODUTO (Tamanho equilibrado) === */
.card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #222;
}

.preco {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    margin: 10px 0;
}

/* ==================== BOTÕES ==================== */
.btn {
    display: inline-block;
    background-color: #0d6efd;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #0b5ed7;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 992px) {
    .produtos-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 18px;
    }

    .card img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        grid-template-columns: 1fr;
    }
}