/* header.css — TilbeHome Pro */

/* Prefix: th-header__ */

/* Z-INDEX HİYERARŞİSİ (tüm header) */
.th-header__header {
  --th-header-accent: #36b257;
  --th-header-accent-hover: #2e954a;
  position: relative;
  z-index: 100;
  contain: layout style;
  will-change: transform;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* SCOPE RESET */
.th-header__header,
.th-header__header *,
.th-header__header *::before,
.th-header__header *::after {
  box-sizing: border-box;
}

/* TOP BAR */
.th-header__top-bar {
  background: var(--th-color-bg);
  color: var(--th-neutral-500, #6b7280);
  font-size: var(--th-text-xs);
  contain: layout style;
}

.th-header__top-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--th-space-6);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--th-space-4);
}

/* Sol + Sağ gruplar */
.th-header__top-bar-left,
.th-header__top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--th-space-1-5);
  white-space: nowrap;
}

/* Eski nav-link-hot kuralları kaldırıldı — yenileri nav-menu bölümünde */
.th-header__nav-link-hot i {
  display: none; /* FA ikon gizle, ::before pulse dot kullanılıyor */
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  font-size: var(--th-text-xs);
  color: var(--th-neutral-700);
}

.top-info-item i {
  font-size: var(--th-text-xs);
  color: var(--th-color-accent);
}

