/* ==========================================================================
   Perssa Luxury Pet Store - High-End Boutique Style System
   الهوية الفاخرة لمتجر Perssa
   - خلفية أبيض مائل للرمادي الفاتح (#F7F7F5) في كل الصفحات
   - بطاقات بيضاء نقية مع ظلال ناعمة خفيفة
   - لمسات ذهبية / برونزية راقية متناغمة مع الشعار
   - نصوص داكنة نقية وعالية التباين
   - تجاوب كامل: 4 أعمدة بالكمبيوتر، وعمودين (4 كروت بالكامل في الشاشة) بالهاتف
   ========================================================================== */

:root {
  /* ==========================================================================
     الهوية اللونية الرسمية لمتجر Perssa
     - أزرق بترولي غامق #123C4A: اللون الأساسي للهوية (الهيدر، الفوتر، العناوين الرئيسية)
     - تركواز/أخضر طبي #22A89A: الأزرار الأساسية (أضف للسلة، تسوق الآن)، الأيقونات، العناصر التفاعلية
     - أبيض #FFFFFF: خلفية الموقع العامة
     - رمادي فاتح جداً #F4F6F7: خلفيات الأقسام وبطاقات المنتجات والأقسام
     - برتقالي دافئ #F59A3C: مخصص فقط للعروض والخصومات وعبارات "اطلب الآن"
     - رمادي غامق #263238: لكل النصوص (العناوين الفرعية والفقرات) بدلاً من الأسود
     ========================================================================== */
  --primary-petrol: #123C4A;
  --primary-petrol-dark: #0A2630;
  --primary-petrol-light: #1D5366;

  --primary-teal: #22A89A;
  --primary-teal-hover: #1C8D81;
  --primary-teal-light: #E0F2F1;
  --primary-teal-border: #80CBC4;

  --accent-orange: #F59A3C;
  --accent-orange-hover: #E08528;
  --accent-orange-light: #FFF3E0;

  --bg-page: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-card: #F4F6F7;
  --bg-card-alt: #EBF0F2;
  --bg-warm-tint: #F4F6F7;
  --bg-gold-tint: #EBF0F2;

  --text-dark: #263238;
  --text-title: #123C4A;
  --text-body: #263238;
  --text-muted: #546E7A;
  --text-light: #78909C;

  /* توافق مع المتغيرات المستخدمة عبر الكود */
  --gold-primary: #22A89A;
  --gold-dark: #123C4A;
  --gold-light: #E0F2F1;
  --gold-border: #B2DFDB;
  --gold-border-subtle: #E0F2F1;
  --gold-gradient: linear-gradient(135deg, #22A89A 0%, #177C71 100%);
  --gold-gradient-hover: linear-gradient(135deg, #27BAAA 0%, #1C8D81 100%);
  --gold-shadow: 0 4px 18px rgba(34, 168, 154, 0.28);
  --gold-color: #22A89A;

  /* حدود وظلال ناعمة ومتناغمة */
  --border-delicate: #E2E8F0;
  --border-card: #E2E8F0;
  --shadow-subtle: 0 3px 12px rgba(18, 60, 74, 0.05);
  --shadow-card: 0 4px 16px rgba(18, 60, 74, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 10px 26px rgba(18, 60, 74, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 20px 45px rgba(18, 60, 74, 0.22);

  /* ألوان وتدرجات الواتساب المباشر */
  --whatsapp-green: #25D366;
  --whatsapp-dark: #1EBE5D;
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);

  /* الخطوط */
  --font-main: 'IBM Plex Sans Arabic', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;

  /* نصف قطر الزوايا */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* إعادة التعيين والتحكم بالحركة والنصوص */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  touch-action: manipulation;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.55;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* روابط وأزرار عامة */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* الحاوية الأساسية للمتجر */
.site-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

/* ==========================================================================
   الهيدر الرئيسي الجديد (Main Header — Fixed)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 900;
  background: var(--primary-petrol);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-right-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo {
  flex-shrink: 0;
  margin-inline-start: auto;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  direction: ltr;
}
.header-logo-img { height: 42px; width: auto; object-fit: contain; filter: brightness(1.1); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.logo-name { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: #FFFFFF; letter-spacing: 0.5px; }
.logo-tagline { font-size: 0.68rem; color: var(--primary-teal); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
  padding: 6px 14px;
  font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: var(--radius-full);
  transition: all 0.18s ease;
  text-decoration: none; white-space: nowrap;
}
.nav-item:hover { color: #FFFFFF; background: rgba(255,255,255,0.1); }
.nav-item.active { color: #FFFFFF; background: rgba(34,168,154,0.2); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-search-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  padding: 6px 14px; gap: 8px;
  transition: background 0.18s ease, border-color 0.18s ease;
  margin-inline-start: 6px;
}
.header-search-wrap:focus-within {
  background: rgba(255,255,255,0.18);
  border-color: rgba(34,168,154,0.5);
}
.search-icon { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.header-search-input {
  background: none; border: none; outline: none;
  color: #FFFFFF; font-family: var(--font-main); font-size: 0.83rem;
  width: 150px; direction: rtl;
  transition: width 0.2s ease;
}
.header-search-input::placeholder { color: rgba(255,255,255,0.5); }
.header-search-wrap:focus-within .header-search-input { width: 190px; }
.header-icon-btn, .header-cart-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: var(--radius-full);
  color: #FFFFFF; font-size: 1rem; position: relative;
  transition: background 0.18s ease, transform 0.15s ease; cursor: pointer; border: none;
  flex-shrink: 0;
}
.header-icon-btn:hover, .header-cart-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.cart-count-badge {
  position: absolute; top: -5px; left: -5px;
  background: var(--accent-orange); color: #FFFFFF;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--primary-petrol); line-height: 1;
}
.header-mobile-menu-btn {
  display: none; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: var(--radius-sm);
  color: #FFFFFF; font-size: 1.1rem; cursor: pointer; border: none;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.header-mobile-menu-btn:hover { background: rgba(255,255,255,0.2); }
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 850; background: rgba(0,0,0,0.45);
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
  display: none; position: fixed;
  top: 68px; right: 0; left: 0; z-index: 860;
  background: var(--primary-petrol);
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-item {
  padding: 12px 24px; font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 600;
  color: rgba(255,255,255,0.85); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav-item:hover { color: #FFFFFF; background: rgba(255,255,255,0.08); }

/* ==========================================================================
   1. بنر الهيرو الرئيسي بعرض كامل (Full-Width Hero Banner)
   ========================================================================== */
.hero-banner-section {
  width: 100%;
  margin-top: 68px; /* يعوض ارتفاع الهيدر الثابت */
  background: #F4F6F7;
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.hero-banner-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #F4F6F7;
  display: block;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 21 / 9;
  max-height: 540px;
  min-height: 260px;
  background-color: #F4F6F7;
}

/* افكت التدرج اللوني على البنر من الأسفل للأعلى (مثل كروت الأقسام) */
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 60, 74, 0.02) 0%,
    rgba(18, 60, 74, 0.22) 45%,
    rgba(18, 60, 74, 0.78) 82%,
    rgba(18, 60, 74, 0.92) 100%
  );
  z-index: 2;
  pointer-events: none;
  transition: background 0.4s ease;
}
.hero-banner-container:hover .hero-banner-overlay {
  background: linear-gradient(
    180deg,
    rgba(18, 60, 74, 0.05) 0%,
    rgba(18, 60, 74, 0.32) 45%,
    rgba(18, 60, 74, 0.84) 82%,
    rgba(18, 60, 74, 0.95) 100%
  );
}

/* أزرار الإجراءات على البنر (تسوق الآن وتواصل معنا) */
.hero-banner-actions {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px;
  z-index: 10;
  padding: 0 16px;
  line-height: normal;
}
.btn-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 28px;
  border-radius: var(--radius-full, 50px);
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}
.btn-banner-shop {
  background: var(--primary-teal);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(34, 168, 154, 0.45);
}
.btn-banner-shop:hover {
  background: var(--primary-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(34, 168, 154, 0.6);
  color: #FFFFFF !important;
}
.btn-banner-contact {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-petrol) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-banner-contact i {
  color: #25D366;
  font-size: 1.15rem;
  transition: color 0.25s ease;
}
.btn-banner-contact:hover {
  background: #25D366;
  color: #FFFFFF !important;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}
.btn-banner-contact:hover i {
  color: #FFFFFF;
}

/* ==========================================================================
   2. قسم المحتوى تحت البنر مباشرة (Hero Intro Content)
   ========================================================================== */
.hero-intro-section {
  background: #F4F6F7;
  border-bottom: 1px solid #E2E8F0;
  padding: 46px 20px 52px;
  text-align: center;
  position: relative;
}
.hero-intro-container {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-intro-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-petrol);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero-intro-desc {
  font-size: 1.12rem;
  color: #5A6A7E;
  margin-bottom: 26px;
  font-weight: 500;
  max-width: 650px;
  line-height: 1.6;
}
.hero-intro-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.btn-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  background: var(--accent-orange, #F59A3C);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full, 50px);
  border: 1.5px solid transparent;
  box-shadow: 0 4px 18px rgba(245, 154, 60, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}
.btn-hero-action:hover,
.btn-hero-action:active {
  background: var(--accent-orange-hover, #E08528);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 154, 60, 0.55);
  color: #FFFFFF !important;
}
.btn-hero-action i {
  font-size: 1.15rem;
  color: #FFFFFF !important;
}
.btn-shop-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 32px;
  background: var(--accent-orange, #F59A3C);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(245, 154, 60, 0.4);
  transition: all 0.22s ease;
  text-decoration: none;
}
.btn-shop-now:hover {
  background: var(--accent-orange-hover, #E08528);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 154, 60, 0.55);
  color: #FFFFFF;
}
.hero-features {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-petrol);
  background: #FFFFFF;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-feature-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.hero-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(34, 168, 154, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22A89A;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ==========================================================================
   قسم الأقسام الرئيسية الثلاثة (Main Category Banners)
   ========================================================================== */
.main-categories-section {
  padding: 48px 0 36px;
  background: var(--bg-warm-tint);
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.main-categories-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.main-categories-header {
  text-align: center;
  margin-bottom: 28px;
}
.categories-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-teal);
  background: rgba(34,168,154,0.12);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.main-categories-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 6px;
}
.main-categories-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.main-categories-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
  margin: 0 auto;
}
.category-banner-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18,60,74,0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.7);
  user-select: none;
}
.category-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18,60,74,0.18);
}
.category-banner-card:focus-visible {
  outline: 3px solid var(--primary-teal);
  outline-offset: 3px;
}
.category-banner-img-box {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.category-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-banner-card:hover .category-banner-img {
  transform: scale(1.06);
}
.category-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 60, 74, 0.04) 0%,
    rgba(18, 60, 74, 0.45) 45%,
    rgba(18, 60, 74, 0.92) 100%
  );
  z-index: 2;
  transition: background 0.3s ease;
}
.category-banner-card:hover .category-banner-overlay {
  background: linear-gradient(
    180deg,
    rgba(18, 60, 74, 0.08) 0%,
    rgba(18, 60, 74, 0.55) 45%,
    rgba(18, 60, 74, 0.96) 100%
  );
}
.category-banner-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 3;
  padding: 20px 24px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.category-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.28);
}
.category-banner-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.category-banner-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  margin-bottom: 14px;
}
/* زر تسوق الآن داخل البانر */
.category-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-teal);
  background: #FFFFFF;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
}
.category-banner-card:hover .category-banner-action {
  background: var(--primary-teal);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(34,168,154,0.4);
}
.category-banner-action i {
  transition: transform 0.22s ease;
}
.category-banner-card:hover .category-banner-action i {
  transform: translateX(-4px);
}

