/* ==========================================================================
   HungerStation-Style Mobile & Web Design System for Online Food Ordering
   Primary Full Text in Arabic (RTL) with Seamless English (LTR) Support
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Cairo:wght@400;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --hs-yellow: #FFCC00;
    --hs-yellow-hover: #F0BE00;
    --hs-yellow-light: #FFF8E1;
    --hs-dark: #1E293B;
    --hs-black: #0F172A;
    --hs-gray-bg: #F6F7F9;
    --hs-card-bg: #FFFFFF;
    --hs-text-muted: #64748B;
    --hs-border: #E2E8F0;
    --hs-red: #EF4444;
    --hs-red-light: #FEF2F2;
    --hs-green: #10B981;
    --hs-green-light: #ECFDF5;
    --hs-orange: #F97316;
    --hs-orange-light: #FFF7ED;
    --hs-font-ar: 'Tajawal', 'Cairo', sans-serif;
    --hs-font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Body & Layout */
body.o_order_portal,
.hs-portal-wrapper {
    background-color: var(--hs-gray-bg);
    color: var(--hs-dark);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

[dir="rtl"] {
    font-family: var(--hs-font-ar);
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    font-family: var(--hs-font-en);
    direction: ltr;
    text-align: left;
}

/* Centralized App Container (Mobile-first app experience, elegant max-width on desktop) */
.hs-app-container {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-bottom: 90px;
}

/* ==========================================================================
   1. Hero Header & Top Navigation Bar (Screenshot 3)
   ========================================================================== */
.hs-hero-banner {
    position: relative;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hs-hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.hs-top-navbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 20px;
}

.hs-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hs-dark);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hs-nav-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
    color: var(--hs-dark);
}

.hs-lang-switcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 7px 16px;
    border-radius: 999px;
    color: var(--hs-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.hs-lang-switcher-pill:hover {
    background: #ffffff;
    transform: translateY(-1px);
    color: var(--hs-dark);
}

/* ==========================================================================
   2. Floating Restaurant Card (Screenshot 3)
   ========================================================================== */
.hs-restaurant-card {
    position: relative;
    z-index: 5;
    background: #ffffff;
    border-radius: 24px;
    margin: -60px 16px 16px 16px;
    padding: 20px 18px 16px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.hs-top-choice-badge {
    position: absolute;
    top: -12px;
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
    color: #EA580C;
    border: 1px solid #FDBA74;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.12);
}

[dir="rtl"] .hs-top-choice-badge {
    right: 20px;
}
[dir="ltr"] .hs-top-choice-badge {
    left: 20px;
}

.hs-restaurant-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.hs-restaurant-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.hs-restaurant-meta {
    flex-grow: 1;
    min-width: 0;
}

.hs-title-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hs-restaurant-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hs-black);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-plus-badge {
    background: #2563EB;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.hs-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 3px;
}

.hs-star-icon {
    color: #F59E0B;
}

.hs-cuisines-text {
    font-size: 0.84rem;
    color: var(--hs-text-muted);
    margin: 3px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Nav & Stats Row inside Restaurant Card */
.hs-restaurant-desktop-nav-row {
    display: flex;
    flex-direction: column;
}

/* Order Mode Switcher Tabs (Delivery, Pick-up, Dine-In) */
.hs-order-mode-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 16px;
    gap: 4px;
}

.hs-mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hs-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hs-mode-tab.active {
    background: #ffffff;
    color: var(--hs-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hs-mode-badge-off {
    background: #EF4444;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
}

/* 3-Column Stats Row (Min Order, Time, Fee) */
.hs-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-bottom: 14px;
    text-align: center;
}

.hs-stat-col {
    position: relative;
    padding: 0 8px;
}

.hs-stat-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: #e2e8f0;
}

[dir="rtl"] .hs-stat-col:not(:last-child)::after {
    left: 0;
}
[dir="ltr"] .hs-stat-col:not(:last-child)::after {
    right: 0;
}

.hs-stat-label {
    font-size: 0.78rem;
    color: var(--hs-text-muted);
    margin-bottom: 3px;
    display: block;
}

.hs-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hs-dark);
    display: block;
}

/* Free Delivery & Voucher Banner */
.hs-promo-voucher-bar {
    background: var(--hs-orange-light);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c2410c;
}

/* ==========================================================================
   3. Promos Row & Discounts Promo Card (Screenshot 3)
   ========================================================================== */
