/* Global forced Cairo override (user request): applies to every element including inline-styled ones */
html, body, body * { font-family: 'Cairo', Arial, sans-serif !important; }
/* NOTE: This broad selector with !important can impact performance slightly (larger style recalcs),
   but guarantees Cairo everywhere. Remove body * for a lighter cascade if you later decide to relax it. */
/* Fonts are centralized in fonts.css; this file assumes fonts.css is loaded before style.css */
html{
  height:100%;
  min-height:100%;
  background:#fff; /* avoid black gaps on notched devices / PWA */
  overflow-x:hidden; /* safety: prevent horizontal scroll on small screens */
}
body {
  background: #fff;
  margin: 0;
  direction: rtl;
  font-size:17px; /* تكبير بسيط للخط الافتراضي */
  -webkit-font-smoothing: antialiased;
  color: #0D0B45; /* تعيين لون النص الافتراضي الداكن */
  overflow-x: hidden; /* منع التمرير الأفقي كحماية إضافية */
  min-height: 100vh;
}
/* الصفحة الرئيسية */
body.home { background:#fff; }

/* Paint the bottom safe-area instead of showing black */
body::after{
  content:"";
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  height:env(safe-area-inset-bottom, 0px);
  background:#fff;
  pointer-events:none;
  z-index:1;
}
body.home::after{ background:#fff; }
/* عناصر النموذج ترث الخط الآن؛ القاعدة التالية تم تعطيلها بناءً على طلبك لأنها كانت تعيد الضبط إلى inherit */
/* ORIGINAL (disabled): *, button, input, select, textarea { font-family: inherit; font-variant-ligatures: none; } */
/* نحافظ فقط على ضبط الميزات الطباعية بدون تغيير الخط */
button, input, select, textarea { font-variant-ligatures: none; }
/* Override اختياري لتطبيق الخط قسرياً عند الحاجة دون استعمال !important في كل مكان */
.force-cairo { font-family:'Cairo', Arial, sans-serif; }
/* تعطيل تظليل اللمس الافتراضي الذي قد يُظهر درجات غير مرغوبة على الموبايل */
html { -webkit-tap-highlight-color: transparent; }
html{ color-scheme: light; }
:root {
  --brand-color: #1976d2;
  --brand-color-dark: #1565c0; /* hover */
  --header-overlay: rgba(0,0,0,0.4);
  --logo-circle-color: #fff;
  --topbar-h: 64px;
  --header-vertical-gap: clamp(32px, 7vw, 60px); /* يضمن فراغًا واضحًا على جميع المقاسات */
  /* لون لهوية نصية للأماكن المحددة (نصوص وأشكال فقط) */
  --ui-accent-text: #0D0B45;
  --landing-category-text: #0D0B45;

  /* Bottom navigation (mobile) */
  --bottom-nav-h: 0px;
  --bottom-nav-gap: 0px;
}
#app {
  min-height: calc(var(--app-vh, 1vh) * 100);
}
#root {
  min-height: calc(var(--app-vh, 1vh) * 100);
}

/* ------------------------------
   Bottom Navigation (Snake)
   - Uses site theme variables: --brand-color, --ui-accent-text, --logo-circle-color
-------------------------------- */
.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  transform:none;
  bottom:env(safe-area-inset-bottom, 0px);
  width:100%;
  height:82px;
  background:#fff;
  border-radius:0;
  display:flex;
  justify-content:center;
  overflow:hidden;
  z-index:55;
  box-shadow:none;
  border-top:1px solid rgba(0,0,0,.06);
}

.bottom-nav__track{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
}

.bottom-nav a{
  width:auto;
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#000;
  cursor:pointer;
  position:relative;
  z-index:2;
  transition:color .25s;
  text-decoration:none;
}

.bottom-nav a .bn-ic{ display:flex; align-items:center; justify-content:center; position:relative; }
.bottom-nav a .bn-ic svg{ width:31px; height:31px; }
.bottom-nav a .bn-ico{
  width:31px;
  height:31px;
  display:block;
  background-color:currentColor;
  -webkit-mask-image: var(--bn-ico);
  mask-image: var(--bn-ico);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform-origin:center;
}

/* Offer icon: uploaded SVG has different viewBox, so boost it slightly */
.bottom-nav a[data-id="offers"] .bn-ico{ transform:scale(1.16); }

/* Cart icon: boost slightly to match visual weight */
.bottom-nav a[data-id="cart"] .bn-ico{ transform:scale(1.12); }

/* Home icon: small boost */
.bottom-nav a[data-id="home"] .bn-ico{ transform:scale(1.06); }
.bottom-nav a span{ font-size:14px; opacity:.85; transition:.25s; }

