/* Rehla online-order theme — matches rhla.site landing */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --rhla-bg: #131315;
  --rhla-surface: #1c1b1d;
  --rhla-surface-2: #201f21;
  --rhla-surface-3: #2a2a2c;
  --rhla-text: #e5e1e4;
  --rhla-muted: #a98a7e;
  --rhla-accent: #f66018;
  --rhla-accent-soft: #ffb599;
  --rhla-futoor: #f66018;
  --rhla-sehi: #94de2d;
  --rhla-taste: #ff544a;
  --rhla-radius: 16px;
  --rhla-font: "IBM Plex Sans Arabic", "Outfit", sans-serif;
  --rhla-display: "Syne", "IBM Plex Sans Arabic", sans-serif;
}

body.rhla-order-theme {
  background: var(--rhla-bg) !important;
  color: var(--rhla-text) !important;
  font-family: var(--rhla-font) !important;
  direction: rtl;
}

body.rhla-order-theme.accent-futoor { --rhla-accent: var(--rhla-futoor); --rhla-accent-soft: #ffb599; }
body.rhla-order-theme.accent-sehi { --rhla-accent: var(--rhla-sehi); --rhla-accent-soft: #acf847; }
body.rhla-order-theme.accent-taste { --rhla-accent: var(--rhla-taste); --rhla-accent-soft: #ffb4ab; }

/* Hide stock iRestora chrome we don't want */
body.rhla-order-theme .ct-preloader,
body.rhla-order-theme .navbar-brand,
body.rhla-order-theme .main-header .navbar-brand,
body.rhla-order-theme #outletSelectModal,
body.rhla-order-theme .footer-logo,
body.rhla-order-theme .ct-footer .social-links {
  display: none !important;
}

/* Header */
body.rhla-order-theme .main-header,
body.rhla-order-theme .main-header.header-1,
body.rhla-order-theme .main-header.header-light,
body.rhla-order-theme .main-header.header-absolute {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: rgba(19, 19, 21, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0 !important;
  box-shadow: none !important;
}

body.rhla-order-theme .main-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body.rhla-order-theme .rhla-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

body.rhla-order-theme .rhla-nav a {
  color: var(--rhla-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
  transition: opacity .2s, color .2s;
}

body.rhla-order-theme .rhla-nav a:hover,
body.rhla-order-theme .rhla-nav a.active {
  opacity: 1;
  color: var(--rhla-accent-soft) !important;
}

body.rhla-order-theme .rhla-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
body.rhla-order-theme .rhla-dot.futoor { background: var(--rhla-futoor); }
body.rhla-order-theme .rhla-dot.sehi { background: var(--rhla-sehi); }
body.rhla-order-theme .rhla-dot.taste { background: var(--rhla-taste); }

body.rhla-order-theme .rhla-order-cta {
  background: var(--rhla-accent) !important;
  color: #0e0e10 !important;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
}

body.rhla-order-theme .header-controls-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.rhla-order-theme .header-controls-inner li,
body.rhla-order-theme .header-controls-inner span,
body.rhla-order-theme .header-controls-inner a {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .header-controls-inner path {
  fill: var(--rhla-text) !important;
}

body.rhla-order-theme .cart-item-count {
  background: var(--rhla-accent) !important;
  color: #0e0e10 !important;
}

/* No mobile side menu */
body.rhla-order-theme .aside-toggler,
body.rhla-order-theme .main-aside,
body.rhla-order-theme .aside-overlay {
  display: none !important;
}

/* Menu page */
body.rhla-order-theme .menu_page,
body.rhla-order-theme .section,
body.rhla-order-theme .checkout-page,
body.rhla-order-theme .product-single {
  background: transparent !important;
  color: var(--rhla-text) !important;
  padding-top: 1.5rem;
}

body.rhla-order-theme .menu_page .title,
body.rhla-order-theme .section-title-wrap .title,
body.rhla-order-theme h1, body.rhla-order-theme h2,
body.rhla-order-theme h3, body.rhla-order-theme h4,
body.rhla-order-theme h5, body.rhla-order-theme h6 {
  color: var(--rhla-text) !important;
  font-family: var(--rhla-display) !important;
}

/* Centered outlet logo + name */
body.rhla-order-theme .rhla-outlet-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}

body.rhla-order-theme .rhla-outlet-logo {
  width: clamp(72px, 14vw, 120px);
  height: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

body.rhla-order-theme .rhla-outlet-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center !important;
  width: 100%;
}

/* Category chip filters (replaces broken Slick carousel on dark theme) */
body.rhla-order-theme .rhla-category-filters {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 0.25rem 0 1.75rem;
  padding: 0.85rem 0.5rem;
  min-height: 56px;
  visibility: visible !important;
  opacity: 1 !important;
}

body.rhla-order-theme .rhla-cat-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--rhla-surface-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--rhla-text) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
  white-space: nowrap;
}

body.rhla-order-theme .rhla-cat-chip:hover {
  border-color: var(--rhla-accent) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.rhla-order-theme .rhla-cat-chip.active {
  background: var(--rhla-accent) !important;
  border-color: var(--rhla-accent) !important;
  color: #0e0e10 !important;
}

body.rhla-order-theme .rhla-cat-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: inherit !important;
}

body.rhla-order-theme .rhla-cat-chip.active .rhla-cat-chip-count {
  background: rgba(0, 0, 0, 0.18);
}

/* Kill stock white slick track if leftover markup exists */
body.rhla-order-theme .menu-category-slider,
body.rhla-order-theme .menu-category-slider .slick-track,
body.rhla-order-theme .ct-menu-category-item {
  display: none !important;
}

/* Product grid: 2 cols mobile, more on larger screens */
body.rhla-order-theme .menu-container.rhla-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
}

/* Never let Isotope absolute-position children */
body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-menu-item,
body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-cat-divider {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-is-hidden {
  display: none !important;
}

/* Opacity-only fade (enter starts at 0 so cards don't pop in) */
body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-filter-leave {
  opacity: 0 !important;
  pointer-events: none;
}

body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-filter-enter-prep {
  opacity: 0 !important;
}

body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-filter-enter {
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-menu-item,
  body.rhla-order-theme .menu-container.rhla-menu-grid > .rhla-cat-divider {
    transition: none !important;
  }
}

@media (min-width: 768px) {
  body.rhla-order-theme .menu-container.rhla-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  body.rhla-order-theme .menu-container.rhla-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

body.rhla-order-theme .rhla-menu-item {
  min-width: 0;
}

body.rhla-order-theme .menu-container .product {
  background: var(--rhla-surface) !important;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--rhla-radius) !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--rhla-text) !important;
  margin: 0 !important;
}

body.rhla-order-theme .menu-container .product-body {
  background: transparent !important;
  color: var(--rhla-text) !important;
  padding: 0.65rem 0.7rem 0.75rem !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Fixed image aspect ratio */
body.rhla-order-theme .menu-container .product-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--rhla-surface-2);
  position: relative;
}

body.rhla-order-theme .menu-container .product-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

body.rhla-order-theme .menu-container h4 {
  font-size: 0.92rem !important;
  line-height: 1.35 !important;
  margin: 0.15rem 0 !important;
}

body.rhla-order-theme .menu-container h4 a,
body.rhla-order-theme .menu-container .rating,
body.rhla-order-theme .menu-container p {
  color: var(--rhla-text) !important;
  background: transparent !important;
}

body.rhla-order-theme .menu-container .rating-wrap {
  transform: scale(0.9);
  transform-origin: right center;
}

body.rhla-order-theme .menu-container .order-item,
body.rhla-order-theme .btn-custom.primary,
body.rhla-order-theme .btn-custom {
  background: var(--rhla-accent) !important;
  border-color: var(--rhla-accent) !important;
  color: #0e0e10 !important;
  border-radius: 999px !important;
  font-weight: 700;
}

body.rhla-order-theme .menu-container .product-price span,
body.rhla-order-theme .menu-container .rating-num {
  color: var(--rhla-accent-soft) !important;
}

/* Category section dividers (visible mainly on "All") */
body.rhla-order-theme .rhla-cat-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.85rem 0 0.15rem;
  padding: 0 0.15rem;
}

