/* ==========================================================
   BULCHEM V6.0 — CLEAN RESPONSIVE HEADER
   This file is the single authoritative header layer.
========================================================== */

.header{
  position:fixed !important;
  inset:0 0 auto 0 !important;
  width:100% !important;
  height:110px !important;
  margin:0 !important;
  padding:0 !important;
  background:rgba(255,255,255,.97) !important;
  border-bottom:1px solid rgba(10,35,66,.08) !important;
  box-shadow:0 10px 34px rgba(10,35,66,.07) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  z-index:2000 !important;
}

.header .header-inner{
  width:min(1860px,calc(100% - 48px)) !important;
  max-width:none !important;
  height:110px !important;
  margin:0 auto !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:250px minmax(0,1fr) auto !important;
  align-items:center !important;
  column-gap:30px !important;
}

.header .logo{
  width:250px !important;
  height:84px !important;
  max-width:250px !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  overflow:visible !important;
}

.header .logo img{
  display:block !important;
  width:250px !important;
  max-width:250px !important;
  max-height:84px !important;
  height:auto !important;
  object-fit:contain !important;
  object-position:left center !important;
}

.header .main-nav{
  min-width:0 !important;
  position:static !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
}

.header .main-nav ul{
  list-style:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  gap:32px !important;
  margin:0 !important;
  padding:0 !important;
}

.header .main-nav li{
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
}

.header .main-nav a{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  min-height:56px !important;
  padding:0 0 4px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#102a4a !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  font:800 19px/1.15 "Inter",sans-serif !important;
  letter-spacing:-.35px !important;
}

.header .main-nav a::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:3px !important;
  border-radius:99px !important;
  background:#c79c2b !important;
  transform:scaleX(0) !important;
  transform-origin:center !important;
  transition:transform .2s ease !important;
}

.header .main-nav a:hover::after,
.header .main-nav a.active::after{
  transform:scaleX(1) !important;
}

.header .header-actions{
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
  gap:14px !important;
}

.header .lang-switch{
  height:46px !important;
  min-width:78px !important;
  padding:0 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  flex:0 0 auto !important;
  border:1px solid #dce4ed !important;
  border-radius:13px !important;
  background:#f7f9fc !important;
  color:#8a96a6 !important;
  white-space:nowrap !important;
}

.header .lang-switch button{
  min-width:20px !important;
  margin:0 !important;
  padding:4px 0 !important;
  border:0 !important;
  background:transparent !important;
  color:#758193 !important;
  cursor:pointer !important;
  font:800 14px/1 "Inter",sans-serif !important;
  text-decoration:none !important;
}

.header .lang-switch button.active{
  color:#0a2342 !important;
}

.header .lang-switch button.active::after{
  content:"" !important;
  display:block !important;
  width:100% !important;
  height:2px !important;
  margin-top:4px !important;
  border-radius:99px !important;
  background:#c79c2b !important;
}

.header .header-search{
  width:240px !important;
  min-width:240px !important;
  height:52px !important;
  margin:0 !important;
  padding:0 16px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex:0 0 240px !important;
  border:1px solid #d9e2ec !important;
  border-radius:999px !important;
  background:#f7f9fc !important;
  box-shadow:none !important;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease !important;
}

.header .header-search:focus-within{
  width:240px !important;
  border-color:#9db2c8 !important;
  background:#fff !important;
  box-shadow:0 0 0 4px rgba(10,35,66,.06) !important;
}

.header .header-search-icon{
  flex:0 0 auto !important;
  color:#0a2342 !important;
  font-size:22px !important;
  line-height:1 !important;
}

.header .header-search input{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#0a2342 !important;
  font:500 13px/1 "Inter",sans-serif !important;
}

.header .header-phone{
  height:52px !important;
  min-width:220px !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex:0 0 auto !important;
  color:#0a2342 !important;
  text-decoration:none !important;
}

.header .phone-icon{
  width:46px !important;
  height:44px !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 46px !important;
  border-radius:13px !important;
  background:#eef3f8 !important;
  color:#0a2342 !important;
  font-size:19px !important;
}

.header .phone-info{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  white-space:nowrap !important;
}

.header .phone-info small{
  display:block !important;
  color:#7b8796 !important;
  font:600 12px/1 "Inter",sans-serif !important;
}

.header .phone-info strong{
  display:block !important;
  color:#0a2342 !important;
  font:800 15px/1 "Inter",sans-serif !important;
}

.header .header-whatsapp{
  height:58px !important;
  min-width:184px !important;
  margin:0 !important;
  padding:0 24px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  flex:0 0 auto !important;
  border:0 !important;
  border-radius:999px !important;
  background:#11ad60 !important;
  color:#fff !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  box-shadow:0 12px 28px rgba(17,173,96,.2) !important;
  font:800 14px/1 "Inter",sans-serif !important;
}

