/* ========================================
   HEADER CSS — tilbehome-pro
   Rebuilt from working backup (tilbehead19)
   Prefix: th-header__
======================================== */

/* =========================
   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: #ffffff;
  color: #374151;
  height: 30px;
}

.th-header__notification-btn > i.fa-bell {
  display: inline-block;
  transform-origin: top center;
  animation: bellAutoRing 4s ease-in-out infinite;
  will-change: transform;
  color: #fff;
  font-size: 22px;
}

@keyframes bellAutoRing {
  0%, 85%, 100% { transform: rotate(0); }
  88%  { transform: rotate(14deg); }
  90%  { transform: rotate(-12deg); }
  92%  { transform: rotate(8deg); }
  94%  { transform: rotate(-6deg); }
  96%  { transform: rotate(3deg); }
}

.th-header__top-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
}

/* Left info */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.th-header__nav-link-hot {
  color: #E53935 !important;
  background: #FEECEB !important;
  border-radius: 6px !important;
}

.th-header__nav-link-hot:hover {
  background: #E53935 !important;
  color: #FFFFFF !important;
}

.th-header__nav-link-hot i {
  font-size: 10px;
  margin-left: 3px;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #374151;
}

.top-info-item i {
  font-size: 11px;
  color: #F27A1A;
}

/* Right links */
.th-header__top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.th-header__top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #374151;
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

.th-header__top-link:hover {
  background: #F3F4F6;
  color: #111827;
}

.th-header__top-divider {
  width: 1px;
  height: 12px;
  background: rgba(17, 24, 39, 0.08);
  margin: 0 4px;
}

/* WhatsApp highlight */
.th-header__top-link.th-header__whatsapp {
  color: #1FA855;
  font-weight: 600;
}

.th-header__top-link.th-header__whatsapp:hover {
  background: rgba(31,168,85,0.12);
  color: #1FA855;
}

/* Highlight CTA (e.g., toptan) */
.th-header__top-link.th-header__highlight {
  color: #374151;
  font-weight: 500;
}

/* Top bar responsive */
@media (max-width: 992px) {
  .top-bar-left { display: none; }
  .th-header__top-bar-right { justify-content: center; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 576px) {
  .th-header__top-link span { display: none; }
  .th-header__top-link { padding: 8px 10px; }
}

/* ========================================
   MAIN BAR
======================================== */
.th-header__main-bar {
  height: 85px;
  border-bottom: 1px solid #ebebeb;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0px 20px 0px;
}

.th-header__main-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 37px;
}

.th-header__logo {
  display: flex;
  align-items: center;
  padding-right: 25px;
}

.th-header__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 1024px) {
  .th-header__logo-img {
    height: 36px;
  }
}

@media (max-width: 768px) {
  .th-header__logo-img {
    height: 32px;
    width: 130px;
  }
}

/* Location Button */
.location-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #F8FAFC;
  border-radius: 10px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.location-btn:hover {
  background: #F7F8F8;
}

.location-btn > i:first-child {
  font-size: 13px;
  color: #F27A1A;
}

.location-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.location-text span {
  font-size: 9px;
  color: #6B7280;
}

.location-text strong {
  font-size: 11px;
  color: #111827;
  font-weight: 500;
}

.location-btn > i:last-child {
  font-size: 10px;
  color: #6B7280;
}

/* ========================================
   SEARCH
======================================== */
.th-header__search-wrapper {
  flex: 1;
  max-width: 700px;
  position: relative;
}

