/* إعدادات عامة */
*,  
*: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;
}

body {
  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;
}


/* ================== الهيدر ================== */
.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;
}

/* Hover: حركة خفيفة للأعلى + شفافية */
.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;
}

/* عند hover يظهر الخط */
.nav-links a:hover::after {
  width: 100%;
}
/* ================== المستخدم ================== */
#accountToggle {
  display: none;
  cursor: pointer;
  width: 33px;
  height: 33px;
  border-radius: 30%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: rgba(17, 24, 39, 0.6);
  color: white;
  font-weight: bold;
  font-size: 16px;
  margin-top: 0px;
}
#accountToggle.show {
  display: flex;
}


/* ================== الأيقونات العامة ================== */
.icon-cart,
.icon-menu {
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  position: relative;
}

/* ================== عداد السلة ================== */
.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;
}




/* ================== القائمة المنسدلة ================== */
.dropdown-menu {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  width: 70vw;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  flex-direction: column;
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
}

/* عند الفتح */
.dropdown-menu.show {
  display: flex;
}

/* ================== الاتجاه (RTL / LTR) ================== */
body.ltr .dropdown-menu {
  right: 0;
  left: auto;
}

body.rtl .dropdown-menu {
  left: 0;
  right: auto;
}

/* ================== اللوقو ================== */
.menu-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.menu-logo img {
  height: 70px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* ================== الفواصل ================== */
.dropdown-menu hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

/* ================== الروابط ================== */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-links a {
  color: #1E5631;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: 0.2s ease;
}

/* hover */
.menu-links a:hover {
  background: rgba(30, 86, 49, 0.08);
  transform: translateX(3px);
}

/* ================== اللغة ================== */
.menu-language {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  margin-bottom: 40px;
}

/* زر اللغة */
.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;
}

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

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



.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;
}

/* ================== الخلفية السوداء (Mobile فقط) ================== */
.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;
  }
}


/* ================== القائمة المنسدلة (Desktop) ================== */
@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;
  }

  /* LTR */
  body.ltr .dropdown-menu {
    right: 0;
    left: auto;
  }

  /* RTL */
  body.rtl .dropdown-menu {
    left: 0;
    right: auto;
  }
}


/* ================== الروابط ================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

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




/* ==================  الصفحه الرئسية  ================== */
.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;    
  font-family: 'Cairo', sans-serif;    
  background: #fff;    
}    


/* ======================= */
/* الشرائح */
/* ======================= */
.hero-slide {    
  position: absolute;    
  inset: 0;  
  width: 100%;    
  height: 100%;    
  display: flex;    
  align-items: center;    
  justify-content: center;    
  gap: 30px;    
  opacity: 0;    
  visibility: hidden;    
  transition: opacity 1s ease;    
}    

.hero-slide.active {    
  opacity: 1;    
  visibility: visible;    
  z-index: 1;    
}    

.shop-btn {    
 margin: 0;    
 padding: 15px 40px;    
 background: #1E5631;    
 color: #fff;    
 border-radius: 12px;    
 font-weight: 700;    
 text-decoration: none;    
 width: fit-content;
}
  
  
html[dir="rtl"] { direction: rtl; }    
html[dir="ltr"] { direction: ltr; }    




/* ================== 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;
  border-radius: 0;
  box-shadow: none;
}

  .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-slide {
    flex-direction: column;
    gap: 0;
  }

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

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

  .shop-btn {
    margin: 0;
    align-self: center;
  }

  .hero-media {
    width: 100%;
  }

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




/* ================== شريط الميزات أسفل الشرائح ================== */  
.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 0px 10px;  
  }  
  
  .feature-item {  
    flex-direction: column;  
    align-items: center;  
    text-align: center;  
    width: 45%;  
    margin-bottom: 15px;  
  }  
  
  .feature-item img {  
    width: 120px;  
    height: 120px;  
    margin-bottom: 0px;  
  }  
  
  .feature-item span {  
    font-size: 14px;  
  }  
}  