body.rhla-order-theme .rhla-cat-divider:first-child {
  margin-top: 0;
}

body.rhla-order-theme .rhla-cat-divider-title {
  margin: 0 !important;
  font-family: var(--rhla-display) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--rhla-text) !important;
  white-space: nowrap;
}

body.rhla-order-theme .rhla-cat-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
}

body.rhla-order-theme.rhla-filter-cat .rhla-cat-divider {
  display: none !important;
}

/* ========== Cart drawer (full-height, dark, mobile-safe) ========== */
body.rhla-order-theme .cart-sidebar-wrapper {
  position: relative;
  z-index: 2000;
}

body.rhla-order-theme .cart-sidebar {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  height: 100dvh !important;
  width: min(420px, 100vw) !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--rhla-surface) !important;
  color: var(--rhla-text) !important;
  z-index: 2001 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  /* Closed: off-screen to the right (matches cart icon side) */
  left: auto !important;
  right: -110% !important;
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

body.rhla-order-theme.cart-open .cart-sidebar,
body.rhla-order-theme.arabic-lang.cart-open .cart-sidebar {
  right: 0 !important;
  left: auto !important;
}

body.rhla-order-theme .cart-sidebar-overlay {
  z-index: 2000 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(2px);
}

body.rhla-order-theme .cart-sidebar-header {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 56px;
  padding: 1rem 1.15rem !important;
  background: var(--rhla-surface-2) !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.rhla-order-theme .cart-sidebar-header h3,
body.rhla-order-theme .cart-sidebar-header small,
body.rhla-order-theme .cart-sidebar-header .close-btn {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .cart-sidebar-header svg path {
  fill: var(--rhla-text) !important;
}

body.rhla-order-theme .cart-sidebar-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 1rem 1rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem;
  overflow: hidden !important;
  position: relative !important;
}

/* Hide decorative stock images */
body.rhla-order-theme .cart-sidebar-body .img1,
body.rhla-order-theme .cart-sidebar-body .img2 {
  display: none !important;
}

body.rhla-order-theme .cart-sidebar-scroll,
body.rhla-order-theme .cart-sidebar-body .slimScrollDiv {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  padding-right: 0.15rem;
  padding-bottom: 0.5rem;
}

body.rhla-order-theme .total_section_cart {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Item cards — dark surfaces, readable text */
body.rhla-order-theme .sidebar-cart-card {
  background: var(--rhla-surface-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  color: var(--rhla-text) !important;
  box-shadow: none !important;
}

body.rhla-order-theme .sidebar-cart-card .card-header {
  background: transparent !important;
}

body.rhla-order-theme .sidebar-cart-card .card-title,
body.rhla-order-theme .sidebar-cart-card .card-description,
body.rhla-order-theme .sidebar-cart-card .card-prices ul li,
body.rhla-order-theme .sidebar-cart-card .price-section,
body.rhla-order-theme .sidebar-cart-card .price-section div,
body.rhla-order-theme .sidebar-cart-card .subtotal_cal {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .sidebar-cart-card .quantity {
  background: var(--rhla-surface-3) !important;
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .sidebar-cart-card .quantity button,
body.rhla-order-theme .sidebar-cart-card .quantity input {
  background: var(--rhla-surface) !important;
  color: var(--rhla-text) !important;
  border: 0 !important;
}

body.rhla-order-theme .sidebar-cart-card .quantity button:hover {
  background: var(--rhla-accent) !important;
  color: #0e0e10 !important;
}

body.rhla-order-theme .order_summary h4,
body.rhla-order-theme .order_summary_inner p,
body.rhla-order-theme .order_summary .total p,
body.rhla-order-theme .cart-subtotal,
body.rhla-order-theme .cart-tax,
body.rhla-order-theme .cart-delivery-fee,
body.rhla-order-theme .cart-total,
body.rhla-order-theme .checkout_grand_total {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .order_summary .total {
  background: var(--rhla-surface-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px !important;
}

body.rhla-order-theme .checkout_btn,
body.rhla-order-theme .cart-sidebar-body .checkout_btn {
  background: var(--rhla-accent) !important;
  color: #0e0e10 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  width: 100% !important;
  text-align: center;
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
  border: 0 !important;
}

/* Add-to-cart pulse animation */
@keyframes rhla-cart-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rhla-cart-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 84, 74, 0); }
  40% { box-shadow: 0 0 0 3px rgba(255, 84, 74, 0.45); }
}

body.rhla-order-theme .sidebar-cart-card.rhla-cart-pulse {
  animation: rhla-cart-in 0.45s ease-out, rhla-cart-glow 0.9s ease-out;
}

body.rhla-order-theme.accent-futoor .sidebar-cart-card.rhla-cart-pulse {
  animation: rhla-cart-in 0.45s ease-out, rhla-cart-glow-futoor 0.9s ease-out;
}
@keyframes rhla-cart-glow-futoor {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 96, 24, 0); }
  40% { box-shadow: 0 0 0 3px rgba(246, 96, 24, 0.45); }
}
body.rhla-order-theme.accent-sehi .sidebar-cart-card.rhla-cart-pulse {
  animation: rhla-cart-in 0.45s ease-out, rhla-cart-glow-sehi 0.9s ease-out;
}
@keyframes rhla-cart-glow-sehi {
  0%, 100% { box-shadow: 0 0 0 0 rgba(148, 222, 45, 0); }
  40% { box-shadow: 0 0 0 3px rgba(148, 222, 45, 0.45); }
}

@media (max-width: 576px) {
  body.rhla-order-theme .cart-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  body.rhla-order-theme .cart-sidebar-body {
    padding: 0.85rem 0.85rem 1rem !important;
  }
  body.rhla-order-theme .sidebar-cart-card img {
    width: 56px !important;
    height: 66px !important;
  }
  body.rhla-order-theme .rhla-back-landing {
    bottom: 1rem;
    left: 1rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
  }
}

/* Hide leftover iRestora floating cart (header cart remains) */
body.rhla-order-theme .color-picker {
  display: none !important;
}

/* Desktop floating cart chip — right side */
body.rhla-order-theme .rhla-cart-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  transform: none;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem 0.7rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--rhla-accent) !important;
  color: #0e0e10 !important;
  font-family: var(--rhla-font);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body.rhla-order-theme .rhla-cart-fab[hidden] {
  display: none !important;
}

body.rhla-order-theme .rhla-cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

body.rhla-order-theme .rhla-cart-fab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #0e0e10 !important;
  font-size: 0.85rem;
  font-weight: 800;
}

