/* ================================================
   ROOT VARIABLES — كتلة واحدة موحّدة
   ================================================ */
:root {
  /* ألوان رئيسية */
  --primary:        #dc2626;
  --primary-dark:   #b91c1c;
  --primary-glow:   rgba(220, 38, 38, 0.2);
  --green:          #16a34a;
  --green-bg:       #dcfce7;
  --orange:         #ea580c;
  --orange-bg:      #fff0e6;
  --blue:           #2563eb;
  --blue-bg:        #eff6ff;
  --red:            #dc2626;
  --red-bg:         #fee2e2;
  --gray:           #6b7280;
  --gray-bg:        #f3f4f6;
  --purple:         #7c3aed;
  --purple-bg:      #f5f3ff;
  --yellow:         #b45309;
  --yellow-bg:      #fef9c3;
  --gold:           #c8973a;
  --gold-light:     #f0be6a;

  /* نصوص */
  --text-dark:      #0f172a;
  --text-1:         #111318;
  --text-2:         #5c6070;
  --text-3:         #9ca3b0;
  --text-mid:       #64748b;

  /* خلفيات */
  --bg-page:        #ffffff;
  --bg:             #f4f5f7;
  --bg-card:        #FAFAFA;
  --bg-card2:       #f9fafb;

  /* حدود */
  --border:         #e2e8f0;
  --border-hover:   #d0d4db;

  /* راديوس */
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      18px;
  --radius-xxl:     26px;
  --radius-full:    999px;

  /* ظلال */
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);

  /* أخرى */
  --nav-h:          64px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --t:              0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ================================================
   RESET & BASE
   ================================================ */
*,
*:focus,
*:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

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

html {
  width: 100%;
  overscroll-behavior-y: none;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #fff;
  color: #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.loaded {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* صفحة إتمام الطلب: ثابتة بدون تمرير، والمحتوى يتكيّف تلقائياً مع حجم الشاشة */
html:has(body.no-scroll-page),
body.no-scroll-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.no-scroll-page .checkout-page {
  width: 100%;
  transform-origin: center center;
  margin: 0 auto;
}


html[dir="rtl"] { direction: rtl; }
html[dir="ltr"] { direction: ltr; }


/* ================================================
   TOPBAR / HEADER
   ================================================ */
.topbar {
  position: relative;
  width: 100%;
  height: 70px;
  background: #1E5631;
  color: #FFFFFF;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, rgba(30,86,49,0.4), transparent);
  pointer-events: none;
}

.container-header {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

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

.header-logo img {
  height: 75px;
  width: auto;
  margin-top: 7px;
}

.right-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: none;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 6px 0;
  transition: 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}



.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  color: #6b7280;
}

.empty-cart-state i {
  font-size: 80px;
  color: #d1d5db;
  margin-bottom: 22px;
}

.empty-cart-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.empty-cart-state p {
  font-size: 14px;
  color: #9ca3af;
  max-width: 280px;
}

.icon-cart,
.icon-menu {
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  position: relative;
}

/* ================================================
   الزر العائم: سلة سريعة
   ================================================ */
.floating-cart-btn {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 16px;
  z-index: 1500;
  width: 62px;
  height: 62px;
  font-size: 23px;
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(145deg, #f97316, #ea580c);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45), 0 0 0 0 rgba(249, 115, 22, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.floating-cart-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.floating-cart-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.5);
}

.floating-cart-btn.bump {
  animation: cartBump 0.45s ease;
}

@keyframes cartBump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.22); box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45), 0 0 0 10px rgba(249, 115, 22, 0.25); }
  60%  { transform: scale(0.94); }
  100% { transform: scale(1); box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45), 0 0 0 0 rgba(249, 115, 22, 0); }
}

.floating-cart-count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: #d9534f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

@media (min-width: 992px) {
  .floating-cart-btn { width: 66px; height: 66px; font-size: 24px; bottom: 30px; inset-inline-end: 30px; }
}

/* ================================================
   LANGUAGE SWITCHER (بجانب أيقونة السلة)
   ================================================ */
.icon-lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.14);
  transition: background 0.2s ease;
  user-select: none;
}

.icon-lang:hover { background: rgba(255,255,255,0.26); }

.icon-lang i { font-size: 14px; }

.lang-current { font-size: 12px; }

.lang-popover {
  position: absolute;
  top: 42px;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
  padding: 6px;
  z-index: 2100;
  min-width: 78px;
  animation: langPopIn 0.18s ease;
}

@keyframes langPopIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

body[dir="rtl"] .lang-popover { right: 0; }
body[dir="ltr"] .lang-popover { left: 0; }

.lang-popover.show { display: flex; }

.lang-popover .lang-btn {
  text-align: center;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #1E5631;
}

.lang-popover .lang-btn:hover,
.lang-popover .lang-btn.active {
  background: #1E5631;
  color: #fff;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
}

.cart-count.show {
  display: flex;
}

@media (max-width: 768px) { .nav-links { display: none; } }
@media (min-width: 769px) { .nav-links { display: flex; } }


