body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #e0e0e0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Page wrapper to help with sticky footer */
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

header {
    background-color: #203d5e;
    color: #e0e0e0;;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header .logo a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}
header .logo:hover{
    filter: invert(45%) sepia(100%) saturate(300%) hue-rotate(50deg);
}

header .search-bar input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
}

header .search-bar {
    width: 25%;
}
.shopping-cart-icon {
    width: 25px;  /* Ustawienie szerokości ikony */
    height: auto; /* Zachowanie proporcji */
    margin-left: 5px; /* Dodatkowa przestrzeń między tekstem a ikoną */
}
.logout-icon {
    width: 25px;  /* Ustawienie szerokości ikony */
    height: auto; /* Zachowanie proporcji */
    margin-left: 5px; /* Dodatkowa przestrzeń między tekstem a ikoną */
}
.logout-icon:hover{
    filter: invert(45%) sepia(100%) saturate(300%) hue-rotate(50deg);
}
.heart {
    font-size: 20px;
    color: darkgrey;
    transition: color 0.3s;
}

.heart.filled {
    color: red;
}

.heart:hover{
    color: red;
    cursor: pointer;

}
#cart-count {
    display: inline-block; /* Ustawienie, żeby liczba była traktowana jako element inline-block */
    background-color: #ff5733; /* Kolor tła licznika */
    color: white; /* Kolor tekstu liczby */
    border-radius: 12px; /* Zaokrąglenie rogów */
    padding: 2px 6px; /* Odstępy wewnętrzne wokół liczby */
    font-size: 14px; /* Rozmiar czcionki */
    font-weight: bold; /* Pogrubienie czcionki */
    text-align: center; /* Wyśrodkowanie tekstu */
    min-width: 20px; /* Minimalna szerokość, żeby liczba zawsze miała odpowiedni odstęp */
    height: 20px; /* Wysokość licznika */
    line-height: 16px; /* Wyrównanie liczby do środka w pionie */
    position: relative; /* Aby umożliwić pozycjonowanie względem kontenera */
    top: -7px; /* Przesunięcie licznika nieco wyżej, by lepiej pasował do ikony */
}

shopping-cart-icon:hover{
    filter: invert(45%) sepia(100%) saturate(300%) hue-rotate(50deg);
}
header .user-actions {
    display: flex;
    align-items: center;
}
header .user-actions a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}
header .user-actions a:hover,
header .user-actions a:focus,
header .user-actions a:active {
    color: #28a745;
    background: #203d5e;
}
.shopping-cart-icon {
    width: 25px;  /* Ustawienie szerokości ikony */
    height: auto; /* Zachowanie proporcji */
    margin-left: 5px; /* Dodatkowa przestrzeń między tekstem a ikoną */
}
.shopping-cart-icon:hover{
    filter: invert(45%) sepia(100%) saturate(300%) hue-rotate(50deg);
}

.burger-menu {
    display: none;
}
/* Navigation styles */
.nav-container {
    background-color: #fff;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: sticky;
    top: 50px; /* Odstęp od góry, aby nie nakładało się na header */
    z-index: 999;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

nav a:hover,
nav a:focus,
nav a:active {
    text-decoration: none;
    background-color: #203d5e;
    color: white;
    border-radius: 4px;
}
.main-content {
    display: flex;
}

/* Domyślnie, menu jest widoczne, a przycisk hamburgera ukryty */
.nav-menu-content {
    display: flex;
}

.menu-toggle {
    display: none; /* Ukryj przycisk hamburgera na dużych ekranach */
    font-size: 1rem;
    padding-bottom: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
}
/* Product page styles */
.product-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
}

.show-big-image-button{
    background-color: #203d5e;
    color: white;
    position: absolute;
    bottom:0;
    padding: 10px;
    transform: translateX(-50%);
    width: 100%;


}
#show-big-image-button:hover{
    cursor: pointer;
    background-color: royalblue;
}

.image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    height: 250px; /* Stała wysokość dla wszystkich zdjęć */
    place-items: center;
    max-width: 300px;
    margin: 0 auto; /* Centrowanie poziome */

}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    place-items: center;
}
/* Modal */
.okno-powiekszenia {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.okno-powiekszenia img {
    width: 50%;
    height: 90%;
}

.zamknij-obraz {
    position: absolute;
    left: 76%;
    top: 10%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1000;

}.nav-button {
     top: 50%;
     transform: translateY(-50%);
     background-color: rgba(255,255,255,0.8);
     border: none;
     font-size: 2rem;
     padding: 0.5rem 1rem;
     cursor: pointer;
     z-index: 10;
 }

#prev-image { display: none; }
#next-image { display: none; }

#rotate-button {

    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    z-index: 9999;
}
.rotate-button{
    position: absolute;
    padding-bottom: 10%;
    top:90%;
    left: 76%;

}

