* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

.header {
    min-height: 20vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.6), rgba(4, 9, 30, 0.6)), url(images/products.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    border-bottom: 5px solid #000;
}


body {
    background-image: linear-gradient(rgba(220, 220, 220, 0.8), rgba(220, 220, 220, 0.8)); /* Gradient kolorów */
    background-size: cover; /* Dopasowanie do wielkości ekranu */
    background-attachment: fixed; /* Zachowanie tła przy przewijaniu */
    background-repeat: no-repeat; /* Wyłączenie powtarzania */
}

nav {
    display: flex;
    padding: 2% 4%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 250px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #00ced1;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

nav .fa {
    display: none;
}

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2em;
    background: linear-gradient(0deg, rgba(195,205,209,1) 0%, rgba(130,140,145,1) 25%);
}

.product {
    border: 1px solid #ddd;
    padding: 1em;
    margin: 1em;
    text-align: center;
    width: 200px;
    background: #FFF8DC;
    border-radius: 10px;
    transition: 0.5s;
}

.product:hover {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: auto;
}

.product h3 {
    margin-top: 1em;
    font-size: 1.2em;
}

.product-details {
    padding: 2em;
    background: linear-gradient(0deg, rgba(219,225,227,1) 0%, rgba(195,205,209,1) 50%);
}

.details {
    border-top: 1px solid #ddd;
    margin-top: 2em;
    padding-top: 2em;
}

@media (max-width: 700px) {
    .text-box h1 {
        font-size: 20px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: absolute;
        background: #00ced1;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }
}
