/* =============================================
   ودود - تصميم صفحة المنيو للزوار (المطعم)
   Responsive & Fluid Customer Menu Page Styling
   ============================================= */

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

:root {
    --menu-font-title: 'Cairo', sans-serif;
    --menu-font-body: 'Tajawal', sans-serif;
    
    /* Default Colors (Fallback - Stores override this via dynamic JS styles) */
    --color-primary: #FF5E36;
    --color-primary-hover: #E04D27;
    --color-primary-light: rgba(255, 94, 54, 0.08);
    --color-secondary: #0F172A;
    --color-bg-body: #F8FAFC;
    --color-bg-card: #FFFFFF;
    --color-text-title: #0F172A;
    --color-text-body: #334155;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 20px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    background-color: var(--color-bg-body);
    font-family: var(--menu-font-body);
    color: var(--color-text-body);
    margin: 0;
    padding: 0;
}

/* Fluid responsive wrapper replacing simulated mobile view on desktop */
.menu-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: white;
    position: relative;
    padding-bottom: 100px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Simulated Status Bar (Hidden by default on responsive desktop, only shown on small mobile dimensions) */
.status-bar {
    height: 34px;
    background-color: #000000;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .status-bar {
        display: flex;
    }
}

/* Store Header */
.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

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

.store-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.store-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.store-name-status {
    display: flex;
    flex-direction: column;
}

.store-name {
    font-family: var(--menu-font-title);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-title);
    line-height: 1.3;
}

.store-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    margin-top: 2px;
}

.store-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.store-status .dot.open {
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.store-status .dot.closed {
    background-color: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

.store-status span.open { color: #10B981; }
.store-status span.closed { color: #EF4444; }

.store-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-text-body);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background-color: rgba(15, 23, 42, 0.03);
}

.store-actions button:hover {
    background-color: rgba(15, 23, 42, 0.08);
}

.lang-toggle {
    font-size: 0.78rem !important;
    font-weight: 700;
    padding: 8px 16px !important;
    background-color: var(--color-primary-light) !important;
    color: var(--color-primary) !important;
    border-radius: var(--radius-full) !important;
    width: auto !important;
    height: auto !important;
}

/* Hero Banner */
.menu-banner {
    position: relative;
    height: 280px;
    overflow: hidden;
    margin: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.menu-banner .slide {
    height: 100%;
    position: relative;
}

.menu-banner .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-banner .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 24px;
    color: white;
}

.menu-banner .slide-badge {
    align-self: flex-start;
    background-color: var(--color-primary);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.menu-banner .slide-title {
    font-family: var(--menu-font-title);
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-bottom: 20px;
}

.banner-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #E2E8F0;
}

.banner-dots .dot.active {
    background-color: var(--color-primary);
    width: 18px;
    border-radius: var(--radius-full);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    overflow-x: auto;
    background-color: white;
    position: sticky;
    top: 87px;
    z-index: 90;
    border-bottom: 1px solid var(--color-border);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background-color: #F1F5F9;
    color: var(--color-text-body);
    border: 1px solid transparent;
}

.category-tab.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 94, 54, 0.25);
}

/* Search Bar */
.search-bar {
    padding: 16px 24px;
    background-color: white;
}

.search-input {
    width: 100%;
    padding: 14px 24px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: var(--menu-font-body);
    font-size: 0.92rem;
    background-color: #F8FAFC;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Products & Layout Adaptability */
#productsContainer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-section {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.category-title {
    font-family: var(--menu-font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-title);
    padding-bottom: 14px;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--color-primary-light);
}

/* Fluid responsive grid for products */
@media (min-width: 768px) {
    .category-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }
    .category-title {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .category-section {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-title {
        grid-column: span 3;
    }
}

.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #F1F5F9;
    position: relative;
}

/* In grid layouts on desktop, remove the bottom borders and rely on spacing */
@media (min-width: 768px) {
    .product-card {
        border-bottom: none;
        background-color: #F8FAFC;
        padding: 20px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--color-border);
        transition: var(--transition);
    }
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
        border-color: var(--color-primary-light);
    }
}

.product-info {
    flex: 1;
}

.product-name {
    font-family: var(--menu-font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 4px;
}

.product-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
    font-weight: 700;
}

