/* ================================================================
   header.dev.css — modern, temiz, hizalı
   Referans: hepsiburada tarzı düzen, beyaz bg, eşit kutular
   ================================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700&display=swap");

/* ── Token'lar — site (indexV3 / stylesheets) ile uyumlu ── */
.hdr {
  --c-bg: #fff;
  --c-text: #3e3c3c;
  --c-muted: #646464;
  --c-light: #919191;
  --c-border: #e5e5e5;
  --c-accent: #6a1d5a;
  --c-accent-soft: #f5eef3;
  --c-cta: #6a1d5a;
  --c-cta-hover: #551849;
  --c-cart: #692059;
  --c-cart-hover: #551a4a;
  --c-pink: #ee6495;
  --c-green: #68ba59;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  position: sticky;
  top: 0;
  z-index: 9000;
  box-shadow: var(--shadow-sm);
  line-height: 1.45;
  min-height: 0;
  height: auto !important;
}

.hdr a {
  color: inherit;
  text-decoration: none;
}

.hdr *,
.hdr *::before,
.hdr *::after {
  box-sizing: border-box;
}

.hdr__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================================
   HELLOBAR — üst duyuru şeridi
   ================================================================ */
.hdr__hellobar {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--hb-from, #0b4f3a), var(--hb-to, #7ed957));
  line-height: 0;
}

.hdr__hellobar-viewport {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  line-height: normal;
}

