/* ==========================================================================
   BEYOĞLU TEKNOLOJİ - HEADER & MEGA MENU STYLES
   Kurumsal E-Ticaret, E-Dönüşüm ve Bilişim Çözümleri
   ========================================================================== */

/* 1. ÜST DUYURU VE BİLGİ BARI (Top Bar) */
.site-topbar {
  background-color: var(--dark-navy);
  color: #cbd5e1;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
  position: relative;
  z-index: 1001;
}

.topbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  min-width: 0;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FDEDED;
  color: #d12131;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.725rem;
  border: 1px solid #fcd7d9;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  transition: color var(--trans-fast);
}

.topbar-item:hover {
  color: #ffffff;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  color: #d12131;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-link {
  color: #cbd5e1;
  transition: color var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.topbar-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

.topbar-link:hover {
  color: #ffffff;
}

.topbar-phone {
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.topbar-phone svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

/* 2. ORTA ANA HEADER (Main Header) */
.site-main-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.header-inside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Sol: Logo */
.header-logo-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  height: 52px;
  width: auto;
  transition: transform var(--trans-fast);
}

.site-logo:hover {
  transform: translateY(-1px);
}

.site-logo img {
  height: 52px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
}

/* Orta: Geniş Ürün & Hizmet Arama Alanı */
.header-search-area {
  flex: 1;
  max-width: 680px;
  margin: 0 1rem;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.search-form:focus-within {
  border-color: #d12131;
  box-shadow: 0 0 0 3px #FDEDED;
}

.search-category-select {
  background-color: #f8fafc;
  border: none;
  border-right: 1px solid #e2e8f0;
  padding: 0.75rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--dark-slate);
  cursor: pointer;
  outline: none;
  border-top-left-radius: var(--radius-full);
  border-bottom-left-radius: var(--radius-full);
  max-width: 140px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-inside {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
  background: transparent;
}

.search-input::placeholder {
  color: #94a3b8;
  font-size: 0.875rem;
}

.search-submit-btn {
  background: #d12131;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--trans-fast), transform var(--trans-fast);
}

.search-submit-btn:hover {
  background: #b81423;
}

.search-submit-btn:active {
  background: #9e101d;
}

.search-submit-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   UI/UX PRO MAX - AKILLI ARAMA VE ÖNERİ SİSTEMİ (Search & Autocomplete)
   ========================================================================== */

/* Arama Alanı Konteyneri */
.header-search-area {
  position: relative;
}

/* Arama Temizleme Butonu (Clear 'X') */
.search-clear-btn {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: color var(--trans-fast), background-color var(--trans-fast);
}

.search-clear-btn:hover {
  color: #1a1f2e;
  background-color: #e2e8f0;
}

.search-clear-btn.active {
  display: flex;
}

/* Anlık Arama Sonuç Paneli (Live Autocomplete Dropdown) */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  max-height: 480px;
  overflow-y: auto;
  display: none;
  animation: searchDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-dropdown.active {
  display: block;
}

/* Arama İçi Popüler Aramalar ve Hızlı Öneriler */
.search-popular-box {
  padding: 1rem 1.25rem;
}

.search-popular-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.785rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
}

.search-popular-title svg {
  width: 14px;
  height: 14px;
  color: #d12131;
}

.search-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.search-chip:hover {
  background-color: #FDEDED;
  color: #d12131;
  border-color: rgba(209, 33, 49, 0.3);
  transform: translateY(-1px);
}

.search-res-group-title {
  padding: 0.6rem 1.25rem;
  background-color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-res-group-title .count-badge {
  background-color: #FDEDED;
  color: #d12131;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.search-res-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  gap: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease, border-left-color 0.15s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.search-res-item:hover,
.search-res-item.keyboard-selected {
  background-color: #fdf2f3;
  border-left-color: #d12131;
}

.search-res-item:last-child {
  border-bottom: none;
}

.search-res-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  flex-shrink: 0;
}

.search-res-info {
  flex: 1;
  min-width: 0;
}

.search-res-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-res-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-res-cat .stock-pill {
  color: #16a34a;
  background-color: #dcfce7;
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.search-res-price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: right;
}

.search-highlight {
  background-color: #fef08a;
  color: #854d0e;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

/* Sıfır Sonuç - UI/UX Pro Max Anti-Pattern Koruması */
.search-no-results-box {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.search-no-results-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FDEDED;
  color: #d12131;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.search-no-results-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1f2e;
  margin-bottom: 0.35rem;
}

.search-no-results-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.search-no-results-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.search-action-btn {
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-action-btn.btn-all-products {
  background-color: #d12131;
  color: #ffffff;
}

.search-action-btn.btn-all-products:hover {
  background-color: #b81423;
}

.search-action-btn.btn-support {
  background-color: #25d366;
  color: #ffffff;
}

.search-action-btn.btn-support:hover {
  background-color: #1eb855;
}

/* Mobil Çekmece İçi Arama Sonuç Paneli */
.mobile-search-results {
  margin-top: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.mobile-search-results.active {
  display: block;
}

/* Sağ: Kullanıcı Eylemleri (Hesabım, Favoriler, Sepet) */
.header-actions-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--trans-fast);
  position: relative;
  color: var(--dark-navy);
}

.header-action-btn:hover {
  background-color: #f8fafc;
}

.action-icon-box {
  position: relative;
  width: 40px;
  height: 40px;
  background-color: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-slate);
  transition: background-color var(--trans-fast), color var(--trans-fast);
}

.header-action-btn:hover .action-icon-box {
  background-color: #FDEDED;
  color: #d12131;
}

.action-icon-box svg {
  width: 20px;
  height: 20px;
}

.action-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: #d12131;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.action-badge-count.cart-count {
  background-color: #d12131;
}

.action-text-box {
  display: flex;
  flex-direction: column;
}

.action-main-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.2;
}