.product-badge.most-ordered { background-color: #FEF3C7; color: #B45309; }
.product-badge.spicy { background-color: #FEE2E2; color: #DC2626; }
.product-badge.limited { background-color: #DBEAFE; color: #1D4ED8; }

.product-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
}

.product-old-price {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-inline-start: 8px;
    font-weight: 400;
}

.product-image-wrap {
    position: relative;
    flex-shrink: 0;
}

.product-image {
    width: 105px;
    height: 105px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.product-image-placeholder {
    width: 105px;
    height: 105px;
    border-radius: var(--radius-md);
    background-color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.product-unavailable {
    opacity: 0.6;
}

.product-unavailable-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Quantity Control & Buttons */
.add-btn {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0F172A;
    border: none;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    font-family: var(--menu-font-body);
    white-space: nowrap;
}

.add-btn:hover {
    background-color: #1E293B;
    color: white;
}

.qty-control {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 94, 54, 0.3);
}

.qty-control button {
    background: none;
    border: none;
    color: white;
    padding: 6px 16px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.qty-control button:hover {
    background-color: rgba(255,255,255,0.15);
}

.qty-control span {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 24px;
    text-align: center;
}

.added-badge {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #10B981;
    color: white;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.added-badge.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Floating Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background-color: var(--color-secondary);
    color: white;
    padding: 18px 28px;
    border-radius: var(--radius-md);
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    box-shadow: var(--shadow-lg);
}

.cart-bar.visible {
    display: flex;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(120%); }
    to { transform: translateX(-50%) translateY(0); }
}

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

.cart-icon {
    position: relative;
    font-size: 1.4rem;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--color-primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cart-total {
    font-family: var(--menu-font-title);
    font-weight: 700;
    font-size: 1rem;
}

.cart-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--menu-font-body);
    transition: var(--transition);
}

.cart-btn:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.02);
}

/* Modals & Checkout Overlays */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: none;
    align-items: flex-end; /* Slides up on mobile */
    justify-content: center;
}

.checkout-overlay.active {
    display: flex;
}

.checkout-modal {
    background-color: white;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 30px;
}

/* Premium Dialog on Desktop */
@media (min-width: 768px) {
    .checkout-overlay {
        align-items: center; /* Centered modal dialog */
    }
    .checkout-modal {
        border-radius: var(--radius-md);
        max-height: 80vh;
        width: 600px;
        max-width: 90vw;
    }
}

.checkout-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.checkout-header h3 {
    font-family: var(--menu-font-title);
    font-size: 1.15rem;
    font-weight: 800;
}

.checkout-close {
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text-muted);
}

.checkout-body {
    padding: 20px 24px;
}

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

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-title);
}

.checkout-item-price {
    font-size: 0.88rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 2px;
}

.checkout-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-item-remove {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    transition: var(--transition);
}

.checkout-item-remove:hover {
    transform: scale(1.1);
}

/* Order Type Segment Controls */
.order-type-section {
    margin-top: 24px;
}

.order-type-section h4 {
    font-family: var(--menu-font-title);
    font-size: 1rem;
    margin-bottom: 12px;
}

.order-types {
    display: flex;
    gap: 10px;
}

.order-type-btn {
    flex: 1;
    padding: 14px 10px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: white;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-family: var(--menu-font-body);
}

.order-type-btn.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.order-type-btn .ot-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
}

.order-type-btn .ot-label {
    font-size: 0.8rem;
    font-weight: 700;
}

.delivery-fields, .dinein-fields {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles inside checkout */
.form-group label {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-text-title);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--menu-font-body);
    font-size: 0.9rem;
    background-color: #F8FAFC;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
}

.auto-table {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Coupons */
.coupon-section {
    margin-top: 24px;
    padding: 18px;
    background-color: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.coupon-row {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--menu-font-body);
    font-size: 0.9rem;
    background-color: white;
}

.coupon-apply {
    padding: 12px 20px;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--menu-font-body);
    transition: var(--transition);
}

.coupon-apply:hover {
    background-color: #000000;
}

/* Order Summary */
.order-summary {
    margin-top: 24px;
    background-color: #F8FAFC;
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--color-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-row.total {
    font-family: var(--menu-font-title);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-text-title);
    border-top: 2px dashed var(--color-border);
    padding-top: 14px;
    margin-top: 10px;
}

