/* ===================================
   متجر إلكتروني عربي - RTL
   الألوان: أساسي #0F172A | ثانوي #2563EB | منبه #F97316
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* ===== Reset & Variables ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #606060;
  --secondary: #40A8CC;
  --accent: #40A8CC;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Utility ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.section-title span {
  color: var(--secondary);
}

.badge {
  display: inline-block;
  background: #EFF6FF;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

/* ===== Header / Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}
.gallery-horizontal {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--border);
}
.gallery-horizontal::-webkit-scrollbar {
  height: 6px;
}
.gallery-horizontal::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 10px;
}
.gallery-horizontal::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}
.gallery-item {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-item img:hover {
  transform: scale(1.05);
}
.gallery-nav {
  background: var(--secondary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.logo span { color: var(--accent); }

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

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
  background: #EFF6FF;
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  background: #ea6c0a !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--bg-soft); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.mobile-menu a:hover { color: var(--secondary); background: #EFF6FF; }
.mobile-menu .nav-cta {
  background: var(--accent) !important;
  color: white !important;
  text-align: center;
}

/* ===== Hero / Banner ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a6e 60%, #0F172A 100%);
  padding: 90px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563EB' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,0.15);
  color: #FB923C;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  border: 1px solid rgba(249,115,22,0.3);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero h1 span { color: var(--accent); }

.hero-desc {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 2.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
}

.hero-stat span {
  font-size: 0.82rem;
  color: #64748B;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, #2563EB22, #F9731622);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  position: relative;
  overflow: hidden;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 60% 40%, rgba(37,99,235,0.2), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(249,115,22,0.15), transparent 50%);
}

.hero-floating-tag {
  position: absolute;
  background: white;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-floating-tag.tag-1 {
  top: 20px;
  right: -20px;
}

.hero-floating-tag.tag-2 {
  bottom: 30px;
  left: -20px;
  color: var(--accent);
}

.hero-floating-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ===== Product Cards ===== */
.products-section {
  padding: 80px 20px;
  background: var(--bg-soft);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
/* لجعل الصور داخل بطاقة المنتج متجاوبة */
.product-img {
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1; /* مربع */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-card:hover .product-img-responsive {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .product-img-responsive {
    object-fit: contain;
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
}
 /* ===== صفحة تفاصيل المنتج ===== */
    .detail-section {
      padding: 40px 20px 70px;
      background: var(--bg-soft);
      min-height: 60vh;
    }
    .detail-wrapper {
      max-width: 1100px;
      margin: 0 auto;
    }

    /* Breadcrumb */
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 28px;
      font-size: 0.85rem;
      color: var(--text-muted);
      flex-wrap: wrap;
    }
    .breadcrumb a { color: var(--secondary); font-weight: 600; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb .sep { color: var(--text-light); }

    /* Product grid */
    .detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px;
      align-items: start;
      background: white;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      border: 1px solid var(--border);
      margin-bottom: 32px;
    }

    /* Gallery side */
    .detail-gallery {
      background: var(--bg-soft);
      padding: 0;
      position: relative;
    }

    .main-img-wrap {
      aspect-ratio: 1/1;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
      overflow: hidden;
      position: relative;
      cursor: zoom-in;
    }

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

    .main-img-wrap:hover img { transform: scale(1.04); }

    .main-img-emoji {
      font-size: 7rem;
    }

    .img-badge {
      position: absolute;
      top: 16px;
      right: 16px;
      background: #ea6c0a;
      color: white;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 5px 14px;
      border-radius: 50px;
    }

    /* Thumbnails */
    .thumb-strip {
      display: flex;
      gap: 8px;
      padding: 12px 16px;
      overflow-x: auto;
      background: white;
      border-top: 1px solid var(--border);
    }

    .thumb-strip::-webkit-scrollbar { height: 4px; }
    .thumb-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    .thumb {
      width: 64px;
      height: 64px;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 2.5px solid transparent;
      cursor: pointer;
      flex-shrink: 0;
      transition: all var(--transition);
    }

    .thumb:hover { border-color: var(--secondary); }
    .thumb.active { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(37,99,235,0.2); }

    .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Info side */
    .detail-info {
      padding: 32px 32px 32px 28px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .detail-category {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #EFF6FF;
      color: var(--secondary);
      font-size: 0.78rem;
      font-weight: 700;
      padding: 4px 14px;
      border-radius: 50px;
      width: fit-content;
    }

    .detail-name {
      font-size: clamp(1.4rem, 2.5vw, 2rem);
      font-weight: 900;
      color: var(--primary);
      line-height: 1.3;
    }

    .detail-price-block {
      display: flex;
      align-items: baseline;
      gap: 10px;
    }

    .detail-price {
      font-size: 2rem;
      font-weight: 900;
      color: var(--accent);
    }

    .detail-price span {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .detail-desc {
      font-size: 0.97rem;
      color: var(--text-muted);
      line-height: 1.8;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--border);
    }

    /* Quantity */
    .qty-label {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 10px;
    }

    .qty-control {
      display: flex;
      align-items: center;
      gap: 0;
      width: fit-content;
      border: 1.5px solid var(--border);
      border-radius: 50px;
      overflow: hidden;
    }

    .qty-btn {
      width: 42px;
      height: 42px;
      background: var(--bg-soft);
      border: none;
      cursor: pointer;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--primary);
      transition: background var(--transition);
      flex-shrink: 0;
    }

    .qty-btn:hover { background: #E2E8F0; }

    .qty-val {
      width: 52px;
      text-align: center;
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--primary);
      background: white;
      border: none;
      border-right: 1.5px solid var(--border);
      border-left: 1.5px solid var(--border);
      padding: 8px 0;
      -moz-appearance: textfield;
    }
    .qty-val::-webkit-outer-spin-button,
    .qty-val::-webkit-inner-spin-button { -webkit-appearance: none; }

    .detail-total {
      background: var(--bg-soft);
      border-radius: var(--radius-sm);
      padding: 12px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid var(--border);
    }

    .detail-total span:first-child {
      font-size: 0.88rem;
      color: var(--text-muted);
      font-weight: 600;
    }

    .detail-total strong {
      font-size: 1.2rem;
      font-weight: 900;
      color: var(--secondary);
    }

    .btn-order-detail {
      background: #22c55e;
      color: white;
      padding: 16px 32px;
      border-radius: 50px;
      font-size: 1.05rem;
      font-weight: 800;
      font-family: 'Cairo', sans-serif;
      border: none;
      cursor: pointer;
      width: 100%;
      transition: all var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    

    .btn-order-detail:hover {
    background-color: #2563EB;
    transform: translateX(-50%) scale(1.02);
    }

    /* ===== المنتج المحدد في صفحة الطلب ===== */
    .selected-product-box {
      display: flex;
      align-items: center;
      gap: 14px;
      background: #EFF6FF;
      border: 1.5px solid #BFDBFE;
      border-radius: var(--radius-sm);
      padding: 14px 16px;
      margin-bottom: 20px;
    }
    .sp-img {
      width: 60px;
      height: 60px;
      border-radius: 10px;
      background: white;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
      border: 1px solid #BFDBFE;
    }
    .sp-img img { width:100%; height:100%; object-fit:cover; }
    .sp-info { flex:1; }
    .sp-name { font-weight:800; font-size:0.95rem; color:var(--primary); margin-bottom:4px; }
    .sp-price { font-weight:900; font-size:1.05rem; color:var(--secondary); }
    .sp-change {
      font-size:0.78rem; font-weight:700; color:var(--secondary);
      background:white; border:1px solid #BFDBFE; padding:5px 12px;
      border-radius:50px; white-space:nowrap; flex-shrink:0;
      text-decoration:none; transition:all .2s;
    }
    .sp-change:hover { background:#EFF6FF; }

/* ===== زر اشتري الآن الثابت (Sticky) ===== */
.sticky-order-btn {
  position: fixed;
  bottom: 80px;          /* ارفعه عن الحافة السفلية ليتوسط الأيقونات */
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: auto;           /* عرض تلقائي حسب المحتوى */
  max-width: 90%;
  background: transparent;  /* خلفية شفافة */
  border: none;
  box-shadow: none;
  display: none;
}

.sticky-order-btn.show {
  display: block;
}

.sticky-order-btn .btn-submit {
  margin: 0 auto;
  width: auto;
  min-width: 200px;
  max-width: 320px;
  background: #22c55e;     /* خلفية سوداء شفافة (يمكنك تغيير اللون) */
  backdrop-filter: blur(8px);         /* تأثير زجاجي (اختياري) */
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* إذا كنت تريد خلفية برتقالية شفافة بدلاً من الأسود */
/* استبدل سطر background بـ: background: rgba(249, 115, 22, 0.9); */

/* إخفاء الزر تماماً على سطح المكتب */
@media (min-width: 768px) {
  .sticky-order-btn {
    display: none !important;
  }
}

/* تعديل بسيط للهواتف الصغيرة */
@media (max-width: 480px) {
  .sticky-order-btn {
    bottom: 70px;
  }
  .sticky-order-btn .btn-submit {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-width: 180px;
  }
}
    @media (min-width: 768px) {
      .sticky-order-btn { display: none !important; }
    }

    .btn-order-detail:hover {
      background: #ea6c0a;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(249,115,22,0.35);
    }

    .cod-tag {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #F0FDF4;
      border: 1px solid #BBF7D0;
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      font-size: 0.85rem;
      color: #166534;
      font-weight: 600;
    }

    /* Full description section */
    .full-desc-section {
      background: white;
      border-radius: var(--radius);
      padding: 32px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      margin-bottom: 32px;
    }

    .full-desc-section h2 {
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--bg-soft);
    }

    .full-desc-content {
      font-size: 0.97rem;
      color: var(--text-muted);
      line-height: 2;
    }

    /* Order CTA section */
    .order-cta-section {
      background: linear-gradient(135deg, var(--primary), #1e3a6e);
      border-radius: var(--radius-lg);
      padding: 40px 32px;
      text-align: center;
      margin-bottom: 40px;
      position: relative;
      overflow: hidden;
    }

    .order-cta-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232563EB' fill-opacity='0.07'%3E%3Cpath d='M20 20h4v4h-4z'/%3E%3C/g%3E%3C/svg%3E");
    }

    .order-cta-section h3 {
      color: white;
      font-size: 1.4rem;
      font-weight: 900;
      margin-bottom: 10px;
      position: relative;
    }

    .order-cta-section p {
      color: rgba(255,255,255,0.75);
      margin-bottom: 24px;
      position: relative;
    }

    .order-cta-section .qty-control {
      margin: 0 auto 20px;
      border-color: rgba(255,255,255,0.3);
      position: relative;
    }

    .order-cta-section .qty-btn { background: rgba(255,255,255,0.1); color: white; }
    .order-cta-section .qty-btn:hover { background: rgba(255,255,255,0.2); }
    .order-cta-section .qty-val { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }

    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.92);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .lightbox.open { display: flex; }
    .lightbox img {
      max-width: 90vw;
      max-height: 88vh;
      object-fit: contain;
      border-radius: var(--radius);
    }
    .lightbox-close {
      position: absolute;
      top: 16px;
      left: 16px;
      background: rgba(255,255,255,0.15);
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .lightbox-close:hover { background: rgba(255,255,255,0.3); }

    /* Related products */
    .related-section {
      padding: 0 0 40px;
    }

    /* Skeleton loading */
    .skeleton {
      background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: var(--radius-sm);
    }
    @keyframes shimmer { to { background-position: -200% 0; } }

    /* Responsive */
    @media (max-width: 768px) {
      .detail-grid {
        grid-template-columns: 1fr;
        border-radius: var(--radius);
      }
      .detail-info { padding: 20px; }
      .detail-name { font-size: 1.4rem; }
      .detail-price { font-size: 1.6rem; }
    }

    @media (max-width: 480px) {
      .detail-section { padding: 20px 14px 50px; }
      .full-desc-section { padding: 20px; }
      .order-cta-section { padding: 28px 20px; }
    }
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ea6c0a;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

.product-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 10px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--secondary);
}

.product-price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-order {
  background: #22c55e;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-order:hover {
  background: var(--secondary);
  transform: scale(1.03);
}

/* ===== Features ===== */
.features-section {
  padding: 80px 20px;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  background: var(--bg);
}

.feature-card:hover {
  border-color: #BFDBFE;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-icon.blue { background: #EFF6FF; }
.feature-icon.orange { background: #FFF7ED; }
.feature-icon.green { background: #F0FDF4; }
.feature-icon.purple { background: #F5F3FF; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Testimonials ===== */
.testimonials-section {
  padding: 80px 20px;
  background: var(--bg-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stars {
  color: #FBBF24;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== Order Form ===== */
.order-section {
  padding: 80px 20px;
  background: var(--bg-soft);
  min-height: calc(100vh - 68px);
}

.order-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.order-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.order-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: #EF4444;
  margin-right: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
  outline: none;
  direction: rtl;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-light); }

.form-select { cursor: pointer; }

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 5px;
}

.cod-notice {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.cod-notice .icon { font-size: 1.5rem; flex-shrink: 0; }

.cod-notice h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 3px;
}

.cod-notice p {
  font-size: 0.85rem;
  color: #15803D;
}

.order-summary {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.order-summary h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

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

.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--secondary);
}

.btn-submit {
  width: 100%;
  background: #22c55e;
  color: white;
  padding: 16px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Thank You Page ===== */
.thankyou-section {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-soft);
}

.thankyou-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.check-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  animation: pop-in 0.5s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.thankyou-card h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.thankyou-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.order-number {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.order-number strong {
  color: var(--secondary);
  font-weight: 800;
}

.thankyou-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Products Page Header ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a6e 100%);
  padding: 60px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: white;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: #94A3B8;
  font-size: 1rem;
}

.search-filter-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  position: sticky;
  top: 68px;
  z-index: 100;
}

.search-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.92rem;
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
  direction: rtl;
}

.search-box input:focus { border-color: var(--secondary); }

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  animation: float-in 0.6s cubic-bezier(.34,1.56,.64,1) 1s both;
}

@keyframes float-in {
  from { transform: scale(0) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all var(--transition);
  font-size: 1.6rem;
  color: white;
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37,211,102,0.25);
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--primary);
  border-left: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  padding: 60px 20px 0;
  color: #94A3B8;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #FFFFFF;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.2rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 1rem;
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--secondary);
  color: white;
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: #FFFFFF;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: #93C5FD; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #FFFFFF;
}

