/* Restaurant Menu Page Styles */

/* Hero Section */
.restaurant-hero {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.restaurant-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/banner/1.jpeg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.restaurant-hero-content {
    position: relative;
    z-index: 1;
}

.restaurant-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.restaurant-hero p {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.9;
}

/* Category Filter */
.category-filter {
    text-align: center;
    margin-bottom: 30px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    background: #fff;
    border: 2px solid #008080;
    color: #008080;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-btn:hover {
    background: #008080;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.category-btn.active {
    background: #008080;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

/* Menu Items Grid */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.menu-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.menu-item-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 20px;
}

.menu-item-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-item-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-footer .price {
    font-size: 1.5rem;
    color: #008080;
    font-weight: 700;
}

.add-to-cart-btn {
    background: #008080;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-to-cart-btn:hover {
    background: #006666;
    transform: scale(1.05);
}

.add-to-cart-btn i {
    font-size: 1.2rem;
}

/* Menu Cart Controls */
.menu-cart-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.already-added-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 600;
}

.already-added-label i {
    font-size: 1.1rem;
}

.menu-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 25px;
}

.menu-qty-btn {
    background: #008080;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-qty-btn:hover {
    background: #006666;
    transform: scale(1.1);
}

.menu-quantity {
    font-weight: 600;
    min-width: 25px;
    text-align: center;
    color: #333;
}

.menu-remove-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-left: 3px;
}

.menu-remove-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}


/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #008080;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 128, 128, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-btn:hover {
    background: #006666;
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: #008080;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.cart-item-price {
    color: #008080;
    font-weight: 600;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #008080;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #006666;
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: #ff4444;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-item:hover {
    background: #cc0000;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.total-amount {
    color: #008080;
}

.checkout-btn {
    width: 100%;
    background: #008080;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #006666;
    transform: translateY(-2px);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Order Modal */
.order-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    max-width: 600px;
    height: 90vh;
    background: #fff;
    border-radius: 15px;
    z-index: 1003;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.order-modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.order-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.order-modal-header {
    padding: 20px;
    background: #008080;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.order-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.order-modal-body .form-group {
    margin-bottom: 25px;
    position: relative;
}

.order-modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.order-modal-body .form-group input,
.order-modal-body .form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.order-modal-body .form-group input:focus,
.order-modal-body .form-group textarea:focus {
    outline: none;
    border-color: #008080;
}

.order-modal-body .form-group i {
    position: absolute;
    left: 15px;
    top: 45px;
    color: #008080;
    font-size: 1.2rem;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.order-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.summary-item:last-child {
    border-bottom: none;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #008080;
    font-size: 1.3rem;
    font-weight: 700;
}

.total-price {
    color: #008080;
}

.submit-order-btn {
    width: 100%;
    background: #008080;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-order-btn:hover {
    background: #006666;
    transform: translateY(-2px);
}

/* Order Modal Overlay */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    display: none;
}

.order-modal-overlay.active {
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .restaurant-hero h1 {
        font-size: 2.5rem;
    }

    .restaurant-hero p {
        font-size: 1.1rem;
    }

    .menu-items-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .category-list {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .order-modal {
        width: 95%;
    }

    .order-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .restaurant-hero h1 {
        font-size: 2rem;
    }

    .menu-item-content h3 {
        font-size: 1.2rem;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }
}