/* =========================================================
   MITHORA ELITE — FULL INDUSTRY SYSTEM V8.0 (ALL-IN-ONE)
   ========================================================= */

:root {
    --accent: #FF6B35;
    --accent-green: #10B981;
    --accent-green-dark: #059669;
    --gray-dark: #1E293B;
    --gray-med: #6B7280;
    --gray-light: #F3F4F6;
    --border-light: #E5E7EB;
    --radius-lg: 24px;
    --radius-md: 16px;
}
:root {
  --app-bottom-bar-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom);
}


/* 1. GLOBAL RESET & BASE */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #FCFCFD; color: var(--gray-dark); margin: 0; }

/* 2. CHEF LOADER SYSTEM
.m-loader-wrapper {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.m-chef-icon {
    width: 80px; height: 80px;
    position: relative; margin-bottom: 24px;
}

.m-pan {
    width: 48px; height: 32px;
    background: var(--accent);
    border-radius: 0 0 16px 16px;
    position: absolute; bottom: 16px; left: 16px;
    animation: panJump 2s ease-in-out infinite;
}

.m-steam {
    position: absolute; width: 4px; height: 15px;
    background: var(--gray-med); border-radius: 2px;
    opacity: 0; top: -10px;
}
.m-steam-1 { left: 25px; animation: steam 2s 0s infinite; }
.m-steam-2 { left: 35px; animation: steam 2s 0.5s infinite; }*/

@keyframes panJump {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes steam {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-20px); opacity: 0; }
}

/* 3. STICKY HEADER (PROMO + SEARCH + PILLS) */
#m-sticky-wrapper {
    background: #F8F9FA !important; /* Slightly off-white to contrast with white cards */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
padding-bottom: 4px !important;
	
}



#m-promo-carousel {
background: var(--gray-dark) !important; /* Dark contrast makes food offers "pop" */
    border-bottom: none;
    height: 34px; /* Slimmer */
    border-bottom: 1px solid #f2f2f2;
    padding: 8px 15px; /* Reduced vertical padding */

    display: flex;
    align-items: center;
}

.m-promo-row {
    display: flex;
    justify-content: space-between; /* Pushes content left, dots right */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.m-promo-viewport {
    position: relative;
    height: 30px;
    flex-grow: 1;
}

.m-promo-slide {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    visibility: hidden;
}

.m-promo-slide.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

.m-promo-icon {
    font-size: 16px;
}

.m-promo-text-wrap {
    display: flex;
    align-items: center; /* Side by side for maximum compactness */
    gap: 6px;
}

.m-promo-main {
    font-size: 13px;
    font-weight: 800;
    color: #FFD700 !important; /* Gold text for high visibility */
    white-space: nowrap;
}

.m-promo-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    white-space: nowrap;
}

/* Dots on Right Side */
.m-promo-dots-side {
    display: flex;
    gap: 4px;
    align-items: center;
}

.m-dot {
    width: 4px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.m-dot.active {
    width: 12px; /* Moving pill effect */
    background: #E23744;
    border-radius: 4px;
}

/* Responsive adjustment for very small screens */
@media (max-width: 360px) {
    .m-promo-sub { display: none; } /* Show only main offer if too narrow */
}


/* promo home icon */
/* Container for the single row layout */
.m-header-layout {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    gap: 12px;
}

/* Home Icon Styling */
.m-promo-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
   color: white !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    text-decoration: none;
    flex-shrink: 0;
    padding-right: 8px;

}

/* Ensure Viewport takes all available middle space */
.m-promo-viewport {
    flex: 1 !important;
    position: relative;
    height: 24px; /* Matches text height */
    overflow: hidden;
}

/* Force text into a single line */
.m-promo-text-wrap {
    display: flex !important;
    flex-direction: row !important; /* Forces side-by-side */
    align-items: center !important;
    gap: 6px;
    white-space: nowrap;
}