.header .header-whatsapp:hover{
  background:#0b9953 !important;
  transform:translateY(-2px) !important;
  box-shadow:0 16px 34px rgba(17,173,96,.28) !important;
}

.header .whatsapp-icon{
  width:21px !important;
  height:21px !important;
  flex:0 0 21px !important;
  display:block !important;
}

.header .mobile-menu-toggle{
  display:none !important;
}

/* Large desktop compacting — still shows every header control. */
@media(max-width:1650px) and (min-width:1181px){
  .header .header-inner{
    grid-template-columns:220px minmax(0,1fr) auto !important;
    column-gap:22px !important;
  }

  .header .logo{
    width:220px !important;
    max-width:220px !important;
    height:78px !important;
  }

  .header .logo img{
    width:220px !important;
    max-width:220px !important;
    max-height:78px !important;
  }

  .header .main-nav ul{
    gap:24px !important;
  }

  .header .main-nav a{
    font-size:17px !important;
  }

  .header .header-actions{
    gap:10px !important;
  }

  .header .header-search,
  .header .header-search:focus-within{
    width:200px !important;
    min-width:200px !important;
    flex-basis:200px !important;
  }

  .header .header-phone{
    min-width:188px !important;
  }

  .header .phone-info strong{
    font-size:14px !important;
  }

  .header .header-whatsapp{
    min-width:156px !important;
    padding:0 19px !important;
    font-size:14px !important;
  }
}

/* Medium desktop: remove search first, never allow collisions. */
@media(max-width:1380px) and (min-width:1181px){
  .header .header-inner{
    grid-template-columns:190px minmax(0,1fr) auto !important;
    column-gap:18px !important;
  }

  .header .logo{
    width:190px !important;
    max-width:190px !important;
    height:72px !important;
  }

  .header .logo img{
    width:190px !important;
    max-width:190px !important;
    max-height:72px !important;
  }

  .header .header-search{
    display:none !important;
  }

  .header .main-nav ul{
    gap:18px !important;
  }

  .header .main-nav a{
    font-size:16px !important;
  }

  .header .phone-info small{
    display:none !important;
  }
}

@media(max-width:1240px) and (min-width:1181px){
  .header .header-phone{
    display:none !important;
  }

  .header .main-nav ul{
    gap:16px !important;
  }
}

/* Tablet / mobile header */
@media(max-width:1180px){
  .header{
    height:78px !important;
  }

  .header .header-inner{
    width:calc(100% - 24px) !important;
    height:78px !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
  }

  .header .logo{
    order:1 !important;
    width:164px !important;
    height:58px !important;
    max-width:164px !important;
    flex:0 0 164px !important;
  }

  .header .logo img{
    width:164px !important;
    max-width:164px !important;
    max-height:58px !important;
  }

  .header .header-actions{
    order:2 !important;
    margin-left:auto !important;
    gap:8px !important;
  }

  .header .header-search,
  .header .header-phone,
  .header .header-whatsapp{
    display:none !important;
  }

  .header .lang-switch{
    height:40px !important;
    min-width:72px !important;
    padding:0 9px !important;
    border-radius:11px !important;
  }

  .header .mobile-menu-toggle{
    order:3 !important;
    width:42px !important;
    height:42px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:column !important;
    gap:5px !important;
    flex:0 0 42px !important;
    border:1px solid rgba(10,35,66,.12) !important;
    border-radius:11px !important;
    background:#fff !important;
    box-shadow:0 7px 20px rgba(10,35,66,.08) !important;
    cursor:pointer !important;
  }

  .header .mobile-menu-toggle span{
    display:block !important;
    width:21px !important;
    height:2px !important;
    border-radius:2px !important;
    background:#0a2342 !important;
    transition:transform .22s ease,opacity .22s ease !important;
  }

  .header .mobile-menu-toggle.is-open span:nth-child(1){
    transform:translateY(7px) rotate(45deg) !important;
  }

  .header .mobile-menu-toggle.is-open span:nth-child(2){
    opacity:0 !important;
  }

  .header .mobile-menu-toggle.is-open span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg) !important;
  }

  .header .main-nav{
    position:fixed !important;
    top:86px !important;
    left:12px !important;
    right:12px !important;
    display:block !important;
    padding:12px !important;
    border:1px solid rgba(10,35,66,.1) !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:0 25px 70px rgba(10,35,66,.2) !important;
    opacity:0 !important;
    visibility:hidden !important;
    transform:translateY(-10px) !important;
    transition:opacity .22s ease,visibility .22s ease,transform .22s ease !important;
    z-index:2100 !important;
  }

  .header .main-nav.is-open{
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
  }

  .header .main-nav ul{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:4px !important;
  }

  .header .main-nav a{
    width:100% !important;
    min-height:48px !important;
    padding:0 15px !important;
    border-radius:11px !important;
    font-size:15px !important;
  }

  .header .main-nav a::after{
    display:none !important;
  }

  .header .main-nav a:hover,
  .header .main-nav a.active{
    background:#f0f4f8 !important;
  }

  .hero.hero-home{
    padding-top:104px !important;
  }

  body .breadcrumb{
    margin-top:78px !important;
  }
}

