@keyframes meshRotate {
  0%,
  to {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
}
:root {
  --main-red: #e30613;
  --gold: #c5a059;
  --dark-bg: #050505;
  --card-bg: #0f0f0f;
  --text-gray: #b0b0b0;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--dark-bg);
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
.fragrance-mask-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.fragrance-image,
.mask-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}
.fragrance-image {
  background-size: cover;
  background-position: center;
  background-image: url(img/perfume-elements.jpg);
}
.mask-overlay {
  background-color: var(--dark-bg);
  mask-image: radial-gradient(circle 180px at center, transparent 0, #000 100%);
  -webkit-mask-image: radial-gradient(
    circle 180px at center,
    transparent 0,
    #000 100%
  );
  pointer-events: none;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 8%;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(15px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo img {
  height: 55px;
  filter: brightness(1.2);
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li a {
  color: #eee;
  text-decoration: none;
  margin: 0 20px;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 1px;
  transition: var(--transition);
}
.nav-links li a:hover {
  color: var(--main-red);
  text-shadow: 0 0 10px rgba(227, 6, 19, 0.5);
}
.nav-icons {
  color: #fff;
  cursor: pointer;
}
#menuClose,
.footer-bottom span,
.nav-icons i:hover {
  color: var(--main-red);
}
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.footer-col p,
.hero-content p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 30px;
}
.btn-primary,
.sidebar-content h3 {
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.btn-primary,
.footer-col ul li a {
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary {
  padding: 15px 45px;
  background: 0 0;
  color: #fff;
  border: 1px solid var(--main-red);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary:hover:after {
  width: 100%;
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(227, 6, 19, 0.4);
}
.main-footer {
  background-color: #030303;
  padding: 100px 8% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}
.footer-logo {
  height: 70px;
  margin-bottom: 30px;
}
.footer-col p {
  max-width: 350px;
  font-size: 0.95rem;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 30px;
  font-size: 1.1rem;
  position: relative;
}
.footer-col h4::before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--main-red);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 15px;
}
.footer-col ul li a {
  color: var(--text-gray);
  font-size: 0.9rem;
}
.footer-col ul li a:hover {
  color: var(--main-red);
  padding-right: 10px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.side-links li a,
.social-links a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.social-links a {
  width: 45px;
  height: 45px;
  background: #0f0f0f;
  border: 1px solid #222;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--main-red);
  border-color: var(--main-red);
  transform: translateY(-5px) rotate(360deg);
}
.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #555;
}
.footer-bottom span {
  font-weight: 700;
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4::before {
    right: 50%;
    transform: translateX(50%);
  }
  .footer-col p {
    margin: 0 auto 30px;
  }
  .social-links {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
}
.luxury-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: #000;
  overflow: hidden;
}
.mesh-gradient {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    radial-gradient(at 0 0, rgba(229, 6, 28, 0.15) 0, transparent 50%),
    radial-gradient(at 50%0, #1a1a1a 0, transparent 50%),
    radial-gradient(at 100%0, rgba(229, 6, 28, 0.1) 0, transparent 50%),
    radial-gradient(at 50% 50%, #0d0d0d 0, transparent 50%),
    radial-gradient(at 0 100%, rgba(229, 6, 28, 0.15) 0, transparent 50%),
    radial-gradient(at 100% 100%, #000 0, transparent 50%);
  filter: blur(80px);
  animation: meshRotate 30s linear infinite;
}
.glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  opacity: 0.15;
}
.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  z-index: 2000;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  border-left: 1px solid var(--main-red);
}
.sidebar.active {
  right: 0;
}
.sidebar-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.side-logo {
  height: 40px;
}
#menuClose {
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
}
.sidebar-content {
  padding: 40px 30px;
}
.sidebar-content h3 {
  color: #666;
  text-transform: uppercase;
  margin-bottom: 25px;
}
.side-links {
  list-style: none;
}
.hero-content h1,
.side-links li {
  margin-bottom: 20px;
}
.side-links li a {
  font-size: 1.1rem;
  gap: 15px;
  transition: 0.3s;
}
.side-links li a i,
.sidebar-support h4,
.support-item i {
  color: var(--main-red);
  font-size: 1rem;
}
.side-links li a:hover {
  color: var(--main-red);
  transform: translateX(-10px);
}
.side-footer {
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.whatsapp-btn {
  display: block;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 15px;
  font-weight: 700;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  display: none;
}
.overlay.active {
  display: block;
}
.sidebar-support {
  margin-top: auto;
  padding: 25px;
  background: rgba(227, 6, 19, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-support h4 {
  margin-bottom: 10px;
}
.sidebar-support p {
  color: #bbb;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 20px;
}
.support-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: 0.3s ease;
}
.support-item i {
  font-size: 1.1rem;
}
.support-item:hover {
  background: var(--main-red);
  transform: translateY(-3px);
}
.sidebar,
.sidebar-content {
  display: flex;
  flex-direction: column;
}
.sidebar {
  padding-bottom: 30px;
}
.sidebar-content {
  flex-grow: 1;
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-icons a,
.nav-icons i {
  font-size: 1.1rem;
  transition: 0.3s ease;
  cursor: pointer;
}
.nav-icons a:hover,
.nav-icons i:hover {
  color: #e30613;
  transform: scale(1.1);
}
.profile-slide-panel {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px 25px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
}
.profile-slide-panel.active {
  bottom: 0;
}
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 999;
}
.edit-icon {
  color: maroon;
  cursor: pointer;
  font-size: 1.2rem;
}
.info-group input[readonly] {
  border: 0;
  background: 0 0;
  color: #fff;
  cursor: default;
}
.info-group input:not([readonly]) {
  border-bottom: 1px solid maroon;
  background: rgba(255, 255, 255, 0.05);
}
.nav-link {
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#myAccountBtn {
  color: maroon;
  font-weight: 700;
}
#myAccountBtn:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(128, 0, 0, 0.4);
}
#products-container {
  background-color: #000;
}
.product-card {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 0;
  padding: 20px;
  text-align: right;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.product-card:hover {
  border-color: #e60000;
  transform: translateY(-10px);
  box-shadow:
    0 15px 35px rgba(230, 0, 0, 0.2),
    inset 0-10px 20px rgba(230, 0, 0, 0.15);
}
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e60000;
  color: #fff;
  padding: 4px 12px;
  font-weight: 900;
  font-size: 0.75rem;
  z-index: 5;
  clip-path: polygon(0 0, 100%0, 90% 100%, 0 100%);
}
.product-image {
  width: 100%;
  height: 300px;
  background: #000;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #111;
}
.product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: 0.5s ease;
  filter: grayscale(20%);
}
.product-card:hover .product-image img {
  transform: scale(1.1) rotate(2deg);
  filter: grayscale(0%);
}
.product-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.price-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.current-price {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}
.old-price {
  color: #666;
  text-decoration: line-through;
  font-size: 1rem;
}
.add-to-cart {
  background: #fff;
  color: #000;
  border: 0;
  padding: 15px;
  margin-top: 20px;
  font-weight: 900;
  text-transform: uppercase;
  transition: 0.3s;
}
.add-to-cart:hover {
  background: #e60000;
  color: #fff;
  letter-spacing: 2px;
}
#offers-products-container,
#products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 150px 5% 50px;
  background: 0 0;
}
@media (max-width: 768px) {
  #offers-products-container,
  #products-container {
    padding-top: 100px;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .product-card {
    padding: 10px;
    border-radius: 8px;
  }
  .product-image {
    height: 160px;
  }
  .product-card h3 {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .current-price {
    font-size: 1rem;
  }
  .add-to-cart {
    padding: 10px;
    font-size: 0.8rem;
  }
}
@media (max-width: 400px) {
  #offers-products-container,
  #products-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .product-image {
    height: 100px;
  }
}
.nav-links li a.active {
  color: var(--main-red) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--main-red);
  padding-bottom: 5px;
}
/* --- تنسيقات أقسام العروض والمنتجات المدمجة (إضافة فقط) --- */

/* حاوية الأقسام الرئيسية */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* عناوين الأقسام بفخامة Qovox */
.section-title-fakhama {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
}

.section-title-fakhama span {
  color: var(--main-red);
  text-shadow: 0 0 15px rgba(227, 6, 19, 0.3);
}

/* الفاصل الزخرفي بين الأقسام */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--main-red), transparent);
  margin: 80px auto;
  width: 60%;
  opacity: 0.3;
}