.hs-promos-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 16px 20px 16px;
}

.hs-promos-row .hs-promo-voucher-bar {
    margin: 0;
}

.hs-discount-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #fecdd3;
    padding: 14px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.05);
}

.hs-discount-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffe4e6;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hs-discount-info {
    flex-grow: 1;
}

.hs-discount-info h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: #e11d48;
    margin: 0 0 2px 0;
}

.hs-discount-info p {
    font-size: 0.8rem;
    color: var(--hs-text-muted);
    margin: 0;
}

/* ==========================================================================
   4. Sticky Category Tabs (Screenshot 1 & 3)
   ========================================================================== */
.hs-sticky-categories-wrapper {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hs-search-box-row {
    padding: 10px 16px 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hs-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.hs-search-icon {
    position: absolute;
    color: var(--hs-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

[dir="rtl"] .hs-search-icon {
    right: 14px;
}
[dir="ltr"] .hs-search-icon {
    left: 14px;
}

.hs-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.92rem;
    color: var(--hs-dark);
    outline: none;
    transition: all 0.2s ease;
}

[dir="rtl"] .hs-search-input {
    padding-right: 38px;
}
[dir="ltr"] .hs-search-input {
    padding-left: 38px;
}

.hs-search-input:focus {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

/* Sticky Header Language Change Button */
.hs-sticky-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 12px;
    color: var(--hs-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hs-sticky-lang-btn:hover {
    background: var(--hs-yellow);
    border-color: var(--hs-yellow);
    color: var(--hs-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 204, 0, 0.3);
}

/* Card Language Button */
.hs-card-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--hs-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hs-card-lang-btn:hover {
    background: var(--hs-yellow);
    border-color: var(--hs-yellow);
    color: var(--hs-dark);
}

/* Desktop Sidebar Language Button */
.hs-sidebar-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--hs-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hs-sidebar-lang-btn:hover {
    background: var(--hs-yellow);
    border-color: var(--hs-yellow);
    color: var(--hs-dark);
}

.hs-categories-scroller {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 0 12px;
    gap: 8px;
}

.hs-categories-scroller::-webkit-scrollbar {
    display: none;
}

.hs-category-tab {
    padding: 12px 14px 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hs-text-muted);
    cursor: pointer;
    border-bottom: 3.5px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}

.hs-category-tab:hover {
    color: var(--hs-dark);
}

.hs-category-tab.active {
    color: var(--hs-black);
    font-weight: 900;
    border-bottom-color: var(--hs-black);
}

/* ==========================================================================
   5. Bestsellers Horizontal Carousel (Screenshot 2)
   ========================================================================== */
.hs-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--hs-black);
    margin: 22px 16px 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hs-bestsellers-scroll {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 16px 14px 16px;
    scrollbar-width: none;
}

.hs-bestsellers-scroll::-webkit-scrollbar {
    display: none;
}

.hs-bestseller-card {
    flex: 0 0 160px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hs-bestseller-card:hover {
    transform: translateY(-2px);
}

.hs-bestseller-img-wrap {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
}

.hs-bestseller-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-badge-discount {
    position: absolute;
    top: 8px;
    background: var(--hs-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}
[dir="rtl"] .hs-badge-discount { right: 8px; }
[dir="ltr"] .hs-badge-discount { left: 8px; }

.hs-floating-plus-btn {
    position: absolute;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--hs-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}

[dir="rtl"] .hs-floating-plus-btn { left: 8px; }
[dir="ltr"] .hs-floating-plus-btn { right: 8px; }

.hs-floating-plus-btn:hover {
    background: var(--hs-yellow);
    transform: scale(1.1);
}

.hs-trend-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--hs-green);
    margin-top: 6px;
}

.hs-bestseller-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hs-dark);
    margin: 4px 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hs-price-bold {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--hs-black);
}

.hs-price-strike {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* ==========================================================================
   6. Categorized Dish List (Screenshot 1)
   ========================================================================== */
.hs-category-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.hs-category-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--hs-black);
    margin-bottom: 14px;
    padding-bottom: 6px;
}

.hs-product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hs-dish-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hs-dish-card:hover {
    opacity: 0.95;
}

.hs-dish-info {
    flex: 1;
    min-width: 0;
}

.hs-dish-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hs-black);
    margin: 0 0 4px 0;
}

