:root {
  --primary: #F5A623;
  --primary-glow: rgba(245, 166, 35, 0.25);
  --dark: #0f0f12;
  --surface: #18181f;
  --surface-card: #202029;
  --surface-light: #2b2b36;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: #F5A623;
  --text: #ffffff;
  --text-muted: #9e9ea8;
  --accent-wa: #25D366;
  --accent-call: #3b82f6;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--dark) !important;
  color: var(--text) !important;
  direction: rtl;
  padding-bottom: 95px;
  overflow-x: hidden;
  touch-action: pan-y !important;
}

/* ================================================= */
/* هندسة ومقاييس الأزرار الموحدة (Terminal Unified Button Standards) */
/* ================================================= */
.btn {
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.btn:active {
  transform: scale(0.96) !important;
}

.btn-sm, .btn-compact {
  min-height: 34px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-sm:active, .btn-compact:active {
  transform: scale(0.96) !important;
}

.btn-icon-sq {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  padding: 0 !important;
  transition: transform 0.15s ease !important;
}

.btn-icon-sq:active {
  transform: scale(0.92) !important;
}

/* Header & Compact Hero */
.app-header {
  background: linear-gradient(180deg, #261c0c 0%, var(--dark) 100%);
  padding: 16px 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.brand-logo-hero {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--primary-glow);
  cursor: pointer;
  margin-bottom: 6px;
  text-decoration: none;
}
.brand-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.hero-title { font-size: 1.22rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.hero-tagline { font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.hero-desc { font-size: 0.74rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 12px; }

.landing-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 440px;
  margin: 12px auto 14px;
}
.info-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}
.info-pill-icon { font-size: 1.15rem; flex-shrink: 0; }
.info-pill-title { font-size: 0.76rem; font-weight: 800; color: #fff; }
.info-pill-sub { font-size: 0.68rem; color: var(--text-muted); }

.social-links-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 8px;
  max-width: 440px;
}
.social-btn {
  flex: 1; padding: 8px; border-radius: 10px; text-decoration: none;
  font-size: 0.78rem; font-weight: 800; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface);
  color: #fff; min-height: 34px; transition: transform 0.15s ease;
}
.social-btn:active { transform: scale(0.96); }
.social-btn.ig { border-color: rgba(225, 48, 108, 0.35); color: #ff758c; }
.social-btn.fb { border-color: rgba(24, 119, 242, 0.35); color: #60a5fa; }
.social-btn.map { border-color: rgba(234, 67, 53, 0.35); color: #f87171; }

/* Category Carousel */
.cat-carousel {
  position: sticky; top: 0; background: #131317;
  padding: 10px 14px; display: flex; gap: 14px;
  overflow-x: auto; scrollbar-width: none; z-index: 50; border-bottom: 1px solid var(--border);
  transform: translateZ(0);
}
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-item-circle {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  flex-shrink: 0; width: 66px;
}
.cat-thumb-box {
  width: 52px; height: 52px; border-radius: 50%; background: var(--surface-card);
  border: 1.5px solid var(--border); overflow: hidden; display: flex; align-items: center;
  justify-content: center; font-size: 1.35rem; color: var(--primary);
}
.cat-item-circle.active .cat-thumb-box {
  border-color: var(--primary); background: rgba(245, 166, 35, 0.12);
}
.cat-name { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; text-align: center; }
.cat-item-circle.active .cat-name { color: var(--primary); font-weight: 800; }

/* Product Cards */
.catalog-container { padding: 12px 14px; max-width: 900px; margin: 0 auto; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.product-card {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; position: relative; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.product-card:active { transform: scale(0.97); border-color: var(--border-active); }
.product-icon-box {
  width: 100%; height: 125px; background: #191922; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary); position: relative; overflow: hidden;
}
.product-details { padding: 8px 10px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; gap: 4px; }
.product-title {
  font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc {
  font-size: 0.7rem; color: var(--text-muted); line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-bottom-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 0.95rem; font-weight: 800; color: var(--primary); }
.btn-add-circle {
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface-light);
  border: 1px solid rgba(255,255,255,0.1); color: var(--primary); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-add-circle:active { transform: scale(0.85); background: var(--primary); color: #000; }

/* Floating Cart Pill */
.cart-floating-pill {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #18181f; border: 1.5px solid var(--primary);
  border-radius: 50px; padding: 8px 14px 8px 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-width: 220px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 90; cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.cart-floating-pill.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cart-pill-lead { display: flex; align-items: center; gap: 10px; }
.cart-pill-icon-wrap {
  position: relative; width: 36px; height: 36px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cart-pill-badge {
  position: absolute; top: -4px; right: -5px; background: #ffffff; color: #000000; font-size: 0.72rem;
  font-weight: 900; padding: 1px 6px; border-radius: 12px; border: 2px solid #141418;
}
.cart-pill-text { font-size: 0.88rem; font-weight: 800; color: #f5f5f7; }
.cart-pill-end { display: flex; align-items: center; gap: 8px; }
.cart-pill-price { font-size: 1.05rem; font-weight: 900; color: var(--primary); }
.cart-pill-arrow { color: rgba(255, 255, 255, 0.4); font-size: 1.1rem; }

/* Contact FAB */
.contact-fab-container {
  position: fixed; bottom: 24px; left: 16px; z-index: 85;
}
.contact-fab-main {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); display: flex;
  align-items: center; justify-content: center; outline: none;
  background: #25D366; color: #fff; font-size: 1.35rem;
  transition: transform 0.15s ease;
}
.contact-fab-main:active { transform: scale(0.92); }
.contact-fab-menu {
  position: absolute; bottom: 58px; left: 0; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; opacity: 0; transform: translateY(10px);
  transition: all 0.2s ease; min-width: 155px;
}
.contact-fab-container.menu-open .contact-fab-menu { pointer-events: auto; opacity: 1; transform: translateY(0); }
.fab-action-btn {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px;
  background: #1c1c24; border: 1px solid var(--border); color: #fff; text-decoration: none;
  font-size: 0.78rem; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); min-height: 34px;
}
.fab-action-btn:active { transform: scale(0.96); }
.fab-action-btn.wa-item { border-color: rgba(37, 211, 102, 0.35); color: #4ade80; }
.fab-action-btn.call-item { border-color: rgba(59, 130, 246, 0.35); color: #60a5fa; }

/* Swiper Hero */
.slider-bg-pattern {
  padding: 8px 0 6px;
  overflow: hidden;
  width: 100%;
  background: transparent !important;
}
.hero-swiper { width: 100%; padding: 4px 0; }
.banner-wrapper {
  position: relative; width: 100%; height: 145px; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; text-decoration: none; border: 1.5px solid rgba(245, 166, 35, 0.35);
  background-color: #0f0f14;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.banner-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.banner-gradient-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.1) 0%, rgba(15, 15, 18, 0.85) 75%, rgba(15, 15, 18, 0.98) 100%);
  z-index: 1;
}
.banner-content-box {
  position: relative; z-index: 2;
}
.banner-overlay-title { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.banner-overlay-sub { font-size: 0.78rem; color: #cbd5e1; }

.search-input-box {
  width: 100%; background: var(--surface); border: 1px solid var(--border); padding: 8px 14px;
  border-radius: 10px; color: #fff; font-size: 16px; outline: none; min-height: 38px;
}
.search-input-box:focus { border-color: var(--primary); }

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); z-index: 1000005 !important;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease; touch-action: pan-y;
}
.lightbox-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; z-index: 10; }
.lightbox-close-btn {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15); color: #ffffff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s ease;
}
.lightbox-close-btn:active { transform: scale(0.9); background: var(--primary); color: #000; }
.lightbox-counter {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; color: #ffffff; font-feature-settings: "tnum";
}
.lightbox-swiper-wrap { flex-grow: 1; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.lightbox-swiper { width: 100%; height: 100%; }
.lightbox-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.lightbox-img { max-width: 95vw; max-height: 72vh; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8); }
.lightbox-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(24, 24, 34, 0.75); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; z-index: 15; transition: all 0.2s ease;
}
.lightbox-nav-btn:hover { background: var(--primary); color: #000; border-color: var(--primary); }
.lightbox-nav-btn.prev { right: 20px; }
.lightbox-nav-btn.next { left: 20px; }
@media (max-width: 768px) { .lightbox-nav-btn { display: none !important; } }
.lightbox-footer { padding: 14px 20px 24px; text-align: center; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%); z-index: 10; }
.lightbox-title { font-size: 1.05rem; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.lightbox-desc { font-size: 0.78rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* معمارية الاستجابة المزدوجة للشاشات الكبيرة (Desktop Adaptations) */
@media (min-width: 992px) {
  .slider-bg-pattern { max-width: 1050px !important; margin: 0 auto !important; }
  .app-header, .slider-bg-pattern, .catalog-container, .cat-carousel {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }
  .cat-carousel {
    justify-content: center !important;
    border-radius: 16px !important;
    margin-top: 10px !important;
  }
  .banner-wrapper {
    height: 180px !important;
  }
  .cart-floating-pill {
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    transform: translateY(100px) !important;
  }
  .cart-floating-pill.is-visible {
    transform: translateY(0) !important;
  }
}

/* محاكي وضع الكمبيوتر الإجباري (Force Desktop Mode) */
html.force-desktop-mode, body.force-desktop-mode {
  min-width: 1280px !important;
  width: 1280px !important;
  overflow-x: auto !important;
}

body.force-desktop-mode .app-header,
body.force-desktop-mode .slider-bg-pattern,
body.force-desktop-mode .catalog-container,
body.force-desktop-mode .cat-carousel {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.force-desktop-mode .catalog-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

body.force-desktop-mode .cat-carousel {
  justify-content: center !important;
  border-radius: 16px !important;
  margin-top: 10px !important;
}

body.force-desktop-mode .banner-wrapper {
  height: 180px !important;
}

body.force-desktop-mode .cart-floating-pill {
  bottom: 30px !important;
  right: 30px !important;
  left: auto !important;
  transform: translateY(100px) !important;
}
body.force-desktop-mode .cart-floating-pill.is-visible {
  transform: translateY(0) !important;
}

.dev-screen-toggle-btn {
  position: fixed;
  bottom: 142px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #f59e0b;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 999998;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
}
.dev-screen-toggle-btn:active {
  transform: scale(0.9);
}

/* نمط السلايدر المسرع عتادياً وبدون تعارض حركي */
.slider-bg-pattern {
  padding: 8px 0 6px;
  overflow: hidden;
  width: 100%;
  background: transparent !important;
  opacity: 1 !important;
}

.hero-swiper {
  background: transparent !important;
}

.hero-swiper .swiper-slide {
  opacity: 0.65;
  background: transparent !important;
  transform: translateZ(0);
  transition: opacity 0.25s ease;
}

.hero-swiper .swiper-slide-active {
  opacity: 1 !important;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  height: 155px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  text-decoration: none;
  border: 1px solid rgba(245, 166, 35, 0.25);
  background-color: #181820;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.banner-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.05) 0%, rgba(15, 15, 18, 0.45) 45%, rgba(15, 15, 18, 0.92) 80%, rgba(15, 15, 18, 0.98) 100%);
  z-index: 1;
}

.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s ease;
}

.banner-overlay-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.banner-overlay-sub {
  font-size: 0.78rem;
  color: #e2e8f0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* محرك التلاشي الصاعد عند فتح الصفحة (First Load Fade) */
@keyframes catalogEnterFade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.catalog-grid.is-ready {
  animation: catalogEnterFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

#catalogLoadingIndicator {
  transition: opacity 0.25s ease !important;
}


/* ================================================= */
/* محرك التلاشي الصريح (Explicit Fade Engine) */
/* ================================================= */
@keyframes catFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.catalog-grid.cat-anim-in {
  animation: catFadeIn 0.28s ease-out forwards !important;
}

.catalog-grid.cat-anim-out {
  animation: catFadeOut 0.18s ease-in forwards !important;
  pointer-events: none;
}


/* ================================================= */
/* تهيئة تلاشي التحميل الأولي للشبكة */
/* ================================================= */
.catalog-grid:not(.cat-anim-in):not(.cat-anim-out) {
  opacity: 0;
}

#catalogLoadingWrap {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  color: var(--text-muted);
  gap: 12px;
  transition: opacity 0.25s ease;
}

.catalog-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(245, 166, 35, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: catSpin 0.7s linear infinite;
}

@keyframes catSpin {
  to { transform: rotate(360deg); }
}


/* ================================================= */
/* تأثير التلاشي لشريط الفئات عند التحميل */
/* ================================================= */
.cat-carousel:not(.cat-anim-in) {
  opacity: 0;
}

.cat-carousel.cat-anim-in {
  animation: catFadeIn 0.32s ease-out forwards !important;
}


/* ================================================= */
/* تأثير التلاشي الصاعد لسلايدر البانرات عند التحميل */
/* ================================================= */




/* ================================================= */
/* مودال تخصيص الوجبات الداكن الحديث (Dark Bottom Sheet) */
/* ================================================= */
.dark-native-sheet .modal-bottom-sheet {
  max-width: 500px !important;
  margin: auto !important;
}

@media (max-width: 576px) {
  .dark-native-sheet .modal-dialog {
    margin: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .dark-native-sheet.show .modal-dialog {
    transform: translateY(0) !important;
  }
}

.custom-dark-modal-content {
  background: #181820 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px 24px 18px 18px !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
  overflow: hidden !important;
  color: #fff !important;
}

@media (max-width: 576px) {
  .custom-dark-modal-content {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    max-height: 85vh !important;
  }
}

.sheet-drag-handle-wrap {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 2px;
}
.sheet-drag-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.custom-modal-header {
  padding: 12px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.custom-modal-desc {
  font-size: 0.76rem;
  color: #9e9ea8;
  line-height: 1.35;
}
.btn-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-sheet-close:active {
  transform: scale(0.9);
  background: var(--primary);
  color: #000;
}

.custom-modal-body {
  padding: 16px 18px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* خيارات المجموعات */
.opt-group-box {
  background: #1f1f2a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
}
.opt-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.opt-group-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
}
.opt-group-badge {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.07);
  color: #a1a1aa;
  padding: 2px 8px;
  border-radius: 6px;
}

.opt-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #272736;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.opt-pill-item:active {
  transform: scale(0.98);
}
.opt-pill-item.is-selected {
  background: rgba(245, 166, 35, 0.12);
  border-color: var(--primary);
}
.opt-pill-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e4e4e7;
}
.opt-pill-item.is-selected .opt-pill-name {
  color: var(--primary);
}
.opt-pill-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: #9e9ea8;
}
.opt-pill-item.is-selected .opt-pill-price {
  color: #fff;
}

/* الحقول المخصصة */
.custom-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #d4d4d8;
  margin-bottom: 6px;
  display: block;
}
.custom-dark-input {
  width: 100%;
  background: #1f1f2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 16px;
  outline: none;
  min-height: 42px;
  transition: border-color 0.15s ease;
}
.custom-dark-input:focus {
  border-color: var(--primary);
}

/* شريط الكمية */
.custom-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f1f2a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
}
.custom-qty-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}
.custom-qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-qty-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2a2a3a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.btn-qty-action:active {
  transform: scale(0.9);
  background: var(--primary);
  color: #000;
}
.custom-qty-number {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  min-width: 22px;
  text-align: center;
}

/* الفوتر */
.custom-modal-footer {
  padding: 12px 18px 16px;
  background: #14141a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.custom-total-label {
  font-size: 0.68rem;
  color: #9e9ea8;
}
.custom-total-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}
.btn-custom-add-cart {
  flex-grow: 1;
  min-height: 42px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: #0f0f12;
  font-weight: 900;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-custom-add-cart:active {
  transform: scale(0.97);
  filter: brightness(0.92);
}

/* تثبيت عرض الشريحة الابتدائية ليتطابق مع Swiper قبل تشغيل JS */
.hero-swiper .swiper-wrapper {
  display: flex !important;
  align-items: center !important;
}





/* توحيد أزرار الـ Primary على اللون الذهبي المعتمد للنظام */
.btn-primary {
    background-color: var(--primary) !important;
    color: #0b0f19 !important;
    border: none !important;
    font-weight: 800 !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #e5981a !important;
    color: #0b0f19 !important;
}
.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary) !important;
    color: #0b0f19 !important;
}

/* التوست الموحد الداكن الأنيق المعتمد */
.native-unified-toast {
    border: 1.5px solid rgba(245, 166, 35, 0.4) !important;
    border-radius: 14px !important;
    background: #151c2c !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7) !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    max-width: 92vw !important;
    margin-top: 8px !important;
}
.native-unified-toast .swal2-title {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.native-unified-toast .swal2-close {
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

/* تصحيح أبعاد حاوية السلة لمنع الانضغاط الرأسي */
.cart-modal-dialog {
    max-width: 500px !important;
    width: 95% !important;
    margin: 1.25rem auto !important;
}

.custom-dark-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.custom-dark-modal-content * {
    box-sizing: border-box !important;
}

/* حقول إدخال واضحة وعالية التباين لنوافذ الشكاوى وتوليد الرموز */
.fb-input-box {
    background-color: #1e293b !important;
    border: 1.5px solid #475569 !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}
.fb-input-box:focus {
    background-color: #0f172a !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
    outline: none !important;
}
.fb-input-box::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* تأثير نبض هادئ ومميز للأصناف الإضافية الجديدة حتى اعتمادها */
@keyframes gentleAdditionGlow {
    0%, 100% {
        background-color: rgba(6, 182, 212, 0.12);
        box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.35);
    }
    50% {
        background-color: rgba(6, 182, 212, 0.28);
        box-shadow: inset 0 0 0 1.5px rgba(6, 182, 212, 0.8), 0 0 10px rgba(6, 182, 212, 0.3);
    }
}
.addition-blinking-row {
    animation: gentleAdditionGlow 1.6s ease-in-out infinite;
    cursor: pointer;
}