@media (max-width: 640px) {
  .main-categories-grid {
    gap: 14px;
  }
  .category-banner-card {
    height: 260px;
  }
  .category-banner-name {
    font-size: 1.25rem;
  }
  .category-banner-desc {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .category-banner-content {
    padding: 14px 16px;
  }
  .category-banner-action {
    font-size: 0.82rem;
    padding: 7px 14px;
  }
  .main-categories-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   2. قسم "منتجات مختارة لك" (Featured Products)
   ========================================================================== */
.featured-section { background: #FFFFFF; padding: 56px 0 48px; }
.featured-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.featured-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.featured-title { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 800; color: var(--text-dark); position: relative; }
.featured-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary-teal); border-radius: 2px; margin-top: 6px; }
.featured-see-all { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: var(--primary-teal); text-decoration: none; transition: opacity 0.15s; }
.featured-see-all:hover { opacity: 0.7; }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.featured-card {
  background: #FFFFFF; border: 1px solid var(--border-card);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  overflow: hidden; transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex; flex-direction: column; position: relative;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.discount-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent-orange); color: #FFFFFF;
  font-size: 0.72rem; font-weight: 800; padding: 4px 9px;
  border-radius: var(--radius-full); z-index: 5;
  box-shadow: 0 2px 8px rgba(245,154,60,0.4);
}
.featured-card-img-box {
  background: var(--bg-card); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.featured-card-img-box img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform 0.3s ease; }
.featured-card:hover .featured-card-img-box img { transform: scale(1.04); }
.featured-card-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.featured-card-name { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: var(--text-dark); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.featured-price-wrap { display: flex; flex-direction: column; gap: 2px; }
.featured-price-original { font-size: 0.75rem; color: #94a3b8; text-decoration: line-through; }
.featured-price-current { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: var(--primary-teal); }
.featured-price-currency { font-size: 0.78rem; font-weight: 500; }
.btn-featured-add-cart {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-teal); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; border: none; cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(34,168,154,0.3); flex-shrink: 0;
}
.btn-featured-add-cart:hover { background: var(--primary-teal-hover); transform: scale(1.08); }
.featured-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--text-muted); font-size: 0.95rem; }