/* ================== كبون الهدية    ================== */
/* صورة الهدية */
.gift-image {
  text-align: center;
  margin-top: 30px;
  
}

.gift-image img {
  max-width: 95%;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}


/* ================== أقسام المنتجات ================== */
.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) and (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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




/* الكرت */
.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 {
  height: auto;
  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;
  justify-self: start;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  text-align: left;
  margin-top: -2px;
}

/* ⭐ التقييم (يسار أعلى) */
.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;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-size: 7px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  white-space: nowrap;
}

/* 💰 السعر (يمين نفس سطر النوع) */
.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;
}

/* RTL */
body[dir="rtl"] .product-card .product-info h3 {
  text-align: left;
}

body[dir="rtl"] .product-card .rating {
  justify-content: flex-start;
}

body[dir="rtl"] .type-badge {
  right: 12px;
  left: auto;
}




/* ================== كرت المنتجات في العروض الخاصة   ================== */
.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;
  transition: all 0.3s ease;
}


/* السعر بعد الخصم */
.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;
}

/* ================== قسم الثقة ================== */
.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-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;
}

.site-footer {
  background-color: #000; 
  color: #fff;
  padding: 40px 20px 20px 20px;
  font-family: 'Cairo', sans-serif;
}





/* ================== متغيرات النظام ================== */
:root {
  --primary:      #dc2626;
  --primary-dark: #b91c1c;
  --primary-glow: rgba(220, 38, 38, 0.2);
  --green:        #16a34a;
  --text-dark:    #0f172a;
  --text-mid:     #64748b;
  --bg-page:      #ffffff;
  --bg-card:      #FAFAFA;
  --border:       #e2e8f0;
  --radius-xl:    18px;
  --radius-lg:    14px;
  --radius-full:  999px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================== الصفحة ================== */
.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 button:focus {
  outline: none;
}

.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;
  font-family: 'Cairo', sans-serif;
}

.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{
  max-width: 720px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  font-family: 'Cairo', sans-serif;
}


.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: 15px;
}


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

.form-group label{
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

/* ================== INPUTS ================== */

.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;
}

/* Select */
.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;
}

/* Placeholder option */
.form-group select:has(option[value=""]:checked) {
  color: #9CA3AF;
  font-weight: 500;
}

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

/* Focus */
.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);
}

/* Filled */
.form-group input:not(:placeholder-shown),
.form-group select.has-value {
  border-color: #E7D7BE;
  background-color: #FFFDF8;
}

/* ================== إلغاء تنسيق Autofill من كروم ================== */
.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 #FFFDF8 inset !important;
  -webkit-text-fill-color: #111827 !important;
  border-color: #E7D7BE !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Error */
.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);
}

/* ================== SUMMARY ================== */

.checkout-card.summary{
  background: #FFF;
  border-radius: 24px;
  display: flex;
  padding: 10px;
  margin-top: 1px;
  flex-direction: column;
  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;
}

/* TOTAL */

.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);
}

/* ================== BUTTON ================== */

.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);
}

/* ================== MOBILE ================== */

@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;
  }

}





/* ================== صفحة تفاصيل المنتج  ================== */
.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: 0px 0 0 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);
}

body[dir="ltr"] .product-header .share-btn {
  transform: scaleX(-1);
}

body[dir="rtl"] .product-header .share-btn {
  margin-left: 5px;
}

body[dir="ltr"] .product-header .share-btn {
  margin-right: 5px;
}

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

.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 0px 0px 0;
}

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

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

body[dir="rtl"] .visitors {
  justify-content: flex-start;
}

body[dir="ltr"] .visitors {
  justify-content: flex-start;
}

.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-top: 10px;
  margin-bottom: 10px;
  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;
}

/*============العروض الخاصة اختيرات  ================= */
.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 input:checked + .offer-text,
.product-detail-wrapper .offer-item input:checked ~ .offer-price {
  color: #2a9d8f;
}