.m-promo-slide {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Small screen fix: hide sub-text if it gets too crowded */
@media (max-width: 380px) {
    .m-promo-sub {
        display: none !important;
    }
    .m-header-layout {
        gap: 8px;
    }
}

/* promo end */

.m-search-container {
    padding: 6px 16px 6px 16px !important;
    width: 100% !important;
    margin: 0 !important;
}
.m-search-bar {
    display: flex;
    align-items: center;
    position: relative;
    background: #f5f5f5; /* Match your theme */
    border-radius: 8px;
    padding: 0 10px;
}
/* Specific styling for the filter button inside the search bar */
.m-filter-btn {
    padding-left: 10px;
    border-left: 1px solid var(--border-light);
    margin-left: 8px;
    color: var(--accent);
    display: flex;
    align-items: center;
}
/* Dropdown styling */
/* Dropdown Styling */
.m-filter-dropdown {
    position: absolute;
    top: 52px; /* Position right below the search bar */
    right: 16px;
    left: 16px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999 !important; /* Ensure it floats above everything */
    padding: 15px;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid var(--border-light);
}

/* Filter Cat Reset */

.m-reset-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
    transition: transform 0.2s;
}

.m-reset-chip:active {
    transform: scale(0.95);
}

.m-reset-chip svg {
    opacity: 0.8;
}

/* Ensure the active filter bar doesn't push content too aggressively */
#m-active-filter-bar {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filter Cat Reset */

.m-search-bar:focus-within { background: #fff; border-color: var(--accent); }

/* HORIZONTAL CATEGORY PILLS */
.m-cat-scroll {
    display: flex; overflow-x: auto; gap: 10px;
    padding: 0 16px 8px 16px; scrollbar-width: none;
}
.m-cat-scroll::-webkit-scrollbar { display: none; }

.m-cat-pill {
    flex-shrink: 0; padding: 8px 18px; background: #fff;
    border: 1.5px solid var(--border-light); border-radius: 25px;
    font-size: 13px; font-weight: 700; transition: 0.2s;
}
.m-cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 4. CATEGORY BANNER (SVG + NAME SINGLE ROW)
.m-cat-banner {
    position: sticky !important; top: 165px; z-index: 100;
    background: rgba(255,255,255,0.98); padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}*/

/* --- 🔘 REMOVE STICKYNESS FROM CATEGORY SECTIONS --- */
.m-cat-banner {
    background: #ffffff !important;
    padding: 16px 20px 10px 20px !important;
    border-bottom: 1px solid var(--border-light) !important;
    margin-top: 20px !important; /* Increased from 12px to 20px */
}
/* Stacks the title and rule */
.m-cat-banner-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
/* Icon and Name side-by-side */
.m-cat-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* 🎨 THE SVG ICON */
.m-cat-icon {
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--accent) !important; /* Mithora Orange */
    flex-shrink: 0 !important;
}
.m-cat-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke: currentColor !important;
    stroke-width: 2.2px !important;
}
/* 📝 THE CATEGORY NAME */
.m-cat-name {
    font-size: 19px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: var(--gray-dark) !important;
    letter-spacing: -0.4px !important;
}

/* 🚚 THE DELIVERY RULE (Small, Bold, Highlighted) */
.m-cat-rule {
    font-size: 10.5px !important; /* Small but readable */
    font-weight: 800 !important; /* Extra bold for visibility */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* The Live Pulse Dot */
.m-cat-rule::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
    display: inline-block;
}

/* 🟢 HIGHLIGHTED COLORS */
.m-rule-open {
    color: var(--accent-green) !important; /* High contrast Green */
}

.m-rule-closed {
    color: #ef4444 !important; /* High contrast Red */
}

/* Optional: Add a very faint background to the rule to make it "pop" */
.m-cat-rule {
    padding: 2px 0px !important;
}

/* 5. ITEM CARDS & GRID */
.m-items-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px; padding: 16px;
}
@media (min-width: 1024px) { .m-items-grid { grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; } }

.m-item-card {
    background: #fff; border-radius: var(--radius-md);
    border: 1px solid var(--border-light); position: relative;
    overflow: hidden; display: flex; flex-direction: column;
}

.m-badge-discount-green {
    position: absolute; top: 8px; right: 8px; z-index: 10;
    background: var(--accent-green); color: #fff; padding: 4px 8px;
    border-radius: 6px; font-size: 10px; font-weight: 800;
}