/* شارة الخصم على بطاقات المتجر */
.product-discount-badge {
  position: absolute; top: 10px; right: 10px;
  background: #E11D48; color: #FFFFFF;
  font-size: 0.7rem; font-weight: 800; padding: 4px 9px;
  border-radius: var(--radius-full); z-index: 6;
  box-shadow: 0 2px 8px rgba(225,29,72,0.35);
}
.product-price-original { font-size: 0.75rem; color: #94a3b8; text-decoration: line-through; }
.product-price-current-row { display: flex; align-items: baseline; gap: 4px; }
.product-price-original-row { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: #94a3b8; }
.product-price-original-label { font-size: 0.7rem; color: #64748B; font-weight: 500; }

/* Responsive الهيرو والهيدر */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-search-wrap { display: none; }
  .header-mobile-menu-btn { display: flex; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .hero-banner-section {
    margin-top: 68px;
    background: #F4F6F7;
  }
  .hero-banner-container {
    width: 100%;
    height: auto;
    background: #F4F6F7;
    display: block;
    position: relative;
  }
  .hero-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    min-height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background-color: #F4F6F7;
    display: block;
  }
  .hero-banner-actions {
    bottom: 14px;
    gap: 12px;
    padding: 0 12px;
    z-index: 10;
  }
  .btn-banner-action {
    padding: 9px 20px;
    font-size: 0.88rem;
    gap: 7px;
  }
  .hero-intro-section { padding: 34px 16px 38px; }
  .hero-intro-title { font-size: 1.65rem; }
  .hero-intro-desc { font-size: 0.98rem; margin-bottom: 22px; }
  .hero-features { gap: 12px; }
  .hero-feature-item {
    font-size: 0.82rem;
    padding: 8px 14px;
  }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 14px; height: 60px; }
  .header-right-side { gap: 8px; }
  .header-logo-img { height: 36px; }
  .logo-name { font-size: 1.05rem; }
  .logo-tagline { font-size: 0.6rem; }
  .main-header { --header-h: 60px; }
  .hero-banner-section {
    margin-top: 60px;
    background: #F4F6F7;
  }
  .hero-banner-container {
    width: 100%;
    height: auto;
    background: #F4F6F7;
    display: block;
    position: relative;
  }
  .hero-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    min-height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background-color: #F4F6F7;
    display: block;
  }
  .hero-banner-actions {
    bottom: 8px;
    gap: 8px;
    padding: 0 6px;
    z-index: 10;
  }
  .btn-banner-action {
    padding: 6px 13px;
    font-size: 0.76rem;
    gap: 5px;
  }
  .btn-banner-action i {
    font-size: 0.86rem;
  }
  .mobile-nav { top: 60px; }
  .hero-intro-section { padding: 26px 14px 30px; }
  .hero-intro-title { font-size: 1.38rem; }
  .hero-intro-desc { font-size: 0.88rem; margin-bottom: 18px; }
  .btn-shop-now { padding: 11px 32px; font-size: 0.95rem; }
  .hero-features {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 320px;
  }
  .hero-feature-item {
    font-size: 0.8rem;
    justify-content: flex-start;
  }
  .hero-feature-icon { width: 30px; height: 30px; font-size: 0.82rem; }
}

