body {
    background: #ffffff;
    margin: 0%;
    height: 100%;
    flex-direction: column;
}

#kontener {
    background: white;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#baner {
    background: #e2ceb6;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#banerLeft {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    margin-right: auto;
    margin-left: 10px;
}

#banerLeft form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

select[data-choices] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.choices__list--dropdown {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    display: block;
    animation: slideDown 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(0);
}

.choices__list--dropdown.closing {
    animation: slideUp 0.3s ease-in forwards;
}

.choices.is-loaded {
    opacity: 1;
}

.choices {
    animation: fadeIn 0.15s ease;
    z-index: 1001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.choices__inner {
    background-color: transparent;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 16px;
    color: #740000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.choices__item--choice {
    color: #740000;
    padding: 10px;
    background-color: #e2ceb6 !important;
}

.choices__item--choice:hover {
    background: #ecd7be !important;
}

#banerRight {
    display: flex;
    align-items: center;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

#baner a{
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

#nazwa_firmy {
    background-color: transparent;
    margin-left: 1%;
    width: 300px;
    height: 100%;
    display: flex;
    align-items: center;
}

#menu {
    background: #e2ceb6;
    display: flex;
}

#main {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #ffffff;
}

#stopka {
    background-color: #e2ceb6;
    color: #333;
    clear: both;
    width: 100%;
    padding: 5px 0 5px 0;
    text-align: center;
    margin-bottom: 0;
    margin-top: auto;
}

.footer-links a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

#cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
}

#cart-dropdown.visible {
    display: block;
}

#cart-items-list {
    list-style: none;
    padding: 0;
}

#cart-items-list li {
    margin-bottom: 10px;
}

/* ==========================
   WSPÓLNA NAWIGACJA
========================== */

.nav {
    display: flex;
    text-align: left;
    background-color: #e2ceb6;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav li {
    position: relative;
    margin: 0;
    background-color: #e2ceb6;
    color: #740000;
    text-align: center;
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
    transition: background-color .3s ease;
    z-index: 1;

    list-style: none;
}

.nav li:hover {
    background-color: #ecd7be;
}

.nav a {
    display: block;
    padding: 10px 40px;
    text-decoration: none;
    color: #740000;
    box-sizing: border-box;
}

.nav li.active {
    background-color: #ecd7be;
}


/* ==========================
   GŁÓWNA NAWIGACJA
========================== */

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e2ceb6;
    padding: 0;
    width: 180px;
    z-index: 10;
}

.main-nav li:hover > ul,
.main-nav li.open > ul {
    display: block;
}


.main-nav li ul li {
    width: 100%;
}

.main-nav li ul li a {
    padding: 10px;
}


.main-nav li ul li a:hover {
    background-color: #ecd7be;
}


.main-nav li:last-child ul {
    left: auto;
    right: 40px;
}



/* ==========================
   NAWIGACJA ZAMÓWIENIA
========================== */

.order-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.order-nav li {
    flex: 1;
    text-align: center;
    background: #e2ceb6;
}

.order-nav a,
.order-nav span {
    white-space: nowrap;
    display: block;
    text-decoration: none;
    padding: 10px 40px;
    color: #740000;
    box-sizing: border-box;
}

.order-nav .disabled {
    opacity: .4;
    pointer-events: none;
}

.order-nav li.active {
    background-color: #ecd7be;
}

.order-nav li.active a {
    color: white;
}

.disabled {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}

.arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 14px;
    padding: 0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    margin-right: 10px;
}

.menu-toggle .bar {
    width: 100%;
    height: 4px;
    float: right;
    background-color: white;
    border-radius: 2px;
}