/* Link stili */
.th-header__top-link {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1);
  padding: 0 var(--th-space-2);
  height: 32px;
  color: var(--th-neutral-500, #6b7280);
  text-decoration: none;
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-regular);
  transition: color 0.15s;
  position: relative;
}
.th-header__top-link:hover {
  color: var(--th-neutral-800, #1f2937);
}
.th-header__top-link i {
  font-size: var(--th-text-xs);
  color: var(--th-neutral-400, #9ca3af);
  transition: color 0.15s;
}
.th-header__top-link:hover i {
  color: var(--th-neutral-600, #4b5563);
}

/* WhatsApp — WCAG AA kontrast */
.th-header__top-link--whatsapp {
  color: var(--th-header-whatsapp, #15803D);
  font-weight: var(--th-font-semibold);
}
.th-header__top-link--whatsapp:hover {
  color: var(--th-header-whatsapp-hover, #166534);
  background: rgba(21,128,61,.06);
}
.th-header__top-link--whatsapp i {
  font-size: var(--th-text-base);
  opacity: 1;
}

/* Toptan Satış — highlight badge */
.th-header__top-link--highlight {
  color: var(--th-color-accent);
  font-weight: var(--th-font-semibold);
}
.th-header__top-link--highlight:hover {
  background: color-mix(in srgb, var(--th-color-accent) 5%, transparent);
}

/* Divider */
.th-header__top-divider {
  width: 1px;
  height: 12px;
  background: var(--th-neutral-200, #e5e7eb);
  flex-shrink: 0;
}

/* Top bar responsive — 992px'te tamamen gizleniyor (aşağıdaki blokta) */
/* MAIN BAR */
.th-header__main-bar {
  background: var(--th-neutral-0, #fff);
  border-bottom: 1px solid var(--th-neutral-100, #f3f4f6);
  contain: layout style;
  position: relative;
  z-index: 1020;
  min-height: 64px;
  transition: min-height 0.25s ease, padding 0.25s ease;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.th-header__main-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px var(--th-space-6);
  display: flex;
  align-items: center;
  gap: var(--th-space-6);
}

/* Hamburger — sadece mobilde görünür */
.th-header__mobile-menu-btn {
  display: none;
}

/* Logo */
.th-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.th-header__logo-img {
  height: 42px;
  width: clamp(160px, 18vw, 260px);
  object-fit: contain;
}
.th-header__header.th-compact .th-header__logo-img {
  width: clamp(120px, 14vw, 180px);
}

/* Location Button */
.location-btn {
  display: flex;
  align-items: center;
  gap: var(--th-space-2-5);
  padding: var(--th-space-2) var(--th-space-3-5);
  background: var(--th-neutral-50);
  border-radius: var(--th-radius-lg);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.location-btn:hover {
  background: var(--th-neutral-50);
}

.location-btn > i:first-child {
  font-size: var(--th-text-sm);
  color: var(--th-color-accent);
}

.location-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.location-text span {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-500);
}

.location-text strong {
  font-size: var(--th-text-xs);
  color: var(--th-neutral-900);
  font-weight: var(--th-font-medium);
}

.location-btn > i:last-child {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-500);
}

/* ARAMA */

.th-header__search-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
}


.th-header__search-form {
  display: flex;
  align-items: stretch;
  height: auto;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.th-header__search-form:focus-within {
  background: var(--th-neutral-0, #fff);
  border-color: var(--th-color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-color-accent) 15%, transparent);
}

/* Input */
.th-header__search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.th-header__search-input {
  width: 100%;
  height: 44px;
  border: none;
  outline: none;
  padding: 0 5px 0 var(--th-space-4);
  font-size: var(--th-text-base);
  font-family: inherit;
  color: var(--th-neutral-800, #1f2937);
  background: transparent;
}
.th-header__search-input::placeholder {
  color: var(--th-neutral-500, #6b7280);
}
/* Tarayıcı varsayılan temizle butonunu gizle (bizim custom butonumuz var) */
.th-header__search-input::-webkit-search-decoration,
.th-header__search-input::-webkit-search-cancel-button,
.th-header__search-input::-webkit-search-results-button,
.th-header__search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}
.th-header__search-input::-ms-clear { display: none; width: 0; height: 0; }

/* Input temizle butonu */
.th-header__search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: var(--th-neutral-400);
  font-size: var(--th-text-base);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s;
}
.th-header__search-clear:hover { color: var(--th-neutral-600); }

/* Arama butonu */
.th-header__search-btn {
  flex-shrink: 0;
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--th-color-accent);
  border: none;
  border-radius: 0;
  font-size: var(--th-text-md);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  margin: 0;
  padding: 0;
}
.th-header__search-btn:hover {
  background: var(--th-color-accent);
  color: var(--th-neutral-0, #fff);
}
.th-header__search-btn i {
  font-size: var(--th-text-md);
}
.th-header__search-btn span {
  display: none;
}

/* Sesli Arama */
.th-header__voice-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--th-neutral-400, #9ca3af);
  font-size: var(--th-text-base);
  cursor: pointer;
  transition: color 0.2s;
  border-radius: var(--th-radius-circle);
  position: relative;
}
.th-header__voice-btn:hover {
  color: var(--th-color-accent);
}
.th-header__voice-btn.th-header__voice-btn--listening {
  color: var(--th-color-danger, #ef4444);
}
.th-header__voice-btn.th-header__voice-btn--listening::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--th-radius-circle);
  border: 2px solid var(--th-color-danger, #ef4444);
  animation: th-voice-pulse 1.2s ease-in-out infinite;
}
@keyframes th-voice-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0; }
}
.th-header__voice-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--th-neutral-800, #1f2937);
  color: var(--th-neutral-0, #fff);
  font-size: var(--th-text-xs);
  padding: var(--th-space-1) var(--th-space-2-5);
  border-radius: var(--th-radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.th-header__voice-btn.th-header__voice-btn--listening .th-header__voice-tooltip {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .th-header__voice-btn.th-header__voice-btn--listening::after {
    animation: none;
  }
}
@media (max-width: 992px) {
  .th-header__voice-btn {
    width: 34px;
    height: 34px;
    font-size: var(--th-text-sm);
  }
}

/* Arama Backdrop */
.th-header__search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 999;
  transition: opacity 0.2s ease;
  opacity: 0;
}
.th-header__search-backdrop.active {
  display: block;
  opacity: 1;
}

/* Fullscreen close butonu — desktop'ta gizli */
.th-header__search-fullscreen-close {
  display: none;
}

/* Arama Dropdown */
.th-header__header .th-header__search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--th-neutral-0, #fff);
  border: 1px solid var(--th-neutral-200);
  border-radius: var(--th-radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 1030;
  padding: var(--th-space-3) 0;
  max-height: 400px;
  overflow-y: auto;
}
.th-header__search-wrapper:focus-within .th-header__search-dropdown,
.th-header__header .th-header__search-dropdown.active {
  display: block;
}

/* Dropdown bölümler */
.th-header__search-section {
  padding: 0 var(--th-space-4);
  margin-bottom: var(--th-space-2);
}
.th-header__search-section:last-child {
  margin-bottom: 0;
}
.th-header__search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--th-space-2) 0;
  border-bottom: 1px solid var(--th-neutral-100);
  margin-bottom: var(--th-space-2);
}
.th-header__search-section-header span {
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-semibold);
  color: var(--th-neutral-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.th-header__clear-history {
  background: none;
  border: none;
  font-size: var(--th-text-xs-plus);
  color: var(--th-neutral-400);
  cursor: pointer;
  padding: 2px var(--th-space-1-5);
  border-radius: var(--th-radius-sm);
  font-family: inherit;
  transition: color .15s;
}
.th-header__clear-history:hover {
  color: var(--th-color-danger, #ef4444);
}

/* Search History */
.th-header__search-history {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.th-header__history-item {
  display: flex;
  align-items: center;
  gap: var(--th-space-2-5);
  padding: var(--th-space-2) var(--th-space-1);
  color: var(--th-neutral-600);
  text-decoration: none;
  font-size: var(--th-text-sm);
  border-radius: var(--th-radius-md);
  transition: background .1s;
}
.th-header__history-item:hover { background: var(--th-neutral-50); }
.th-header__history-item > i { font-size: var(--th-text-xs-plus); color: var(--th-neutral-400); flex-shrink: 0; }
.th-header__history-item > span { flex: 1; }
/* Popüler aramalar tag'leri */
.th-header__search-popular {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-1-5);
  padding: var(--th-space-1) 0;
}
.th-header__popular-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--th-space-1-5) var(--th-space-3-5);
  background: var(--th-neutral-50, #f9fafb);
  border: 1px solid var(--th-neutral-200);
  border-radius: 20px;
  font-size: var(--th-text-xs-plus);
  color: var(--th-neutral-600);
  text-decoration: none;
  transition: all .15s;
}
.th-header__popular-tag:hover {
  background: rgba(54,178,87,.06);
  border-color: var(--th-header-accent, #36b257);
  color: var(--th-header-accent, #36b257);
}

/* Hot tag */
.th-header__popular-tag--hot {
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.2);
  color: var(--th-color-danger, #ef4444);
  font-weight: var(--th-font-semibold);
}
.th-header__popular-tag--hot:hover {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.3);
}

/* New — yeşil */
.th-header__popular-tag--new {
  background: rgba(54,178,87,.06);
  border-color: rgba(54,178,87,.2);
  color: var(--th-header-accent, #36b257);
  font-weight: var(--th-font-semibold);
}
.th-header__popular-tag--new:hover {
  background: rgba(54,178,87,.12);
  border-color: rgba(54,178,87,.3);
}

/* Sale — turuncu */
.th-header__popular-tag--sale {
  background: color-mix(in srgb, var(--th-color-accent) 6%, transparent);
  border-color: color-mix(in srgb, var(--th-color-accent) 20%, transparent);
  color: var(--th-color-accent);
  font-weight: var(--th-font-semibold);
}
.th-header__popular-tag--sale:hover {
  background: color-mix(in srgb, var(--th-color-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--th-color-accent) 30%, transparent);
}

/* Arama autocomplete ürün kartları (platform tarafından inject edilir) */
.th-header__search-dropdown .product-item,
.th-header__search-dropdown .search-product-item,
.th-header__search-dropdown [data-search-item] {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-2-5) var(--th-space-4);
  text-decoration: none;
  color: var(--th-neutral-700);
  border-radius: var(--th-radius-lg);
  transition: background .1s;
}
.th-header__search-dropdown .product-item:hover,
.th-header__search-dropdown .search-product-item:hover,
.th-header__search-dropdown [data-search-item]:hover {
  background: var(--th-neutral-50);
}
.th-header__search-dropdown .product-item img,
.th-header__search-dropdown .search-product-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--th-radius-md);
  border: 1px solid var(--th-neutral-100);
  flex-shrink: 0;
}
.th-header__search-dropdown .product-item .name,
.th-header__search-dropdown .search-product-item .name {
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  color: var(--th-neutral-800);
}
.th-header__search-dropdown .product-item .price,
.th-header__search-dropdown .search-product-item .price {
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-bold);
  color: var(--th-header-accent, #36b257);
}

/* ARAMA AUTOCOMPLETE (easyAutocomplete override) */

/* Wrapper — platformun eklediği */
.th-header__header .th-header__search-wrapper .easy-autocomplete {
  position: relative;
  width: 100%!important;
}
.easy-autocomplete input {
  border-color: #f5f5f5;
  border-radius: 4px;
  border-style: none;
  border-width: 1px;
  box-shadow: none;
  color: #555;
  float: none;
  padding: 6px 12px;
}

/* Dropdown container */
.th-header__search-wrapper .easy-autocomplete-container {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--th-neutral-0, #fff);
  border: 1px solid var(--th-neutral-200);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 1040;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  display: none;
}
.th-header__search-wrapper .easy-autocomplete-container::-webkit-scrollbar {
  width: 4px;
}
.th-header__search-wrapper .easy-autocomplete-container::-webkit-scrollbar-thumb {
  background: var(--th-neutral-300);
  border-radius: 2px;
}

/* Sonuç item'lar */
.th-header__search-wrapper .easy-autocomplete-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.th-header__search-wrapper .easy-autocomplete-container li {
  margin: 0;
  padding: 0;
}
.th-header__search-wrapper .eac-item {
  display: block;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .1s;
  font-size: var(--th-text-sm);
  color: var(--th-neutral-700);
  border-bottom: 1px solid var(--th-neutral-50);
}
.th-header__search-wrapper .eac-item:hover,
.th-header__search-wrapper .eac-item.selected {
  background: var(--th-neutral-50);
}
.th-header__search-wrapper .eac-item:last-child {
  border-bottom: none;
}

/* Image template — ürün görselli sonuçlar */
.th-header__search-wrapper .spsi-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}
.th-header__search-wrapper .spsi-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--th-neutral-100);
  background: var(--th-neutral-0, #fff);
  flex-shrink: 0;
}

/* Sonuç text */
.th-header__search-wrapper .eac-item,
.th-header__search-wrapper .spsi-item {
  font-size: var(--th-text-sm);
  color: var(--th-neutral-700);
  line-height: 1.4;
}

/* Hover durumunda text rengi */
.th-header__search-wrapper .eac-item:hover .spsi-item,
.th-header__search-wrapper .eac-item.selected .spsi-item {
  color: var(--th-neutral-900);
}

/* Arama sonuç banner */
.search-result-count,
.product-count,
.category-product-count {
  font-size: var(--th-text-base);
  color: var(--th-neutral-600);
  padding: var(--th-space-3) 0;
}
.search-result-count strong,
.product-count strong {
  color: var(--th-neutral-900);
  font-weight: var(--th-font-bold);
}

/* Top bar kampanya promo */
.th-header__top-promo {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1);
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-medium);
  color: var(--th-color-accent);
  padding: 0 var(--th-space-2);
  white-space: nowrap;
}
.th-header__top-promo i {
  font-size: var(--th-text-xs);
}

/* ACTION İKONLAR */

.th-header__header-actions {
  display: flex;
  align-items: center;
  gap: var(--th-space-1);
  flex-shrink: 0;
  margin-left: auto;
}

.th-header__action-item {
  position: relative;
}

.th-header__action-btn {
  display: flex;
  align-items: center;
  gap: var(--th-space-2-5);
  padding: var(--th-space-2);
  background: none;
  border: none;
  color: var(--th-neutral-700, #374151);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  font-family: inherit;
  min-width: 44px;
  min-height: 44px;
}
.th-header__action-btn:hover {
  background: var(--th-neutral-50, #f9fafb);
}

/* İkon container */
.th-header__action-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--th-neutral-700, #374151);
}
/* pdp.css ".fas { font-weight:600 }" header ikonlarını bozmasın */
.th-header__header-actions .fas,
.th-header__header-actions .fa,
.th-header__header-actions .far {
  font-weight: 900;
  font-size: 16px;
}

/* Çan — yeşil daire + SVG ikon */
.th-header__bell-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4dc761;
  border-radius: var(--th-radius-circle);
  position: relative;
  border: none;
}
.th-header__bell-circle img {
  width: 20px;
  height: 20px;
}
.th-header__bell-circle::after {
  display: none;
}