/* ==========================================================================
   الشريط العلوي الرقيق للإعلانات والتواصل السريع
   ========================================================================== */
.top-announcement-bar {
  background-color: var(--primary-petrol-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.top-announcement-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: #FFFFFF;
}

.gold-icon {
  color: var(--primary-teal);
  font-size: 0.9rem;
}

.announcement-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #FFFFFF;
  font-weight: 600;
  transition: color 0.15s ease;
}

.quick-contact-link:hover {
  color: var(--primary-teal);
}

.quick-contact-link i {
  color: var(--primary-teal);
}

.sep-dot {
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   1. الواجهة الرئيسية (Homepage) الفاخرة والهادئة
   ========================================================================== */
.luxury-hero {
  padding: 40px 20px 48px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, #FFFFFF 0%, var(--bg-page) 75%);
  border-bottom: 1px solid var(--border-delicate);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* الشعار (Perssa) بالمنتصف */
.hero-logo-box {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.perssa-main-logo {
  max-width: 270px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.07));
  transition: transform 0.25s ease;
}

.perssa-main-logo:hover {
  transform: scale(1.02);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  margin-bottom: 26px;
}

/* 2. زر واحد واضح "تسوق الآن" تحته */
.hero-cta-box {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.btn-shop-now-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 44px;
  min-height: 48px;
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--gold-shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-shop-now-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(197, 168, 128, 0.38);
}

.btn-shop-now-gold:active {
  transform: translateY(0);
}

.btn-shop-now-gold i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-shop-now-gold:hover i {
  transform: translateY(3px);
}

/* 3. بطاقات الأقسام بتصميم نظيف بدون ازدحام */
.home-categories-section {
  width: 100%;
  max-width: 1000px;
}

.section-badge-header {
  margin-bottom: 24px;
  text-align: center;
}

.luxury-badge {
  display: inline-block;
  padding: 4px 14px;
  background-color: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.home-section-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.home-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* شبكة بطاقات الأقسام (صورة + اسم القسم) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  justify-content: center;
}

/* بطاقة القسم */
.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-hover);
}

.category-card:active {
  transform: scale(0.98);
}

.category-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-gold-tint);
  position: relative;
  margin-bottom: 12px;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-img-box img {
  transform: scale(1.05);
}

.category-card-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
}