/* ================================================
   DROPDOWN MENU (Mobile Drawer)
   ================================================ */
.dropdown-menu {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  height: 100dvh; /* يتأقلم مع شريط قوقل كروم السفلي، بلا ما يتقص جزء من القائمة */
  width: 70vw;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  flex-direction: column;
  z-index: 2000;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.dropdown-menu.show {
  display: flex;
  animation: menuSlideIn 0.25s ease;
}

@keyframes menuSlideIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

body[dir="ltr"] .dropdown-menu { left: 0; right: auto; }
body[dir="rtl"] .dropdown-menu { right: 0; left: auto; }

body[dir="ltr"] .dropdown-menu.show { animation-name: menuSlideInLtr; }
@keyframes menuSlideInLtr {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}

.menu-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-logo img {
  height: 56px;
  border-radius: 12px;
}

.menu-close {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,86,49,0.08);
  color: #1E5631;
  cursor: pointer;
  font-size: 13px;
  transition: 0.25s ease;
}

.menu-close:hover {
  background: #1E5631;
  color: #fff;
  transform: rotate(90deg);
}

.dropdown-menu hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 12px 0;
}

.menu-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9aa39c;
  font-weight: 700;
  margin: 18px 0 6px;
  padding: 0 12px;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-links a {
  color: #234;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 12px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  border-inline-start: 3px solid transparent;
  transition: 0.2s ease;
}

.menu-links a i {
  width: 18px;
  text-align: center;
  margin-inline-end: 12px;
  color: #1E5631;
  font-size: 14px;
}

.menu-links a:hover {
  background: rgba(30,86,49,0.08);
  border-inline-start-color: #1E5631;
  transform: translateX(3px);
}

body[dir="ltr"] .menu-links a:hover { transform: translateX(-3px); }

.qr-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 0 6px;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 8px;
  border-top: 1px solid #eee;
}

.qr-share img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.qr-hint {
  font-size: 11px;
  color: #9aa39c;
  font-weight: 600;
}

.menu-social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 4px;
}

.menu-social-icons a {
  color: #1E5631;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,86,49,0.08);
  text-decoration: none;
  transition: 0.2s ease;
}

.menu-social-icons a:hover {
  background: #1E5631;
  color: #fff;
  transform: translateY(-2px);
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: #1E5631;
  transition: 0.2s ease;
}

