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

body.loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
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;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #4a90e2;
  color: white;
  font-weight: bold;
  font-size: 16px;
  margin-top: -5px;
}
#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;
  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-slider {    
  position: relative;    
  width: 100%;    
  height: 100%;    
}    

/* ======================= */
/* الشرائح */
/* ======================= */
.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; }    

@media (min-width: 993px) {


  .hero-section {
    height: clamp(470px, 65vh, 600px);
  }

  /* الصورة full background */
  .hero-media {    
    position: absolute;
    inset: 0;
    width: 100%;    
    height: 100%;    
    z-index: 1;
  }    

  .hero-media img {    
    width: 100%;    
    height: 100%;    
    object-fit: cover;    
    display: block;
    border-radius: 0;
    box-shadow: none;
  }    

  /* النص فوق الصورة */
  .hero-content {    
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;    
    flex-direction: column;    
    gap: 15px;    
    color: #000;    
  }    

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

  /* LTR → يسار */
  html[dir="ltr"] .hero-content {    
    left: 70px;
    right: auto;

    align-items: flex-start;
    text-align: left;
  }    

  /* RTL → يمين */
  html[dir="rtl"] .hero-content {    
    right: 70px;
    left: auto;

    align-items: flex-end;
    text-align: right;
  }    

}

/* ======================= */
/* 📱 MOBILE (نفس التصميم الحالي بدون تغيير) */
/* ======================= */
@media (max-width: 992px) {    

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

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

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

  .hero-media {    
    flex: unset;  
    width: 100%;  
  }  

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

/* ======================= */
/* صور Desktop / Mobile */
/* ======================= */
.desktop-img {  
  display: block;  
}    

.mobile-img {  
  display: none;  
}    

@media (max-width: 992px) {  
  .desktop-img {  
    display: none;  
  }  

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




/* ================== شريط الميزات أسفل الشرائح ================== */
.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;
}

.feature-item:hover {
  transform: scale(1.05);
  color: #ff6f61;
}


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




/* ================== أقسام المنتجات ================== */
.products-section h2 {
  text-align: center;
  font-size: 25px;
  color: #333366;
  margin-top: 70px;
  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;
  height: auto;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}


.product-card .product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-top: 20px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}


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

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

.product-card .product-info .add-to-cart:hover {
  transform: scale(1.03);
}

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 .add-to-cart:hover {
  background: #b71c1c;
  transform: scale(1.05);
}

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



/* ================== قسم اقتباسات العملاء ================== */
.testimonials-section {
  background-color: #f5f5f5;
  padding: 50px 20px;
  text-align: center;
}

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

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: #fff;
  padding: 45px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.testimonial-card p {
  font-size: 1em;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
  font-style: italic;
}

.testimonial-card h4 {
  font-size: 0.95em;
  color: #333366;
  font-weight: bold;
  margin: 0;
}
.testimonial-item {
  text-align: center;
}

.testimonial-image {
  margin-bottom: -35px;
}

.testimonial-image img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}



/* ================== قسم الثقة ================== */

.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: #d2a679;
  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;
}



/* ================== قسم النشرة البريدية ================== */
.newsletter-section {
  background-color: #f5efe9; /* البني الفاتح */
  color: #333366;
  padding: 40px 20px;
  text-align: center;
  
}

.newsletter-section h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  font-weight: bold;
}

.newsletter-section p {
  font-size: 1em;
  margin-bottom: 20px;
  opacity: 0.9;
}

.newsletter-section form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-section input[type="email"] {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  flex: 1 1 250px;
  max-width: 400px;
  height: 45px;
  outline: none;
  box-sizing: border-box;
}

.newsletter-section button {
  padding: 10px 20px;
  background-color: #e3d5c6;
  color: #333366;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.newsletter-section button:hover {
  background-color: #e3d5c6;
}


/* ================== قسم الفوتر  ================== */

.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: #d9c6b2; /* لون بني فاتح */
}