.category-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.category-action-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gold-light);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.category-card:hover .category-action-arrow {
  background-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateX(-3px);
}

/* ==========================================================================
   2. صفحة المتجر (Store Section)
   ========================================================================== */
.store-main-section {
  flex: 1;
  padding: 40px 20px 60px;
}

.store-section-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* شريط رأس المتجر والمسار */
.store-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-delicate);
  padding-bottom: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.store-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.breadcrumb-link {
  color: var(--gold-dark);
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.breadcrumb-link:hover {
  opacity: 0.8;
}

.breadcrumb-sep {
  color: var(--border-card);
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 600;
}

.store-heading {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark);
}

.store-stats-badge {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  box-shadow: var(--shadow-subtle);
}

/* شريط تبويبات الفلترة حسب الأقسام */
.filter-tabs-wrapper {
  margin-bottom: 26px;
}

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

.filter-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.filter-tab-btn {
  white-space: nowrap;
  padding: 9px 22px;
  min-height: 44px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.filter-tab-btn i {
  color: var(--gold-primary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.filter-tab-btn:hover {
  border-color: var(--gold-border);
  color: var(--text-dark);
  transform: translateY(-1px);
}

.filter-tab-btn.active {
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--gold-shadow);
}

.filter-tab-btn.active i {
  color: #FFFFFF;
}

/* ==========================================================================
   شبكة بطاقات المنتجات النظيفة (Products Grid)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* بطاقة المنتج الفاخرة */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-border);
}

/* إطار صورة المنتج وسلايدر الصور المتعددة للتنقل بالسحب (Swipe Slider) */
.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #FDFCFA;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}

.product-image-box:active {
  cursor: grabbing;
}

.product-slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  direction: ltr !important;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.product-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.35s ease;
}

.product-card:hover .product-slide img {
  transform: scale(1.03);
}

/* مؤشرات عدد الصور (النقاط أسفل صورة المنتج) */
.product-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slider-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.slider-dot::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -5px;
  right: -5px;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

.slider-dot.active {
  width: 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #DFD4C2 0%, #C5A880 100%);
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.7);
}

/* أسهم التنقل بالسلايدر عند التمرير بالماوس */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-dark, #1A1A1A);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-box:hover .slider-arrow {
  opacity: 0.92;
  pointer-events: auto;
}

.slider-arrow:hover {
  opacity: 1;
  background: var(--gold-gradient);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.45);
}

.slider-arrow-prev {
  right: 8px; /* بالسحب لليمين أو النقر */
}

.slider-arrow-next {
  left: 8px; /* بالسحب لليسار أو النقر */
}

/* شارة عدد الصور بالزاوية العلوية */
.product-img-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* زر تكبير الصورة عند الضغط أو التمرير */
.lightbox-trigger-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0.88;
  transition: all 0.2s ease;
  z-index: 2;
}

.lightbox-trigger-btn:hover {
  background: var(--gold-gradient);
  color: #FFFFFF;
  opacity: 1;
  transform: scale(1.08);
}