/* تعديل حاويات الشبكة لتناسب الأقسام الجديدة */
#products-container,
#offers-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0 60px; /* تقليل البادينج العلوي لأن العنوان فوقه */
  background: transparent;
}

/* قسم العروض الخاصة - خلفية خفيفة للتمييز */
.special-offers-section {
  position: relative;
  padding: 60px 0;
  background: radial-gradient(
    circle at center,
    rgba(227, 6, 19, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50px;
}

/* تحسين استجابة الأقسام المدمجة على الموبايل */
@media (max-width: 768px) {
  .section-title-fakhama {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  #products-container,
  #offers-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 10px;
  }
}

/* كود إضافي لضمان عمل الـ Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* تأكد أن الـ Main Content لا يختفي تحت الهيدر الثابت */
main.container {
  padding-top: 120px;
}
/* --- الإعدادات الأساسية (تأكد من وجودها في ملفك) --- */
:root {
  --qovox-red: #e60000;
  --qovox-red-glow: rgba(230, 0, 0, 0.6); /* وهج أقوى */
  --dark-bg: #030303; /* أسود أعمق */
  --card-bg: #0a0a0a;
  --border-color: #1a1a1a;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s; /* انيميشن أنعم */
}

/* --- تنسيق أيقونات النوع على الكارت الأساسي (تحديث للقوة) --- */
.product-card {
  position: relative;
  overflow: hidden;
}

.gender-icon-container {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85); /* خلفية أغمق */
  padding: 0; /* مسح البادينج لاستخدام الفليكس */
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(3px); /* Glassmorphism بسيط */
}

/* وهج نيون عند الهوفر على الكارت */
.product-card:hover .gender-icon-container {
  border-color: var(--qovox-red);
  box-shadow: 0 0 15px var(--qovox-red-glow);
  transform: scale(1.05);
}

/* ستايل الأيقونات النيون */
.gender-icon-container i {
  font-size: 1.25rem;
}
.icon-men {
  color: #00bfff;
  text-shadow: 0 0 5px rgba(0, 191, 255, 0.7);
}
.icon-women {
  color: #ff69b4;
  text-shadow: 0 0 5px rgba(255, 105, 180, 0.7);
}
.icon-unisex {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

/* --- تنسيق بطاقة التعريف المنبثقة (Modal) - تحديث "الفخامة واللمعان" --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92); /* أغمق */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px); /* ضبابية أقوى للخلفية */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 480px;
  background: #050505; /* أسود فخم */
  border: 1px solid #151515;
  border-radius: 24px; /* زوايا أنعم */
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.6s var(--transition);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

/* شريط الإضاءة الأحمر اللامع فوق المودال */
.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--qovox-red),
    transparent
  );
  box-shadow: 0 0 10px var(--qovox-red-glow);
  animation: glowScan 3s linear infinite; /* انيميشن مسح ضوئي لامع */
}

