/* Reset i style bazowe */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Globalny kontener - centralizacja zawartości */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nagłówek */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.logo-container {
    display: flex;
    align-items: center;
}
.logo {
    height: 50px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}
.logo-container:hover .logo {
    transform: scale(1.1);
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin: 0 15px;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: #007BFF;
}

/* Sekcja Mebli Protetycznych */
.furniture {
    padding: 50px 0;
    text-align: center;
}
.furniture h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #007BFF;
    animation: fadeInDown 1s ease-out;
}

/* Ustawienie ofert jedna pod drugą na mniejszych ekranach i responsywny układ na większych */
.furniture-grid {
    display: grid;
    grid-template-columns: 1fr; /* Domyślnie jedna kolumna */
    gap: 20px;
    width: 100%;
}
@media (min-width: 768px) {
    .furniture-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.furniture-item {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.furniture-item:hover {
    transform: translateY(-5px);
}
.furniture-img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.furniture-img:hover {
    transform: scale(1.05);
}
.furniture-item h3 {
    margin-top: 15px;
    color: #007BFF;
}
.furniture-item p {
    margin: 10px 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Stylizacja modali */
.modal {
    display: none; /* Ukryte domyślnie */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.5s;
}
.modal-content {
    margin: 5% auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
}
.modal-content img {
    width: 100%;
    max-width: 300px;
    margin: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.modal-content img:hover {
    transform: scale(1.05);
}
.close {
    color: #fff;
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close:hover,
.close:focus {
    color: #bbb;
}

/* Stopka */
footer {
    padding: 20px;
    text-align: center;
    background: #333;
    color: #fff;
}

/* Animacje */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dodatkowe media queries dla nagłówka i nawigacji */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .furniture {
        padding: 30px 10px;
    }
}