.hs-dish-desc {
    font-size: 0.86rem;
    color: var(--hs-text-muted);
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-dish-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 8px;
}

.hs-dish-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hs-dish-img-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.hs-dish-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-sold-out-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* ==========================================================================
   7. Bottom Sticky Basket Bar (Screenshot 1 & 2)
   ========================================================================== */
.hs-sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    pointer-events: none;
}

.hs-cart-pill-btn {
    pointer-events: auto;
    width: 100%;
    max-width: 648px;
    background: var(--hs-yellow);
    color: var(--hs-black);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.45);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hs-cart-pill-btn:hover {
    background: var(--hs-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 204, 0, 0.55);
}

.hs-cart-pill-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hs-cart-pill-count {
    background: rgba(0, 0, 0, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* ==========================================================================
   8. Dish Details & Customization Modal / Bottom Sheet (Screenshot 4)
   ========================================================================== */
#customiseModal {
    overflow-x: hidden;
    overflow-y: auto;
}

.hs-modal-dialog {
    max-width: 520px;
    width: calc(100% - 2rem);
    margin: 1.5rem auto;
    min-height: calc(100% - 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .hs-modal-dialog {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        z-index: 1055 !important;
    }
    .hs-modal-dialog .hs-modal-content,
    .hs-modal-content {
        border-radius: 24px 24px 0 0 !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    .hs-modal-hero-wrap {
        height: 170px !important;
        max-height: 25vh !important;
        flex-shrink: 0 !important;
    }
    .hs-modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 16px 18px !important;
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e1 #f8fafc !important;
    }
    .hs-modal-bottom-bar {
        flex-shrink: 0 !important;
        margin-top: auto !important;
        padding: 12px 18px !important;
        padding-bottom: max(14px, env(safe-area-inset-bottom, 14px)) !important;
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
    }
}

.hs-modal-content {
    width: 100%;
    border-radius: 24px;
    border: none;
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 760px);
    max-height: min(88dvh, 760px);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hs-modal-hero-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    min-height: 120px;
    max-height: 30vh;
    flex-shrink: 0;
    background: #f1f5f9;
    overflow: hidden;
}

.hs-modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hs-modal-close-btn {
    position: absolute;
    top: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--hs-dark);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

[dir="rtl"] .hs-modal-close-btn { right: 14px; }
[dir="ltr"] .hs-modal-close-btn { left: 14px; }

.hs-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 22px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.hs-modal-body::-webkit-scrollbar,
.hs-checkout-body::-webkit-scrollbar {
    width: 6px;
}
.hs-modal-body::-webkit-scrollbar-track,
.hs-checkout-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 999px;
}
.hs-modal-body::-webkit-scrollbar-thumb,
.hs-checkout-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.hs-modal-body::-webkit-scrollbar-thumb:hover,
.hs-checkout-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.hs-bestseller-pill {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.hs-modal-dish-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--hs-black);
    margin: 0 0 8px 0;
}

.hs-modal-dish-desc {
    font-size: 0.92rem;
    color: var(--hs-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.hs-modal-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 18px;
}

/* Modifiers / Radio groups */
.hs-attribute-group {
    margin-bottom: 18px;
}

.hs-attribute-group-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--hs-dark);
    margin-bottom: 10px;
}

.hs-modifier-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hs-modifier-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.hs-modifier-option input[type="radio"]:checked ~ .hs-modifier-text {
    font-weight: 800;
    color: var(--hs-black);
}

.hs-modifier-option:has(input[type="radio"]:checked) {
    border-color: var(--hs-dark);
    background: #fdfdfd;
}

/* Modal Bottom Sticky Bar (Screenshot 4) */
.hs-modal-bottom-bar {
    flex-shrink: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.hs-qty-stepper-pill {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 10px;
    gap: 12px;
    flex-shrink: 0;
}

.hs-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--hs-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hs-qty-btn:hover {
    background: #e2e8f0;
}

.hs-qty-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hs-dark);
    min-width: 20px;
    text-align: center;
}

.hs-btn-add-modal {
    flex: 1;
    background: var(--hs-yellow);
    color: var(--hs-black);
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
    transition: all 0.2s ease;
}

