/* MENU PAGE STYLES */
.menu-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.menu-hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1600&q=80') center/cover;
}

.menu-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.menu-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 60px 40px;
}

.menu-hero-content h1 {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    line-height: 1;
}

/* CATEGORY BAR */
.category-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.categories-wrapper {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    color: var(--gray-light);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: var(--font-ar);
    cursor: pointer;
}

.cat-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* MENU SECTION */
.menu-section {
    padding: 48px 60px 80px;
    background: var(--bg-primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* FOOD CARD */
.food-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    animation: cardIn 0.4s ease forwards;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.food-card:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: 0 20px 50px rgba(74, 155, 142, 0.15);
}

.food-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.food-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.food-card:hover .food-card-img img {
    transform: scale(1.08);
}

.food-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--teal);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 1px;
}

.food-card-badge.new {
    background: var(--teal);
}

.food-card-badge.popular {
    background: var(--gold);
}

.food-card-timer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--teal-light);
    font-size: 12px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.food-card-body {
    padding: 20px;
}

.food-card-cat {
    font-size: 11px;
    color: var(--teal-light);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.food-card-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.food-card-desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.food-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.food-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--teal-light);
}

.food-price span {
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
    margin-right: 4px;
}

.add-btn {
    width: 40px;
    height: 40px;
    background: var(--teal);
    border: none;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.add-btn:hover {
    background: var(--teal-light);
    transform: scale(1.15);
}

.add-btn.added {
    background: var(--gold);
}

/* CART DRAWER */
.cart-drawer {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
}

.cart-drawer.open {
    left: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.cart-header button {
    background: none;
    color: var(--gray);
    font-size: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--gray);
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-empty p {
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--teal-light);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-controls button:hover {
    border-color: var(--teal);
    color: var(--teal-light);
}

.cart-item-qty {
    font-size: 14px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 800;
    color: var(--teal-light);
    margin-bottom: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.btn-checkout {
    width: 100%;
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-ar);
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--teal-light);
}

/* CHECKOUT MODAL */
.checkout-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.checkout-modal.show {
    display: flex;
}

.checkout-box {
    background: var(--bg-secondary);
    width: 90%;
    max-width: 480px;
    border: 1px solid var(--border);
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.checkout-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.checkout-header button {
    background: none;
    color: var(--gray);
    font-size: 20px;
}

.checkout-body {
    padding: 24px;
}

@media (max-width: 768px) {
    .menu-section {
        padding: 30px 16px 60px;
    }

    .category-bar {
        padding: 0 16px;
    }

    .menu-hero-content {
        padding: 0 20px 30px;
    }

    .cart-drawer {
        width: 320px;
    }
}