.hdr__hellobar-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  background: linear-gradient(90deg, var(--hb-from, #0b4f3a), var(--hb-to, #7ed957));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 1;
  overflow: hidden;
}

.hdr__hellobar-slide:not(.is-active) {
  height: 0;
  padding: 0;
  margin: 0;
}

.hdr__hellobar-slide.is-active {
  height: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hdr__hellobar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1280px;
  width: 100%;
  margin: 0;
  padding: 8px 20px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.hdr__hellobar-slide--text-white .hdr__hellobar-inner,
.hdr__hellobar-slide--text-white .hdr__hellobar-text,
.hdr__hellobar-slide--text-white a.hdr__hellobar-inner {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hdr__hellobar-slide--text-black .hdr__hellobar-inner,
.hdr__hellobar-slide--text-black .hdr__hellobar-text,
.hdr__hellobar-slide--text-black a.hdr__hellobar-inner {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

.hdr__hellobar-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.hdr__hellobar-slide--text-white .hdr__hellobar-badge {
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hdr__hellobar-slide--text-black .hdr__hellobar-badge {
  background: rgba(255, 255, 255, 0.78);
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

.hdr__hellobar-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .hdr__hellobar-inner {
    gap: 8px;
    padding: 8px 14px;
  }

  .hdr__hellobar-badge {
    font-size: 12px;
    padding: 2px 8px;
  }

  .hdr__hellobar-text {
    font-size: 13px;
    text-align: left;
  }
}

/* ================================================================
   TOPBAR
   ================================================================ */
.hdr__topbar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
}

.hdr__topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  height: auto;
  padding: 6px 0;
  gap: 16px;
}

.hdr__topbar-left,
.hdr__topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hdr__topbar-left a,
.hdr__topbar-right a {
  color: var(--c-muted);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.hdr__topbar-left a:hover,
.hdr__topbar-right a:hover {
  color: var(--c-accent);
  background: #fff;
}

.hdr__topbar-sep {
  width: 1px;
  height: 14px;
  background: var(--c-border);
  margin: 0 4px;
}

/* ================================================================
   MAIN ROW — logo | search | butonlar
   ================================================================ */
.hdr__main {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}

.hdr__main-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  grid-template-areas: "logo search actions";
  align-items: center;
  gap: 20px 24px;
  min-height: 0;
  height: auto;
  padding: 12px 0;
}

/* Mobil ikon butonları — hamburger + mobil aksiyonlar */
.hdr__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: var(--c-accent);
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.15s, box-shadow 0.15s, transform 0.05s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hdr__icon-btn:hover {
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hdr__icon-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hdr__icon-btn i {
  display: block;
  font-size: 17px;
  line-height: 1;
  width: 1em;
  height: 1em;
  text-align: center;
}

/* Eski global .empty-button / .black-button ikon stillerini header'da sıfırla */
.hdr .hdr__icon-btn i,
.hdr .hdr__act i {
  float: none;
  margin-right: 0;
}

.hdr .hdr__icon-btn.empty-button,
.hdr .hdr__icon-btn.black-button,
.hdr .hdr__icon-btn.white-button {
  padding: 0;
  border: none;
  font-weight: inherit;
  display: inline-flex;
}

.hdr .hdr__act.empty-button,
.hdr .hdr__act.black-button,
.hdr .hdr__act.white-button {
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 12px;
  color: var(--c-text);
  background: #fff;
}

.hdr .hdr__act--cart.black-button {
  background: #692059;
  border-color: #692059;
  color: #fff;
}

/* Mobil hamburger — masaüstünde gizli */
.hdr__nav-toggle {
  display: none;
}

.hdr__nav-toggle.hdr__icon-btn {
  color: var(--c-text);
}

.hdr__nav-toggle.hdr__icon-btn i {
  color: var(--c-accent);
}

/* Mobil: logo satırında aksiyonlar */
.hdr__mobile-actions {
  display: none;
  grid-area: mobile-actions;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.hdr__mobile-act.hdr__icon-btn i {
  color: var(--c-accent);
}

.hdr__mobile-act--cart.hdr__icon-btn {
  background: linear-gradient(145deg, #7a2468, var(--c-cart));
  color: #fff;
  box-shadow: 0 2px 6px rgba(105, 32, 89, 0.28), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.hdr__mobile-act--cart.hdr__icon-btn i {
  color: #fff;
}

.hdr__mobile-act--cart.hdr__icon-btn:hover {
  background: linear-gradient(145deg, #692059, var(--c-cart-hover));
  box-shadow: 0 3px 10px rgba(105, 32, 89, 0.32);
}

.hdr__mobile-act-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ee6495;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hdr__mobile-act-badge[hidden] {
  display: none !important;
}

/* Logo */
.hdr__logo {
  grid-area: logo;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--c-accent);
  white-space: nowrap;
  line-height: 1.15;
  padding-right: 8px;
  align-self: center;
}

.hdr__logo small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin-top: 3px;
  line-height: 1.2;
}

/* Search */
.hdr__search {
  grid-area: search;
  position: relative;
  max-width: 580px;
  width: 100%;
}

.hdr__search-form {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  height: 50px;
  border: 2px solid #d7d3d3;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.hdr__search-form:focus-within {
  border-color: var(--c-accent);
}

.hdr__search-icon {
  display: flex;
  align-items: center;
  padding: 0 0 0 12px;
  color: var(--c-light);
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.hdr__search-form .search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
  color: #000;
  min-height: 50px;
  height: 50px;
  line-height: 1.35;
  outline: none;
}

.hdr__search-form .search::placeholder {
  color: #bbb;
}

.hdr__search-form ._search {
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 18px;
  border: 0;
  background: var(--c-cta);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s;
}

.hdr__search-form ._search:hover {
  background: var(--c-cta-hover);
}

/* Search results dropdown */
.hdr .results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12000;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.hdr .results > span:first-child {
  font-size: 12px;
  color: var(--c-muted);
  display: block;
  margin-bottom: 8px;
}

.hdr .results ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
}

.hdr .results li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--c-text);
  transition: background 0.15s;
}

.hdr .results li a:hover {
  background: var(--c-accent-soft);
}

.hdr .results li img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--c-border);
}

.hdr .results > span:last-child {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
}

.hdr .results > span:last-child a {
  color: var(--c-accent);
  font-weight: 700;
}

/* Action buttons — ayrı kutular, gap; kompakt yükseklik */
.hdr__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 10px;
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.hdr__act {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.15;
  box-sizing: border-box;
}

.hdr__act i {
  font-size: 15px;
  color: var(--c-accent);
  flex-shrink: 0;
  line-height: 1;
}

.hdr__act:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-color: #d7d3d3;
}

