body {
    margin: 0;
    font-family: Verdana, sans-serif;
    color: #333;
    background: #fff;
}

main {
    padding: 20px;
}

.section-title,
.contact-container h1,
.contact-container > p,
.gallery-introduction {
    text-align: center;
}


/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 2px solid #2c3e50;
}

.logo {
    border: 2px solid #000;
    padding: 5px;
}

.logo-img {
    display: block;
    height: 50px;
}

nav {
    display: none;
    gap: 25px;
    align-items: center;
}

nav.is-open {
    display: flex;
}

nav a {
    padding: 10px;
    color: #2c3e50;
    font-weight: bold;
    text-decoration: none;
}

nav a:hover {
    color: #3498db;
}

#menu-toggle,
.product button,
.submit-btn {
    border: 0;
    border-radius: 4px;
    background: #2c3e50;
    color: #fff;
    cursor: pointer;
}

#menu-toggle {
    padding: 10px 15px;
}

#menu-toggle:hover,
.product button:hover,
.submit-btn:hover {
    background: #3498db;
}


/* Home banner */

.hero-banner {
    min-height: 350px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background:
        url("images/hero_banner.jpg")
        center / cover;
}


/* Products */

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: auto;
    justify-content: center;
}

.product {
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ddd;
    background: #f9f9f9;
    box-shadow:
        2px 2px 5px
        rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    transition: 0.3s;
}

.product img:hover {
    transform: scale(1.02);
    filter: brightness(70%);
}

.product button {
    margin: 10px 4px 0;
    padding: 9px 14px;
}

.price {
    font-weight: bold;
}

.info-text {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    background: #eef;
    font-size: 0.85rem;
    line-height: 1.5;
}

.info-text.is-visible {
    display: block;
}


/* Contact form */

.contact-container {
    max-width: 600px;
    margin: auto;
}

#contact-form {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 11px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}

textarea.form-input {
    min-height: 130px;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
}

.form-input.is-invalid {
    border: 2px solid #c0392b;
    background: #fff6f6;
}

.input-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: #c0392b;
    font-size: 0.8rem;
}

#form-error {
    display: none;
    color: #c0392b;
    font-weight: bold;
    text-align: center;
}

#form-error.is-visible {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
}


/* Gallery */

.gallery-introduction {
    margin-bottom: 25px;
}

.gallery-container {
    width: 50%;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);
    gap: 15px;
}

.gallery-image {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f5;
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition:
        transform 0.3s,
        filter 0.3s;
}

.gallery-image:hover img {
    transform: scale(1.05);
    filter: brightness(75%);
}

.mfp-img {
    max-height: 80vh;
}


/* Footer */

footer {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    color: #fff;
    background: #2c3e50;
}


/* Desktop */

@media (min-width: 601px) {
    nav {
        display: flex;
    }

    #menu-toggle {
        display: none;
    }

    .product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 250px));
    }

    .featured-products {
        grid-template-columns:
            repeat(2, minmax(0, 250px));
        max-width: 520px;
    }
}


/* Mobile */

@media (max-width: 600px) {
    header {
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        margin-top: 15px;
        flex-direction: column;
    }

    nav a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    #contact-form {
        padding: 18px;
    }

    .gallery-container {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .gallery-image img {
        height: 200px;
    }
}
