:root {
  /* ارتفاع واقعی هدر ریل‌ها را در عمل تنظیم می‌کنیم */
  --header-height: 60px; /* اگر لازم شد بعداً این عدد را کم/زیاد می‌کنیم */
  --reel-height: calc(100vh - var(--header-height));
}

/* بدنه */
body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: sans-serif;
}

/* هدر بالای ریل‌ها */
.reels-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #000;              /* پس‌زمینه تیره مثل صفحه */
  color: #fff;
  z-index: 1000;                 /* بالاتر از ویدیوها */
  box-sizing: border-box;
  border-bottom: 1px solid #222; /* خط ظریف جداکننده (دلخواه) */
}

/* متن هدر */
.reels-header span {
  font-size: 14px;
  font-weight: 600;
}

/* دکمه محصولات در هدر */
.reels-header .product-btn {
  background: #ff2d55;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

/* کانتینر ریل‌ها: زیر هدر شروع شود */
#wrapper,
.wrapper-reels,
#reels {
  margin: 0;
  padding: 0;
}

#wrapper {
  /* اگر صفحه‌ات div دیگری ندارد، این را نادیده بگیر */
}

.wrapper-reels {
  position: relative;
  margin-top: var(--header-height);   /* مهم‌ترین خط: شروع از زیر هدر */
  height: var(--reel-height);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* هر ریل */
.reel-item {
  position: relative;
  width: 100%;
  height: var(--reel-height);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

/* محتوا (ویدیو/عکس) */
.reel-item video,
.reel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* اگر خواستی تمام صفحه پر شود بکنش cover */
  z-index: 1;
}

/* نوار پیشرفت */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.progress {
  height: 100%;
  width: 0;
  background: #ff2d55;
  box-shadow: 0 0 8px #ff2d55;
}

/* دکمه‌های سمت راست */
.actions {
  position: absolute;
  right: 15px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}
.actions button {
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* اسکرول هینت */
.scroll-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: #000;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2000;
  pointer-events: none;
  animation: hintBounce 1.5s infinite;
}

.scroll-hint.hide {
  opacity: 0;
  transition: opacity 0.8s;
}

@keyframes hintBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-6px); }
}