.hdr__act-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  line-height: 1.1;
  text-align: left;
}

.hdr__act-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1;
  margin-top: 0;
  letter-spacing: 0.01em;
}

.hdr__act--cart {
  background: #692059;
  color: #fff;
  border-color: #692059;
  padding: 0 15px;
}

.hdr__act--cart i {
  color: #fff;
}

.hdr__act--cart .hdr__act-text {
  color: #fff;
}

.hdr__act--cart .hdr__act-text small {
  color: rgba(255, 255, 255, 0.85);
}

.hdr__act--cart:hover {
  background: var(--c-cart-hover);
  color: #fff;
  border-color: var(--c-cart-hover);
}

.hdr__act--cart [data-basketnum] {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
}

/* Sepet: tek satır */
.hdr__act--cart .hdr__act-text {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-weight: 700;
  line-height: 1.2;
}

/* ================================================================
   PALETTE
   ================================================================ */
.hdr__palette {
  height: 4px;
  display: flex;
}

.hdr__palette span {
  flex: 1;
}

/* indexV3 palette şeridi ile uyum */
.hdr__palette span:nth-child(1) { background: #be102d; }
.hdr__palette span:nth-child(2) { background: #68ba59; }
.hdr__palette span:nth-child(3) { background: #6a1d5a; }
.hdr__palette span:nth-child(4) { background: #ee6495; }
.hdr__palette span:nth-child(5) { background: #fde04a; }

/* ================================================================
   MENU — eşit kutular, dikey ayraçlar
   ================================================================ */
/* Mobil çekmece üst başlık — sadece dar ekranda */
.hdr__drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  background: #fff;
  flex-shrink: 0;
}

.hdr__drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.hdr__drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.hdr__drawer-close:hover {
  background: #eee;
  color: var(--c-text);
}

.hdr__drawer-brands {
  display: none;
}

.hdr__drawer-foot {
  display: none;
}

.hdr__drawer-topbar {
  display: none;
}

.hdr__mega-cats-chevron {
  display: none;
}

.hdr__backdrop {
  display: none;
}

.hdr__nav {
  background: #f5f5f5;
  border-bottom: 1px solid var(--c-border);
  overflow: visible;
}

.hdr__nav-inner {
  min-height: 0;
}

.hdr__menu {
  overflow: visible;
}

.hdr__menu > ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  min-height: 0;
}

.hdr__menu-item {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
}

.hdr__menu-item:last-child {
  border-right: 0;
}

/* Tüm satır aynı yükseklik; tek/çok satır metin dikey ortada */
.hdr__menu-item > a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
  transition: color 0.15s, background 0.15s;
  line-height: 1.35;
  min-height: 52px;
  gap: 6px;
}

.hdr__menu-item > a span {
  display: block;
  max-width: 100%;
}

.hdr__menu-item > a:hover,
.hdr__menu-item:hover > a {
  color: var(--c-accent);
  background: #fff;
}

.hdr__menu-item--cat > a {
  font-weight: 700;
  color: var(--c-text);
}

.hdr__menu-item--cat > a i {
  color: var(--c-accent);
  flex-shrink: 0;
}

.hdr__menu-item--dark > a {
  color: var(--c-text);
  font-weight: 700;
}

/* ================================================================
   MEGA PANELS
   ================================================================ */
/* Tetikleyiciye sola yaslı değil: panel, li ortasına göre hizalanır (sağda taşmayı azaltır) */
.hdr__mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex: none;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 10050;
  max-width: calc(100vw - 24px);
}

.hdr__menu-item:hover > .hdr__mega {
  display: block;
}

/* Kategoriler mega: flex zinciri + scroll için block yerine flex (yukarıdaki kuralı ezer) */
.hdr__menu-item:hover > .hdr__mega.hdr__mega--cats {
  display: flex;
  flex-direction: column;
}

/* — Kategoriler — yalnızca bu blok; diğer mega stillerinden ayrı (sol: ana, sağ: sabit alt alan) — */
.hdr__menu-item--cat > .hdr__mega--full {
  left: 0;
  right: auto;
  transform: none;
  inset-inline-start: 0;
  inset-inline-end: auto;
}

.hdr__mega--full {
  width: min(640px, calc(100vw - 24px));
  padding: 0;
}

/* display burada OLMAMALI — .hdr__mega { display:none } ile çakışıp menüyü sürekli açar;
   flex yalnızca .hdr__menu-item:hover > .hdr__mega.hdr__mega--cats içinde */
.hdr__mega--cats {
  --cats-sidebar-w: 220px;
  max-height: min(75vh, 480px);
  height: min(75vh, 480px);
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.hdr__mega-cats-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hdr__mega-cats-top {
  flex-shrink: 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.hdr__mega-cats-search {
  position: relative;
  display: block;
  margin: 0;
}

.hdr__mega-cats-search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9a9a9a;
  pointer-events: none;
}

.hdr__mega-cats-search-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 14px 11px 42px;
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  outline: none;
}

.hdr__mega-cats-search-input:focus {
  border-color: #ccc;
  background: #fff;
}

.hdr__mega-cats-body {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.hdr__mega-cats-browse {
  flex: 1 1 0%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.hdr__mega-cats-browse[hidden] {
  display: none !important;
}

.hdr__mega-cats-sidebar {
  width: var(--cats-sidebar-w);
  flex: 0 0 var(--cats-sidebar-w);
  align-self: stretch;
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
  border-right: 1px solid #e8e8e8;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  max-height: 100%;
  touch-action: pan-y;
}

.hdr__mega-cats-search-view {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 14px 14px;
  box-sizing: border-box;
  touch-action: pan-y;
}

.hdr__mega-cats-search-view[hidden] {
  display: none !important;
}

.hdr__mega-cats-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hdr__mega-cats-results-empty {
  margin: 16px 4px;
  font-size: 14px;
  color: #777;
  text-align: center;
}

.hdr__mega-cats-result-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #2a2a2a;
  background: #f5f5f5;
  transition: background 0.15s ease;
}

.hdr__mega-cats-result-link:hover {
  background: #ececec;
}

.hdr__mega-cats-result-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}

.hdr__mega-cats-result-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.hdr__mega-cats-result-parent {
  font-size: 12px;
  color: #666;
}

.hdr__mega-cats-item {
  position: static;
}

.hdr__mega-cats-parent {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 9px 12px;
  margin: 2px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
  text-decoration: none;
  line-height: 1.35;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  text-align: left;
  width: calc(100% - 16px);
  box-sizing: border-box;
}

  button.hdr__mega-cats-parent {
    border: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .hdr__mega-cats-parent--toggle {
    cursor: pointer;
  }

.hdr__mega-cats-parent:hover,
.hdr__mega-cats-item:hover > .hdr__mega-cats-parent,
.hdr__mega-cats-item:focus-within > .hdr__mega-cats-parent {
  background: #ececec;
  color: #111;
}

.hdr__mega-cats-parent-txt {
  flex: 1;
  min-width: 0;
}

.hdr__mega-cats-parent--sale {
  color: #b71c1c;
}

/* Sağ sabit alan: hangi satır hover ise o panel */
.hdr__mega-cats-panel {
  position: absolute;
  left: var(--cats-sidebar-w);
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.hdr__mega-cats-item:hover .hdr__mega-cats-panel,
.hdr__mega-cats-panel:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hdr__mega-cats-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 8px;
}

.hdr__mega-cats-subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hdr__mega-cats-sub {
  display: block;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 400;
  color: #5c5c5c;
  text-decoration: none;
  line-height: 1.4;
  border-radius: 4px;
  transition: color 0.12s ease, background 0.12s ease;
}

.hdr__mega-cats-sub:hover {
  color: #1a1a1a;
  background: #f7f7f7;
}

.hdr__mega-cats-panel-foot {
  flex-shrink: 0;
  padding: 10px 16px 14px;
  border-top: 1px solid #ececec;
  background: #fff;
}

.hdr__mega-cats-showall {
  display: inline-block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #e85d04;
  text-decoration: none;
  border-radius: 999px;
  background: #fff0e8;
  transition: background 0.15s ease, color 0.15s ease;
}

.hdr__mega-cats-showall:hover {
  background: #ffe4d4;
  color: #c2410c;
}

.hdr__mega-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.hdr__mega-title--sale {
  color: #d32f2f;
}

/* — Üst menü altı: dar panel, en fazla 3 sütun — */
.hdr__mega--dropdown {
  width: min(520px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}

.hdr__mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  margin: 0;
  border-bottom: 1px solid var(--c-border);
  background: #fafafa;
  box-sizing: border-box;
}

.hdr__mega-head-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.hdr__mega-all {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.hdr__mega-all:hover {
  background: #fff;
  border-color: var(--c-border);
}

.hdr__mega-subs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  padding: 14px 16px 16px;
  box-sizing: border-box;
}

.hdr__mega-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  white-space: normal;
  hyphens: auto;
  line-height: 1.35;
  min-height: 2.7em;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  text-align: center;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.hdr__mega-link:hover {
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-color: #d7d3d3;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hdr__main-row {
    gap: 16px;
  }

  .hdr__search {
    max-width: none;
  }
}

@media (min-width: 861px) {
  .hdr__drawer-head,
  .hdr__drawer-brands,
  .hdr__drawer-foot {
    display: none !important;
  }

  .hdr__nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    max-height: none;
    height: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
    overflow: visible;
    background: #f5f5f5;
    border-bottom: 1px solid var(--c-border);
    box-shadow: none;
    border-radius: 0;
  }

  .hdr__nav-inner {
    overflow: visible;
    padding-bottom: 0;
  }

  .hdr__nav-menu-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .hdr__menu > ul {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .hdr__menu-item {
    flex: 1 1 0;
    width: auto;
    border-right: 1px solid var(--c-border);
    border-bottom: 0;
    order: 0;
  }

  .hdr__menu-item > a {
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    font-size: 12px;
    min-height: 52px;
    background: transparent;
    border-bottom: 0;
  }

  .hdr__menu-item > a::after {
    content: none;
  }

  .hdr__menu-item--cat > a {
    display: flex !important;
  }

  .hdr__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-accent);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    background: #fff;
  }

  .hdr__menu-item:hover > .hdr__mega {
    display: block;
  }

  .hdr__menu-item:hover > .hdr__mega.hdr__mega--cats {
    display: flex;
    flex-direction: column;
  }

  .hdr__menu-item--cat > .hdr__mega--full {
    left: 0;
    right: auto;
    transform: none;
    width: min(640px, calc(100vw - 24px));
  }

  .hdr__mega--dropdown {
    width: min(520px, calc(100vw - 24px));
  }

  .hdr__mega--cats {
    max-height: min(75vh, 480px);
    height: min(75vh, 480px);
    overflow: hidden;
  }

  .hdr__mega-cats-top {
    display: block;
  }

  .hdr__mega-cats-body {
    flex-direction: row;
    overflow: hidden;
  }

  .hdr__mega-cats-browse {
    width: auto;
    overflow: hidden;
  }

  .hdr__mega-cats-sidebar {
    flex: 0 0 var(--cats-sidebar-w, 220px);
    width: var(--cats-sidebar-w, 220px);
    max-width: var(--cats-sidebar-w, 220px);
    max-height: none;
    border-right: 1px solid #e8e8e8;
    border-bottom: 0;
    padding-bottom: 0;
    overflow-y: auto;
    background: #fff;
  }

  .hdr__mega-cats-item {
    display: block;
    border-bottom: 0;
  }

  .hdr__mega-cats-parent {
    width: auto;
    margin: 2px 8px;
    padding: 9px 12px;
    background: transparent;
    border-radius: 10px;
  }

  .hdr__mega-cats-chevron {
    display: none !important;
  }

  .hdr__mega-cats-panel {
    position: absolute;
    left: var(--cats-sidebar-w, 220px);
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
  }

  .hdr__mega-cats-item.is-expanded > .hdr__mega-cats-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .hdr__mega-cats-item:hover .hdr__mega-cats-panel,
  .hdr__mega-cats-panel:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hdr__mega-cats-search-view[hidden] {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .hdr__topbar--desktop {
    display: none !important;
  }

  .hdr__inner {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .hdr__main-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle logo mobile-actions"
      "search search search";
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px 12px;
    align-items: center;
  }

  .hdr__nav-toggle.hdr__icon-btn {
    display: inline-flex;
    grid-area: toggle;
  }

  .hdr__logo {
    font-size: 20px;
    justify-self: start;
    min-width: 0;
  }

  .hdr__mobile-actions {
    display: flex;
    grid-area: mobile-actions;
    flex-shrink: 0;
  }

  .hdr__actions--hide-mobile {
    display: none !important;
  }

  .hdr__search-form {
    min-height: 46px;
    height: auto;
  }

  .hdr__search-form .search {
    min-height: 46px;
    height: auto;
    padding: 8px 12px;
  }

  .hdr__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9040;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border: 0;
    padding: 0;
    margin: 0;
  }

  .hdr--menu-open .hdr__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hdr__drawer-head {
    display: flex;
    border-radius: 18px 18px 0 0;
  }

  /* Ortalanmış mobil menü modal */
  .hdr__nav {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(92vw, 440px);
    max-width: none;
    max-height: min(
      85dvh,
      calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px)
    );
    z-index: 9100;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    overflow: hidden;
    background: #ededed;
  }

  .hdr.hdr--nav-anim .hdr__nav {
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease,
      visibility 0.28s ease;
  }

  .hdr--menu-open .hdr__nav {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hdr__nav-inner {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .hdr__nav-menu-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hdr__drawer-brands {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(to right, #665862 0%, #692059 100%);
    border-bottom: 1px solid rgba(161, 161, 161, 0.37);
  }

  .hdr__drawer-brands::after {
    content: "\f054";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
  }

  .hdr__drawer-brands:hover {
    color: #fff;
    filter: brightness(1.05);
  }

  .hdr__menu > ul {
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
  }

  .hdr__menu-item--cat {
    order: 20;
  }

  .hdr__menu-item--tv {
    order: 1;
  }

  /* top_menu ana kategorileri masaüstü şeridinde kalır; mobilde mega liste zaten hepsini gösterir */
  .hdr__menu-item:not(.hdr__menu-item--cat):not(.hdr__menu-item--tv) {
    display: none !important;
  }

  .hdr__menu-item {
    flex: 0 0 auto;
    width: 100%;
    border-right: 0;
    border-bottom: 0;
  }

  .hdr__menu-item > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border-bottom: 1px solid rgba(161, 161, 161, 0.37);
    text-align: left;
  }

  .hdr__menu-item > a::after {
    content: "\f054";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    color: #999;
  }

  .hdr__menu-item--tv > a {
    background: #c4a574;
    color: #111 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .hdr__menu-item--tv > a::after {
    color: #333;
  }

  .hdr__menu-item--cat > a {
    display: none !important;
  }

  .hdr__mega {
    position: static;
    left: auto;
    right: auto;
    transform: none;
    min-width: 0;
    max-width: none;
    width: 100%;
    display: block !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .hdr__mega--cats {
    max-height: none;
    min-height: 0;
    height: auto;
  }

  .hdr__mega-cats-top {
    display: none;
  }

  .hdr__mega-cats-body {
    flex-direction: column;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .hdr__mega-cats-browse {
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .hdr__mega-cats-sidebar {
    flex: none;
    width: 100%;
    max-width: none;
    max-height: none;
    border: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .hdr__mega-cats-search-view {
    display: none !important;
  }

  .hdr__mega-cats-item {
    display: block;
    border-bottom: 1px solid rgba(161, 161, 161, 0.37);
  }

  .hdr__mega-cats-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border-radius: 0;
    width: 100%;
  }

  button.hdr__mega-cats-parent {
    background: #fff;
  }

  a.hdr__mega-cats-parent--toggle {
    cursor: pointer;
  }

  .hdr__mega-cats-parent:hover,
  .hdr__mega-cats-item:hover > .hdr__mega-cats-parent,
  .hdr__mega-cats-item:focus-within > .hdr__mega-cats-parent {
    background: #fff;
    color: #333;
  }

  .hdr__mega-cats-item--has-subs.is-expanded > .hdr__mega-cats-parent {
    background: #f7f7f7;
  }

  .hdr__mega-cats-chevron {
    display: inline-block;
    margin-left: auto;
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
  }

  .hdr__mega-cats-item--has-subs.is-expanded .hdr__mega-cats-chevron {
    transform: rotate(90deg);
  }

  .hdr__mega-cats-panel {
    position: static;
    display: none !important;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #e8e8e8;
    overflow: visible;
  }

  .hdr__mega-cats-item--has-subs.is-expanded > .hdr__mega-cats-panel {
    display: flex !important;
  }

  .hdr__mega-cats-panel-scroll {
    padding: 0;
  }

  .hdr__mega-cats-subs {
    display: block;
  }

  .hdr__mega-cats-subs li {
    border-top: 1px solid rgba(161, 161, 161, 0.25);
  }

  .hdr__mega-cats-sub {
    display: block;
    padding: 12px 16px 12px 28px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #e8e8e8;
    border-radius: 0;
  }

  .hdr__mega-cats-sub:hover {
    background: #ddd;
    color: #111;
  }

  .hdr__mega-cats-panel-foot {
    padding: 0;
    border-top: 1px solid rgba(161, 161, 161, 0.35);
  }

  .hdr__mega-cats-showall {
    display: block;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--c-accent);
    background: #dedede;
    border-radius: 0;
  }

  .hdr__mega-cats-showall:hover {
    background: #d4d4d4;
    color: var(--c-accent-hover);
  }

  .hdr__mega-cats-parent--sale {
    color: #b71c1c;
  }

  .hdr__menu-item > .hdr__mega--dropdown {
    display: none !important;
  }

  .hdr__drawer-foot {
    display: block;
    margin-top: 0;
    padding: 0;
    background: #ededed;
  }

  .hdr__drawer-foot-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    border-bottom: 1px solid rgba(161, 161, 161, 0.37);
  }

  .hdr__drawer-foot-link i {
    width: 18px;
    text-align: center;
    color: var(--c-accent);
  }

  .hdr__drawer-wa {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.35;
  }

  .hdr__drawer-wa i {
    font-size: 2rem;
    color: #25d366;
    flex-shrink: 0;
  }

  .hdr__drawer-wa em {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 2px;
    color: #15803d;
  }

  .hdr__drawer-wa span {
    font-weight: 600;
  }

  .hdr__drawer-topbar {
    display: block;
    margin-top: 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    background: #ededed;
    border-radius: 0 0 18px 18px;
  }

  .hdr__drawer-topbar .hdr__drawer-foot-link:first-child {
    border-top: 1px solid rgba(161, 161, 161, 0.37);
  }

  .hdr__drawer-topbar-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px 10px;
    background: #fff;
    border-bottom: 1px solid rgba(161, 161, 161, 0.37);
  }

  .hdr__drawer-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--c-accent);
    font-size: 18px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }

  .hdr__drawer-topbar-social a:hover {
    background: var(--c-accent-soft);
    color: var(--c-accent-hover);
  }

  .hdr__drawer-foot-link--logout {
    color: #b42318;
  }

  .hdr__drawer-foot-link--logout i {
    color: #b42318;
  }

  .hdr__mega-subs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hdr__mega-subs {
    grid-template-columns: 1fr;
  }
}
