/* ==========================================================================
   تنسيقات متجر هايبر عام - الهوية والتصميم المعتمد
   Theme: Cairo / #0F6B3A / #0B3D23 / #E4F1E7 / #C8E86B / #C2410C / #FAFAF6
   ========================================================================== */

:root {
  /* ألوان الهوية المعتمدة في التصميم */
  --primary: #0F6B3A;
  --primary-dark: #0B3D23;
  --primary-hover: #0D5B31;
  --primary-soft: #E4F1E7;
  --primary-border: #C2DCCE;
  --accent: #F59E0B;
  --sale: #C2410C;
  --background: #FAFAF6;
  --surface: #FFFFFF;
  --surface-muted: #F2F4EE;
  --text: #1B2A1F;
  --text-muted: #5A6B5E;
  --border: #E6EAE0;

  --primary-rgb: 15, 107, 58;
  --primary-dark-rgb: 11, 61, 35;

  /* توافق المتغيرات القديمة مع لوحة الألوان الجديدة */
  --primary-color: #0F6B3A;
  --primary-light: #E4F1E7;
  --accent-color: #F59E0B;
  --accent-orange: #C2410C;
  --gold-color: #f59e0b;
  --bg-color: #FAFAF6;
  --card-bg: #FFFFFF;
  --text-main: #1B2A1F;
  --border-color: #E6EAE0;
  --shadow-sm: 0 1px 2px rgba(15, 76, 46, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 76, 46, 0.10);
  --shadow-lg: 0 10px 25px rgba(15, 76, 46, 0.14);

  /* الأبعاد والزوايا المعتمدة في التصميم */
  --max-width: 1360px;
  --radius-chip: 999px;
  --radius-button: 12px;
  --radius-card: 20px;
  --radius-tile: 18px;
  --radius-hero: 28px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* أحجام الخطوط */
  --font-hero: 52px;
  --font-h2: 28px;
  --font-price: 22px;
  --font-body: 16px;
  --font-small: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--background);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 56px;
}

/* ========================================================================== */
/* 1. شريط الإعلانات العلوي (announcement-bar)                                */
/* ========================================================================== */
.announcement-bar {
  background: var(--primary-dark);
  color: var(--primary-soft);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(228, 241, 231, 0.12);
}

.announcement-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.announcement-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.announcement-badge {
  background: rgba(200, 232, 107, 0.18);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-chip);
}

/* ========================================================================== */
/* 2. الهيدر الرئيسي (header)                                                */
/* ========================================================================== */
.storefront-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
}

.header-controls-group,
.header-right-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-leaf-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.header-logo-img {
  max-height: 46px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  display: none;
  transition: transform 0.2s ease;
}

.header-logo:hover .header-logo-img {
  transform: scale(1.02);
}

.logo-text-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  white-space: nowrap;
}

.logo-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  display: block;
}

/* محدد موقع التوصيل */
.delivery-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-muted);
  padding: 6px 12px;
  border-radius: var(--radius-button);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  min-width: 0;
  max-width: 250px;
  flex-shrink: 1;
}

.delivery-picker:hover {
  background: #e2e8df;
  border-color: #cbd5cb;
}

.picker-icon {
  color: var(--primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.picker-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.picker-text .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.1;
  white-space: nowrap;
}

.picker-text strong {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 150px;
}

.delivery-picker .arrow {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* محول خدمة التوصيل / الاستلام */
.service-switcher {
  display: flex;
  background: var(--surface-muted);
  padding: 3px;
  border-radius: var(--radius-button);
  gap: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.switch-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.switch-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* حقل البحث السريع */
.header-search {
  flex: 1;
  max-width: 400px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 46px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: 0 42px 0 16px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrap input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 107, 58, 0.12);
}

/* أزرار الإجراءات في الهيدر */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.btn-action-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-button);
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-action-soft:hover {
  background: #d4ebd8;
  transform: translateY(-1px);
}

.btn-action-primary {
  background: var(--primary);
  color: #FFFFFF;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-button);
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(15, 107, 58, 0.25);
  white-space: nowrap;
}

.btn-action-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cart-count-badge {
  background: var(--sale);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-chip);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-total-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ========================================================================== */
/* 3. شريط التنقل والأقسام (nav)                                              */
/* ========================================================================== */
.storefront-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-link-all {
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: 0.2s;
  font-family: inherit;
}

.nav-link-all:hover {
  background: var(--border);
}

.nav-link-offers {
  background: #FFF1EB;
  color: var(--sale);
  border: 1px solid #FFD6C4;
  border-radius: var(--radius-button);
  padding: 8px 16px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: 0.2s;
  font-family: inherit;
}

.nav-link-offers.active,
.nav-link-offers:hover {
  background: var(--sale);
  color: #FFFFFF;
  border-color: var(--sale);
}

.nav-offers-tag {
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-chip);
}

.nav-link-offers.active .nav-offers-tag {
  background: #FFFFFF;
  color: var(--sale);
}

.nav-categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-pill {
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: var(--radius-chip);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cat-pill:hover {
  background: var(--border);
}

.cat-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 107, 58, 0.2);
}

/* ========================================================================== */
/* خلفية الموقع المتحركة بمنتجات بيضاء خافتة وشفافة (Animated Floating Grocery Products) */
/* ========================================================================== */
.site-animated-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95) 0%, rgba(243, 246, 249, 0.85) 100%);
}

.floating-grocery-icon {
  position: absolute;
  color: #ffffff;
  /* أبيض خافت وشفاف أنيق يعطي طابع علامة مائية عائمة راقية */
  opacity: 0.65;
  filter: drop-shadow(0 4px 12px rgba(13, 104, 50, 0.09)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.05));
  will-change: transform;
  animation: floatDrift linear infinite;
  user-select: none;
}