/* Badge (sepet adet) */
.th-header__action-badge {
  position: absolute;
  top: -16px;
  left: 60px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--th-header-accent, #36b257);
  color: var(--th-neutral-0, #fff);
  font-size: var(--th-text-2xs);
  font-weight: var(--th-font-semibold);
  border-radius: var(--th-radius-full);
  padding: 0 5px;
  line-height: 1;
}
.th-header__action-badge:empty,
.th-header__action-badge[data-cart-quantity="0"] {
  display: none;
}

/* Text — üstte label, altta value */
.th-header__action-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
  min-width: 0;
}
.th-header__action-text span {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-500, #6b7280);
  white-space: nowrap;
}
.th-header__action-text strong {
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-regular);
  color: var(--th-neutral-800, #1f2937);
  white-space: nowrap;
}

/* Sepet tutar */
.th-header__header .th-header__cart-total {
  color: var(--th-neutral-800, #1f2937);
}

/* Sepet buton */
.th-header__cart-btn {
}
.th-header__cart-btn:hover {
  background: var(--th-neutral-50, #f9fafb);
}

.th-header__cart-badge {
  background: var(--th-header-accent, #36b257);
}

.th-header__action-item {
  position: relative;
  z-index: 1025;
}
.th-header__action-item:hover {
  z-index: 1035;
}

.th-header__action-dropdown {
  position: absolute;
  display: block;
  top: 100%;
  right: 0;
  left: auto;
  background: var(--th-neutral-0);
  border-radius: var(--th-radius-2xl);
  box-shadow: 0 12px 36px rgba(0,0,0,.1);
  border: 1px solid var(--th-neutral-200);
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transition: opacity .15s, visibility .15s, transform .15s;
  transition-delay: .25s;
  pointer-events: none;
  z-index: 1030;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}
.th-header__action-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Desktop: hover ile aciilsin */
@media (min-width: 992px) {
  .th-header__action-item:hover .th-header__action-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
  }
}

/* Mobil: sadece is-open ile acilsin — moved to consolidated RESPONSIVE section */

/* HESABIM DROPDOWN */
.th-header__account-dropdown {
  width: 300px;
  padding: 0;
  overflow: hidden;
}

/* User header — giriş yapmış */
.th-header__acc-user-header {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-4);
  background: linear-gradient(135deg, var(--th-header-accent, #36b257) 0%, var(--th-header-accent-hover, #2e954a) 100%);
  color: var(--th-neutral-0, #fff);
}
.th-header__acc-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.2);
  border-radius: var(--th-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-bold);
  flex-shrink: 0;
}
.th-header__acc-user-info strong {
  display: block;
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
}
.th-header__acc-user-info span {
  font-size: var(--th-text-xs);
  opacity: .8;
}

/* Stats — sipariş + favori sayısı */
.th-header__acc-stats {
  display: flex;
  border-bottom: 1px solid var(--th-neutral-100);
}
.th-header__acc-stat {
  flex: 1;
  text-align: center;
  padding: var(--th-space-3);
  border-right: 1px solid var(--th-neutral-100);
}
.th-header__acc-stat:last-child {
  border-right: none;
}
.th-header__acc-stat strong {
  display: block;
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-bold);
  color: var(--th-neutral-800);
}
.th-header__acc-stat span {
  font-size: var(--th-text-xs);
  color: var(--th-neutral-500);
}

/* Guest header — giriş yapmamış */
.th-header__acc-guest-header {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-4);
}
.th-header__acc-guest-icon {
  font-size: 36px;
  color: var(--th-neutral-300);
}
.th-header__acc-guest-header strong {
  display: block;
  font-size: var(--th-text-base-plus);
  font-weight: var(--th-font-bold);
  color: var(--th-neutral-800);
}
.th-header__acc-guest-header span {
  font-size: var(--th-text-xs-plus);
  color: var(--th-neutral-500);
}

/* Butonlar */
.th-header__acc-buttons {
  display: flex;
  gap: var(--th-space-2);
  padding: 0 var(--th-space-4) var(--th-space-4);
}
.th-header__acc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--th-space-1-5);
  padding: var(--th-space-2-5);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
  transition: all .15s;
  font-family: inherit;
}
.th-header__acc-btn--primary {
  background: var(--th-header-accent, #36b257);
  color: var(--th-neutral-0, #fff);
}
.th-header__acc-btn--primary:hover { background: var(--th-header-accent-hover, #2e954a); }
.th-header__acc-btn--secondary {
  background: var(--th-neutral-100);
  color: var(--th-neutral-700);
}
.th-header__acc-btn--secondary:hover { background: var(--th-neutral-200); }

/* Divider */
.th-header__acc-divider {
  height: 1px;
  background: var(--th-neutral-100);
}

/* Nav linkler */
.th-header__acc-nav {
  padding: var(--th-space-1-5) 0;
}
.th-header__acc-nav-item {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-2-5) var(--th-space-4);
  color: var(--th-neutral-600);
  text-decoration: none;
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  transition: background .1s, color .1s;
}
.th-header__acc-nav-item:hover {
  background: var(--th-neutral-50);
  color: var(--th-neutral-800);
}
.th-header__acc-nav-item i {
  width: 18px;
  text-align: center;
  font-size: var(--th-text-base);
  color: var(--th-neutral-400);
}
.th-header__acc-nav-item:hover i { color: var(--th-header-accent, #36b257); }

/* Çıkış */
.th-header__acc-logout {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-3) var(--th-space-4);
  color: var(--th-neutral-500);
  text-decoration: none;
  font-size: var(--th-text-sm);
  transition: color .1s;
}
.th-header__acc-logout:hover { color: var(--th-color-danger, #ef4444); }
.th-header__acc-logout i { width: 18px; text-align: center; }

/* Promo — üye ol teşvik */
.th-header__acc-promo {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-3) var(--th-space-4);
  background: color-mix(in srgb, var(--th-color-accent) 5%, transparent);
  border-top: 1px solid var(--th-neutral-100);
  font-size: var(--th-text-xs-plus);
  color: var(--th-neutral-600);
}
.th-header__acc-promo i { color: var(--th-color-accent); font-size: var(--th-text-base); }
.th-header__acc-promo strong { color: var(--th-color-accent); }

/* SEPET DROPDOWN */
.th-header__cart-dropdown {
  width: 360px;
  padding: 0;
  overflow: hidden;
}

/* Header */
.th-header__cart-dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--th-space-3-5) var(--th-space-4);
  border-bottom: 1px solid var(--th-neutral-100);
  font-size: var(--th-text-base);
  font-weight: var(--th-font-bold);
  color: var(--th-neutral-800);
}
.th-header__cart-dd-count {
  font-weight: var(--th-font-regular);
  color: var(--th-neutral-500);
  font-size: var(--th-text-sm);
}

/* Kargo progress */
.th-header__cart-dd-ship {
  padding: var(--th-space-2-5) var(--th-space-4);
  background: var(--th-neutral-50);
  border-bottom: 1px solid var(--th-neutral-100);
}
.th-header__cart-dd-ship-ok {
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-semibold);
  color: var(--th-header-accent, #36b257);
}
.th-header__cart-dd-ship-ok i { margin-right: var(--th-space-1); }
.th-header__cart-dd-ship-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--th-text-xs-plus);
  color: var(--th-neutral-600);
  margin-bottom: var(--th-space-1-5);
}
.th-header__cart-dd-ship-info strong { color: var(--th-color-accent); }
.th-header__cart-dd-ship-limit { display: none; }
.th-header__cart-dd-ship-bar {
  height: 4px;
  background: var(--th-neutral-200);
  border-radius: 2px;
  overflow: hidden;
}
.th-header__cart-dd-ship-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--th-header-accent, #36b257), var(--th-header-accent-hover, #2e954a));
  border-radius: 2px;
  transition: width .3s ease;
}

