

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader-container img {
    width: 35rem;
}

.loader-container.fade-out {
    top: -110%;
    opacity: 0;
}

/* Animation for order summary appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-summary {
    animation: slideInUp 0.6s ease-out;
}

/* Animation for payment method switching */
.payment-method {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success state animations */
.order-summary.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Admin Access Button */
.admin-access {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.admin-access a {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: .8rem 1.5rem;
    border-radius: 5rem;
    text-decoration: none;
    font-size: 1.4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 320px;
    }
    
    .payment-section {
        padding: 2rem 1.5rem;
    }

    .order-summary {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }

    .order-summary-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .order-summary-header h4 {
        font-size: 1.8rem;
    }

    .order-total-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .order-total-amount {
        font-size: 2rem;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 280px;
    }
    
    .payment-section {
        padding: 1.5rem 1rem;
    }

    .order-summary {
        padding: 1.5rem 1rem;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-item-value {
        align-self: flex-end;
    }
}

/* Media queries  */
@media (max-width:991px) {
    html {
        font-size: 55%;
    }
    header {
        padding: 1rem 2rem;
    }
    section {
        padding: 2rem;
    }
}

@media (max-width:768px) {
    header .icons #menu-bars {
        display: inline-block;
    }
    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: .1rem solid rgba(0, 0, 0, .2);
        border-bottom: .1rem solid rgba(0, 0, 0, .2);
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    header .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    header .navbar a {
        display: block;
        padding: 1.5rem;
        margin: 1rem;
        font-size: 2rem;
        background: #eee;
    }
    #search-form #search-box {
        width: 90%;
        margin: 0 1rem;
    }
    .home .home-slider .slide .content h3 {
        font-size: 5rem;
    }
}

@media (max-width:450px) {
    html {
        font-size: 50%;
    }
    .dishes .box-container .box img {
        height: auto;
        width: 100%;
    }
    .order form .inputBox .input {
        width: 100%;
    }
}