@media(max-width:600px){
  .header{
    height:70px !important;
  }

  .header .header-inner{
    width:calc(100% - 20px) !important;
    height:70px !important;
    gap:7px !important;
  }

  .header .logo{
    width:136px !important;
    height:48px !important;
    max-width:136px !important;
    flex-basis:136px !important;
  }

  .header .logo img{
    width:136px !important;
    max-width:136px !important;
    max-height:50px !important;
  }

  .header .lang-switch{
    height:36px !important;
    min-width:68px !important;
    padding:0 7px !important;
  }

  .header .mobile-menu-toggle{
    width:40px !important;
    height:40px !important;
    flex-basis:40px !important;
  }

  .header .main-nav{
    top:78px !important;
    left:10px !important;
    right:10px !important;
  }

  .hero.hero-home{
    min-height:auto !important;
    padding:94px 0 56px !important;
  }

  body .breadcrumb{
    margin-top:70px !important;
  }
}

@media(max-width:370px){
  .header .logo{
    width:114px !important;
    max-width:114px !important;
    flex-basis:114px !important;
  }

  .header .logo img{
    width:114px !important;
    max-width:114px !important;
  }

  .header .lang-switch{
    min-width:62px !important;
    padding:0 5px !important;
  }
}

/* ==========================================================
   BULCHEM V6.1 — RESPONSIVE COMPACT SEARCH
========================================================== */
.header .header-search{
  position:relative !important;
  width:220px !important;
  min-width:220px !important;
  height:52px !important;
  padding:0 14px 0 10px !important;
  gap:8px !important;
  flex:0 0 220px !important;
}

.header .header-search-toggle{
  width:36px !important;
  height:36px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 36px !important;
  border:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  color:#0a2342 !important;
  cursor:pointer !important;
}

.header .header-search-toggle svg,
.header .mobile-nav-search svg{
  width:21px !important;
  height:21px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.header .header-search input{
  position:static !important;
  width:100% !important;
  height:100% !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

.header .mobile-nav-search{
  display:none !important;
}

@media(max-width:1650px) and (min-width:1381px){
  .header .header-search,
  .header .header-search:focus-within{
    width:185px !important;
    min-width:185px !important;
    flex-basis:185px !important;
  }
}

/* Dar masaüstü: header içinde yalnızca büyüteç görünür.
   Tıklanınca arama alanı aşağı doğru açılır. */
@media(max-width:1380px) and (min-width:1181px){
  .header .header-search,
  .header .header-search:focus-within{
    position:relative !important;
    display:flex !important;
    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    padding:0 !important;
    flex:0 0 48px !important;
    overflow:visible !important;
    background:#f7f9fc !important;
  }

  .header .header-search-toggle{
    width:46px !important;
    height:46px !important;
    flex-basis:46px !important;
  }

  .header .header-search input{
    position:absolute !important;
    top:58px !important;
    right:0 !important;
    width:300px !important;
    height:52px !important;
    padding:0 18px !important;
    border:1px solid #d9e2ec !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 18px 42px rgba(10,35,66,.18) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateY(-8px) !important;
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease !important;
    z-index:2300 !important;
  }

  .header .header-search.is-open input{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:none !important;
  }
}

@media(max-width:1180px){
  .header .header-search{
    display:none !important;
  }

  .header .mobile-nav-search{
    width:100% !important;
    height:50px !important;
    margin-top:10px !important;
    padding:0 7px 0 14px !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    border:1px solid #d9e2ec !important;
    border-radius:13px !important;
    background:#f7f9fc !important;
  }

  .header .mobile-nav-search svg{
    flex:0 0 21px !important;
    color:#0a2342 !important;
  }

  .header .mobile-nav-search input{
    min-width:0 !important;
    width:100% !important;
    height:100% !important;
    padding:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    color:#0a2342 !important;
    font:500 14px/1 "Inter",sans-serif !important;
  }

  .header .mobile-nav-search button{
    height:38px !important;
    padding:0 15px !important;
    flex:0 0 auto !important;
    border:0 !important;
    border-radius:10px !important;
    background:#0a2342 !important;
    color:#fff !important;
    cursor:pointer !important;
    font:800 13px/1 "Inter",sans-serif !important;
  }
}