.footer-column a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #d9c6b2;
}

.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: #d9c6b2;
  transform: scale(1.2);
}

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

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





/* ================== صفحة سلة المشتريات ================== */
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 180px; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;    
  background-color: #fff;
}

/* ----------------- الشريط العلوي ----------------- */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #E8E5D6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.cart-header h2 {
  font-size: 1.2em;
  color: #1E5631;
  margin: 0;
}

.close-cart {
  background: #1E5631;
  border: none;
  color: #E8E5D6;
  font-size: 0.8em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.close-cart:hover {
  background: #1E5631;
  transform: scale(1.05);
}

/* ----------------- حاوية المنتجات ----------------- */
.cart-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;

}

/* ----------------- عنصر المنتج ----------------- */
.cart-item {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 10px;
  padding: 8px 12px;
  gap: 12px;
  height: 90px;
}

/* صورة المنتج */
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #fafafa;
  border: 1px solid #ccc;
}

/* عمود المعلومات */
.cart-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* الجزء العلوي: اسم المنتج + زر الحذف */
.cart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* اسم المنتج */
.cart-top h3 {
  margin: 0;
  font-size: 0.8em;
  color: #333;
}

/* زر الحذف */
.cart-top .remove-item {
  background: transparent;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.3s;
}

.cart-top .remove-item:hover {
  background: #ccc;
  color: #1E5631;
}

/* الجزء السفلي: السعر + التحكم بالكمية */
.cart-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* السعر */
.cart-bottom .price {
  font-weight: bold;
  color: #333366;
  font-size: 0.9em;
}

/* أزرار التحكم بالكمية */
.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  width: 55px;
  height: 24px;
  background-color: #fff;
}

.quantity-controls button {
  flex: 1;
  border: none;
  background-color: #f5f5f5;
  font-size: 0.7em;
  cursor: pointer;
  height: 100%;
  transition: background 0.2s;
}

.quantity-controls button:hover {
  background-color: #e0e0e0;
}

.quantity-controls button:focus {
  background-color: transparent;
  outline: none;
}

.quantity-controls button:active {
  background-color: #e0e0e0;
}

.quantity-controls span.quantity {
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 0.7em;
  color: #333;
}

/* ----------------- ملخص السلة ----------------- */
.cart-summary {
  background: #E8E5D6;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  gap: 10px;
  border-top: 1px solid #ccc;
}

/* صفوف الملخص */
.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1em;
  font-weight: bold;
  color: #1E5631;
}
.cart-label {
  font-size: 16px;
  font-weight: 600;
  color: #1E5631;
  display: block;
  letter-spacing: 0.3px;
  opacity: 0.95;
}

#totalPrice {
  font-size: 1.4em;
  font-weight: bold;
  color: #1E5631;
}

/* الخط الفاصل */
.cart-summary hr {
  border: 0;
  border-top: 1px solid #1E5631;
  margin: 5px 0;
}

/* زر استكمال الطلب */
#checkoutBtn {
  padding: 12px 0;
  border: none;
  background: #1E5631;
  color: #E8E5D6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900; 
  width: 100%;
  margin-top: 10px;
  transition: background 0.3s, transform 0.3s;
}

#checkoutBtn:hover {
  background: #1E5631;
  transform: scale(1.03);
}






/* ================== صفحة استكمال الطلب ================== */
.checkout-page {
  max-width: 650px;
  margin: 10px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  font-family: 'Cairo', sans-serif;
}

/* ================== Card System ================== */
.checkout-page .checkout-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eee;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: 0.2s ease;
}


.checkout-page .checkout-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 5px;
}

.checkout-header-box {  
  max-width: 1100px;  
  margin: 20px auto;  
  padding: 20px 16px;  
  background: #ffffff;  
  border-radius: 14px;  
  font-family: 'Cairo', sans-serif;  
  text-align: center;  
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);  
  transition: 0.2s ease;  
  position: relative; /* مهم للخط السفلي */ 
}  