.th-header__search-form {
  display: flex;
  align-items: stretch;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.th-header__search-form:focus-within {
  background: #ffffff;
  border-color: #F27A1A;
  box-shadow: 0 0 0 3px rgba(242,122,26,0.22);
}

/* Search Category */
.search-category {
  position: relative;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 44px;
  font-size: 13px;
  color: #374151;
  background: #F3F4F6;
  border-right: 1px solid #E5E7EB;
  transition: all 0.25s ease;
}

.category-btn:hover {
  background: #F3F4F6;
  color: #111827;
}

.category-btn i {
  font-size: 10px;
}

.category-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(17,24,39,0.14);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.search-category:hover .category-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cat-option {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: #374151;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.cat-option:hover {
  background: #F8FAFC;
  color: #111827;
}

.cat-option.th-header__active {
  color: #F27A1A;
  font-weight: 500;
  background: rgba(37,99,235,0.10);
}

/* Search Input */
.th-header__search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.th-header__search-input {
  width: 100%;
  height: 44px;
  padding: 0 5px 0 16px;
  border: none;
  background: #f5f5f5;
  font-size: 14px;
  color: #111827;
  outline: none;
}

.th-header__search-input:focus {
  background: #ffffff;
}

.th-header__search-input:hover {
  background: #ffffff;
  color: #111827;
}

.th-header__search-input::placeholder {
  color: #6B7280;
}

.search-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.search-clear:hover {
  background: #F8FAFC;
  color: #111827;
}

.th-header__search-input:not(:placeholder-shown) + .search-clear {
  display: flex;
}

/* Search Button */
.th-header__search-btn {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f27a1a;
  font-size: 16px;
  transition: all 0.25s ease;
}

.th-header__search-btn:hover {
  background: #f27a1a;
  color: #ffffff;
}

.th-header__search-btn:active {
  background: #D65F0B;
}

/* Search Dropdown */
.th-header__search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(17,24,39,0.14);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.th-header__search-wrapper:focus-within .th-header__search-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.th-header__search-section {
  margin-bottom: 20px;
}

.th-header__search-section:last-child {
  margin-bottom: 0;
}

.th-header__search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.th-header__search-section-header span {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.th-header__clear-history {
  font-size: 12px;
  color: #F27A1A;
  transition: color 0.25s ease;
}

.th-header__clear-history:hover {
  color: #E8680E;
}

/* Search History */
.th-header__search-history {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-header__history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.th-header__history-item:hover {
  background: #F8FAFC;
}

.th-header__history-item i {
  font-size: 12px;
  color: #6B7280;
}

.th-header__history-item span {
  font-size: 13px;
  color: #374151;
}

/* Search Popular */
.th-header__search-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.th-header__popular-tag {
  padding: 6px 14px;
  background: #fff;
  border-radius: 9999px;
  font-size: 12px;
  color: #374151;
  transition: all 0.25s ease;
  border: 1px solid #E5E7EB;
}

.th-header__popular-tag:hover {
  color: #F27A1A;
  border-color: #F27A1A;
}

/* Search Trends */
.search-trends {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.trend-item:hover {
  background: #F8FAFC;
}

.trend-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
}

.trend-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trend-name {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
}

.trend-price {
  font-size: 13px;
  color: #DC2626;
  font-weight: 600;
}

/* ========================================
   HEADER ACTIONS
======================================== */
.th-header__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.th-header__action-item {
  position: relative;
}

.th-header__action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.th-header__action-btn:hover {
  background: #F8FAFC;
}

.th-header__action-btn > i {
  font-size: 20px;
  color: #374151;
}

.th-header__action-badge {
  position: absolute;
  top: -2px;
  left: 20px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4dc761;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0 5px;
}

.th-header__cart-badge {
  background: #4dc761;
}

.th-header__action-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.th-header__action-text span {
  font-size: 10px;
  color: #6B7280;
}

.th-header__action-text strong {
  font-size: 12px;
  color: #111827;
  font-weight: 400;
}

.th-header__action-dropdown {
  position: absolute;
  display: block;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(17,24,39,0.14);
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.25s ease;
  z-index: 9999;
}

/* Desktop: hover ile aciilsin */
@media (min-width: 992px) {
  .th-header__action-item:hover .th-header__action-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobil: sadece is-open ile acilsin */
@media (max-width: 991px) {
  .th-header__action-item:hover .th-header__action-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
  }
  .th-header__action-item.th-header__is-open .th-header__action-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* 577-768px arasi: dropdown ekran disina tasmasin */
@media (max-width: 768px) {
  .th-header__action-dropdown {
    min-width: 0;
    width: calc(100vw - 24px);
    max-width: 360px;
    right: 0;
    left: auto;
  }
}

/* Account Dropdown */
.th-header__account-dropdown {
  padding: 20px;
}

.th-header__dropdown-header {
  text-align: center;
  margin-bottom: 16px;
}

.th-header__dropdown-header span {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.th-header__dropdown-header p {
  font-size: 13px;
  color: #6B7280;
  margin-top: 4px;
}

.th-header__dropdown-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.th-header__btn-login {
  padding: 10px;
  background: #F27A1A;
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid #F27A1A;
}

.th-header__btn-login:hover {
  background: #E8680E;
}

.th-header__btn-login:active {
  background: #D65F0B;
}

.th-header__btn-register {
  padding: 10px;
  background: #F8FAFC;
  color: #111827;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.th-header__btn-register:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.th-header__dropdown-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 16px 0;
}

.th-header__dropdown-nav {
  display: flex;
  flex-direction: column;
}

.th-header__dropdown-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.th-header__dropdown-nav a:hover {
  background: #F8FAFC;
  color: #F27A1A;
}

.th-header__dropdown-nav a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

/* Cart Dropdown */
.th-header__cart-dropdown {
  width: 380px;
}

.th-header__cart-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
}

.th-header__cart-dropdown-header span:first-child {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.th-header__cart-count {
  font-size: 12px;
  color: #6B7280;
}

.th-header__cart-dropdown-items {
  max-height: 280px;
  overflow-y: auto;
  padding: 12px 20px;
}

.th-header__cart-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #E5E7EB;
}

.th-header__cart-dropdown-item:last-child {
  border-bottom: none;
}

.th-header__cart-dropdown-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
}

.th-header__cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-header__cart-item-name {
  font-size: 11px;
  color: #111827;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-header__cart-item-variant {
  font-size: 11px;
  color: #6B7280;
}

.th-header__cart-item-price {
  font-size: 14px;
  color: #DC2626;
  font-weight: 600;
}

.th-header__cart-item-remove {
  padding: 6px;
  color: #6B7280;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.th-header__cart-item-remove:hover {
  background: #F8FAFC;
  color: #DC2626;
}

.th-header__cart-dropdown-footer {
  padding: 16px 20px;
  background: #fff;
  border-radius: 0 0 14px 14px;
}

.th-header__cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.th-header__cart-subtotal span {
  font-size: 14px;
  color: #374151;
}

.th-header__cart-subtotal strong {
  font-size: 18px;
  color: #111827;
}

.th-header__cart-free-shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(22,163,74,0.10);
  border-radius: 10px;
  margin-bottom: 20px;
}

.th-header__cart-free-shipping i {
  color: #16A34A;
  font-size: 14px;
}

.th-header__cart-free-shipping span {
  font-size: 12px;
  color: #16A34A;
}

.th-header__cart-free-shipping strong {
  color: #16A34A;
}

.th-header__cart-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.th-header__btn-view-cart {
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border-color: #111827;
  color: #ffffff;
  background: #111827;
}

.th-header__btn-view-cart:hover {
  border: 1px solid #111827;
  color: #111827;
  background: #ffffff;
}

.th-header__btn-checkout {
  padding: 12px;
  background: #F27A1A;
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid #f27a1a;
}

.th-header__btn-checkout:hover {
  background: #ffffff;
  color: #f27a1a;
  border: 1px solid #f27a1a;
}

.th-header__btn-checkout:active {
  background: #D65F0B;
}

/* Mobile Menu Button */
.th-header__mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.th-header__mobile-menu-btn span {
  display: block;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ========================================
   NAVIGATION BAR
======================================== */
.th-header__nav-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.th-header__nav-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Categories Button */
.nav-categories {
  position: relative;
}

.categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #F27A1A;
  color: #FFFFFF;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.categories-btn:hover {
  background: #E8680E;
}

.categories-btn:active {
  background: #D65F0B;
}

.categories-btn i:last-child {
  font-size: 10px;
  margin-left: 4px;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(17,24,39,0.14);
  min-width: 1000px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 100;
  border: 1px solid #E5E7EB;
}

.nav-categories:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-sidebar {
  width: 240px;
  padding: 16px;
  border-radius: 14px 0 0 14px;
}

.mega-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #374151;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.mega-category:hover,
.mega-category.th-header__active {
  background: #FFFFFF;
  color: #F27A1A;
}

.mega-category i:first-child {
  width: 20px;
  text-align: center;
  font-size: 14px;
}

.mega-category span {
  flex: 1;
}

.mega-category i:last-child {
  font-size: 10px;
  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: 24px;
}

.mega-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr) 200px;
  gap: 24px;
}