.rating-modal{
    position: absolute;
    bottom: 0px; /* Odstęp od dołu */
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    background-color: #203d5e;
}
.rating-modal .heart{
    display: flex;
    margin-top: 0;
    font-size: 40px;
}
#rotate-button:hover {
    color: #ccc;
}
.product-info {
    display: flex;
    flex-direction: column;
    max-width: max-content;
    justify-content: center;
}
    .product-description {
        flex: 2;
        display: flex;
        text-align: center;
        flex-direction: column;
        justify-content: space-between;
    }
.product-description2{
    font-size: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    word-wrap: break-word;
    max-width: 100%;
}

    .product-description,
    .product-description p,
    .product-description h1,
    .product-description span,
    .product-description div {
        text-decoration: none;
    }

    .product-price {
        font-size: 1.5rem;
        font-weight: bold;
        text-decoration: none;
        display: flex;
        text-align: center;
    }

    .product-price,
    .product-price span {
        text-decoration: none;
        text-align: center;
    }

    .quantity-selector {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem; /* Adjust this value to move closer to the image */
    }

    .quantity-selector input {
        width: 50px;
        text-align: center;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 0.5rem;
        align-items: center;
    }

    .quantity-selector button {
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 4px;
        background-color: #203d5e;
        color: white;
        cursor: pointer;
        font-size: 1rem;
    }

    .quantity-selector button:hover {
        background-color: #1b2a42;
    }

    .product-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .product-actions button {
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 4px;
        background-color: #203d5e;
        color: white;
        cursor: pointer;
        font-size: 1rem;
    }

    .product-actions button:hover {
        background-color: #1b2a42;
    }

    .product-actions .back-to-list:hover {
        text-decoration: none;
    }

    footer {
        background-color: #333;
        color: white;
        text-align: center;
        padding: 1rem 0;
        margin-top: auto;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.9);
    }

    .modal-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
    }

    .modal-content {
        -webkit-animation: zoom 0.6s;
        animation: zoom 0.6s;
    }

    @-webkit-keyframes zoom {
        from {
            transform: scale(0)
        }
        to {
            transform: scale(1)
        }
    }

    @keyframes zoom {
        from {
            transform: scale(0)
        }
        to {
            transform: scale(1)
        }
    }

    .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
    }

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

    #caption {
        margin: auto;
        display: block;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
    }

    /* Powiększenie ikony po najechaniu */
    .product-image img {
        max-height: 300px;
        max-width: 300px;
        align-items: center;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        margin-bottom: auto;
    }
    .product-image{
        display: flex;
        justify-content: center; /* Wyrównanie w poziomie */
        align-items: center; /* Wyrównanie w pionie */
        width: 100%; /* Upewnij się, że kontener ma pełną szerokość */
        height: auto; /* Wysokość powinna być automatycznie dopasowana do zawartości */
        margin: auto; /* Dodatkowo upewnij się, że kontener jest wyśrodkowany */
    }

    .message-container {
        position: fixed;
        top: 28%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #f8d7da;
        color: #721c24;
        padding: 10px;
        border: 1px solid #f5c6cb;
        border-radius: 5px;
        z-index: 1000;
        display: none;
    }