/* خط سفلي احترافي */
.checkout-header-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 3px;
  background: linear-gradient(to right, transparent, #C62828, #ff9800, transparent);
  border-radius: 50px;
  opacity: 0.8;
}

/* العنوان */  
.checkout-header-box h2 {  
  margin: 0 0 6px;  
  font-size: 28px;  
  font-weight: 900;  
  color: #111827;  
  letter-spacing: 0.2px;  
}  

/* النص */  
.checkout-header-box p {  
  margin: 0;  
  font-size: 14px;  
  color: #6b7280;  
  line-height: 1.6;  
}

/* ================== Inputs ================== */
.checkout-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-page .form-group label {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.checkout-page .form-group input,
.checkout-page .form-group select {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  transition: 0.2s ease;
  outline: none;
}

.checkout-page .form-group input:focus,
.checkout-page .form-group select:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.08);
}

/* ================== Select Fields (Shipping) ================== */
.checkout-page .checkout-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #000;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  outline: none;
  cursor: pointer;
  transition: 0.25s ease;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* إخفاء السهم في بعض المتصفحات */
.checkout-page .checkout-card select::-ms-expand {
  display: none;
}

/* Hover */
.checkout-page .checkout-card select:hover {
  border-color: #111827;
}

/* Focus */
.checkout-page .checkout-card select:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(30,136,229,0.12);
}

/* Label تحسين بسيط */
.checkout-page .form-group label {
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  margin-bottom: 4px;
}


/* ================== Payment Grid ================== */
.checkout-page .payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
/* ================== Payment Box ================== */
.checkout-page .payment-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: 0.25s ease;
}

.checkout-page .payment-box input {
  display: none;
}

.checkout-page .payment-box img {
  width: 90px;
  height: 70px;
  margin-bottom: 6px;
  transition: transform 0.25s ease;
}

.checkout-page .payment-box span {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  transition: 0.2s ease;
}

.checkout-page .payment-box:hover {
  transform: translateY(-3px);
  border-color: #111827;
}
.checkout-page .payment-box:has(input:checked) {
  border-color: #111827;
  background: rgba(17, 24, 39, 0.06);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.15);
  transform: translateY(-2px);
}
.checkout-page .payment-box:has(input:checked) img {
  transform: scale(1.08);
}
.checkout-page .payment-box:has(input:checked) span {
  color: #111827;
  font-weight: 900;
}





/* ==================  حاوية ملخص الطلب ================== */
.checkout-page .checkout-card.summary {
  background: #fff;
  border-radius: 24px;
  padding: 5px;
  border-radius: 10px;
}

/* ================== Products Grid ================== */
.checkout-page .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 50px;
}

/* ================== Product Card ================== */
.checkout-page .order-item {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  text-align: center;
  transition: all 0.25s ease;
  overflow: hidden;
}

/* ================== Image ================== */
.checkout-page .order-item-img {
  width: 100%;
  max-width: 110px;
  height: 85px; /* ✔ تصحيح الخطأ */
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

/* ================== Qty Badge (Ultra Premium) ================== */
.checkout-page .order-item-qty {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.88);
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.08);
}



/* ================== Price (Bigger Premium) ================== */
.checkout-page .order-item-price {
  font-size: 14.5px;   
  font-weight: 600;
  color: #0f172a;
  margin-top: 4px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 8px;
}




/* ================== Summary ================== */
.checkout-page .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #F5F3EB;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}



/* النص */
.checkout-page .summary-line span {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

/* القيمة */
.checkout-page .summary-line b {
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: 0.2px;
}

/* ================== TOTAL ================== */
.checkout-page .summary-line.total {
  background: #F5F3EB;
  border: none;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  transform: none;
}

.checkout-page .summary-line.total span,
.checkout-page .summary-line.total b {
  color: #ffffff;
}

/* ================== COUPON ================== */
.checkout-page .coupon-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #F5F3EB;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.checkout-page .coupon-toggle:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* ================== COUPON FIELD ================== */
.checkout-page .coupon-field {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}
.checkout-page .coupon-field.open {
  max-height: 140px;
}

/* input */
.checkout-page .coupon-input {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.checkout-page .coupon-input input {
  flex: 1;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  outline: none;
  transition: 0.2s ease;
}

.checkout-page .coupon-input input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.08);
}