/* جسم بطاقة المنتج */
.product-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-box {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-price-value {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.product-currency-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* حاوية أزرار الكارت: "أضف للسلة" + "واتساب" */
.product-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

/* زر "أضف للسلة" التركوازي الأساسي */
.btn-add-to-cart {
  flex: 1;
  min-height: 42px;
  padding: 8px 10px;
  background-color: var(--primary-teal);
  border: 1px solid var(--primary-teal);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  touch-action: manipulation;
  cursor: pointer;
}

.btn-add-to-cart i {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
  color: #FFFFFF;
}

.btn-add-to-cart:hover {
  background-color: var(--primary-teal-hover);
  border-color: var(--primary-teal-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(34, 168, 154, 0.4);
}

.btn-add-to-cart:hover i {
  transform: scale(1.12);
}

.btn-add-to-cart:active {
  transform: scale(0.97);
}

/* حالة "في السلة" بعد الإضافة */
.btn-add-to-cart.in-cart {
  background: var(--primary-petrol);
  border-color: var(--primary-petrol);
  color: #FFFFFF;
}

.btn-add-to-cart.in-cart i {
  color: var(--primary-teal);
}

/* زر "اطلب الآن / طلب واتساب" برتقالي دافئ */
.btn-order-gold {
  flex-shrink: 0;
  min-height: 42px;
  width: 42px;
  padding: 0;
  background-color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  touch-action: manipulation;
  cursor: pointer;
}

.btn-order-gold i {
  font-size: 1.15rem;
  color: #FFFFFF;
  transition: color 0.18s ease;
}

.btn-order-gold:hover {
  background-color: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(245, 154, 60, 0.4);
}

.btn-order-gold:hover i {
  color: #FFFFFF;
}

.btn-order-gold:active {
  transform: scale(0.96);
}

/* ==========================================================================
   نظام تقسيم الصفحات (Pagination)
   ========================================================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  transition: all 0.18s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--gold-border);
  color: var(--gold-dark);
}

.page-btn.active {
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--gold-shadow);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   3. تذييل الموقع الفاخر (Footer)
   ========================================================================== */
.luxury-footer {
  margin-top: auto;
  background-color: var(--primary-petrol);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 20px 24px;
  color: #FFFFFF;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 36px;
  align-items: start;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  max-width: 170px;
  height: auto;
  margin-bottom: 6px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 440px;
}

.footer-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
}

.footer-contact-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-teal);
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.whatsapp-bg {
  background-color: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.insta-bg {
  background-color: rgba(225, 48, 108, 0.2);
  color: #FF6492;
}

.location-bg {
  background-color: rgba(34, 168, 154, 0.2);
  color: var(--primary-teal);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.contact-card-val {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.card-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-contact-card:hover .card-arrow {
  transform: translateX(-4px);
  color: var(--primary-teal);
}

.footer-bottom-bar {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-bar strong {
  color: #FFFFFF;
}

/* ==========================================================================
   نافذة تكبير الصورة (Image Lightbox Modal)
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 17, 0.88);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.btn-close-lightbox {
  position: absolute;
  top: -46px;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.btn-close-lightbox:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: #111113;
  max-width: 600px;
  width: 90vw;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}

.lightbox-slider-track {
  display: flex;
  flex-direction: row;
  direction: ltr !important;
  width: 100%;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.lightbox-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.lightbox-arrow:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow-prev {
  right: 12px;
}

.lightbox-arrow-next {
  left: 12px;
}

.lightbox-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

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

.lightbox-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.lightbox-dot.active {
  width: 22px;
  border-radius: 9999px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.8);
}

.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: #FFFFFF;
}

.lightbox-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.lightbox-price-tag {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary);
}

/* ==========================================================================
   نافذة الفاتورة والطلب عبر واتساب (Order Invoice Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 15, 17, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-delicate);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: #FFFFFF;
  z-index: 10;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-gold-paw {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--gold-light);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-title-group h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-close-modal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-page);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background-color: #EFEFEF;
  color: var(--text-dark);
}

.modal-body {
  padding: 20px 22px;
}

/* بطاقة ملخص المنتج في المودال */
.selected-product-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-card-alt);
  border: 1px solid var(--border-card);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.summary-prod-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-delicate);
}

.summary-prod-details {
  flex: 1;
}

.summary-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  background-color: var(--gold-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.summary-prod-details h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 4px 0 2px;
}

.summary-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-dark);
}

/* استمارة الطلب */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.required {
  color: #DC2626;
}

.optional-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  margin-right: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.input-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* جدول الفاتورة المالية المباشرة */
.invoice-financial-table {
  background-color: var(--bg-gold-tint);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-body);
}

.invoice-row .font-bold {
  color: var(--text-dark);
  font-weight: 700;
}

.invoice-row.total-row {
  border-top: 1px solid var(--gold-border);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-dark);
}

.total-price-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-dark);
}

