/*
 * MenU Theme File
 * ================
 * Edit this file to customize colors, fonts, and spacing.
 * Upload to themes/active/ to apply changes.
 * 
 * Theme: Classic Orange
 * Version: 1.0.0
 * Author: Ternpress
 */

:root {
   /* ═══════════════════════════════════════════
     BRAND COLORS - Change these first!
     ═══════════════════════════════════════════ */
   --color-primary: #fc8801;
   --color-primary-hover: #e07800;
   --color-primary-light: #fff4e6;
   --color-secondary: #2f3542;
   --color-accent: #fc8801;

   /* ═══════════════════════════════════════════
     TEXT COLORS
     ═══════════════════════════════════════════ */
   --color-text-dark: #2f3542;
   --color-text-medium: #6b7280;
   --color-text-light: #9ca3af;
   --color-text-on-primary: #ffffff;
   --color-text-on-dark: #ffffff;

   /* ═══════════════════════════════════════════
     BACKGROUNDS
     ═══════════════════════════════════════════ */
   --color-bg-body: #fdfaf7;
   --color-bg-card: #ffffff;
   --color-bg-header: #fdfaf7;
   --color-bg-footer: #ffffff;
   --color-bg-modal: #ffffff;

   /* ═══════════════════════════════════════════
     BORDERS & SHADOWS
     ═══════════════════════════════════════════ */
   --color-border: rgba(0, 0, 0, 0.05);
   --color-border-light: #eaedf3;
   --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
   --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
   --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

   /* ═══════════════════════════════════════════
     STATUS COLORS
     ═══════════════════════════════════════════ */
   --color-success: #10b981;
   --color-warning: #f59e0b;
   --color-error: #ef4444;
   --color-info: #3b82f6;

   /* ═══════════════════════════════════════════
     CARD DESIGN
     ═══════════════════════════════════════════ */
   --card-border-radius: 20px;
   --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   --card-image-size: 160px;
   --card-image-border-radius: 50%;
   /* 50% = circle, lower = rounded square */
   --card-image-border: 5px solid #ffffff;

   /* ═══════════════════════════════════════════
     BUTTONS
     ═══════════════════════════════════════════ */
   --btn-border-radius: 50px;
   --btn-padding: 0.5rem 1.25rem;
   --btn-cart-size: 45px;

   /* ═══════════════════════════════════════════
     TYPOGRAPHY
     ═══════════════════════════════════════════ */
   --font-primary: 'amsi-regular', 'Montserrat', sans-serif;
   --font-heading: 'amsi-bold', 'Montserrat', sans-serif;
   --font-arabic: 'Cairo', 'Tajawal', sans-serif;

   --font-size-xs: 0.75rem;
   --font-size-sm: 0.875rem;
   --font-size-base: 1rem;
   --font-size-lg: 1.125rem;
   --font-size-xl: 1.25rem;
   --font-size-2xl: 1.5rem;
   --font-size-3xl: 2rem;

   /* ═══════════════════════════════════════════
     SPACING
     ═══════════════════════════════════════════ */
   --spacing-xs: 0.25rem;
   --spacing-sm: 0.5rem;
   --spacing-md: 1rem;
   --spacing-lg: 1.5rem;
   --spacing-xl: 2rem;
   --spacing-2xl: 3rem;

   /* ═══════════════════════════════════════════
     HEADER
     ═══════════════════════════════════════════ */
   --header-height: auto;
   --header-padding: 0.5rem 1rem;

   /* ═══════════════════════════════════════════
     CATEGORY PILLS
     ═══════════════════════════════════════════ */
   --pill-bg: #ffffff;
   --pill-bg-active: var(--color-primary);
   --pill-text: var(--color-text-dark);
   --pill-text-active: #ffffff;
   --pill-border-radius: 25px;
   --pill-padding: 10px 20px;

   /* ═══════════════════════════════════════════
     CART MODAL
     ═══════════════════════════════════════════ */
   --cart-header-bg: var(--color-success);
   --cart-btn-checkout-bg: var(--color-success);
}

/* ═══════════════════════════════════════════════════════════════
   RTL (Arabic) Font Overrides
   ═══════════════════════════════════════════════════════════════ */
[dir="rtl"] {
   --font-primary: var(--font-arabic);
   --font-heading: var(--font-arabic);
}

/* ═══════════════════════════════════════════════════════════════
   ScrollSpy Theme Modals & Popups Presentation Styling
   ═══════════════════════════════════════════════════════════════ */
.theme-modal .modal-content {
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.scrollspy-promo-modal .scrollspy-promo-content {
    background: #ffffff;
    border-radius: 1.5rem;
}

.scrollspy-promo-modal .promo-popup-close {
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrollspy-options-modal .options-select-container .form-check {
    background: #fdfdfd;
    border: 1px solid #edf2f7;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

[dir="rtl"] .scrollspy-options-modal .options-select-container .form-check {
    padding: 0.75rem 2.25rem 0.75rem 1rem;
}

.scrollspy-options-modal .options-select-container .form-check:hover {
    border-color: var(--color-primary);
    background: #fffaf8;
}

.scrollspy-item-details-modal .modal-hero-wrapper {
    position: relative;
    overflow: hidden;
}

.scrollspy-item-details-modal .modal-item-nutrition {
    font-size: 0.8rem;
    font-weight: 600;
}

.scrollspy-item-details-modal .modal-item-badges .badge {
    font-weight: 500;
    font-size: 0.75rem;
}

.scrollspy-item-details-modal .quantity-btn {
    transition: transform 0.1s ease;
}

.scrollspy-item-details-modal .quantity-btn:active {
    transform: scale(0.92);
}

/* ═══════════════════════════════════════════════════════════════
   Sticky Category Navigation Bar & ScrollSpy Tracking
   ═══════════════════════════════════════════════════════════════ */
.sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(234, 237, 243, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.category-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-scroll-container.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.category-pill {
    flex: 0 0 auto;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-weight: 600;  
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.category-pill:hover {
    background-color: #fff4e6;
    color: #fc8801;
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 80, 51, 0.35);
    transform: scale(1.03);
}

.category-pill.active .fallback-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Category Sections & Scroll Margins */
.category-section {
    scroll-margin-top: 110px;
}

.category-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
}

.category-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--color-text-light);
    font-size: 1rem;
    pointer-events: none;
}

[dir="rtl"] .search-input-wrapper .search-icon {
    left: auto;
    right: 1.25rem;
}

.search-input-wrapper .search-input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 3rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

[dir="rtl"] .search-input-wrapper .search-input {
    padding: 0.75rem 3rem 0.75rem 2.75rem;
}

.search-input-wrapper .search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(212, 80, 51, 0.12);
    outline: none;
}

.search-input-wrapper .search-clear-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
}

[dir="rtl"] .search-input-wrapper .search-clear-btn {
    right: auto;
    left: 1rem;
}