.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: 0px 50px;
    max-width: auto;
    margin: 0 auto;
    margin-top: 30px;
  }

  /* =========================
     بدون عروض (صورة + معلومات)
  ========================= */
  .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 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: -20px;
  }

  .product-actions button {
    width: 100%;
  }

}





/* ====================== صفحة التسجيل وتسجيل الدخول الحديثة ====================== */
.section-container {
  display: none;
  max-width: 600px;
  margin: 10px 15px 40px 15px;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

/* ====================== القسم الداخلي لكل قسم ====================== */
.accountSection {
  padding: 20px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  text-align: center;
}


.account-page {
  min-height: 100vh;
  padding: 40px 25px;
  background: #ffffff;
  font-family: system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  color: #1E5631;

}

/* ====================== العناوين ====================== */

.account-page h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
  color: #1E5631;
}

.account-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #1E5631;
  opacity: 0.95;
}

/* ====================== الأقسام ====================== */

.account-section {
  width: 100%;
  margin-bottom: 30px;
}

/* ====================== INPUTS العامة ====================== */

.account-section input[type="text"],
.account-section input[type="email"],
.account-section input[type="password"],
.account-section input[type="tel"] {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(30, 86, 49, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #000;
  outline: none;
  transition: 0.25s ease;
  box-sizing: border-box;
}

/* الاتجاه */
html[dir="rtl"] .account-section input:not([type="tel"]) {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .account-section input:not([type="tel"]) {
  direction: ltr;
  text-align: left;
}

/* حالة الخطأ (تصحيح قوي وواضح) */
.account-section input.input-error {
  border: 2px solid #e53935 !important;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.18) !important;
}


/* ====================== PLACEHOLDER ====================== */

.account-section input::placeholder {
  color: rgba(30, 86, 49, 0.45);
  font-size: 13px;
}

/* ====================== FOCUS ====================== */

.account-section input:focus {
  border-color: #1E5631;
  box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.10);
}

/* ====================== الأزرار ====================== */

.account-section .btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 40px;
  background: #1E5631;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 22px;
}

.account-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 86, 49, 0.15);
}

.account-section .btn-link {
  width: 100%;
  height: 54px;
  background: transparent;
  border: 1px solid rgba(30, 86, 49, 0.35);
  color: #1E5631;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.account-section .btn-link:hover {
  background: rgba(30, 86, 49, 0.08);
}

/* ====================== النصوص ====================== */

.account-section p {
  font-size: 14px;
  margin-top: 15px;
  color: rgba(30, 86, 49, 0.85);
  text-align: center;
}

/* ====================== كلمة المرور ====================== */

.password-wrapper {
  position: relative;
}

/* الأيقونة */
.password-wrapper .toggle-password {
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #1E5631;
  transition: 0.3s;

  /* دعم تلقائي للغة */
  inset-inline-end: 12px;
}

.password-wrapper .toggle-password:hover {
  color: #1E5631;
}

/* دعم الحقل نفسه */
.password-wrapper input {
  padding-inline-end: 40px;
}

/* ====================== نسيت كلمة المرور ====================== */

.forgot-password {
  margin: 2px 0 10px;
}

html[dir="rtl"] .forgot-password {
  text-align: right;
}

html[dir="ltr"] .forgot-password {
  text-align: left;
}

.forgot-password a {
  font-size: 13px;
  font-weight: 500;
  color: #1E5631;
  text-decoration: none;
  transition: 0.3s;
}

.forgot-password a:hover {
  opacity: 0.8;
}

/* ====================== الشروط ====================== */

.terms-box {
  margin: 18px 0 24px;
}

html[dir="rtl"] .terms-box {
  text-align: right;
}

html[dir="ltr"] .terms-box {
  text-align: left;
}

.terms-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #1E5631;
  cursor: pointer;
  line-height: 1.6;
}

.terms-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1E5631;
}

/* ====================== الأيقونة الرئيسية ====================== */

.account-title {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.icon-box {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,240,240,0.6));
  border: 1px solid rgba(30, 86, 49, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}

.icon-box i {
  font-size: 36px;
  color: #1E5631;
  transform: none;
}