@keyframes floatDrift {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  30% {
    transform: translateY(-22px) rotate(6deg) scale(1.05);
  }
  60% {
    transform: translateY(-42px) rotate(-6deg) scale(0.98);
  }
  80% {
    transform: translateY(-20px) rotate(3deg) scale(1.02);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

/* توزيع الأيقونات بمسافات وأحجام وسرعات مختلفة */
.float-1  { top: 7%;  left: 6%;   font-size: 3rem;   animation-duration: 18s; animation-delay: 0s; }
.float-2  { top: 18%; right: 7%;  font-size: 2.3rem; animation-duration: 22s; animation-delay: -3s; }
.float-3  { top: 35%; left: 9%;   font-size: 2.7rem; animation-duration: 16s; animation-delay: -7s; }
.float-4  { top: 48%; right: 6%;  font-size: 3.3rem; animation-duration: 25s; animation-delay: -2s; }
.float-5  { top: 65%; left: 5%;   font-size: 2.5rem; animation-duration: 20s; animation-delay: -5s; }
.float-6  { top: 80%; right: 8%;  font-size: 2.9rem; animation-duration: 19s; animation-delay: -9s; }
.float-7  { top: 12%; left: 45%;  font-size: 2.1rem; animation-duration: 24s; animation-delay: -11s; }
.float-8  { top: 42%; left: 50%;  font-size: 2.6rem; animation-duration: 21s; animation-delay: -4s; }
.float-9  { top: 74%; left: 42%;  font-size: 2.3rem; animation-duration: 17s; animation-delay: -8s; }
.float-10 { top: 26%; left: 18%;  font-size: 2.4rem; animation-duration: 23s; animation-delay: -1s; }
.float-11 { top: 58%; right: 19%; font-size: 2.8rem; animation-duration: 26s; animation-delay: -12s; }
.float-12 { top: 86%; left: 14%;  font-size: 2.5rem; animation-duration: 18s; animation-delay: -6s; }
.float-13 { top: 4%;  right: 22%; font-size: 2.2rem; animation-duration: 20s; animation-delay: -10s; }
.float-14 { top: 32%; right: 32%; font-size: 2.1rem; animation-duration: 27s; animation-delay: -14s; }
.float-15 { top: 90%; right: 38%; font-size: 2.7rem; animation-duration: 22s; animation-delay: -13s; }
.float-16 { top: 56%; left: 30%;  font-size: 2.3rem; animation-duration: 19s; animation-delay: -15s; }

/* ========================================================================== */
/* 4. البانر الرئيسي (hero) مع الأشكال الهندسية                               */
/* ========================================================================== */
.storefront-hero {
  margin-top: 24px;
}

.hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-hero);
  position: relative;
  overflow: hidden;
  padding: 44px 48px;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb, 15, 107, 58), 0.25);
}

/* ========================================================================== */
/* الأحجار المتحركة ثلاثية الأبعاد لمنتجات الهايبر (Floating Product Stones)     */
/* ========================================================================== */
.hero-stones-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  display: none; /* ملغية افتراضياً بناء على طلب المستخدم */
}

.hero-floating-stone {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 18px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
  user-select: none;
}

.hero-floating-stone:hover {
  transform: scale(1.08) translateY(-6px) !important;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.8);
}

/* الحجر الأول: بارز في أعلى اليمين بحواف صخرية غير متناظرة */
.hero-stone-1 {
  top: 18px;
  right: 28px;
  border-radius: 28px 12px 26px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  animation: floatStone1 6.5s ease-in-out infinite alternate;
}

/* الحجر الثاني: في أسفل يمين/وسط الخانة بحواف متباينة */
.hero-stone-2 {
  bottom: 22px;
  right: 250px;
  border-radius: 14px 28px 12px 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  animation: floatStone2 8s ease-in-out infinite alternate;
}

/* الحجر الثالث: في أعلى الوسط/اليسار */
.hero-stone-3 {
  top: 22px;
  left: 42%;
  border-radius: 24px 24px 24px 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  animation: floatStone3 7s ease-in-out infinite alternate;
}

.stone-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}

.stone-text-wrap {
  display: flex;
  flex-direction: column;
}

.stone-title {
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stone-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent, #f59e0b);
  opacity: 0.95;
  margin-top: 2px;
}

/* الحركات الفيزيائية العضوية للأحجار الثلاثة */
@keyframes floatStone1 {
  0% {
    transform: translateY(0px) rotate(-3deg) scale(1);
  }
  50% {
    transform: translateY(-14px) rotate(2deg) scale(1.03);
  }
  100% {
    transform: translateY(-6px) rotate(-5deg) scale(0.98);
  }
}

@keyframes floatStone2 {
  0% {
    transform: translateY(0px) rotate(4deg) scale(1);
  }
  50% {
    transform: translateY(-16px) rotate(-2deg) scale(1.04);
  }
  100% {
    transform: translateY(-4px) rotate(6deg) scale(0.99);
  }
}

@keyframes floatStone3 {
  0% {
    transform: translateY(0px) rotate(-2deg) scale(1);
  }
  50% {
    transform: translateY(-12px) rotate(4deg) scale(1.02);
  }
  100% {
    transform: translateY(-18px) rotate(-1deg) scale(1.01);
  }
}

/* التوافق القديم للأشكال الخافتة */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.shape-circle {
  display: none;
}

.hero-inner-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  transition: all 0.3s ease;
}

/* شاشة الشرائح على الشمال (الافتراضي في العربية) */
.hero-inner-content.slider-pos-left {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  direction: rtl;
}

/* شاشة الشرائح على اليمين */
.hero-inner-content.slider-pos-right {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  direction: rtl;
}
.hero-inner-content.slider-pos-right .hero-slider-col {
  order: 1;
}
.hero-inner-content.slider-pos-right .hero-copy-col {
  order: 2;
}

/* شاشة الشرائح في المنتصف وممركزة داخل المستطيل الأخضر الكبير */
.hero-inner-content.slider-pos-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.hero-inner-content.slider-pos-center .hero-copy-col {
  width: 100%;
  max-width: 760px;
  align-items: center;
  text-align: center;
}
.hero-inner-content.slider-pos-center .hero-copy-col .hero-subtitle {
  margin: 0 auto;
}
.hero-inner-content.slider-pos-center .hero-buttons {
  justify-content: center;
}
.hero-inner-content.slider-pos-center .hero-badge {
  align-self: center !important;
  margin: 0 auto;
}
.hero-inner-content.slider-pos-center .hero-slider-col {
  width: 100%;
  max-width: 740px;
}

/* شاشة الشرائح بكامل العرض */
.hero-inner-content.slider-pos-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.hero-inner-content.slider-pos-full .hero-copy-col {
  width: 100%;
  max-width: 820px;
  align-items: center;
  text-align: center;
}
.hero-inner-content.slider-pos-full .hero-buttons {
  justify-content: center;
}
.hero-inner-content.slider-pos-full .hero-slider-col {
  width: 100%;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  align-self: flex-start;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-chip);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.hero-badge.pos-center {
  align-self: center !important;
  width: fit-content !important;
  justify-content: center !important;
  text-align: center !important;
}

.hero-badge.pos-left {
  align-self: flex-end !important;
  width: fit-content !important;
  justify-content: flex-end !important;
  text-align: left !important;
}

.hero-badge.pos-full {
  align-self: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 10px 18px !important;
  font-size: 15px !important;
  border-radius: 12px !important;
}

.hero-badge.pos-right {
  align-self: flex-start !important;
  width: fit-content !important;
  justify-content: flex-start !important;
  text-align: right !important;
}

.hero-title {
  font-size: var(--font-hero);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin: 0;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--primary-soft);
  line-height: 1.6;
  max-width: 580px;
  margin: 0;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-hero-accent {
  background: var(--accent);
  color: var(--primary-dark);
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--radius-button);
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(200, 232, 107, 0.4);
  font-family: inherit;
}