.mega-panel.th-header__active {
  display: grid;
}

.mega-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E5E7EB;
}

.mega-column a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: #374151;
  transition: color 0.25s ease;
}

.mega-column a:hover {
  color: #F27A1A;
}

.mega-featured {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}

.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: 16px;
  background: linear-gradient(to top, rgba(19,26,34,0.85), transparent);
  color: #FFFFFF;
}

.mega-featured-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #F27A1A;
  color: #111827;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  width: fit-content;
}

.mega-featured h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mega-featured-cta {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-featured-cta i {
  font-size: 10px;
}

/* Nav Menu */
.th-header__nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.th-header__nav-menu li a {
  display: block;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  border-radius: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.th-header__nav-menu li a:hover {
  color: #E53935;
}

/* Nav Promo */
.nav-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(220,38,38,0.10);
  color: #DC2626;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-promo:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.promo-badge {
  padding: 2px 8px;
  background: #DC2626;
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
}

.nav-promo:hover .promo-badge {
  background: #FFFFFF;
  color: #DC2626;
}

/* ========================================
   NAV QUICK (Kupon / Yeni Gelenler / Viral)
======================================== */
.nav-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-pill i {
  font-size: 12px;
  color: #F27A1A;
}

.nav-pill:hover {
  background: #FFF1E7;
  border-color: #F27A1A;
  color: #111827;
}

.nav-pill:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .th-header__header.th-header__scrolled .th-header__main-bar {
    height: auto;
  }
}

