:root {
    --wood-dark: #e51c23;       /* Piros főszín (fejléc, gombok, lábléc) */
    --wood-medium: #c4161b;     /* Sötétebb piros hoverhez */
    --wood-light: #e0e0e0;      /* Világosszürke keretekhez */
    --bg-cream: #f4f4f4;        /* Világosszürke oldalháttér */
    --accent-red: #e51c23;      /* A logó piros színe */
    --text-dark: #212121;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background-color: var(--accent-red);
    color: #fff;
    padding: 15px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
}

.brand img {
    height: 55px;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
}

.brand h1 { font-size: 1.8rem; letter-spacing: 1px; }

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

nav a.active {
    background-color: #fff;
    color: var(--accent-red);
}

.badge {
    background: #fff;
    color: var(--accent-red);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 5px;
}

main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 65vh;
}

.card {
    background: #fff;
    border: 1px solid var(--wood-light);
    border-left: 6px solid var(--accent-red);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.product-img-placeholder {
    height: 200px;
    background-color: #e9e9e9;           /* Szürke háttér */
    border: 2px solid var(--accent-red); /* Piros keret */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d352e;
    font-weight: bold;
    margin-bottom: 15px;
}

}

label { display: block; margin-top: 12px; font-weight: 600; color: var(--text-dark); }

select, input[type="text"], input[type="email"], input[type="number"], textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn:hover { background-color: var(--wood-medium); }
.btn-danger { background-color: #b71c1c; padding: 6px 12px; font-size: 0.9rem; margin-top: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--wood-light);
    text-align: left;
}

th { background-color: #eeeeee; color: var(--text-dark); }

footer {
    background-color: var(--accent-red);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
/* =========================================
   MOBILNÉZET (768px alatt)
   ========================================= */
@media (max-width: 768px) {
    /* Fejléc: logó felül, menü alatta középre igazítva */
    header {
        flex-direction: column;
        padding: 15px 4%;
        gap: 15px;
        text-align: center;
    }

    .brand {
        justify-content: center;
    }

    .brand img {
        height: 45px;
    }

    .brand h1 {
        font-size: 1.5rem;
    }

    /* Navigáció: két oszlopos vagy egymás alatti elrendezés */
    nav {
        width: 100%;
    }

    nav ul {
        justify-content: center;
        gap: 8px;
    }

    nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
        display: inline-block;
    }

    /* Fő tartalom és kártyák */
    main {
        margin: 20px auto;
        padding: 0 15px;
    }

    .card, .product-card {
        padding: 18px;
    }

    /* Termékkártyák: egy oszlopban jelenjenek meg */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-img-placeholder {
        height: 180px;
    }

    /* Gombok teljes szélességben, hogy könnyű legyen megnyomni */
    .btn {
        width: 100%;
        padding: 12px;
    }

    /* Táblázat (Ajánlatkérés oldal) görgethetővé tétele mobilon */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    footer {
        padding: 15px;
        font-size: 0.85rem;
        margin-top: 30px;
    }
}