@media (max-width: 768px) {
    .nav-menu-content {
        display: none; /* Ukryj menu na małych ekranach */
        flex-direction: column;
        position: absolute;
        top: 20px; /* Dostosuj według potrzeb */
        left: 0;
        text-align: center;
        background: #fff;
        width: 100%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle {
        display: block;
        color: #1b2a42;
        border: #1b2a42; /* Pokaż przycisk hamburgera na małych ekranach */
    }

    .nav-menu-content.open {
        display: flex; /* Pokaż menu po kliknięciu przycisku hamburgera */
        margin-top: 15px;
    }

    .nav-menu-content a {
        padding: 1rem;
        border-top: 1px solid #eee;
    }

    .nav-menu-content a:hover,
    .nav-menu-content a:focus {
        background-color: #203d5e;
        color: white;
    }
    header .user-actions {
        display: none; /* Ukryj akcje użytkownika domyślnie na małych ekranach */
    }

    header .user-actions.open {
        display: flex; /* Pokazuje akcje użytkownika, gdy menu jest otwarte */
        flex-direction: column; /* Opcjonalnie zmienia układ na kolumnowy */
    }
    .shopping-cart-icon {
        width: 25px; /* Ustawienie szerokości ikony */
        height: auto; /* Zachowanie proporcji */
        margin-left: 5px; /* Dodatkowa przestrzeń między tekstem a ikoną */
        color: #203d5e;
        filter: invert(45%) sepia(100%) saturate(300%) hue-rotate(50deg);
    }

    .logout-icon {
        width: 25px; /* Ustawienie szerokości ikony */
        height: auto; /* Zachowanie proporcji */
        margin-left: 5px; /* Dodatkowa przestrzeń między tekstem a ikoną */
        color: #203d5e;
        filter: invert(45%) sepia(100%) saturate(300%) hue-rotate(50deg);
    }

    @media (max-width: 768px) {
        header {
            justify-content: flex-start; /* Przesuwa całą zawartość nagłówka w lewo */
        }

        /* Dostosowanie odstępów między elementami, jeśli jest taka potrzeba */
        header .logo {
            margin-right: 1rem; /* Opcjonalne - dodaj odstęp między logo a resztą */
        }

        header .search-bar {
            margin-right: 1rem; /* Opcjonalne - dodaj odstęp między wyszukiwarką a akcjami użytkownika */
        }

        header .user-actions {
            display: none; /* Hide user actions on small screens */
            flex-direction: column;
            position: absolute;
            margin-right: auto;
            top: 60px; /* Adjust as per your layout */
            right: 0;
            background: #fff; /* Dropdown background color */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        header .user-actions:hover {
            cursor: pointer;
        }

        header .burger-menu {
            display: block; /* Show burger menu button on small screens */
            margin-left: auto;
        }

        header .burger-menu:hover {
            cursor: pointer;
        }

        /* Show user actions when burger menu is clicked */
        .user-actions.open {
            display: flex; /* Show the dropdown */
        }

        /* Optional: Style the user actions within the dropdown */
        .user-actions.open a {
            padding: 0.5rem;
            border-top: 1px solid #eee;
            color: #203d5e; /* Text color for user actions */
            width: 100%;
        }

        .main-content {
            flex-direction: column;
        }
        .product-image{
            display: flex;
            align-items: center;
            min-width: 50px;
            min-height: 50px;
        }
        .product-price {
            font-size: 1rem; /* Zmniejszamy rozmiar czcionki ceny na bardzo małych ekranach */
        }

        .product-description {
            font-size: 0.7rem; /* Zmniejszamy rozmiar tekstu w opisie */
        }
        /* Stylizacja strony produktu */
        .product-page {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap; /* Pozwoli na lepsze ułożenie na małych ekranach */
            width: 100%;
        }

        .product-info {
            display: flex;
            flex-direction: column;
            min-width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            align-items: center;
        }

        .product-description {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            align-items: center;
            font-size: 1rem;
            line-height: 1.0;
            word-wrap: break-word;
            max-width: 100%;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            align-content: center;
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        .product-image {
            width: auto;
            margin: auto;
            display: flex;
            align-content: center;
            padding: 10px;
        }

        .product-description2{
            font-size: 1.2rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            align-items: center;
            line-height: 1.0;
            word-wrap: break-word;
            max-width: 100%;
        }
        .quantity-selector {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 1rem;
            margin-top: 1rem; /* Adjust this value to move closer to the image */
        }

        .quantity-selector input {
            width: 50px;
            text-align: center;
            font-size: 1.2rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 0.5rem;
            align-items: center;
        }

        .quantity-selector button {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 4px;
            background-color: #203d5e;
            color: white;
            cursor: pointer;
            font-size: 1.2rem;
        }

        .quantity-selector {
             display: flex;
             flex-direction: row;
             align-items: center;
             gap: 1rem;
             margin-top: 1rem; /* Adjust this value to move closer to the image */
         }

        .quantity-selector input {
            width: 30px;
            text-align: center;
            font-size: 1.2rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 0.3rem 0.3rem;
            align-items: center;
        }

        .quantity-selector button {
            padding: 0.3rem 0.7rem;
            border: none;
            border-radius: 4px;
            background-color: #203d5e;
            color: white;
            cursor: pointer;
            font-size: 1.2rem;
        }
        .image-wrapper {
            position: relative;
            display: block;
            overflow: hidden;
            border-radius: 8px;
            height: 250px; /* Stała wysokość dla wszystkich zdjęć */
            place-items: center;
            width: 300px;
        }

        .image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }
        /* Modal */
        .okno-powiekszenia {
            display: none;
            position: fixed;
            z-index: 999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            align-items: center;
            justify-content: center;
        }

        .okno-powiekszenia img {
            width: 100%;
            height: auto;
            max-height: 75%;
        }

        .zamknij-obraz {
            position: absolute;
            left: 91%;
            top: 7%;
            color: white;
            font-size: 33px;
            cursor: pointer;
            z-index: 1000;
            background-color: grey;
            padding-left: 5px;
            padding-right: 5px;
        }

        #rotate-button {
            position: absolute;
            background: gray;
            border: none;
            cursor: pointer;
            color: white;
            font-size: 30px;

        }
        .rotate-button{
            position: absolute;
            top: 7%;
            color: white;
            padding-bottom: 0;
            cursor: pointer;
        }
        .rating{
            margin-top: 5px;
        }
        }
    }

