/* ==================================================
   ULVI HEADER
   ================================================== */

/* =========================
   DEFAULT HEADER
   ========================= */
.site-header-custom{
  position: relative;
  z-index: 50;
  background: var(--ulvi-glass-bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.site-header-custom .header-inner{
  position: relative;
  min-height: var(--ulvi-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

@media (max-width: 768px){
  .site-header-custom .header-inner{
    min-height: var(--ulvi-header-h-m);
    padding: 0 18px;
  }
}

.site-header-custom a,
.site-header-custom button{
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: #000;
  box-shadow: none;
  outline: none;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

@media (hover:hover){
  .site-header-custom a:hover,
  .site-header-custom button:hover,
  .site-header-custom .cart-link:hover,
  .site-header-custom .menu-toggle:hover,
  .site-header-custom .site-logo:hover{
    box-shadow: none;
    outline: none;
  }
}

.site-header-custom .header-left,
.site-header-custom .header-right{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header-custom .header-center{
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (max-width: 768px){
  body:not(.home) .site-header-custom .header-center{
    top: 52%;
  }
}

.site-header-custom .header-center .site-logo{
  pointer-events: auto;
}

.site-logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-header-custom .site-logo img.ulvi-logo{
  display: block;
  width: auto;
  height: var(--ulvi-logo-h);
  max-width: none;
  max-height: none;
}

@media (max-width: 768px){
  .site-header-custom .site-logo img.ulvi-logo{
    height: var(--ulvi-logo-h-m);
  }
}

/* =========================
   HEADER ACTIONS
   ========================= */
.site-header-custom .cart-link,
.site-header-custom .menu-toggle{
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  line-height: 1;
  border-radius: var(--ulvi-r);
  background: transparent;
}

@media (max-width: 768px){
  .site-header-custom .cart-link,
  .site-header-custom .menu-toggle{
    width: 52px;
    height: 52px;
  }
}

/* =========================
   HEADER ICON DENGESI
   ========================= */
.site-header-custom .ulvi-bag,
.site-header-custom .ulvi-menu{
  display: block;
  opacity: 0.80;
  transform: translateY(0);
  transition: 
    transform 133ms ease,
    opacity 133ms ease;
}

.site-header-custom .menu-toggle:hover .ulvi-menu{
  opacity: 1;
}

/* Desktop */
.site-header-custom .ulvi-bag{
  width: 30px;
  height: 30px;
}

.site-header-custom .ulvi-menu{
  width: 30px;
  height: 30px;
}

/* Mobile */
@media (max-width: 768px){
  .site-header-custom .ulvi-bag{
    width: 23px;
    height: 23px;
    opacity: 0.85;
  }

  .site-header-custom .ulvi-menu{
    width: 25px;
    height: 25px;
    opacity: 0.85;
  }
}

/* =========================
   HOME ONLY — OVERLAY HEADER
   ========================= */
body.home .site-header-custom{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.admin-bar.home .site-header-custom{
  top: 32px;
}

@media (max-width: 782px){
  body.admin-bar.home .site-header-custom{
    top: 46px;
  }
}

body.home .site-header-custom a,
body.home .site-header-custom button{
  color: #fff;
  box-shadow: none;
  outline: none;
}

@media (hover:hover){
  body.home .site-header-custom .cart-link,
  body.home .site-header-custom .menu-toggle{
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.home .site-header-custom .cart-link:hover,
  body.home .site-header-custom .menu-toggle:hover{
    border-color: rgba(255,255,255,0.6);
  }
}

/* ==================================================
   HOME HERO
   ================================================== */
body.home,
body.home #page,
body.home #content,
body.home .site-content,
body.home .site-content > .ast-container{
  background: transparent;
}

body.home::before{
  content: none;
}

.ulvi-home-hero{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ulvi-home-hero__media{
  width: 100%;
  height: 100%;
}

.ulvi-home-hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* default = desktop */
.ulvi-home-hero__video--mobile{
  display: none;
}

@media (max-width: 768px){
  .ulvi-home-hero__video{
    object-position: 70% center;
  }

  .ulvi-home-hero__video--desktop{
    display: none;
  }

  .ulvi-home-hero__video--mobile{
    display: block;
  }
}

body.home #content,
body.home .site-content{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}

body.home .site-content > .ast-container{
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ==================================================
   HEADER SIZE SYSTEM — NON HOME
   ================================================== */
body:not(.home){
  --ulvi-header-h: 80px;
  --ulvi-logo-h: 50px;
}

@media (max-width: 768px){
  body:not(.home){
    --ulvi-header-h-m: 60px;
    --ulvi-logo-h-m: 40px;
  }
}
/* ==================================================
   HEADER ICON COLOR FIX
   ================================================== */

.site-header-custom .cart-link,
.site-header-custom .menu-toggle,
.site-header-custom .ulvi-bag,
.site-header-custom .ulvi-menu{
  color: #111;
}

.site-header-custom .ulvi-bag path,
.site-header-custom .ulvi-menu line{
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.site-header-custom.is-home-overlay .cart-link,
.site-header-custom.is-home-overlay .menu-toggle,
.site-header-custom.is-home-overlay .ulvi-bag,
.site-header-custom.is-home-overlay .ulvi-menu{
  color: #fff;
}
/* ==================================================
   FIX — SAFARI LARGE IPHONE MENU ICON
   ================================================== */

.site-header-custom .menu-toggle{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header-custom .ulvi-menu{
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  opacity: 1 !important;
  color: inherit;
}

.site-header-custom .ulvi-menu path{
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
}

/* ==================================================
   ULVI HEADER — ICON STABILITY FIX FINAL
   ================================================== */

/* Header yan kolonları sabit */
.site-header-custom .header-left,
.site-header-custom .header-right{
  min-width: 56px;
}

@media (max-width: 768px){
  .site-header-custom .header-left,
  .site-header-custom .header-right{
    min-width: 52px;
  }
}

/* Buton kapsayıcıları tamamen sabit */
.site-header-custom .cart-link,
.site-header-custom .menu-toggle{
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 56px !important;
  padding: 0 !important;
  line-height: 1 !important;
  overflow: hidden;
  box-sizing: border-box;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 768px){
  .site-header-custom .cart-link,
  .site-header-custom .menu-toggle{
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    flex: 0 0 52px !important;
  }
}

/* SVG ikon kutuları sabit */
.site-header-custom .ulvi-bag,
.site-header-custom .ulvi-menu{
  display: block !important;
  flex: 0 0 auto;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  opacity: 0.88 !important;
  color: currentColor;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 768px){
  .site-header-custom .ulvi-bag,
  .site-header-custom .ulvi-menu{
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    opacity: 0.9 !important;
  }
}

/* SVG elementleri kesin sabit */
.site-header-custom .ulvi-bag svg,
.site-header-custom .ulvi-menu svg{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible;
}

/* Tüm çizim elemanlarını tek yerden yönet */
.site-header-custom .ulvi-bag path,
.site-header-custom .ulvi-bag line,
.site-header-custom .ulvi-bag polyline,
.site-header-custom .ulvi-bag circle,
.site-header-custom .ulvi-bag rect,
.site-header-custom .ulvi-menu path,
.site-header-custom .ulvi-menu line,
.site-header-custom .ulvi-menu polyline,
.site-header-custom .ulvi-menu circle,
.site-header-custom .ulvi-menu rect{
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
  vector-effect: non-scaling-stroke;
}

/* Renk sistemi tek merkezden */
.site-header-custom .cart-link,
.site-header-custom .menu-toggle,
.site-header-custom .ulvi-bag,
.site-header-custom .ulvi-menu{
  color: #111 !important;
}

.site-header-custom.is-home-overlay .cart-link,
.site-header-custom.is-home-overlay .menu-toggle,
.site-header-custom.is-home-overlay .ulvi-bag,
.site-header-custom.is-home-overlay .ulvi-menu,
body.home .site-header-custom .cart-link,
body.home .site-header-custom .menu-toggle,
body.home .site-header-custom .ulvi-bag,
body.home .site-header-custom .ulvi-menu{
  color: #fff !important;
}

/* Hover çok hafif */
@media (hover:hover){
  .site-header-custom .cart-link:hover .ulvi-bag,
  .site-header-custom .menu-toggle:hover .ulvi-menu{
    opacity: 1 !important;
  }
}

/* Geçiş anında layout oynamasını azalt */
.site-header-custom,
.site-header-custom .header-inner,
.site-header-custom .header-left,
.site-header-custom .header-right,
.site-header-custom .header-center,
.site-header-custom .cart-link,
.site-header-custom .menu-toggle,
.site-header-custom .site-logo{
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}