/* Ürün listesi */
.th-header__cart-dd-items {
  max-height: 280px;
  overflow-y: auto;
  padding: var(--th-space-2) 0;
}
.th-header__cart-dd-items::-webkit-scrollbar { width: 4px; }
.th-header__cart-dd-items::-webkit-scrollbar-thumb {
  background: var(--th-neutral-300);
  border-radius: 2px;
}

/* Boş sepet */
.th-header__cart-dd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-8) var(--th-space-4);
  color: var(--th-neutral-400);
}
.th-header__cart-dd-empty i { font-size: 32px; }
.th-header__cart-dd-empty span { font-size: var(--th-text-base); }
.th-header__cart-dd-empty a {
  color: var(--th-header-accent, #36b257);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
}
.th-header__cart-dd-empty a:hover { text-decoration: underline; }

/* Skeleton */
.th-header__cart-dd-skel-row {
  display: flex;
  gap: var(--th-space-3);
  padding: var(--th-space-3) var(--th-space-4);
}
.th-header__cart-dd-skel-img {
  width: 56px;
  height: 56px;
  background: var(--th-neutral-100);
  border-radius: var(--th-radius-lg);
  flex-shrink: 0;
  animation: skelPulse 1.5s infinite;
}
.th-header__cart-dd-skel-body { flex: 1; }
.th-header__cart-dd-skel-line {
  height: 12px;
  background: var(--th-neutral-100);
  border-radius: var(--th-radius-sm);
  margin-bottom: var(--th-space-2);
  animation: skelPulse 1.5s infinite;
}
.th-header__cart-dd-skel-line.short { width: 60%; }
@keyframes skelPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Footer — toplam + butonlar */
.th-header__cart-dd-footer {
  border-top: 1px solid var(--th-neutral-100);
  padding: var(--th-space-3) var(--th-space-4);
}
.th-header__cart-dd-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--th-space-3);
  font-size: var(--th-text-base);
  color: var(--th-neutral-600);
}
.th-header__cart-dd-total strong {
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-bold);
  color: var(--th-color-accent);
}

/* Butonlar — Trendyol tarzı */
.th-header__cart-dd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--th-space-1-5);
  width: 100%;
  padding: var(--th-space-3);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  border: none;
  box-sizing: border-box;
}
.th-header__cart-dd-footer .th-header__cart-dd-btn + .th-header__cart-dd-btn {
  margin-top: var(--th-space-2);
}
.th-header__cart-dd-btn--primary {
  background: var(--th-color-accent);
  color: var(--th-neutral-0, #fff);
  border: none;
}
.th-header__cart-dd-btn--primary:hover {
  background: var(--th-color-accent-hover, #e06c10);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--th-color-accent) 30%, transparent);
}
.th-header__cart-dd-btn--ghost {
  background: transparent;
  color: var(--th-neutral-700);
  border: 1.5px solid var(--th-neutral-200);
}
.th-header__cart-dd-btn--ghost:hover {
  border-color: var(--th-color-accent);
  color: var(--th-color-accent);
}

/* Platform ürün kartları (inject edilen HTML) */
.th-header__cart-dd-items .product-item,
.th-header__cart-dropdown .cart-product {
  display: flex;
  align-items: flex-start;
  gap: var(--th-space-3);
  padding: var(--th-space-2-5) var(--th-space-4);
  border-bottom: 1px solid var(--th-neutral-50);
  transition: background .1s;
}
.th-header__cart-dd-items .product-item:hover {
  background: var(--th-neutral-50);
}
.th-header__cart-dd-items .product-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--th-radius-md);
  border: 1px solid var(--th-neutral-100);
  flex-shrink: 0;
}

/* Platform ürün sil butonu — küçült */
.th-header__header .th-header__cart-dd-items .remove-cart,
.th-header__header .th-header__cart-dd-items .remove,
.th-header__header .th-header__cart-dd-items [class*="remove"],
.th-header__header .th-header__cart-dd-items [class*="delete"],
.th-header__header .th-header__cart-dd-items .product-item button,
.th-header__header .th-header__cart-dropdown .cart-product button {
  width: 22px;
  height: 22px;
  min-width: 22px;
  font-size: var(--th-text-xs-plus);
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--th-neutral-100);
  border: none;
  border-radius: var(--th-radius-circle);
  color: var(--th-neutral-500);
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.th-header__cart-dd-items .remove-cart:hover,
.th-header__cart-dd-items .remove:hover,
.th-header__cart-dd-items [class*="remove"]:hover,
.th-header__cart-dd-items [class*="delete"]:hover,
.th-header__cart-dd-items .product-item button:hover,
.th-header__cart-dropdown .cart-product button:hover {
  background: var(--th-red-100);
  color: var(--th-color-danger, #ef4444);
}

/* Mobile Menu Button */
.th-header__mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--th-space-2);
}

.th-header__mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--th-neutral-900);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* NAVIGATION BAR */
.th-header__nav-bar {
  background: var(--th-neutral-0, #fff);
  border-bottom: 1px solid var(--th-neutral-100, #f3f4f6);
  contain: layout style;
  position: relative;
  z-index: 1010;
}
.th-header__nav-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--th-space-6);
  display: flex;
  align-items: center;
  gap: 0;
}

/* Categories Button */
.nav-categories {
  position: relative;
}

.categories-btn {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-2) var(--th-space-4);
  background: var(--th-color-accent);
  color: var(--th-neutral-0);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-semibold);
  transition: all 0.25s ease;
}

.categories-btn:hover {
  background: var(--th-color-accent-hover);
}

.categories-btn:active {
  background: var(--th-color-accent-hover);
}

.categories-btn i:last-child {
  font-size: var(--th-text-2xs);
  margin-left: var(--th-space-1);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  background: var(--th-neutral-0);
  border-radius: var(--th-radius-2xl);
  box-shadow: var(--th-shadow-xl);
  min-width: 1000px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: var(--th-z-dropdown);
  border: 1px solid var(--th-neutral-200);
}

.nav-categories:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-sidebar {
  width: 240px;
  padding: var(--th-space-4);
  border-radius: var(--th-radius-2xl) 0 0 var(--th-radius-2xl);
}

.mega-category {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-3) var(--th-space-3-5);
  font-size: var(--th-text-sm);
  color: var(--th-neutral-700);
  border-radius: var(--th-radius-lg);
  transition: all 0.25s ease;
}

.mega-category:hover,
.mega-category.th-header__active {
  background: var(--th-neutral-0);
  color: var(--th-color-accent);
}

.mega-category i:first-child {
  width: 20px;
  text-align: center;
  font-size: var(--th-text-base);
}

.mega-category span {
  flex: 1;
}

.mega-category i:last-child {
  font-size: var(--th-text-2xs);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mega-category:hover i:last-child,
.mega-category.th-header__active i:last-child {
  opacity: 1;
}

.mega-menu-content {
  flex: 1;
  padding: var(--th-space-6);
}

.mega-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr) 200px;
  gap: var(--th-space-6);
}

.mega-panel.th-header__active {
  display: grid;
}

.mega-column h4 {
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
  color: var(--th-neutral-900);
  margin-bottom: var(--th-space-3-5);
  padding-bottom: var(--th-space-2-5);
  border-bottom: 1px solid var(--th-neutral-200);
}

.mega-column a {
  display: block;
  padding: var(--th-space-2) 0;
  font-size: var(--th-text-sm);
  color: var(--th-neutral-700);
  transition: color 0.25s ease;
}

.mega-column a:hover {
  color: var(--th-color-accent);
}

.mega-featured {
  position: relative;
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  border: 1px solid var(--th-neutral-200);
}

.mega-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-featured-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--th-space-4);
  background: linear-gradient(to top, rgba(19,26,34,0.85), transparent);
  color: var(--th-neutral-0);
}

.mega-featured-tag {
  display: inline-block;
  padding: var(--th-space-1) var(--th-space-2-5);
  background: var(--th-color-accent);
  color: var(--th-neutral-900);
  border-radius: var(--th-radius-full);
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-semibold);
  margin-bottom: var(--th-space-2);
  width: fit-content;
}