@media (max-height: 420px) {
    .main-nav {
        max-height: 150px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 1329px) {
    #kontener {
        display: flex;
        flex-wrap: wrap;
    }

    #baner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    #nazwa_firmy {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5em;
    }

    #banerLeft {
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    #banerRight {
        width: auto;
    }

    .order-nav a,
    .order-nav span {
        white-space: normal;
    }

    .box {
        width: 48%;
        margin: 1%;
    }

    #menu {
        position: relative;
        display: inline-block;
        box-sizing: border-box;
    }

    #menu:has(.order-nav) {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    ul.main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    ul.main-nav.show {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 250px;
        background: #333;
        color: white;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
        z-index: 1002;
    }

    .menu-toggle {
        position: relative;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    ul.main-nav li {
        width: 100%;
        text-align: center;
    }

    ul.main-nav li ul {
        position: static;
        width: 100%;
    }

    #shopping-cart {
        position: absolute;
        right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .money-form {
        margin-right: auto;
    }


    #shopping-cart {
        margin-left: auto;
    }

    ul.main-nav.show {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100vw;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
    }

    ul.main-nav li {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    ul.main-nav li ul {
        position: static;
        width: 100%;
    }

    ul.main-nav li ul li {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {

    #baner {
        height: auto;

        display: flex;
        flex-direction: row;
        flex-wrap: wrap;

        align-items: center;
    }

    #baner:has(.order-nav).sticky {
        position: static;
    }


    /* =========================
       WIERSZ 1 — LOGO
       ========================= */

    #nazwa_firmy {
        order: 1;

        width: 100%;
        flex: 0 0 100%;

        height: 60px;
        margin: 0;

        display: flex;
        justify-content: center;
        align-items: center;
    }


    /* =========================
       WIERSZ 2 — JĘZYK + WALUTA
       ========================= */

    #banerLeft {
        order: 2;

        width: 50%;
        flex: 0 0 50%;

        margin: 0;

        display: flex;
        justify-content: flex-start;
        align-items: center;

        box-sizing: border-box;
    }


    /* =========================
       WIERSZ 2 — KOSZYK
       ========================= */

    #banerRight {
        order: 3;

        width: auto;
        flex: 1 1 auto;

        margin: 0;

        display: flex;
        justify-content: flex-end;
        align-items: center;

        box-sizing: border-box;
    }


    /* =========================
       WIERSZ 2 — HAMBURGER
       ========================= */

    #menu {
        order: 4;

        width: auto;
        flex: 0 0 auto;

        margin: 0;

        display: flex;
        justify-content: flex-end;
        align-items: center;

        box-sizing: border-box;
    }


    /* =========================
       MENU ZAMÓWIENIA
       ========================= */

    #menu:has(.order-nav) {
        width: 100%;
        flex: 0 0 100%;
    }

    .order-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .order-nav li {
        width: 100%;
        max-width: none;
    }

    /* =========================================
    ORDER — MOBILE
    ========================================= */

    #baner:has(.order-nav) {
        flex-direction: row;
        flex-wrap: wrap;
    }


    /* =========================================
       WIERSZ 1 — LOGO
       ========================================= */

    #baner:has(.order-nav) > a {
        order: 1;

        width: 100%;
        flex: 0 0 100%;
    }

    #baner:has(.order-nav) #nazwa_firmy {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;
    }


    /* =========================================
       WIERSZ 2 — JĘZYK + WALUTA
       ========================================= */

    #baner:has(.order-nav) #banerLeft {
        order: 2;

        width: 100%;
        flex: 0 0 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        margin: 0;
    }


    /* =========================================
       "ROZPAKOWANIE" BANERRIGHT
       ========================================= */

    #baner:has(.order-nav) #banerRight {
        display: contents;
    }


    /* =========================================
       UKRYJ KOSZYK
       ========================================= */
F
    #baner:has(.order-nav) #shopping-cart {
        display: none;
    }


    /* =========================================
       WIERSZ 3 — MENU ORDER
       ========================================= */

    #baner:has(.order-nav) #menu {
        order: 3;

        width: 100%;
        flex: 0 0 100%;

        display: flex;
        justify-content: center;
        align-items: stretch;
    }


    /* =========================================
       ORDER NAV — KOLUMNOWO
       ========================================= */

    #baner:has(.order-nav) .order-nav {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 10px;

        margin: 0;
        padding: 0;
    }

    #baner:has(.order-nav) .order-nav li {
        width: 100%;
        max-width: none;

        margin: 0;
    }
}

#shopping-cart {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    color: #740000;
}

#total-price {
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.6em;
    color: #740000;
}

#cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 400px;
    border-radius: 8px;
    padding: 10px;
    color: rgb(0, 0, 0);
    max-height: 400px;
    overflow-y: auto;
}

#cart-dropdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#cart-dropdown li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cart-dropdown li:last-child {
    border-bottom: none;
}

#cart-dropdown button {
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

#cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.product-name {
    flex: 1;
}

.manage-quantity {
    display: flex;
    align-items: center;
}

.manage-quantity span {
    margin: 0 8px;
}

#checkout-button{
    background-color: #740000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    float: right;
    position: sticky;
    bottom: 0;
}

#checkout-button:hover {
    background-color: #b40000;
}

#clear-cart-button{
    background-color: #e2ceb6;
    position: sticky;
    bottom: 0;
    padding: 10px;
    box-sizing: border-box;
}

#clear-cart-button:hover{
    background-color: rgb(204, 169, 128);
}

.remove-item-button {
    background-color: transparent;
    color: black !important;
    margin-left: 10px;
    font-size: 40px;
}

.remove-item-button:hover {
    background-color: #ffc6c6;
}


#cart-dropdown button.plus{
    background-color: #e2ceb6;
}

#cart-dropdown button.plus:hover{
    background-color: rgb(204, 169, 128);
}


#cart-dropdown button.minus {
    background-color: #740000;
}

#cart-dropdown button.minus:hover {
    background-color: #b40000;
}

#cart-dropdown.visible {
    display: block;
}