/* Sabit ana sayfa oku — Hakkımızda / İletişim; sağ altta WhatsApp’ın hemen üstünde (sol ok / piramit uç) */
.home-float {
  position: fixed;
  top: auto;
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 56px + 52px + 14px);
  right: max(16px, env(safe-area-inset-right, 0px));
  min-width: 72px;
  height: 52px;
  padding: 0 16px 0 22px;
  border-radius: 0;
  border: none;
  background: #e4002b;
  /* Sola bakan ok gövdesi (piramit uç) — parlak vişne kırmızı */
  clip-path: polygon(0% 50%, 18% 0%, 100% 0%, 100% 100%, 18% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
  z-index: 10050;
  text-decoration: none;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.home-float-label {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.home-float:hover {
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.26)) brightness(0.92);
}
.home-float:focus-visible {
  outline: 2px solid rgba(250, 250, 249, 0.65);
  outline-offset: 3px;
}
@media (max-width: 430px) {
  .home-float {
    min-width: 66px;
    height: 48px;
    padding: 0 14px 0 20px;
    bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 52px + 56px + 12px);
    font-size: 0.8125rem;
  }
}
html[dir="rtl"] .home-float {
  right: auto;
  left: max(16px, env(safe-area-inset-left, 0px));
  padding: 0 22px 0 16px;
  clip-path: polygon(100% 50%, 82% 0%, 0% 0%, 0% 100%, 82% 100%);
}
@media (max-width: 430px) {
  html[dir="rtl"] .home-float {
    left: max(12px, env(safe-area-inset-left, 0px));
    padding: 0 20px 0 14px;
    clip-path: polygon(100% 50%, 80% 0%, 0% 0%, 0% 100%, 80% 100%);
  }
}
/* Başa dön butonu — sağ alt, WhatsApp'ın üstünde */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 56px + 52px + 14px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #0b3a44;
  background: linear-gradient(140deg, #0f3d45 0%, #082a31 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(255, 255, 255, 0.06) inset;
  z-index: 10055;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: linear-gradient(140deg, #12505b 0%, #0b3a44 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(255, 255, 255, 0.08) inset;
  transform: translateY(-2px) scale(1.03);
}
.back-to-top:active {
  transform: translateY(0) scale(0.97);
}
.back-to-top:focus-visible {
  outline: 3px solid #25d366;
  outline-offset: 3px;
}
.back-to-top svg {
  display: block;
  width: 22px;
  height: 22px;
}
html[dir="rtl"] .back-to-top {
  right: auto;
  left: max(16px, env(safe-area-inset-left, 0px));
}
@media (max-width: 430px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 52px + 56px + 12px);
  }
  html[dir="rtl"] .back-to-top {
    left: max(12px, env(safe-area-inset-left, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.15s ease;
    transform: none;
  }
  .back-to-top.is-visible { transform: none; }
}

/* WhatsApp — tüm ekran / tüm sayfa genişliklerinde fiziksel sağ-alt; ürün detayı / lightbox (10090+) açıkken altta kalır */
.whatsapp-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  margin: 0;
  width: auto;
  max-width: min(320px, calc(100vw - 32px));
  box-sizing: border-box;
  min-height: 56px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: #25d366;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  z-index: 10060;
  text-decoration: none;
  color: #fff;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.whatsapp-float__label {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(0.72rem, 2.8vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: start;
  white-space: nowrap;
  flex-shrink: 0;
}
.whatsapp-float img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  box-sizing: content-box;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  -webkit-user-drag: none;
  user-select: none;
}
/* Arapça / Farsça: konum yine sağ-alt; sadece içerik yönü ters */
html[dir="rtl"] .whatsapp-float {
  right: max(16px, env(safe-area-inset-right, 0px));
  left: auto;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  flex-direction: row-reverse;
  padding: 10px 14px 10px 16px;
}
@media (max-width: 430px) {
  .whatsapp-float {
    min-height: 52px;
    padding: 8px 14px 8px 12px;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
    padding: 3px;
  }
  html[dir="rtl"] .whatsapp-float {
    right: max(12px, env(safe-area-inset-right, 0px));
    left: auto;
    padding: 8px 12px 8px 14px;
  }
}