.btn-hero-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 232, 107, 0.55);
}

.btn-hero-outline {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid var(--primary-border, rgba(255, 255, 255, 0.4));
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

/* عمود وعرض الشرائح المتحرك ذو الزوايا الدائرية */
.hero-slider-col {
  width: 100%;
}

.hero-section {
  display: none;
}

/* 3. قسم البانر ومفتاح العروض */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 35px 0 25px;
}

.hero-animated-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-grocery-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.14);
  will-change: transform;
  animation: heroFloatDrift linear infinite;
  user-select: none;
}

@keyframes heroFloatDrift {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.12;
  }
  50% {
    transform: translateY(-24px) rotate(12deg) scale(1.08);
    opacity: 0.22;
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.12;
  }
}

.hg-1  { top: 10%; right: 4%;   font-size: 3.2rem; animation-duration: 14s; animation-delay: 0s; }
.hg-2  { top: 62%; right: 12%;  font-size: 2.5rem; animation-duration: 18s; animation-delay: -4s; }
.hg-3  { top: 20%; right: 28%;  font-size: 2.3rem; animation-duration: 16s; animation-delay: -8s; }
.hg-4  { top: 76%; right: 34%;  font-size: 2.9rem; animation-duration: 20s; animation-delay: -2s; }
.hg-5  { top: 8%;  left: 32%;   font-size: 2.6rem; animation-duration: 15s; animation-delay: -5s; }
.hg-6  { top: 56%; left: 36%;   font-size: 3.1rem; animation-duration: 21s; animation-delay: -10s; }
.hg-7  { top: 24%; left: 14%;   font-size: 2.7rem; animation-duration: 17s; animation-delay: -3s; }
.hg-8  { top: 70%; left: 8%;    font-size: 2.9rem; animation-duration: 19s; animation-delay: -7s; }
.hg-9  { top: 38%; left: 4%;    font-size: 2.1rem; animation-duration: 22s; animation-delay: -12s; }
.hg-10 { top: 80%; left: 22%;   font-size: 2.4rem; animation-duration: 16s; animation-delay: -9s; }

.hero-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* عمود وعرض الشرائح المتحرك ذو الزوايا الدائرية */
.hero-slider-col {
  width: 100%;
}

.hero-slider-box {
  position: relative;
  width: 100%;
  height: 255px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary-border, rgba(255, 255, 255, 0.22));
  background: linear-gradient(135deg, var(--primary-dark, #064e26) 0%, var(--primary, #0F6B3A) 100%);
  user-select: none;
}

.hero-slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.97);
  cursor: pointer;
  z-index: 1;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-slider-box:hover .slide-item.active .slide-bg-img {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 22px;
  color: #fff;
}

.slide-badge {
  align-self: flex-start;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.slide-caption h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  color: #ffffff;
}

.slide-caption p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--primary-soft, #f8fafc);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* أزرار التنقل يمين ويسار */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  font-size: 0.9rem;
}

.slider-nav-btn:hover {
  background: var(--primary, #0F6B3A);
  border-color: var(--accent, #F59E0B);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev-btn {
  right: 12px;
}

.slider-nav-btn.next-btn {
  left: 12px;
}

/* مؤشرات النقاط */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--accent, #F59E0B);
  box-shadow: 0 0 8px var(--accent, #F59E0B);
}

/* حالة التحميل السريعة للبانر */
.slide-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark, #064e26), var(--primary, #0F6B3A));
}

.slide-skeleton-content {
  color: var(--primary-soft, #f8fafc);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-slider-box {
    height: 200px;
  }
  .slide-caption h3 {
    font-size: 1.1rem;
  }

  /* تنسيق الفوتر للتابلت */
  .main-footer {
    padding: 26px 16px 16px;
    margin-top: 30px;
  }
  .footer-content {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  .footer-brand-title h4 {
    font-size: 1rem;
  }
  .footer-desc {
    font-size: 0.8rem;
  }
  .footer-col h4 {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }
  .footer-contact-pill {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .footer-address-pill, .footer-hours-pill {
    font-size: 0.78rem;
  }
  .footer-bottom {
    padding-top: 14px;
    font-size: 0.78rem;
  }
}

.hero-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-text p {
  color: var(--primary-soft, #f8fafc);
  font-size: 1rem;
}

/* مفتاح تشغيل العروض المطلوب بدقة */
.offers-toggle-wrapper {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.offers-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.offers-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #64748b;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ea580c;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.offers-label .title {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.offers-label small {
  color: #fef08a;
  font-size: 0.8rem;
}

/* شريط البحث */
.search-box {
  position: relative;
  max-width: 650px;
  width: 100%;
}

.search-box i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-box input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-md);
  color: var(--text-main);
}

/* 4. شريط الأقسام السريع وزر جميع الفئات */
.categories-bar-section {
  background: var(--card-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.categories-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* زر جميع الفئات البارز */
.btn-all-categories {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transition: all 0.25s ease;
}

.btn-all-categories:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb, 15, 107, 58), 0.28);
}

.btn-all-categories .arrow-cat {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-right: 2px;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  border: 1px solid var(--border-color);
  background: #f8fafc;
  padding: 8px 18px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* نافذة عرض جميع الفئات والرسوم المصورة */
.all-categories-modal-card {
  max-width: 920px !important;
  width: 95%;
}

.seoudi-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px;
}

.seoudi-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  text-decoration: none;
}

.seoudi-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(var(--primary-rgb, 15, 107, 58), 0.2);
}

.seoudi-cat-card.active-cat {
  border: 2px solid var(--primary);
  background: var(--primary-soft);
}

.seoudi-cat-img-wrap {
  width: 100%;
  height: 125px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.seoudi-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.seoudi-cat-card:hover .seoudi-cat-img {
  transform: scale(1.08);
}

.seoudi-cat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 2;
}