.mega-featured h5 {
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
  margin-bottom: var(--th-space-2);
}

.mega-featured-cta {
  font-size: var(--th-text-xs-plus);
  display: flex;
  align-items: center;
  gap: var(--th-space-1-5);
}

.mega-featured-cta i {
  font-size: var(--th-text-2xs);
}

/* Nav Menu */
.th-header__nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.th-header__nav-menu::-webkit-scrollbar {
  display: none;
}
.th-header__nav-menu li {
  flex-shrink: 0;
}
.th-header__nav-menu a {
  display: flex;
  align-items: center;
  gap: var(--th-space-1);
  padding: var(--th-space-3) var(--th-space-3-5);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  color: var(--th-neutral-700, #374151);
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  position: relative;
  transition: color .15s;
}
.th-header__nav-menu a:hover {
  color: var(--th-header-accent, #36b257);
}

/* Hover underline animasyonu */
.th-header__nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background: var(--th-header-accent, #36b257);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.th-header__nav-menu a:hover::after {
  transform: scaleX(1);
}

/* Aktif sayfa vurgulama */
.th-header__nav-link--active {
  color: var(--th-color-accent);
  box-shadow: inset 0 -2px 0 var(--th-color-accent);
}

/* Viral Ürünler — özel hot badge */
.th-header__header .th-header__nav-link-hot {
  color: var(--th-color-accent);
  font-weight: var(--th-font-bold);
}
.th-header__nav-link-hot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--th-color-danger, #ef4444);
  border-radius: var(--th-radius-circle);
  animation: hotPulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes hotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.th-header__nav-link-hot::after {
  display: none;
}

/* Nav Promo */
.nav-promo {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-2) var(--th-space-4);
  background: rgba(220,38,38,0.10);
  color: var(--th-color-danger);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-semibold);
  transition: all 0.25s ease;
}

.nav-promo:hover {
  background: var(--th-color-danger);
  color: var(--th-neutral-0);
}

.promo-badge {
  padding: 2px var(--th-space-2);
  background: var(--th-color-danger);
  color: var(--th-neutral-0);
  border-radius: var(--th-radius-full);
  font-size: var(--th-text-2xs);
  font-weight: var(--th-font-semibold);
}

.nav-promo:hover .promo-badge {
  background: var(--th-neutral-0);
  color: var(--th-color-danger);
}

/* TÜM KATEGORİLER BUTONU + DROPDOWN */

/* Ana container — buton + dropdown */
.th-header__all-cats {
  position: relative;
  flex-shrink: 0;
  z-index: 1010;
}

/* Buton — Trendyol tarzı sade */
.th-header__all-cats-btn {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: 0 var(--th-space-4) 0 var(--th-space-2);
  height: 46px;
  background: none;
  color: var(--th-neutral-800, #1f2937);
  border: none;
  border-radius: 0;
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s;
  white-space: nowrap;
}
.th-header__all-cats-btn:hover {
  background: none;
  color: var(--th-header-accent, #36b257);
}

/* Sol Dropdown — hover ile açılır */
.th-header__all-cats-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: var(--th-neutral-0, #fff);
  border: 1px solid var(--th-neutral-100);
  border-top: none;
  border-radius: 0 0 var(--th-radius-lg) var(--th-radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: var(--th-space-2);
  z-index: 1010;
}
.th-header__all-cats:hover .th-header__all-cats-dropdown {
  display: block;
}

/* Kategori listesi */
.th-header__all-cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.th-header__all-cats-item {
  position: static;
}
.th-header__all-cats-item:last-child {
  border-bottom: none;
}

/* Kategori link */
.th-header__all-cats-link {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-2-5) var(--th-space-3);
  color: var(--th-neutral-600, #4b5563);
  text-decoration: none;
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  transition: all .15s;
  border-radius: var(--th-radius-lg);
}
.th-header__all-cats-link:hover {
  background: var(--th-neutral-50, #f9fafb);
  color: var(--th-neutral-900, #111827);
}

/* Kategori ikon */
.th-header__all-cats-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  color: var(--th-neutral-400, #9ca3af);
  background: var(--th-neutral-50, #f9fafb);
  border-radius: var(--th-radius-lg);
  flex-shrink: 0;
  transition: all .15s;
}
/* FA ikonları doğru font-weight ile renderlanmasını garanti et */
.th-header__all-cats-icon.fas,
.th-header__all-cats-icon.far,
.th-header__all-cats-icon.fa,
.th-header__all-cats-chevron.fas,
.th-header__nav-bar .fas {
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Font Awesome 5 Free" !important;
}
.th-header__all-cats-link:hover .th-header__all-cats-icon {
  color: var(--th-color-accent);
  background: color-mix(in srgb, var(--th-color-accent) 8%, transparent);
}

.th-header__all-cats-name {
  flex: 1;
}
.th-header__all-cats-chevron {
  font-size: 10px;
  color: var(--th-neutral-300, #d1d5db);
  flex-shrink: 0;
  transition: all .15s;
}
.th-header__all-cats-item:hover .th-header__all-cats-chevron {
  color: var(--th-color-accent);
  transform: translateX(2px);
}

/* Flyout — sağa açılır alt kategoriler */
.th-header__all-cats-flyout {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 750px;
  min-height: 100%;
  height: 100%;
  background: var(--th-neutral-0, #fff);
  border: 1px solid var(--th-neutral-200);
  border-left: none;
  box-shadow: 4px 0 12px rgba(0,0,0,.05);
  padding: var(--th-space-6);
  z-index: 1011;
  overflow-y: auto;
  border-radius: 0 var(--th-radius-lg) var(--th-radius-lg) 0;
}
.th-header__all-cats-item:hover .th-header__all-cats-flyout {
  display: block;
}
.th-header__all-cats-flyout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.th-header__all-cats-flyout-col {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 var(--th-space-3);
  margin-bottom: var(--th-space-4);
}

/* Alt kategori grupları */
.th-header__all-cats-group {
  margin-bottom: var(--th-space-4);
}
.th-header__all-cats-group-title {
  display: block;
  font-size: var(--th-text-base);
  font-weight: var(--th-font-bold);
  color: var(--th-neutral-700);
  margin-bottom: var(--th-space-1-5);
  padding-bottom: var(--th-space-1);
  text-decoration: none;
  border-bottom: 1px solid var(--th-neutral-100);
  text-align: left;
  transition: color .15s;
}
.th-header__all-cats-group-title:hover {
  color: var(--th-color-accent);
}
.th-header__all-cats-childs {
  display: flex;
  flex-direction: column;
  gap: var(--th-space-1);
}
.th-header__all-cats-childs a {
  font-size: var(--th-text-sm);
  color: var(--th-neutral-500);
  text-decoration: none;
  transition: color .15s;
}
.th-header__all-cats-childs a:hover {
  color: var(--th-color-accent);
}

/* ── TÜM KATEGORİLER RESPONSIVE — moved to consolidated RESPONSIVE section ── */

/* NAV QUICK (Kupon / Yeni Gelenler / Viral) */
.nav-quick {
  display: flex;
  align-items: center;
  gap: var(--th-space-2-5);
  flex-shrink: 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-2) var(--th-space-3-5);
  background: var(--th-neutral-50);
  border: 1px solid var(--th-neutral-200);
  border-radius: var(--th-radius-full);
  color: var(--th-neutral-700);
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-semibold);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-pill i {
  font-size: var(--th-text-xs-plus);
  color: var(--th-color-accent);
}

.nav-pill:hover {
  background: var(--th-orange-50);
  border-color: var(--th-color-accent);
  color: var(--th-neutral-900);
}

.nav-pill:active {
  transform: translateY(1px);
}

/* CATEGORY ICONS */
.category-icons {
  background: var(--th-neutral-0);
  padding: var(--th-space-4) 0;
  border-bottom: 1px solid var(--th-neutral-200);
}

.category-icons-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--th-space-6);
  position: relative;
  display: flex;
  align-items: center;
}

.category-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--th-neutral-0);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--th-radius-full);
  color: var(--th-neutral-700);
  box-shadow: var(--th-shadow-xs);
  z-index: 10;
  transition: all 0.25s ease;
}

.category-scroll-btn:hover {
  background: var(--th-color-accent);
  border-color: var(--th-color-accent);
  color: var(--th-neutral-0);
}

.scroll-left {
  left: var(--th-space-2);
}

.scroll-right {
  right: var(--th-space-2);
}

.category-icons-track {
  display: flex;
  gap: var(--th-space-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: var(--th-space-2) var(--th-space-12);
}

.category-icons-track::-webkit-scrollbar {
  display: none;
}

.category-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--th-space-2);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.category-icon-item:hover {
  transform: translateY(-2px);
}

.category-icon-circle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.10);
  border-radius: var(--th-radius-full);
  color: var(--th-color-info);
  font-size: 22px;
  transition: all 0.25s ease;
}

