/* header الرئيسي */




/* شعار الموقع */
.site-logo {
  height: 100px ;
  max-height: 100px ;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.1);
}

.site-logo {
    max-height: 400px;
  }

/* خانة البحث */
.search-box {
  width: 100%;
}
.search-input {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* معلومات التوصيل */
.shipping-info {
  color: #333;
  gap: 0.5rem;
  font-size: 0.875rem;
}

/* اللغة والسلة والدخول */

.cart-count {
  top: -8px;
  right: -8px;
  font-size: 11px;
}

/* قائمة اللغة ------------------------------------------------*/
.lang-dropdown {
  display: none;
  min-width: 100px;
}

.lang-dropdown.show {
  display: block;
}

.lang-menu {
  position: relative;
  width: max-content;
}

.selected-lang img,
.lang-dropdown img {
  width: 25px;
  height: auto;
}


.lang-dropdown {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
}

.lang-dropdown.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*------------*/

.lang-dropdown {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
}

.lang-dropdown.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* زر تسجيل الدخول ----------------------------------------------*/
.login-link {
  border-radius:2 px;
  padding: 4px 10px;
}
 
/* ريسبونسيف */
@media (max-width: 768px) {
  .site-logo {
    max-height: 70px;
  }

  .lang-menu .selected-lang img {
    display: none;
  }

  .header-actions {
    margin-top: 1rem;
    justify-content: center;
  }
}

/*-------------  شريط الكتابة المتجرك   -------------------------------------------------------------*/

 /* ✅ حركة شريط النص المتحرك */

 header {
  height: 120px; /* حسب حجم الهيدر */
}

.swiper-wrapper-container {
  padding-top: 64px;
}

@keyframes marquee {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
}

.marquee-text:hover {
  animation-play-state: paused;
  cursor: pointer;
}

  /*--------------------    السلايدر    -------------------------------------------------------------------------------------------*/
/* الحاوية العامة */
.swiper-container-wrapper {
  max-width: 1300px;
  padding: 0 16px;
  margin: 0 auto;
}

/* السلايدر نفسه */
.swiper {
  width: 100%;
  height: 550px;
  border-radius: 18px;
  overflow: hidden; /* مهم لقص الصور مع الحواف */
  box-shadow: none !important;
}

/* الصور */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .swiper {
    height: 70vw;
    border-radius: 12px;
  }
}




/* ✅ مظهر النقاط -------------------------------------------------*/
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background-color 0.3s ease;
  margin: 0 4px !important;
}

/* ✅ النقطة النشطة */
.swiper-pagination-bullet-active {
  width: 22px;
  height: 12px;
  background: #FFCD34;
}

/* ✅ اجعل الصور تغطي الشريحة بشكل جميل */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ محاذاة مؤشر النقاط مع اتجاه RTL */
.swiper-pagination {
  direction: ltr;
  padding: 0 12px;              /* اختياري: مسافة من الجوانب */
}


/*   سلايدر العروض -------------------------------------------------*/




/* PRODUCTS */
.product {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.product-category {
  padding: 0 10vw;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 40px;
  text-transform: capitalize;
}

.product-container {
  padding: 0 10vw;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.product-container::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 auto;
  width: 250px;
  height: 450px;
  margin-right: 40px;
}

.product-image {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-tag {
  position: absolute;
  background: #fff;
  padding: 5px;
  border-radius: 5px;
  color: #ff7d7d;
  right: 10px;
  top: 10px;
  text-transform: capitalize;
}

.card-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  width: 90%;
  text-transform: capitalize;
  border: none;
  outline: none;
  background: #fff;
  border-radius: 5px;
  transition: 0.5s;
  cursor: pointer;
  opacity: 0;
}

.product-card:hover .card-btn {
  opacity: 1;
}

.card-btn:hover {
  background: #ff7d7d;
  color: #fff;
}

.product-info {
  width: 100%;
  height: 100px;
  padding-top: 10px;
}

.product-brand {
  text-transform: uppercase;
}

.product-short-description {
  width: 100%;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  opacity: 0.5;
  text-transform: capitalize;
  margin: 5px 0;
}

.price {
  font-weight: 900;
  font-size: 20px;
}

.actual-price {
  margin-left: 20px;
  opacity: 0.5;
  text-decoration: line-through;
}

.pre-btn,
.nxt-btn {
  border: none;
  width: 10vw;
  height: 100%;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  cursor: pointer;
  z-index: 8;
}

.pre-btn {
  left: 0;
  transform: rotate(180deg);
}

.nxt-btn {
  right: 0;
}

.pre-btn img,
.nxt-btn img {
  opacity: 0.2;
}

.pre-btn:hover img,
.nxt-btn:hover img {
  opacity: 1;
}

.collection-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
}

.collection {
  position: relative;
}

.collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  font-size: 50px;
  text-transform: capitalize;
}

.collection:nth-child(3) {
  grid-column: span 2;
  margin-bottom: 10px;
}