.seoudi-cat-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.seoudi-cat-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seoudi-cat-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.seoudi-cat-arrow {
  color: var(--primary);
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.seoudi-cat-card:hover .seoudi-cat-arrow {
  transform: translateX(-4px);
}

.seoudi-cat-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.seoudi-cat-count {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
}

.seoudi-cat-count.available {
  color: #166534;
  background: #dcfce7;
  border: 1.5px solid #bbf7d0;
}

.seoudi-cat-count.out-of-stock {
  color: #991b1b;
  background: #fee2e2;
  border: 1.5px solid #fecaca;
}

/* شريط فرع النافذة وتأكيد توفر المنتجات */
.all-cat-branch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.branch-status-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}
.branch-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* تبويبات التنقل داخل نافذة جميع الفئات */
.all-cat-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 8px;
}
.btn-all-cat-tab {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-all-cat-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-all-cat-tab.active {
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: #ffffff;
}

/* شريط تصفية وبحث المنتجات المتاحة داخل النافذة */
.modal-prod-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.modal-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.modal-search-wrap i {
  position: absolute;
  right: 14px;
  color: #94a3b8;
}
.modal-search-wrap input {
  width: 100%;
  padding: 9px 38px 9px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease;
}
.modal-search-wrap input:focus {
  border-color: var(--primary);
}
.modal-category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.modal-cat-chip {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.modal-cat-chip:hover, .modal-cat-chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* شبكة المنتجات داخل النافذة */
.modal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 4px;
}
.modal-prod-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.modal-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--primary);
}
.modal-prod-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
}
.modal-prod-card-cat {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
.modal-prod-card-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-prod-card-stock {
  display: none !important;
}
.modal-prod-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-prod-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.btn-modal-add-cart {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-modal-add-cart:hover {
  opacity: 0.92;
}

/* بنر تفعيل فلتر المنتجات المتاحة فقط في الصفحة الرئيسية */
.storefront-avail-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #166534;
}
.btn-clear-avail-filter {
  background: #ffffff;
  border: 1.5px solid #86efac;
  color: #166534;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-clear-avail-filter:hover {
  background: #dcfce7;
}

/* ========================================================================== */
/* 5. مميزات الخدمة (features) - 4 أعمدة                                      */
/* ========================================================================== */
.storefront-features {
  margin-top: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ========================================================================== */
/* 6. تسوق حسب القسم (categories) - بلاطات 60px iconBox                      */
/* ========================================================================== */
.storefront-categories {
  margin-top: 48px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.section-heading-wrap {
  display: flex;
  flex-direction: column;
}

.section-heading {
  font-size: var(--font-h2);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}

.section-subheading {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-section-viewall {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.btn-section-viewall:hover {
  background: #d4ebd8;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-sm);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(15, 107, 58, 0.12);
  background: var(--surface-muted);
}

.category-tile.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.category-tile-iconbox {
  width: 60px;
  height: 60px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: 0.2s;
  overflow: hidden;
}

.category-tile-iconbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.category-tile:hover .category-tile-iconbox {
  background: var(--primary);
  color: #FFFFFF;
}

.category-tile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ========================================================================== */
/* 7. الأكثر طلباً / المنتجات (best-sellers)                                  */
/* ========================================================================== */
.storefront-products,
.products-section,
#best-sellers {
  margin-top: 48px;
  padding: 0;
  scroll-margin-top: 90px;
}

.products-count-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.products-filter-badge {
  background: var(--surface-muted);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* كارت المنتج المعتمد */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(15, 76, 46, 0.12);
  border-color: #cbd5cb;
}

.badge-offer {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--sale);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.35);
  z-index: 3;
}

.product-image {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: var(--surface-muted);
  border-radius: 14px;
  padding: 6px;
}

.product-body {
  padding: 12px 2px 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================== */
/* نظام الشراء المرن: بالوزن المكتوب أو بالجنيه أو بالعدد للبيض */
/* ============================================================== */
.product-purchase-mode {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}

.btn-mode-tab {
  border: none;
  background: transparent;
  padding: 5px 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-mode-tab.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(13, 104, 50, 0.25);
}

.mode-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.btn-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-chip.active {
  background: #0d6832;
  color: #ffffff;
  border-color: #0d6832;
}

.custom-qty-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.custom-qty-box label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  overflow: hidden;
  height: 32px;
}

.btn-step {
  border: none;
  background: #f1f5f9;
  width: 32px;
  height: 100%;
  font-weight: 900;
  font-size: 1.1rem;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  user-select: none;
}

.btn-step:hover {
  background: #e2e8f0;
}

.btn-step:active {
  background: #cbd5e1;
}

.input-custom-qty {
  flex: 1;
  min-width: 0;
  border: none;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 900;
  color: #0f172a;
  padding: 0 4px;
  height: 100%;
  outline: none;
  background: transparent;
  -moz-appearance: textfield;
}

.input-custom-qty::-webkit-outer-spin-button,
.input-custom-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-unit {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  padding: 0 6px;
  background: #f8fafc;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid #f1f5f9;
}

.approx-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px dashed var(--primary-border);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

/* الأسعار المعتمدة */
.price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.current-price {
  font-size: var(--font-price);
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.old-price {
  font-size: var(--font-small);
  color: var(--text-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.unit-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* زر الإضافة للسلة المعتمد */
.btn-add-cart {
  background: var(--primary);
  color: #FFFFFF;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-button);
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(15, 107, 58, 0.2);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ========================================================================== */
/* 8. بانر الطلب من الموبايل (order-banner)                                   */
/* ========================================================================== */
.storefront-order-banner {
  margin-top: 48px;
}

.order-banner-card {
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 24px;
  padding: 38px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 6px 20px rgba(200, 232, 107, 0.35);
}

.order-banner-pill {
  background: rgba(11, 61, 35, 0.12);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.order-banner-title {
  font-size: var(--font-h2);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.order-banner-text {
  font-size: 16px;
  color: var(--primary-dark);
  max-width: 620px;
  line-height: 1.6;
  margin: 0;
}

.btn-order-cta {
  background: var(--primary-dark);
  color: #FFFFFF;
  min-height: 46px;
  padding: 12px 28px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(11, 61, 35, 0.3);
  font-family: inherit;
}

.btn-order-cta:hover {
  background: #062615;
  transform: translateY(-2px);
}

/* ========================================================================== */
/* 9. الفوتر الرئيسي (footer)                                                */
/* ========================================================================== */
.storefront-footer {
  margin-top: 64px;
  background: var(--primary-dark);
  color: #D3EBD9;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-leaf-icon {
  width: 40px;
  height: 40px;
  background: rgba(200, 232, 107, 0.18);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.footer-logo-img {
  max-height: 42px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  display: none;
}

.footer-logo-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #D3EBD9;
  margin-bottom: 14px;
}

.footer-badge-24h {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 232, 107, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 700;
}

.footer-col-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-info-list li i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-info-list strong {
  display: block;
  color: #FFFFFF;
}

.footer-phone-desc {
  font-size: 14px;
  margin-bottom: 12px;
  color: #D3EBD9;
}

.footer-phone-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-phone-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  transition: 0.2s;
  width: fit-content;
}

.footer-phone-chip:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-chip {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: 0.2s;
}

.social-chip:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(211, 235, 217, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #A3D3B0;
}

/* 6. النوافذ المنبثقة (Modals) */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}

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

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-header .icon-circle {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-header .close-btn {
  margin-right: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 22px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

/* نماذج الإدخال */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.required-label:after {
  content: " *";
  color: var(--accent-color);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  outline: none;
  transition: 0.2s;
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 104, 50, 0.15);
}

.highlight-input {
  border-color: #3b82f6;
  background: #eff6ff;
  font-weight: 700;
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.btn-gps {
  width: 100%;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px dashed #0284c7;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
}

.btn-gps:hover {
  background: #bae6fd;
}

.or-separator {
  text-align: center;
  margin: 16px 0;
  position: relative;
}

.or-separator:before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border-color);
}

.or-separator span {
  position: relative;
  background: #fff;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-success {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.btn-success:hover {
  background: var(--primary-dark);
}

.full-width {
  width: 100%;
}

/* 7. سلة المشتريات */
.cart-drawer {
  max-width: 580px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  gap: 14px;
  transition: all 0.2s ease;
}

.cart-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.cart-item-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.meta-tag {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-qty {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.meta-unit-price {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.meta-tag b {
  color: #0f172a;
  font-weight: 800;
}

.cart-item-total-box {
  text-align: left;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.total-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.cart-item-total-price {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--primary);
}

.cart-item-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.btn-edit-cart-item {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-edit-cart-item:hover {
  background: var(--primary-border);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-remove-cart-item {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-remove-cart-item:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: translateY(-1px);
}

/* نافذة تعديل كمية ووزن الصنف بالسلة */
.edit-cart-modal-card {
  max-width: 520px;
}

.edit-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.edit-tab-btn {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.edit-tab-btn.active {
  background: #eff6ff;
  border-color: #0284c7;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.edit-section-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.edit-box-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.edit-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.edit-chips-grid .btn-chip {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
}

.edit-chips-grid .btn-chip:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0284c7;
}

.edit-chips-grid .btn-chip.active {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.edit-custom-input-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.edit-custom-input-wrap .custom-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
}

.edit-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 2px;
}

.edit-stepper .btn-step {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.edit-stepper .btn-step:hover {
  background: #e2e8f0;
}

.edit-num-input {
  width: 75px;
  border: none;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  background: transparent;
}

.input-unit {
  padding-left: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.edit-qty-multiplier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.mini-stepper .qty-display {
  padding: 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.edit-summary-preview {
  background: var(--primary-soft);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 4px 0;
  color: #475569;
}

.preview-row.total-highlight {
  border-top: 1px dashed var(--primary-border);
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 800;
  color: var(--primary-dark);
}
}

/* ملخص الفاتورة */
.invoice-summary {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.invoice-summary h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-row.total-row {
  border-top: 1px dashed var(--border-color);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-color);
}

/* خيار سداد خدمة التوصيل (مع الفاتورة / عند الاستلام) */
.delivery-fee-choice-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 6px;
}

.delivery-choice-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.delivery-choice-title i {
  color: var(--primary-color, #0f6b3a);
}

.delivery-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.delivery-choice-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.delivery-choice-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--primary-color, #0f6b3a);
  cursor: pointer;
  flex-shrink: 0;
}

.delivery-choice-option .choice-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.delivery-choice-option .choice-head {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.delivery-choice-option small {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
}

.delivery-choice-option.active,
.delivery-choice-option:has(input:checked) {
  border-color: var(--primary-color, #0f6b3a);
  background: #f0fdf4;
}

.delivery-on-receipt-row {
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 7px;
  padding: 6px 10px;
  margin-top: 6px;
  color: #92400e;
  font-size: 0.84rem;
  font-weight: 700;
}

.grand-order-row {
  font-size: 0.84rem;
  color: #475569;
  padding: 5px 4px 2px;
}

.delivery-fee-inline-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.8rem;
}

.delivery-fee-inline-btns {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-inline-fee-opt {
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s ease;
}

.btn-inline-fee-opt.active {
  border-color: var(--primary-color, #0f6b3a);
  background: var(--primary-color, #0f6b3a);
  color: #ffffff;
}

@media (max-width: 480px) {
  .delivery-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* طرق الدفع */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.payment-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}

.payment-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.payment-card input[type="radio"]:checked + .card-inner {
  color: var(--primary-color);
}

.payment-card .card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-card .card-inner i {
  font-size: 1.3rem;
}

.payment-card .card-inner strong {
  display: block;
  font-size: 0.9rem;
}

.payment-card .card-inner small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.payment-extra-box {
  margin-top: 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  padding: 14px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.online-pay-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.vodafone-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.instapay-alert {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* بطاقة تنبيه إلزامي لتصوير وصل التحويل وإرساله عبر الواتساب */
.receipt-mandatory-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: right;
  animation: alertPulseGlow 2.5s infinite ease-in-out;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.receipt-mandatory-card .receipt-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b45309;
  font-size: 0.96rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.receipt-mandatory-card .pulse-camera-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  border: 1.5px solid #fde68a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.receipt-mandatory-card .receipt-card-desc {
  margin: 0;
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 600;
}

.receipt-upload-reminder-box {
  background: #fffbeb;
  border: 1.5px solid #fef08a;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #854d0e;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: right;
}

.receipt-upload-reminder-box i {
  font-size: 1.15rem;
  color: #d97706;
  margin-top: 2px;
  flex-shrink: 0;
}

@keyframes alertPulseGlow {
  0%, 100% { border-color: #fde68a; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1); }
  50% { border-color: #f59e0b; box-shadow: 0 4px 18px rgba(245, 158, 11, 0.22); }
}

.pay-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.pay-alert-body {
  font-size: 0.86rem;
}

.badge-price {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  display: inline-block;
}

.copyable-phone {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: all;
  font-family: monospace;
  font-size: 0.95rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.copyable-phone:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.checkout-submit-btn.btn-whatsapp-mode {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important;
  border: none !important;
}

.checkout-submit-btn.btn-whatsapp-mode:hover {
  background: linear-gradient(135deg, #20ba5a, #0d7065) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5) !important;
}

.btn-whatsapp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
}

.btn-whatsapp-action:hover {
  background: linear-gradient(135deg, #20ba5a, #0d7065);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

/* نافذة النجاح */
.success-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.order-id-badge {
  background: #f1f5f9;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 8px 0 16px;
}

.success-details-box {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  text-align: right;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.whatsapp-alert-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-align: right;
}

.whatsapp-alert-box i {
  font-size: 1.5rem;
  color: #10b981;
}

/* 8. الفوتر المطور */
.main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 35px 0 20px;
  margin-top: 40px;
  border-top: 3px solid var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 25px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand-icon {
  font-size: 1.5rem;
}

.footer-brand-title h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.footer-slogan {
  display: block;
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 700;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-phones-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-contact-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.footer-contact-pill:hover {
  background: rgba(22, 163, 74, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}

.footer-address-pill {
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-address-pill i {
  color: #ef4444;
}

.footer-hours-pill {
  font-size: 0.88rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-sub-note {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

/* 9. الزر العائم للتواصل معنا */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb, 15, 107, 58), 0.45);
  z-index: 990;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: floatPulse 3s infinite;
}

.floating-contact-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb, 15, 107, 58), 0.65);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.floating-contact-btn i {
  font-size: 1.35rem;
}

.floating-text {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.quick-call-boxes {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.call-chip {
  flex: 1;
  text-align: center;
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
}

.call-chip:hover {
  background: #e2e8f0;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

@keyframes floatPulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(13, 104, 50, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.7);
  }
}

/* 10. نظام حساب العميل والأقسام الأربعة */
.user-account-btn {
  background: #f1f5f9;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.user-account-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.auth-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: 0.2s;
}

.auth-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.otp-code-input {
  font-size: 1.8rem;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 900;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  background: var(--primary-soft);
}

.btn-text-link {
  background: none;
  border: none;
  color: #0284c7;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text-link:hover {
  text-decoration: underline;
  color: #0369a1;
}

.btn-whatsapp-action {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-whatsapp-action:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

/* تبويبات لوحة حسابي */
.profile-tabs-nav {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  overflow-x: auto;
}

.prof-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: 0.2s;
}

.prof-tab-btn.active {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.prof-tab-content {
  display: none;
}

.prof-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.prof-sec-header {
  margin-bottom: 14px;
}

.prof-sec-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.prof-sec-header small {
  color: var(--text-muted);
}

/* بطاقة طلباتي */
.cust-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
}

.cust-order-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border-right: 4px solid var(--primary-color);
}

.cust-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cust-order-body {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 8px;
}

.cust-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 6px;
}

/* بطاقات العناوين */
.cust-addresses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cust-addr-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cust-addr-card.is-default {
  border-color: #86efac;
  background: #f0fdf4;
}

/* المنتجات المحفوظة وزر القلب */
.btn-fav-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #94a3b8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 2;
  transition: 0.2s;
}

.btn-fav-toggle:hover, .btn-fav-toggle.active {
  color: #dc2626;
  background: #ffffff;
  transform: scale(1.1);
}

.cust-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
}

.fav-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fav-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* ==============================================================================
   تجاوب الشاشات الصغيرة للموبايل (Mobile Optimization & Scroll Behavior)
   ============================================================================== */
@media (max-width: 768px) {
  /* 1. الشريط العلوي الأسود المصغر جداً (الفرع الرئيسي والمواعيد) */
  .top-announcement {
    padding: 3px 8px !important;
    font-size: 0.69rem !important;
    line-height: 1.25 !important;
  }
  .top-announcement .phone-item {
    display: none !important; /* إخفاء رقم الهاتف في الشريط العلوي لتوفير مساحة الموبايل */
  }
  .top-info {
    gap: 8px !important;
  }
  .top-info span i {
    font-size: 0.65rem !important;
    margin-left: 3px !important;
  }
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  /* 2. شريط التنقل (هايبر عام ومكان التوصيل والاستلام) 
     يختفي تماماً في أعلى الصفحة ويظهر فقط عند النزول والتمرير لأسفل */
  .main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
  }

  /* يظهر بانسيابية عند النزول لأسفل */
  body.mobile-scrolled .main-navbar {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* تخطيط مدمج ومتناسق لشريط الموبايل العائم */
  .main-navbar .nav-content {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: 
      "logo location user cart"
      "switcher switcher switcher switcher";
    gap: 6px 8px;
    align-items: center;
    padding: 0;
  }

  .main-navbar .brand-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .main-navbar .brand-logo .logo-badge {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  .main-navbar .brand-text h1 {
    font-size: 0.92rem;
    white-space: nowrap;
    margin: 0;
  }
  .main-navbar .brand-text p {
    display: none !important; /* إخفاء الشعار الفرعي النصي داخل الشريط العائم لتوفير المساحة */
  }

  .main-navbar .delivery-picker {
    grid-area: location;
    padding: 4px 8px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
  }
  .main-navbar .delivery-picker .picker-icon {
    font-size: 0.85rem;
    color: var(--primary);
  }
  .main-navbar .delivery-picker .picker-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .main-navbar .delivery-picker .picker-text .label {
    display: none !important;
  }
  .main-navbar .delivery-picker .picker-text strong {
    font-size: 0.76rem;
    color: #0f172a;
  }
  .main-navbar .delivery-picker .arrow {
    font-size: 0.7rem;
    color: #94a3b8;
  }

  .main-navbar .nav-user-account {
    grid-area: user;
  }
  .main-navbar .user-account-btn {
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-navbar .user-account-btn span {
    display: none !important;
  }

  .main-navbar .nav-cart {
    grid-area: cart;
  }
  .main-navbar .cart-btn {
    padding: 5px 9px;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .main-navbar .cart-total {
    display: none !important;
  }
  .main-navbar .cart-count {
    font-size: 0.74rem;
    padding: 2px 6px;
  }

  .main-navbar .service-switcher {
    grid-area: switcher;
    display: flex;
    width: 100%;
    padding: 2px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
  }
  .main-navbar .service-switcher .switch-btn {
    flex: 1;
    padding: 4px 8px;
    font-size: 0.76rem;
    border-radius: 6px;
    justify-content: center;
    font-weight: 700;
  }

  /* 3. المستطيل الأخضر (الهيرو) على الموبايل */
  .hero-section {
    padding: 10px 0 16px !important;
  }

  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* إخفاء المعلومات والنصوص الكبيرة في الهيرو تماماً كما طلب المستخدم */
  .hero-text h2,
  .hero-text p {
    display: none !important;
  }

  .hero-info-col {
    gap: 10px !important;
  }

  .offers-toggle-wrapper {
    margin-top: 0 !important;
    padding: 6px 12px !important;
    width: 100% !important;
    justify-content: space-between !important;
    border-radius: 12px !important;
  }
  .offers-label .title {
    font-size: 0.88rem !important;
  }
  .offers-label small {
    display: none !important;
  }

  .search-box {
    max-width: 100% !important;
  }
  .search-box input {
    padding: 11px 40px 11px 14px !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
  }

  /* بانر الشرائح المتحرك على الموبايل */
  .hero-slider-box {
    height: 175px !important;
    border-radius: 14px !important;
  }
  .slide-overlay {
    padding: 12px 14px 16px !important;
  }
  .slide-badge {
    font-size: 0.74rem !important;
    padding: 3px 9px !important;
  }
  .slide-caption h3 {
    font-size: 1rem !important;
  }
  .slide-caption p {
    font-size: 0.78rem !important;
  }
  .slider-nav-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }

  /* 4. شريط الأقسام السريع وزر جميع الفئات على الموبايل */
  .categories-bar-section {
    padding: 8px 0 !important;
  }
  .categories-bar-wrapper {
    gap: 8px !important;
  }
  .btn-all-categories {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 25px !important;
    gap: 6px !important;
  }
  .cat-pill {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  .cat-pill .icon {
    font-size: 1.05rem !important;
  }

  /* نافذة جميع الفئات والرسوم المصورة على الموبايل */
  .seoudi-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .seoudi-cat-img-wrap {
    height: 95px !important;
  }
  .seoudi-cat-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.95rem !important;
    top: 6px !important;
    right: 6px !important;
  }
  .seoudi-cat-body {
    padding: 8px 10px !important;
  }
  .seoudi-cat-title {
    font-size: 0.82rem !important;
  }
  .seoudi-cat-desc {
    display: none !important;
  }
  .seoudi-cat-count {
    font-size: 0.68rem !important;
    margin-top: 3px !important;
  }

  /* 5. شبكة عرض المنتجات بنظام عمودين متوازيين (2 Columns) */
  .products-section {
    padding-top: 15px !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* كارت المنتج على الموبايل */
  .product-card {
    border-radius: 12px !important;
  }
  .product-image {
    height: 125px !important;
  }
  .product-body {
    padding: 10px !important;
    gap: 6px !important;
  }
  .product-title {
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
    min-height: 2.3em !important;
    max-height: 2.3em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  .product-price-row {
    margin-top: 2px !important;
  }
  .current-price {
    font-size: 1.05rem !important;
  }
  .unit-text {
    font-size: 0.74rem !important;
  }
  .weight-select {
    height: 30px !important;
    font-size: 0.78rem !important;
    padding: 2px 6px !important;
  }
  .btn-add-cart {
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
  }
  .btn-favorite {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    top: 8px !important;
    left: 8px !important;
  }
  .offer-badge {
    top: 8px !important;
    right: 8px !important;
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
  }

  /* 6. الدايرة العائمة لتواصل معنا على الموبايل */
  .floating-contact-btn {
    bottom: 16px !important;
    left: 14px !important;
    padding: 8px 14px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22) !important;
  }
  .floating-contact-btn .floating-icon {
    font-size: 1rem !important;
  }
  .floating-contact-btn .floating-text {
    font-size: 0.8rem !important;
  }

  /* 7. سلة المشتريات والنوافذ المنبثقة على الموبايل */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
  .modal-card {
    width: 95% !important;
    margin: 10px auto !important;
    border-radius: 16px !important;
  }

  /* 8. تنسيق الفوتر المصغر والأنيق للموبايل */
  .main-footer {
    padding: 16px 12px 14px !important;
    margin-top: 22px !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .footer-col {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
  }
  .footer-brand-title {
    margin-bottom: 4px !important;
  }
  .footer-brand-icon {
    font-size: 1.15rem !important;
  }
  .footer-brand-title h4 {
    font-size: 0.92rem !important;
  }
  .footer-slogan {
    font-size: 0.72rem !important;
  }
  .footer-desc {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
  }
  .footer-col h4 {
    font-size: 0.85rem !important;
    margin: 0 0 6px 0 !important;
  }
  .footer-phones-grid {
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  .footer-contact-pill {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
  }
  .footer-address-pill {
    font-size: 0.74rem !important;
  }
  .footer-hours-pill {
    font-size: 0.76rem !important;
    margin-bottom: 3px !important;
  }
  .footer-sub-note {
    font-size: 0.72rem !important;
  }
  .footer-bottom {
    padding-top: 10px !important;
    font-size: 0.72rem !important;
  }
}

/* شاشات الهواتف شديدة الصغر (أقل من 380px) */
@media (max-width: 380px) {
  .top-announcement {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
  }
  .products-grid {
    gap: 8px !important;
  }
  .product-image {
    height: 110px !important;
  }
  .main-navbar .brand-text h1 {
    font-size: 0.85rem !important;
  }
  .main-navbar .delivery-picker .picker-text strong {
    font-size: 0.72rem !important;
  }
}

/* ============================================================== */
/* لوحة تحكم حساب العميل وإحصائيات المشتريات والمرتجعات */
/* ============================================================== */

/* بطاقة هوية العميل */
.cust-profile-identity-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}

.cust-id-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cust-id-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.cust-id-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cust-id-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.cust-id-status-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--primary-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cust-id-phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.88rem;
}

.cust-id-phone {
  font-family: monospace;
  font-weight: 800;
  color: #0284c7;
}

.cust-id-city {
  color: #64748b;
  font-size: 0.8rem;
}

.cust-id-quick-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cust-quick-stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.cust-quick-stat-pill .stat-num {
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  font-family: monospace;
}

.cust-quick-stat-pill .stat-lbl {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.cust-quick-stat-pill.stat-returns .stat-num {
  color: #dc2626;
}

/* شريط التبديل بين الخانتين (سجل الطلبات | الإحصائيات) */
.cust-subtabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.cust-subtab-pill {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.cust-subtab-pill:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}

.cust-subtab-pill.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* شريط الفترات الزمنية */
.cust-orders-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cust-timeframe-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cust-timeframe-label {
  font-weight: 800;
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cust-timeframe-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cust-timeframe-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cust-timeframe-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.cust-timeframe-btn.active {
  background: #0d6832;
  color: #ffffff;
  border-color: #0d6832;
  box-shadow: 0 2px 5px rgba(13, 104, 50, 0.25);
}

/* صندوق طلب تحميل وتصدير السجل */
.cust-export-box {
  background: #f8fafc;
  border: 1px dashed #0284c7;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.cust-export-box-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cust-export-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cust-export-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cust-export-action-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* شريط فلاتر حالات الطلبات */
.cust-orders-status-filter-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cust-status-filter-btn {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}

.cust-status-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* بطاقات المؤشرات الرقمية (KPI) */
.cust-analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cust-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.cust-kpi-card .kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cust-kpi-card .kpi-info {
  display: flex;
  flex-direction: column;
}

.cust-kpi-card .kpi-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
}

.cust-kpi-card .kpi-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  font-family: monospace;
  margin: 2px 0;
}

.cust-kpi-card .kpi-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* كروت تفاصيل إحصائيات السلع والمشتريات */
.cust-analytics-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-right: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.cust-analytics-section-header {
  margin-bottom: 10px;
}

.cust-analytics-table th,
.cust-analytics-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cust-analytics-table tr:hover td {
  background: #f8fafc;
}

/* بطاقة طلب مرتجع */
.cust-return-item-card {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-right: 4px solid #e53e3e;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cust-return-reason-box {
  background: #fee2e2;
  border: 1px dashed #ef4444;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #991b1b;
  margin-top: 4px;
}

/* شارات الحالة */
.order-status-badge.status-badge-returned {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.order-status-badge.status-badge-delivered {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
}

.order-status-badge.status-badge-prep {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ============================================================== */
/* مبدل الفروع والمخزن لفرعي نجع حمادي وفرشوط                     */
/* ============================================================== */
.branch-pill-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
}

.branch-pill-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.branch-pill-buttons {
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* مبدل الفروع الذكي: إظهار الفرع المختار فقط مع قائمة منسدلة أنيقة */
.customer-branch-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.branch-dropdown-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: inherit;
}

.branch-dropdown-trigger-btn:hover,
.branch-dropdown-trigger-btn.open {
  border-color: var(--customer-primary, #0f766e);
  background: #f0fdfa;
  color: var(--customer-primary, #0f766e);
}

.branch-dropdown-trigger-btn .branch-dropdown-chevron {
  font-size: 0.72rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.branch-dropdown-trigger-btn.open .branch-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--customer-primary, #0f766e);
}

.branch-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  padding: 6px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.branch-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: right;
  width: 100%;
  font-family: inherit;
}

.branch-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.branch-dropdown-item.active {
  background: #f0fdfa;
  color: var(--customer-primary, #0f766e);
  border-color: #bbf7d0;
  font-weight: 800;
}

.branch-item-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.branch-item-icon {
  font-size: 0.88rem;
  color: var(--customer-primary, #0f766e);
}

.branch-item-check {
  color: var(--customer-primary, #0f766e);
  font-size: 0.88rem;
}

.branch-pill-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.branch-pill-btn:hover {
  color: #0f172a;
}

.branch-pill-btn.active {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.3);
}

/* خانة البحث البارزة المستبدلة بدلاً من شريط الفرع */
.storefront-search-bar {
  margin: 14px auto 18px;
  width: 100%;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px rgba(15, 107, 58, 0.06);
  transition: all 0.25s ease;
  overflow: hidden;
}

.search-bar-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(15, 107, 58, 0.14);
}

.search-bar-icon {
  position: absolute;
  right: 18px;
  color: var(--primary);
  font-size: 18px;
  pointer-events: none;
}

.search-bar-wrap input {
  width: 100%;
  height: 52px;
  background: transparent;
  border: none;
  padding: 0 52px 0 48px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

.search-bar-wrap input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.search-clear-btn {
  position: absolute;
  left: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-clear-btn:hover {
  color: var(--sale);
}
  font-weight: 900;
  background: #ccfbf1;
  padding: 2px 8px;
  border-radius: 6px;
}

.branch-banner-text small {
  color: #0d9488;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-switch-branch-quick {
  background: #ffffff;
  border: 1.5px solid #0f766e;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-switch-branch-quick:hover {
  background: #0f766e;
  color: #ffffff;
}

/* تلميح توفر السلعة في الفرع الآخر - محذوف نهائياً */
.other-branch-hint {
  display: none !important;
}

/* ==============================================================================
   تجاوب وتناسق التصميم المعتمد على جميع الشاشات (Responsive Layout)
   ============================================================================== */
@media (max-width: 1240px) {
  .container {
    padding: 0 28px;
  }
  .header-container {
    gap: 10px;
  }
  .logo-name {
    font-size: 19px;
  }
  .logo-sub {
    max-width: 140px;
    font-size: 11px;
  }
  .delivery-picker {
    padding: 6px 10px;
    max-width: 210px;
  }
  .delivery-picker .picker-text strong {
    max-width: 120px;
    font-size: 0.8rem;
  }
  .branch-pill-switcher {
    padding: 2px 6px;
    gap: 4px;
  }
  .branch-pill-btn {
    padding: 3px 8px;
    font-size: 0.76rem;
  }
  .switch-btn {
    padding: 5px 8px;
    font-size: 0.78rem;
  }
  .btn-action-soft, .btn-action-primary {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .hero-card {
    padding: 36px 32px;
  }
  .category-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .header-container {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
  }
  .header-logo {
    order: 1;
    flex: 0 0 auto;
  }
  .header-actions {
    order: 2;
    flex: 0 0 auto;
    margin-inline-start: auto;
  }
  .header-controls-group,
  .header-right-group {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px 12px;
    gap: 8px;
  }
  .delivery-picker {
    max-width: none;
    flex: 1;
    background: #ffffff;
  }
  .delivery-picker .picker-text strong {
    max-width: 160px;
  }
  .service-switcher {
    background: #ffffff;
  }
  .hero-inner-content,
  .hero-inner-content.slider-pos-left,
  .hero-inner-content.slider-pos-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .hero-copy-col {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }
  .hero-subtitle {
    margin: 0 auto;
  }
  .hero-badge {
    align-self: center !important;
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-slider-col {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
  }
  .hero-card {
    padding: 30px 24px;
    border-radius: 20px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .announcement-bar-container {
    justify-content: center;
    text-align: center;
    font-size: 12px;
    flex-direction: column;
    gap: 4px;
  }
  .header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
  }
  .header-logo {
    order: 1;
    flex: 0 0 auto;
  }
  .header-actions {
    order: 2;
    flex: 0 0 auto;
    margin-inline-start: auto;
    gap: 6px;
  }
  .header-controls-group,
  .header-right-group {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    gap: 6px;
  }
  .delivery-picker {
    order: 1;
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
    justify-content: space-between;
    padding: 7px 12px;
    background: var(--surface-muted);
  }
  .delivery-picker .picker-text strong {
    max-width: 220px;
  }
  .branch-pill-switcher {
    order: 2;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: space-between;
    padding: 3px 6px;
  }
  .service-switcher {
    order: 3;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: center;
    background: var(--surface-muted);
  }
  .btn-action-soft, .btn-action-primary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12.5px;
    gap: 5px;
  }
  .hero-card {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .hero-title {
    font-size: 26px;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }
  .hero-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .btn-hero-accent, .btn-hero-outline {
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .order-banner-card {
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .logo-leaf-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .logo-name {
    font-size: 17px;
  }
  .logo-sub {
    display: none;
  }
  .btn-action-soft, .btn-action-primary {
    min-height: 36px;
    padding: 0 9px;
    font-size: 12px;
    gap: 4px;
  }
  .cart-total-badge {
    display: none;
  }
  .branch-pill-label {
    display: none;
  }
  .branch-pill-btn {
    padding: 4px 6px;
    font-size: 0.74rem;
  }
  .switch-btn {
    padding: 4px 6px;
    font-size: 0.74rem;
  }
  .delivery-picker .picker-text strong {
    max-width: 170px;
    font-size: 0.78rem;
  }
  .hero-title {
    font-size: 22px;
  }
  .category-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Customer Maintenance Mode Overlay Styles
   ========================================================================== */
@keyframes maintOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes maintCardPopIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.maint-overlay-active {
  animation: maintOverlayFadeIn 0.4s ease-out forwards;
}

.maint-card-container {
  animation: maintCardPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes royalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes royalShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(246, 224, 94, 0.8)); }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