/* button */
.checkout-page .coupon-input button {
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: #111827;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.checkout-page .coupon-input button:hover {
  background: #0f172a;
  transform: translateY(-2px);
}

/* النص */
.checkout-page .summary-line.total span {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  opacity: 0.9;
}

/* الرقم */
.checkout-page .summary-line.total b {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
}

/* ================== BUTTON ================== */
.checkout-page .btn-primary {
  margin-top: 12px;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: #dc2626;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25);
}

/* Hover */
.checkout-page .btn-primary:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.35);
}





/* ================== صفحة تفاصيل المنتج بالعربية ================== */

/* الحاوية الرئيسية */
.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: 10px 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: 26px;
  color: #333366;
  margin: 5px 0px 0px 0;
}

.rating {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  color: #f97316;
  font-size: 20px;
}

body[dir="rtl"] .rating i {
  transform: scaleX(-1);
}

body[dir="ltr"] .rating i {
  transform: scaleX(1);
}

.product-detail-wrapper .rating {
  font-size: 20px;
  margin: 5px 0px 0px 0;
}

.price {
  font-size: 1.9em;
  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: 10px 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: 15px;
  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;
}

.product-detail-wrapper button.add-to-cart:hover {
  transform: scale(1.05);
}

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;
  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: 992px) {

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

}





/* ====================== صفحة الحساب الحديثة ====================== */

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




/* ====================== 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;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  direction: rtl;
}

.icon-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  color: #555;
}

.icon-item i {
  font-size: 1.4rem;
}

.icon-item span {
  margin-left: 6px;
  font-weight: 500;
  color: #4caf50; /* لون الاسم */
}

.icon-item:hover {
  color: #4caf50;
  transform: scale(1.1);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* أيقونة الخروج في الطرف الأقصى */
#logoutBtn {
  margin-left: auto;
}

#accountIcon {
  margin-left: 10px;
}


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

/* ====================== القسم الداخلي لكل قسم ====================== */
.section-inner {
  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;
}

/* ====================== كرت المحفظة البنكي ====================== */
.wallet-card {
  width: 100%;
  height: 200px;
  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;

  /* الافتراضي = العادية */
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: #fff;
}

/* ====================== 🟦 العادية (Basic) ====================== */
.wallet-card.basic {
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: #fff;
}

/* ====================== 🥇 الذهبية (Gold) ====================== */
.wallet-card.gold {
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #222;
}

/* ====================== الرأس ====================== */
.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-owner {
  font-size: 1rem;
  font-weight: 500;
}

/* ====================== أيقونة الهدية ====================== */
.wallet-gift {
  font-size: 2rem;
  transition: 0.3s ease;
}

/* لون الأيقونة حسب النوع */
.wallet-card.basic .wallet-gift {
  color: #ffd700;
}

.wallet-card.gold .wallet-gift {
  color: #b8860b;
}

/* ====================== رقم المحفظة ====================== */
.wallet-number {
  font-size: 1.4rem;
  letter-spacing: 3px;
  font-weight: bold;
  margin: 20px 0;
}

/* ====================== الأسفل ====================== */
.wallet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-balance,
.wallet-expiry {
  font-size: 1.1rem;
  font-weight: bold;
}

/* نصوص البطاقة الذهبية */
.wallet-card.gold .wallet-balance,
.wallet-card.gold .wallet-expiry {
  color: #222;
}



/* ====================== الأقسام المتساوية ====================== */
#accountSection,
#passwordSection,
#ticketsSection {
  max-width: 100%;
  margin: 0 auto 20px auto;
}

