body {
    font-family: 'Comic Sans MS', sans-serif; 
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 120px; 
    font-size: 1.2em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Dosis', sans-serif;
    font-weight: 700; 
}

p, span, small, .mniejszy-tekst {
    font-family: 'Comic Sans MS', sans-serif;
    font-weight: 400; 
}

header {
    background-color: black;
    color: #fff;
    padding: 0;
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    height: 110px; /* Zmniejszona wysokość headera */
}
.cart-icon {
    display: flex;
    align-items: center;
    margin-left: 15px; /* Odstęp od numeru telefonu */
}
.cart-icon a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
    padding: 5px;
    transition: color 0.3s ease;
}
.cart-icon a:hover {
    color: #b11e27;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #b11e27;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    

.right-menu {
    margin-right: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap; /* Zapobiega zawijaniu numeru telefonu */
}

.logo-container {
    margin-left: 50px;
    display: flex;
    align-items: flex-end; /* Wyrównanie do dołu */
    height: 100%; /* Pełna wysokość kontenera */
    padding-top: 5px; /* Odstęp od dołu */
}

.logo-container img {
    width: 100%;
    max-width: 150px;
}
.menu-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute; /* Dodane */
    left: 50%; /* Dodane - przesuwa menu w prawo */
    transform: translateX(-50%); /* Dodane - centruje względem punktu */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
    position: relative; /* Dodane */
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9em;
    position: relative;
    padding-bottom: 5px;
    font-weight: 700; 
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #b11e27;
    transition: width 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

nav a:hover, nav a.active {
    color: #b11e27;
    transform: scale(1.1);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.footer {
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 100px;
}

.footer .address, 
.footer .contact {
    flex: none; /* Zapobiega rozciąganiu sekcji */
    min-width: 200px; /* Minimalna szerokość dla spójności */
    text-align: left; /* Wyrównanie tekstu do lewej */
}

.footer .logo img {
    width: 350px;
    padding-left: 200px;
}

.footer .contact a {
    color: white;
    text-decoration: none;
}

.footer .contact a:hover {
    text-decoration: underline;
}


.footer-copyright {
    background-color: black;
    color: white;
    padding: 15px 0;
}
.footer-copyright .copyright-content p {
    padding-left: 17px;
}
.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: nowrap; /* Zapobiega zawijaniu */
    gap: 20px; /* Odstęp między elementami */
}
.copyright-content p {
    white-space: nowrap; /* Tekst nie będzie się zawijał */
    margin: 0; /* Usuwa domyślne marginesy */
    font-size: 0.7em;
}

    .footer-copyright a {
        color: white; /* Kolor linków w sekcji copyright */
        text-decoration: none; /* Usuwa podkreślenie linku */
        font-size: 1.0em;
    }

.footer-copyright a:hover {
    text-decoration: underline; /* Podkreślenie linku po najechaniu */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    padding: 10px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #b11e27;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 15;
        position: static;
    }

    body, p, span, small, .mniejszy-tekst {
        font-family: 'Dosis';
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Dosis';
    }

    header {
        text-align: center;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        height: 90px;
        padding-left: 30px;
    }

    header {
        height: 90px;
    }
    .contact-phone {
        font-size: 0.85em;
        order: 2;
        margin-right: 15px;
        margin: 20px;
        transform: translateX(-15px); /* Przesunięcie numeru w lewo */
    }
    nav {
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    .right-menu {
        display: flex;
        align-items: center;
        gap: 15px;
        order: 3;
    }
    .right-menu {
        display: flex;
        justify-content: flex-end;
    }
    .cart-icon {
        font-size: 0.9em;
        order: 1;
        transform: translateX(15px); /* Przesunięcie koszyka w prawo */
    }

    .logo-container {
        margin: 0;
        order: 1;
        transform: translateX(-15px); /* Przesunięcie logo w lewo */
    }
    .logo-container img {
        display: flex;
        max-width: 100%; /* Zachowujemy rozmiar logo */
        height: 65px;
        padding-right: 50px;
    }

    .menu-items {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 70%; /* Menu width */
        height: 100vh;
        background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
        z-index: 1000;
        padding-top: 80px;
        transition: left 0.4s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    .menu-items {
        position: fixed;
        top: 0;
        left: -100%;
        width: 45%;
        height: 100vh;
        background-color: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 70px;
        gap: 0;
        margin: 0;
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }
.menu-items a {
    font-family: 'Dosis';
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px; /* Zmniejsz marginesy */
    transition: background-color 0.3s; /* Dodanie animacji */
    margin: 0; /* Usuń marginesy */
}
.menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    .menu-items a {
        font-family: 'Dosis';
        display: block;
        padding: 15px 25px;
        color: white;
        text-decoration: none;
        font-size: 1.1em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
.menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        z-index: 998;
    }
.menu-items.show {
        transform: translateX(0); /* Slide to visible position */
    }
    .menu-items a:hover {
        background: rgba(177, 30, 39, 0.2);
        padding-left: 30px;
    }
    .menu-items.show {
        left: 0;
    }
    nav a::after {
        display: none; /* Usuń domyślne podkreślenie */
    }

    .menu-items a {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-items a::after {
        content: '';
        position: absolute;
        left: 25px; /* Wyrównaj z paddingiem linku */
        bottom: 0;
        width: calc(100% - 50px); /* Szerokość minus padding z obu stron */
        height: 2px;
        background-color: #b11e27;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .menu-items a:hover::after,
    .menu-items a.active::after {
        transform: scaleX(1);
        width: calc(100% - 50px); /* Szerokość minus padding z obu stron */
    }
    .hamburger {
        display: flex; /* Show the hamburger icon */
        padding-right: 0px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1000;
        order: 2;
        margin: 0 auto; /* Przesunięcie w prawo */ /* Dodatkowe przesunięcie */
    }
    .hamburger .bar {
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 4px 0;
        transition: 0.4s;
    }

    .hamburger.rotate .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.rotate .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.rotate .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .footer {
        display: flex;
        flex-direction: column; /* Elementy w kolumnie */
        align-items: center; /* Wyśrodkowanie w poziomie */
        text-align: center; /* Wyśrodkowanie tekstu */
        gap: 20px; /* Odstęp między elementami */
        padding: 20px 0; /* Padding górny i dolny */
    }
    
    .footer .address,
    .footer .contact {
        text-align: center; /* Wyśrodkowanie tekstu w sekcjach */
        padding-right: 0; /* Usunięcie paddingu z prawej strony */
    }
    
    .footer .logo {
        order: 1; /* Logo będzie pierwsze */
    }

    .footer .logo img {
        padding-left: 0; /* Usunięcie paddingu z lewej strony */
        padding-right: 0; /* Usunięcie paddingu z prawej strony */
    }
    .copyright-content {
        flex-direction: column;
        padding-right: 20px;
        align-items: center;
        gap: 10px;
    }
    .copyright-content p {
        text-align: center;
        margin: 5px -70px;
        padding: 0;
    }


    .footer.copyright {
        text-align: center;
        font-family: 'Dosis';
        padding: 10px;
        padding-right: 30px; /* Zmniejszenie paddingu w sekcji copyright */
    }
    .footer.copyright p {
        text-align: center;
        font-family: 'Dosis';
        font-size: 0.7em;
        padding: 10px;
    }
    .privacy-policy a {
        padding-left: 0; /* Usunięcie paddingu z lewej strony */
        padding-right: 0; /* Usunięcie paddingu z prawej strony */
    }
}