.action-sub-title {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Sepet Hover Önizleme (Mini Cart Dropdown) */
.header-cart-dropdown {
  position: relative;
}

.mini-cart-preview {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--trans-fast), transform var(--trans-fast), visibility var(--trans-fast);
}

.header-cart-dropdown:hover .mini-cart-preview,
.mini-cart-preview.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mini-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.mini-cart-items {
  max-height: 240px;
  overflow-y: auto;
  margin: 0.75rem 0;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mini-cart-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
}

.mini-cart-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1.25;
}

.mini-cart-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mini-cart-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #d12131;
  font-size: 0.85rem;
}

.mini-cart-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.mini-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.mini-cart-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-mini-cart {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--trans-fast);
}

.btn-mini-cart-outline {
  border: 1px solid #d12131;
  color: #d12131;
  background: transparent;
}

.btn-mini-cart-outline:hover {
  background: #FDEDED;
}

.btn-mini-cart-solid {
  background: #d12131;
  color: #ffffff;
}

.btn-mini-cart-solid:hover {
  background: #b81423;
}

/* 3. ALT KATEGORİ VE MEGA MENÜ BAR (Category Navigation Bar) */
.site-nav-bar {
  background-color: #ffffff;
  color: #1a1f2e;
  position: relative;
  z-index: 999;
  border-bottom: 2px solid #e1e7ef;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nav-bar-container {
  display: flex;
  align-items: center;
}

/* Tüm Kategoriler Sabit Butonu */
.all-categories-btn {
  background-color: #d12131;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  transition: all var(--trans-fast);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  margin: 0.35rem 0.75rem 0.35rem 0;
}

.all-categories-btn:hover {
  background-color: #b81423;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(209, 33, 49, 0.25);
}

.all-categories-btn svg {
  width: 18px;
  height: 18px;
}

/* Kategori Menü Listesi (Desktop) */
.main-nav-list {
  display: flex;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0.15rem;
}

.main-nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: static;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1f2e;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.nav-link:hover, .nav-item:hover > .nav-link {
  background-color: #FDEDED;
  color: #d12131;
}

