/* Latifa Mühendislik V12: single always-visible header, clean scroll button.
   This override affects public frontend only; product images/DB/admin untouched. */

/* The premium template had overflow:hidden on .page-wrapper and created a
   second, scroll-direction-triggered header. A clipped parent or duplicate
   makes sticky layouts intermittently vanish or overlap on scroll up. */
html { scroll-padding-top: 82px; }
body { overflow-x:clip !important; }
body .page-wrapper { overflow:visible !important; height:auto !important; }
body .page-wrapper > header.main-header.lm-single-sticky-header {
  position:sticky !important;
  position:-webkit-sticky !important;
  top:0 !important;
  inset-block-start:0 !important;
  z-index:1200 !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  transition:none !important;
  visibility:visible !important;
  box-shadow:0 1px 0 rgba(135,184,126,.16),0 8px 25px rgba(0,0,0,.2);
}
body .page-wrapper > header.main-header.lm-single-sticky-header.active {
  transform:none !important;
  visibility:visible !important;
}
/* Disable old cloned header even when an outdated script inserts it. */
body .sticky-header--cloned { display:none !important; }
/* Keep section directly adjacent: no leftover synthetic spacer for header. */
body .page-wrapper > header.main-header.lm-single-sticky-header + section,
body .page-wrapper > header.main-header.lm-single-sticky-header + .lm-urunler-pagehead {
  margin-top:0 !important;
}
/* Leave the original top contact strip in normal flow on desktop; on mobile
   V11 intentionally hides it. Only the navigation header remains sticky. */
@media(max-width:767.98px) {
  html { scroll-padding-top:70px; }
  body .page-wrapper > header.main-header.lm-single-sticky-header {
    top:0 !important;
    margin-bottom:0 !important;
  }
  body .page-wrapper > header.main-header.lm-single-sticky-header + section {
    padding-top:0;
  }
}

/* Project categories: the counter stays white on green hover/active states. */
body .page-wrapper .sidebar__categories li > a:hover span,
body .page-wrapper .sidebar__categories li > a:focus-visible span,
body .page-wrapper .sidebar__categories li > a.active span,
body.lmv5-references .sidebar__categories li > a:is(:hover,:focus-visible,.active) span {
  color:#fff !important;
  opacity:1 !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:none !important;
}

/* Compact back-to-top icon. Overrides legacy vertical BAŞA DÖN progress rail. */
html body a.scroll-to-top.lm-scroll-arrow,
html body a.scroll-to-top.lm-scroll-arrow.show {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:fixed !important;
  right:clamp(14px,2vw,28px) !important;
  bottom:clamp(20px,3vh,32px) !important;
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  padding:0 !important;
  border:1px solid rgba(194,232,186,.42) !important;
  border-radius:10px !important;
  background:linear-gradient(125deg,#62b047 0%,#39823e 55%,#1c5435 100%) !important;
  color:#fff !important;
  box-shadow:0 8px 24px rgba(0,0,0,.28) !important;
  transform:none !important;
  rotate:none !important;
  transition:opacity .2s ease,visibility .2s ease,box-shadow .2s ease !important;
  z-index:1301 !important;
  text-decoration:none !important;
}
html body a.scroll-to-top.lm-scroll-arrow svg {
  display:block;
  width:22px;
  height:22px;
  stroke:#fff;
  flex:none;
}
html body a.scroll-to-top.lm-scroll-arrow:hover {
  box-shadow:0 12px 28px rgba(21,81,39,.38) !important;
  filter:brightness(1.08);
}
html body a.scroll-to-top.lm-scroll-arrow:not(.show) {
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
html body a.scroll-to-top.lm-scroll-arrow.show {
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
@media(max-width:767.98px) {
  html body a.scroll-to-top.lm-scroll-arrow,
  html body a.scroll-to-top.lm-scroll-arrow.show {
    width:43px !important;
    height:43px !important;
    min-width:43px !important;
    right:14px !important;
    bottom:24px !important;
  }
}
