/* Flame Gourmet Modern Menu Theme Stylesheet */
/* Header & Banner: Flame Gourmet Hero Slider, Profile Card with Branch Selector */
/* Live Search & Category Tabs: Cloned directly from Default theme with Flame Green Active Accent Color */
/* Product Cards: Flame Gourmet Reordered 3-part Layout (Start: Image -> Middle: Details -> End: Vertically Centered Button) */

.theme-layout-flame {
    background-color: var(--theme-menu-bg, #ffffff) !important;
    color: var(--theme-text-title, #0f172a);
    font-family: 'Tajawal', sans-serif;
    padding-bottom: 0 !important;
}

/* Banner Slider / Cover Section - Flush against top, left, and right edges without rounded corners */
.theme-layout-flame .flame-slider-container {
    position: relative !important;
    width: 100% !important;
    margin: 0 0 0 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    background: #0f172a !important;
}

.theme-layout-flame .flame-slider-wrapper {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .theme-layout-flame .flame-slider-wrapper,
    .theme-layout-flame .store-cover-slideshow {
        height: 220px !important;
    }
}

.theme-layout-flame .flame-slider-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-layout-flame .flame-slider-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--theme-primary-btn, #10b981) 0%, var(--theme-price-tag, #059669) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
}

/* =============================================
   Store Cover Slideshow (سلايد شو الغلاف التفاعلي)
   ============================================= */
.store-cover-slideshow {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #0f172a;
    border-radius: 0 !important; /* بدون حواف دائرية */
    user-select: none;
    -webkit-user-select: none;
}

.cover-slideshow-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cover-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.cover-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.cover-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cover-slide.active .cover-slide-img {
    transform: scale(1.04);
}

/* Floating Capsule Indicator (كبسولة المؤشرات السفلية) */
.cover-slideshow-dots-capsule {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    background: rgba(30, 25, 20, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: auto;
}

.cover-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    box-shadow: none;
}

.cover-slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.cover-slideshow-dot.active {
    width: 22px;
    height: 8px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
}

/* Profile Card Below Slider (Full 100% screen width, flat top, compact bottom spacing) */
.theme-layout-flame .flame-profile-card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 0 0 20px 20px !important;
    background: var(--theme-header-bg, var(--theme-card-bg, #ffffff)) !important;
    border-bottom: 1px solid var(--theme-card-border, #e2e8f0) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   Branch Selector Widget Styles (أنماط شريط اختيار الفرع الثلاثة)
   - Style 1: .branch-style-capsule
   - Style 2: .branch-style-app
   - Style 3: .branch-style-pills
   ========================================================================== */
.theme-layout-flame .branch-selector-container {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px dashed var(--theme-card-border, rgba(226, 232, 240, 0.8)) !important;
}

.theme-layout-flame .branch-switcher-widget {
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    border-radius: 13px !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* 1. النمط الكبسولي التفاعلي (Capsule Bar) */
.theme-layout-flame .branch-style-capsule {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 7px 12px !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    border-radius: 13px !important;
}
.theme-layout-flame .branch-style-capsule:hover {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-1px) !important;
}
.theme-layout-flame .branch-style-capsule .branch-widget-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
}
.theme-layout-flame .branch-style-capsule .branch-widget-icon {
    font-size: 1.05rem !important;
    line-height: 1 !important;
}
.theme-layout-flame .branch-style-capsule .branch-widget-label {
    font-size: 0.8rem !important;
    color: var(--theme-text-body, #64748b) !important;
    font-weight: 600 !important;
}
.theme-layout-flame .branch-style-capsule .branch-widget-name {
    font-size: 0.88rem !important;
    color: var(--theme-text-title, #0f172a) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.theme-layout-flame .branch-style-capsule .branch-action-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 11px !important;
    border-radius: 10px !important;
    background: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 2. شريط الاختيار الذكي (App Style) */
.theme-layout-flame .branch-style-app {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 8px 14px !important;
    background: var(--theme-card-bg, #ffffff) !important;
    border: 1.5px solid var(--theme-card-border, #e2e8f0) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
.theme-layout-flame .branch-style-app:hover {
    border-color: var(--theme-primary-btn, #10b981) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.1) !important;
    transform: translateY(-1px) !important;
}
.theme-layout-flame .branch-style-app .branch-app-start {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}
.theme-layout-flame .branch-style-app .branch-app-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--theme-primary-btn, #10b981) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.theme-layout-flame .branch-style-app .branch-app-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
}
.theme-layout-flame .branch-style-app .branch-app-sub {
    font-size: 0.7rem !important;
    color: var(--theme-text-body, #64748b) !important;
    font-weight: 600 !important;
}
.theme-layout-flame .branch-style-app .branch-app-title {
    font-size: 0.88rem !important;
    color: var(--theme-text-title, #0f172a) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.theme-layout-flame .branch-style-app .branch-app-end {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--theme-primary-btn, #10b981) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}

/* 3. كبسولات التبديل السريع (Pill Tabs) */
.theme-layout-flame .branch-style-pills {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.theme-layout-flame .branch-style-pills .branch-pills-scroll {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 !important;
}
.theme-layout-flame .branch-style-pills .branch-pills-scroll::-webkit-scrollbar {
    display: none !important;
}
.theme-layout-flame .branch-style-pills .branch-pills-label {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: var(--theme-text-title, #0f172a) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-inline-end: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.theme-layout-flame .branch-style-pills .branch-pill-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    background: var(--theme-card-bg, #f8fafc) !important;
    border: 1.5px solid var(--theme-card-border, #e2e8f0) !important;
    color: var(--theme-text-body, #475569) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}
.theme-layout-flame .branch-style-pills .branch-pill-item:hover {
    border-color: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn, #10b981) !important;
}
.theme-layout-flame .branch-style-pills .branch-pill-item.active {
    background: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    border-color: var(--theme-primary-btn, #10b981) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25) !important;
    font-weight: 800 !important;
}
.theme-layout-flame .branch-style-pills .branch-pill-check {
    font-size: 0.85rem !important;
    font-weight: 900 !important;
}
.theme-layout-flame .branch-style-pills .branch-pill-more {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    color: var(--theme-primary-btn, #10b981) !important;
}

/* 4. بطاقة الفرع الذكية مع الحالة (Smart Status & Location Card) */
.theme-layout-flame .branch-style-status {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 9px 14px !important;
    background: var(--theme-card-bg, #ffffff) !important;
    border: 1.5px solid var(--theme-card-border, #e2e8f0) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}
.theme-layout-flame .branch-style-status:hover {
    border-color: var(--theme-primary-btn, #10b981) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12) !important;
}
.theme-layout-flame .branch-style-status .branch-status-start {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}
.theme-layout-flame .branch-style-status .branch-status-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: rgba(16, 185, 129, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
}
.theme-layout-flame .branch-style-status .branch-status-info {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
}
.theme-layout-flame .branch-style-status .branch-status-name {
    font-size: 0.9rem !important;
    color: var(--theme-text-title, #0f172a) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.theme-layout-flame .branch-style-status .branch-status-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.72rem !important;
    color: #10b981 !important;
    font-weight: 700 !important;
}
.theme-layout-flame .branch-style-status .branch-status-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    display: inline-block !important;
}
.theme-layout-flame .branch-style-status .branch-status-badge {
    padding: 6px 12px !important;
    border-radius: 20px !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--theme-primary-btn, #10b981) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 5. المفتاح المنزلق بأسلوب آبل (iOS Segmented Switcher) */
.theme-layout-flame .branch-style-segmented {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.theme-layout-flame .branch-style-segmented .branch-segmented-track {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    padding: 4px !important;
    border-radius: 30px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}
.theme-layout-flame .branch-style-segmented .branch-segmented-track::-webkit-scrollbar {
    display: none !important;
}
.theme-layout-flame .branch-style-segmented .branch-segment-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 16px !important;
    border-radius: 24px !important;
    color: var(--theme-text-body, #64748b) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
}
.theme-layout-flame .branch-style-segmented .branch-segment-item.active {
    background: var(--theme-card-bg, #ffffff) !important;
    color: var(--theme-text-title, #0f172a) !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}
.theme-layout-flame .branch-style-segmented .branch-segment-more {
    color: var(--theme-primary-btn, #10b981) !important;
    font-weight: 800 !important;
}

/* 6. الشريط المتوهج العصري (Modern Glow Bar) */
.theme-layout-flame .branch-style-glow {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    border: 2px solid transparent !important;
    background: linear-gradient(var(--theme-card-bg, #ffffff), var(--theme-card-bg, #ffffff)) padding-box, linear-gradient(135deg, var(--theme-primary-btn, #10b981), #059669, #34d399) border-box !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.1) !important;
}
.theme-layout-flame .branch-style-glow:hover {
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.2) !important;
    transform: translateY(-1px) !important;
}
.theme-layout-flame .branch-style-glow .branch-glow-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
}
.theme-layout-flame .branch-style-glow .branch-glow-icon {
    font-size: 1.05rem !important;
}
.theme-layout-flame .branch-style-glow .branch-glow-label {
    font-size: 0.78rem !important;
    color: var(--theme-text-body, #64748b) !important;
    font-weight: 600 !important;
}
.theme-layout-flame .branch-style-glow .branch-glow-name {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: var(--theme-text-title, #0f172a) !important;
}
.theme-layout-flame .branch-style-glow .branch-glow-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--theme-primary-btn, #10b981), #059669) !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 7. شريط الفرع مع رابط الخريطة (Branch + Map Action Bar) */
.theme-layout-flame .branch-style-map {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    background: var(--theme-card-bg, #ffffff) !important;
    border: 1.5px solid var(--theme-card-border, #e2e8f0) !important;
    border-radius: 14px !important;
}
.theme-layout-flame .branch-style-map .branch-map-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    cursor: pointer !important;
}
.theme-layout-flame .branch-style-map .branch-map-icon {
    font-size: 1.05rem !important;
}
.theme-layout-flame .branch-style-map .branch-map-name {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: var(--theme-text-title, #0f172a) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.theme-layout-flame .branch-style-map .branch-map-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}
.theme-layout-flame .branch-style-map .branch-map-btn-map {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 10px !important;
    border-radius: 9px !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}
.theme-layout-flame .branch-style-map .branch-map-btn-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 5px 10px !important;
    border-radius: 9px !important;
    background: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    border: none !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

/* 8. الكبسولة الزجاجية الفاخرة (Glassmorphic Minimal Pill) */
.theme-layout-flame .branch-style-minimal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 2px 0 !important;
}
.theme-layout-flame .branch-style-minimal .branch-minimal-pill-body {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 18px !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--theme-card-border, rgba(226, 232, 240, 0.9)) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}
.theme-layout-flame .branch-style-minimal .branch-minimal-pill-body:hover {
    border-color: var(--theme-primary-btn, #10b981) !important;
    transform: translateY(-1px) !important;
}
.theme-layout-flame .branch-style-minimal .branch-minimal-icon {
    font-size: 1rem !important;
}
.theme-layout-flame .branch-style-minimal .branch-minimal-name {
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    color: var(--theme-text-title, #0f172a) !important;
}
.theme-layout-flame .branch-style-minimal .branch-minimal-divider {
    color: var(--theme-card-border, #cbd5e1) !important;
    font-weight: 300 !important;
}
.theme-layout-flame .branch-style-minimal .branch-minimal-action {
    color: var(--theme-primary-btn, #10b981) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
}

/* التوافق التام مع الوضع الليلي (Dark Mode) */
body.theme-mode-dark .theme-layout-flame .branch-style-capsule,
.theme-mode-dark .theme-layout-flame .branch-style-capsule,
[data-theme="dark"] .theme-layout-flame .branch-style-capsule {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-app,
.theme-mode-dark .theme-layout-flame .branch-style-app,
[data-theme="dark"] .theme-layout-flame .branch-style-app {
    background: var(--theme-card-bg, #1e293b) !important;
    border-color: var(--theme-card-border, #334155) !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-pills .branch-pill-item,
.theme-mode-dark .theme-layout-flame .branch-style-pills .branch-pill-item,
[data-theme="dark"] .theme-layout-flame .branch-style-pills .branch-pill-item {
    background: var(--theme-card-bg, #1e293b) !important;
    border-color: var(--theme-card-border, #334155) !important;
    color: var(--theme-text-body, #cbd5e1) !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-status,
.theme-mode-dark .theme-layout-flame .branch-style-status,
[data-theme="dark"] .theme-layout-flame .branch-style-status {
    background: var(--theme-card-bg, #1e293b) !important;
    border-color: var(--theme-card-border, #334155) !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-segmented .branch-segmented-track,
.theme-mode-dark .theme-layout-flame .branch-style-segmented .branch-segmented-track,
[data-theme="dark"] .theme-layout-flame .branch-style-segmented .branch-segmented-track {
    background: rgba(255, 255, 255, 0.08) !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-segmented .branch-segment-item.active,
.theme-mode-dark .theme-layout-flame .branch-style-segmented .branch-segment-item.active,
[data-theme="dark"] .theme-layout-flame .branch-style-segmented .branch-segment-item.active {
    background: var(--theme-card-bg, #1e293b) !important;
    color: #ffffff !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-glow,
.theme-mode-dark .theme-layout-flame .branch-style-glow,
[data-theme="dark"] .theme-layout-flame .branch-style-glow {
    background: linear-gradient(var(--theme-card-bg, #1e293b), var(--theme-card-bg, #1e293b)) padding-box, linear-gradient(135deg, var(--theme-primary-btn, #10b981), #059669, #34d399) border-box !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-map,
.theme-mode-dark .theme-layout-flame .branch-style-map,
[data-theme="dark"] .theme-layout-flame .branch-style-map {
    background: var(--theme-card-bg, #1e293b) !important;
    border-color: var(--theme-card-border, #334155) !important;
}
body.theme-mode-dark .theme-layout-flame .branch-style-minimal .branch-minimal-pill-body,
.theme-mode-dark .theme-layout-flame .branch-style-minimal .branch-minimal-pill-body,
[data-theme="dark"] .theme-layout-flame .branch-style-minimal .branch-minimal-pill-body {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(51, 65, 85, 0.9) !important;
}
body.theme-mode-dark .about-social-bar,
.theme-mode-dark .about-social-bar,
[data-theme="dark"] .about-social-bar {
    background: transparent !important;
    border: none !important;
}
body.theme-mode-dark .about-social-btn,
.theme-mode-dark .about-social-btn,
[data-theme="dark"] .about-social-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: var(--theme-text-title, #f8fafc) !important;
}
body.theme-mode-dark .header-map-btn,
.theme-mode-dark .header-map-btn,
[data-theme="dark"] .header-map-btn {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}

/* Compact Professional Live Search Section */
.theme-layout-flame .menu-search-section {
    padding: 6px 16px 4px 16px !important;
    margin: 0 !important;
    background: transparent !important;
}

.theme-layout-flame .search-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

/* Professional Search Icon on the opposite side (Left for RTL, Right for LTR) */
.theme-layout-flame .search-wrapper .search-icon {
    position: absolute !important;
    left: 14px !important;
    right: auto !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    transition: color 0.2s ease !important;
}

.theme-layout-flame .search-wrapper .search-icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
}

[dir="ltr"] .theme-layout-flame .search-wrapper .search-icon {
    left: auto !important;
    right: 14px !important;
}

/* Compact Search Input */
.theme-layout-flame .search-wrapper .search-input {
    width: 100% !important;
    height: 38px !important;
    padding: 8px 14px 8px 38px !important;
    border: 1.5px solid var(--theme-card-border, #e2e8f0) !important;
    border-radius: 12px !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 0.86rem !important;
    color: var(--theme-text-title, #0f172a) !important;
    background-color: var(--theme-card-bg, #f8fafc) !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

[dir="ltr"] .theme-layout-flame .search-wrapper .search-input {
    padding: 8px 38px 8px 14px !important;
}

.theme-layout-flame .search-wrapper .search-input:focus {
    border-color: var(--theme-primary-btn, #10b981) !important;
    background-color: var(--theme-card-bg, #ffffff) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.theme-layout-flame .search-wrapper:focus-within .search-icon {
    color: var(--theme-primary-btn, #10b981) !important;
}

/* Products Container & Compact Spacing between Category Sections */
.theme-layout-flame #productsContainer {
    gap: 16px !important;
    padding-top: 12px !important;
}

.theme-layout-flame .category-section {
    border: none !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
    margin-bottom: 0 !important;
}

.theme-layout-flame .category-section:first-child {
    padding-top: 14px !important;
}

/* =============================================
   Category Tabs (تابات الأقسام مع صورة في مربع مدور الحواف)
   ============================================= */
.theme-layout-flame .category-tabs {
    display: flex !important;
    gap: 14px !important;
    padding: 10px 16px 12px 16px !important;
    margin-bottom: 8px !important;
    background: var(--theme-header-bg, var(--theme-menu-bg, #ffffff)) !important;
    background-color: var(--theme-header-bg, var(--theme-menu-bg, #ffffff)) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 150 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    border-bottom: 1px solid var(--theme-card-border, rgba(226, 232, 240, 0.8)) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease !important;
}
.theme-layout-flame .category-tabs::-webkit-scrollbar {
    display: none !important;
}

/* الوضع الليلي: في الحالة الثابتة بدون خلفية وبدون إطار */
body.theme-mode-dark .theme-layout-flame .category-tabs,
.theme-mode-dark .theme-layout-flame .category-tabs,
[data-theme="dark"] .theme-layout-flame .category-tabs {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* الوضع الليلي: عند التحرك والتثبيت في الأعلى (Sticky) تعود الخلفية الداكنة الفاخرة */
body.theme-mode-dark .theme-layout-flame .category-tabs.is-sticky,
.theme-mode-dark .theme-layout-flame .category-tabs.is-sticky,
[data-theme="dark"] .theme-layout-flame .category-tabs.is-sticky {
    background: var(--theme-header-bg, #1e293b) !important;
    background-color: var(--theme-header-bg, #1e293b) !important;
    border-bottom: 1px solid var(--theme-card-border, #334155) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.theme-layout-flame .category-tabs {
    display: flex !important;
    align-items: flex-start !important;
}

.theme-layout-flame .category-tab {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    gap: 6px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    flex: 0 0 76px !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    box-sizing: border-box !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    outline: none !important;
    transition: transform 0.2s ease !important;
}

/* المربع مدور الحواف للتاب */
.theme-layout-flame .category-tab-box {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    background-color: var(--theme-card-bg, #f8fafc) !important;
    border: 1px solid var(--theme-card-border, rgba(226, 232, 240, 0.9)) !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
}

/* الصورة داخل المربع أصغر منه وبحواف مدورة */
.theme-layout-flame .category-tab-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    display: block !important;
    transition: transform 0.25s ease !important;
    pointer-events: none !important;
}

.theme-layout-flame .category-tab-placeholder {
    font-size: 1.4rem !important;
    line-height: 1 !important;
}

/* عنوان القسم أسفل المربع بدون أي بوردر ويظهر بتناسق وتباعد ثابت */
.theme-layout-flame .category-tab-name {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--theme-text-body, #64748b) !important;
    text-align: center !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    min-height: 2.5em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    border: none !important;
    background: transparent !important;
    transition: color 0.2s ease, font-weight 0.2s ease !important;
}

/* حالة التحويم والتفعيل */
.theme-layout-flame .category-tab:hover .category-tab-box {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
    border-color: var(--theme-primary-btn, rgba(16, 185, 129, 0.35)) !important;
}
.theme-layout-flame .category-tab:hover .category-tab-name {
    color: var(--theme-primary-btn, #10b981) !important;
}

.theme-layout-flame .category-tab.active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.theme-layout-flame .category-tab.active .category-tab-box {
    border: 1.5px solid var(--theme-primary-btn, rgba(16, 185, 129, 0.4)) !important;
    background-color: var(--theme-card-bg, #ffffff) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12) !important;
    transform: translateY(-1px) !important;
}
.theme-layout-flame .category-tab.active .category-tab-img {
    transform: scale(1.02) !important;
}
.theme-layout-flame .category-tab.active .category-tab-name {
    color: var(--theme-text-title, #0f172a) !important;
    font-weight: 800 !important;
}

.theme-layout-flame .flame-profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-layout-flame .flame-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid var(--theme-card-border, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.theme-layout-flame .flame-info-column {
    flex: 1;
}

.theme-layout-flame .flame-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.theme-layout-flame .flame-store-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--theme-text-title, #0f172a);
    margin: 0;
    line-height: 1.3;
}

.theme-layout-flame .flame-status-badge,
.theme-layout-flame .header-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
}

.theme-layout-flame .flame-store-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--theme-text-body, #475569);
    margin: 6px 0 0 0;
    line-height: 1.5;
}



/* Category Titles with Image */
.theme-layout-flame .category-title {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--theme-text-title, #0f172a) !important;
    margin: 0 0 10px 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.theme-layout-flame .category-title-img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    border: 1px solid var(--theme-card-border, rgba(0, 0, 0, 0.08)) !important;
    object-fit: cover !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    background: var(--theme-card-bg, #ffffff) !important;
}

/* Product Cards Layout for Flame Gourmet (1. Start Image -> 2. Middle Details -> 3. End Vertically Centered Action) */
.theme-layout-flame .product-card {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    background: var(--theme-card-bg, #ffffff) !important;
    border: 1px solid var(--theme-card-border, #e2e8f0) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 12px !important;
}

.theme-layout-flame .product-card.search-hidden,
.theme-layout-flame .featured-product-card.search-hidden,
.theme-layout-flame .category-section.search-hidden,
.theme-layout-flame .featured-slider-section.search-hidden {
    display: none !important;
}

/* 1. Start: Product Image */
.theme-layout-flame .product-image-wrap {
    position: relative !important;
    flex-shrink: 0 !important;
    width: 120px !important;
    height: 120px !important;
}

.theme-layout-flame .product-image,
.theme-layout-flame .product-image-placeholder {
    width: 120px !important;
    height: 120px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
}

/* 2. Middle: Product Details */
.theme-layout-flame .product-info {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 4px !important;
}

.theme-layout-flame .product-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--theme-text-title, #0f172a);
    margin-bottom: 3px !important;
    transition: color 0.2s ease !important;
}

.theme-layout-flame .product-card:hover .product-name,
.theme-layout-flame .product-card:hover .flame-product-name {
    color: var(--theme-price-tag, #b91c1c) !important;
}

.theme-layout-flame .product-desc {
    font-size: 0.78rem !important;
    color: var(--theme-text-body, #64748b) !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

.theme-layout-flame .product-price,
.theme-layout-flame .flame-price {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--theme-price-tag, #b91c1c) !important;
}

/* 3. End: Action Button / Quantity Control (Vertically Centered) */
.theme-layout-flame .flame-card-action-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    min-width: 72px !important;
}

.theme-layout-flame .add-btn.flame-add-btn {
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    white-space: nowrap !important;
}

/* Compact + 1 - Quantity Control with Matching Theme Button Color */
.theme-layout-flame .qty-control {
    position: static !important;
    transform: none !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    background-color: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 2px 6px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

.theme-layout-flame .qty-control button {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    padding: 0 6px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    height: 100% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: opacity 0.15s ease !important;
}

.theme-layout-flame .qty-control button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
}

.theme-layout-flame .qty-control span {
    color: var(--theme-primary-btn-text, #ffffff) !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    min-width: 18px !important;
    text-align: center !important;
    line-height: 1 !important;
    padding: 0 2px !important;
}

/* Quantity Control & Badge Green Colors */
.theme-layout-flame .cart-qty-badge {
    background-color: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

/* Storefront Footer */
.theme-layout-flame .menu-footer {
    background-color: var(--theme-header-bg, var(--theme-card-bg, #ffffff)) !important;
    border-top: 1px solid var(--theme-card-border, #e2e8f0) !important;
    color: var(--theme-text-body, #64748b) !important;
    padding: 18px 20px !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

body.has-cart .theme-layout-flame .menu-footer,
body.has-cart .menu-footer {
    padding-bottom: 190px !important;
}

.theme-layout-flame .menu-footer a {
    color: var(--theme-primary-btn, #10b981) !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    text-decoration: none !important;
}

.theme-layout-flame .menu-footer a:hover {
    text-decoration: underline !important;
}

/* =========================================================
   Mobile Screen Adjustments (@media max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Products Container padding 0 & compact gap */
    .theme-layout-flame #productsContainer {
        padding: 0 !important;
        gap: 10px !important;
    }

    .theme-layout-flame .category-section {
        padding: 8px 12px !important;
        margin-bottom: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .theme-layout-flame .category-section:first-child {
        padding-top: 14px !important;
    }

    /* 2. Top Cover Buttons: Slightly smaller in mobile */
    .theme-layout-flame .cover-about-btn {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
        gap: 4px !important;
    }
    .theme-layout-flame .cover-about-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    .theme-layout-flame .cover-icon-btn {
        width: 30px !important;
        height: 30px !important;
    }
    .theme-layout-flame .cover-icon-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    .theme-layout-flame .cover-lang-btn {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
        min-width: 30px !important;
        height: 30px !important;
    }

    /* 3. Category Titles & Tabs: Scaled for mobile */
    .theme-layout-flame .category-title {
        font-size: 1.08rem !important;
        margin: 0 0 8px 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        gap: 7px !important;
    }
    .theme-layout-flame .category-title-img {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    .theme-layout-flame .category-tab {
        flex: 0 0 68px !important;
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
    }
    .theme-layout-flame .category-tab-box {
        width: 52px !important;
        height: 52px !important;
        border-radius: 16px !important;
    }
    .theme-layout-flame .category-tab-img {
        border-radius: 12px !important;
    }
    .theme-layout-flame .category-tab-name {
        font-size: 0.76rem !important;
        min-height: 2.5em !important;
    }

    /* 4. Product Cards: Slightly smaller fonts & compact elements */
    .theme-layout-flame .product-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }
    .theme-layout-flame .product-name {
        font-size: 0.88rem !important;
    }
    .theme-layout-flame .product-desc {
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
        margin-bottom: 4px !important;
    }
    .theme-layout-flame .product-price,
    .theme-layout-flame .flame-price {
        font-size: 0.92rem !important;
    }
    .theme-layout-flame .product-old-price {
        font-size: 0.76rem !important;
    }
    .theme-layout-flame .product-image-wrap {
        width: 120px !important;
        height: 120px !important;
    }
    .theme-layout-flame .product-image,
    .theme-layout-flame .product-image-placeholder {
        width: 120px !important;
        height: 120px !important;
        border-radius: 14px !important;
    }
    .theme-layout-flame .flame-card-action-wrap {
        min-width: 65px !important;
    }
    .theme-layout-flame .add-btn.flame-add-btn {
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
    }
    .theme-layout-flame .qty-control {
        height: 28px !important;
        padding: 2px 4px !important;
        border-radius: 10px !important;
    }
    .theme-layout-flame .qty-control button {
        padding: 0 4px !important;
        font-size: 0.85rem !important;
    }
    .theme-layout-flame .qty-control span {
        font-size: 0.78rem !important;
        min-width: 15px !important;
    }
}

/* =========================================================
   Featured Section (القسم المميز) - صف واحد دائماً بجميع الشاشات
   ========================================================= */
.theme-layout-flame .featured-slider-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px 8px 16px !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 6px !important;
}

/* صف واحد أفقي دائماً */
.theme-layout-flame .featured-products-slider {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: none !important; /* سحب حر وانسيابي أول بأول */
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 4px 2px 12px 2px !important;
    margin: 0 !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
.theme-layout-flame .featured-products-slider::-webkit-scrollbar {
    display: none !important;
}

.theme-layout-flame .featured-products-slider:active,
.theme-layout-flame .featured-products-slider.is-dragging {
    cursor: grabbing !important;
}

/* حجم أساسي للكروت (140px) للشاشات المتوسطة */
.theme-layout-flame .featured-product-card {
    position: relative !important;
    flex: 0 0 140px !important;
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--theme-card-bg, #ffffff) !important;
    border: 1px solid var(--theme-card-border, #e2e8f0) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    box-sizing: border-box !important;
    touch-action: pan-x pan-y !important;
}
.theme-layout-flame .featured-product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.theme-layout-flame .featured-product-card * {
    -webkit-user-drag: none !important;
}
.theme-layout-flame .featured-product-card img {
    pointer-events: none !important;
}

/* Top: Product Image */
.theme-layout-flame .featured-product-image-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--theme-menu-bg, #f8fafc) !important;
    margin-bottom: 6px !important;
    flex-shrink: 0 !important;
}
.theme-layout-flame .featured-product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}
.theme-layout-flame .featured-product-card:hover .featured-product-img {
    transform: scale(1.04) !important;
}
.theme-layout-flame .featured-product-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    background: rgba(255, 94, 54, 0.08) !important;
}

.theme-layout-flame .featured-badges-overlay {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    z-index: 2 !important;
}

/* Middle: Product Name */
.theme-layout-flame .featured-product-info {
    flex: 1 !important;
    margin-bottom: 4px !important;
    min-height: 30px !important;
}
.theme-layout-flame .featured-product-name {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: var(--theme-text-title, #0f172a) !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Bottom: Price & Action Controls */
.theme-layout-flame .featured-product-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin-top: auto !important;
    padding-top: 3px !important;
}
.theme-layout-flame .featured-price-wrap {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.15 !important;
}
.theme-layout-flame .featured-price-wrap .product-price {
    font-size: 0.94rem !important;
    font-weight: 900 !important;
    color: var(--theme-price-tag, #b91c1c) !important; /* نفس مصدر لون السعر في المنتجات */
}
.theme-layout-flame .featured-price-wrap .product-old-price {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
}

.theme-layout-flame .featured-action-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}
.theme-layout-flame .featured-action-wrap .add-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    font-size: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* عداد الكمية -1+ داخل كروت المميز */
.theme-layout-flame .featured-action-wrap .qty-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    border-radius: 10px !important;
    padding: 0 4px !important;
    background-color: var(--theme-primary-btn, #10b981) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    flex-shrink: 0 !important;
}
.theme-layout-flame .featured-action-wrap .qty-control button {
    background: transparent !important;
    border: none !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    padding: 0 5px !important;
    cursor: pointer !important;
    height: 100% !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.theme-layout-flame .featured-action-wrap .qty-control span {
    color: var(--theme-primary-btn-text, #ffffff) !important;
    font-weight: 900 !important;
    font-size: 0.95rem !important;
    min-width: 16px !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* بادج المنتجات المخصصة على زاوية الكرت */
.theme-layout-flame .cart-qty-badge,
.theme-layout-flame .featured-product-card > .cart-qty-badge,
.theme-layout-flame .product-card > .cart-qty-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 20 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 50% !important;
    background-color: var(--theme-primary-btn, #10b981) !important;
    color: var(--theme-primary-btn-text, #ffffff) !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}
[dir="ltr"] .theme-layout-flame .cart-qty-badge,
html[dir="ltr"] .theme-layout-flame .cart-qty-badge,
[dir="ltr"] .theme-layout-flame .featured-product-card > .cart-qty-badge,
html[dir="ltr"] .theme-layout-flame .featured-product-card > .cart-qty-badge,
[dir="ltr"] .theme-layout-flame .product-card > .cart-qty-badge,
html[dir="ltr"] .theme-layout-flame .product-card > .cart-qty-badge {
    left: auto !important;
    right: 8px !important;
}

/* =========================================================
   ستايل مخصص للشاشات 768px وأعلى: تظهر جميع الكروت بحجم 100% متجاوبة
   ========================================================= */
@media (min-width: 768px) {
    .theme-layout-flame .featured-slider-section {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 18px 20px 10px 20px !important;
    }
    .theme-layout-flame .featured-products-slider {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: stretch !important;
        gap: 14px !important;
        overflow: visible !important;
        cursor: default !important;
        padding: 4px 0 10px 0 !important;
    }
    .theme-layout-flame .featured-product-card {
        flex: 1 1 0% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding: 12px 10px 12px 10px !important;
        border-radius: 16px !important;
        background: var(--theme-card-bg, #ffffff) !important;
        border: 1px solid var(--theme-card-border, #e2e8f0) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04) !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
    }
    .theme-layout-flame .featured-product-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(255, 94, 54, 0.25) !important;
    }
    .theme-layout-flame .featured-product-image-wrap {
        border-radius: 12px !important;
        margin-bottom: 8px !important;
    }
    .theme-layout-flame .featured-product-info {
        margin-bottom: 6px !important;
        min-height: 36px !important;
    }
    .theme-layout-flame .featured-product-name {
        font-size: 0.86rem !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
    }
    .theme-layout-flame .featured-price-wrap .product-price {
        font-size: 1.02rem !important;
        font-weight: 900 !important;
        color: var(--theme-price-tag, #b91c1c) !important;
    }
    .theme-layout-flame .featured-price-wrap .product-old-price {
        font-size: 0.78rem !important;
    }
    .theme-layout-flame .featured-action-wrap .add-btn {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 11px !important;
        font-size: 1.35rem !important;
        padding: 0 !important;
    }
}

/* شاشات الجوال والهاتف (<= 500px): يظهر كرتين ونصف بالضبط (2.5) */
@media (max-width: 500px) {
    .theme-layout-flame .featured-products-slider {
        gap: 8px !important;
        padding: 4px 0 10px 0 !important;
    }
    .theme-layout-flame .featured-product-card {
        flex: 0 0 calc((100% - 16px) / 2.5) !important;
        width: calc((100% - 16px) / 2.5) !important;
        min-width: calc((100% - 16px) / 2.5) !important;
        max-width: calc((100% - 16px) / 2.5) !important;
        padding: 6px 7px !important;
        border-radius: 12px !important;
    }
    .theme-layout-flame .featured-product-image-wrap {
        border-radius: 9px !important;
        margin-bottom: 5px !important;
    }
    .theme-layout-flame .featured-product-info {
        margin-bottom: 3px !important;
        min-height: 28px !important;
    }
    .theme-layout-flame .featured-product-name {
        font-size: 0.74rem !important;
        line-height: 1.25 !important;
    }
    .theme-layout-flame .featured-price-wrap .product-price {
        font-size: 0.88rem !important;
        color: var(--theme-price-tag, #b91c1c) !important;
    }
    .theme-layout-flame .featured-action-wrap .add-btn {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 9px !important;
        font-size: 1.15rem !important;
        padding: 0 !important;
    }
}