/* زر إرسال الفاتورة عبر واتساب */
.btn-submit-order {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  background: var(--whatsapp-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.18s ease;
  margin-top: 6px;
  touch-action: manipulation;
}

.btn-submit-order:hover {
  background: linear-gradient(135deg, #2ae06d 0%, #159c8d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-submit-order:active {
  transform: scale(0.99);
}

.btn-submit-order i {
  font-size: 1.35rem;
}

/* ==========================================================================
   التجاوب مع الشاشات المختلفة (Responsive Media Queries)
   أولوية قصوى:
   1. الكمبيوتر (Desktop): 3 إلى 4 كروت بالسطر.
   2. الهاتف (Mobile): عمودان فقط (grid-template-columns: repeat(2, 1fr)).
      حجم الكروت محسوب لظهور سطرين كاملين (4 كروت) في شاشة الهاتف بدون تمرير!
   ========================================================================== */

/* أجهزة التابلت والشاشات المتوسطة (768px إلى 1024px) */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* الهواتف الذكية (Mobile: 640px وما دون) */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  /* إعلان أعلى الصفحة مبسط */
  .top-announcement-inner {
    justify-content: center;
    text-align: center;
  }

  .announcement-contact {
    display: none; /* إخفاء معلومات الاتصال من الشريط العلوي على الهاتف لتقليل الارتفاع */
  }

  /* الواجهة الرئيسية على الهاتف */
  .luxury-hero {
    padding: 24px 14px 28px;
  }

  .perssa-main-logo {
    max-width: 190px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .hero-cta-box {
    margin-bottom: 28px;
  }

  .btn-shop-now-gold {
    padding: 12px 32px;
    font-size: 1.05rem;
    min-height: 44px;
  }

  .home-categories-section {
    padding: 0 4px;
  }

  .home-section-title {
    font-size: 1.3rem;
  }

  /* بطاقات الأقسام على الهاتف: عمودان */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 10px;
  }

  .category-name {
    font-size: 0.9rem;
  }

  .category-action-arrow {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  /* قسم المتجر على الهاتف */
  .store-main-section {
    padding: 20px 10px 40px;
  }

  .store-header-bar {
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  .store-heading {
    font-size: 1.25rem;
  }

  .filter-tabs-wrapper {
    margin-bottom: 14px;
  }

  .filter-tab-btn {
    padding: 7px 16px;
    min-height: 38px;
    font-size: 0.85rem;
  }

  /* شبكة المنتجات على الهاتف: بطاقتان فقط بكل سطر */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  /* كارت المنتج محسوب هندسياً ليتسع سطرين كاملين (4 كروت) في شاشة هاتف واحدة */
  .product-card {
    border-radius: var(--radius-sm);
  }

  .product-image-box {
    aspect-ratio: 1 / 1;
  }

  .lightbox-trigger-btn {
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .product-card-body {
    padding: 8px 8px 10px;
  }

  .product-title {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-bottom: 4px;
    min-height: 2.6em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-price-box {
    margin-bottom: 6px;
    gap: 3px;
  }

  .product-price-value {
    font-size: 1.05rem;
  }

  .product-currency-label {
    font-size: 0.72rem;
  }

  .btn-order-gold {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .btn-order-gold i {
    font-size: 0.95rem;
  }

  /* نافذة الفاتورة على الهاتف تلتصق بالأسفل بسلاسة */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 90vh;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 16px;
  }

  /* الفوتر على الهاتف */
  .luxury-footer {
    padding: 30px 14px 20px;
  }

  .footer-contact-card {
    padding: 12px 14px;
  }

  .contact-card-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .contact-card-val {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   شريط التنقل العلوي مع زر السلة (Top Navbar)
   ========================================================================== */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--primary-petrol);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 10px 18px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo-mini {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* زر السلة في الهيدر */
.btn-open-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 40px;
  background-color: var(--primary-teal);
  border: 1px solid var(--primary-teal);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  touch-action: manipulation;
}

.btn-open-cart:hover {
  background-color: var(--primary-teal-hover);
  border-color: var(--primary-teal-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(34, 168, 154, 0.4);
}

.btn-open-cart .cart-count-badge {
  background: #FFFFFF;
  color: var(--primary-petrol);
}

.cart-label {
  font-size: 0.9rem;
}

.cart-icon-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-wrap i {
  font-size: 1.05rem;
}

/* شارة عداد السلة */
.cart-count-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
  line-height: 1;
}

/* حركة اهتزاز أيقونة السلة عند الإضافة */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.35) rotate(-8deg); }
  50%  { transform: scale(1.25) rotate(6deg); }
  75%  { transform: scale(1.15) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); }
}

.cart-bounce {
  animation: cartBounce 0.55s ease-out;
}

/* ==========================================================================
   السلة الجانبية (Cart Sidebar)
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 15, 17, 0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(92vw, 400px);
  height: 100dvh;
  background-color: #FFFFFF;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 30px rgba(0,0,0,0.12);
  transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.cart-sidebar.active {
  right: 0;
}

.cart-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-delicate);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.cart-sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-sidebar-title i {
  color: var(--gold-primary);
}

.btn-close-cart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-page);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-close-cart:hover {
  background-color: #EFEFEF;
  color: var(--text-dark);
}

/* رسالة السلة الفارغة */
.cart-empty-msg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
}

.cart-empty-msg i {
  font-size: 3rem;
  color: var(--gold-border);
}

.cart-empty-msg p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-empty-msg span {
  font-size: 0.88rem;
}

/* قائمة عناصر السلة */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-items-list::-webkit-scrollbar {
  width: 4px;
}

.cart-items-list::-webkit-scrollbar-track {
  background: var(--bg-page);
}

.cart-items-list::-webkit-scrollbar-thumb {
  background-color: var(--gold-border);
  border-radius: 4px;
}

/* عنصر داخل السلة */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: var(--bg-card-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.cart-item-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-delicate);
}

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

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cart-item-unit-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.cart-item-subtotal {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* أزرار تحكم الكمية */
.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-card);
  background-color: #FFFFFF;
  color: var(--text-body);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qty-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold-dark);
}

.qty-remove {
  color: #DC2626;
  border-color: #FECACA;
  margin-right: auto;
  margin-left: 4px;
}

.qty-remove:hover {
  background-color: #FEF2F2;
  border-color: #FCA5A5;
  color: #DC2626;
}

.qty-display {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 22px;
  text-align: center;
}

/* منطقة الدفع السفلية */
.cart-checkout-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-delicate);
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-total-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.btn-cart-checkout {
  width: 100%;
  min-height: 48px;
  padding: 13px;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--gold-shadow);
  cursor: pointer;
  transition: all 0.18s ease;
  touch-action: manipulation;
}

.btn-cart-checkout:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(197,168,128,0.4);
}