.category-icon-item:hover .category-icon-circle {
  background: var(--th-color-info);
  color: var(--th-neutral-0);
}

.category-icon-circle.new {
  background: var(--th-amber-50);
  color: var(--th-color-accent);
}

.category-icon-item:hover .category-icon-circle.new {
  background: var(--th-color-accent);
  color: var(--th-neutral-0);
}

.category-icon-item span {
  font-size: var(--th-text-xs-plus);
  color: var(--th-neutral-700);
  font-weight: var(--th-font-medium);
  text-align: center;
  white-space: nowrap;
}

/* MOBILE MENU */
.th-header__mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19,26,34,0.7);
  opacity: 0;
  visibility: hidden;
  z-index: var(--th-z-overlay);
  transition: all 0.25s ease;
}

.th-header__mobile-menu-overlay.th-header__active {
  opacity: 1;
  visibility: visible;
}

.th-header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: var(--th-neutral-0);
  z-index: var(--th-z-modal);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  will-change: transform;
}

.th-header__mobile-menu.th-header__active {
  transform: translateX(0);
}

/* FLOATING BUTTONS */
.floating-buttons {
  position: fixed;
  bottom: var(--th-space-6);
  right: var(--th-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--th-space-3);
  z-index: var(--th-z-toast);
}

.floating-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--th-radius-full);
  font-size: var(--th-text-xl);
  box-shadow: var(--th-shadow-lg);
  transition: all 0.25s ease;
}

.whatsapp-float {
  background: var(--th-color-whatsapp, #25D366);
  color: var(--th-neutral-0);
}

.whatsapp-float:hover {
  background: var(--th-header-accent, #36b257);
  transform: scale(1.1);
}

.scroll-top {
  background: var(--th-color-accent);
  color: var(--th-neutral-0);
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top.th-header__visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--th-color-accent-hover);
}

.scroll-top:active {
  background: var(--th-color-accent-hover);
}

/* NOTIFICATION SYSTEM */
/* Notification Dropdown */
.th-header__notification-dropdown {
  width: 380px;
  max-height: 520px;
  padding: 0;
  overflow: hidden;
  right: -20px;
}

.th-header__notification-header {
  border-bottom: 1px solid var(--th-neutral-100);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--th-neutral-0, #fff);
}

.th-header__notification-tabs {
  display: flex;
  align-items: center;
}

.th-header__notification-tab {
  flex: 1;
  padding: var(--th-space-3-5) var(--th-space-4);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-semibold);
  color: var(--th-neutral-500);
  text-align: center;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: color .15s, border-color .15s;
}

.th-header__notification-tab.th-header__active {
  background: var(--th-color-accent);
  color: var(--th-neutral-0);
}

/* Notification Content */
.th-header__notification-content {
  max-height: 350px;
  overflow-y: auto;
}

/* Notification Scrollbar */
.th-header__notification-content::-webkit-scrollbar { width: 3px; }
.th-header__notification-content::-webkit-scrollbar-thumb { background: var(--th-neutral-300); border-radius: 2px; }

/* Dropdown üçgen ok (desktop) */
.th-header__cart-dropdown::before,
.th-header__account-dropdown::before,
.th-header__notification-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--th-neutral-0, #fff);
  border-left: 1px solid var(--th-neutral-200);
  border-top: 1px solid var(--th-neutral-200);
  transform: rotate(45deg);
  z-index: 1;
}

/* Mobil: bottom sheet tutma çubuğu — moved to consolidated RESPONSIVE section */

/* CSS-only notification tab system */
.th-header__tab-radio { display: none; }
#tilbehead19_tab_alerts:checked ~ .th-header__notification-header .th-header__notification-tab:first-child,
#tilbehead19_tab_messages:checked ~ .th-header__notification-header .th-header__notification-tab:last-child {
  background: var(--th-color-accent);
  color: var(--th-neutral-0);
}

/* Tab panel visibility */
.th-header__tab-panel { display: none; }
#tilbehead19_tab_alerts:checked ~ .th-header__notification-content .th-header__tab-panel-alerts { display: block; }
#tilbehead19_tab_messages:checked ~ .th-header__notification-content .th-header__tab-panel-messages { display: block; }

/* ── Notification Content Blocks ── */
.th-header__notif-block {
  padding: var(--th-space-4);
}
.th-header__notif-section-label {
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--th-neutral-500);
  margin-bottom: var(--th-space-2-5);
}
.th-header__notif-divider {
  height: 1px;
  background: var(--th-neutral-100);
  margin: 0;
}

/* Miktar indirimi tiers */
.th-header__notif-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--th-space-2);
}
.th-header__notif-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--th-space-2-5) var(--th-space-1);
  background: var(--th-neutral-50);
  border-radius: var(--th-radius-lg);
  border: 1px solid var(--th-neutral-100);
  transition: border-color .15s, box-shadow .15s;
}
.th-header__notif-tier:hover {
  border-color: var(--th-color-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--th-color-accent) 15%, transparent);
}
.th-header__notif-tier-qty {
  font-size: var(--th-text-xs);
  color: var(--th-neutral-500);
  font-weight: var(--th-font-medium);
}
.th-header__notif-tier-pct {
  font-size: var(--th-text-lg);
  font-weight: 800;
  color: var(--th-color-accent);
  line-height: 1;
}
.th-header__notif-tier-label {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-400);
  font-weight: var(--th-font-medium);
}

/* Flash indirim row */
.th-header__notif-flash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--th-space-2-5);
  padding: var(--th-space-2-5) var(--th-space-3);
  background: linear-gradient(135deg, var(--th-orange-50), var(--th-neutral-0));
  border: 1px solid var(--th-orange-200);
  border-radius: var(--th-radius-lg);
  margin-bottom: var(--th-space-1-5);
}
.th-header__notif-flash-row:last-child { margin-bottom: 0; }
.th-header__notif-flash-row-left {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  font-size: var(--th-text-xs-plus);
  color: var(--th-neutral-700);
  line-height: 1.4;
}
.th-header__notif-flash-row-left i {
  color: var(--th-color-warning);
  font-size: var(--th-text-base);
  flex-shrink: 0;
}
.th-header__notif-flash-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--th-space-1) var(--th-space-2-5);
  background: var(--th-color-accent);
  color: var(--th-neutral-0, #fff);
  font-size: var(--th-text-2xs);
  font-weight: var(--th-font-bold);
  border-radius: var(--th-radius-md);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bilgilendirme rows */
.th-header__notif-rows {
  display: flex;
  flex-direction: column;
  gap: var(--th-space-1-5);
}
.th-header__notif-row {
  display: flex;
  align-items: flex-start;
  gap: var(--th-space-2-5);
  padding: var(--th-space-2) var(--th-space-2-5);
  border-radius: var(--th-radius-lg);
  transition: background .12s;
}
.th-header__notif-row:hover {
  background: var(--th-neutral-50);
}
.th-header__notif-row-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--th-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--th-text-sm);
  flex-shrink: 0;
}
.th-header__notif-row-icon.green  { background: var(--th-emerald-50, #dcfce7); color: var(--th-color-success); }
.th-header__notif-row-icon.blue   { background: var(--th-blue-100); color: var(--th-color-info); }
.th-header__notif-row-icon.teal   { background: var(--th-teal-100); color: var(--th-teal-600); }
.th-header__notif-row-icon.orange { background: var(--th-orange-100); color: var(--th-color-accent-hover); }
.th-header__notif-row-icon.purple { background: var(--th-purple-100); color: var(--th-purple-600); }
.th-header__notif-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.th-header__notif-row-text strong {
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-semibold);
  color: var(--th-neutral-800);
}
.th-header__notif-row-text span {
  font-size: var(--th-text-xs);
  color: var(--th-neutral-500);
  line-height: 1.4;
}

/* Notification footer badges */
.th-header__notif-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--th-space-2);
  padding: var(--th-space-2-5) var(--th-space-4);
  border-top: 1px solid var(--th-neutral-100);
  background: var(--th-neutral-50);
}
.th-header__notif-footer-badge {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-500);
  display: flex;
  align-items: center;
  gap: var(--th-space-1);
}
.th-header__notif-footer-badge i {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-400);
}
.th-header__notif-footer-dot {
  width: 3px;
  height: 3px;
  background: var(--th-neutral-300);
  border-radius: var(--th-radius-circle);
}

