/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --main-color: #2196f3;
  --main-color-alt: #1787e0;
  --main-transition: 0.3s;
  --main-padding-top: 100px;
  --main-padding-bottom: 100px;
  --section-background: #ececec;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  direction: rtl;
  /* اتجاه الصفحة عربي */
  overflow-x: hidden;
  /* منع السكرول العرضي تماماً */
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
/* 1. العنوان الرئيسي - تعديل المحاذاة للموبايل */
/* --- تعديل العنوان الرئيسي لضبط العرض والأنميشن --- */

.main-title {
  text-transform: uppercase;
  margin: 0 auto 80px;
  border: 2px solid black;
  padding: 10px 40px; 
  font-size: 30px;
  /* width: fit-content مهمة جداً عشان يفضل على قد الكلمة */
  width: fit-content; 
  position: relative;
  z-index: 1;
  transition: color 0.3s, border-color 0.3s;
  /* منع خروج العنوان بره الشاشة في الموبايل */
  max-width: 95%; 
  text-align: center;
}

/* النقطتين الأساسيتين */
.main-title::before,
.main-title::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--main-color);
  position: absolute;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

.main-title::before { left: -30px; }
.main-title::after { right: -30px; }

/* تشغيل الضمة لما الكلاس active يتضاف بالسكرول */
.main-title.active {
  color: white;
  border-color: white;
  transition-delay: 0.3s;
}

.main-title.active::before {
  animation: left-move 0.5s linear forwards;
}

.main-title.active::after {
  animation: right-move 0.5s linear forwards;
}

/* --- تعديل الأنميشن عشان يملى المستطيل بس --- */
@keyframes left-move {
  50% {
    left: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    left: 0;
    border-radius: 0;
    /* التعديل هنا: يملى نص المستطيل فقط */
    width: 50.5%; 
    height: 100%;
  }
}

@keyframes right-move {
  50% {
    right: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    right: 0;
    border-radius: 0;
    /* التعديل هنا: يملى النص التاني فقط */
    width: 50.5%; 
    height: 100%;
  }
}

/* ضبط الموبايل الصغير جداً عشان العنوان ميروحش يمين */
@media (max-width: 767px) {
  .main-title {
    font-size: 22px;
    padding: 10px 30px;
  }
  .main-title::before { left: -15px; }
  .main-title::after { right: -15px; }
}

/* 3. صور النقط (الاستريكس) اللي في الجوانب - لازم تختفي في الموبايل */
.dots {
  background-image: url("../imgs/dots.png");
  height: 186px;
  width: 204px;
  background-repeat: no-repeat;
  position: absolute;
}

@media (max-width: 991px) {
  .dots {
    display: none; /* النقط دي بتبوظ شكل الموبايل وبتخرج بره، اخفيها أحسن */
  }
}

/* End Global Rules */
/* Start Header */
/* Start Header */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: white !important;
  z-index: 9999 !important;
  box-shadow: 0 0 10px #ddd !important;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 15px; /* مسافة بسيطة من الجوانب */
}

.header .logo {
  color: var(--main-color);
  font-size: 26px;
  font-weight: bold;
  height: 72px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* تنسيق الـ 3 شرط (Menu Toggle) */
.menu-toggle {
  display: none; /* مخفي في الديسكتوب */
  flex-direction: column;
  cursor: pointer;
  gap: 5px; /* المسافة بين الشرط */
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--main-color, #2196f3); /* لون الشرط */
  transition: 0.3s;
}

.header .main-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .main-nav > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  position: relative;
  color: black;
  padding: 0 20px;
  font-size: 18px;
  transition: 0.3s;
  text-decoration: none;
}

/* تعديلات الموبايل (أقل من 767px) */
@media (max-width: 767px) {
  .header .container {
    height: 60px; /* ارتفاع الهيدر في الموبايل */
  }

  .header .logo {
    font-size: 22px;
    height: 60px;
  }

  /* إظهار الـ 3 شرط */
  .menu-toggle {
    display: flex; 
  }

  /* تحويل القائمة لمنيو مخفية تظهر عند الضغط */
  .header .main-nav {
    display: none; /* مخفية افتراضياً */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    box-shadow: 0 5px 10px #ddd;
    border-top: 1px solid #eee;
  }

  /* الكلاس ده هيتضاف بالـ JS لما تدوس على الزرار */
  .header.menu-open .main-nav {
    display: flex;
  }

  .header .main-nav > li > a {
    height: 50px;
    padding: 0;
    font-size: 16px;
    border-bottom: 1px solid #f6f6f6;
  }
}


/* تأثير الخط العلوي عند الهوفر */
.header .main-nav > li {
  position: relative;
}

.header .main-nav > li > a::before {
  content: "";
  position: absolute;
  width: 0; /* يبدأ بعرض صفر */
  height: 4px;
  background-color: var(--main-color); /* اللون الأزرق الأساسي */
  top: 0; /* يظهر من الأعلى */
  left: 0;
  transition: var(--main-transition, 0.3s);
}

.header .main-nav > li > a:hover {
  color: var(--main-color);
  background-color: #fafafa;
}