.close-modal {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-modal:hover {
  background: var(--qovox-red);
  color: white;
  box-shadow: 0 0 15px var(--qovox-red-glow);
}

.modal-header {
  width: 100%;
  height: 280px; /* أطول قليلاً */
  overflow: hidden;
  position: relative;
  background: #000;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  filter: drop-shadow(
    0 0 15px rgba(255, 255, 255, 0.05)
  ); /* وهج خفيف خلف الزجاجة */
}

.gender-icon-large {
  position: absolute;
  bottom: -25px;
  right: 25px;
  background: #050505;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  font-size: 2.2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.modal-overlay.active .gender-icon-large {
  border-color: var(--qovox-red);
  box-shadow: 0 0 20px var(--qovox-red-glow);
}

.modal-body {
  padding: 35px;
  text-align: right;
}

.modal-body h3 {
  margin: 0 0 18px 0;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  /* تأثير توهج النص الأحمر ( اختياري، فعل هذا لو أردت العنوان ينور أحمر) */
  /* color: var(--qovox-red); text-shadow: 0 0 10px var(--qovox-red-glow); */
}

.modal-desc {
  color: #b0b0b0;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #111;
  padding-top: 25px;
  gap: 15px;
}

.meta-item {
  color: #999;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
}

.meta-item i {
  color: var(--qovox-red);
  margin-left: 10px;
  font-size: 1.1rem;
  text-shadow: 0 0 8px var(--qovox-red-glow); /* وهج الأيقونات */
}