body.rhla-order-theme .rhla-cart-fab-icon {
  display: inline-flex;
  color: #0e0e10;
}

@keyframes rhla-fab-bounce {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

body.rhla-order-theme .rhla-cart-fab.rhla-cart-fab-pulse {
  animation: rhla-fab-bounce 0.55s ease;
}

/* Mobile sticky “أكمل الطلب” bar */
body.rhla-order-theme .rhla-mobile-cart-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(14, 14, 16, 0.75) 28%, rgba(14, 14, 16, 0.95));
  pointer-events: none;
}

body.rhla-order-theme .rhla-mobile-cart-bar[hidden] {
  display: none !important;
}

body.rhla-order-theme .rhla-mobile-cart-bar-inner {
  pointer-events: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 16px;
  background: var(--rhla-accent) !important;
  color: #0e0e10 !important;
  font-family: var(--rhla-font);
  font-weight: 800;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

body.rhla-order-theme .rhla-mobile-cart-bar-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: #0e0e10 !important;
}

body.rhla-order-theme .rhla-mobile-cart-bar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #0e0e10 !important;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.rhla-order-theme .rhla-mobile-cart-bar-cta {
  font-size: 1rem;
  white-space: nowrap;
  color: #0e0e10 !important;
}

@keyframes rhla-bar-pop {
  0% { transform: translateY(12px); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 1; }
}