.header .main-nav > li > a:hover::before {
  width: 100%; /* يتمدد ليغطي عرض الكلمة بالكامل */
}
/* End Header */
/* Start Landing */
.landing {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end; /* وضع المحتوى بالأسفل */
  justify-content: center; /* توسيط المحتوى بالعرض */
  overflow: hidden;
  background-color: #101010; /* لون خلفية في حال تأخر الفيديو */
}

.back-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* تدريج لوني يجعل الأسفل أغمق ليظهر النص بوضوح */
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
  z-index: 2;
}

.landing .container {
  position: relative;
  z-index: 3;
  padding-bottom: 100px; /* المسافة من أسفل الشاشة */
  display: flex;
  justify-content: center;
  width: 100%;
}

.landing .text {
  text-align: center;
  max-width: 800px;
  color: white;
}

.landing .text h1 {
  font-size: 45px;
  margin: 0 0 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  min-height: 1.2em; /* يحافظ على مكانه قبل الكتابة */
}

.landing .text p {
  font-size: 22px;
  line-height: 1.6;
  margin: 0;
  color: #eee;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  min-height: 3em;
}

.landing .go-down {
  color: #fff;
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
  z-index: 4;
}

.landing .go-down:hover {
  color: var(--main-color, #d4af37);
}

.landing .go-down i {
  animation: bouncing 1.5s infinite;
}

/* مؤشر الكتابة | */
#typewriter-h1::after, #typewriter-p::after {
  content: "|";
  margin-left: 5px;
  animation: blink 0.7s infinite;
  color: #d4af37;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* للموبايل */
@media (max-width: 767px) {
  .landing .text h1 { font-size: 28px; }
  .landing .text p { font-size: 18px; }
  .landing .container { padding-bottom: 60px; }
}
/* End Landing */
/* Start Articles */
.articles {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}

.articles .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.articles .box {
  box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--main-transition), box-shadow var(--main-transition);
}

.articles .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}

.articles .box img {
  width: 100%;
  max-width: 100%;
}

.articles .box .content {
  padding: 20px;
}

.articles .box .content h3 {
  margin: 0;
}

.articles .box .content p {
  margin: 10px 0 0;
  line-height: 1.5;
  color: #777;
}

.articles .box .info {
  padding: 20px;
  border-top: 1px solid #e6e6e7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.articles .box .info a {
  color: var(--main-color);
  font-weight: bold;
}

.articles .box .info i {
  color: var(--main-color);
}

.articles .box:hover .info i {
  animation: moving-arrow 0.6s linear infinite;
}

/* End Articles */
/* Start Gallery - عطر الشرق */
.gallery {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}

.gallery .container {
  display: grid;
  /* التعديل لـ 350px لضمان 3 كروت في الصف الواحد للشاشات الكبيرة */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.gallery .box {
  padding: 15px;
  background-color: white;
  box-shadow: 0px 12px 20px 0px rgb(0 0 0 / 13%), 0px 2px 4px 0px rgb(0 0 0 / 12%);
  transition: var(--main-transition);
}

.gallery .box .image {
  position: relative;
  overflow: hidden;
}

.gallery .box .image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255 255 255 / 20%);
  width: 0;
  height: 0;
  opacity: 0;
  z-index: 2;
}

.gallery .box .image:hover::before {
  animation: flashing 0.7s;
}

.gallery .box img {
  max-width: 100%;
  transition: var(--main-transition);
}

.gallery .box .image:hover img {
  transform: rotate(5deg) scale(1.1);
}

/* تنسيق اسم العطر */
.gallery .box h2 {
  text-align: center;
  margin-top: 15px;
  color: var(--main-color);
  font-size: 22px;
}

/* تأثير الفلاش */
@keyframes flashing {
  0%, 40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    width: 200%;
    height: 200%;
  }
}

/* --- ضبط ميزان الموبايل (أهم جزء) --- */
@media (max-width: 767px) {
  .gallery .container {
    /* يملأ الشاشة تماماً ويمنع الخروج يميناً أو يساراً */
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
    gap: 20px;
  }
  
  .gallery .box h2 {
    font-size: 18px;
  }
}
/* End Gallery */
/* Start Features */
.features {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: white;
}

.features .container {
  display: grid;
  /* ضبط الـ 350px لضمان ظهور 3 كروت في الصف الواحد للشاشات الكبيرة */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.features .box {
  text-align: center;
  border: 1px solid #ccc;
  background-color: white;
}

.features .box .img-holder {
  position: relative;
  overflow: hidden;
}

.features .box .img-holder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 100%;
}

.features .box .img-holder::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  /* تعديل الأبعاد لتناسب الـ 350px */
  border-width: 0px 0px 170px 500px;
  border-color: transparent transparent white transparent;
  transition: var(--main-transition);
  z-index: 2;
}

.features .box:hover .img-holder::after {
  /* عكس اتجاه الميل عند الـ Hover */
  border-width: 170px 500px 170px 0;
}

.features .box .img-holder img {
  max-width: 100%;
}

.features .box h2 {
  position: relative;
  font-size: 28px; /* تصغير بسيط للميزان */
  margin: auto;
  width: fit-content;
  z-index: 3;
}

