﻿/* Compact header override — mevcut Proticaret sınıfları korunur */
header {position:sticky;top:0;z-index:1050;background:#fff;box-shadow:0 3px 20px rgba(0,0,0,.07)}
header .topbar {background:#111;color:#fff;min-height:30px}
header .topbar .row {align-items:center}
header .topbar .announcement {margin:0;text-align:center;font-size:11px;letter-spacing:.07em;line-height:30px}
header .topbar .nav-link,header .topbar .header-social-icons a {color:#fff!important;font-size:11px}
header .topbar .navbar {padding:0}
header .topbar .header-social-icons ul {margin:0;display:flex;gap:12px;list-style:none;padding:0}
header .header-middle {max-width:1440px;width:100%;padding:0 24px;margin-top:0!important;margin-bottom:0!important}
header .header-middle>.row {min-height:74px;align-items:center}
header .header-middle-left {display:flex;align-items:center}
header .logo {display:inline-flex;align-items:center}
header #logo-img {width:auto!important;max-width:180px;max-height:52px;object-fit:contain}
header .header-middle-center .header-bottom,header .header-middle-center nav {padding:0;margin:0}
header #navbarNavTop .top-categories {display:flex;align-items:center;gap:22px;flex-wrap:wrap}
header #navbarNavTop .top-categories a {font-size:13px;font-weight:600;color:#171717;text-decoration:none}
header .headder-middle-right {padding-top:0!important;padding-bottom:0!important;align-items:center;gap:12px}
header .header-middle-search {position:relative;min-width:36px;max-width:310px;flex:1;margin-left:0!important}
header .header-middle-search .row {border:1px solid #e5e5e5;border-radius:30px;overflow:visible;background:#f8f8f8;flex-wrap:nowrap}
header #txtAjaxSearch {border:0!important;background:transparent!important;box-shadow:none!important;height:40px;font-size:12px;padding:0 12px;min-width:0}
header .search-button {border:0;background:transparent;padding:8px 12px;color:#171717}
header #divAjaxContainer {position:absolute;top:100%;left:0;right:0;z-index:1200;background:#fff}
header .account-status,header .my-cart {flex:0 0 auto;position:relative}
header .account-status>.user-menu>button,header .my-cart>button {display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #eee!important;border-radius:50%!important;background:#fff!important;color:#111!important;box-shadow:none!important;padding:0!important}
header .my-cart-item {float:none!important;white-space:nowrap}
header #cart-count {font-size:11px;font-weight:700}
header .user-menu>.dropdown-menu {min-width:270px;padding:18px;right:0;left:auto}
header .my-cart>.dropdown-menu {min-width:290px;right:0;left:auto;padding:15px}
header .search-open-button {display:none}
header #up {display:none}
@media(max-width:991px){
 header .topbar-left,header .topbar-right {display:none!important}
 header .topbar .col-md-6 {flex:0 0 100%;max-width:100%}
 header .header-middle {padding:0 14px}
 header .header-middle>.row {display:flex;flex-wrap:wrap;min-height:64px}
 header .header-middle-left {order:1;flex:1 1 45%;max-width:45%;padding-right:0}
 header .headder-middle-right {order:2;flex:1 1 55%;max-width:55%;gap:8px;padding-left:0}
 header .header-middle-center {order:3;flex:0 0 100%;max-width:100%;padding:0}
 header #logo-img {max-width:140px;max-height:44px}
 header .header-middle-center .navbar {min-height:0;position:static}
 header .header-middle-center .navbar-brand {margin:0;position:absolute;left:12px;top:38px;z-index:3}
 header .header-middle-left {padding-left:48px}
 header #navbarNavTop {width:100%;padding:10px 12px;border-top:1px solid #eee}
 header #navbarNavTop .top-categories {display:block}
 header #navbarNavTop .top-categories li {padding:7px 0}
 header .header-middle-search {min-width:0;max-width:none}
 header #txtAjaxSearch {height:36px;font-size:11px}
 header .account-status>.user-menu>button,header .my-cart>button {width:36px;height:36px}
}
@media(max-width:560px){header .header-middle-search {position:absolute;left:14px;right:14px;top:100%;display:none;background:#fff;padding:8px 0}header.ay-search-active .header-middle-search {display:block}header .search-open-button {display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:17px;order:-1}header .headder-middle-right {justify-content:flex-end!important}header .header-middle-left {flex-basis:50%;max-width:50%}header .headder-middle-right {flex-basis:50%;max-width:50%}}
/* Desktop: logo, navigation and actions share a single centered row */
@media(min-width:992px){
 header .header-middle{max-width:1440px!important;width:100%!important;margin:0 auto!important;padding:0 24px!important}
 header .header-middle>.row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;min-height:76px!important;margin:0!important}
 header .header-middle-left{flex:0 0 18%!important;max-width:18%!important;min-width:0!important;padding:0 12px!important;align-self:center!important}
 header .header-middle-center{flex:1 1 0!important;max-width:none!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;align-self:center!important}
 header .header-middle-center .header-bottom,header .header-middle-center nav{width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;position:static!important}
 header .header-middle-center .navbar-brand,header .header-middle-center .categories-title{display:none!important}
 header #navbarNavTop{display:flex!important;position:static!important;width:100%!important;height:auto!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important}
 header #navbarNavTop .top-categories{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:clamp(12px,2vw,30px)!important;margin:0!important;padding:0!important;width:auto!important}
 header #navbarNavTop .top-categories>li{float:none!important;display:block!important;margin:0!important;padding:0!important;white-space:nowrap!important}
 header #navbarNavTop .top-categories>li>a{display:flex!important;align-items:center!important;padding:12px 0!important;line-height:20px!important;font-size:14px!important}
 header .headder-middle-right{flex:0 0 145px!important;max-width:145px!important;min-width:145px!important;align-self:center!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;margin:0!important;padding:0!important}
 header .header-middle-search{display:none!important}
 header .search-open-button{display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;font-size:17px!important;flex:0 0 36px!important}
 header.ay-search-active .header-middle-search{display:block!important;position:absolute!important;top:100%!important;right:24px!important;width:min(420px,calc(100vw - 48px))!important;max-width:none!important;padding:12px!important;background:#fff!important;box-shadow:0 12px 25px #0002!important;z-index:1200!important}
 header .account-status,header .my-cart{margin:0!important;padding:0!important;flex:0 0 auto!important}
 header .account-status>.user-menu>button,header .my-cart>button{width:42px!important;height:42px!important}
}
/* Top bar height */
header .topbar{min-height:32px!important}
header .topbar .announcement{line-height:32px!important}
/* Preserve full dropdown overlays */
header .header-middle,header .header-middle>.row,header .headder-middle-right{overflow:visible!important}

/* BLACKRUBY - KALICI BEYAZ FIXED HEADER */
html body header,
html body.ay-glass-home header,
html body.ay-glass-home.ay-glass-scrolled header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.025) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: box-shadow .8s ease, background-color .8s ease !important;
}
html body.br-v2-scrolled header {
  box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}
html body header .header-middle,
html body.ay-glass-home header .header-middle,
html body.ay-glass-home.ay-glass-scrolled header .header-middle {
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #eee !important;
  box-shadow: none !important;
}
/* Ana sayfada tam genişlikte beyaz şerit, içerik ortalı */
html body.ay-glass-home header .header-middle {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.ay-glass-home header .header-middle > .row {
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}
html body header .topbar,
html body.ay-glass-home header .topbar {
  background: #111 !important;
  min-height: 0 !important;
  height: 38px !important;
  max-height: 38px !important;
  opacity: 1 !important;
  overflow: hidden !important;
  transition: height .8s cubic-bezier(.22,1,.36,1),
              max-height .8s cubic-bezier(.22,1,.36,1),
              opacity .55s ease !important;
}
html body.br-v2-scrolled header .topbar {
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
}
html body header .topbar .announcement { line-height: 38px !important; }
html body header .header-bottom,
html body header .navbar,
html body header .header-middle > .row { box-shadow: none !important; }
html body header .dropdown-menu { background: #fff !important; }
html body header .dropdown-menu a { color: #111 !important; }
html body.ay-glass-home header .top-categories > li > a { color: #111 !important; text-shadow: none !important; }
#br-header-v2-spacer { display: block; width: 100%; margin: 0; padding: 0; border: 0; pointer-events: none; }
body.ay-glass-home .slider,
body.ay-glass-home .ay-fullwidth-slider { margin-top: 0 !important; }
@media (max-width: 991px) {
  html body.ay-glass-home { padding-top: 0 !important; }
}
@media (max-width: 767px) {
  html body.ay-glass-home header .header-middle > .row { padding: 0 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body header, html body header .topbar { transition: none !important; }
}

/* ===== BLACKRUBY FIXED HEADER - BIRLESTIRILMIS ===== */
/* BlackRuby: append after compact.css */
html body.br-fixed-header { padding-top: 0 !important; }
html body.br-fixed-header header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.025) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: box-shadow .8s ease !important;
}
html body.br-fixed-header header .header-middle {
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html body.br-fixed-header header .topbar {
  background: #111 !important;
  height: 38px !important;
  min-height: 0 !important;
  max-height: 38px !important;
  opacity: 1 !important;
  overflow: hidden !important;
  transition: height .8s cubic-bezier(.22,1,.36,1), max-height .8s cubic-bezier(.22,1,.36,1), opacity .55s ease !important;
}
html body.br-fixed-header.br-topbar-hidden header .topbar {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
}
html body.br-fixed-header.br-topbar-hidden header {
  box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}
html body.br-fixed-header header .header-middle > .row {
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#br-header-spacer { display: block; width: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html body.br-fixed-header header,
  html body.br-fixed-header header .topbar { transition: none !important; }
}

/* BLACKRUBY PREMIUM TOPBAR — görseldeki kompakt tasarım */
html body header .topbar.br-premium-topbar {
  height:38px!important; max-height:38px!important; min-height:0!important;
  padding:0!important; margin:0!important; background:#141414!important;
  color:#e8e8e8!important; overflow:hidden!important;
  transition:height .8s cubic-bezier(.22,1,.36,1),max-height .8s cubic-bezier(.22,1,.36,1),opacity .55s ease!important;
}
html body header .br-topbar-inner {
  box-sizing:border-box!important; width:100%!important; max-width:1440px!important;
  height:38px!important; margin:0 auto!important; padding:0 30px!important;
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  gap:20px!important; white-space:nowrap!important;
}
html body header .br-topbar-benefits,
html body header .br-topbar-links {display:flex!important;align-items:center!important;gap:28px!important;min-width:0!important;}
html body header .br-topbar-item,
html body header .br-topbar-links a,
html body header .br-topbar-link {
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  color:#e8e8e8!important;font-size:10px!important;font-weight:400!important;
  letter-spacing:0!important;line-height:1.2!important;text-decoration:none!important;
}
html body header .br-topbar-item i {font-size:12px!important;color:#eee!important;}
html body header .br-topbar-links {gap:25px!important;flex-shrink:0!important;}
html body header .br-topbar-links a:hover {color:#fff!important;text-decoration:underline!important;}
html body.br-v2-scrolled header .topbar.br-premium-topbar,
html body.br-header-scrolled header .topbar.br-premium-topbar {
  height:0!important;max-height:0!important;opacity:0!important;
  padding:0!important;border:0!important;
}
@media(max-width:991px) {
  html body header .br-topbar-inner {padding:0 14px!important;gap:12px!important;}
  html body header .br-topbar-benefits {gap:18px!important;overflow-x:auto!important;scrollbar-width:none!important;}
  html body header .br-topbar-benefits::-webkit-scrollbar {display:none!important;}
  html body header .br-topbar-links {display:none!important;}
  html body header .br-topbar-item {font-size:10px!important;flex-shrink:0!important;}
}
@media(prefers-reduced-motion:reduce) {
  html body header .topbar.br-premium-topbar {transition:none!important;}
}

/* SARAYLI - ONAYLANAN 260PX LOGO (MASAUSTU) */
@media (min-width: 992px) {
  header #logo-img {
    width: 260px !important;
    max-width: 260px !important;
    max-height: 100px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
  }
  header .header-middle-left {
    width: 290px !important;
    max-width: 290px !important;
    min-height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  header .header-middle-left .logo {
    width: auto !important;
    max-width: 100% !important;
  }
}

/* SARAYLI - ONAYLANAN MEGA MENU GECISI VE OK ISARETLERI */
@media (min-width: 992px) {
  header #navbarNavTop .top-categories > li {
    position: relative !important;
  }
  header #navbarNavTop .top-categories > li > a {
    position: relative !important;
  }
  /* Hover koprusu: menuden mega menuye geciste boslugu kapatir. */
  header #navbarNavTop .top-categories > li > a::after {
    content: "" !important;
    position: absolute !important;
    left: -12px !important;
    right: -12px !important;
    top: 100% !important;
    height: 35px !important;
    background: transparent !important;
  }
  /* Bootstrap dropdown okunu geri getir. */
  header #navbarNavTop .top-categories > li > a.dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 6px !important;
    vertical-align: 3px !important;
    border-top: 4px solid currentColor !important;
    border-right: 4px solid transparent !important;
    border-bottom: 0 !important;
    border-left: 4px solid transparent !important;
    background: none !important;
  }
  /* Ok kullanilan menuler icin kopruyu li seviyesine tasi. */
  header #navbarNavTop .top-categories > li:has(> .dropdown-menu)::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    left: -12px !important;
    right: -12px !important;
    height: 35px !important;
    background: transparent !important;
    pointer-events: auto !important;
  }
  header,
  header .header-middle,
  header .header-middle > .row,
  header .header-middle-center,
  header .header-bottom,
  header .navbar,
  header #navbarNavTop {
    overflow: visible !important;
  }
}



/* Sarayli V11 - approved desktop layout */
@media(min-width:992px){
html body header.sy-three-tier {position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;background:#fff!important;z-index:99999!important;}
html body header.sy-three-tier .header-middle {width:100%!important;max-width:1800px!important;margin:0 auto!important;padding:0 30px!important;overflow:visible!important;}
html body header.sy-three-tier .header-middle > .row {position:relative!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:90px auto!important;grid-template-areas:"search logo actions" "nav nav nav";max-width:100%!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;gap:0!important;align-items:center!important;}
html body header.sy-three-tier .header-middle-left {grid-area:logo;position:static!important;width:100%!important;max-width:100%!important;min-height:0!important;height:90px!important;padding:0!important;margin:0!important;display:flex!important;justify-content:center!important;align-items:center!important;}
html body header.sy-three-tier .header-middle-left .logo {position:static!important;transform:none!important;margin:0!important;}
html body header.sy-three-tier #logo-img {width:250px!important;max-width:250px!important;max-height:75px!important;object-fit:contain!important;}
html body header.sy-three-tier .headder-middle-right {grid-area:actions;position:static!important;transform:none!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:18px!important;}
html body header.sy-three-tier .search-open-button {display:none!important;}
html body header.sy-three-tier .header-middle-center {grid-area:nav;width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border-top:1px solid #eee!important;}
html body header.sy-three-tier .header-middle-center .header-bottom,html body header.sy-three-tier .header-middle-center .navbar,html body header.sy-three-tier #navbarNavTop {width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;}
html body header.sy-three-tier #navbarNavTop .top-categories {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;width:100%!important;height:auto!important;min-height:0!important;gap:0 14px!important;padding:0!important;margin:0!important;}
html body header.sy-three-tier #navbarNavTop .top-categories > li {margin:0!important;padding:0!important;height:auto!important;min-height:0!important;}
html body header.sy-three-tier #navbarNavTop .top-categories > li > a {font-size:12px!important;line-height:20px!important;padding:13px 0!important;margin:0!important;white-space:nowrap!important;letter-spacing:-.15px!important;}
html body header.sy-three-tier .sy-search-slot {grid-area:search;min-width:0;position:relative;z-index:3;display:flex!important;align-items:center!important;align-self:center!important;justify-content:flex-start!important;}
html body header.sy-three-tier .sy-search-slot .header-middle-search {display:block!important;position:relative!important;inset:auto!important;transform:none!important;width:340px!important;max-width:100%!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
html body header.sy-three-tier .sy-search-slot .header-middle-search > .row {display:flex!important;align-items:center!important;flex-wrap:nowrap!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #dedede!important;border-radius:24px!important;background:#f7f7f7!important;overflow:visible!important;}
html body header.sy-three-tier .sy-search-slot .twitter-typeahead {display:block!important;position:relative!important;width:100%!important;background:transparent!important;}
html body header.sy-three-tier .sy-search-slot .tt-hint {visibility:hidden!important;opacity:0!important;pointer-events:none!important;background:transparent!important;}
html body header.sy-three-tier .sy-search-slot #txtAjaxSearch {position:relative!important;z-index:2!important;display:block!important;width:100%!important;height:42px!important;padding:0 16px!important;margin:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#222!important;font-size:13px!important;}
html body header.sy-three-tier .sy-search-slot #txtAjaxSearch::placeholder {color:#777!important;opacity:1!important;}
html body header.sy-three-tier .sy-search-slot #btnSearch {display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:42px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
html body header.sy-three-tier .sy-search-slot #btnSearch i {color:#102341!important;font-size:17px!important;}
html body header.sy-three-tier .sy-search-slot .tt-menu {top:calc(100% + 6px)!important;left:0!important;min-width:100%!important;z-index:99999!important;background:#fff!important;}
html body #br-header-spacer,html body #br-header-v2-spacer {height:0!important;display:none!important;}
html body.sy-header-v11-ready {padding-top:var(--sy-header-height,170px)!important;}
}
@media(max-width:991px){
header.sy-three-tier .sy-search-slot {display:contents;}
header.sy-three-tier .sy-search-slot .header-middle-search {display:none!important;position:absolute!important;top:100%!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;background:#fff!important;padding:8px!important;z-index:1200!important;}
header.sy-three-tier.ay-search-active .sy-search-slot .header-middle-search {display:block!important;}
header.sy-three-tier .headder-middle-right .search-open-button {display:flex!important;}
}

/* V12 - desktop sticky menu, smooth collapse and hover underline fix */
@media (min-width:992px) {
 html body header.sy-three-tier #navbarNavTop .top-categories > .nav-item > a span {border-bottom:0!important;}
 html body header.sy-three-tier .topbar {max-height:45px!important;opacity:1;overflow:hidden;transition:max-height .3s ease,opacity .25s ease!important;}
 html body header.sy-three-tier .header-middle-left,
 html body header.sy-three-tier .headder-middle-right,
 html body header.sy-three-tier .sy-search-slot {transition:opacity .25s ease,transform .3s ease!important;}
 html body header.sy-three-tier .header-middle > .row {transition:grid-template-rows .3s cubic-bezier(.4,0,.2,1)!important;}
 html body header.sy-three-tier.sy-menu-sticky {background:#fff!important;height:auto!important;min-height:0!important;box-shadow:0 3px 12px rgba(0,0,0,.07)!important;}
 html body header.sy-three-tier.sy-menu-sticky .topbar {display:block!important;max-height:0!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;opacity:0!important;pointer-events:none!important;}
 html body header.sy-three-tier.sy-menu-sticky .header-middle {margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;height:auto!important;min-height:0!important;}
 html body header.sy-three-tier.sy-menu-sticky .header-middle > .row {grid-template-rows:0px auto!important;}
 html body header.sy-three-tier.sy-menu-sticky .header-middle-left,
 html body header.sy-three-tier.sy-menu-sticky .headder-middle-right,
 html body header.sy-three-tier.sy-menu-sticky .sy-search-slot {display:flex!important;opacity:0!important;transform:translateY(-20px)!important;pointer-events:none!important;}
 html body header.sy-three-tier .header-middle-center {grid-row:2!important;}
 html body header.sy-three-tier.sy-menu-sticky .header-bottom {margin:0!important;padding:0!important;border:0!important;width:100%!important;}
 html body header.sy-three-tier #navbarNavTop .top-categories > li > a {transition:height .3s ease,min-height .3s ease,color .15s ease!important;}
 html body header.sy-three-tier.sy-menu-sticky #navbarNavTop .top-categories > li > a {height:52px!important;min-height:52px!important;}
}