/* RESPONSIVE (consolidated) */

/* 1200px */
@media (max-width: 1200px) {
  /* Layout */
  .location-btn {
    display: none;
  }
  .compare-action {
    display: none;
  }
  .mega-menu {
    min-width: 900px;
  }
  .mega-panel {
    grid-template-columns: repeat(2, 1fr) 180px;
  }

  /* Search */
  .th-header__search-btn span {
    display: none; /* Sadece ikon */
  }
  .th-header__search-btn {
    padding: 0 var(--th-space-4);
  }

  /* Actions */
  .th-header__action-btn {
    padding: var(--th-space-1-5) var(--th-space-2);
    gap: var(--th-space-1-5);
  }
  .th-header__action-text span {
    font-size: var(--th-text-2xs);
  }
  .th-header__action-text strong {
    font-size: var(--th-text-xs-plus);
  }

  /* Top bar */
  .th-header__top-bar-left .th-header__top-link i {
    display: none;
  }
  .th-header__top-link {
    padding: 0 var(--th-space-2);
    font-size: var(--th-text-xs);
  }

  /* Nav menu */
  .th-header__nav-menu a {
    padding: var(--th-space-2-5) var(--th-space-2-5);
    font-size: var(--th-text-xs-plus);
  }

  /* Kategoriler */
  .th-header__all-cats-btn {
    padding: 0 var(--th-space-3) 0 0;
    font-size: var(--th-text-sm);
  }
  .th-header__all-cats-flyout {
    width: 600px;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .th-header__top-promo {
    display: none;
  }
  .th-header__top-bar-left .th-header__top-link:nth-child(n+4) {
    display: none;
  }
  .th-header__top-bar-right .th-header__top-link:nth-child(4) {
    display: none;
  }
  .th-header__nav-bar-container {
    padding: 0 var(--th-space-4);
  }
  .th-header__nav-menu {
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }
  .th-header__nav-menu a {
    padding: var(--th-space-2-5) var(--th-space-2);
    font-size: var(--th-text-xs);
  }

  /* Tüm Kategoriler */
  .th-header__all-cats-flyout {
    width: 500px;
  }
  .th-header__all-cats-flyout-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* 992px */
@media (max-width: 992px) {
  /* Action dropdown — mobilde hover kapalı, is-open ile açılır */
  .th-header__action-item:hover .th-header__action-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    pointer-events: none;
  }
  .th-header__action-item.th-header__is-open .th-header__action-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Tüm Kategoriler gizle */
  .th-header__all-cats {
    display: none;
  }

  /* Bottom sheet tutma çubuğu */
  .th-header__cart-dropdown::before,
  .th-header__account-dropdown::before,
  .th-header__notification-dropdown::before {
    position: static;
    width: 40px;
    height: 4px;
    background: var(--th-neutral-300);
    border: none;
    border-radius: var(--th-radius-full);
    margin: var(--th-space-3) auto var(--th-space-2);
    transform: none;
  }

  /* Top bar + Nav bar — mobilde gizle */
  .th-header__top-bar {
    display: none;
  }
  .th-header__nav-bar {
    display: none;
  }
  .category-icons {
    display: none;
  }
  .search-category {
    display: none;
  }

  .th-header__main-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--th-neutral-100);
    transition: transform .25s ease, box-shadow .25s ease;
    min-height: auto;
  }
  .th-header__main-bar-container {
    padding: var(--th-space-2-5) var(--th-space-4);
    gap: var(--th-space-3);
    flex-wrap: wrap;
    overflow: hidden;
  }

  /* Scroll'da arama gizle — daha kompakt header */
  .th-header--scrolled .th-header__search-wrapper {
    display: none;
  }
  .th-header--scrolled .th-header__main-bar-container {
    padding: var(--th-space-2) var(--th-space-4);
  }

  /* Aşağı scroll — header yukarı kayar */
  .th-header--hidden {
    transform: translateY(-100%);
    box-shadow: none;
  }

  /* Hamburger görünür */
  .th-header__mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--th-space-1);
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    order: 1;
    flex-shrink: 0;
    border-radius: var(--th-radius-lg);
    transition: background .15s;
  }
  .th-header__mobile-menu-btn:hover {
    background: var(--th-neutral-100);
  }
  .th-header__mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--th-neutral-700, #374151);
    border-radius: 1px;
    transition: transform .2s;
  }

  /* Logo */
  .th-header__logo {
    order: 2;
    flex: 1;
    min-width: 0;
  }
  .th-header__logo-img {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }

  /* Konum butonu gizle */
  .location-btn {
    display: none;
  }

  /* Actions — kompakt, taşmasız */
  .th-header__header-actions {
    order: 3;
    gap: 2px;
    flex-shrink: 0;
  }
  .th-header__action-item {
    flex-shrink: 0;
  }
  .th-header__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--th-radius-circle);
    min-width: 0;
    min-height: 0;
  }
  .th-header__action-text {
    display: none;
  }
  .th-header__action-icon {
    font-size: 18px;
  }

  /* Badge mobil — sağ üst köşe, tutarlı konum */
  .th-header__action-badge {
    top: -2px;
    left: auto;
    right: -2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    padding: 0 var(--th-space-1);
  }

  /* Çan mobil */
  .th-header__bell-circle {
    width: 30px;
    height: 30px;
  }
  .th-header__bell-circle img {
    width: 15px;
    height: 15px;
  }
  .th-header__cart-btn {
    border: none;
    padding: 0;
  }

  /* Arama — alt satır, tam genişlik */
  .th-header__search-wrapper {
    order: 10;
    width: 100%;
    flex-basis: 100%;
    padding: 0;
    margin-top: -2px;
  }
  .th-header__search-form {
    height: 40px;
    border-radius: var(--th-radius-lg);
    border-width: 1.5px;
  }
  .th-header__search-input {
    height: 40px;
    padding-left: 14px;
    font-size: var(--th-text-sm);
  }
  .th-header__search-btn {
    width: 42px;
    height: 40px;
    font-size: var(--th-text-sm);
  }
  .th-header__voice-btn {
    width: 34px;
    height: 34px;
    font-size: var(--th-text-sm);
  }
  .th-header__search-dropdown {
    border-radius: var(--th-radius-lg);
    top: calc(100% + 2px);
  }

  /* Autocomplete mobil */
  .th-header__search-wrapper .easy-autocomplete-container {
    border-radius: 10px;
    max-height: 350px;
    top: calc(100% + 4px);
  }
  .th-header__search-wrapper .spsi-item img {
    width: 44px;
    height: 44px;
  }
  .th-header__search-wrapper .eac-item {
    padding: 8px 14px;
    font-size: var(--th-text-sm);
  }

  /* Dropdown'lar mobilde gizli */
  .th-header__notification-dropdown,
  .th-header__account-dropdown {
    display: none !important;
  }

  /* Mobil full-screen arama overlay */
  .th-header__search-wrapper.th-header__search-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--th-neutral-0, #fff);
    padding: var(--th-space-3);
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    order: unset;
    flex-basis: auto;
    animation: th-search-slideUp 0.25s ease;
  }
  @keyframes th-search-slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .th-header__search-wrapper.th-header__search-fullscreen .th-header__search-form {
    border-radius: var(--th-radius-lg);
    height: 48px;
    border-width: 2px;
    flex-shrink: 0;
  }
  .th-header__search-wrapper.th-header__search-fullscreen .th-header__search-input {
    height: 48px;
    font-size: var(--th-text-base);
  }
  .th-header__search-wrapper.th-header__search-fullscreen .th-header__search-dropdown {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    margin-top: var(--th-space-2);
    flex: 1;
    overflow-y: auto;
    border-radius: 0;
  }
  .th-header__search-wrapper.th-header__search-fullscreen .th-header__search-fullscreen-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--th-neutral-600);
    font-size: var(--th-text-lg);
    cursor: pointer;
    flex-shrink: 0;
    margin-right: var(--th-space-1);
  }
  @media (prefers-reduced-motion: reduce) {
    .th-header__search-wrapper.th-header__search-fullscreen {
      animation: none;
    }
  }
}

