/* ==========================================================================
   EL JEQUE PTY - LUXURY ARAB & LEBANESE DESIGN SYSTEM
   Palette: Midnight Black (#08080A), Royal Gold (#D4AF37), Pearl White (#FFFFFF)
   ========================================================================== */

:root {
    --gold-primary: #D4AF37;
    --gold-light: #F5E096;
    --gold-dark: #AA8022;
    --gold-gradient: linear-gradient(135deg, #F5E096 0%, #D4AF37 50%, #AA8022 100%);
    --gold-glow: rgba(212, 175, 55, 0.25);

    --bg-main: #08080A;
    --bg-card: #121216;
    --bg-card-hover: #1A1A22;
    --bg-elevated: #22222D;
    --border-color: rgba(212, 175, 55, 0.2);

    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-gold: #D4AF37;
    --text-muted: #64748B;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-gold: 0 10px 30px -5px rgba(212, 175, 55, 0.15);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-bottom: 110px;
    overflow-x: hidden;
}

.top-gold-bar {
    height: 3px;
    background: var(--gold-gradient);
    width: 100%;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crescent-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--gold-primary));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1.2px;
}

.cart-btn-nav {
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cart-btn-nav:hover {
    background: var(--gold-gradient);
    color: #000;
}

.cart-badge {
    background: var(--gold-primary);
    color: black;
    font-size: 0.75rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 250px;
    max-width: 900px;
    margin: 15px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-gold);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.65);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,10,0.3) 0%, rgba(8,8,10,0.95) 100%);
    z-index: 2;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.pulse-gold {
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-primary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--gold-light);
    font-weight: 500;
}

/* FILTERS & SEARCH */
.filter-section {
    max-width: 900px;
    margin: 0 auto 15px;
    padding: 0 16px;
}

.search-box {
    position: relative;
    margin-bottom: 12px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--gold-primary);
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 44px;
    border-radius: var(--radius-md);
    color: #FFF;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.quick-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.quick-tags::-webkit-scrollbar {
    display: none;
}

.tag-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tag-chip.active, .tag-chip:hover {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
}

/* CATEGORIES NAV */
.categories-nav {
    position: sticky;
    top: 65px;
    z-index: 90;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    margin-bottom: 24px;
}

.categories-scroll {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab.active {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* MENU SECTION */
.menu-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.category-group {
    margin-bottom: 36px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold-primary);
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* FOOD CARD */
.food-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
    position: relative;
}

.food-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.card-top {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.item-img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 4px;
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.item-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-light);
}

.add-item-btn {
    background: var(--gold-gradient);
    color: black;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.add-item-btn:hover {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

/* FLOATING CART BAR */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 32px);
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-gold), 0 10px 30px rgba(0,0,0,0.9);
    z-index: 120;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.cart-count-pill {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-total-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-light);
}

.cart-action-btn {
    background: var(--gold-gradient);
    color: black;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

/* MODAL & DRAWER */
.modal-overlay, .drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active, .drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    position: relative;
    padding: 24px;
}

.modal-close, .drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.drawer-container {
    background: var(--bg-card);
    width: 100%;
    max-width: 520px;
    height: 85vh;
    border-radius: 24px 24px 0 0;
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--gold-primary);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.drawer-overlay.active .drawer-container {
    transform: translateY(0);
}

.drawer-header h2 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.drawer-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--bg-main);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.type-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.type-btn.active {
    background: var(--gold-gradient);
    color: black;
    font-weight: 800;
}

.table-input-group {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.table-input-group input {
    width: 90px;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    color: white;
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFF;
}

.cart-item-opts {
    font-size: 0.75rem;
    color: var(--gold-light);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.cart-notes input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.summary-row.highlight {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.whatsapp-send-btn {
    width: 100%;
    margin-top: 14px;
    background: var(--gold-gradient);
    color: black;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.whatsapp-send-btn:hover {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}