.bottom-nav .bn-badge{
  position:absolute;
  top:-2px;
  right:-8px;
  min-width:14px;
  height:14px;
  padding:0 4px;
  border-radius:999px;
  background:var(--brand-color);
  color:var(--ui-accent-text);
  font-size:10px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.bottom-nav a.active{ color:var(--brand-color); }
.bottom-nav a.active span{ opacity:1; font-weight:700; }

.bottom-nav__snake{
  position:absolute;
  top:11px;
  right:0;
  width:var(--bn-item-w);
  height:60px;
  background:#fff;
  border-radius:18px;
  z-index:1;
  transition:
    transform .45s cubic-bezier(.34,1.56,.64,1),
    width .25s ease;
}

.bottom-nav__snake.stretch{ width:calc(var(--bn-item-w) + 48px); }

/* Keep layout & fixed buttons above the bottom nav */
body.has-bottom-nav{
  --bottom-nav-h: 82px;
  /* extra lift for floating buttons so they never overlap the bar */
  --bottom-nav-gap: 50px;
  padding-bottom:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

.cart-bar{ bottom:calc(26px + var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }

/* Make item width responsive on small screens */
@media (max-width: 720px){
  :root{ --bn-items: 5; --bn-item-w: clamp(56px, calc((100vw - 56px)/5), 72px); }
}

/* Defaults for wider screens (nav hidden by JS if desired, but keep sane variables) */
:root{ --bn-items: 5; --bn-item-w: 72px; }
/* الهيدر */
/* NOTE: Removed erroneous <link> tag accidentally inserted inside CSS which could break parsing */
.header {
  position: relative;
  width: 100%;
  height: 540px; /* زيادة بسيطة لارتفاع الهيرو */
  overflow: hidden;
  background: #000; /* fallback color while image loading */
}

@media (max-width:900px){ .header { height: 520px; } }
@media (max-width:680px){ .header { height: 480px; } }
@media (max-width:500px){ .header { height: 460px; } }
.header .lcp-cover {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:0;
}
.header-overlay {
  position: absolute;
  inset: 0;
  background: var(--header-overlay);
  z-index: 1;
  pointer-events: none; /* منع حجب النقرات */
}
.logo-circle {
  margin: 22px auto 0; /* زيادة الهامش العلوي لضمان فراغ واضح فوق الشعار */
  background: var(--logo-circle-color);
  border-radius: 50%;
  overflow: hidden;
  width: 160px; height: 160px; /* أبعاد مربعة لضمان دائرية تامة */
  aspect-ratio: 1 / 1; /* تأكيد النسبة 1:1 لتفادي أي استطالة */
  flex: 0 0 auto; /* منع تمدد العنصر داخل Flex */
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px #0002;
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display:block; }

@media (max-width: 600px){
  .logo-circle { width: 140px; height: 140px; }
}
.site-name {
  text-align: center;
  color: #fff;
  font-size: 1.9rem; /* كان 2.2rem */
  margin-top: 18px;
  font-weight: 900;
  line-height: 1.05;
  font-family: inherit;
}
/* سطر السلوغان أسفل الاسم في الهيدر */
.site-slogan{ color:#fff; opacity:.92; font-size:1rem; margin-top:6px; text-align:center; }
@media (max-width:600px){
  .site-name { font-size: 1.7rem; }
  .site-slogan{ font-size:.95rem; }
}
.social-icons { display:flex; justify-content:center; gap:12px; margin-top:12px; }
.animated-services { direction: rtl; }
.service-icon { width:66px; height:66px; object-fit:contain; display:block; background:none !important; border:none !important; box-shadow:none !important; border-radius:0 !important; padding:0 !important; }
@media (max-width:600px){ .service-icon { width:58px; height:58px; } }
.service-title { font-size:1.08rem; font-weight:600; color:#fff; text-shadow:none; line-height:1.22; text-align:center; max-width:140px; }
@media (max-width:600px){ .service-title { font-size:1rem; max-width:126px; } }
.service-block { min-width:64px; }
/* محتوى الهيدر فوق طبقة الشفافية */
.header-content {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-vertical-gap);
  bottom: var(--header-vertical-gap);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 16px;
  box-sizing: border-box;
}
@media (max-width:600px){ .header-content { padding: 0 14px; } }
@media (max-width:480px){ .header-content { padding: 0 12px; } }

/* زر الدعوة (CTA) - تأثير كبس عند الضغط */
.home-cta-btn {
  transition: transform .08s ease, filter .08s ease;
  will-change: transform;
  font-family:'Cairo' !important;
}
.home-cta-btn:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.98);
}

/* الشريط العلوي للصفحة الداخلية */
.topbar { position:sticky; top:0; z-index:30; background:#fff; height:var(--topbar-h,64px); display:flex; align-items:center; justify-content:space-between; padding:0 14px; border-bottom:1px solid #eee; }
.topbar .tb-right { display:flex; align-items:center; gap:8px; }
.topbar .tb-left { display:flex; align-items:center; gap:6px; }
.topbar .tb-logo { display:inline-flex; align-items:center; justify-content:center; width:50px; height:50px; border-radius:50%; overflow:hidden; }
.topbar .tb-logo img { width:50px; height:50px; object-fit:cover; border-radius:50%; display:block; }
.topbar .icon-btn { position:relative; width:48px; height:48px; border:none; background:transparent; color:#0D0B45; display:flex; align-items:center; justify-content:center; border-radius:12px; cursor:pointer; }
.topbar .icon-btn .hdr-ico{
  width:26px;
  height:26px;
  display:block;
  background-color:currentColor;
  -webkit-mask-image: var(--hdr-ico);
  mask-image: var(--hdr-ico);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Header cart icon: larger on purpose */
.topbar .icon-btn.cart .hdr-ico{ width:32px; height:32px; }
.topbar .icon-btn:hover { background:#f4f4f4; }
.topbar .icon-btn .badge { position:absolute; top:2px; right:2px; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--brand-color); color:var(--ui-accent-text); font-size:.75rem; font-weight:600; display:inline-flex; align-items:center; justify-content:center; }

/* Header cart badge: nudge further right */
.topbar .icon-btn.cart .badge{ right:-4px; }
.topbar .menu-wrap { position:relative; }
.topbar .menu-panel { position:absolute; top:calc(100% + 6px); left:0; background:#fff; border:1px solid #ececec; border-radius:12px; box-shadow:0 10px 26px rgba(0,0,0,.12); min-width:160px; padding:8px; display:none; }
.topbar .menu-panel.open { display:block; }
.topbar .menu-item { display:block; padding:10px 12px; color:#0D0B45; text-decoration:none; border-radius:10px; font-weight:600; font-size:.92rem; }
.topbar .menu-item:hover { background:#f6f6f6; }
.social-icon { width:32px; height:32px; border-radius:50%; background:var(--brand-color); display:flex; align-items:center; justify-content:center; color:#0D0B45; box-shadow:none; transition:background .2s; }
/* استثناء داخل الهيدر: تبقى الأيقونات باللون الأبيض */
.header .social-icon { color:#fff; }
.social-icon[disabled] { opacity: 0.4; pointer-events: none; }
/* إلغاء تأثير تغيير اللون عند المرور بالماوس */
.social-icon:hover { background: var(--brand-color); }
/* التصنيفات */
.categories-bar {
  position: sticky; top: 0; background: #fff; z-index: 10;
  display: flex; overflow-x: auto; gap: 8px; padding: 10px 10px;
  border-bottom: 1px solid #eee;
}
.cats-search-wrapper { position:sticky; top:var(--topbar-h, 64px); z-index:15; background:#fff; padding:6px 0 0; display:flex; flex-direction:column; gap:4px; }
/* تأكيد أن تمرير الأقسام يضع العناوين تحت الشريط اللاصق بدون تغطية */
section { scroll-margin-top: calc(var(--topbar-h, 64px) + 70px); }
.items-search-box { display:flex; align-items:center; gap:8px; padding:0 6px; }
.items-search-row{ padding-left:12px; }
.items-search-box .search-icon { display:flex; align-items:center; justify-content:center; color:var(--brand-color); width:24px; height:24px; margin-left:4px; }
.items-search-box input { flex:1; padding:10px 14px; border:1px solid #ccc; border-radius:14px; font-size:.9rem; background:#fafafa; }
.items-search-box input:focus { outline:2px solid var(--brand-color); outline-offset:2px; background:#fff; }
.items-search-box button { background:#d32f2f; color:#fff; border:none; width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:1.2rem; line-height:1; display:flex; align-items:center; justify-content:center; }
.items-search-box button:hover { background:#b71c1c; color:#fff; }

/* أزرار عامة للواجهة */
.btn { padding:10px 14px; border-radius:12px; cursor:pointer; font:inherit; border:none; }
.btn-brand { background: var(--brand-color); color: var(--ui-accent-text); }
.btn-brand:hover { background: var(--brand-color); opacity:.95; }
.btn-danger { background:#d32f2f; color:#fff; }
.btn-danger:hover { background:#b71c1c; }
.category-btn {
  padding: 8px 18px; border-radius: 22px; border: none;
  background-color: #eee; color: #0D0B45; font-size: 1rem;
  cursor: pointer;
  white-space: nowrap; /* سطر واحد فقط لاسم التصنيف */
  flex: 0 0 auto;      /* منع الانكماش داخل الـ flex لتجنب التفاف النص */
  transition: background-color .22s ease, color .22s linear;
  will-change: background-color,color; /* تحسين تقليل الوميض */
  -webkit-font-smoothing: antialiased;
}
.category-btn:hover,
.category-btn.active {
  background-color: var(--brand-color);
  color: var(--ui-accent-text);
}
/* تخصيص زر تبديل العرض ليحصل على لون مختلف عند كونه نشطاً */
#toggleViewBtn { background:#eee; color:#0D0B45; font-weight:600; display:inline-flex; align-items:center; gap:6px; }
body.view-list #toggleViewBtn { background:var(--brand-color); color:var(--ui-accent-text); }
/* تصميم محسن لزر تبديل العرض بالأيقونات فقط */
/* مجموعة أزرار عرض (شبكة/قائمة) أيقونتين جنب بعض */
.view-toggle-group { display:inline-flex; align-items:center; gap:6px; margin-inline-start:8px; }
.view-toggle-group .view-btn { 
  width:44px; height:44px; 
  display:flex; align-items:center; justify-content:center; 
  background:#eee; color:#0D0B45; border:none; cursor:pointer; 
  border-radius:14px; 
  box-shadow:none; 
  transition:background .25s, color .25s, transform .25s; 
  padding:0; font:inherit; 
}
.view-toggle-group .view-btn svg { width:24px; height:24px; }
.view-toggle-group .view-btn:hover { background:#f3f3f3; }
.view-toggle-group .view-btn.active { background:var(--brand-color); color:var(--ui-accent-text); transform:none; }
.view-toggle-group .view-btn:active { transform:translateY(0); }
@media (max-width:560px){
  .view-toggle-group { gap:4px; }
  .view-toggle-group .view-btn { width:40px; height:40px; border-radius:12px; }
  .view-toggle-group .view-btn svg { width:22px; height:22px; }
}
/* شبكة الأصناف */
.items-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  margin: 18px 0;
  padding: 0 8px; /* حشوة جانبية عامة للشبكة */
}
/* على الشاشات الكبيرة: اجعل الكروت بعرض ثابت ولا تتمدد */
@media (min-width: 900px) {
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    justify-content: center; /* توسيط الشبكة عندما تكون هناك فراغات */
  }
}
@media (max-width: 600px) {
  .item-card.skeleton { pointer-events:none; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
}
.item-card {
  background: #fafafa; border-radius: 18px; box-shadow: none;
  padding: 0; display: flex; flex-direction: column; align-items: stretch;
  overflow: hidden;
  margin: 0 4px 6px; /* إضافة مسافة سفلية بسيطة */
  box-sizing: border-box; /* منع أي تجاوز عرض بسبب الحشوات */
}

  /* Skeleton loading */
  @keyframes shimmer {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
  }
  .skeleton-img {
    width:100%; height:130px; border-radius:18px 18px 0 0;
    background: #eee;
    background-image: linear-gradient(90deg, #ececec 0px, #f5f5f5 40px, #ececec 80px);
    background-size: 600px 100%;
    animation: shimmer 1.3s infinite linear;
  }
  .skeleton-line { height:14px; border-radius:8px; background:#eee; position:relative; overflow:hidden; }
  .skeleton-line::after { content:''; display:block; height:100%; width:100%;
    background-image: linear-gradient(90deg, transparent 0px, rgba(255,255,255,.6) 40px, transparent 80px);
    background-size: 600px 100%; background-repeat:no-repeat; animation: shimmer 1.3s infinite linear; }
  .skeleton-chip { width:34px; height:34px; border-radius:12px; background:#eee; }
  .w-40 { width:40%; }
  .w-60 { width:60%; }
.item-card .item-img {
  width: 100%;
  height: 144px; /* ارتفاع ثابت مناسب للكرت الثابت */
  object-fit: cover;
  border: none;
  border-radius: 18px 18px 0 0;
  display: block;
  margin: 0;
}
/* حالة الصنف غير المتاح */
.item-card.unavailable { position:relative; opacity:.82; }
.item-card.unavailable .item-img { filter:grayscale(.65) brightness(.85); }
.item-card .unavail-badge { position:absolute; top:6px; right:8px; background:#d32f2f; color:#fff; font-size:.55rem; padding:4px 8px; border-radius:8px; font-weight:600; letter-spacing:.3px; box-shadow:0 2px 6px #0003; }
.item-card.unavailable .add-btn { background:#bbb; cursor:not-allowed; }
.item-card.unavailable .add-btn:hover { background:#bbb; }
 .item-card .info {
  padding: 2px 6px 3px;
  margin-top: 4px;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; /* stretch so txt fills */
  gap: 2px;
}
.item-card .info .txt { display:flex; flex-direction:column; align-items:center; text-align:center; line-height:1.1; width:100%; margin:0 auto; }
.item-card .info .txt .item-name, .item-card .info .txt .item-price { display:block; padding-right:0; margin-right:0; }
.item-name { margin: 0 0 10px; font-size: 1.02rem; font-weight:800; width:100%; text-align:center; line-height:1.1; }
.item-price { margin: 0; font-size:1.18rem; font-weight:600; width:100%; text-align:center; color:#0D0B45; line-height:1.05; }
/* إزالة أي إطار تركيز أو box-shadow حسب طلب المستخدم */
:focus, body *:focus, body *:focus-visible { outline:none !important; box-shadow:none !important; }
.cart-drawer input:focus, .cart-drawer select:focus, .cart-drawer textarea:focus { outline:none !important; box-shadow:none !important; border-color:#ddd !important; }
.item-card .add-btn { width:34px; height:34px; font-size:1.1rem; align-self:center; margin-top:2px; }
/* محاذاة وسط للوضع الافتراضي (grid) فقط، لا تؤثر على وضع القائمة */
body:not(.view-list) .item-card .info .txt,
body:not(.view-list) .item-card .info .txt .item-name,
body:not(.view-list) .item-card .info .txt .item-price { text-align:center; }
/* في وضع الشبكة (الافتراضي) أخفِ الصف الخاص بالسعر والزر المكرر المخصص لوضع القائمة */
body:not(.view-list) .item-card .info .item-meta { display:none; }
/* تأمين منع أي محاذاة يسار موروثة */
.item-card .info .txt * { direction:rtl; }
@media (max-width:600px){
  .item-card .item-img { height: 122px; }
  .item-card .info { padding: 2px 6px 3px; margin-top:4px; gap:4px; }
  .item-card .add-btn { width:28px; height:28px; }
  /* (داخل media) لا نعيد تعريف social-icon:hover لتجنب التكرار */
  .item-name { font-size:.98rem; }
  .item-price { font-size:1.08rem; }
}

/* View: List (full-width rectangular cards) */
.view-list .items-grid { grid-template-columns: 1fr; gap:10px; margin:14px 0; }
/* في RTL نُبقي flex-direction: row ليظهر أول عنصر (الصورة) على اليمين */
.view-list .item-card { flex-direction: row; align-items: flex-start; padding: 8px; border-radius: 14px; position:relative; width:100%; max-width:100%; margin:0; }
.view-list .item-card .item-img { width: 120px; height: 80px; border-radius: 12px; margin: 0 0 0 10px; flex-shrink:0; }
.view-list .item-card .info { flex: 1 1 auto; margin-top:0; padding:4px 10px; display:flex; flex-direction:column; position:static; min-width:0; }
/* الاسم أعلى يمين بعد الصورة */
.view-list .item-card .info .txt { display:block; text-align:right; }
.view-list .item-card .info .txt .item-name { display:block; font-size:1.02rem; font-weight:800; text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0 0 6px; line-height:1.25; padding-bottom:0; }
/* في وضع القائمة: إخفِ السعر المدمج داخل txt وأظهر صف السعر+الزر أسفله */
.view-list .item-card .info .txt .price-inline { display:none; }
.view-list .item-card .info .item-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; }
.view-list .item-card .info .item-meta .item-price { position:static; margin:0; text-align:right; font-weight:600; font-size:1.12rem; color:#0D0B45; }
.view-list .item-card .info > .add-btn { display:none; }
.view-list .item-card .info .item-meta .add-btn { position:static; width:32px; height:32px; }

@media (max-width:600px){
  .view-list .item-card .info { padding:4px 8px; }
}
.category-title { 
  margin:34px 0 20px; 
  font-size:1.35rem; 
  font-weight:600; 
  color:#0D0B45; 
  line-height:1.2; 
  text-align:center; 
  position:relative; 
  /* عدم استخدام padding مع width:100% حتى لا يحدث overflow */
  padding:0; 
  /* هامش جانبي بسيط حتى لا تلتصق الخطوط بحواف الشاشة */
  margin-inline:8px; 
  letter-spacing:.4px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:18px; 
}
.category-title::before, .category-title::after { 
  content:""; 
  height:2px; 
  background:var(--brand-color); 
  flex:1; 
  border-radius:1px; 
  /* تلاشي خفيف للأطراف الطويلة */
  box-shadow:0 0 0 0 var(--brand-color); 
}
@media (max-width:600px){ 
  .category-title { font-size:1.18rem; margin:26px 0 16px; margin-inline:8px; gap:12px; } 
  .category-title::before, .category-title::after { height:2px; }
}
/* تأكيد محاذاة يمين للاسم والسعر */
/* زر الإضافة (صيغة موحّدة) */
.add-btn { background:var(--brand-color); color:var(--ui-accent-text); border:none; border-radius:50%; width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; cursor:pointer; box-shadow:none; transition:background .2s; }
.add-btn:hover { background:var(--brand-color); }
/* السلة العائمة */
.cart-fab, .cart-badge { display:none; }
/* زر إتمام الطلب العائم */
.cart-bar { position:fixed; left:50%; bottom:26px; transform:translate(-50%,36px) scale(.95); background:var(--brand-color); color:#0D0B45; border:none; padding:16px 42px; font-size:1.24rem; font-weight:700; border-radius:40px; cursor:pointer; box-shadow:0 7px 20px rgba(0,0,0,.24); z-index:58; opacity:0; transition:opacity .3s, transform .42s cubic-bezier(.4,.0,.2,1); letter-spacing:.35px; display:flex; align-items:center; justify-content:center; gap:18px; min-width:260px; max-width:calc(100% - 32px); }
.cart-bar .label, .cart-bar .total { display:inline-flex; align-items:center; line-height:1; }
.cart-bar .label { white-space:nowrap; }
.cart-bar .total { font-weight:800; font-size:1.18rem; }
.cart-bar:not(.hidden){ opacity:1; transform:translate(-50%,0) scale(1); }
.cart-bar.hidden { pointer-events:none; }
/* Drawer السلة */
/* Overlay + Drawer */
.cart-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.38); z-index:59; opacity:0; transition:opacity .35s; pointer-events:none; }
.cart-overlay.visible { opacity:1; pointer-events:auto; }
.cart-drawer { position:fixed; top:0; right:0; bottom:0; width:100%; max-width:440px; background:#fff; box-shadow:-4px 0 18px rgba(0,0,0,0.22); z-index:60; display:flex; flex-direction:column; padding:20px 22px 22px; transform:translateX(104%); transition:transform .45s cubic-bezier(.4,.0,.2,1); height:calc(var(--app-vh, 1vh) * 100); max-height:calc(var(--app-vh, 1vh) * 100); box-sizing:border-box; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.cart-drawer.open { transform:translateX(0); }
.cart-drawer.closed { transform:translateX(104%); }
@media (max-width:640px){ .cart-drawer { max-width:100%; width:100%; padding:20px 18px 24px; } }
/* تحسين الارتفاع الكامل على الموبايل مع دعم الـ safe-area (iOS) */
@media (max-width:640px){
  .view-list .item-card .item-img { width: 110px; height: 74px; }
  .cart-drawer .drawer-footer { padding-bottom:4px; }
  .cart-drawer .drawer-body { margin:12px 0; }
}
/* إخفاء زر السلة العائم عند فتح الدروار */
body.cart-open .cart-bar { display:none !important; }
/* منع تمرير الخلفية عند فتح السلة */
body.cart-open { overflow:hidden; }
/* زر الصعود للأعلى (عصري) */
.back-to-top { position:fixed; bottom:calc(-20px + var(--bottom-nav-h, 0px) + var(--bottom-nav-gap, 0px) + env(safe-area-inset-bottom,0)); left:22px; width:50px; height:50px; border:none; border-radius:50%; cursor:pointer; background:var(--brand-color); color:var(--ui-accent-text); display:flex; align-items:center; justify-content:center; box-shadow:none; z-index:90; opacity:0; transform:translateY(18px) scale(.85); transition:opacity .45s, transform .6s cubic-bezier(.4,0,.2,1), background-color .25s, bottom .35s; backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.back-to-top.visible { opacity:1; transform:translateY(0) scale(1); }
.back-to-top:hover { background:var(--brand-color); }
.back-to-top:active { transform:translateY(2px) scale(.9); box-shadow:none; }
.back-to-top svg { width:26px; height:26px; }
@media (max-width:640px){ .back-to-top { width:46px; height:46px; left:16px; bottom:calc(-20px + var(--bottom-nav-h, 0px) + var(--bottom-nav-gap, 0px) + env(safe-area-inset-bottom,0)); } .back-to-top svg { width:24px; height:24px; } }
/* إخفاء زر الصعود أثناء فتح الدروار للسلة لتجنب التشويش */
body.cart-open .back-to-top { opacity:0 !important; pointer-events:none !important; transform:translateY(18px) scale(.85) !important; }
/* الفوتر */
.footer {
  background: var(--brand-color); color: var(--ui-accent-text); text-align: center; padding: 18px 0;
}
/* فوتر الموقع الجديد */
.site-footer { background:#f2f2f2; color:var(--ui-accent-text); margin-top:40px; font-size:.82rem; border-top:1px solid #e2e2e2; }
.site-footer .footer-inner { max-width:1000px; margin:0 auto; padding:28px 18px 34px; display:flex; flex-direction:column; gap:18px; align-items:center; text-align:center; }
.site-footer .footer-info { display:flex; flex-direction:column; gap:10px; width:100%; align-items:center; }
.site-footer .footer-line { display:flex; gap:8px; align-items:center; direction:rtl; text-align:right; max-width:640px; }
.site-footer .footer-line .ic-wrap { width:24px; height:24px; display:flex; align-items:center; justify-content:center; flex:0 0 24px; background:none; color:var(--brand-color); border-radius:0; margin-top:0; }
.site-footer .footer-line .ic-wrap.no-bg { background:none; }
.site-footer .footer-line .ic-wrap svg { width:20px; height:20px; }
.site-footer .footer-line .txt { line-height:1.4; font-weight:600; letter-spacing:.2px; color:var(--ui-accent-text); }
.site-footer .footer-line .phone a { color:inherit; text-decoration:none; font-weight:600; }
.site-footer .footer-line .phone a:hover { text-decoration:underline; }
.site-footer .footer-social { display:flex; gap:14px; margin-top:4px; flex-wrap:wrap; justify-content:center; }
.site-footer .footer-social .ftr-ic { width:42px; height:42px; display:flex; align-items:center; justify-content:center; background:var(--brand-color); color:var(--ui-accent-text); border-radius:14px; text-decoration:none; font-size:0; box-shadow:0 2px 6px rgba(0,0,0,.15); }
.site-footer .footer-social .ftr-ic svg { width:22px; height:22px; }
.site-footer .footer-social .ftr-ic:hover { transform:translateY(-3px); transition:transform .25s; }
.site-footer .copyright { margin-top:2px; font-size:.7rem; opacity:.7; }
@media (max-width:600px){
  .site-footer .footer-inner { padding:26px 14px 32px; }
  .site-footer .footer-line { justify-content:center; text-align:center; }
  .site-footer .footer-line .ic-wrap { width:22px; height:22px; }
  .social-icon { width:30px; height:30px; }
  .site-footer .footer-social .ftr-ic { width:40px; height:40px; }
}
.working-hours-btn {
  background: #fff; color: var(--brand-color); border: none; border-radius: 22px; padding: 8px 18px; cursor: pointer;
  font-size: 1rem; margin-top: 8px;
}
.working-hours-modal {
  position: fixed; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 40;
  display: flex; align-items: center; justify-content: center;
}
.working-hours-content {
  background: #fff; border-radius: 18px; padding: 24px; min-width: 260px;
}

/* Ultra-small screens: avoid any forced min-width overflow (causes horizontal scroll) */
@media (max-width: 360px){
  .cart-bar{
    min-width: 0;
    width: calc(100% - 24px);
    padding: 14px 18px;
    gap: 12px;
    font-size: 1.05rem;
    letter-spacing: .2px;
  }
  .cart-bar .label{ white-space: normal; }

  .working-hours-content{
    min-width: 0;
    width: calc(100% - 32px);
    max-width: 420px;
    padding: 18px;
    box-sizing: border-box;
  }
}
/* مودال اختيار الصنف */
.item-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.35); z-index:60; display:flex; align-items:center; justify-content:center; padding:16px; }
.item-modal { background:#fff; border-radius:22px; width:100%; max-width:420px; max-height:90vh; display:flex; flex-direction:column; }
.item-modal .modal-header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid #eee; font-weight:600; }
.item-modal .modal-header .close-btn { background:none; border:none; font-size:1.6rem; cursor:pointer; line-height:1; }
.item-modal .modal-body { overflow:auto; padding:14px 18px 4px; display:flex; flex-direction:column; gap:14px; }
.item-modal .modal-img { width:100%; height:180px; object-fit:cover; border-radius:16px; }
.item-modal .item-desc { font-size:.88rem; color:#0D0B45; line-height:1.5; white-space:pre-wrap; }
.item-modal .sec-title { font-weight:600; margin-bottom:6px; color:var(--brand-color); }
.item-modal .size-section .sec-title { color:#0D0B45; }
.item-modal label.radio, .item-modal label.checkbox { display:flex; align-items:center; gap:6px; margin-bottom:6px; font-size:.9rem; cursor:pointer; }
.item-modal .modal-footer { display:flex; align-items:center; gap:10px; padding:12px 16px; border-top:1px solid #eee; flex-wrap:nowrap; }
.item-modal .qty-box { display:flex; align-items:center; background:#f3f3f3; border-radius:14px; overflow:hidden; flex:0 0 auto; min-width:84px; }
 .item-modal .qty-btn { background:none; border:none; padding:6px; width:30px; text-align:center; cursor:pointer; font-size:1.05rem; line-height:1; }
.item-modal .qty { min-width:22px; text-align:center; font-weight:600; }
.item-modal .add-cart-btn { background:var(--brand-color); color:var(--ui-accent-text); border:none; border-radius:22px; padding:8px 12px; cursor:pointer; font-size:1rem; flex:1 1 0; min-width:0; }
.item-modal .final-price { margin-right:auto; font-weight:600; color:#0D0B45; white-space:nowrap; flex:0 0 auto; }

/* PWA install popup */
.pwa-install-overlay{ position:fixed; inset:0; background:rgba(0,0,0,0.35); z-index:110; display:flex; align-items:center; justify-content:center; padding:16px; }
.pwa-install-modal{ position:relative; background:#fff; border-radius:22px; width:100%; max-width:360px; padding:18px 18px 16px; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; box-shadow:0 10px 26px rgba(0,0,0,.18); }
.pwa-install-close{ position:absolute; top:10px; right:10px; width:36px; height:36px; border-radius:50%; border:none; background:#eee; color:#0D0B45; font-size:1.4rem; line-height:1; cursor:pointer; }
.pwa-install-logo{ width:76px; height:76px; border-radius:18px; overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; }
.pwa-install-logo img{ width:100%; height:100%; object-fit:contain; }
.pwa-install-name{ font-weight:700; color:#0D0B45; letter-spacing:.2px; }
.pwa-install-status{ min-height:18px; font-size:.9rem; color:#0D0B45; opacity:.85; }
.pwa-install-action{ width:100%; border:none; border-radius:999px; padding:12px 16px; background:var(--brand-color); color:var(--ui-accent-text); font-weight:700; cursor:pointer; }
.pwa-install-action:disabled{ opacity:.6; cursor:not-allowed; }
.pwa-install-action.is-loading{ display:inline-flex; align-items:center; justify-content:center; gap:10px; }
.pwa-install-spinner{ width:18px; height:18px; border-radius:50%; border:2px solid currentColor; border-top-color:transparent; animation:pwaSpin .9s linear infinite; display:inline-block; flex:0 0 auto; }
@keyframes pwaSpin{ to{ transform:rotate(360deg); } }

/* iOS install help (shown only on iPhone Safari) */
.pwa-install-modal--ios{ text-align:right; align-items:stretch; max-height:calc(100vh - 120px); overflow:auto; -webkit-overflow-scrolling:touch; }
.pwa-install-modal--ios .pwa-install-logo,
.pwa-install-modal--ios .pwa-install-name{ align-self:center; text-align:center; }
.pwa-ios-help-sub{ font-size:.92rem; color:#0D0B45; opacity:.9; line-height:1.5; }
.pwa-ios-steps{ display:flex; flex-direction:column; gap:12px; }
.pwa-ios-step{ background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:16px; padding:12px; }
.pwa-ios-step-title{ font-weight:800; color:#0D0B45; margin-bottom:4px; }
.pwa-ios-step-text{ color:#0D0B45; opacity:.92; line-height:1.5; }
.pwa-ios-step-img{ width:100%; display:block; margin-top:10px; border-radius:14px; background:#f3f3f3; }
@media (max-width:420px){
  .item-modal .add-cart-btn{ padding:8px 10px; font-size:.95rem; }
  .item-modal .modal-footer{ gap:8px; }
}
@media (max-width:340px){
  .item-modal .add-cart-btn{ padding:7px 10px; font-size:.9rem; }
  .item-modal .modal-footer{ gap:6px; }
  .item-modal .final-price{ font-size:.95rem; }
}

/* القائمة الجانبية (للهامبرجر) */
.side-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:120; display:none; }
.side-overlay.open{ display:block; }
.side-panel{ position:fixed; top:0; right:0; width:280px; max-width:85vw; height:100%; background:#fff; box-shadow:-2px 0 18px rgba(0,0,0,.18); transform:translateX(100%); transition:transform .25s ease; z-index:121; display:flex; flex-direction:column; }
.side-panel.open{ transform:translateX(0); }
.side-panel .sp-header{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #eee; color:#0D0B45; font-weight:600; }
.side-panel .sp-close{ background:#eee; border:none; width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:1.2rem; }
.side-panel .sp-menu{ display:flex; flex-direction:column; padding:8px 0; }
.side-panel .sp-menu a{ padding:12px 16px; text-decoration:none; color:#0D0B45; font-weight:600; border-bottom:1px solid #f3f3f3; }
.side-panel .sp-menu a:hover{ background:#f6f6f6; }
/* زر تسجيل الدخول بلون الهوية */
.side-panel .sp-menu .btn-login{ margin:10px 12px; padding:10px 14px; background:var(--brand-color); color: var(--ui-accent-text); border-radius:999px; border:none; display:block; text-align:center; font-weight:600; font-size:.9rem; box-shadow:none; }
.side-panel .sp-menu .btn-login:hover{ background:var(--brand-color); opacity:.95; }
.side-panel .sp-menu .btn-login{ border-bottom:none; }

/* عناصر السلة داخل الدروار */
.cart-drawer { font-family:'Cairo'; font-size:1.16rem; }
.cart-drawer .drawer-header { display:flex; align-items:center; justify-content:flex-start; gap:10px; }
.cart-drawer .drawer-header h3 { margin:0; font-size:1.25rem; font-weight:600; order:1; flex:1; text-align:right; }
.cart-drawer .drawer-header .close { background:#eee; border:none; font-size:1.2rem; cursor:pointer; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; order:2; }
.cart-drawer .drawer-header .empty-cart-btn { background:#d32f2f; color:#fff; border:none; border-radius:14px; padding:7px 14px; font-size:.9rem; cursor:pointer; order:3; }
.cart-drawer .drawer-header .empty-cart-btn:hover { background:#b71c1c; color:#fff; }
.cart-drawer .drawer-body { flex:1; overflow:auto; margin:12px 0; display:flex; flex-direction:column; gap:10px; min-height:0; }
.cart-drawer .cart-line { display:grid; grid-template-columns:auto 1fr 74px; gap:10px; align-items:start; padding:10px; border:1px solid #eee; border-radius:14px; background:#fff; direction:ltr; }
.cart-drawer .cart-controls{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.cart-drawer .remove-line { background:#f3f3f3; border:none; width:30px; height:30px; border-radius:10px; font-size:1.2rem; cursor:pointer; color:#d32f2f; line-height:1; display:flex; align-items:center; justify-content:center; }
.cart-drawer .qty-controls { display:flex; align-items:center; gap:6px; background:#f3f3f3; padding:3px 7px; border-radius:12px; direction:ltr; }
.cart-drawer .qty-controls button { background:none; border:none; font-size:1.15rem; cursor:pointer; line-height:1; padding:0; }
.cart-drawer .qty-controls span { font-weight:700; line-height:1; }
.cart-drawer .info { min-width:0; text-align:right; direction:rtl; }
.cart-drawer .info .name { font-weight:700; }
.cart-drawer .info .line-price { margin-top:2px; font-weight:700; color:#0D0B45; font-size:1.12rem; }
.cart-drawer .info .size, .cart-drawer .info .opts { font-size:.92rem; color:#0D0B45; margin-top:2px; }
.cart-drawer .cart-thumb-wrap{ width:74px; height:74px; border-radius:14px; overflow:hidden; background:#f3f3f3; flex:0 0 auto; justify-self:end; }
.cart-drawer .cart-thumb{ width:100%; height:100%; object-fit:cover; display:block; }
.cart-drawer .drawer-footer { border-top:1px solid #eee; padding-top:12px; display:flex; flex-direction:column; gap:10px; }
.cart-drawer .total { font-weight:600; color:#0D0B45; }
.cart-drawer .breakdown { display:flex; flex-direction:column; gap:8px; font-size:1.02rem; }
.cart-drawer .breakdown .row { display:flex; align-items:center; justify-content:space-between; }
.cart-drawer .breakdown #discountRow span:first-child { color:#388E3C; }
.cart-drawer .breakdown #discountVal { color:#388E3C; }
.cart-drawer .breakdown .total-row { font-weight:600; font-size:1.22rem; border-top:1px solid #eee; padding-top:10px; margin-top:4px; display:flex; align-items:flex-end; }
/* الكلمة 'الإجمالي' باللون الداكن، والقيمة باللون الرئيسي وبحجم أكبر */
.cart-drawer .breakdown .total-row span:first-child { color:#0D0B45; font-weight:600; font-size:1.22rem; }
.cart-drawer .breakdown .total-row span:last-child { color:#0D0B45; font-weight:700; font-size:1.42rem; }
.cart-drawer .checkout-btn { background:var(--brand-color); color:var(--ui-accent-text); border:none; border-radius:28px; padding:12px 18px; cursor:pointer; font-size:1.1rem; font-weight:700; letter-spacing:.25px; box-shadow:0 4px 12px rgba(0,0,0,.12); }
.cart-drawer .checkout-btn:hover { background:var(--brand-color); }
.cart-bar:hover { background:var(--brand-color); }
/* أظهر زر إفراغ السلة داخل الهيدر */
.cart-drawer .empty-cart-btn { display:inline-flex; align-items:center; justify-content:center; }
.cart-drawer .empty { text-align:center; padding:40px 0; color:#999; }
@media (max-width:520px){
  .item-modal { max-width:95%; }
  .cart-drawer { width:100%; }
  .cart-drawer .cart-line { grid-template-columns:auto 1fr 68px; gap:8px; }
  .cart-drawer .cart-thumb-wrap{ width:68px; height:68px; border-radius:12px; }
  .cart-drawer .remove-line { width:28px; height:28px; border-radius:10px; font-size:1.15rem; }
  .cart-drawer .qty-controls { padding:3px 7px; }
  .cart-drawer .info .name { font-size:1.02rem; }
  .cart-drawer .info .line-price { font-size:1.08rem; }
  .cart-drawer .info .size, .cart-drawer .info .opts { font-size:.88rem; }
  .cart-drawer .checkout-btn { width:100%; }
}

/* حالات الضغط (active) لتوحيد اللون ومنع ظهور درجة #ad1457 تلقائياً */
/* تأثير الضغط: تكبير/تصغير خفيف بدون تغيير لون */
.social-icon:active,
.add-btn:active,
.item-modal .add-cart-btn:active,
.cart-drawer .checkout-btn:active,
.cart-bar:active {
  background: var(--brand-color) !important;
  transform: scale(.94);
  box-shadow: 0 4px 14px rgba(0,0,0,.25) !important;
}
/* الحفاظ على التوسيط أثناء الضغط للزر العائم */
.cart-bar:not(.hidden):active { transform:translate(-50%,0) scale(.94) !important; }
/* انتقالات ناعمة للحركة */
.social-icon,
.add-btn,
.item-modal .add-cart-btn,
.cart-drawer .checkout-btn,
.cart-bar { transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s, background-color .18s; }

/* منع المتصفح من تعديل لون الزر أثناء الضغط في بعض الأنظمة */
button, .add-btn, .cart-bar, .cart-drawer .checkout-btn, .item-modal .add-cart-btn { -webkit-appearance:none; appearance:none; -webkit-user-select:none; user-select:none; }

/* إشعارات Toast */
.toast-container { position:fixed; top:18px; left:50%; transform:translateX(-50%); z-index:10000; display:flex; flex-direction:column; gap:10px; width:auto; max-width:92vw; align-items:center; pointer-events:none; }
.toast { background:#222; color:#0D0B45; padding:8px 12px; border-radius:16px; font-size:.85rem; font-weight:600; box-shadow:none; opacity:0; transform:translateY(-10px) scale(.95); animation:toast-in .4s forwards; direction:rtl; display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; max-width:92vw; text-align:center; pointer-events:auto; }
.toast.success { background:rgba(46, 125, 50, 0.90); color:#fff; }
.toast.success .close { color:#fff; }
.toast.error { background:#d32f2f; color:#fff; }
.toast.error .close { color:#fff; }
.toast .close { background:none; border:none; color:#0D0B45; cursor:pointer; font-size:1rem; padding:0; line-height:1; pointer-events:auto; }
@keyframes toast-in { to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toast-out { to { opacity:0; transform:translateY(-8px) scale(.95); } }

/* عروض (Offers) باستخدام Swiper */
.offers-section { margin: 12px 0; padding: 0 8px; }
/* إعداد موحّد لسلايدر العروض على كل الشاشات (كروت عروض) */
.offers-section .swiper { width: 100%; margin: 10px auto; overflow: hidden; background: transparent; }
.offers-section .swiper-slide { display: flex; align-items: stretch; justify-content: center; height: auto; }
.offers-section .swiper-slide .offer-card{ width: 100%; }

/* ديسكتوب: لو 3 عروض أو أقل، اعرضهم صف ثابت يتمدد بعرض الشاشة */
.offers-section .offers-row{ display:flex; gap:14px; align-items:stretch; }
.offers-section .offers-row .offer-card{ flex: 1 1 0; width:auto; }

/* صفحة هبوط التصنيفات فقط */
.cats-landing {
  max-width: 1100px; margin: 0 auto; padding: 0 0 26px; /* إزالة الحشوة الأفقية لتقليل الفراغ الجانبي تحت الهيدر */
}
.cats-landing .grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px){ .cats-landing .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px){ .cats-landing .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px){ .cats-landing .grid { grid-template-columns: repeat(5, 1fr); } }
.cats-landing .card { background:transparent; border-radius:18px; overflow:hidden; display:flex; flex-direction:column; align-items:stretch; cursor:pointer; box-shadow:none; }
.cats-landing .card .cat-img-wrap { width:100%; position:relative; }
.cats-landing .card .cat-img-wrap img { width:100%; display:block; height:120px; object-fit:contain; background:transparent; padding:0; }

/* تقليل الفراغ الأبيض الجانبي بإضافة حشوة داخلية للشبكة فقط عند الحاجة */
.cats-landing .grid { padding:0 6px; }
@media (min-width:640px){ .cats-landing .grid { padding:0 8px; } }
.cats-landing .card .name { text-align:center; padding:8px 8px 12px; font-weight:600; font-size: 1.1rem; color: var(--landing-category-text, #0D0B45); }
.cats-landing .header-spacer { height: 12px; }

/* Landing footer (brand color with white outlined circular icons) */
.landing-footer { background: var(--brand-color); color:var(--ui-accent-text); text-align:center; padding:28px 16px; margin-top:26px; font-family:'Cairo' !important; }
.landing-footer .inner { max-width: 900px; margin: 0 auto; }
.landing-footer .title { font-weight:600; font-size:1.05rem; margin-bottom:12px; letter-spacing:.2px; }
.landing-footer .app-download-cta{ margin-bottom: 18px; }
.landing-footer .landing-download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 16px;
  border-radius:999px;
  border:1.5px solid var(--ui-accent-text);
  color:var(--ui-accent-text);
  text-decoration:none;
  background:transparent;
  font-weight:800;
}
.landing-footer .landing-download-btn .ic{ display:inline-flex; width:22px; height:22px; }
.landing-footer .landing-download-btn .ic svg{ width:22px; height:22px; }
.landing-footer .landing-download-btn:hover{ opacity:.92; }
.landing-footer .icons { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.landing-footer .landing-social { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--ui-accent-text); border:1.5px solid var(--ui-accent-text); text-decoration:none; background:transparent; }
.landing-footer .landing-social svg { width:22px; height:22px; }
.landing-footer .landing-social:hover { opacity:.9; }
/* address + copyright for unified footer */
.landing-footer .addr { margin-top:14px; font-weight:600; font-size:.9rem; line-height:1.5; letter-spacing:.2px; display:flex; align-items:center; justify-content:center; gap:8px; }
.landing-footer .addr .addr-ic { display:inline-flex; width:20px; height:20px; color:inherit; }
.landing-footer .addr .addr-ic svg { width:20px; height:20px; }
.landing-footer .copyright { margin-top:16px; font-size:.75rem; opacity:.85; }
/* ديسكتوب: اسمح بعرض أكثر من كارت بجانب بعض */
@media (min-width: 1024px){
  .offers-section .swiper { max-width: none; }
}

/* صفحة العروض (صفوف ثابتة - بدون كارسول) */
.offers-page{ max-width: none; margin: 0; padding: 14px 8px calc(18px + var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
.offers-hero{ position:relative; border-radius: 20px; overflow:hidden; background:#000; }
.offers-hero__img{ width:100%; aspect-ratio: 16 / 9; height:auto; display:block; object-fit: cover; background:#000; }
.offers-hero__overlay{ position:absolute; inset:0; background: var(--header-overlay); pointer-events:none; }
.offers-hero__title{ position:absolute; right:12px; bottom:12px; z-index:2; background: rgba(255,255,255,.92); color: var(--ui-accent-text, #0D0B45); padding: 8px 12px; border-radius: 14px; font-weight: 800; font-size: 1.1rem; }
.offers-list{ margin-top: 10px; display:grid; gap: 10px; grid-template-columns: 1fr; }
.offers-empty{ text-align:center; padding: 34px 0; color:#777; font-weight:600; }
.offer-card{ display:flex; gap: 0px; background:#fff; border:1px solid rgba(0,0,0,.06); border-radius: 18px; overflow:hidden; height: 140px; position:relative; }
.offer-card__img{ width: 140px; height: 100%; object-fit: cover; background:#000; flex: 0 0 auto; }
.offer-card__body{ padding: 0px 9px 46px; display:flex; flex-direction:column; gap: 4px; flex: 1 1 auto; min-width: 0; position:relative; }
.offer-card__head{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.offer-card__name{ font-weight: 900; font-size: 1.1rem; color: var(--offers-name-color, var(--ui-accent-text, #0D0B45)); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-card__row{ display:flex; align-items:center; gap: 8px; }
.offer-card__price{ font-weight: 800; color: var(--brand-color); font-size: 1.9rem; line-height: 2; text-align:left; white-space: nowrap; flex: 0 0 auto; }
.offer-card__add{ position:absolute; left: 10px; bottom: 10px; margin:0; border: none; background: var(--brand-color); color:#fff; padding: 7px 10px; border-radius: 14px; font-weight: 800; font-size: .9rem; cursor: pointer; white-space: nowrap; z-index: 1; }
.offer-card__add:active{ transform: translateY(1px); }
.offer-card__details{ color:#666; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; display:-webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow:hidden; }

/* اجعل الوصف أسفل الكارت على نفس صف زر الإضافة */
.offer-card--details-inline .offer-card__details{
  position:absolute;
  bottom: 10px;
  right: 10px;
  left: 130px; /* اترك مساحة لزر الإضافة في اليسار */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display:block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
@media (max-width: 520px){
  .offers-list{ grid-template-columns: 1fr; }
  .offer-card{ flex-direction:column; height:auto; }
  .offer-card__img{ width:100%; height: auto; aspect-ratio: 3 / 2; max-height: 140px; }
}

@media (min-width: 640px){
  .offers-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .offers-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers-list.offers-list--fit{ grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}

/* Buttons inherit Cairo already via the global * rule; keep a lightweight reinforcement only for legacy cases */
button, input[type="button"], input[type="submit"], .btn { font-family:'Cairo' !important; }


/* ضمان تطبيق الخط على كل العناصر */
/* Heavy universal override (body *) removed to reduce performance cost; global * selector above already enforces Cairo. */

/* Removed duplicate @font-face blocks and excessive forced redraw hacks.
   Single canonical @font-face definitions live at top of this file (weights 300–800).
   If runtime enforcement is still needed, JS ensureCairoFontRuntime adds .force-cairo. */