/* ========================================
   CATEGORY ICONS
======================================== */
.category-icons {
  background: #FFFFFF;
  padding: 16px 0;
  border-bottom: 1px solid #E5E7EB;
}

.category-icons-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  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: #FFFFFF;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 9999px;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  z-index: 10;
  transition: all 0.25s ease;
}

.category-scroll-btn:hover {
  background: #F27A1A;
  border-color: #F27A1A;
  color: #FFFFFF;
}

.scroll-left {
  left: 8px;
}

.scroll-right {
  right: 8px;
}

.category-icons-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 48px;
}

.category-icons-track::-webkit-scrollbar {
  display: none;
}

.category-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  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: 9999px;
  color: #2563EB;
  font-size: 22px;
  transition: all 0.25s ease;
}

.category-icon-item:hover .category-icon-circle {
  background: #2563EB;
  color: #FFFFFF;
}

.category-icon-circle.new {
  background: #FEF5E7;
  color: #F27A1A;
}

.category-icon-item:hover .category-icon-circle.new {
  background: #F27A1A;
  color: #FFFFFF;
}

.category-icon-item span {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
  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: 1100;
  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: #FFFFFF;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.th-header__mobile-menu.th-header__active {
  transform: translateX(0);
}

.th-header__mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
}

.th-header__mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #374151;
  transition: all 0.25s ease;
}

.th-header__mobile-menu-close:hover {
  background: #F8FAFC;
}

.th-header__mobile-menu-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #F8FAFC;
}

.th-header__mobile-user-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdecea;
  border-radius: 9999px;
  color: #f27a1a;
  font-size: 20px;
}

.th-header__mobile-user-info {
  display: flex;
  flex-direction: column;
}

.th-header__mobile-user-info span {
  font-size: 12px;
  color: #6B7280;
}

.th-header__mobile-user-info a {
  font-size: 14px;
  font-weight: 600;
  color: #f27a1a;
}

.th-header__mobile-menu-search {
  position: relative;
  padding: 16px 20px;
}

.th-header__mobile-menu-search input {
  width: 100%;
  padding: 12px 16px;
  padding-right: 44px;
  background: #F8FAFC;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.th-header__mobile-menu-search input:focus {
  border-color: #F27A1A;
  box-shadow: 0 0 0 3px rgba(242,122,26,0.22);
}

.th-header__mobile-menu-search i {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  color: #6B7280;
}

.th-header__mobile-menu-nav {
  padding: 12px 8px;
}