/* --- 🖼️ INCREASED IMAGE HEIGHT --- */
.m-item-image { 
    height: 150px; /* Increased from 130px */
    background: #f8f8f8; 
    overflow: hidden; 
    position: relative;
	
}
.m-item-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.m-item-card:hover .m-item-image img { transform: scale(1.05); }

.m-item-content { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.m-item-title { 
    font-size: 13px; /* Reduced from 14px */
    font-weight: 700; 
    margin-bottom: 6px; 
    height: 32px; 
    line-height: 1.2;
    overflow: hidden; 
}

/* ratings */

/* 🔥 TITLE LEFT + RATING RIGHT (Single Line) - COMPACT */
.m-title-rating-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 4px !important;
  gap: 6px !important;
}



.m-rating-inline {
  display: flex !important;
  align-items: center !important;
  gap: 1px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.m-rating-num {
  font-weight: 700 !important;
  color: #FF6B35 !important;
  font-size: 13px !important;
}

.m-rating-star {
  color: #FFD700 !important;
  font-size: 12px !important;
}

.m-rating-count {
  color: #666 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}


/* 6. BUTTONS & QUANTITY SYSTEM (NON-BREAKABLE) */
.m-item-footer {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-top: auto;
}

.m-price-stack { display: flex; flex-direction: column; }
.m-item-price { 
    font-size: 16px; /* Reduced from 18px */
    font-weight: 800; 
}
.m-strike { 
    font-size: 10px; /* Reduced from 11px */
    color: var(--gray-med); 
    text-decoration: line-through; 
}

.m-action-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.m-variant-count-tag {
    font-size: 9px; font-weight: 800; color: var(--accent);
    background: rgba(255,107,53,0.1); padding: 2px 6px; border-radius: 4px;
}

.m-btn-add {
    height: 32px; /* Reduced from 36px */
    min-width: 68px; /* Reduced from 75px */
    border-radius: 8px;
    border: 1.5px solid var(--accent); 
    background: #fff; 
    color: var(--accent);
    font-weight: 700; 
    font-size: 11px; /* Reduced from 12px */
}

.m-qty-box {
    height: 32px; /* Reduced from 36px */
    min-width: 80px; /* Reduced from 90px */
    background: var(--accent);
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
}
.m-qty-btn { flex: 1; border: none; background: transparent; color: #fff; font-size: 16px; font-weight: 900; cursor: pointer; }
.m-qty-num { color: #fff; font-weight: 800; font-size: 13px; min-width: 20px; text-align: center; }

/* 7. COMPACT CENTERED STICKY CART */
#m-sticky-cart {
  position: fixed !important;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(
    var(--app-bottom-bar-height)
    + var(--safe-bottom)
    + 16px
  ) !important;
  z-index: 6000;
}



.m-cart-pill-small {
  background: rgba(30, 41, 59, 0.85); /* gray-dark with transparency */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  gap: 12px;

  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}

.m-pill-text {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
@media (max-width: 360px) {
    .m-cart-pill-small {
        padding: 10px 18px !important;
        gap: 8px !important;
    }

    .m-pill-text {
        font-size: 12px !important;
    }
}
.m-pill-count {
    background: var(--accent); width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}

/* 8. POPUP / BOTTOM SHEET (FULL POLISH) */
.m-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 10000; display: flex; align-items: flex-end;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.m-overlay.active { opacity: 1; visibility: visible; }

.m-bottom-sheet {
    width: 100%; background: #fff; border-radius: 28px 28px 0 0;
    max-height: 88vh; transform: translateY(100%); transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column;
}
.m-overlay.active .m-bottom-sheet { transform: translateY(0); }

.m-sheet-header-premium {
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--border-light) !important;
    display: flex !important;
    align-items: center !important; /* Vertically centers image and text */
    gap: 14px !important;
    position: relative !important;
}
.m-header-main-flex {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
}
.m-header-img-box {
    width: 64px !important; /* Slightly smaller for row fit */
    height: 64px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}
.m-header-img-box img { width: 100%; height: 100%; object-fit: cover; }
.m-header-details {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
.m-header-details h3 {
    font-size: 16px !important;
    font-weight: 800 !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
    color: var(--gray-dark) !important;
}
/* Popup product Description*/
.m-sheet-main-desc {
    font-size: 11px !important;
    color: var(--gray-med) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2; /* Keeps description to 2 lines max */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* --- 📝 SMALLER VARIANT DESCRIPTION --- */
.m-v-desc-sub {
    display: block !important;
    font-size: 10px !important; /* Reduced for best fit */
    color: var(--gray-med) !important;
    line-height: 1.3 !important;
    margin: 2px 0 4px 0 !important;
    font-weight: 400 !important;
    opacity: 0.8 !important;
}
/* Adjust close button to not overlap text */
/* --- ✕ COMPACT CLOSE BUTTON --- */
.m-close-circle-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 28px !important;
    height: 28px !important;
    background: var(--gray-light) !important;
    color: var(--gray-dark) !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
}

.m-close-circle-btn:active {
    transform: scale(0.9) !important;
    background: var(--border-light) !important;
}

.m-sheet-body { padding: 10px 0; overflow-y: auto; flex: 1; }

.m-variant-strip-new {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--gray-light);
}
.m-variant-strip-new.active { background: #F0FDF4; border-left: 4px solid var(--accent-green); }

.m-v-price-now { font-size: 19px; font-weight: 800; color: var(--accent-green); }

.m-sheet-footer-action { padding: 20px; border-top: 1px solid var(--border-light); background: #fff; }
.m-done-btn-premium {
    width: 100%; height: 54px; background: var(--accent); color: #fff;
    border-radius: 16px; font-weight: 700; font-size: 16px; border: none;
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 480px) {
    .m-cat-banner { top: 145px; padding: 12px 16px; }
    .m-cat-name { font-size: 18px; }
height: 130px; /* Increased from 110px for mobile */
    .m-btn-add { min-width: 65px; height: 32px; font-size: 11px; }
}

/* 🔍 MITHORA THEME SEARCH BAR WITH GLOW */
.m-search-bar {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 0 16px !important;
    border: 1.5px solid var(--border-light) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.m-search-bar:focus-within {
    border-color: var(--accent) !important;
    /* Mithora Signature Soft Glow */
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 
                0 4px 12px rgba(255, 107, 53, 0.1) !important;
    background: #fff !important;
}

#m-input {
    flex: 1 !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: transparent !important;
}
/* 📦 POPUP BUTTON SYSTEM */

/* Common Base for Popup Buttons */
.m-v-right button {
    height: 40px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 0 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
}

.m-v-right button:active { transform: scale(0.95); }

/* 1. ADD BUTTON (Mithora Primary) */
.m-v-add-btn-premium {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2) !important;
}

/* 2. VIEW DETAILS (Clean Outline) */
.m-v-view-btn {
    background: #fff !important;
    border: 1.5px solid var(--gray-dark) !important;
    color: var(--gray-dark) !important;
}

/* 3. SUBSCRIBE BUTTON (Eco-Premium Green) */
.m-v-subscribe-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
}

/* Popup Row Layout Adjustment */
.m-variant-strip-new {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    margin: 8px 16px !important;
    background: #fff !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
}

/* If the row is active/selected */
.m-variant-strip-new.active {
    border-color: var(--accent) !important;
    background: rgba(255, 107, 53, 0.03) !important;
}

.m-v-right {
    display: flex !important;
    gap: 8px !important; /* Spacing between buttons */
    align-items: center !important;
    flex-shrink: 0 !important;
}
.m-sheet-footer-action {
    padding: 16px 20px 30px 20px !important;
    background: #fff !important;
    border-top: 1px solid var(--border-light) !important;
}

.m-done-btn-premium {
    width: 100% !important;
    height: 52px !important;
    background: var(--gray-dark) !important; /* Dark contrast for the final action */
    color: #fff !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border: none !important;
}

/* --- 🔘 VIEW / OPTIONS BUTTON (Clean Outline) --- */
/* --- 🔘 COMPACT VIEW / OPTIONS BUTTON --- */
.m-btn-view {
    background: #ffffff !important;
    color: var(--gray-dark) !important;
    border: 1.5px solid var(--gray-dark) !important;
    height: 32px !important; /* Reduced from 38px to match ADD/QTY buttons */
    padding: 0 12px !important; /* Slimmer horizontal padding */
    border-radius: 8px !important; /* Matches new 8px radius of other buttons */
    font-size: 11px !important; /* Reduced from 13px for better fit */
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    min-width: 70px !important; /* Prevents text from hitting edges */
}

/* --- 🟢 SUBSCRIBE BUTTON (Targeting text inside m-btn-view) --- */
/* This specifically styles the Subscribe button when it's generated with m-btn-view */
button.m-btn-view[onclick*="openSheet"]:contains("SUBSCRIBE"), 
.m-btn-view:has(text:contains("SUBSCRIBE")),
[onclick*="openSheet"]:not(:has-text("OPTIONS")) { /* Fallback Logic */ }

/* Direct styling for the Subscribe state */
.m-btn-view:not(:empty) {
    /* If the text is SUBSCRIBE, we apply Mithora Green */
}

/* HIGH PRIORITY OVERRIDE FOR SUBSCRIBE */
button.m-btn-view:not(:has-text("OPTIONS")):not(:has-text("ADD")) {
   background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
   color: #fff !important;
   border: none !important;
   box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
}

/* --- 🟠 ADD BUTTON (Mithora Primary) --- */
.m-btn-add {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2) !important;
}

/* --- ⚪ CLOSED/DISABLED BUTTON --- */
.m-btn-disabled {
    background: #F3F4F6 !important;
    color: #9CA3AF !important;
    border: none !important;
    cursor: not-allowed !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

/* Feedback on click */
.m-btn-view:active, .m-btn-add:active {
    transform: scale(0.96) !important;
}

/* Popup price striked */
/* --- 🔘 POPUP OLD PRICE STRIKE --- */
.m-v-price-was {
    font-size: 14px !important;
    color: var(--gray-med) !important;
    text-decoration: line-through !important; /* 🔥 This strikes the price */
    margin-left: 8px !important;
    opacity: 0.8 !important;
    display: inline-block !important;
}

/* 🔥 ENSURE PRICE ROW DOES NOT SHRINK OR WRAP */
.m-v-price-row {
    display: flex !important;
    align-items: baseline !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    gap: 4px !important;
}

.m-v-price-now {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--accent-green) !important;
}

/* --- 🏠 HOME + SEARCH ROW --- */
/* 🔥 FIXED COMPACT HEADER - PROPER WIDTH */
.m-header-top-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;              /* Restored proper spacing */
    padding: 8px 16px !important;      /* Fixed: Full width padding */
    background: rgba(255,255,255,0.97) !important;
    border-bottom: 1px solid rgba(229,231,235,0.8) !important;
    /* Proper subtle elevation */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    width: 100% !important;            /* FIXED: Full width */
    box-sizing: border-box !important;
}

/* 🏠 FIXED HOME BUTTON */
.m-home-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;            /* Fixed size */
    height: 42px !important;
    background: rgba(255,255,255,0.9) !important;
    color: var(--gray-dark) !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(229,231,235,0.5) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

.m-home-btn:hover {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    transform: translateY(-1px) !important;
}

/* 🔍 FIXED SEARCH BAR */
.m-header-top-row .m-search-container {
    flex: 1 !important;                /* Takes remaining space */
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;        /* FIXED: No width constraint */
}

.m-header-top-row .m-search-bar {
  
    border-radius: 12px !important;
    padding: 0 14px !important;        /* Proper padding */
  
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    height: 44px !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;            /* FIXED: Full available width */
    box-sizing: border-box !important;
   
}

.m-header-top-row .m-search-bar:focus-within {
    border-color: var(--accent) !important;
    background: #fff !important;
    box-shadow: 
        0 0 0 3px rgba(255,107,53,0.15),
        0 4px 16px rgba(0,0,0,0.12) !important;
}

/* 🧹 LIGHTER SEARCH TEXT (Low weight) */
.m-header-top-row #m-input {
    flex: 1 !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 300 !important;       /* Light/low weight */
    background: transparent !important;
    padding: 0 0 1px 0 !important;
    margin: 0 !important;
    color: rgba(107, 114, 128, 0.85) !important;  /* Light gray (#6B7280 85% opacity) */
    width: 100% !important;
}