.hs-btn-add-modal:hover {
    background: var(--hs-yellow-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   9. Checkout Bottom Sheet / Drawer
   ========================================================================== */
.hs-checkout-offcanvas {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 28px 28px 0 0;
    height: 85vh;
}

.hs-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.hs-checkout-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--hs-black);
    margin: 0;
}

.hs-checkout-body {
    padding: 20px 24px 100px 24px;
    overflow-y: auto;
}

.hs-cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hs-cart-item-info {
    flex: 1;
}

.hs-cart-item-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--hs-dark);
}

.hs-cart-item-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--hs-black);
}

.hs-form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hs-dark);
    margin-bottom: 6px;
    display: block;
}

.hs-input, .hs-select {
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.95rem;
    color: var(--hs-dark);
    outline: none;
    transition: all 0.2s ease;
    margin-bottom: 14px;
}

.hs-input:focus, .hs-select:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25);
}

.hs-totals-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px 20px;
    margin: 18px 0;
    border: 1px solid #e2e8f0;
}

.hs-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--hs-text-muted);
}

.hs-total-grand {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--hs-black);
}

.hs-btn-place-order {
    width: 100%;
    background: var(--hs-yellow);
    color: var(--hs-black);
    font-size: 1.15rem;
    font-weight: 800;
    border: none;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.45);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hs-btn-place-order:hover {
    background: var(--hs-yellow-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   Desktop & Tablet Responsive Layout Design System (HungerStation Web Experience)
   ========================================================================== */

/* Base Desktop Sidebar Rules (Hidden on mobile) */
.hs-desktop-sidebar {
    display: none;
}

.hs-main-body-container {
    display: block;
}

/* --- Tablet Devices (min-width: 768px) --- */
@media (min-width: 768px) {
    .hs-modal-dialog {
        max-width: 520px !important;
        margin: 1.5rem auto !important;
        min-height: calc(100% - 3rem) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hs-modal-content {
        border-radius: 24px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        max-height: min(88vh, 760px) !important;
        max-height: min(88dvh, 760px) !important;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
        animation: hsFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .hs-modal-hero-wrap {
        height: 220px !important;
        flex-shrink: 0 !important;
    }

    .hs-modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    .hs-modal-bottom-bar {
        flex-shrink: 0 !important;
        margin-top: auto !important;
    }

    #checkoutDrawer .hs-modal-dialog {
        max-width: 620px !important;
        margin: 1.5rem auto !important;
        min-height: calc(100% - 3rem) !important;
        display: flex !important;
        align-items: center !important;
    }

    #checkoutDrawer .hs-modal-content {
        border-radius: 24px !important;
        max-height: min(88vh, 800px) !important;
        max-height: min(88dvh, 800px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
    }

    #checkoutDrawer .hs-checkout-header {
        flex-shrink: 0 !important;
    }

    #checkoutDrawer .hs-checkout-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 20px 24px 30px 24px !important;
    }

    .hs-confirmation-container {
        max-width: 680px !important;
        margin: 40px auto !important;
    }
}

/* --- Viewport Height Adaptations (Laptops, Scaled Displays, Landscape) --- */
@media (max-height: 760px) {
    .hs-modal-dialog {
        margin: 0.85rem auto !important;
        min-height: calc(100% - 1.7rem) !important;
    }

    .hs-modal-content {
        max-height: calc(100vh - 1.7rem) !important;
        max-height: calc(100dvh - 1.7rem) !important;
    }

    .hs-modal-hero-wrap {
        height: 160px !important;
    }

    .hs-modal-body {
        padding: 14px 18px !important;
    }

    .hs-modal-dish-title {
        font-size: 1.25rem !important;
        margin-bottom: 4px !important;
    }

    .hs-modal-dish-desc {
        font-size: 0.88rem !important;
        margin-bottom: 8px !important;
    }

    .hs-modal-tags-row {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .hs-modal-bottom-bar {
        padding: 10px 18px !important;
    }
}

/* Extra short viewports / Mobile landscape (max-height: 520px) */
@media (max-height: 520px) {
    .hs-modal-dialog {
        margin: 0.35rem auto !important;
        min-height: calc(100% - 0.7rem) !important;
        position: relative !important;
    }

    .hs-modal-dialog .hs-modal-content,
    .hs-modal-content {
        border-radius: 16px !important;
        max-height: calc(100vh - 0.7rem) !important;
        max-height: calc(100dvh - 0.7rem) !important;
    }

    .hs-modal-hero-wrap {
        height: 100px !important;
    }

    .hs-modal-close-btn {
        top: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.95rem !important;
    }

    [dir="rtl"] .hs-modal-close-btn { right: 8px !important; }
    [dir="ltr"] .hs-modal-close-btn { left: 8px !important; }

    .hs-modal-body {
        padding: 8px 14px !important;
    }

    .hs-bestseller-pill {
        padding: 2px 8px !important;
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }

    .hs-modal-dish-title {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
    }

    .hs-modal-dish-desc {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }

    .hs-modal-tags-row {
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
        gap: 8px !important;
        font-size: 0.75rem !important;
    }

    .hs-modal-bottom-bar {
        padding: 8px 14px !important;
        gap: 10px !important;
    }

    .hs-qty-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 1.1rem !important;
    }

    .hs-qty-val {
        font-size: 1rem !important;
    }

    .hs-btn-add-modal {
        padding: 9px 14px !important;
        font-size: 0.95rem !important;
    }
}

/* Tablet Only: 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .hs-app-container {
        max-width: 768px;
    }

    .hs-product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hs-dish-card {
        margin-bottom: 0;
        background: #fafbfc;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        padding: 14px;
    }
}

/* --- Desktop & Large Screens (min-width: 992px) --- */
@media (min-width: 992px) {
    /* Expand container to full modern desktop width */
    .hs-app-container {
        max-width: 1320px;
        background: transparent;
        box-shadow: none;
        padding-bottom: 60px;
    }

    /* Wide Hero Banner */
    .hs-hero-banner {
        height: 280px;
        border-radius: 24px;
        margin-top: 16px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hs-top-navbar {
        padding: 20px 28px;
    }

    /* Spacious Restaurant Identity Card */
    .hs-restaurant-card {
        margin: -60px 24px 24px 24px;
        padding: 28px 32px;
        border-radius: 24px;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    }

    .hs-restaurant-header-row {
        gap: 20px;
        margin-bottom: 18px;
    }

    .hs-restaurant-logo {
        width: 84px;
        height: 84px;
        border-radius: 20px;
    }

    .hs-restaurant-name {
        font-size: 1.85rem;
    }

    .hs-cuisines-text {
        font-size: 0.95rem;
    }

    /* Horizontal Alignment for Mode Switcher & Stats */
    .hs-restaurant-desktop-nav-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        margin-top: 8px;
        border-top: 1px solid #f1f5f9;
        padding-top: 16px;
    }

    .hs-order-mode-tabs {
        margin-bottom: 0;
        min-width: 420px;
        max-width: 480px;
    }

    .hs-stats-bar {
        border-top: none;
        padding-top: 0;
        margin-bottom: 0;
        min-width: 400px;
    }

    /* Dual-Card Promos Grid on Desktop */
    .hs-promos-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 0 24px 24px 24px;
    }

    .hs-promos-row .hs-promo-voucher-bar {
        font-size: 0.95rem;
        padding: 14px 20px;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
    }

    .hs-promos-row .hs-discount-card {
        border-radius: 16px;
        padding: 14px 20px;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
    }

    /* Dual-Column Grid Layout: Menu Area (1fr) + Sticky Basket Sidebar (380px) */
    .hs-main-body-container {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 32px;
        align-items: start;
        padding: 0 24px;
    }

    .hs-menu-column {
        min-width: 0;
    }

    /* Sticky Categories Header on Desktop */
    .hs-sticky-categories-wrapper {
        border-radius: 20px;
        padding: 16px 20px 12px 20px;
        margin-bottom: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        border: 1px solid var(--hs-border);
    }

    .hs-search-box-row {
        padding: 0 0 12px 0;
    }

    .hs-categories-scroller {
        padding-bottom: 4px;
        gap: 12px;
    }

    .hs-category-tab {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Bestsellers: Responsive Grid on Desktop */
    .hs-bestsellers-section {
        background: #ffffff;
        border-radius: 20px;
        padding: 24px;
        margin-bottom: 28px;
        border: 1px solid var(--hs-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    .hs-bestsellers-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .hs-bestseller-card {
        width: auto;
        min-width: 0;
        background: #fafbfc;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        padding: 10px;
        transition: all 0.25s ease;
    }

    .hs-bestseller-card:hover {
        background: #ffffff;
        border-color: var(--hs-yellow);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    /* Product Sections: White Card Containers with 2-Column Dish Card Grid */
    .hs-category-section {
        background: #ffffff;
        border-radius: 20px;
        padding: 28px;
        margin-bottom: 28px;
        border: 1px solid var(--hs-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    .hs-category-heading {
        font-size: 1.4rem;
        margin-bottom: 20px;
        border-bottom: 2px solid #f8fafc;
        padding-bottom: 12px;
    }

    .hs-product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hs-dish-card {
        margin-bottom: 0;
        padding: 18px;
        background: #fafbfc;
        border: 1px solid #f1f5f9;
        border-radius: 18px;
        transition: all 0.25s ease;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: stretch;
    }

    .hs-dish-card:hover {
        background: #ffffff;
        border-color: var(--hs-yellow);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    }

    .hs-dish-img-wrap {
        width: 100px;
        height: 100px;
        border-radius: 16px;
    }

    /* Desktop Sticky Basket Sidebar */
    .hs-desktop-sidebar {
        display: block !important;
        position: sticky;
        top: 24px;
        align-self: start;
        z-index: 40;
    }

    .hs-desktop-sidebar-card {
        background: #ffffff;
        border-radius: 24px;
        border: 1px solid var(--hs-border);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
        padding: 24px;
        overflow: hidden;
    }

    .hs-desktop-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--hs-border);
        margin-bottom: 18px;
    }

    .hs-desktop-sidebar-title {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--hs-black);
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .hs-desktop-cart-pill-count {
        background: var(--hs-yellow);
        color: var(--hs-dark);
        font-weight: 800;
        font-size: 0.85rem;
        padding: 3px 12px;
        border-radius: 999px;
    }

    .hs-desktop-empty-cart {
        color: var(--hs-text-muted);
        font-size: 0.95rem;
        font-weight: 600;
    }

    .hs-desktop-cart-list {
        max-height: 380px;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
    }

    .hs-desktop-cart-totals {
        background: #f8fafc;
        border-radius: 18px;
        padding: 18px;
        margin-top: 16px;
        border: 1px solid #edf2f7;
    }

    .hs-desktop-cart-totals .hs-totals-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.95rem;
        color: var(--hs-text-muted);
        margin-bottom: 8px;
    }

    .hs-desktop-cart-totals .hs-totals-row.grand-total {
        font-size: 1.25rem;
        font-weight: 900;
        color: var(--hs-black);
        margin-bottom: 0;
    }

    .hs-btn-desktop-checkout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: var(--hs-yellow);
        color: var(--hs-dark);
        font-size: 1.05rem;
        font-weight: 800;
        padding: 14px 20px;
        border-radius: 16px;
        border: none;
        cursor: pointer;
        margin-top: 16px;
        box-shadow: 0 4px 14px rgba(255, 204, 0, 0.4);
        transition: all 0.2s ease;
    }

    .hs-btn-desktop-checkout:hover {
        background: var(--hs-yellow-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(255, 204, 0, 0.5);
    }

    .hs-btn-desktop-checkout:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* Hide Mobile Floating Pill Bar on Desktop */
    .hs-sticky-cart-bar {
        display: none !important;
    }
}

/* Medium Desktop (992px to 1199px) Grid Adjustments */
@media (min-width: 992px) and (max-width: 1199px) {
    .hs-bestsellers-scroll {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Calorie Badges on Menu Images & Modals
   ========================================================================== */
.hs-calorie-img-badge {
    position: absolute;
    top: 6px;
    background: rgba(17, 18, 21, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
    line-height: 1.2;
}
[dir="rtl"] .hs-calorie-img-badge {
    right: 6px;
}
[dir="ltr"] .hs-calorie-img-badge {
    left: 6px;
}

.hs-bestseller-calorie-badge {
    position: absolute;
    top: 8px;
    background: rgba(17, 18, 21, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
    line-height: 1.2;
}
[dir="rtl"] .hs-bestseller-calorie-badge {
    left: 8px;
}
[dir="ltr"] .hs-bestseller-calorie-badge {
    right: 8px;
}

.hs-modal-calorie-badge {
    position: absolute;
    bottom: 12px;
    background: rgba(17, 18, 21, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3;
    pointer-events: none;
}
[dir="rtl"] .hs-modal-calorie-badge {
    right: 14px;
}
[dir="ltr"] .hs-modal-calorie-badge {
    left: 14px;
}