.th-header__mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: #374151;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.th-header__mobile-nav-item:hover {
  background: #F8FAFC;
  color: #F27A1A;
}

.th-header__mobile-nav-item i:first-child {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.th-header__mobile-nav-item span {
  flex: 1;
}

.th-header__mobile-nav-item i:last-child {
  font-size: 12px;
  color: #6B7280;
}

.mobile-nav-badge {
  padding: 2px 8px;
  background: #F27A1A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  border-radius: 9999px;
}

.th-header__mobile-menu-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 8px 20px;
}

.th-header__mobile-menu-nav.th-header__secondary .th-header__mobile-nav-item {
  color: #6B7280;
  font-size: 13px;
}

.th-header__mobile-menu-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #E5E7EB;
}

.th-header__mobile-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.th-header__mobile-whatsapp:hover {
  background: #1FA855;
}

.th-header__mobile-whatsapp i {
  font-size: 18px;
}

/* ========================================
   FLOATING BUTTONS
======================================== */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.floating-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(17,24,39,0.10);
  transition: all 0.25s ease;
}

.whatsapp-float {
  background: #25D366;
  color: #FFFFFF;
}

.whatsapp-float:hover {
  background: #1FA855;
  transform: scale(1.1);
}

.scroll-top {
  background: #F27A1A;
  color: #FFFFFF;
  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: #E8680E;
}

.scroll-top:active {
  background: #D65F0B;
}

/* ========================================
   NOTIFICATION SYSTEM
======================================== */
.th-header__notification-btn {
  position: relative;
  border-color: #fff;
  margin: 0px !important;
  width: 40px;
  height: 40px;
  background: #4dc761;
  border-radius: 50px;
  animation: none;
}

.notification-badge {
  background: #F27A1A;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Notification Dropdown */
.th-header__notification-dropdown {
  width: 420px;
  max-height: 520px;
  padding: 0;
  overflow: hidden;
}

.th-header__notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 10;
}

.th-header__notification-tabs {
  display: flex;
  gap: 8px;
}

.th-header__notification-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: 0.25s ease;
}

.th-header__notification-tab.th-header__active {
  background: #F27A1A;
  color: #FFFFFF;
}

.th-header__notification-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #6B7280;
  cursor: pointer;
  transition: 0.25s ease;
}

.th-header__notification-close:hover {
  background: #F3F4F6;
  color: #111827;
}

/* Notification Content */
.th-header__notification-content {
  max-height: 440px;
  overflow-y: auto;
}

.th-header__notification-tab-content {
  display: none;
}

.th-header__notification-tab-content.th-header__active {
  display: block;
}

/* Notification Item */
.th-header__notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
  transition: 0.25s ease;
  position: relative;
}

.th-header__notification-item:last-child {
  border-bottom: none;
}

.th-header__notification-item:hover {
  background: #F8FAFC;
}

.th-header__notification-item:hover .th-header__notification-arrow {
  transform: translateX(4px);
  color: #F27A1A;
}

/* Notification Image */
.th-header__notification-image {
  width: 70px;
  height: 105px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
}

.th-header__notification-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Notification Info */
.th-header__notification-info {
  flex: 1;
  min-width: 0;
}

.th-header__notification-title {
  font-size: 11px;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-header__notification-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.th-header__price-old {
  font-size: 11px;
  color: #6B7280;
  text-decoration: line-through;
}

.th-header__price-new {
  font-size: 16px;
  font-weight: 600;
  color: #DC2626;
}

/* Notification Arrow */
.th-header__notification-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: 0.25s ease;
}

/* Empty State */
.th-header__notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.th-header__notification-empty i {
  font-size: 48px;
  color: #AAB7B8;
  margin-bottom: 16px;
  opacity: 0.5;
}

.th-header__notification-empty p {
  font-size: 13px;
  color: #6B7280;
}

/* Notification Scrollbar */
.th-header__notification-content::-webkit-scrollbar {
  width: 6px;
}

.th-header__notification-content::-webkit-scrollbar-track {
  background: #F8FAFC;
}

.th-header__notification-content::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 9999px;
}

