/* استایل هدر */
.store-header {
  position: fixed;
  top: 0;
  width: 100%; /* تمام عرض صفحه */
  padding: 15px;
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  background: var(--theme-color);
  animation: fadeIn 0.7s ease-in-out;
}
.store-header.shrink {
  display: none; /* مخفی شدن کامل هدر در حالت shrink */
}
/* استایل عنوان فروشگاه */
.store-title {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
  margin: 0;
  transition: all 0.4s ease;
  position: relative;
  left: 0;
  transform: none;
}
.store-logo {
  width: 60px; /* عرض ثابت برای دایره‌ای بودن */
  height: 60px; /* ارتفاع ثابت */
  border-radius: 50%; /* اطمینان از دایره‌ای بودن */
  object-fit: cover; /* حفظ نسبت تصویر */
  aspect-ratio: 1 / 1; /* نسبت 1:1 برای دایره‌ای ماندن */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--border-color);
}
.store-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.store-header.shrink .store-logo {
  display: none !important;
}
.store-header h1 {
  width: 71.43%; /* 5/7 از عرض */
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-color);
  text-align: center;
}
.store-header h1.store-name-small {
  font-size: 1.36rem; /* 20 درصد کوچک‌تر */
}
.store-header.shrink h1 {
  display: none !important;
}
/* استایل دکمه جستجو */
.search-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}
.search-btn i {
  font-size: 1.6rem;
  color: var(--text-color);
  transition: all 0.4s ease;
}
.search-btn:hover i {
  transform: scale(1.1);
}
.store-header.shrink .search-btn i {
  display: none !important;
}
/* استایل کانتینر جستجو */
.search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 15px;
  box-sizing: border-box;
  background: var(--theme-color);
}
.store-header.search-active .search-container {
  height: 70px;
  opacity: 1;
  visibility: visible;
  transition: all 0.4s ease;
}
/* استایل رپر جستجو */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-grow: 1;
  position: relative;
  margin-left: 50px;
  transition: all 0.4s ease;
}
/* استایل سلکت‌باکس */
#parent-category-select {
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  border-radius: 25px 0 0 25px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  cursor: pointer;
  width: 130px;
  height: 45px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 12l-6-6h12l-6 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
  padding-left: 35px;
}
#parent-category-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}
/* استایل ورودی جستجو */
#product-search {
  width: 100%;
  padding: 10px 20px;
  border: none;
  border-radius: 0 25px 25px 0;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  font-size: 1rem;
  font-family: "Vazir", Arial, sans-serif;
  height: 45px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}
#product-search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}
#product-search::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
/* استایل دکمه لغو */
.cancel-btn {
  background: rgba(231, 76, 60, 0.8);
  border: none;
  padding: 8px;
  cursor: pointer;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}
.cancel-btn:hover {
  background: rgba(231, 76, 60, 1);
  transform: scale(1.05);
  transition: all 0.4s ease;
}
.cancel-btn i {
  font-size: 1.2rem;
  color: #fff;
  transition: all 0.4s ease;
}
