/* ── HOME STORIES ── */
.hs-wrap {
  background: #F4F5F7;
  padding: 32px 0 0;
}
.hs-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 max(24px, env(safe-area-inset-left,0px));
  margin-bottom: 20px;
}
.hs-label-text {
  color: rgba(14,13,34,.42);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hs-track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px max(24px, env(safe-area-inset-left,0px)) 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}
.hs-track::-webkit-scrollbar { display: none; }

/* Story item */
.hs-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 4px 8px 2px;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: none;
}
.hs-item.hs-seen .hs-ring {
  background: rgba(14,13,34,.15) !important;
}

/* Gradient ring */
.hs-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #4B34F6, #9B6DFF, #DDD9FF);
  transition: transform .18s ease, box-shadow .18s ease;
  flex: 0 0 76px;
}
.hs-item:hover .hs-ring {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(75,52,246,.18), 0 8px 24px rgba(75,52,246,.2);
}

/* Thumbnail */
.hs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hs-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #F4F5F7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
  user-select: none;
}

/* Yeni rozeti */
.hs-new {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #4B34F6;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 20px;
  border: 2px solid #F4F5F7;
  line-height: 1.4;
  pointer-events: none;
  font-family: inherit;
}

/* Etiket */
.hs-name {
  color: rgba(14,13,34,.72);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  max-width: 80px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: inherit;
}

/* Thumbnail renkleri */
.hs-c-purple  { background: linear-gradient(145deg,#1A0D5C,#5B30CC); }
.hs-c-teal    { background: linear-gradient(145deg,#063B3B,#15B5B5); }
.hs-c-green   { background: linear-gradient(145deg,#042A14,#18A050); }
.hs-c-amber   { background: linear-gradient(145deg,#4A1E00,#CC7A10); }
.hs-c-crimson { background: linear-gradient(145deg,#3D0014,#CC2246); }
.hs-c-indigo  { background: linear-gradient(145deg,#101040,#4848C0); }

/* ── LIGHTBOX ── */
.hs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hs-modal.hs-open {
  opacity: 1;
  pointer-events: all;
}
.hs-frame {
  position: relative;
  width: min(360px, 100vw);
  aspect-ratio: 9 / 16;
  max-height: calc(100dvh - 32px);
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 32px 96px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  transform: scale(.92);
  transition: transform .22s ease;
}
.hs-modal.hs-open .hs-frame { transform: scale(1); }

/* Progress */
.hs-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 3px;
  z-index: 20;
}
.hs-pbar {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
}
.hs-pfill {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 2px;
}
.hs-pbar.hs-done .hs-pfill { width: 100%; }

.hs-close {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 25;
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  opacity: .85;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s, opacity .15s;
}
.hs-close:hover { background: rgba(0,0,0,.55); opacity: 1; }

/* Sahne — sadece görsel */
.hs-scene {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}
.hs-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer CTA */
.hs-foot { display: none; }
.hs-foot-hidden {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 20;
}
.hs-cta-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  flex: 1;
  max-width: 200px;
  justify-content: center;
  transition: background .15s;
  font-family: inherit;
}
.hs-cta-wa:hover { background: #1aaf50; }
.hs-cta-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  font-family: inherit;
}
.hs-cta-link:hover { background: rgba(255,255,255,.22); }

/* Tap alanları (mobil) */
.hs-tap-prev, .hs-tap-next {
  position: absolute;
  top: 60px;
  bottom: 100px;
  width: 36%;
  z-index: 15;
  cursor: pointer;
}
.hs-tap-prev { left: 0; }
.hs-tap-next { right: 0; }

/* Masaüstü okları */
.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .15s;
  pointer-events: none;
}
.hs-modal.hs-open .hs-nav { pointer-events: all; }
.hs-modal:hover .hs-nav:not(:disabled) { opacity: 1; }
.hs-nav:hover { background: rgba(255,255,255,.22); }
.hs-nav:disabled { opacity: 0 !important; pointer-events: none; }
.hs-nav-prev { left: calc(50% - 190px - 56px); }
.hs-nav-next { left: calc(50% + 190px + 12px); }

/* need-finder gap — layout'taki !important'ı daha yüksek specificity ile ez */
html body main #home-stories ~ #need-finder { padding-top: calc(var(--tb-gap) / 2) !important; }

/* ürün listeleme: masaüstünde gizle, mobilde göster, gri arkaplan yok */
.pl-stories { display: none; }
.pl-stories .hs-wrap { background: transparent; }
@media (max-width: 540px) {
  .pl-stories { display: block; }
  .pl-stories .hs-wrap { padding-top: 4px; }  /* 16px - 12px: gri arka plan yok */
  .pl-stories + #products { padding-top: 0; }  /* 16px - 16px: tab arası kıs */
}

/* .pl-hs-side: intro sağında (desktop ≥1280) veya metnin altında (tablet 541-1279), mobilsiz */
.pl-hs-side { display: none; }
@media (min-width: 541px) and (max-width: 1279px) {
  .pl-hs-side { display: block; margin-top: 20px; }
  .pl-hs-side .hs-wrap { background: transparent; padding-top: 0; }
  .pl-hs-side .hs-item:hover, .pl-hs-side .hs-item:active { background: transparent; }
}
@media (min-width: 1280px) {
  #products .products-intro.has-pl-hs { position: relative; padding-right: 640px; min-height: 128px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
  .pl-hs-side { position: absolute; top: 50%; right: 0; transform: translateY(-50%); display: block; }
  .pl-hs-side .hs-wrap { background: transparent; padding: 0; }
  .pl-hs-side .hs-item:hover, .pl-hs-side .hs-item:active { background: transparent; }
  .pl-hs-side .hs-track { justify-content: flex-end; overflow: visible; padding-left: 0; padding-right: 0; }
}

@media (max-width: 540px) {
  .hs-wrap { padding: 16px 0 0; }
  .hs-nav { display: none; }
  .hs-ring { width: 68px; height: 68px; flex-basis: 68px; }
  /* track padding sıfır; item genişliği = ring genişliği = 68px → ring sol kenarı tam 24px */
  .hs-track {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
  }
  .hs-item { padding-left: 0; padding-right: 0; width: 68px; }
  .hs-item:first-child { margin-left: max(24px, env(safe-area-inset-left, 0px)); }
  .hs-name { max-width: 68px; }
  /* 6px her yana → gap 4px + 6+6 = 16px görsel aralık */
  .hs-track { gap: 16px; }
  /* mobilde dokunma vurgusu kaldır */
  .hs-item:hover,
  .hs-item:active { background: transparent; }
  /* etiket 2 satır, daire genişliğine yakın */
  .hs-name {
    text-align: center;
    max-width: 84px;
    -webkit-line-clamp: 2;
  }
}

/* dokunmatik cihazlarda hover/active efekti yok */
@media (hover: none) {
  .hs-item:hover, .hs-item:active { background: transparent; }
  .hs-item:hover .hs-ring { transform: none; box-shadow: none; }
}

/* iOS: uzun basış görsel kopyalama menüsünü açmasın, basılı tutmak duraklatır (2026-12-03) */
.hs-frame, .hs-scene, .hs-scene-img, .hs-item, .hs-item img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.hs-scene-img { pointer-events: none; }