/* WhatsApp Submit Button */
.whatsapp-btn {
    width: 100%;
    padding: 16px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--menu-font-body);
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
    background-color: #1ebd54;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* Ads banner */
.ads-banner {
    padding: 16px 20px;
    background-color: #F8FAFC;
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

.ads-banner a {
    color: var(--color-primary);
    font-weight: 700;
}

/* Options Selector Modal */
.options-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 400;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.options-overlay.active {
    display: flex;
}
.options-modal {
    background-color: white;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .options-overlay {
        align-items: center;
    }
    .options-modal {
        border-radius: var(--radius-md);
        max-height: 75vh;
        width: 500px;
    }
}
.options-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}
.options-header h3 {
    font-family: var(--menu-font-title);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}
.options-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.option-group {
    margin-bottom: 24px;
}
.option-group-title {
    font-family: var(--menu-font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.option-group-title .req-badge {
    font-size: 0.7rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.option-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.option-item-row:hover {
    border-color: var(--color-primary);
}
.option-item-row.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}
.option-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.option-item-left input {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}
.option-item-label {
    font-size: 0.88rem;
    font-weight: 600;
}
.option-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
}
.options-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
}
.options-confirm-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--menu-font-body);
    transition: var(--transition);
}
.options-confirm-btn:hover {
    background-color: var(--color-primary-hover);
}

/* =============================================
   Store Hero & Quick Info styling
   ============================================= */
.store-cover-wrap {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    overflow: hidden;
}

.store-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.store-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    opacity: 0.15;
}

.cover-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.cover-lang-btn {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--color-secondary);
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cover-lang-btn:hover {
    background-color: white;
    transform: translateY(-1px);
}

/* Unified Profile Card */
.store-profile-card {
    background-color: white;
    border-radius: var(--radius-md);
    margin: -60px 24px 20px 24px;
    padding: 20px;
    position: relative;
    z-index: 10;
    border: 1.5px solid var(--color-border);
}

@media (max-width: 480px) {
    .store-profile-card {
        margin: -45px 16px 16px 16px;
        padding: 16px;
        border-radius: var(--radius-sm);
    }
}

.store-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

[dir="rtl"] .store-profile-header {
    flex-direction: row;
}
[dir="ltr"] .store-profile-header {
    flex-direction: row;
}

.store-avatar-wrap {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    border: 3px solid white;
    background: white;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-avatar-placeholder {
    font-size: 2rem;
}

.store-info-wrap {
    flex: 1;
}

.store-title {
    font-family: var(--menu-font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin: 0 0 4px 0;
}

.store-subtitle {
    font-family: var(--menu-font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Store Quick Info inside the White Card */
.store-quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background-color: transparent;
    border: none;
    padding: 0;
}

@media (max-width: 480px) {
    .store-quick-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0;
    }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
    border: 1px solid #F1F5F9;
}

.info-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-title);
    text-decoration: none;
}

a.info-value:hover {
    color: var(--color-primary);
}

.status-badge {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.status-available {
    background-color: #DEF7EC;
    color: #03543F;
}

.status-busy {
    background-color: #FEF08A;
    color: #713F12;
}

.status-closed {
    background-color: #FDE8E8;
    color: #9B1C1C;
}

/* Search styling */
.menu-search-section {
    padding: 16px 24px;
    background: white;
}

@media (max-width: 480px) {
    .menu-search-section {
        padding: 12px 16px;
    }
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper .search-icon {
    position: absolute;
    right: 16px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

[dir="ltr"] .search-wrapper .search-icon {
    right: auto;
    left: 16px;
}

.search-wrapper .search-input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--menu-font-body);
    font-size: 0.9rem;
    color: var(--color-text-title);
    background-color: #F8FAFC;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

[dir="ltr"] .search-wrapper .search-input {
    padding: 12px 16px 12px 42px;
}

.search-wrapper .search-input:focus {
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.clear-search-btn {
    position: absolute;
    left: 14px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="ltr"] .clear-search-btn {
    left: auto;
    right: 14px;
}

.clear-search-btn:hover {
    color: var(--color-text-title);
}

.category-tab {
    font-family: var(--menu-font-body) !important;
}

.category-tabs {
    top: 0 !important; /* Make tabs scroll correctly without sticky store-header space */
    cursor: grab;
    user-select: none;
}

.category-tabs.active-drag {
    cursor: grabbing;
}