/* ====================== نموذج تغيير كلمة المرور ====================== */
#passwordSection input,
#ticketsSection input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Cairo', sans-serif;
}

#passwordSection button {
  width: 100%;
  padding: 12px;
  background: #333366;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin: 15px 0;
  cursor: pointer;
}

#ticketsSection button {
  width: 100%;
  padding: 12px;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin: 15px 0;
  cursor: pointer;
}

/* ====================== أيقونة الحساب ====================== */
#passwordSection .profile-header i {
  font-size: 80px;
  color: #333366;
  background: #e0e0e0;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  line-height: 100px;
  display: inline-block;
  margin-bottom: 10px;
}

/* الاسم الكامل */
#passwordSection .profile-header h3 {
  margin: 5px 0 0 0;
  font-size: 20px;
}

/* البريد الإلكتروني */
#passwordSection .profile-header p {
  margin: 0;
  color: gray;
  font-size: 14px;
}


.points-card {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  padding: 10px 15px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #eee;
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: "Tajawal", sans-serif;
  top: 70px;
  z-index: 100;
}

/* ====================== Header ====================== */
.points-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* title */
.icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #222;
}

.icon-title i {
  color: #e67e22;
}

/* badge */
.points-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff4ec, #ffe8d9);
  color: #e67e22;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(230,126,34,0.15);
}

/* ====================== INPUT + BUTTON (50/50) ====================== */
.points-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* INPUT 50% */
.points-input-row input {
  flex: 1;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  outline: none;
  font-size: 14px;
  background: #fff;
  transition: 0.2s;
}

.points-input-row input:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230,126,34,0.12);
}

/* BUTTON 50% */
.convert-btn {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  box-shadow: 0 6px 14px rgba(230,126,34,0.25);
}

.convert-btn i {
  font-size: 16px;
}

.convert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230,126,34,0.3);
}

.convert-btn:active {
  transform: scale(0.97);
}


#couponsContainer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  margin-top: 162px;
  height: auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Tajawal", sans-serif;
  direction: ltr;
}

/* ====================== الكوبون الأساسي ====================== */
.coupon-item {
  display: flex;
  height: 110px;
  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;
}



/* ======================  حاوية الطلبات السابقة ====================== */

#ordersContainer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  max-height: 400px;
  overflow-y: auto;
}

.order-card {
  background-color: #f0f4ff;
  border-left: 5px solid #4a90e2;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}



.order-row:first-child {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  color: #000;
  margin-bottom: 8px;
}

.order-row:nth-child(2) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-status {
  background-color: rgba(10, 35, 90, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  order: 2;
}

.order-total {
  color: #000;
  font-weight: 600;
  order: 1;
}

.order-row:nth-child(3) {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-date {
  font-size: 14px;
  color: #666;
  order: 1;
}

.toggle-details {
  width: 15px;
  height: 15px;
  font-size: 15px;
  background-color: transparent;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  order: 2;
  transform: translateY(8px);
}

.order-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 14px;
  color: #333;
}


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

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

.page-content ul {
  list-style-type: disc;
  padding-left: 25px;
  color: #000;
  margin-bottom: 15px;
}

.page-content ul li {
  margin-bottom: 10px;
}

.content-section {
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.page-content strong {
  color: #0d47a1;
}

/* ==================  الصفحه اتصل بنا  ================== */
.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;
}

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

  .category-btn {
    flex: 1;
    text-align: center;
  }
}


/* ترتيب العناصر */
.checkout-page .summary-line.total b {
  display: inline-flex;
  align-items: center;
}

/* السعر */
.checkout-page .summary-line.total.has-discount b {
  color: #dc2626;
}

/* الخصم يظهر قبل المبلغ */
.checkout-page .discount-amount {
  order: -1; 
  color: #111827;
  font-weight: 700;
  font-size: 13px;
  margin-left: 15px; 
}



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

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






#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  z-index: 9999;
}

