/* کد های مربوط به هدر  */
.shop-card-container {
    position: relative;
    display: inline-block;
}

/* دکمه سبد خرید */
.shop-card {
    transition: background-color 0.3s ease;
}

.shop-card:hover {
    background-color: #0056b3;
}

/* منوی dropdown */
.shop-card-dropdown {

    z-index: 999;
    padding: 10px;
    /* حالت پیش‌فرض: مخفی */
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.shop-card-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* آیتم‌های داخل dropdown */
.shop-card-dropdown div {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shop-card-dropdown div:last-child {
    border-bottom: none;
}

.shop-card-dropdown div:hover {
    background-color: #f8f9fa;
}
/* CSS برای header */
.new_header {
  position: fixed;
  z-index: 1000;
}

/* برای دسکتاپ - header در بالا */
@media (min-width: 769px) {
  .new_header {
    top: 0;
    left: 0;
    right: 0;
  }
  
  /* اضافه کردن فضای خالی به body تا محتوا زیر header مخفی نشود */
  body {
    padding-top: 80px; /* ارتفاع header خود را قرار دهید */
  }
}

/* برای موبایل - header در پایین */
@media (max-width: 768px) {
  .new_header {
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  /* اضافه کردن فضای خالی به body تا محتوا بالای header مخفی نشود */
  body {
    padding-bottom: 80px; /* ارتفاع header خود را قرار دهید */
  }
}

/* استایل header-picker ها */
.header-picker {
  background-color: transparent;
  color: #3D1B19;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-picker svg {
  color: #FAF5EE;
  transition: color 0.3s ease;
}

.header-picker .text {
  display: none;
  transition: opacity 0.3s ease;
}

.header-picker.active {
  background-color: #FAF5EE;
  border-radius: 60px; 
}

.header-picker.active .text {
  display: inline;
}

.header-picker.active svg {
  color: #3D1B19;
}


/* loader *//* loader *//* loader */


#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  display: flex; /* از ابتدا نمایش داده شود */
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}


/* اضافه کردن backdrop-filter برای جلوگیری از flickering */
#loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 100%;
  background-color: rgba(230, 210, 190, 0.3);
  backdrop-filter: blur(12px);
  z-index: 9000;
}
.loading svg polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading svg polyline#back {
  fill: none;
  stroke: #ff4d5033;
}

.loading svg polyline#front {
  fill: none;
  stroke: #ff4d4f;
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: dash_682 1.4s linear infinite;
}

@keyframes dash_682 {
  72.5% {
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
  }
}



/* BreadCrums*/