/* ===== Toast Notification ===== */
.toast-container {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  border-right: 4px solid var(--secondary);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: slide-down 0.3s cubic-bezier(.34,1.56,.64,1) both;
}

.toast.success { border-color: #22C55E; }
.toast.error { border-color: #EF4444; }

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

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 46px;
  height: 46px;
  background: #40a8cc;
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: none;
}

.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--secondary); transform: translateY(-2px); }

/* ===== Loading Spinner ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-img-wrap {
    width: 240px;
    height: 240px;
    font-size: 5rem;
  }

  .hero-floating-tag.tag-1 { right: 0; }
  .hero-floating-tag.tag-2 { left: 0; }

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

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .product-body { padding: 14px 14px 16px; }
  .product-name { font-size: 0.95rem; }
  .product-price { font-size: 1.1rem; }
  .btn-order { padding: 9px 14px; font-size: 0.82rem; }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .feature-card { padding: 24px 16px; }

  .form-row { grid-template-columns: 1fr; }
  .order-card { padding: 24px 20px; }
  .thankyou-card { padding: 40px 24px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filter-tabs { display: none; }

  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 1.3rem; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== صورة المنتج في البطاقة ===== */
.product-img {
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

/* ===== اسم المتجر ===== */
.logo .store-name { color: var(--accent); }