.btn-cart-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   نافذة فاتورة السلة الكاملة (Cart Invoice Modal)
   ========================================================================== */
.cart-invoice-overlay {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cart-invoice-dialog {
  max-width: 600px;
}

.cart-invoice-products-section {
  background-color: var(--bg-card-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.cart-inv-section-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-inv-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.cart-inv-products-list::-webkit-scrollbar {
  width: 4px;
}

.cart-inv-products-list::-webkit-scrollbar-thumb {
  background-color: var(--gold-border);
  border-radius: 4px;
}

/* صف منتج داخل فاتورة السلة */
.cart-inv-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-delicate);
}

.cart-inv-product-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-inv-prod-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  border: 1px solid var(--border-delicate);
}

.cart-inv-prod-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-inv-prod-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-inv-prod-price {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.cart-inv-qty-badge {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
}

.cart-inv-qty-badge strong {
  color: var(--text-dark);
}

/* ==========================================================================
   Infinite Scroll — مؤشر التحميل والـ Sentinel (هاتف)
   ========================================================================== */
.infinite-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-heading);
}

.infinite-loader-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold-border);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
}

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

.infinite-scroll-sentinel {
  height: 24px;
  width: 100%;
  pointer-events: none;
  opacity: 0;
}

.product-card-fade-in {
  animation: productCardFadeIn 0.22s ease-out forwards;
}

@keyframes productCardFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive — تعديلات الهاتف للعناصر الجديدة
   ========================================================================== */
@media (max-width: 640px) {

  /* الشريط العلوي */
  .top-navbar {
    padding: 8px 12px;
  }

  .navbar-logo-img {
    height: 30px;
  }

  .cart-label {
    display: none; /* إخفاء كلمة "السلة" على الهاتف لتوفير المساحة */
  }

  .btn-open-cart {
    padding: 8px 12px;
    gap: 0;
  }

  /* أزرار الكارت على الهاتف */
  .product-card-actions {
    gap: 5px;
  }

  .btn-add-to-cart {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .btn-add-to-cart i {
    font-size: 0.85rem;
  }

  .btn-order-gold {
    min-height: 38px;
    width: 38px;
  }

  .btn-order-gold i {
    font-size: 1.05rem;
  }

  /* السلة الجانبية على الهاتف */
  .cart-sidebar {
    width: 100vw;
  }

  /* نافذة فاتورة السلة على الهاتف */
  .cart-invoice-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cart-invoice-dialog {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 92vh;
  }

  .cart-inv-products-list {
    max-height: 160px;
  }
}

/* ========================================================= */
/* نافذة خيارات المنتج المتعددة (Multi-Select Variants Modal) */
/* ========================================================= */
.variant-modal-dialog {
  max-width: 500px;
}

.variant-prod-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.variant-prod-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-delicate);
  background: #FFFFFF;
}

.variant-prod-info h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-petrol);
  margin-bottom: 4px;
}

.variant-prod-base-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.variants-options-group {
  margin-bottom: 20px;
}

.variant-options-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.variants-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
}

.variant-pick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-delicate);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  gap: 12px;
}

.variant-pick-card:hover {
  border-color: var(--primary-teal);
  background: #F4F6F7;
}

.variant-pick-card.selected {
  border-color: var(--primary-teal);
  background: #E8F5F3;
  box-shadow: 0 2px 10px rgba(34, 168, 154, 0.15);
}

.variant-pick-check-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.variant-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.variant-pick-card.selected .variant-custom-checkbox {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
}

.variant-pick-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.variant-pick-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.variant-pick-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.variant-pick-stock {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.variant-qty-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  overflow: hidden;
}

.variant-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F6F7;
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.variant-qty-btn:hover {
  background: var(--primary-teal);
  color: #FFFFFF;
}

.variant-qty-field {
  width: 38px;
  height: 32px;
  text-align: center;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.variant-selected-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-delicate);
}

.variant-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.variant-summary-row strong {
  font-size: 1.05rem;
  color: var(--primary-petrol);
}

#variant-active-price {
  font-size: 1.15rem;
  color: var(--primary-teal);
  font-weight: 800;
}

.btn-confirm-variant-add {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--primary-teal);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(34, 168, 154, 0.3);
  transition: all 0.25s ease;
}

.btn-confirm-variant-add:hover:not(:disabled) {
  background: var(--primary-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 168, 154, 0.45);
}

.btn-confirm-variant-add:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.7;
}

/* Loading spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ==========================================================================
   Toast Notification - اشعار اضافة للسلة
   ========================================================================== */
#cart-toast-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #123C4A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(18,60,74,0.28);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
#cart-toast-notification i:first-child {
  color: #22A89A;
  font-size: 1.1rem;
}
#cart-toast-notification button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.18s ease;
  margin-right: 2px;
}
#cart-toast-notification button:hover {
  background: rgba(255,255,255,0.3);
}
#cart-toast-notification.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