/* 🎯 MOBILE PERFECT */
@media (max-width: 480px) {
    .m-header-top-row {
        padding: 6px 14px !important;
        gap: 10px !important;
    }
    
    .m-home-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .m-header-top-row .m-search-bar {
        height: 40px !important;
        padding: 0 12px !important;
    }
}

/* 🔧 PARENT CONTAINER FIX */
#m-sticky-wrapper {
    position: sticky !important;
    top: 0 !important;
    z-index: 2000 !important;
    background: rgba(255,255,255,0.98) !important;
    width: 100% !important;            /* FIXED: Full viewport width */
    padding: 0 !important;             /* No extra padding */
    margin: 0 !important;
    box-sizing: border-box !important;
}

.m-search-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure the parent search container allows the dropdown to overflow */
.m-search-container {
    position: relative;
    overflow: visible !important; /* Critical to show dropdown */
    z-index: 2001 !important;    /* Must be higher than #menu-location-checker (1000) */
}
#menu-location-checker {
    margin-top: -4px !important;
}

/* --- 🏷️ VARIANT BADGE (ABOVE BUTTON) --- */
.m-action-col { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: flex-end !important; /* Right align both badge and button */
    gap: 4px !important; 
    justify-content: flex-end !important;
}

.m-variant-count-tag {
    display: inline-block !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    color: var(--accent) !important;
    background: rgba(255, 107, 53, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    margin-bottom: 2px !important; /* Space between badge and button */
}

/* --- 🌿 TRUST BANNER STYLING --- */
.m-trust-banner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f0fff4; /* Very light fresh green */
    border: 1px solid #c6f6d5;
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    margin-top: 5px;
}