/* العربية */
html[dir="rtl"] .icon-box i {
  transform: scaleX(1);
}

/* الفرنسية / الإنجليزية */
html[dir="ltr"] .icon-box i {
  transform: scaleX(-1);
}

.icon-box:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 45px rgba(30, 86, 49, 0.15);
  background: rgba(30, 86, 49, 0.05);
}

.icon-box.id-card {
  width: 92px;
  height: 80px;
}

/* ====================== شريط الأيقونات العلوي ====================== */

.top-actions {
  position: absolute;
  top: 20px;
  display: flex;
  align-items: center;
  z-index: 10;
}

html[dir="rtl"] .top-actions {
  left: 20px;
  justify-content: flex-start;
  right: auto;
}

html[dir="ltr"] .top-actions {
  right: 20px;
  justify-content: flex-end;
  left: auto;
}

/* ====================== زر الأيقونات ====================== */

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(30, 86, 49, 0.08);
  border: 1px solid rgba(30, 86, 49, 0.15);
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.icon-btn:hover {
  background: rgba(30, 86, 49, 0.15);
  transform: translateY(-2px);
}

/* ====================== نافذة النجاح ====================== */

#successModal.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

#successModal.modal.show {
  display: flex;
  opacity: 1;
}

#successModal .modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 440px;
  padding: 40px 30px;
  border-radius: 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(30, 86, 49, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(40px) scale(0.94);
  opacity: 0;
  transition: all 0.45s ease;
}

#successModal.show .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#successModal .modal-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 12px 30px rgba(30, 86, 49, 0.25));
  animation: logoPop 0.5s ease forwards;
}

#successModal h2 {
  font-size: 23px;
  font-weight: 800;
  color: #1E5631;
  margin: 0 0 14px;
}

#successModal p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  font-weight: 600;
}

@keyframes logoPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ====================== Responsive ====================== */

@media (max-width: 768px) {
  .account-page {
    padding: 30px 20px;
  }

  .account-page h1 {
    font-size: 34px;
  }

  .account-page h2 {
    font-size: 18px;
  }

  .account-section .btn,
  .account-section .btn-link {
    height: 52px;
  }
}

/* ====================== تحسين الشاشات الكبيرة فعليًا ====================== */

@media (min-width: 992px) {
  .account-page {
    max-width: 600px;
    margin: 60px auto;
    padding: 50px 45px;
    min-height: auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(30, 86, 49, 0.08);
    display: block;
  }

  .account-page h1 {
    font-size: 44px;
  }

  .account-page h2 {
    font-size: 22px;
  }

  .account-section input[type="text"],
  .account-section input[type="email"],
  .account-section input[type="password"],
  .account-section input[type="tel"] {
    height: 58px;
    font-size: 16px;
  }

  .account-section .btn,
  .account-section .btn-link {
    height: 60px;
    font-size: 15px;
  }

  .top-actions {
    top: 25px;
  }
}




/* ================== صفحه حساب المستخدم   ================== */

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ====================== تأثير أسفل الهيدر ====================== */
.account-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    transparent
  );
  pointer-events: none;
}

/* ====================== الحاوية الرئيسية ====================== */
.header-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ====================== الجهة اليسرى (الحساب + الطلبات + الكوبونات) ====================== */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ====================== الجهة اليمنى (الرئيسية + الخروج) ====================== */
.nav-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ====================== الأيقونات ====================== */
.icon-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-item i {
  font-size: 18px;
}

/* ====================== active ====================== */
.icon-item.active {
  background: #FFFFFF;
  color: #000;
  box-shadow: 0 6px 18px rgba(30, 86, 49, 0.35);
  transform: scale(1.05);
}

/* ====================== زر الخروج ====================== */
#logoutBtn {
  background: rgba(120, 120, 120, 0.12);
  border: 1px solid rgba(120, 120, 120, 0.25);
  color: #fff;
  transition: all 0.25s ease;
}

#logoutBtn:hover {
  background: #777;
  border-color: #777;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}



