/* 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 */
body {
  background: #fafafa;
  margin: 0;
  direction: rtl;
  font-size:17px; /* تكبير بسيط للخط الافتراضي */
  -webkit-font-smoothing: antialiased;
  color: #0D0B45; /* تعيين لون النص الافتراضي الداكن */
  overflow-x: hidden; /* منع التمرير الأفقي كحماية إضافية */
}
/* الصفحة الرئيسية بخلفية بيضاء فقط على الهوم */
body.home { 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; }
:root {
  --brand-color: #1976d2;
  --brand-color-dark: #1565c0; /* hover */
  --header-overlay: rgba(0,0,0,0.4);
  --logo-circle-color: #fff;
  --topbar-h: 64px;
  /* لون لهوية نصية للأماكن المحددة (نصوص وأشكال فقط) */
  --ui-accent-text: #0D0B45;
}
#app {
  min-height: 100vh;
}
/* الهيدر */
/* NOTE: Removed erroneous <link> tag accidentally inserted inside CSS which could break parsing */
.header {
  position: relative;
  width: 100%;
  height: 460px; /* زيادة الارتفاع لتوفير فراغ علوي/سفلي مريح */
  overflow: hidden;
  background: #000; /* fallback color while image loading */
}

@media (max-width:680px){ .header { height: 420px; } }
.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: 120px; height: 120px; /* أبعاد مربعة لضمان دائرية تامة */
  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: 100px; height: 100px; }
}
.site-name {
  text-align: center;
  color: #fff;
  font-size: 1.9rem; /* كان 2.2rem */
  margin-top: 18px;
  font-weight: 600;
  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;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* زر الدعوة (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: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; }
.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: 8px 0;
  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-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: #fff; 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: 130px; /* ارتفاع ثابت مناسب للكرت الثابت */
  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 3px; font-size: .88rem; font-weight:600; width:100%; text-align:center; line-height:1.1; }
.item-price { margin: 0; font-size:1rem; 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: 110px; }
  .item-card .info { padding: 2px 6px 3px; margin-top:4px; gap:2px; }
  .item-card .add-btn { width:28px; height:28px; }
  /* (داخل media) لا نعيد تعريف social-icon:hover لتجنب التكرار */
  .item-price { font-size:.95rem; }
}

/* 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:.85rem; font-weight:600; text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0 0 4px; line-height:1.25; padding-bottom:2px; }
/* في وضع القائمة: إخفِ السعر المدمج داخل 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:1rem; 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 .item-img { width: 110px; height: 74px; }
  .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:14px 40px; font-size:1.05rem; font-weight:600; 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:600; font-size:.95rem; }
.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:26px; 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:0 10px 26px -4px rgba(0,0,0,.35),0 4px 10px -2px rgba(0,0,0,.25); 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:0 6px 18px -4px rgba(0,0,0,.35),0 3px 8px -2px rgba(0,0,0,.25); }
.back-to-top svg { width:26px; height:26px; }
@media (max-width:640px){ .back-to-top { width:46px; height:46px; left:16px; bottom:calc(20px + 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;
}
/* وصولية */
:focus { outline:none !important; }

/* مودال اختيار الصنف */
.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; }
@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'; }
.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.05rem; font-weight:600; order:1; flex:1; text-align:right; }
.cart-drawer .drawer-header .close { background:#eee; border:none; font-size:1.1rem; 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:6px 12px; font-size:.65rem; 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:1fr auto auto auto; gap:10px; align-items:center; padding:8px 10px; border:1px solid #eee; border-radius:14px; background:#fff; }
.cart-drawer .cart-line .info .name { font-weight:600; }
.cart-drawer .cart-line .info .size, .cart-drawer .cart-line .info .opts { font-size:.75rem; color:#0D0B45; margin-top:2px; }
.cart-drawer .qty-controls { display:flex; align-items:center; gap:6px; background:#f3f3f3; padding:4px 8px; border-radius:14px; }
.cart-drawer .qty-controls button { background:none; border:none; font-size:1.1rem; cursor:pointer; }
.cart-drawer .line-price { font-weight:600; color:#0D0B45; font-size:.95rem; }
.cart-drawer .remove-line { background:none; border:none; font-size:1.3rem; cursor:pointer; color:#d32f2f; }
.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:6px; font-size:.8rem; }
.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:1rem; border-top:1px solid #eee; padding-top:8px; 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.02rem; }
.cart-drawer .breakdown .total-row span:last-child { color:#0D0B45; font-weight:600; font-size:1.08rem; }
.cart-drawer .checkout-btn { background:var(--brand-color); color:var(--ui-accent-text); border:none; border-radius:28px; padding:14px 20px; cursor:pointer; font-size:1rem; font-weight:600; 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-areas: "info remove" "qty price"; 
    grid-template-columns: 1fr auto; 
    grid-auto-rows: auto; 
    gap:6px 8px; 
    align-items:start;
  }
  .cart-drawer .cart-line .info { grid-area: info; }
  .cart-drawer .cart-line .remove-line { grid-area: remove; align-self:start; font-size:1.2rem; padding:0 4px; }
  .cart-drawer .cart-line .qty-controls { grid-area: qty; gap:6px; padding:4px 10px; justify-self:start; }
  .cart-drawer .cart-line .line-price { grid-area: price; justify-self:end; font-size:.95rem; font-weight:600; }
  .cart-drawer .cart-line .info .name { font-size:.82rem; }
  .cart-drawer .cart-line .info .size, .cart-drawer .cart-line .info .opts { font-size:.7rem; }
  .cart-drawer .qty-controls button { font-size:1.05rem; }
  .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.10); color:#1B5E20; }
.toast.success .close { color:#1B5E20; }
.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; }
/* Swiper container should be rounded and not overflow */
/* إعداد موحّد لسلايدر العروض على كل الشاشات لمنع التداخل */
.offers-section .swiper { width: 100%; margin: 10px auto; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9; height: auto; background:#fff; }
.offers-section .swiper-slide { display: flex; align-items: center; justify-content: center; }
/* موبايل: إظهار الصورة كاملة */
@media (max-width: 1023px){
  .offers-section .swiper { aspect-ratio: auto; height: auto; }
  .offers-section .swiper-slide img { width:100%; height:auto; object-fit: contain; object-position:center; border-radius: 18px; display:block; }
}

/* صفحة هبوط التصنيفات فقط */
.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:0; overflow:visible; 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:160px; object-fit:contain; background:transparent; padding:0; }
@media (min-width:640px){ .cats-landing .card .cat-img-wrap img { height:150px; } }
@media (min-width:900px){ .cats-landing .card .cat-img-wrap img { height:140px; } }
@media (min-width:1200px){ .cats-landing .card .cat-img-wrap img { height:130px; } }

/* تقليل الفراغ الأبيض الجانبي بإضافة حشوة داخلية للشبكة فقط عند الحاجة */
.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(--brand-color); }
.cats-landing .card .name { color:#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 .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 (max-width: 479px){
  .offers-section .swiper { aspect-ratio: auto; }
}
/* ديسكتوب: ملء الإطار بنسبة 16:9 مع cover */
@media (min-width: 1024px){
  .offers-section .swiper { max-width: 900px; aspect-ratio: 16 / 9; }
  .offers-section .swiper-slide img { width:100%; height:100%; object-fit: cover; object-position:center; border-radius: 18px; display:block; }
}

/* 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. */