.meta-item strong {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.modal-footer {
  padding: 0 35px 35px;
}

.add-to-cart-btn-large {
  width: 100%;
  padding: 20px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

/* تأثير لمعان أحمر عند الهوفر على الزر */
.add-to-cart-btn-large:hover {
  background: var(--qovox-red);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px var(--qovox-red-glow);
}

/* انيميشنات */
@keyframes slideUpFade {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes glowScan {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* تحسين للموبايل */
@media (max-width: 500px) {
  .modal-content {
    border-radius: 20px;
    width: 92%;
  }
  .modal-header {
    height: 220px;
  }
  .modal-body {
    padding: 25px;
  }
  .modal-meta {
    flex-direction: column;
    gap: 10px;
  }
}
/* --- سيكشن المتابعة الرئيسي --- */
#order-tracking-section {
  padding: 120px 5% 60px;
  background: #000;
  min-height: 100vh;
  direction: rtl;
}

.tracking-header {
  text-align: center;
  margin-bottom: 50px;
}

.sarab-title {
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sarab-subtitle {
  color: #888;
  font-size: 1.1rem;
}

/* --- تصميم المستطيلات (Order Cards) --- */
.orders-grid {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.order-rect {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.4s all ease;
  backdrop-filter: blur(10px);
}

.order-rect:hover {
  background: rgba(227, 6, 19, 0.05);
  border-color: #e30613;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(227, 6, 19, 0.1);
}

.rect-info .rect-id {
  display: block;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.rect-status-badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
}

/* ألوان الحالات */
.rect-status-badge.pending {
  background: #555;
  color: #fff;
}
.rect-status-badge.processing {
  background: #e3a006;
  color: #000;
}
.rect-status-badge.shipped {
  background: #0684e3;
  color: #fff;
}
.rect-status-badge.delivered {
  background: #25d366;
  color: #fff;
}

/* --- المودال (اللوحة الإبداعية) --- */
.sarab-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none; /* يظهر بالـ JS */
  overflow-y: auto;
  backdrop-filter: blur(15px);
  padding: 40px 20px;
}

.sarab-modal.active {
  display: block;
}

.modal-content {
  background: #0a0a0a;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(227, 6, 19, 0.3);
  border-radius: 25px;
  padding: 40px;
  position: relative;
  box-shadow: 0 0 50px rgba(227, 6, 19, 0.2);
}

.close-modal {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #e30613;
}

/* --- الـ Stepper (تتبع الحالة) --- */
.stepper {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #222;
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step .circle {
  width: 40px;
  height: 40px;
  background: #111;
  border: 2px solid #333;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: 0.5s;
}

.step span {
  font-size: 0.8rem;
  color: #555;
  transition: 0.5s;
}

/* الحالة النشطة للـ Stepper */
.step.active .circle {
  background: #e30613;
  border-color: #e30613;
  color: #fff;
  box-shadow: 0 0 15px #e30613;
}

.step.active span {
  color: #fff;
  font-weight: bold;
}

/* --- الكروت والريسيت --- */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.info-card,
.receipt-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h3,
.receipt-card h3 {
  color: #e30613;
  font-size: 1rem;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(227, 6, 19, 0.2);
  padding-bottom: 10px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #ccc;
}

.receipt-row.total {
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 15px;
}

/* --- الفوتر والأكشنز --- */
.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-print,
.btn-support {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-print {
  background: #fff;
  color: #000;
}
.btn-support {
  background: #25d366;
  color: #fff;
}

.tracking-footer {
  margin-top: 100px;
  text-align: center;
  color: #444;
}

.footer-line {
  width: 50px;
  height: 2px;
  background: #e30613;
  margin: 0 auto 20px;
}

/* ريسبونسيف للموبايل */
@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .order-rect {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .sarab-title {
    font-size: 1.8rem;
  }
}
#productDetailsModal {
  z-index: 9999 !important;
}
#panelOverlay {
  z-index: 9998 !important;
}
/* تنسيق احترافي لمودال التفاصيل */
#productDetailsModal .modal-content {
  max-width: 800px; /* تحديد عرض المودال نفسه */
  width: 90%;
  max-height: 90vh; /* لا يتعدى طول الشاشة */
  overflow-y: auto;
}

#modalProductImage {
  max-width: 100%;
  max-height: 400px; /* تحديد أقصى ارتفاع للصورة */
  object-fit: contain; /* يحافظ على أبعاد الصورة دون تمطيط */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* لضمان استجابة المودال على الموبايل */
@media (max-width: 768px) {
  .product-details-container {
    flex-direction: column !important;
    text-align: center !important;
  }
  #modalProductImage {
    max-height: 250px;
  }
}
#panelOverlay,
.panelOverlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* تنسيق قائمة المنتجات في الريسيت */
.receipt-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.receipt-item img {
  width: 60px; /* حجم ثابت ومناسب */
  height: 60px;
  object-fit: cover; /* بيخلي الصورة تملأ المربع بدون ما تتمط */
  border-radius: 8px;
}

.receipt-item-info h4 {
  margin: 0;
  font-size: 0.9rem;
}

.receipt-item-info span {
  font-size: 0.8rem;
  color: #888; /* لون الحجم والكمية */
}
.nav-link.active-page {
  color: var(--qovox-red) !important;
  border-bottom: 2px solid var(--qovox-red);
}
.active-page {
  color: #e30613 !important; /* لون سراب الأحمر */
  border-bottom: 2px solid #e30613;
}
/* --- تنسيق حاوية البحث (Search Box) --- */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 400px; /* يمكنك تعديله حسب التصميم */
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px; /* حواف دائرية بالكامل */
  padding: 5px 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 40px;
}

/* تأثير عند الضغط على الحقل أو الوقوف عليه */
.search-wrapper:hover,
.search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--qovox-red); /* استخدام لون سراب الأحمر */
  box-shadow: 0 0 15px var(--qovox-red-glow);
  transform: translateY(-2px);
}