body.rhla-order-theme .rhla-mobile-cart-bar.rhla-mobile-cart-bar-pulse .rhla-mobile-cart-bar-inner {
  animation: rhla-bar-pop 0.4s ease;
}

body.rhla-order-theme.rhla-has-cart {
  padding-bottom: 0;
}

body.rhla-order-theme .rhla-back-landing {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 50;
  background: var(--rhla-surface-3) !important;
  color: var(--rhla-text) !important;
  border-radius: 999px !important;
  padding: 0.65rem 1.1rem;
  text-decoration: none !important;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  body.rhla-order-theme .rhla-cart-fab {
    display: none !important;
  }
  body.rhla-order-theme .rhla-mobile-cart-bar:not([hidden]) {
    display: block !important;
  }
  body.rhla-order-theme.rhla-has-cart {
    padding-bottom: 5.5rem;
  }
  body.rhla-order-theme.rhla-has-cart .rhla-back-landing {
    bottom: 5.75rem;
  }
}

@media (min-width: 769px) {
  body.rhla-order-theme .rhla-mobile-cart-bar {
    display: none !important;
  }
}

/* Hide floaters while drawer is open */
body.rhla-order-theme.cart-open .rhla-cart-fab,
body.rhla-order-theme.cart-open .rhla-mobile-cart-bar {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Product details page (legacy) contrast */
body.rhla-order-theme .product-single .product-content,
body.rhla-order-theme .product-single .product-thumb {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .product-single .qty,
body.rhla-order-theme .product-single .text-center-total-amount,
body.rhla-order-theme .product-single .form-control {
  background: #fff !important;
  color: #131315 !important;
}

body.rhla-order-theme .product-single label,
body.rhla-order-theme .product-single .customize-variation-wrapper h5,
body.rhla-order-theme .product-single .custom-control-label {
  color: var(--rhla-accent-soft) !important;
  opacity: 1 !important;
}

/* Checkout back link */
body.rhla-order-theme .rhla-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0.55rem 0.9rem 0.55rem 0.65rem;
  border-radius: 999px;
  background: var(--rhla-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--rhla-text) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.92rem;
}

body.rhla-order-theme .rhla-checkout-back:hover {
  border-color: var(--rhla-accent);
  color: var(--rhla-accent-soft) !important;
}

body.rhla-order-theme .rhla-checkout-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

body.rhla-order-theme[dir="rtl"] .rhla-checkout-back-icon svg,
body.rhla-order-theme.arabic-lang .rhla-checkout-back-icon svg {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  body.rhla-order-theme .rhla-checkout-back {
    position: sticky;
    top: 0.65rem;
    z-index: 40;
    margin-bottom: 1.25rem;
    background: var(--rhla-surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
}

/* Checkout */
body.rhla-order-theme .checkout-page .form-control {
  background: var(--rhla-surface) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--rhla-text) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem;
}

body.rhla-order-theme .checkout-page label {
  color: var(--rhla-muted) !important;
}

body.rhla-order-theme .phone-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

body.rhla-order-theme .phone-prefix {
  background: var(--rhla-surface-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  color: var(--rhla-accent-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

body.rhla-order-theme .order-summary {
  background: var(--rhla-surface) !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rhla-radius);
  padding: 1.25rem !important;
}

body.rhla-order-theme .checkout-billing .order-summary,
body.rhla-order-theme .checkout-billing {
  background: transparent !important;
}

body.rhla-order-theme .guest-note {
  background: rgba(255, 181, 153, 0.08);
  border: 1px solid rgba(255, 181, 153, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  color: var(--rhla-accent-soft);
  font-size: 0.92rem;
}

/* Footer */
body.rhla-order-theme .ct-footer {
  background: #0e0e10 !important;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 3rem;
}

body.rhla-order-theme .ct-footer p,
body.rhla-order-theme .ct-footer a,
body.rhla-order-theme .ct-footer h5 {
  color: var(--rhla-muted) !important;
}

body.rhla-order-theme .rhla-footer-brand {
  font-family: var(--rhla-display);
  font-weight: 800;
  color: var(--rhla-text) !important;
  font-size: 1.25rem;
}

body.rhla-order-theme .customPrevBtn svg path,
body.rhla-order-theme .customNextBtn svg path {
  fill: var(--rhla-text) !important;
}

/* Contrast: kill dark navy / near-black text on black bg */
body.rhla-order-theme label,
body.rhla-order-theme .form-group label,
body.rhla-order-theme .product-content label,
body.rhla-order-theme .atc-form label,
body.rhla-order-theme .product_description,
body.rhla-order-theme .calories-info p,
body.rhla-order-theme .customize-variation-wrapper h5,
body.rhla-order-theme .customize-variation-wrapper i,
body.rhla-order-theme .customize-variation-item,
body.rhla-order-theme .customize-variation-item span,
body.rhla-order-theme .custom-control-label,
body.rhla-order-theme .text-center-total-amount,
body.rhla-order-theme .show_total_amount,
body.rhla-order-theme .qty,
body.rhla-order-theme .price-wrapper,
body.rhla-order-theme .product-price,
body.rhla-order-theme .product-content p,
body.rhla-order-theme .product-content .title,
body.rhla-order-theme .rating-num,
body.rhla-order-theme .menu-category-desc p,
body.rhla-order-theme .section-title-wrap,
body.rhla-order-theme .you-might-also-like,
body.rhla-order-theme .related-products h2,
body.rhla-order-theme .related-products h3,
body.rhla-order-theme .related-products h4,
body.rhla-order-theme .related-products p {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .form-control,
body.rhla-order-theme textarea.form-control,
body.rhla-order-theme select.form-control,
body.rhla-order-theme .qty input,
body.rhla-order-theme #special_instructions,
body.rhla-order-theme #variation_select {
  background: var(--rhla-surface) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: var(--rhla-text) !important;
  border-radius: 12px !important;
}

body.rhla-order-theme .qty {
  background: var(--rhla-surface-2) !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .qty .qty-subtract,
body.rhla-order-theme .qty .qty-add,
body.rhla-order-theme .qty i {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .text-muted,
body.rhla-order-theme .text-dark,
body.rhla-order-theme [style*="color:#2D2C2B"],
body.rhla-order-theme [style*="color: #2D2C2B"],
body.rhla-order-theme [style*="color:#1a1a2e"],
body.rhla-order-theme [style*="color:#0f172a"],
body.rhla-order-theme [style*="color:#111827"] {
  color: var(--rhla-muted) !important;
}

/* Quick-add modal */
body.rhla-order-theme .rhla-quick-modal {
  background: var(--rhla-surface) !important;
  color: var(--rhla-text) !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rhla-radius) !important;
}

body.rhla-order-theme .rhla-quick-modal .modal-header,
body.rhla-order-theme .rhla-quick-modal .modal-footer {
  border-color: rgba(255,255,255,0.08) !important;
}

body.rhla-order-theme .rhla-quick-modal .modal-title,
body.rhla-order-theme .rhla-quick-modal label,
body.rhla-order-theme .rhla-qa-price,
body.rhla-order-theme .rhla-qa-mod,
body.rhla-order-theme .rhla-qa-mod span,
body.rhla-order-theme .rhla-qa-close {
  color: var(--rhla-text) !important;
}

body.rhla-order-theme .rhla-qa-mod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.rhla-order-theme .rhla-quick-modal .btn-custom {
  width: 100%;
}

body.rhla-order-theme .rhla-filter-bar {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  body.rhla-order-theme .rhla-navbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  body.rhla-order-theme .rhla-nav {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    order: 3;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0 0.25rem;
  }
  body.rhla-order-theme .rhla-nav a {
    font-size: 0.85rem;
  }
}