.features .box h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 15px;
  height: 5px;
  width: calc(100% - 30px);
}

.features .box p {
  line-height: 1.8;
  font-size: 18px;
  margin: 30px 0;
  padding: 25px;
  color: #777;
}

.features .box a {
  display: block;
  border: 3px solid transparent;
  width: fit-content;
  margin: 0 auto 30px;
  font-weight: bold;
  font-size: 20px;
  padding: 10px 30px;
  border-radius: 6px;
  transition: var(--main-transition);
  text-decoration: none;
}

/* الألوان الخاصة بكل ميزة */
.features .quality .img-holder::before { background-color: rgb(244 64 54 / 45%); }
.features .quality h2::after { background-color: #f44036; }
.features .quality a {
  color: #f44036;
  border-color: #f44036;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}

.features .time .img-holder::before { background-color: rgb(0 150 136 / 45%); }
.features .time h2::after { background-color: #009688; }
.features .time a {
  color: #009688;
  border-color: #009688;
  background: linear-gradient(to right, #009688 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}

.features .passion .img-holder::before { background-color: rgb(3 169 244 / 45%); }
.features .passion h2::after { background-color: #03a9f4; }
.features .passion a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #03a9f4 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}

.features .box:hover a {
  background-position: left bottom;
  color: white;
}

/* --- حماية الموبايل (الميزان) --- */
@media (max-width: 767px) {
  .features .container {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
  }
  .features .box h2 {
    font-size: 24px;
  }
  .features .box p {
    font-size: 16px;
    padding: 15px;
  }
  /* ضبط الميل في الشاشات الصغيرة عشان ميخرمش الكارت */
  .features .box .img-holder::after {
      border-width: 0px 0px 100px 400px;
  }
}
/* End Features */
/* Start Testimonials - عطر الشرق المطور */
.testimonials {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}

.testimonials .container {
  display: grid;
  /* الحفاظ على 3 كروت في الصف الواحد للشاشات الكبيرة */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
  gap: 40px;
}

.testimonials .box {
  padding: 20px;
  background-color: white;
  box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
  border-radius: 6px;
  position: relative;
  margin-top: 20px;
  /* إضافة الانتقال السلس للحركة */
  transition: var(--main-transition);
  z-index: 1;
}

/* 1. حركة الطلوع لفوق عند الوقوف على الكارت */
.testimonials .box:hover {
  transform: translateY(-10px);
}

/* 2. الخط الأزرق اللي بيفرش من النص فوق الكارت */
.testimonials .box::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  top: -3px;
  background-color: var(--main-color);
  width: 0; /* البداية من صفر */
  transition: var(--main-transition);
}

/* لما تعمل هوفر.. الخط يفرش بعرض الكارت */
.testimonials .box:hover::before {
  width: 100%;
}

.testimonials .box img {
  position: absolute;
  right: 0;
  top: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid var(--section-background);
}

.testimonials .box h3 {
  text-align: right;
  margin: 0px 0px 10px;
  padding-right: 100px;
}

.testimonials .box .rate {
  text-align: right;
  padding-right: 100px;
}

.testimonials .box .rate .filled {
  color: #ffc107;
}

.testimonials .box p {
  line-height: 1.6;
  color: #777;
  margin-top: 15px;
  margin-bottom: 0;
  text-align: right;
}

/* ضبط الموبايل لضمان الميزان */
@media (max-width: 767px) {
  .testimonials .container {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
  }
  .testimonials .box h3, 
  .testimonials .box .rate {
    padding-right: 0;
    text-align: center;
    margin-top: 40px;
  }
  .testimonials .box img {
    right: 50%;
    transform: translateX(50%);
  }
  .testimonials .box p {
    text-align: center;
  }
}
/* End Testimonials */
/* End Testimonials */
/* Start Team - عطر الشرق */
.team {
  padding-top: var(--main-padding-top);
  /* padding-bottom: var(--main-padding-bottom); */
  position: relative;
}

.team .container {
  display: grid;
  /* التعديل لـ 350px لضمان 3 كروت في الصف الواحد للشاشات الكبيرة */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.team .box {
  position: relative;
  /* إضافة مارجن عشان الصور اللي فوق */
  margin-top: 30px; 
}

.team .box::before,
.team .box::after {
  content: "";
  background-color: #f3f3f3;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border-radius: 10px;
  transition: var(--main-transition);
}

.team .box::before {
  width: 100%;
  z-index: -2;
}

.team .box::after {
  z-index: -1;
  background-color: #e4e4e4;
  width: 0;
}

.team .box:hover::after {
  width: 100%;
}

.team .box .data {
  display: flex;
  align-items: center;
  justify-content: center; /* توسيط الصورة بعد حذف السوشيال */
  padding-top: 50px;
}

.team .box .data img {
  width: 80%; /* تصغير بسيط عشان الميزان */
  transition: var(--main-transition);
  border-radius: 10px;
}

/* .team .box:hover img {
  filter: grayscale(100%); 
} */

.team .box .info {
  padding: 20px;
  text-align: center;
}

.team .box .info h3 {
  margin-bottom: 10px;
  color: var(--main-color);
  font-size: 24px;
  transition: var(--main-transition);
}

.team .box .info span {
  color: #555;
  font-weight: bold;
  display: block;
  margin-bottom: 15px;
  font-size: 18px;
}

.team .box .info p {
  line-height: 1.7;
  color: #777;
  font-size: 15px;
  text-align: right; /* محاذاة لليمين عشان العربي */
  direction: rtl;
  padding: 0 10px;
}

.team .box:hover .info h3 {
  color: #777;
}

/* --- حماية الموبايل (الميزان) --- */
@media (max-width: 767px) {
  .team .container {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
  }
  .team .box .data {
    padding-top: 30px;
  }
  .team .box .info h3 {
    font-size: 20px;
  }
  .team .box .info p {
    text-align: center; /* أشيك في الموبايل */
  }
}
/* End Team */
/* Start Services - عطر الشرق */
.services {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: #f6f6f6;
}

.services .container {
  display: grid;
  /* التعديل لـ 350px عشان يظهر 3 كروت بس في الشاشات الكبيرة */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.services .box {
  background-color: white;
  box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
  counter-increment: services;
  transition: var(--main-transition);
  position: relative;
  /* لضمان توازي الكروت في الطول */
  display: flex;
  flex-direction: column;
}

.services .box p {
  text-align: right; /* محاذاة لليمين عشان العربي */
  direction: rtl;
  padding: 0 20px;
  line-height: 1.7;
  color: #555;
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 15px;
  flex-grow: 1; /* دفع الجزء السفلي لآخر الكارت */
}

.services .box::before {
  content: "";
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  top: -3px;
  background-color: var(--main-color);
  position: absolute;
  width: 0;
  transition: var(--main-transition);
}

.services .box:hover {
  transform: translateY(-10px);
}

.services .box:hover::before {
  width: 100%;
}

.services .box > i {
  margin: 30px auto 20px;
  display: block;
  text-align: center;
  color: #d5d5d5;
}

.services .box > h3 {
  text-align: center;
  margin: 10px 0 20px;
  font-size: 22px;
  color: var(--main-color);
}

.services .box .info {
  padding: 15px;
  position: relative;
  background-color: #f9f9f9;
  text-align: right;
  margin-top: auto; /* الحفاظ على مكان التفاصيل أسفل الكارت */
}

.services .box .info::before {
  content: "0" counter(services);
  position: absolute;
  background-color: var(--main-color);
  color: white;
  left: 0;
  top: 0;
  height: 100%;
  width: 80px;
  font-size: 25px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 15px;
}

.services .box .info::after {
  content: "";
  position: absolute;
  background-color: #d5d5d5;
  top: 0;
  left: 80px;
  width: 50px;
  height: calc(100% + 0.4px);
  transform: skewX(-30deg);
}

.services .box .info a {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
}

/* --- ضبط ميزان الموبايل (أهم جزء) --- */
@media (max-width: 767px) {
  .services .container {
    /* يملأ الشاشة تماماً ويمنع الخروج يميناً أو يساراً */
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
    gap: 20px;
  }
  
  .services .box h3 {
    font-size: 19px;
  }

  .services .box p {
    font-size: 14px;
    text-align: center; /* أشيك في الموبايل */
  }
}
/* End Services */
/* Start Skills */
.our-skills {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: #ececec;
}

.our-skills .container {
  display: flex;
  align-items: center;

}

@media (max-width: 991px) {
  .our-skills img {
    display: none;
  }
}

.our-skills img {
  max-width: 100%;
  height: auto;
  max-height: 413px;
  object-fit: contain;
  margin: 10px;
}

.our-skills .skills {
  flex: 1;
}

.our-skills .skill h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.our-skills .skill h3 span {
  font-size: 15px;
  border: 1px solid #ccc;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--main-color);
}

.our-skills .skill .the-progress {
  height: 30px;
  background-color: darkgray;
  position: relative;
}

.our-skills .skill .the-progress span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* 1. تدرج لوني يخلي الشريط ليه أبعاد (اللون الأزرق مع درجة أغمق شوية) */
  background: linear-gradient(90deg, var(--main-color) 0%, #1a73e8 100%);

  /* 2. سرعة الزحف الهادئة اللي طلبته */
  transition: width 2.5s ease-in-out;

  /* 3. إضافة لمعة خفيفة (Glossy Effect) */
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);

  border-radius: 4px;
  /* جعل الحواف ناعمة */
}

/* 4. حركة "اللمعة" المتحركة (اختياري لكنه يعطي لمسة جمالية) */
/* --- ستايل البروجريس بار الاحترافي لـ عطر الشرق --- */

/* 1. الحاوية الخارجية للشريط */
.our-skills .skill .the-progress {
  height: 15px;
  /* طول مناسب وشيك */
  background-color: #eee;
  /* لون الخلفية رمادي فاتح */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  /* ضروري عشان اللمعة متطلعش بره الحواف */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  /* ظل داخلي بيدي عمق */
}

/* 2. الشريط المتحرك (الـ Span) */
.our-skills .skill .the-progress span {
  position: absolute;
  top: 0;
  right: 0;
  /* التعديل هنا: يبدأ من اليمين للشمال */
  height: 100%;

  /* تدرج لوني فخم (من الأزرق الفاتح للأزرق الملكي) */
  background: linear-gradient(270deg, var(--main-color) 0%, #1a73e8 100%);

  /* السرعة الهادية (2.5 ثانية) مع حركة انسيابية */
  transition: width 2.5s ease-in-out;

  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 3. إضافة تأثير اللمعة المتحركة (Glossy Effect) */
.our-skills .skill .the-progress span::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* لمعة بيضاء شفافة */
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: shine 3s infinite;
}

/* 4. محرك حركة اللمعة */
@keyframes shine {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* --- نهاية ستايل البروجريس --- */

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* End Skills */
/* Start Work Steps */
.work-steps {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  /* background-color: var(--section-background); */
}

.work-steps .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 991px) {
  .work-steps .container {
    flex-direction: column;
  }
}

.work-steps .image {
  width: 35%;
  margin: -10px;
}

@media (max-width: 991px) {
  .work-steps .image {
    margin: 0 0 50px;
  }
}

.work-steps .info .box {
  background-color: #f6f5f5;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  border: 2px solid white;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .work-steps .info .box {
    flex-direction: column;
    text-align: center;
  }
}

.work-steps .info .box::before {
  content: "";
  left: 50%;
  top: 50%;
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  background-color: #ededed;
  z-index: -1;
  transition: var(--main-transition);
}

.work-steps .info .box:hover::before {
  width: 100%;
  height: 100%;
}

.work-steps .info .box img {
  margin: 15px;
  width: 80px;
}

@media (max-width: 767px) {
  .work-steps .info .box img {
    margin: 0 0 30px;
  }
}

.work-steps .info .box h3 {
  margin: 10px;
  font-size: 22px;
}

.work-steps .info .box p {
  margin-right: 10px;
  color: #777;
  line-height: 1.7;
  font-size: 18px;
}

/* End Work Steps */
/* Start Events */
.events {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}

.events .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.events img {
  max-width: 450px;
}

@media (max-width: 991px) {
  .events img {
    display: none;
  }
}

.events .info {
  flex: 1;
}

.events .info .time {
  display: flex;
  align-items: center;
  margin: 20px auto;
  gap: 10px;
  justify-content: center;
}

.events .info .time .unit {
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  text-align: center;
  width: 75px;
  transition: var(--main-transition);
}

.events .info .time .unit span {
  display: block;
  transition: var(--main-transition);
}

.events .info .time .unit span:first-child {
  font-size: 35px;
  padding: 15px;
  color: var(--main-color);
  font-weight: bold;
}

.events .info .time .unit span:last-child {
  padding: 8px 10px;
  font-size: 13px;
  border-top: 1px solid #d4d4d4;
}

.events .info .time .unit:hover,
.events .info .time .unit:hover span:last-child {
  border-color: var(--main-color);
}

.events .title {
  text-align: center;
  margin: 40px 0 0;
  font-size: 30px;
}

.events .description {
  text-align: center;
  line-height: 1.7;
  font-size: 19px;
  color: #777;
}

.events .subscribe {
  width: 100%;
  margin-top: 50px;
}

.events .subscribe form {
  width: 600px;
  margin: 20px auto;
  padding: 30px 40px;
  background-color: #f6f5f5;
  border-radius: 50px;
  display: flex;
  gap: 20px;
}

@media (max-width: 767px) {
  .events .subscribe form {
    max-width: 100%;
    padding: 20px;
    flex-direction: column;
    border-radius: 0;
  }
}

.events .subscribe form input[type="email"] {
  padding: 20px;
  border-radius: 50px;
  border: none;
  flex: 1;
  caret-color: var(--main-color);
}

@media (max-width: 767px) {
  .events .subscribe form input[type="email"] {
    border-radius: 0;
  }
}

.events .subscribe form input[type="email"]:focus {
  outline: none;
}

.events .subscribe form input[type="email"]::placeholder {
  transition: opacity var(--main-transition);
}

.events .subscribe form input[type="email"]:focus::placeholder {
  opacity: 0;
}

.events .subscribe form input[type="submit"] {
  border-radius: 50px;
  border: none;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  transition: var(--main-transition);
}

@media (max-width: 767px) {
  .events .subscribe form input[type="submit"] {
    border-radius: 0;
  }
}

.events .subscribe form input[type="submit"]:hover {
  background-color: var(--main-color-alt);
}

/* End Events */
/* Start Pricing */
.pricing {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}

.pricing .container {
  display: grid;
  /* 350px لضمان ظهور 3 كروت جنب بعض في الشاشات الكبيرة */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.pricing .box {
  position: relative;
  box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
  transition: var(--main-transition);
  background: white;
  text-align: center;
  z-index: 1;
}

/* تأثير الـ Hover الخلفي */
.pricing .box::before,
.pricing .box::after {
  content: "";
  width: 0;
  height: 50%;
  background-color: #f6f6f6;
  position: absolute;
  z-index: -1;
  transition: var(--main-transition);
}
.pricing .box::before { left: 0; top: 0; }
.pricing .box::after { right: 0; bottom: 0; }

.pricing .box:hover::before,
.pricing .box:hover::after {
  width: 100%;
}

@media (min-width: 1200px) {
  .pricing .box.popular {
    top: -20px;
  }
}

/* علامة الأكثر مبيعاً */
.pricing .box.popular .label {
  position: absolute;
  writing-mode: vertical-rl;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  padding: 10px 10px 35px 10px;
  font-size: 18px;
  right: 20px;
  width: 40px;
}

.pricing .box.popular .label::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-color: transparent transparent white;
  border-width: 20px;
}

.pricing .box .title {
  font-weight: bold;
  margin: 30px 0;
  font-size: 25px; /* تصغير بسيط عشان العناوين الطويلة */
  letter-spacing: -1px;
}

.pricing .box img {
  width: 80px;
  margin-bottom: 30px;
}

.pricing .box .amount {
  display: block;
  font-size: 45px; /* ميزان أفضل */
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--main-color);
}

.pricing .box ul {
  list-style: none;
  padding: 0;
}

.pricing .box ul li {
  text-align: right;
  padding: 20px;
  border-top: 1px solid #eee;
  direction: rtl;
}

/* تعديل علامة الصح لتناسب العربي */
.pricing .box ul li::before {
  font-family: "Font Awesome 5 Free";
  content: "\f00c";
  margin-left: 10px; /* المسافة من اليسار لأن الكلام عربي */
  font-weight: 900;
  color: var(--main-color);
}

.pricing .box a {
  display: block;
  width: fit-content;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  margin: 30px auto 40px;
  padding: 15px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: var(--main-transition);
  text-decoration: none;
}

.pricing .box a:hover {
  background-color: var(--main-color-alt);
  border-color: var(--main-color-alt);
  color: white;
}

/* --- حماية الموبايل (أهم جزء) --- */
@media (max-width: 767px) {
  .pricing .container {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
  }
  .pricing .box.popular {
    top: 0; /* إلغاء الإزاحة في الموبايل */
  }
  .dots {
    display: none; /* إخفاء النقط لمنع السكرول العرضي */
  }
}
.suggestion-box {
    position: absolute; background: white; border: 1px solid #2196f3;
    width: 100%; max-height: 150px; overflow-y: auto; z-index: 1000;
    border-radius: 0 0 10px 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.suggest-item { padding: 10px; cursor: pointer; text-align: right; border-bottom: 1px solid #eee; }
.suggest-item:hover { background: #e3f2fd; }
/* End Pricing */
/* Start Videos */
.videos {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
}

.videos .holder {
  display: flex;
  justify-content: center;
  background-color: var(--section-background);
  border: 1px solid #ddd;
}

@media (max-width: 991px) {
  .videos .holder {
    flex-direction: column;
  }
}

.videos .holder .list {
  min-width: 300px;
  background-color: white;
}

.videos .holder .list .name {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: #f4f4f4;
  font-weight: bold;
  /* color: var(--main-color);*/
}

.videos .holder .list ul li {
  padding: 20px;
  border-top: 1px solid var(--section-background);
  cursor: pointer;
  transition: var(--main-transition);
}

.videos .holder .list ul li:hover {
  background-color: #fafafa;
  color: var(--main-color);
}

.videos .holder .list ul li span {
  display: block;
  margin-top: 10px;
  color: #777;
}

.videos .holder .preview {
  background-color: #e2e2e2;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.videos .holder .preview img {
  max-width: 100%;
}

.videos .holder .preview .info {
  padding: 20px;
  background-color: white;
  margin-top: 10px;
}

/* End Videos */
/* Start Stats - عطر الشرق */
.stats {
  /* 1. المسافة البيضاء الفاصلة بين السكاشن */
  margin-top: var(--main-padding-top); 
  
  /* 2. المسافات الداخلية جوه السيكشن نفسه */
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  
  position: relative;
  background-color: var(--section-background);
}

.stats h2 {
  font-weight: bold;
  font-size: 40px;
  width: fit-content;
  margin: 0 auto 50px;
  position: relative;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.stats .box {
  background-color: white;
  padding: 30px 15px;
  text-align: center;
  position: relative;
  opacity: 0.8;
  transition: var(--main-transition);
  z-index: 1;
}

/* حركة الخطوط الزرقاء */
.stats .box::before,
.stats .box::after {
  content: "";
  position: absolute;
  width: 2px;
  /* background-color: var(--main-color); */
  transition: 0.6s;
  height: 0;
}
.stats .box::before { top: 0; right: 0; }
.stats .box::after { left: 0; bottom: 0; }

/* الأنميشن (الطلوع لفوق والخطوط) */
.stats .box:hover {
  opacity: 1;
  transform: translateY(-10px);
}

.stats .box:hover::before,
.stats .box:hover::after {
  height: 100%;
}

.stats .box .number {
  display: block;
  font-size: 50px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
}

.stats .box .text {
  color: var(--main-color);
  font-style: italic;
  font-size: 20px;
  font-weight: bold;
}

/* ضبط الموبايل */
@media (max-width: 767px) {
  .stats {
    margin-top: calc(var(--main-padding-top) / 2);
    padding-top: calc(var(--main-padding-top) / 2);
    padding-bottom: calc(var(--main-padding-bottom) / 2);
  }
  .stats .container {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
  }
  .stats h2 {
    font-size: 30px;
  }
  .stats .box .number {
    font-size: 35px;
  }
}
/* End Stats */
/* Start Discount */
.discount {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.discount .image {
  background-image: url(../imgs/discount-background1.jpg);
  background-size: cover;
  color: white;
  flex-basis: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: change-background 10s linear infinite;
}

.discount .image::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(23 135 224 / 97%);
  z-index: -1;
}

@media (max-width: 991px) {
  .discount .image {
    flex-basis: 100%;
  }
}

.discount .form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 50%;
  padding-bottom: 50px;
}

@media (max-width: 991px) {
  .discount .form {
    flex-basis: 100%;
  }
}

.discount .form .input {
  display: block;
  width: 100%;
  margin-bottom: 25px;
  padding: 15px;
  border: none;
  border-bottom: 1px solid #ccc;
  background-color: #f9f9f9;
  caret-color: var(--main-color);
}

.discount .form textarea.input {
  resize: none;
  height: 200px;
}

.discount .form .input:focus {
  outline: none;
}

.discount .form [type="submit"] {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: var(--main-transition);
}

.discount .form select {
  color: #575454;
}

.discount .form [type="submit"]:hover {
  background-color: var(--main-color-alt);
}

.discount .content {
  text-align: center;
  padding: 0 20px;
}

.discount .content h2 {
  font-size: 40px;
  letter-spacing: -2px;
}

.discount .content p {
  line-height: 1.6;
  font-size: 18px;
  max-width: 500px;
}

.discount .content img {
  width: 300px;
  max-width: 100%;
}

/* End Discount */
/* Start Footer */
/* --- بداية قسم الفوتر المطور (3 أعمدة) --- */
.footer {
  background-color: #191919;
  padding: 70px 0 0;
}

@media (max-width: 767px) {
  .footer {
    text-align: center;
  }
}

.footer .container {
  display: grid;
  /* التعديل هنا: جعلنا الأعمدة 3 بشكل صريح مع الحفاظ على المرونة */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

/* لضمان ثبات الـ 3 أعمدة في الشاشات الكبيرة (Desktop) */
@media (min-width: 1200px) {
  .footer .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer .box h3 {
  color: white;
  font-size: 36px;
  margin: 0 0 20px;
  font-family: 'Arabic Calligraphy', sans-serif;
  /* تماشياً مع هوية عطر الشرق */
}

.footer .box .social {
  display: flex;
}

@media (max-width: 767px) {
  .footer .box .social {
    justify-content: center;
  }
}

.footer .box .social li {
  margin-left: 10px;
  /* تعديل للمحاذاة العربية */
}

.footer .box .social li a {
  background-color: #313131;
  color: #b9b9b9;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 20px;
  transition: 0.3s;
}

.footer .box .social .facebook:hover {
  background-color: #1877f2;
}

.footer .box .social .twitter:hover {
  background-color: #1da1f2;
}

.footer .box .social .youtube:hover {
  background-color: #ff0000;
}

.footer .box .text {
  line-height: 2;
  color: #b9b9b9;
}

.footer .box .links li {
  padding: 15px 0;
  transition: 0.3s;
}

.footer .box .links li:not(:last-child) {
  border-bottom: 1px solid #444;
}

.footer .box .links li:hover {
  padding-right: 10px;
  /* تعديل الاتجاه للغة العربية */
}

.footer .box .links li:hover a {
  color: white;
}

.footer .box .links li a {
  color: #b9b9b9;
  transition: 0.3s;
}

.footer .box .links li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\f100";
  /* سهم يتجه لليسار بما يتناسب مع العربي */
  font-weight: 900;
  margin-left: 10px;
  color: #2196f3;
}

.footer .box .line {
  display: flex;
  align-items: center;
  color: #b9b9b9;
  margin-bottom: 15px;
}
.footer .box .line  {
  color: #b9b9b9;
}
.footer .box .line  a{
  color: #b9b9b9;
}

@media (max-width: 767px) {
  .footer .box .line {
    flex-direction: column;
  }
}

.footer .box .line i {
  padding: 10px;
  font-size: 25px;
  color: #2196f3;
  margin-left: 40px;
}

@media (max-width: 767px) {
  .footer .box .line i {
    margin-left: 0;
    margin-bottom: 15px;
  }
}

.footer .box .line .info {
  line-height: 1.7;
  flex: 1;
}

.footer .box .line .info span{
  color: #777;
}

.footer .box .line .info span {
  display: block;
}

.footer .copyright {
  padding: 25px 0;
  text-align: center;
  color: white;
  margin: 50px 0 0;
  border-top: 1px solid #444;
}

/* --- نهاية قسم الفوتر --- */
/* End Footer */



/* Start Animation */
@keyframes up-and-down {

  0%,
  100% {
    top: 0;
  }

  50% {
    top: -50px;
  }
}

@keyframes bouncing {

  0%,
  10%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40%,
  60% {
    transform: translateY(-15px);
  }
}

@keyframes left-move {
  50% {
    left: 0;
    width: 12px;
    height: 12px;
  }

  100% {
    left: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}

@keyframes right-move {
  50% {
    right: 0;
    width: 12px;
    height: 12px;
  }

  100% {
    right: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}

@keyframes moving-arrow {
  100% {
    transform: translateX(10px);
  }
}

@keyframes flashing {

  0%,
  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    width: 200%;
    height: 200%;
  }
}

@keyframes change-background {

  0%,
  100% {
    background-image: url("../imgs/discount-background1.jpg");
  }

  50% {
    background-image: url("../imgs/discount-background2.jpg");
  }
}

/* End Animation */
/* Start Popap - المطور مع خانة البحث */
/* Start Popap - المطور مع خانة البحث */

/* الخلفية السوداء الشفافة */
.modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  /* خليناها أغمق شوية عشان الشياكة */
}

/* صندوق المحتوى */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  /* خلينا البادينج صفر عشان نتحكم فيه جوه الأقسام */
  width: 90%;
  max-width: 600px;
  border-radius: 15px;
  text-align: right;
  direction: rtl;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* عشان الحواف تظل دائرية */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* الهيدر (العنوان وزر الإغلاق) */
.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modalTitle {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: #ff0000;
}

/* سيكشن البحث الجديد */
.search-container {
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

#perfumeSearch {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: right;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
}

#perfumeSearch:focus {
  border-color: #2196f3;
  /* اللون الأزرق اللي أنت مستخدمه */
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.2);
}

/* جسم المودال - مكان عرض العطور */
.modal-body {
  padding: 20px;
  overflow-y: auto;
  /* تفعيل السكرول هنا */
  flex-grow: 1;
}

/* تنسيق القائمة (نفس نظامك القديم المفضل) */
#perfumeListContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 20px;
  list-style: none;
  margin: 0;
}

/* تنسيق كل عطر (نفس الـ Li اللي كنت عامله) */
.perfume-item {
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 5px;
  border-right: 4px solid #2196f3;
  /* الخط الجمالي بتاعك */
  font-size: 14px;
  color: #333;
  transition: 0.3s;
  display: block;
  /* عشان ياخد مساحة الجريد */
}

.perfume-item:hover {
  background-color: #f1f1f1;
  transform: translateX(-5px);
}

/* للموبايل: نخليهم سطر واحد */
@media (max-width: 480px) {
  #perfumeListContainer {
    grid-template-columns: 1fr;
  }
}

/* شكل السكرول بار الشيك */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #2196f3;
  border-radius: 10px;
}

/* تنسيق قائمة الاقتراحات الذكية */
.suggestions-container {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 200px;
  /* طول القائمة */
  overflow-y: auto;
  /* سكرول داخلي */
  width: 100%;
  /* هتاخد عرض خانة الإدخال */
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: none;
  /* مخفية وهتظهر لما العميل يكتب */
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  text-align: right;
  border-bottom: 1px solid #f9f9f9;
  transition: 0.2s;
  font-size: 14px;
  color: #333;
}

.suggestion-item:hover {
  background-color: #2196f3;
  color: white;
}

/* عشان نضمن إن الاقتراحات تظهر تحت الخانة بالظبط */
.perfume-item {
  position: relative;
}

/* End Popap */
/* End Popap */




/* بوباب العرض */

/* تنسيق البوب آب الأساسي */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* تعتيم الخلفية */
  backdrop-filter: blur(5px);
  /* تأثير الضبابية للخلفية */
}

/* صندوق المحتوى */
.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  direction: rtl;
  /* الكتابة من اليمين للشمال */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.4s ease;
  /* حركة ظهور ناعمة */
}

/* عنوان الفورم */
.modal-content h2 {
  text-align: center;
  color: #333;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: bold;
}

/* تنسيق خانات الإدخال */
.form-input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  box-sizing: border-box;
  /* عشان الـ Padding ميبوظش العرض */
}

.form-input:focus {
  border-color: #2196f3;
  /* تغيير اللون عند الوقوف على الخانة */
  box-shadow: 0 0 8px rgba(33, 150, 243, 0.2);
}

/* زرار الإرسال */
#offerSubmitBtn {
  width: 100%;
  padding: 15px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: 0.3s;
}

#offerSubmitBtn:hover {
  background-color: #1976d2;
  transform: translateY(-2px);
  /* رفعة بسيطة عند الماوس */
}

#offerSubmitBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* زرار الإغلاق (X) */
.close-btn {
  position: absolute;
  left: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: 0.3s;
}

.close-btn:hover {
  color: #ff4d4d;
}

/* بوب آب النجاح (الكارت الأخضر) */
.success-card {
  text-align: center;
  padding: 40px 30px;
}

.check-icon {
  width: 80px;
  height: 80px;
  background: #2ecc71;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.ok-btn {
  width: 100%;
  padding: 12px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  margin-top: 20px;
}

/* أنيميشن الظهور */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* انهاء بوباب العرض */