.lang-btn:hover { background: #1E5631; color: #fff; }
.lang-btn.active { background: #1E5631; color: #fff; }

/* Desktop dropdown */
@media (min-width: 768px) {
  .dropdown-menu {
    position: absolute;
    top: 70px;
    width: 220px;
    height: auto;
    max-height: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
  }

  body[dir="ltr"] .dropdown-menu { left: 0; right: auto; }
  body[dir="rtl"] .dropdown-menu { right: 0; left: auto; }
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1500;
}

.menu-overlay.show { opacity: 1; pointer-events: auto; }

@media (min-width: 769px) { .menu-overlay { display: none; } }

/* إخفاء QR في الشاشات الكبيرة */
@media (min-width: 768px) {
  .qr-share {
    display: none;
  }
}


/* ================================================
   PAGE FADE
   ================================================ */
.page-fade {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 99999;
}

.page-fade.show { opacity: 1; pointer-events: auto; }


/* ================================================
   HERO SECTION
   ================================================ */
.main-container {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.hero-section {
  position: relative;
  height: clamp(670px, 70vh, 800px);
  overflow: hidden;
  background: #fff;
}

.hero-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.shop-btn {
  margin: 0;
  padding: 15px 40px;
  background: #1E5631;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

/* Desktop */
@media (min-width: 768px) {
  .hero-section { height: clamp(480px, 40vh, 600px); }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .hero-content {
    position: absolute;
    top: 20%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #000;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
    margin: 0;
    max-width: 500px;
  }

  html[dir="ltr"] .hero-content { left: 70px; right: auto; align-items: flex-start; text-align: left; }
  html[dir="rtl"] .hero-content { right: 70px; left: auto; align-items: flex-end; text-align: right; }
}

/* Mobile */
@media (max-width: 767px) {
  .hero-section { height: auto; overflow: visible; }
  .hero-inner { position: relative; inset: auto; flex-direction: column; gap: 0; }

  .hero-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 18px 16px 26px;
  }

  .hero-content h1 { font-size: 22px; width: 100%; margin: 0 0 10px; text-align: center; }
  .shop-btn { align-self: center; }

  .hero-media { width: 100%; }
  .hero-media img,
  .hero-media video { width: 100%; height: auto; display: block; }
}


/* ================================================
   FEATURES BAR
   ================================================ */
.features-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  background: #fff;
  padding: 10px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: transform 0.2s ease, color 0.2s ease;
}

.feature-item img { width: 84px; height: 84px; }
.feature-item span { font-size: 22px; font-weight: 600; color: #1E5631; }

@media (max-width: 768px) {
  .features-bar { gap: 20px; padding: 40px 10px 0; }
  .feature-item { flex-direction: column; align-items: center; text-align: center; width: 45%; margin-bottom: 15px; }
  .feature-item img { width: 120px; height: 120px; }
  .feature-item span { font-size: 14px; }
}



/* ================================================
   PRODUCTS SECTION
   ================================================ */
.products-section h2 {
  text-align: center;
  font-size: 25px;
  color: #333366;
  margin-top: 30px;
  margin-bottom: 30px;
  font-weight: bold;
  position: relative;
}

.products-section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #a89076, #f5eee4, #a89076);
  margin: 10px auto 0;
  border-radius: 2px;
}

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

@media (min-width: 769px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }


/* Product Card */
.product-card {
  background: #ffffff;
  border-radius: 15px;
  border: 1px solid #a89076;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  height: auto;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }

.product-card .product-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; padding-top: 15px; }
.product-card .product-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.35s ease; }
.product-card:hover .product-image img { transform: scale(1.03); }

.product-card .product-info {
  padding: 6px 12px;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  grid-template-rows: auto auto auto;
  gap: 4px 8px;
  align-items: center;
}

.product-card .product-info h3 { grid-column: 1; grid-row: 3; font-size: 15px; font-weight: 900; color: #0f172a; margin-top: -2px; text-align: left; }
.product-card .rating { grid-column: 1; grid-row: 1; display: flex; justify-content: flex-start; align-items: center; color: #f97316; font-size: 13px; }
.type-badge { grid-column: 1; grid-row: 2; display: inline-flex; align-items: center; padding: 2px 10px; font-size: 8px; font-weight: 600; background: rgba(15,23,42,0.08); border-radius: 999px; white-space: nowrap; justify-self: start; }
.product-card .product-info .price { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: flex-end; font-size: 18px; font-weight: 800; color: #0f172a; }

.product-card .product-info .add-to-cart {
  grid-column: 1 / span 2;
  grid-row: 4;
  width: 100%;
  padding: 10px;
  border: none;
  background: #1E5631;
  color: #fff;
  border-radius: 10px;
  font-size: 0.95em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 2px;
  gap: 8px;
  transition: 0.3s;
}

body[dir="rtl"] .product-card .add-to-cart i { transform: scaleX(-1); }

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(249,115,22,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(249,115,22,0.35);
  color: #f97316;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card.has-offer .discount-badge { display: none; }

/* Offer Card */
.product-card.has-offer {
  border: 2px solid #C62828;
  box-shadow: 0 8px 20px rgba(198,40,40,0.25);
}

.product-card.has-offer::before {
  content: attr(data-offer);
  position: absolute;
  top: 25px;
  background: #C62828;
  color: #fff;
  font-weight: bold;
  padding: 6px 55px;
  font-size: 0.75em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

body[dir="rtl"] .product-card.has-offer::before { left: -45px; right: auto; transform: rotate(-45deg); }
body[dir="ltr"] .product-card.has-offer::before { right: -45px; left: auto; transform: rotate(45deg); }

.product-card.has-offer .add-to-cart { background: #C62828; color: #fff; }
.product-card.has-offer .discount-price { font-weight: bold; color: #000; }
.product-card.has-offer .original-price { text-decoration: line-through; color: #D84343; font-size: 0.9em; opacity: 0.8; display: none; }

/* RTL */
body[dir="rtl"] .product-card .product-info h3 { text-align: right; }
body[dir="rtl"] .product-card .rating { justify-content: flex-start; }
body[dir="rtl"] .type-badge { justify-self: start; }

/* LTR */
body[dir="ltr"] .product-card .product-info h3 { text-align: left; }
body[dir="ltr"] .type-badge { justify-self: start; }


/* ================================================
   TRUST SECTION
   ================================================ */
.trust-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  text-align: center;
  background: #f8f8f8;
}

.trust-item {
  background: #fff;
  padding: 25px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.trust-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.trust-icon { font-size: 3em !important; color: #f97316; margin-bottom: 15px; }
.trust-item h3 { font-size: 1.2em; margin-bottom: 10px; font-weight: bold; }
.trust-item p { font-size: 0.95em; color: #555; line-height: 1.4; }


/* ================================================
   FOOTER
   ================================================ */
.site-footer { background-color: #000; color: #fff; padding: 40px 20px 20px; }

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-column { flex: 1; min-width: 200px; margin-bottom: 20px; }
.footer-column h4 { margin-bottom: 15px; font-size: 1.2em; color: #f97316; }
.footer-column a { display: block; color: #fff; text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-column a:hover { color: #f97316; }
.footer-column p { margin-bottom: 8px; font-size: 0.95em; }

.social-icons { display: flex; gap: 10px; margin-top: 10px; }
.social-icons a { color: #fff; font-size: 1.2em; transition: color 0.2s, transform 0.2s; }
.social-icons a:hover { color: #f97316; transform: scale(1.2); }

.footer-bottom { text-align: center; padding-top: 15px; border-top: 1px solid #0f172a; font-size: 0.9em; color: #f97316; }


/* ================================================
   CART PAGE
   ================================================ */
.cart-page { max-width: 540px; margin: 0 auto; background: var(--bg-page); }

.cart-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 15px 20px 180px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cart-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  min-height: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cart-item img { width: 100px; height: 100px; object-fit: cover; flex-shrink: 0; display: block; }

.item-details { flex: 1; display: flex; flex-direction: column; padding: 10px 12px; min-width: 0; gap: 8px; }

.item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 10px; margin-bottom: 10px; }
.item-header h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

.remove-item {
  width: 25px; height: 15px;
  border: none; background: transparent;
  color: var(--text-mid);
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  user-select: none;
}

.remove-item:hover { background: #fee2e2; color: var(--primary); }
.remove-item:active { transform: scale(0.9); }

.item-footer { display: flex; justify-content: space-between; align-items: center; }
.item-footer .price { font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: -0.3px; }

.quantity-controls {
  display: flex; align-items: center;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  overflow: hidden;
}

.quantity-controls button {
  width: 26px; height: 26px;
  border: none; background: transparent;
  color: var(--text-dark);
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none; flex-shrink: 0;
}

.quantity-controls button:active { background: var(--text-dark); color: #ffffff; transform: scale(0.88); }
.quantity-controls .quantity { min-width: 28px; text-align: center; font-size: 13px; font-weight: 800; color: var(--text-dark); user-select: none; }

.cart-summary {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 18px 28px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 28px rgba(0,0,0,0.07);
}

.cart-summary .summary-row { display: flex; justify-content: space-between; align-items: center; }
.cart-label { font-size: 14px; font-weight: 500; color: var(--text-mid); }
#totalPrice { font-size: 22px; font-weight: 900; color: var(--text-dark); letter-spacing: -0.5px; }
.cart-summary hr { border: none; border-top: 1px solid var(--border); margin: 2px 0; }

#checkoutBtn {
  width: 100%; border: none;
  border-radius: 30px; padding: 12px 18px;
  font-family: 'Cairo', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #dc2626; color: #fff;
  box-shadow: 0 10px 25px rgba(17,24,39,0.18);
  -webkit-tap-highlight-color: transparent; user-select: none;
}

#checkoutBtn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17,24,39,0.25); }
#checkoutBtn:active { transform: scale(0.98); }


/* ================================================
   CHECKOUT PAGE
   ================================================ */
.checkout-page { max-width: 720px; padding: 0 16px; display: flex; flex-direction: column; }

.checkout-header-box { text-align: center; padding-bottom: 10px; position: relative; }
.checkout-header-box::after {
  content: ""; position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  width: 80%; height: 2px; border-radius: 999px;
  background: linear-gradient(to right, transparent, #111827, #F97316, #111827, transparent);
}

.checkout-header-box h2 { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 6px; letter-spacing: -0.3px; }

.checkout-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px; padding: 22px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.05), 0 2px 10px rgba(0,0,0,0.03);
  display: flex; flex-direction: column; gap: 10px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 700; color: #111827; }

.form-group input,
.form-group select {
  width: 100%; height: 50px; padding: 0 18px;
  border-radius: 18px; border: 1.5px solid #E5E7EB;
  background: #fff; font-size: 15px; font-weight: 600;
  outline: none; color: #111827;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease, background .25s ease;
}

.form-group input::placeholder { color: #9CA3AF; font-weight: 500; }

.form-group .select-wrapper { position: relative; width: 100%; }
.form-group .select-wrapper::after { content: ""; position: absolute; top: 50%; inset-inline-end: 14px; translate: 0 -50%; width: 16px; height: 16px; pointer-events: none; }
.form-group select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 44px; padding-inline-start: 18px; }
.form-group select:has(option[value=""]:checked) { color: #9CA3AF; font-weight: 500; }

.form-group input:hover,
.form-group select:hover { border-color: #D1D5DB; }

.form-group input:focus,
.form-group select:focus { border-color: #111827; background-color: #fff; color: #111827; box-shadow: 0 0 0 5px rgba(17,24,39,0.06); transform: translateY(-1px); }

.form-group input:not(:placeholder-shown),
.form-group select.has-value { border-color: #93C5FD; background-color: #EFF6FF; }

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #EFF6FF inset !important;
  -webkit-text-fill-color: #111827 !important;
  border-color: #93C5FD !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group.error input,
.form-group.error select { border-color: #EF4444; background: #FEF2F2; }
.form-group.error input:focus,
.form-group.error select:focus { box-shadow: 0 0 0 5px rgba(239,68,68,0.08); }

/* Checkout Summary */
.checkout-card.summary { background: #FFF; border-radius: 24px; padding: 10px; margin-top: 1px; border: 1px solid #F1F5F9; gap: 8px; }

.summary-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-radius: 18px; background: #FAFAFA; border: 1px solid #F1F5F9; }
.summary-line span { font-size: 12px; font-weight: 600; color: #6B7280; }
.summary-line b { font-size: 15px; font-weight: 800; color: #111827; }

.summary-line.total { background: linear-gradient(135deg, #111827, #1F2937); border: none; box-shadow: 0 15px 35px rgba(17,24,39,0.18); }
.summary-line.total span { color: rgba(255,255,255,0.7); font-size: 14px; }
.summary-line.total b { color: #fff; font-size: 24px; font-weight: 900; }

/* Coupon */
.coupon-toggle { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 18px; background: #F9FAFB; border: 1px solid #F1F5F9; font-size: 14px; font-weight: 700; color: #111827; cursor: pointer; }
.coupon-field { max-height: 0; overflow: hidden; transition: .3s ease; }
.coupon-field.open { max-height: 180px; margin-top: 10px; }
.coupon-input { display: flex; gap: 10px; }
.coupon-input input { flex: 1; height: 45px; border-radius: 16px; border: 1px solid #E5E7EB; padding: 0 16px; background: #fff; font-weight: 600; }
.coupon-input button { height: 45px; padding: 0 20px; border: none; border-radius: 16px; background: #111827; color: #fff; font-weight: 700; cursor: pointer; transition: .25s ease; }
.coupon-input button:hover { transform: translateY(-1px); }

.btn-primary { width: 100%; height: 58px; border: none; border-radius: 20px; background: #dc2626; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 15px 35px rgba(17,24,39,0.18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(17,24,39,0.25); }
.btn-primary:active { transform: scale(.98); }

@media (max-width: 768px) {
  .checkout-page { margin-top: 25px; }
  .checkout-card { border-radius: 24px; padding: 18px; }
  .form-group input, .form-group select { height: 54px; border-radius: 16px; }
  .btn-primary { height: 56px; border-radius: 18px; }
  .summary-line.total b { font-size: 20px; }
}

/* ================================================
   DESKTOP  ≥ 1024 px  —  TWO-COLUMN LAYOUT
   ================================================ */
@media (min-width: 769px) {

  .checkout-page {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 32px 60px;
    gap: 0;
  }

  .checkout-header-box {
    padding-bottom: 18px;
    margin-bottom: 36px;
  }
  .checkout-header-box h2 {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .checkout-columns {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 28px;
    align-items: start;
  }

  .checkout-columns .checkout-card.form-card {
    border-radius: 32px;
    padding: 36px 40px;
    gap: 20px;
    position: sticky;
    top: 24px;
  }

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

  .form-group input,
  .form-group select {
    height: 54px;
    font-size: 15px;
    border-radius: 16px;
  }
  .form-group label { font-size: 13.5px; }

  .checkout-columns .sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
  }

  .checkout-card.summary {
    border-radius: 28px;
    padding: 18px;
    gap: 10px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  }

  .summary-line { padding: 14px 20px; border-radius: 16px; }
  .summary-line span { font-size: 13px; }
  .summary-line b    { font-size: 16px; }
  .summary-line.total b { font-size: 28px; }

  .coupon-toggle { padding: 16px 20px; border-radius: 16px; font-size: 14px; }
  .coupon-input button { padding: 0 26px; font-size: 14px; }

  .btn-primary {
    height: 62px;
    border-radius: 22px;
    font-size: 16px;
    letter-spacing: 0.2px;
  }
}


/* ================================================
   WIDE DESKTOP  ≥ 1280 px
   ================================================ */
@media (min-width: 769px) {
  .checkout-page { padding: 48px 48px 72px; }
  .checkout-columns { gap: 36px; }
  .checkout-columns .checkout-card.form-card { padding: 44px 48px; }
  .form-group input,
  .form-group select { height: 56px; }
  .summary-line.total b { font-size: 30px; }
  .btn-primary { height: 66px; font-size: 17px; }
}


/* ================================================
   PRODUCT DETAIL PAGE
   ================================================ */
.product-detail-page { width: 100%; padding: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; direction: ltr; text-align: left; min-height: 600px; }
body[dir="rtl"] .product-detail-page { direction: rtl; text-align: right; }

.product-detail-wrapper .product-image { width: 100%; display: flex; justify-content: center; margin-bottom: 10px; margin-top: -30px; }
.product-detail-wrapper .product-image img { width: 100%; max-width: 100%; height: auto; object-fit: contain; border-radius: 15px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.product-detail-wrapper .product-image img:hover { transform: scale(1.04); }

.product-header { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.product-stats { display: flex; gap: 15px; }
.product-stats span { display: flex; align-items: center; gap: 5px; font-weight: bold; font-size: 9px; color: #333; background: #f4f4f4; padding: 5px 10px; border-radius: 8px; }

.product-header .share-btn { background: none; border: none; cursor: pointer; color: #000; font-size: 20px; transition: transform 0.3s; }
body[dir="rtl"] .product-header .share-btn { transform: scaleX(1); margin-left: 5px; }
body[dir="ltr"] .product-header .share-btn { transform: scaleX(-1); margin-right: 5px; }

.product-name { font-size: 22px; color: #333366; margin: 2px 0 0; }

/* Rating (product detail — توسيع class العام) */
.rating { display: flex; justify-content: flex-start; gap: 8px; color: #f97316; font-size: 12px; }
body[dir="rtl"] .rating i { transform: scaleX(-1); }
body[dir="ltr"] .rating i { transform: scaleX(1); }
.product-detail-wrapper .rating { font-size: 17px; margin: 5px 0 0; }

.price { font-size: 24px; font-weight: bold; color: #1E5631; }

.visitors { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #333366; border: 1px solid #2a9d8f; border-radius: 6px; padding: 10px 20px; background-color: rgba(42,157,143,0.05); font-weight: bold; margin: 5px 0 0; }
.visitors i { color: #2a9d8f; font-size: 1.2em; }
#visitorCount { font-size: 20px; font-weight: bold; color: #2a9d8f; }

.full-description { font-size: 17px; color: #333; line-height: 1.6; margin: 10px 0; font-weight: 500; }

.product-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; direction: rtl; margin-top: 50px; }

.product-detail-wrapper button.add-to-cart { width: 100%; padding: 10px 18px; border: none; background: #1E5631; color: #fff; border-radius: 8px; cursor: pointer; font-size: 1em; margin-top: 30px; transition: background 0.3s, transform 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
body[dir="rtl"] .product-detail-wrapper button.add-to-cart { flex-direction: row; }
body[dir="rtl"] .product-detail-wrapper button.add-to-cart i { transform: scaleX(-1); }
body[dir="ltr"] .product-detail-wrapper button.add-to-cart { flex-direction: row-reverse; }
body[dir="ltr"] .product-detail-wrapper button.add-to-cart i { transform: scaleX(1); }

.quantity-selector { display: flex; align-items: center; justify-content: center; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; width: 100%; height: 40px; margin-top: 40px; background-color: #fff; }
.quantity-selector .qty-btn { flex: 1; border: none; background-color: #f5f5f5; font-size: 1em; cursor: pointer; height: 100%; transition: background 0.2s; }
.quantity-selector .qty-btn:hover { background-color: #e0e0e0; }
.quantity-selector #quantityValue { flex: 1; text-align: center; font-weight: bold; font-size: 1em; color: #333; }

/* Offers */
.product-detail-wrapper .offer-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: bold; color: #333; margin: 15px 0; text-align: center; }
.product-detail-wrapper .offer-title::before, .product-detail-wrapper .offer-title::after { content: ""; flex: 1; height: 1px; background: #ddd; }
.product-detail-wrapper .special-offers { display: flex; flex-direction: column; margin: 30px 0; gap: 12px; }
.product-detail-wrapper .offer-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #333366; cursor: pointer; transition: all 0.2s ease; }
.product-detail-wrapper .offer-item:has(input:checked) { border: 2px solid #2a9d8f; box-shadow: 0 0 0 2px rgba(42,157,143,0.1); }
.product-detail-wrapper .offer-text { font-size: 14px; font-weight: bold; color: #333366; }
.product-detail-wrapper .offer-price { display: flex; flex-direction: column; align-items: flex-start; }
.product-detail-wrapper .new-price { font-size: 16px; font-weight: bold; color: #2a9d8f; }
.product-detail-wrapper .old-price { font-size: 13px; color: #999; text-decoration: line-through; }

@media (min-width: 768px) {
  .product-detail-wrapper { display: grid; gap: 90px; align-items: start; padding: 0 50px; margin: 30px auto 0; }
  .product-detail-wrapper.no-offers { grid-template-columns: minmax(360px, 1.1fr) minmax(360px, 1.1fr); }
  .product-detail-wrapper.has-offers { grid-template-columns: minmax(360px, 1.1fr) minmax(360px, 1.1fr); }
  .product-image { width: 100%; height: 100%; }
  .product-image img { width: 100%; height: 100%; max-height: 600px; object-fit: cover; border-radius: 16px; display: block; }
  .product-info { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
  .product-offers { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .product-actions { flex-direction: column; gap: 10px; width: 100%; margin-top: -20px; }
  .product-actions button { width: 100%; }
}


/* ================================================
   POLICIES / ABOUT PAGES
   ================================================ */
.page-content { max-width: 900px; margin: auto; padding: 20px; background-color: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); line-height: 1.7; }
.page-content h1 { font-size: 22px; font-weight: 700; margin-bottom: 15px; text-align: center; color: #0d47a1; }
.page-content h2 { font-size: 17px; font-weight: 600; margin-top: 20px; margin-bottom: 12px; color: #0d47a1; }
.page-content p { font-size: 17px; color: #000; margin-bottom: 5px; }
.page-content ul { list-style-type: disc; padding-left: 25px; color: #000; margin-bottom: 15px; }
.page-content ul li { margin-bottom: 10px; }
.page-content strong { color: #0d47a1; }
.about-logo { max-width: 300px; display: block; margin: 0 auto; }


/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-section { padding: 10px; text-align: center; }
.contact-section h2 { font-size: 2em; color: #333366; margin-bottom: 5px; }
.contact-section p { color: #555; margin-bottom: 5px; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.contact-form, .contact-info { background: #fff; padding: 0px 20px; border-radius: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.contact-form h3, .contact-info h3 { font-size: 1.5em; color: #a89076; margin-bottom: 10px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; margin-bottom: 15px; border-radius: 10px; border: 1px solid #ddd; font-size: 1em; }
.contact-form button { width: 100%; padding: 12px 0; background: linear-gradient(135deg, #a89076, #c5a678); border: none; color: #fff; font-size: 1em; font-weight: 600; border-radius: 10px; cursor: pointer; transition: transform 0.3s, background 0.3s; }
.contact-form button:hover { transform: scale(1.05); background: linear-gradient(135deg, #8f7a60, #b8926a); }
.contact-info .info-item { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 1em; }
.contact-info .info-item i { font-size: 1.3em; color: #a89076; }
.contact-info .info-item a { color: #333; text-decoration: none; }
.map-container { margin-top: 20px; border-radius: 10px; overflow: hidden; }



/* ================================================
   PRODUCTS PAGE HEADER
   ================================================ */
.products-header { display: flex; justify-content: space-between; align-items: center; padding: 5px 15px; background-color: #fdfdfd; flex-wrap: wrap; gap: 5px; }
.categories { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.category-btn { padding: 7px 14px; border-radius: 20px; border: 1px solid #ccc; background: #fff; color: #333; font-size: 14px; cursor: pointer; transition: all 0.3s ease; }
.category-btn:hover, .category-btn.active { background: #1E5631; color: #fff; border-color: #145021; }

@media (max-width: 768px) {
  .products-header { flex-direction: column; align-items: flex-start; }
  .categories { width: 100%; gap: 8px; margin-top: 5px; margin-bottom: -12px; }
  .category-btn { flex: 1; text-align: center; }
}


/* ================================================
   ORDER SUCCESS MODAL (نافذة إتمام الطلب)
   ================================================ */
.order-modal-overlay { position: fixed; inset: 0; background: rgba(10,10,20,0.65); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 99999; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.order-modal-overlay.active { opacity: 1; visibility: visible; }

.order-modal-box { width: 92%; max-width: 420px; height: 70vh; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,0.92); box-shadow: 0 25px 70px rgba(0,0,0,0.35); display: flex; flex-direction: column; transform: translateY(30px) scale(0.96); animation: popUp 0.35s ease forwards; }
@keyframes popUp { to { transform: translateY(0) scale(1); } }

.order-modal-header { background: linear-gradient(135deg, #1E5631, #1E5631); padding: 15px; display: flex; align-items: center; justify-content: center; position: relative; }
.order-modal-header strong { font-size: 30px; letter-spacing: 2px; color: #F5F3EB; font-weight: 700; }

.order-modal-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 30px 20px; text-align: center; gap: 10px; }
.order-modal-body img { width: 140px; height: 140px; object-fit: contain; margin-top: 10px; display: block; }
.order-modal-body h2 { font-size: 18px; color: #16a34a; font-weight: 700; margin: 0; }
.order-modal-body p  { font-size: 14px; color: #444; line-height: 1.6; margin: 0; }

.progress-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 10px; background: #e5e7eb; overflow: hidden; }
#progressBar { height: 100%; width: 100%; background: linear-gradient(90deg, #22c55e, #38bdf8); transition: none; }


/* ================================================
   NOTIFY TOAST (إشعارات الموقع العامة)
   ================================================ */
#toastContainer { position: fixed; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
body[dir="rtl"] #toastContainer { left: auto; right: 10px; }
body[dir="ltr"] #toastContainer { right: auto; left: 10px; }

.notify-toast { width: fit-content; max-width: 320px; padding: 12px 16px; border-radius: 8px; color: #fff; font-size: 14px; line-height: 1.4; display: flex; align-items: center; background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 8px 25px rgba(0,0,0,0.25); opacity: 0; transition: all 0.35s ease; transform: translateX(120%); }
.notify-toast.show { opacity: 1; transform: translateX(0); }
body[dir="ltr"] .notify-toast { transform: translateX(-120%); }
body[dir="ltr"] .notify-toast.show { transform: translateX(0); }

.notify-toast.success { background: #166534; }
.notify-toast.delete  { background: #991b1b; }
.notify-toast.info    { background: #f59e0b; }

.toast-icon { font-size: 18px; opacity: 0.9; margin: 0 8px; }


/* ================================================
   TRACK ORDER MODAL (تتبع الطلب)
   ================================================ */
.track-modal { position: fixed; inset: 0; background: rgba(6,8,15,0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); display: flex; align-items: center; justify-content: center; z-index: 99999; opacity: 0; visibility: hidden; transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s cubic-bezier(0.4,0,0.2,1); padding: 20px; }
.track-modal.active { opacity: 1; visibility: visible; }

.track-box { width: 100%; max-width: 460px; height: 75vh; border-radius: 24px; overflow: hidden; background: #0e1117; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 40px 80px rgba(0,0,0,0.7), 0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06); display: flex; flex-direction: column; transform: translateY(28px) scale(0.97); opacity: 0; animation: trackPop 0.45s cubic-bezier(0.34,1.4,0.64,1) 0.05s forwards; }
@keyframes trackPop { to { transform: translateY(0) scale(1); opacity: 1; } }

.track-header { display: flex; align-items: center; gap: 10px; padding: 18px; background: #0e1117; position: relative; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.track-header::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background: linear-gradient(90deg, transparent, #22c55e, transparent); border-radius: 0 0 4px 4px; }
.track-header input { flex: 1; padding: 11px 16px; border: 1px solid rgba(255,255,255,0.09); outline: none; border-radius: 12px; font-size: 13.5px; font-weight: 400; background: rgba(255,255,255,0.04); color: #f1f5f9; letter-spacing: 0.2px; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.track-header input::placeholder { color: rgba(148,163,184,0.45); }
.track-header input:focus { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.05); box-shadow: 0 0 0 3px rgba(34,197,94,0.1); }
.track-header button { width: 44px; height: 44px; border: 1px solid rgba(34,197,94,0.25); border-radius: 12px; background: rgba(34,197,94,0.08); color: #4ade80; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; }
.track-header button:active { background: rgba(34,197,94,0.28); border-color: #22c55e; color: #ffffff; transform: scale(0.93); box-shadow: 0 0 18px rgba(34,197,94,0.3); }

.track-loading-state { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px; min-height: 180px; flex: 1; }
.track-loading-state img { width: 180px; height: 180px; margin-top: 160px; object-fit: contain; opacity: 0.85; }
.track-loading-state.show { display: flex; }

.loading-spinner { width: 50px; height: 50px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.06); border-top: 2.5px solid #22c55e; border-right: 2.5px solid rgba(34,197,94,0.35); animation: spin 0.9s cubic-bezier(0.4,0,0.6,1) infinite; margin: 150px auto 0; box-shadow: 0 0 16px rgba(34,197,94,0.2); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.track-result { flex: 1; padding: 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
.track-result::-webkit-scrollbar { width: 4px; }
.track-result::-webkit-scrollbar-track { background: transparent; }
.track-result::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.track-result p { font-size: 13.5px; color: rgba(148,163,184,0.5); text-align: center; margin-top: 60px; }

.error { width: 100%; text-align: center; font-size: 14px; color: #dc2626; margin-top: 140px; padding: 16px; border-radius: 14px; line-height: 1.6; }
.error-icon { font-size: 20px; color: #dc2626; margin-top: 20px; display: block; animation: floatIcon 2.4s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.track-card { background: #151820; border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.35); animation: cardIn 0.4s cubic-bezier(0.34,1.3,0.64,1) both; }
@keyframes cardIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

.track-row.order-id-row { background: linear-gradient(135deg, #111827 0%, #0f172a 100%); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 16px 20px; margin: 0; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.track-row.order-id-row::after { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 100%; background: radial-gradient(ellipse at top right, rgba(34,197,94,0.12), transparent 70%); pointer-events: none; }
.track-row.order-id-row .label { color: rgba(148,163,184,0.7); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.track-row.order-id-row .value { color: #f8fafc; font-weight: 500; font-size: 14px; letter-spacing: 1.5px; font-family: 'DM Mono', monospace; }

.track-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13.5px; transition: background 0.15s ease; }
.track-row:last-child { border-bottom: none; }
.track-row:not(.order-id-row):hover { background: rgba(255,255,255,0.02); }

.label { color: rgba(148,163,184,0.65); font-weight: 400; font-size: 13px; }
.value { font-weight: 500; color: #e2e8f0; font-size: 13.5px; }

/* Track Status Badge — مُعاد تسمية الكلاس */
.track-status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 90px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; border: 1px solid transparent; position: relative; }
.track-status-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.track-status-badge.pending   { background: rgba(245,158,11,0.1);  color: #fbbf24; border-color: rgba(245,158,11,0.2);  }
.track-status-badge.confirmed { background: rgba(249,115,22,0.1);  color: #fb923c; border-color: rgba(249,115,22,0.2);  }
.track-status-badge.shipped   { background: rgba(59,130,246,0.1);  color: #60a5fa; border-color: rgba(59,130,246,0.2);  }
.track-status-badge.delivered { background: rgba(34,197,94,0.1);   color: #4ade80; border-color: rgba(34,197,94,0.2);   }
.track-status-badge.canceled  { background: rgba(239,68,68,0.1);   color: #f87171; border-color: rgba(239,68,68,0.2);   }
.track-status-badge.pending::before  { animation: pulsePending 1.6s ease-in-out infinite; }
.track-status-badge.shipped::before  { animation: pulseDot 1.8s ease-in-out infinite; }

@keyframes pulsePending { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.75); } }
@keyframes pulseDot     { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