/* ====================== الحاوية الرئيسية ====================== */
.account-container {
  width: 100%;
  min-height: 100vh;
  padding: 15px 25px;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 90px;
  left: 0;
}

/* ====================== الأقسام ====================== */
.profile-section {
  width: 100%;
  max-width: 500px;
  display: none; /* مخفية افتراضياً */
  animation: fadeIn 0.25s ease;
}

.profile-section.active {
  display: block;
}

/* ====================== كرت المحفظة البنكي ====================== */
.wallet-card {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  direction: ltr;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.wallet-card.loaded {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}




/* ====================== BASIC CARD ====================== */
.wallet-card.basic {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;

  /* خلفية زرقاء احترافية */
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.25), transparent 50%),
    linear-gradient(135deg, #0a1a2f, #0f2a4a, #1e3a8a);

  color: #ffffff;

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(59, 130, 246, 0.25);

  transition: all 0.3s ease;
}



/* ====================== VIP CARD (FINTECH STYLE) ====================== */
.wallet-card.gold {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;

  /* بنفسجي غامق فاخر */
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(145deg, #1a0b2e, #12081f, #0b0614);

  color: #ffffff;

  /* عمق احترافي */
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(168, 85, 247, 0.2);

  border: 1px solid rgba(168, 85, 247, 0.25);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: all 0.35s ease;
}



/* ====================== VIP SHINE EFFECT ====================== */
.wallet-card.gold::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.10),
    transparent
  );
  transform: rotate(25deg);
  animation: vipShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vipShine {
  0% { transform: translateX(-30%) rotate(25deg); opacity: 0.3; }
  50% { transform: translateX(30%) rotate(25deg); opacity: 0.6; }
  100% { transform: translateX(-30%) rotate(25deg); opacity: 0.3; }
}

/* ====================== HEADER ====================== */
.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.wallet-owner {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ====================== ICON ====================== */
.wallet-gift {
  font-size: 2.2rem;
  transition: 0.3s ease;
}

.wallet-card.basic .wallet-gift {
  color: #fbbf24;
  opacity: 0.8;
}

.wallet-card.gold .wallet-gift {
  color: #fbbf24;
  opacity: 0.9;
}

/* ====================== CARD NUMBER ====================== */
.wallet-number {
  font-size: 1.4rem;
  letter-spacing: 4px;
  font-weight: 600;
  margin: 18px 0;
}

/* ====================== FOOTER ====================== */
.wallet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.wallet-balance,
.wallet-expiry {
  font-size: 1rem;
  font-weight: 600;
}

/* ====================== VIP TEXT ADJUST ====================== */
.wallet-card.gold .wallet-balance,
.wallet-card.gold .wallet-expiry {
  color: #ffffff;
  opacity: 0.95;
}

#ordersContainer {
  display: flex;
  flex-direction: column;
  max-height: 76vh; 
  overflow-y: auto;
  overflow-x: hidden;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: "Tajawal", sans-serif;
  direction: ltr;
}