.th-header__notification-content::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* Bottom sheet ust tutma cubugu */
.th-header__cart-dropdown::before,
.th-header__account-dropdown::before,
.th-header__notification-dropdown::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 9999px;
  margin: 12px auto 8px;
}

/* 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: #F27A1A;
  color: #fff;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
  .location-btn {
    display: none;
  }
  .compare-action {
    display: none;
  }
  .mega-menu {
    min-width: 900px;
  }
  .mega-panel {
    grid-template-columns: repeat(2, 1fr) 180px;
  }
}

@media (max-width: 992px) {
  .th-header__top-bar {
    display: none;
  }
  .th-header__nav-bar {
    display: none;
  }
  .category-icons {
    display: none;
  }
  .search-category {
    display: none;
  }
  .th-header__action-text {
    display: none;
  }
  .th-header__mobile-menu-btn {
    display: flex;
  }
  .th-header__header-actions {
    gap: 4px;
  }
  .th-header__action-btn {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .th-header__search-dropdown {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    box-shadow: none;
    border: 1px solid rgba(17, 24, 39, 0.08);
    transition: all 0.25s ease;
  }
  .th-header__search-wrapper.th-header__active .th-header__search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .th-header__main-bar-container {
    padding: 0 16px;
    gap: 12px;
  }
  .th-header__logo {
    font-size: 22px;
  }
  .breadcrumb {
    display: none;
  }
  .pdp-container {
    margin-top: 15px;
  }
  .th-header__search-wrapper {
    position: relative;
    display: block;
    flex: 1;
    max-width: none;
  }
  .th-header__search-form {
    border-radius: 8px;
  }
  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  .trend-name {
    font-size: 10px;
    color: #111827;
    font-weight: 500;
  }
  /* Main bar duzeni */
  .th-header__main-bar {
    height: auto;
    padding: 0px 0 10px;
  }
  .th-header__main-bar-container {
    flex-wrap: wrap;
    padding: 0 12px;
    gap: 10px;
  }
  /* Hamburger menu gorunur ve solda */
  .th-header__mobile-menu-btn {
    display: flex;
    order: 1;
  }
  /* Logo ortada degil, hamburger'dan sonra */
  .th-header__logo {
    order: 2;
    font-size: 20px;
    margin-right: auto;
    padding-right: 0px;
  }
  /* Konum butonu gizle */
  .location-btn {
    display: none;
  }
  /* Aksiyon butonlari kucult */
  .th-header__header-actions .th-header__action-btn {
    padding: 6px;
  }
  .th-header__header-actions .th-header__action-btn > i {
    font-size: 22px;
  }
  /* Action text gizle */
  .th-header__action-text {
    display: none;
  }
  /* Arama - Alt satira gec, full genislik */
  .th-header__search-wrapper {
    order: 4;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    position: relative;
    display: block;
  }
  .th-header__search-form {
    border-radius: 8px;
  }
  /* Kategori dropdown gizle */
  .search-category {
    display: none;
  }
}

@media (max-width: 768px) {
  .th-header__header-actions .mobile-search-btn {
    display: none;
  }
  .th-header__action-badge {
    position: absolute;
    top: -5px;
    left: 16px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4dc761;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0 5px;
  }
}

@media (max-width: 768px) {
  .th-header__header-actions {
    order: 3;
    gap: 5px;
    margin-right: 0px;
  }
}

@media (max-width: 576px) {
  /* 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: 16px 16px 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: 1300;
  }
  .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: 16px 16px 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: 1300;
    padding: 20px;
  }
  .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: 16px 16px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    opacity: 1;
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 1300;
  }
  .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: 1299;
    animation: fadeInOverlay 0.25s ease forwards;
  }

  @keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

@media (max-width: 768px) {
  .th-header__notification-dropdown {
    width: 360px;
    max-width: calc(100vw - 24px);
    right: 0;
    left: 10px;
    top: 100px;
  }
  .th-header__notification-item {
    padding: 12px 16px;
  }
  .th-header__notification-image {
    width: 60px;
    height: 90px;
  }
}

/* ========================================
   SKIP LINK (accessibility)
======================================== */
.th-header__skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #F27A1A;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
}

.th-header__skip-link:focus {
  top: 0;
}