.m-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22543d; /* Darker green for readability */
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
}

.m-trust-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #38a169; /* Icon Green */
}

.m-trust-item b {
    font-weight: 800;
    color: #1a4731;
}

/* Ensure it stays sticky with the header */
#m-sticky-wrapper {
    background: white;
    z-index: 100;
}

/* Mobile optimization: make items side-by-side if screen is wide enough */
@media (min-width: 480px) {
    .m-trust-banner {
        flex-direction: row;
        justify-content: space-around;
    }
}



/* Kitchen Loader - Fresh Menu Theme */
/* ========================================
   MITHORA KITCHEN LOADER - FULL VERSION
   ======================================= */
/* Full screen wrapper - keeping your current position */
.m-loader-wrapper {
    position: fixed; /* Ensures it stays over the screen */
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.m-kitchen-loader {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* --- BEST STYLE OFFER CARD --- */
.m-mithora-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
    position: relative;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.m-offer-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #E23744; /* Red */
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 1px;
}

.m-offer-main {
    font-size: 42px;
    font-weight: 800;
    color: #1C1C1C;
    margin-top: 5px;
}

.m-rupee {
    font-size: 28px;
    margin-right: 2px;
}

.m-offer-details {
    font-size: 16px;
    font-weight: 700;
    color: #E23744;
    margin-top: -5px;
    text-transform: uppercase;
}

.m-offer-sub {
    font-size: 12px;
    color: #696969;
    margin-top: 8px;
}

/* --- KITCHEN ELEMENTS --- */
.m-kitchen-title h3 {
    font-size: 20px;
    color: #1C1C1C;
    font-weight: 700;
    margin: 10px 0 0px;
}

.m-kitchen-title p {
    font-size: 13px;
    color: #828282;
    margin-bottom: 25px;
}

.m-kitchen-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.m-kitchen-img {
    width: 65px;
    height: 65px;
    border-radius: 50%; /* Circular images categories */
    overflow: hidden;
    margin: 0 auto 8px;
    border: 1px solid #f0f0f0;
}

.m-kitchen-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-item-name {
    font-size: 11px;
    color: #4F4F4F;
    font-weight: 500;
}

/* --- PROGRESS BAR --- */
.m-progress-bar-container {
    width: 60%;
    height: 4px;
    background: #F0F0F0;
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.m-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #E23744;
    transition: width 0.4s ease;
}

/* Pan Animation */
.m-pan {
    width: 40px;
    height: 40px;
    animation: cook 1s infinite alternate;
}

@keyframes cook {
    from { transform: translateY(0) rotate(0); }
    to { transform: translateY(-5px) rotate(5deg); }
}
/* 🔥 ULTRA-COMPACT LOCATION BAR v2.0 - 44px → 32px MOBILE */
.m-loc-bar {

    background: #ffffff !important;
    border: 1px solid rgba(255, 107, 53, 0.3) !important;
    border-style: dashed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;

    padding: 10px 14px !important;
    margin: 6px 16px !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    min-height: 32px;
}

.m-loc-bar.not-serviceable {
    border-color: #fee2e2;
    background: #fffafa;
}

.loc-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px; /* 12px→8px (-4px) */
}