/* =========================
   بطاقة الطلب
========================= */
.order-item {
  background: #f5f5f5;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* =========================
   رقم الطلب - في المنتصف
========================= */
.order-header {
  width: calc(100% + 32px);
  margin: -16px -16px 0 -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  border-bottom: 1px solid #f1f1f1;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* ================== HEADER STATUS COLORS ================== */
.order-header.pending{
  background: rgba(255, 193, 7, 0.15);
  color: #b45309;
}

.order-header.confirmed{
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

.order-header.shipped{
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.order-header.delivered{
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.order-header.canceled{
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}


/* =========================
   المحتوى
========================= */
.order-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   اليسار - الحالة
========================= */
.order-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}



/* =========================
   اليمين - المبلغ والتاريخ
========================= */
.order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

/* =========================
   السعر
========================= */
.order-price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  direction: ltr;
}

.price-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #111;
}

.price-currency {
  font-size: 16px;
  font-weight: 700;
  color: #ff7a00;
  line-height: 1;
}

/* =========================
   التاريخ
========================= */
.order-date {
  font-size: 10px;
  font-weight: 500;
  color: #8a8a8a;
}


.order-status{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 95px;
  height: 34px;
  padding: 0 14px;
  border-radius: 30px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 700;
}

/* الحالات */
.order-status.pending{
  background: rgba(255, 193, 7, 0.12);
  color: #b45309;
}

.order-status.confirmed{
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.order-status.shipped{
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.order-status.delivered{
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.order-status.canceled{
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}


/* =========================
   حالة عدم وجود طلبات
========================= */
.empty-orders{
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 210px 20px;
}

.empty-orders i{
  font-size: 120px;
  color: #dcdcdc;
}

/* =========================
   حالة عدم وجود كوبونات
========================= */
.empty-coupons{
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 210px 20px;
}

.empty-coupons i{
  font-size: 110px;
  color: #dcdcdc;
}





/* ====================== الحاوية ====================== */
#couponsContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;

  max-height: 81.5vh; 
  overflow-y: auto;
  overflow-x: hidden;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  font-family: "Tajawal", sans-serif;
  direction: ltr;
}

/* ====================== الكوبون الأساسي ====================== */
.coupon-item {
  display: flex;
  height: 110px;        
  flex-shrink: 0;       
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  position: relative;
}

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

/* ====================== الجزء الأيسر ====================== */
.coupon-left {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f4f4f4, #ffffff);
  border-right: 2px dashed #ddd;
}

.coupon-left .coupon-code {
  font-size: 12px;
  font-weight: bold;
  transform: rotate(90deg);
  letter-spacing: 1px;
  color: #444;
}

/* ====================== الجزء الأيمن ====================== */
.coupon-right {
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  gap: 8px;
}

/* ====================== أعلى الصف ====================== */
.coupon-right .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  min-height: 22px;
}

/* ===== اسم الكوبون ===== */
.coupon-right .top-row span:first-child {
  font-weight: 700;
}

/* ====================== أسفل الصف ====================== */
.coupon-right .bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
}

/* ====================== الخصم ====================== */
.coupon-right .bottom-row span:last-child {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* ====================== أيقونة النسخ ====================== */
.copy-icon {
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(1px);
  margin-top: 15px;
}

/* ====================== 🟡 ترحيبي ====================== */
.coupon-item.welcome {
  background: linear-gradient(135deg, #ffe082, #ffffff);
  border: 2px solid #c99700;
  box-shadow: 0 10px 25px rgba(201,151,0,0.35);
}

.coupon-item.welcome::before {
  content: "WELCOME";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: bold;
  color: #a87400;
}

/* 🔥 لون أقوى */
.coupon-item.welcome .coupon-code,
.coupon-item.welcome .copy-icon,
.coupon-item.welcome .bottom-row span:last-child,
.coupon-item.welcome .top-row span:first-child {
  color: #a87400;
}

/* ====================== 🟠 نقاط ====================== */
.coupon-item.points {
  background: linear-gradient(135deg, #fff4ec, #ffffff);
  border: 2px solid #d35400;
  box-shadow: 0 8px 20px rgba(211,84,0,0.20);
}

.coupon-item.points::before {
  content: "POINTS";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: bold;
  color: #d35400;
}

.coupon-item.points .coupon-code,
.coupon-item.points .copy-icon,
.coupon-item.points .bottom-row span:last-child,
.coupon-item.points .top-row span:first-child {
  color: #d35400;
}

/* ====================== 🔵 عيد ====================== */
.coupon-item.aid {
  background: linear-gradient(135deg, #dbe7ff, #ffffff);
  border: 2px solid #2c3e90;
  box-shadow: 0 10px 25px rgba(44,62,144,0.35);
}

.coupon-item.aid::before {
  content: "AIDE";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: bold;
  color: #1f2a6b;
}

.coupon-item.aid .coupon-code,
.coupon-item.aid .copy-icon,
.coupon-item.aid .bottom-row span:last-child,
.coupon-item.aid .top-row span:first-child {
  color: #1f2a6b;
}

/* ====================== 🟣 رمضان ====================== */
.coupon-item.ramadan {
  background: linear-gradient(135deg, #f3e8ff, #ffffff);
  border: 2px solid #8e44ad;
  box-shadow: 0 8px 20px rgba(142,68,173,0.20);
}

.coupon-item.ramadan::before {
  content: "RAMADAN";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: bold;
  color: #8e44ad;
}

.coupon-item.ramadan .coupon-code,
.coupon-item.ramadan .copy-icon,
.coupon-item.ramadan .bottom-row span:last-child,
.coupon-item.ramadan .top-row span:first-child {
  color: #8e44ad;
}

/* ====================== 🍷 رأس السنة ====================== */
.coupon-item.newyear {
  background: linear-gradient(135deg, #ffd6d6, #ffffff);
  border: 2px solid #8e2b2b;
  box-shadow: 0 10px 25px rgba(142,43,43,0.35);
}

.coupon-item.newyear::before {
  content: "NEW YEAR";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: bold;
  color: #6e1f1f;
}

.coupon-item.newyear .coupon-code,
.coupon-item.newyear .copy-icon,
.coupon-item.newyear .bottom-row span:last-child,
.coupon-item.newyear .top-row span:first-child {
  color: #6e1f1f;
}

/* ====================== ⚫ مستعمل ====================== */
.coupon-item.used {
  background: linear-gradient(135deg, #f2f2f2, #ffffff);
  border: 2px solid #bbb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  opacity: 0.85;
  filter: grayscale(20%);
}

.coupon-item.used::before {
  content: "USED";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: bold;
  color: transparent;
}

.coupon-item.used .coupon-code,
.coupon-item.used .bottom-row span:last-child,
.coupon-item.used .top-row span:first-child {
  color: #777;
}

.coupon-item.used .copy-icon {
  display: none;
}

/* ====================== USED LABEL ====================== */
.used-label {
  background: #777;
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
}







/* ================== صفحات السياسات والاحكام   ================== */

.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);
  font-family: 'Cairo', sans-serif;
  color: #333;
  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;
  font-weight: bold; 
  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-section {
  padding: 20px 20px;
  font-family: 'Cairo', sans-serif;
  text-align: center;
}

.contact-section h2 {
  font-size: 2em;
  color: #333366;
  margin-bottom: 20px;
}

.contact-section p {
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

.contact-form, .contact-info {
  background: #fff;
  padding: 30px 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: 20px;
}

.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;
}


/* ====================== نظام الكبونات والنقاط   ====================== */

.loyalty-page{
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  font-family: "Tajawal", sans-serif;
  background: #f6f7fb;
  border-radius: 10px;
}

/* العنوان */
.title{
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 30px;
  color: #111;
}

/* الكارد */
.card{
  position: relative;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 20px;

  margin-bottom: 16px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);

  transition: all 0.3s ease;
  overflow: hidden;
}

/* Hover أقوى */
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.10);
}

/* شريط سفلي بدل الجانبي */
.card::before{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: 0 0 18px 18px;
  opacity: 0.9;
}




/* العنوان داخل الكارد */
.card h2{
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 900;
  color: #111;
}

/* النص */
.card p{
  margin: 6px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}



.card.welcome::before{
  background: linear-gradient(180deg, #f1c40f, #f39c12);
}

.card.points::before{
  background: linear-gradient(180deg, #e67e22, #d35400);
}

.card.redeem::before{
  background: linear-gradient(180deg, #3498db, #2980b9);
}

.card.upgrade::before{
  background: linear-gradient(180deg, #9b59b6, #8e44ad);
}

.card.expiry::before{
  background: linear-gradient(180deg, #95a5a6, #7f8c8d);
}

.card.events::before{
  background: linear-gradient(180deg, #e74c3c, #c0392b);
}

.login-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 14px;
}

.login-warning i {
  font-size: 18px;
}

/* تحسين القوائم إذا استعملتها */
.card ul{
  margin-top: 10px;
  padding-right: 18px;
}

.card ul li{
  margin-bottom: 6px;
  color: #555;
  line-height: 1.7;
}





/* ==================  صفحه المنتجات ================== */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 30px;
  background-color: #fdfdfd;
  flex-wrap: wrap;
  gap: 20px;
}

/* ================== عداد المنتجات ================== */
#productsCount {
  font-size: 18px;
  font-weight: 600;
  color: #1E5631;
  margin: 0;
}

/* ================== قائمة التصنيفات ================== */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.category-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: #1E5631;
  color: #fff;
  border-color: #145021;
}

.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;
  }
}



/* ================== نافذه اتمام الطلب ================== */

.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;
}

.modal-overlay.active{
  opacity: 1;
  visibility: visible;
}


.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);
  }
}

/* ================== الهيدر ================== */
.modal-header{
  background: linear-gradient(135deg, #1E5631, #1E5631);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}



.modal-header strong{
  font-size: 30px;
  letter-spacing: 2px;
  color: #F5F3EB;
  font-weight: 700;
}

/* ================== المحتوى ================== */
.modal-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 20px;
  text-align: center;
  gap: 10px;
}

.modal-body img{
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-top: 10px;
  display: block;
}

/* ================== النصوص ================== */
.modal-body h2{
  font-size: 18px;
  color: #16a34a;
  font-weight: 700;
  margin: 0;
}

.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;
}






/* ===== Container (LTR default) ===== */
#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;
}