/* ================== Toast Base ================== */
.toast {
  width: fit-content;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  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;
  transform: translateX(120%);
  transition: all 0.35s ease;
}

/* ================== ظهور ================== */
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* ================== أنواع زجاجية (أقل شفافية) ================== */
.toast.success {
  background: rgba(22, 163, 74, 0.35);
  border-color: rgba(22, 163, 74, 0.55);
}

.toast.error {
  background: rgba(220, 38, 38, 0.35);
  border-color: rgba(220, 38, 38, 0.55);
}

.toast.warning {
  background: rgba(245, 158, 11, 0.35);
  border-color: rgba(245, 158, 11, 0.55);
}

.toast.info {
  background: rgba(15, 91, 115, 0.35);
  border-color: rgba(15, 91, 115, 0.55);
}

.toast.delete {
  background: rgba(220, 38, 38, 0.35);
  border-color: rgba(220, 38, 38, 0.55);
}





/* ================== Modal ================== */
.track-modal{
  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;
}

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

/* ================== Box ================== */
.track-box{
  width: 92%;
  max-width: 450px;
  height: 75vh;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(25px) scale(0.96);
  animation: trackPop 0.35s ease forwards;
}

@keyframes trackPop{
  to{
    transform: translateY(0) scale(1);
  }
}

/* ================== Header ================== */
.track-header{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, #000, #000);
  position: relative;
}

.track-header input{
  flex: 1;
  padding: 10px;
  border: 1px solid #fff;
  outline: none;
  border-radius: 10px;
  font-size: 14px;
  background: transparent;
  color: #fff;
}

.track-header input::placeholder{
  color: rgba(255,255,255,0.7);
}

.track-header input:focus{
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.track-header button{
  width: 45px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.track-header button:hover{
  background: rgba(255,255,255,0.1);
  opacity: 1;
}


.track-loading-state{
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: 140px auto;
}

.track-loading-state img{
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.track-loading-state.show{
  display: flex;
}

/* ================== Result ================== */
.track-result{
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* رسالة */
.track-result p{
  font-size: 14px;
  color: transparent;
  text-align: center;
  margin-top: 40px;
}

.error{
  width: 100%;
  text-align: center;
  font-size: 16px;
  color: #ef4444;
  margin-top: 160px;
  padding: 10px;
  border-radius: 10px;
}

.error-icon{
  font-size: 26px;
  color: #ef4444;
  margin-top: 20px;
  animation: shakeIcon 1.2s ease-in-out infinite;
}

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



.loading-spinner{
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.06);
  border-top: 4px solid #22c55e;
  border-bottom: 4px solid #22c55e;
  border-right: 4px solid rgba(34, 197, 94, 0.25);
  border-left: 4px solid rgba(34, 197, 94, 0.25);
  animation: spin 1.5s linear infinite;
  margin: 180px auto;
  box-shadow:
    0 0 18px rgba(34, 197, 94, 0.25),
    inset 0 0 10px rgba(34, 197, 94, 0.25);
}

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

/* ================== Card ================== */

.track-card{
  background: #fff;
  border-radius: 16px;
  padding: 0 15px 15px 15px;
  margin-top: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* صف */
.track-row{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.track-row:last-child{
  border-bottom: none;
}

.label{
  color: #64748b;
  font-weight: 500;
}

.value{
  font-weight: 600;
  color: #111;
}

.track-row.order-id-row{
  background: #000;

  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 14px 16px;
  margin: 0 -15px 12px -15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-row.order-id-row .label{
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.track-row.order-id-row .value{
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
}


/* ================== Status ================== */
.status-badge{
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* حالات */
.status-badge.pending{
  background: #fff3cd;
  color: #856404;
}

.status-badge.shipped{
  background: #cce5ff;
  color: #004085;
}

.status-badge.delivered{
  background: #d4edda;
  color: #155724;
}

.status-badge.canceled{
  background: #f8d7da;
  color: #721c24;
}


