/* RCS iki satırlı header (Trendyol benzeri): 1. satır logo + arama + Giriş yap/Sepetim, 2. satır kategoriler. Mobil: hamburger+logo+sepet, altında arama. */

/* ===== Üst şerit: küçük bağlantılar ===== */
.rcs-topbar__links{display:flex;align-items:center;gap:18px;margin:0 8px 0 0;padding:0;list-style:none}
.rcs-topbar__links li{margin:0}
.rcs-topbar__links a{color:#cbd5e1;font-size:12.5px;font-weight:500;text-decoration:none}
.rcs-topbar__links a:hover{color:#fff}
@media (max-width:991px){.rcs-topbar__links{display:none}}

/* ===== Ortak ===== */
.rcs-hdr{position:relative;z-index:90;background:#fff}
.rcs-hdr__in{max-width:var(--rcs-wrap,1400px);margin:0 auto;padding:0 var(--rcs-gut,24px)}
.rcs-hdr__logo{margin:0}
.rcs-hdr__logo .custom-logo-link{display:block;line-height:0}
.rcs-hdr__logo img{display:block;width:auto;height:auto;max-height:50px}
.rcs-hdr__form{position:relative;display:flex;align-items:center;margin:0;padding:0}
.rcs-hdr__form input.search-field{display:block;width:100%;height:46px;margin:0;padding:0 56px 0 20px;border:1.5px solid transparent;border-radius:999px;background:#f1f3f6;color:var(--rcs-ink);font-size:15px;line-height:1.2;box-shadow:none;transition:background .15s,border-color .15s,box-shadow .15s}
.rcs-hdr__form input.search-field::placeholder{color:#7b8798;opacity:1}
.rcs-hdr__form input.search-field:focus{outline:0;background:#fff;border-color:var(--rcs-primary);box-shadow:0 0 0 3px rgba(26,95,208,.12)}
.rcs-hdr__form .rcs-hdr__go{position:absolute !important;right:5px;top:50%;transform:translateY(-50%) !important;display:flex;align-items:center;justify-content:center;width:36px !important;height:36px !important;min-width:0 !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:var(--rcs-primary) !important;color:#fff !important;box-shadow:none !important}
.rcs-hdr__form .rcs-hdr__go:hover{background:var(--rcs-primary-d) !important}
.rcs-hdr__form .rcs-hdr__go .rcs-i{width:18px;height:18px}
/* canlı arama sonuçları: kutu genişliğinde, kart görünümlü */
.rcs-hdr__form .botiga-ajax-search__wrapper{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:300;width:auto;max-height:72vh;overflow:auto;background:#fff;border:1px solid var(--rcs-line);border-radius:14px;box-shadow:0 18px 44px rgba(15,23,42,.18)}
.rcs-hdr__act{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;color:var(--rcs-ink) !important;font-size:15px;font-weight:600;line-height:1.1;text-decoration:none !important;white-space:nowrap;transition:background .15s,color .15s}
.rcs-hdr__act:hover{background:#f1f5fb;color:var(--rcs-primary) !important}
.rcs-hdr__act .rcs-i{width:24px;height:24px}
.rcs-hdr__cart-ic{position:relative;display:inline-flex}
.rcs-hdr__count{position:absolute;top:-7px;right:-9px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e11d48;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.rcs-hdr__count[hidden]{display:none}
.rcs-hdr__secure{display:none}

/* ===== Masaüstü ===== */
.rcs-hdr-spacer{display:block}
.rcs-hdr--d .rcs-hdr__r1 .rcs-hdr__in{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:28px;min-height:78px}
.rcs-hdr--d .rcs-hdr__search{width:100%;max-width:700px;margin:0 auto}
.rcs-hdr--d .rcs-hdr__acts{display:flex;align-items:center;gap:4px}
.rcs-hdr__r2{border-top:1px solid #eef0f3;border-bottom:1px solid var(--rcs-line);background:#fff}
.rcs-hdr-menu{display:flex;align-items:center;flex-wrap:nowrap;gap:0;margin:0;padding:0;list-style:none}
.rcs-hdr-menu > li{position:relative;margin:0}
.rcs-hdr-menu > li > a{display:flex;align-items:center;gap:6px;height:48px;margin-bottom:-1px;padding:0 16px;border-bottom:3px solid transparent;color:var(--rcs-ink);font-size:15px;font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;transition:color .15s,border-color .15s}
.rcs-hdr-menu > li:hover > a,.rcs-hdr-menu > li:focus-within > a{color:var(--rcs-primary)}
.rcs-hdr-menu > li.current-menu-item > a,.rcs-hdr-menu > li.current-menu-ancestor > a,.rcs-hdr-menu > li.current-menu-parent > a,.rcs-hdr-menu > li.current-product_cat-ancestor > a{color:var(--rcs-primary);border-bottom-color:var(--rcs-primary)}
.rcs-hdr-menu > li.menu-item-has-children > a::after{content:"";width:8px;height:8px;margin:-3px 0 0 3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.rcs-hdr-menu > li.rcs-new > a::after{content:var(--rcs-new-label,"New");margin:0 0 0 2px;padding:3px 7px;border:0;border-radius:999px;background:#e11d48;color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.04em;line-height:1;text-transform:uppercase;transform:none;width:auto;height:auto}
.rcs-hdr-menu .sub-menu{position:absolute;left:0;top:100%;z-index:120;display:block;min-width:240px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--rcs-line);border-radius:12px;box-shadow:0 14px 34px rgba(15,23,42,.14);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s,transform .15s,visibility .15s}
.rcs-hdr-menu > li:hover > .sub-menu,.rcs-hdr-menu > li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.rcs-hdr-menu .sub-menu li{margin:0}
.rcs-hdr-menu .sub-menu a{display:block;padding:10px 14px;border-radius:8px;color:var(--rcs-ink);font-size:15px;font-weight:500;line-height:1.3;text-decoration:none}
.rcs-hdr-menu .sub-menu a:hover{background:#f1f5fb;color:var(--rcs-primary)}
.rcs-hdr-menu .sub-menu li.current-menu-item > a{color:var(--rcs-primary);font-weight:700}
@media (max-width:1280px){ .rcs-hdr-menu > li > a{padding:0 12px;font-size:14.5px} }
@media (max-width:1150px){ .rcs-hdr-menu > li > a{padding:0 9px;font-size:14px;gap:4px} .rcs-hdr--d .rcs-hdr__r1 .rcs-hdr__in{gap:18px} .rcs-hdr__act{padding:8px} }

/* kaydırınca: kompakt, yalnızca 1. satır sabit (JS: rcs-hdr.js; yer tutucu sayfanın zıplamasını önler) */
.rcs-hdr--d.is-fixed{position:fixed;top:0;left:0;right:0;z-index:95;box-shadow:0 6px 20px rgba(15,23,42,.10)}
.rcs-hdr--d.is-fixed .rcs-hdr__r2{display:none}
.rcs-hdr--d.is-fixed .rcs-hdr__r1 .rcs-hdr__in{min-height:62px}
.rcs-hdr--d.is-fixed .rcs-hdr__logo img{max-height:38px}
.rcs-hdr--d.is-fixed .rcs-hdr__form input.search-field{height:42px}
body.admin-bar .rcs-hdr--d.is-fixed{top:32px}

/* ===== Mobil ===== */
@media (max-width:991px){
  .rcs-hdr-spacer{display:none}
  .rcs-hdr--m{border-bottom:1px solid var(--rcs-line)}
  .rcs-hdr--m .rcs-hdr__m1{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:4px;min-height:58px;padding:6px 10px}
  .rcs-hdr--m .rcs-hdr__logo{text-align:center}
  .rcs-hdr--m .rcs-hdr__logo .custom-logo-link{display:inline-block}
  .rcs-hdr--m .rcs-hdr__logo img{max-height:32px}
  .rcs-hdr--m .menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;color:var(--rcs-ink)}
  .rcs-hdr--m .menu-toggle svg{width:26px;height:26px}
  .rcs-hdr--m .rcs-hdr__macts{justify-self:end}
  .rcs-hdr--m .rcs-hdr__act{padding:10px}
  .rcs-hdr--m .rcs-hdr__m2{padding:0 12px 12px}
  .rcs-hdr--m .rcs-hdr__form input.search-field{height:44px;padding:0 52px 0 18px;font-size:16px}
}

/* ===== Ödeme / teşekkürler: sadeleşmiş başlık (logo + "Güvenli ödeme"; menü, arama, hesap, sepet gizli) ===== */
body.rcs-checkout-page .rcs-hdr__search,body.rcs-checkout-page .rcs-hdr__acts,body.rcs-checkout-page .rcs-hdr__r2,body.rcs-checkout-page .rcs-hdr__m2,body.rcs-checkout-page .rcs-hdr__burger,body.rcs-checkout-page .rcs-hdr__macts{display:none !important}
body.rcs-checkout-page .rcs-hdr__secure{display:inline-flex;align-items:center;gap:8px;color:var(--rcs-ink);font-size:15px;font-weight:600;white-space:nowrap}
body.rcs-checkout-page .rcs-hdr__secure .rcs-i{width:22px;height:22px;color:var(--rcs-primary)}
body.rcs-checkout-page .rcs-hdr--d .rcs-hdr__r1 .rcs-hdr__in{display:flex;justify-content:space-between}
body.rcs-checkout-page .rcs-hdr--d.is-fixed{position:static;box-shadow:none}
body.rcs-checkout-page .rcs-hdr--m .rcs-hdr__m1{display:flex;justify-content:space-between;padding:6px 16px}
body.rcs-checkout-page .rcs-hdr--m .rcs-hdr__secure{font-size:14px}
/* Botiga'nın kendi ok simgesi gizli (kendi okumuz ::after) */
.rcs-hdr-menu .dropdown-symbol,.rcs-hdr-menu .botiga-dropdown-link .ws-svg-icon{display:none !important}
.rcs-hdr-menu .sub-menu .dropdown-symbol{display:none !important}