/* ===== Toast Base ===== */
.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;
}

/* ===== LTR animation (from right) ===== */
.toast {
  transform: translateX(120%);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RTL animation (from left) ===== */
body[dir="ltr"] .toast {
  transform: translateX(-120%);
}

body[dir="ltr"] .toast.show {
  transform: translateX(0);
}

/* ===== Colors ===== */

.toast.success {
  background: #166534;
}

.toast.delete {
  background: #991b1b;
}

.toast.info {
  background: #f59e0b;
}

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




/* ================== Modal Backdrop ================== */
.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;
}

/* ================== Box ================== */
.track-box {
  width: 100%;
  max-width: 460px;
  height: 70vh;
  max-height: 680px;
  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;
  }
}

/* ================== Header ================== */
.track-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px;
  background: #0e1117;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* Subtle top accent line */
.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;
}

/* ===== Input ===== */
.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-family: 'DM Sans', system-ui, sans-serif;
  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);
  font-style: normal;
}

.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);
}

/* ===== Button ===== */
.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);
}

/* ================== Loading ================== */
.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;
}

/* ================== Spinner ================== */
.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: 0 auto;
  margin-top: 150px;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================== Result Area ================== */
.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;
  font-family: 'DM Sans', sans-serif;
}

/* ================== Error ================== */
.error {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #dc2626;
  margin-top: 140px;
  padding: 16px;
  border-radius: 14px;
  letter-spacing: 0.1px;
  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); }
}

/* ================== Card ================== */
.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);
  }
}

/* ================== Order ID Row (Header Band) ================== */
.track-row.order-id-row {
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 16px 20px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Decorative glow streak */
.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;
  font-family: 'DM Sans', sans-serif;
}

.track-row.order-id-row .value {
  color: #f8fafc;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.5px;
  font-family: 'DM Mono', monospace;
}

/* ================== Standard Rows ================== */
.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-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.value {
  font-weight: 500;
  color: #e2e8f0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
}

/* ================== Status Badge ================== */
.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;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid transparent;
  position: relative;
}

/* Dot indicator */
.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ================== Status Variants ================== */
.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.status-badge.confirmed {
  background: rgba(249, 115, 22, 0.1);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.2);
}

.status-badge.shipped {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
}

.status-badge.delivered {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.2);
}

.status-badge.canceled {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

.status-badge.pending::before {
  animation: pulsePending 1.6s ease-in-out infinite;
}

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


.status-badge.shipped::before {
  animation: pulseDot 1.8s ease-in-out infinite;
}

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