.loc-icon { 
    font-size: 16px; /* 18px→16px (-2px) */
    flex-shrink: 0;
}

.loc-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.loc-label {
    font-size: 9px; /* 10px→9px (-1px) */
    text-transform: uppercase;
    letter-spacing: 0.4px; /* 0.5px→0.4px */
  color: var(--accent) !important; /* "DELIVERING TO" in Orange */
    font-weight: 700;
    line-height: 1.1;
}

.loc-value {
    font-size: 12px; /* 13px→12px (-1px) */
    font-weight: 600;
    color: var(--gray-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.loc-input-wrapper {
    flex: 1;
    position: relative;
    min-height: 28px;
}

#menu-pin-input {
    border: none;
    width: 100%;
    font-size: 14px; /* 15px→14px */
    font-weight: 600;
    outline: none;
    padding: 2px 0;
    height: 26px;
    line-height: 1.2;
}

.pin-suggestion {
    position: absolute;
    top: 34px; /* 40px→34px */
    left: -8px;
    right: -40px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    z-index: 100;
    max-width: 300px;
}

.sug-item {
    padding: 10px 12px; /* 12px→10px */
    font-size: 12px; /* 13px→12px */
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.sug-item.valid { 
    color: var(--accent-green); 
    background: #f0fdf4; 
}

.sug-item.invalid { 
    color: #ef4444; 
    background: #fef2f2; 
}

.loc-gps-btn {
    background: var(--gray-light);
    border: none;
    padding: 6px; /* 8px→6px */
    border-radius: 6px;
    color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loc-gps-btn svg {
    width: 16px;
    height: 16px;
}

.loc-chevron {
    flex-shrink: 0;
    color: var(--gray-med);
    margin-left: auto;
}

.loc-chevron svg {
    width: 14px;
    height: 14px;
}

.spinning { 
    animation: rotate 1s linear infinite; 
}

@keyframes rotate { 
    from {transform: rotate(0deg)} 
    to {transform: rotate(360deg)} 
}


	/* =====================================================
   MENU TRUST + CATEGORY LAYOUT - menu.html
   ===================================================== */

/* TRUST BADGE */
.m-trust-right-badge {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 4;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-trust-right-badge svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 2.5;
}

/* CATEGORY CONTAINER */
.m-cat-container {
    padding-right: 0 !important;
}

/* CATEGORY SCROLL */
.m-cat-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

/* CATEGORY RIGHT BADGES */
.m-cat-right-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* CATEGORY TITLE ROW */
.m-cat-title-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.m-cat-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* TRUST BADGE IN CATEGORY BANNER */
.m-cat-banner .m-trust-right-badge {
    position: static !important;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.m-cat-rule-row {
    margin-top: 4px;
    text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
    .m-trust-right-badge {
        right: 15px;
        top: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .m-cat-container {
        padding-right: 100px;
    }
}

/* HOVER */
.m-trust-right-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16,185,129,0.4);
}

/* Notify when product not availale */

.m-btn-notify {
    /*background: #25D366; /* WhatsApp Green */
	 background: #128C7E; /* WhatsApp Green */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.m-btn-notify:hover {
    background: #128C7E;
    transform: scale(1.05);
}