/* تنسيق حقل الكتابة نفسه */
#search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 12px 10px;
  font-size: 1rem;
  font-family: inherit;
}

/* تنسيق نص المساعدة (Placeholder) */
#search-input::placeholder {
  color: #666;
  transition: 0.3s;
}

.search-wrapper:focus-within #search-input::placeholder {
  opacity: 0.5;
  transform: translateX(-10px);
}

/* تنسيق أيقونة البحث */
.search-wrapper i {
  color: #888;
  font-size: 1.1rem;
  transition: 0.3s;
  cursor: pointer;
}

.search-wrapper:focus-within i {
  color: var(--qovox-red);
  text-shadow: 0 0 8px var(--qovox-red-glow);
}

/* تحسين للموبايل */
@media (max-width: 600px) {
  .search-wrapper {
    max-width: 90%;
    margin: 15px auto;
  }
}
/* تنسيق البحث داخل الهيدر */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px 12px;
  transition: 0.3s;
  max-width: 150px; /* حجم صغير في البداية */
}

.search-wrapper:focus-within {
  max-width: 250px; /* يكبر لما تدوس عليه */
  border-color: #e30613;
}

#search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
}

/* --- تنسيق رسالة "غير موجود" الاحترافي --- */
.no-search-results {
    display: none; /* يتم تبديله لـ flex بواسطة JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75vh; /* تتوسط الصفحة بين الهيدر والفوتر */
    padding: 40px 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-out; /* حركة دخول ناعمة */
    margin-top: 120px;
}

.no-results-content {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03); /* خلفية زجاجية خفيفة */
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); /* تأثير الضباب */
}

/* الأيقونة - خليناها فخمة بتوهج أحمر */
.no-search-results i.fa-search-minus {
    font-size: 4.5rem;
    color: #e30613;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.4));
    opacity: 0.8;
}

.no-search-results h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.no-search-results p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* زرار الدعم - UI قوي جداً */
.no-search-results .btn-support {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366; /* لون الواتساب الأصلي */
    color: #000;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.no-search-results .btn-support:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
}

.no-search-results .btn-support i {
    font-size: 1.3rem;
}

/* أنيميشن دخول الصفحة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين للموبايل */
@media (max-width: 600px) {
    .no-results-content {
        padding: 30px 20px;
        background: transparent; /* شيل الخلفية في الموبايل عشان المساحة */
        border: none;
    }
    
    .no-search-results i.fa-search-minus {
        font-size: 3.5rem;
    }
    
    .no-search-results h3 {
        font-size: 1.5rem;
    }
}
#order-tracking-section {
    z-index: 100; /* عشان يظهر فوق أي خلفيات قديمة */
    position: relative;
    display: none; /* هيفضل مخفي لحد ما الـ JS يظهره */
}