.nav-item.active > .nav-link {
  background-color: #FDEDED;
  color: #d12131;
  font-weight: 700;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  color: #d12131;
}

.nav-badge-pill {
  background-color: #d12131;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.2rem;
}

/* 4. MEGA MENÜ (Full-Width Mega Dropdown) */
.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 3px solid #d12131;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--trans-normal), transform var(--trans-normal), visibility var(--trans-normal);
  z-index: 1000;
  padding: 2rem 0;
  color: var(--text-main);
}

.nav-item:hover .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 280px;
  gap: 2rem;
}

.mega-menu-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-navy);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #FDEDED;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mega-menu-col-title svg {
  width: 18px;
  height: 18px;
  color: #d12131;
}

.mega-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mega-sub-link {
  font-size: 0.85rem;
  color: var(--dark-charcoal);
  padding: 0.25rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-xs);
  transition: color var(--trans-fast), background-color var(--trans-fast), transform var(--trans-fast);
}

.mega-sub-link:hover {
  color: #d12131;
  background-color: #FDEDED;
  transform: translateX(4px);
}

.mega-sub-link .item-count {
  font-size: 0.725rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

/* Mega Menü Yan Promosyon Kartı */
.mega-promo-card {
  background: #FDEDED;
  border: 1px solid #fcd7d9;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: #1a1f2e;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.mega-promo-badge {
  background: #d12131;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.mega-promo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1f2e;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.mega-promo-desc {
  font-size: 0.8rem;
  color: #5f6779;
  margin-bottom: 1rem;
}

.mega-promo-btn {
  background-color: #d12131;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background-color var(--trans-fast);
}

.mega-promo-btn:hover {
  background-color: #b81423;
  color: #ffffff;
}

/* 5. MOBİL HEADER & YAN MENÜ ÇEKMECESİ (Off-Canvas Sidebar) */
.mobile-header {
  display: none; /* Desktop'ta gizli, responsive.css ile 991px altında aktif */
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.mobile-header-inside {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-trigger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-navy);
  border-radius: var(--radius-sm);
}

.mobile-logo {
  height: 38px;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-action-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--dark-navy);
  border-radius: 50%;
  background-color: #f1f5f9;
}

/* Mobil Yan Çekmece */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-normal), visibility var(--trans-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%;
  max-width: 360px;
  background-color: #ffffff;
  z-index: 1150;
  transform: translateX(-100%);
  transition: transform var(--trans-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--dark-navy);
  color: #ffffff;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.mobile-drawer-search {
  margin-bottom: 1.25rem;
}

.mobile-drawer-user {
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

/* Mobil Akordeon Kategori Ağacı */
.mobile-accordion-list {
  display: flex;
  flex-direction: column;
}

.mobile-acc-item {
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-navy);
  cursor: pointer;
}

.mobile-acc-header svg.chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--trans-fast);
  color: var(--text-muted);
}

.mobile-acc-item.open .mobile-acc-header svg.chevron {
  transform: rotate(180deg);
}

.mobile-acc-content {
  display: none;
  padding: 0.25rem 0.5rem 0.85rem 1rem;
  background-color: #f8fafc;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.mobile-acc-item.open .mobile-acc-content {
  display: block;
}

.mobile-acc-link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.mobile-acc-link:hover {
  color: var(--primary);
}

/* 6. MOBİL YAPIŞKAN ALT MENÜ (Sticky Bottom Bar) */
.mobile-bottom-nav {
  display: none; /* responsive.css ile 768px altında aktif */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  z-index: 998;
  padding: 0.4rem 0.75rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.675rem;
  font-weight: 600;
  position: relative;
  padding: 0.25rem 0.5rem;
  transition: color var(--trans-fast);
}

.mobile-bottom-item svg {
  width: 22px;
  height: 22px;
}

.mobile-bottom-item.active, .mobile-bottom-item:hover {
  color: #d12131;
}

.mobile-bottom-badge {
  position: absolute;
  top: 0px;
  right: 4px;
  background-color: #d12131;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