/* RESPONSIVE: MOBİL 768px */
@media (max-width: 768px) {
  .th-header__action-dropdown {
    min-width: 0;
    width: calc(100vw - 24px);
    max-width: 360px;
    right: 0;
    left: auto;
  }
  .th-header__search-dropdown {
    border-radius: var(--th-radius-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  .breadcrumb {
    display: none;
  }
  .pdp-container {
    margin-top: 15px;
  }
  .floating-buttons {
    bottom: var(--th-space-4);
    right: var(--th-space-4);
  }
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: var(--th-text-lg);
  }
  .trend-name {
    font-size: var(--th-text-2xs);
    color: var(--th-neutral-900);
    font-weight: var(--th-font-medium);
  }
  .th-header__action-badge {
    top: -3px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    font-size: 8px;
    padding: 0 3px;
  }
}

/* RESPONSIVE: 480px — küçük ekran */
@media (max-width: 480px) {
  .th-header__top-promo {
    font-size: var(--th-text-2xs);
  }
  .th-header__search-input::placeholder {
    font-size: var(--th-text-xs);
  }
  .th-header__action-text {
    display: none;
  }
  .th-header__search-popular {
    gap: var(--th-space-1);
  }
  .th-header__popular-tag {
    font-size: var(--th-text-2xs);
    padding: var(--th-space-1) var(--th-space-2);
  }
  .th-header__nav-menu {
    gap: var(--th-space-2);
    font-size: var(--th-text-xs);
  }
}

/* RESPONSIVE: MOBİL KÜÇÜK 576px */
@media (max-width: 576px) {
  .th-header__main-bar-container {
    padding: var(--th-space-2) var(--th-space-3);
    gap: var(--th-space-2);
  }
  .th-header__mobile-menu-btn {
    width: 32px;
    height: 32px;
  }
  .th-header__mobile-menu-btn span {
    width: 16px;
  }
  .th-header__logo-img {
    height: 24px;
    max-width: 110px;
  }
  .th-header__action-btn {
    width: 32px;
    height: 32px;
  }
  .th-header__action-icon {
    font-size: 16px;
  }
  .th-header__bell-circle {
    width: 26px;
    height: 26px;
  }
  .th-header__bell-circle img {
    width: 13px;
    height: 13px;
  }
  .th-header__search-form {
    height: 36px;
    border-radius: var(--th-radius-lg);
  }
  .th-header__search-input {
    height: 36px;
    padding-left: var(--th-space-3);
    font-size: var(--th-text-xs-plus);
  }
  .th-header__search-input::placeholder {
    font-size: var(--th-text-xs);
  }
  .th-header__search-btn {
    width: 36px;
    height: 36px;
    font-size: var(--th-text-xs-plus);
  }
  .th-header__voice-btn {
    width: 30px;
    height: 30px;
    font-size: var(--th-text-xs-plus);
  }
  /* Cart dropdown: bottom sheet */
  .th-header__cart-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    border-radius: var(--th-radius-2xl) var(--th-radius-2xl) 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    opacity: 1;
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: var(--th-z-modal);
  }
  .th-header__action-item.th-header__is-open .th-header__cart-dropdown {
    transform: translateY(0);
    visibility: visible;
  }

  /* Account dropdown: bottom sheet */
  .th-header__account-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    border-radius: var(--th-radius-2xl) var(--th-radius-2xl) 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    opacity: 1;
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: var(--th-z-modal);
    padding: var(--th-space-5);
  }
  .th-header__action-item.th-header__is-open .th-header__account-dropdown {
    transform: translateY(0);
    visibility: visible;
  }

  /* Notification dropdown: bottom sheet */
  .th-header__notification-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    border-radius: var(--th-radius-2xl) var(--th-radius-2xl) 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    opacity: 1;
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: var(--th-z-modal);
  }
  .th-header__action-item.th-header__is-open .th-header__notification-dropdown {
    transform: translateY(0);
    visibility: visible;
  }

  /* Dropdown acikken backdrop overlay */
  .th-header__action-item.th-header__is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    z-index: var(--th-z-modal);
    animation: fadeInOverlay 0.25s ease forwards;
  }

  @keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Autocomplete küçük mobil */
  .th-header__search-wrapper .easy-autocomplete-container {
    max-height: 300px;
  }
  .th-header__search-wrapper .spsi-item img {
    width: 40px;
    height: 40px;
  }
}

/* SKIP LINK (accessibility) */
.th-header__skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--th-header-accent, #36b257);
  color: var(--th-neutral-0, #fff);
  padding: var(--th-space-2) var(--th-space-4);
  border-radius: 0 0 var(--th-radius-lg) var(--th-radius-lg);
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}

.th-header__skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: var(--th-space-3) var(--th-space-6);
  background: var(--th-neutral-800);
  color: var(--th-neutral-0);
  border-radius: var(--th-radius-md, 8px);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* FOCUS VISIBLE (keyboard a11y) */
.th-header__header a:focus-visible,
.th-header__header button:focus-visible {
  outline: 2px solid var(--th-header-accent, #36b257);
  outline-offset: 2px;
  border-radius: var(--th-radius-sm);
}

/* === Mega Menu Submenu (footer.css'ten taşındı) === */
.subtitle-img img {
    max-height: 25px;
    margin-bottom: 5px
}
.single-menu-container .single-menu li .subtitle-img {
    font-weight: var(--th-font-medium);
    text-decoration: none;
    padding: 0;
    display: block;
    color: var(--th-color-text-inverse);
    transition: all .2s ease-in-out 0s;
    font-size: var(--th-text-md)
}
.single-menu-container .single-menu li .sub-single-item {
    padding: 0 15px
}

/* Sepet badge bounce (ürün eklenince) */
@keyframes badgeBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.th-header__cart-badge.bounce {
  animation: badgeBounce .4s ease;
}
.th-mobnav__cart-badge.bounce {
  animation: badgeBounce .4s ease;
}

/* OVERFLOW PROTECTION */
.th-header__all-cats-name,
.th-header__nav-menu a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* LANDSCAPE */
@media (max-height: 500px) and (orientation: landscape) {
  .th-header__top-bar {
    display: none;
  }
  .th-header__main-bar {
    min-height: 48px;
  }
}

/* FORCED-COLORS (Windows Yüksek Kontrast) */
@media (forced-colors: active) {
  .th-header__search-btn {
    border: 1px solid ButtonText;
  }
  .th-header__action-badge {
    border: 1px solid ButtonText;
  }
}

/* PRINT */
@media print {
  .th-header__top-bar,
  .th-header__search-wrapper,
  .th-header__header-actions,
  .th-header__action-dropdown,
  .th-header__all-cats-dropdown,
  .th-header__search-dropdown,
  .th-header__mobile-menu-btn {
    display: none !important;
  }
  .th-header__nav-bar {
    border-bottom: 1px solid #000;
  }
  .th-header__logo-img {
    width: 180px;
  }
}

/* SR-ONLY (screen reader) */
.th-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;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .th-header__header,
  .th-header__header *,
  .th-header__mobile-menu,
  .th-header__mobile-menu * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}