@media screen and (max-width: 786px) {
    header {
        width: 100%;
        height: 80px;
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(56, 1, 17, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.24);
        backdrop-filter: blur(8px);
    }

    body {
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        min-height: 80px;
        padding: 2px 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 12px;
        position: relative;
    }

    .logo {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .header-profile-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        margin-right: 0;
    }

    .bag {
        width: 120px;
        height: 75px;
        margin: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        margin-left: auto;
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 5px;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
    }

    .container h1 {
        font-size: 28px;
        line-height: 1;
        margin: 0;
        text-align: center;
        flex: 0 0 auto;
        padding: 0 30px;
    }

    nav {
        position: absolute;
        top: 80px;
        right: 10px;
        order: 2;
        margin: 0;
        padding: 0;
        width: 220px;
        max-width: calc(100vw - 20px);
        display: none;
        justify-content: center;
        overflow: visible;
        background: rgba(56, 1, 17, 1);
        opacity: 1;
        border: 1px solid rgba(255, 255, 255, 0.24);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    }

    nav.is-open {
        display: flex;
    }

    nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2px;
        margin: 0;
        padding: 8px 4px;
    }

    nav ul li {
        width: 100%;
        flex: 0 0 auto;
        font-size: 14px;
        list-style: none;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 8px 12px;
        white-space: nowrap;
        text-align: right;
    }

    .hero {
        margin: 24px 16px 10px;
        text-align: center;
    }

    .hero h4 {
        font-size: 22px;
        line-height: 1.25;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .right-side {
        float: none;
        width: calc(100% - 32px);
        height: auto;
        margin: 18px 16px 0;
        align-items: center;
        justify-content: center;
    }

    .order-now {
        width: 100%;
        max-width: 320px;
        padding: 14px 20px;
        font-size: 16px;
    }

    .animation-div {
        width: calc(100% - 32px);
        height: auto;
        aspect-ratio: 16 / 10;
        margin: 18px 16px 0;
        border-radius: 12px;
    }

    .food-video {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 12px;
    }

    .animation-over {
        width: 100%;
        height: 100%;
    }

    footer {
        margin-top: 36px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 18px 16px 24px;
    }

    .footer-div {
        margin: 0;
    }

    .footer-privacy-div {
        margin: 0; padding: 0px ;
    }

    .footer-privacy-div li {
        list-style: none;
    }
    .privacy-policy-div{margin:20px 17px;width:90%;padding:10px;}

    .invoice-page,
    .orders-page {
        width: calc(100% - 28px);
        max-width: none;
        margin: 24px auto;
        padding: 20px 16px;
        overflow-wrap: anywhere;
    }

    .invoice-page h1,
    .orders-page h1 {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .invoice-page p,
    .orders-page p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .order-card {
        margin: 14px 0;
        padding: 16px;
        color: #2d111b;
        background: #fff;
        border-left: 4px solid #e47309;
        overflow-wrap: anywhere;
    }

    .order-card h2 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    body:has(.orders-page) .orders-filter { grid-template-columns: 1fr; align-items: stretch; gap: 7px; }
    body:has(.orders-page) .orders-filter label:nth-of-type(2) { grid-column: auto; }

    body:has(.orders-page) .orders-page {
        width: calc(100% - 28px);
        margin: 24px auto 40px;
        padding: 24px 16px;
    }

    body:has(.orders-page) .orders-page h1 {
        margin-bottom: 22px;
        font-size: 1.8rem;
    }

    body:has(.orders-page) .order-card {
        margin: 14px 0;
        padding: 16px;
    }
}