/* ================================================================
   account.css — TilbeHome Pro
   ================================================================
   TABLE OF CONTENTS:
   1. Sidebar (Profile, Wallet, Navigation)
   2. Dashboard (Welcome, Stats)
   3. Orders List
   4. Order Detail
   5. Favorites
   6. Empty State
   7. General Account Form Overrides
   8. Responsive Overrides
   9. Header Micro-interactions
   10. Navigation & Discovery Modules
   ================================================================ */

/* === kaynak: layout.css 1578-2812 - Z-2 sprint === */

/* =============================================
   SECTION 40 — Account Pages (Hesabım)
   Modern sidebar, dashboard, orders, favorites
   ============================================= */

/* ─── SIDEBAR ─── */
.th-account__sidebar {
  background: var(--th-color-bg);
  border-radius: var(--th-radius-2xl);
  border: 1px solid var(--th-color-border);
  overflow: hidden;
}

/* Profile Card */
.th-account__profile {
  display: flex;
  align-items: center;
  gap: var(--th-space-3-5);
  padding: var(--th-space-5);
  background: linear-gradient(135deg, var(--th-neutral-800) 0%, var(--th-color-text-secondary) 100%);
  color: var(--th-color-text-inverse);
}
.th-account__avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--th-radius-full);
  background: var(--th-color-primary);
  color: var(--th-color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-extrabold);
  flex-shrink: 0;
  letter-spacing: 1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-neutral-0) 20%, transparent);
}
.th-account__user {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.th-account__name {
  font-size: var(--th-text-base-plus);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text-inverse);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.th-account__email {
  font-size: var(--th-text-xs-plus);
  color: color-mix(in srgb, var(--th-neutral-0) 65%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wallet Card */
.th-account__wallet {
  margin: var(--th-space-3-5);
  padding: var(--th-space-4);
  background: linear-gradient(135deg, var(--th-neutral-900) 0%, var(--th-neutral-800) 100%);
  border-radius: var(--th-radius-2xl);
  color: var(--th-color-text-inverse);
}
.th-account__wallet-label {
  font-size: var(--th-text-xs-plus);
  color: color-mix(in srgb, var(--th-neutral-0) 65%, transparent);
  margin-bottom: var(--th-space-1-5);
}
.th-account__wallet-label i {
  margin-right: var(--th-space-1);
}
.th-account__wallet-amount {
  font-size: var(--th-text-3xl);
  font-weight: var(--th-font-extrabold);
  line-height: 1.2;
  margin-bottom: var(--th-space-3);
}
.th-account__wallet-actions {
  display: flex;
  gap: var(--th-space-2);
}
.th-account__wbtn {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1);
  padding: var(--th-space-2) var(--th-space-4);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
  background: color-mix(in srgb, var(--th-neutral-0) 15%, transparent);
  color: var(--th-color-text-inverse);
  transition: background .2s;
}
.th-account__wbtn:hover {
  background: color-mix(in srgb, var(--th-neutral-0) 25%, transparent);
  color: var(--th-color-text-inverse);
  text-decoration: none;
}

/* Navigation */
.th-account__nav {
  padding: var(--th-space-2) 0;
}
.th-account__nav-item {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-3) var(--th-space-5);
  text-decoration: none;
  color: var(--th-color-text-tertiary);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.th-account__nav-item:hover {
  background: var(--th-color-bg-secondary);
  color: var(--th-color-text);
  text-decoration: none;
}
.th-account__nav-item--active {
  background: var(--th-color-accent-subtle);
  color: var(--th-color-primary);
  font-weight: var(--th-font-semibold);
  border-left-color: var(--th-color-primary);
}
.th-account__nav-icon {
  width: 20px;
  text-align: center;
  font-size: var(--th-text-base);
  flex-shrink: 0;
}
.th-account__nav-item--active .th-account__nav-icon {
  color: var(--th-color-primary);
}
.th-account__nav-text {
  flex: 1;
}

/* ─── DASHBOARD ─── */

/* Welcome */
.th-account__welcome {
  margin-bottom: var(--th-space-5);
}
.th-account__welcome-title {
  font-size: var(--th-text-xl);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  margin: 0 0 var(--th-space-1);
}
.th-account__welcome-text {
  font-size: var(--th-text-base);
  color: var(--th-color-text-muted);
  margin: 0;
}

/* Stats Row */
.th-account__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--th-space-3);
  margin-bottom: var(--th-space-6);
}
.th-account__stat {
  display: flex;
  align-items: center;
  gap: var(--th-space-3-5);
  padding: var(--th-space-4) var(--th-space-4);
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-2xl);
  transition: border-color .2s, box-shadow .2s;
}
.th-account__stat:hover {
  border-color: var(--th-color-primary);
  box-shadow: var(--th-shadow-md);
}
.th-account__stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--th-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--th-text-lg);
  flex-shrink: 0;
}
.th-account__stat-icon--order {
  background: var(--th-color-accent-subtle);
  color: var(--th-color-primary);
}
.th-account__stat-icon--fav {
  background: var(--th-color-danger-subtle);
  color: var(--th-color-danger);
}
.th-account__stat-icon--alert {
  background: var(--th-gold-50);
  color: var(--th-gold-500);
}
.th-account__stat-icon--support {
  background: var(--th-blue-50);
  color: var(--th-blue-500);
}
.th-account__stat-info {
  display: flex;
  flex-direction: column;
}
.th-account__stat-num {
  font-size: var(--th-text-2xl);
  font-weight: var(--th-font-extrabold);
  color: var(--th-color-text);
  line-height: 1.1;
}
.th-account__stat-label {
  font-size: var(--th-text-xs-plus);
  color: var(--th-color-text-muted);
  font-weight: var(--th-font-medium);
}

/* Section Title */
.th-account__section-title {
  font-size: var(--th-text-md);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  margin: 0 0 var(--th-space-3-5);
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
}
.th-account__section-title i {
  color: var(--th-color-primary);
  font-size: var(--th-text-base-plus);
}

/* Quick Links Grid */
.th-account__quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--th-space-2-5);
}
.th-account__qlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-4) var(--th-space-3);
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-xl);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.th-account__qlink:hover {
  border-color: var(--th-color-primary);
  box-shadow: var(--th-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.th-account__qlink-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--th-radius-xl);
  background: var(--th-color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--th-text-md);
  color: var(--th-color-text-muted);
  transition: background .2s, color .2s;
}
.th-account__qlink:hover .th-account__qlink-icon {
  background: var(--th-color-primary);
  color: var(--th-color-text-inverse);
}
.th-account__qlink-text {
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-semibold);
  color: var(--th-color-text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ─── ORDERS LIST ─── */
.th-account__orders {
  display: flex;
  flex-direction: column;
  gap: var(--th-space-3);
}
.th-account__order-card {
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-2xl);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.th-account__order-card:hover {
  border-color: var(--th-color-border-strong);
  box-shadow: var(--th-shadow-md);
}
.th-account__order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--th-space-3-5) 18px;
  background: var(--th-color-bg-secondary);
  border-bottom: 1px solid var(--th-color-border-light);
}
.th-account__order-no {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
  color: var(--th-color-text-secondary);
}
.th-account__order-no i {
  color: var(--th-color-primary);
}
.th-account__order-no a {
  color: var(--th-color-text-secondary);
  text-decoration: none;
}
.th-account__order-no a:hover {
  color: var(--th-color-primary);
}
.th-account__order-status {
  display: inline-flex;
  align-items: center;
  padding: var(--th-space-1) var(--th-space-3);
  border-radius: var(--th-radius-3xl);
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-bold);
  background: var(--th-emerald-50);
  color: var(--th-color-success);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.th-account__order-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--th-space-3);
  padding: var(--th-space-4) 18px;
}
.th-account__order-detail {
  display: flex;
  flex-direction: column;
  gap: var(--th-space-0-5);
}
.th-account__order-label {
  font-size: var(--th-text-xs);
  color: var(--th-color-text-placeholder);
  font-weight: var(--th-font-medium);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.th-account__order-detail span,
.th-account__order-detail strong {
  font-size: var(--th-text-base);
  color: var(--th-color-text);
}
.th-account__order-amount {
  color: var(--th-color-primary);
  font-size: var(--th-text-md);
  font-weight: var(--th-font-extrabold);
}
.th-account__order-footer {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-3) 18px;
  border-top: 1px solid var(--th-color-border-light);
  background: var(--th-color-bg-secondary);
}
.th-account__order-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1-5);
  padding: var(--th-space-2) var(--th-space-4);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
  background: var(--th-color-primary);
  color: var(--th-color-text-inverse);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.th-account__order-btn:hover {
  background: var(--th-color-accent-hover);
  color: var(--th-color-text-inverse);
  text-decoration: none;
}
.th-account__order-btn--cancel {
  background: transparent;
  color: var(--th-color-danger);
  border: 1px solid var(--th-color-danger-border);
}
.th-account__order-btn--cancel:hover {
  background: var(--th-color-danger-subtle);
  color: var(--th-color-danger-hover);
}

/* ─── ORDER DETAIL ─── */
.th-account__od-info {
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-2xl);
  overflow: hidden;
  margin-bottom: var(--th-space-5);
}
.th-account__od-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--th-space-3) 18px;
  font-size: var(--th-text-base);
  color: var(--th-color-text);
  border-bottom: 1px solid var(--th-color-border-light);
}
.th-account__od-row:last-child {
  border-bottom: none;
}
.th-account__od-label {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  color: var(--th-color-text-muted);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
}
.th-account__od-label i {
  color: var(--th-color-primary);
  width: 18px;
  text-align: center;
  font-size: var(--th-text-sm);
}
.th-account__od-status {
  display: inline-flex;
  align-items: center;
  padding: var(--th-space-1) var(--th-space-3-5);
  border-radius: var(--th-radius-3xl);
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-bold);
  background: var(--th-emerald-50);
  color: var(--th-color-success);
}
.th-account__od-track {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1-5);
  color: var(--th-color-primary);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
  font-size: var(--th-text-sm);
}
.th-account__od-track:hover {
  text-decoration: underline;
}

/* Products List */
.th-account__od-products {
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-2xl);
  overflow: hidden;
  margin-bottom: var(--th-space-4);
}
.th-account__od-ptitle {
  font-size: var(--th-text-base-plus);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  padding: var(--th-space-3-5) 18px;
  margin: 0;
  border-bottom: 1px solid var(--th-color-border);
  background: var(--th-color-bg-secondary);
}
.th-account__od-ptitle i {
  color: var(--th-color-primary);
  margin-right: var(--th-space-2);
}
.th-account__od-product {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto;
  align-items: center;
  gap: var(--th-space-3-5);
  padding: var(--th-space-3-5) 18px;
  border-bottom: 1px solid var(--th-color-border-light);
  font-size: var(--th-text-base);
}
.th-account__od-product:last-child {
  border-bottom: none;
}
.th-account__od-pnum {
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text-placeholder);
  text-align: center;
}
.th-account__od-pinfo strong {
  display: block;
  font-size: var(--th-text-base);
  color: var(--th-color-text);
  font-weight: var(--th-font-semibold);
  line-height: 1.3;
}
.th-account__od-pvar {
  display: block;
  font-size: var(--th-text-xs-plus);
  color: var(--th-color-text-muted);
  margin-top: var(--th-space-0-5);
}
.th-account__od-pprice {
  font-size: var(--th-text-sm);
  color: var(--th-color-text-muted);
  text-align: right;
}
.th-account__od-pqty {
  font-size: var(--th-text-sm);
  color: var(--th-color-text-muted);
  text-align: right;
  min-width: 50px;
}
.th-account__od-ptotal {
  font-size: var(--th-text-base);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  text-align: right;
  min-width: 80px;
}

/* Summary */
.th-account__od-summary {
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-2xl);
  overflow: hidden;
}
.th-account__od-sum-row {
  display: flex;
  justify-content: space-between;
  padding: var(--th-space-2-5) 18px;
  font-size: var(--th-text-base);
  color: var(--th-color-text-tertiary);
  border-bottom: 1px solid var(--th-color-border-light);
}
.th-account__od-sum-row:last-child {
  border-bottom: none;
}
.th-account__od-sum-row--total {
  background: var(--th-color-bg-secondary);
  padding: var(--th-space-3-5) 18px;
}
.th-account__od-sum-row--total strong {
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-extrabold);
  color: var(--th-color-success);
}

/* ─── FAVORITES ─── */
.th-account__desc {
  font-size: var(--th-text-sm);
  color: var(--th-color-text-muted);
  margin-bottom: var(--th-space-4);
  padding: var(--th-space-3) var(--th-space-4);
  background: var(--th-color-bg-secondary);
  border-radius: var(--th-radius-xl);
  border: 1px solid var(--th-color-border);
}
.th-account__favorites {
  display: flex;
  flex-direction: column;
  gap: var(--th-space-2-5);
}
.th-account__fav-card {
  display: flex;
  align-items: center;
  gap: var(--th-space-3-5);
  padding: var(--th-space-3-5) var(--th-space-4);
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-xl);
  transition: border-color .2s;
}
.th-account__fav-card:hover {
  border-color: var(--th-color-border-strong);
}
.th-account__fav-img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--th-radius-xl);
  overflow: hidden;
  background: var(--th-color-bg-secondary);
}
.th-account__fav-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.th-account__fav-info {
  flex: 1;
  min-width: 0;
}
.th-account__fav-name {
  display: block;
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
  color: var(--th-color-text);
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: var(--th-space-0-5);
}
.th-account__fav-name:hover {
  color: var(--th-color-primary);
}
.th-account__fav-date {
  font-size: var(--th-text-xs-plus);
  color: var(--th-color-text-placeholder);
}
.th-account__fav-actions {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  flex-shrink: 0;
}
.th-account__fav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1);
  padding: var(--th-space-2) var(--th-space-3-5);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-xs-plus);
  font-weight: var(--th-font-semibold);
  text-decoration: none;
  transition: background .2s;
}
.th-account__fav-btn--cart {
  background: var(--th-color-primary);
  color: var(--th-color-text-inverse);
}
.th-account__fav-btn--cart:hover {
  background: var(--th-color-accent-hover);
  color: var(--th-color-text-inverse);
  text-decoration: none;
}
.th-account__fav-btn--remove {
  background: var(--th-color-danger-subtle);
  color: var(--th-color-danger);
  padding: var(--th-space-2) var(--th-space-2-5);
}
.th-account__fav-btn--remove:hover {
  background: var(--th-color-danger-muted);
  color: var(--th-color-danger-hover);
  text-decoration: none;
}

/* ─── EMPTY STATE ─── */
.th-account__empty {
  text-align: center;
  padding: var(--th-space-12) var(--th-space-5);
  color: var(--th-color-text-placeholder);
}
.th-account__empty i {
  font-size: var(--th-text-5xl);
  margin-bottom: var(--th-space-3);
  opacity: .4;
}
.th-account__empty p {
  font-size: var(--th-text-base);
  color: var(--th-color-text-muted);
  margin: 0;
}

/* ─── GENERAL ACCOUNT FORM OVERRIDES ─── */
.user-dashboard .alert-info {
  border-radius: var(--th-radius-xl);
  border: 1px solid var(--th-blue-200);
  background: var(--th-blue-50);
  color: var(--th-blue-800);
  font-size: var(--th-text-sm);
}
.user-dashboard .jumbotron {
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-2xl);
}
.user-dashboard .btn-success {
  background: var(--th-color-primary);
  border-color: var(--th-color-primary);
  border-radius: var(--th-radius-xl);
  padding: var(--th-space-2-5) 28px;
  font-weight: var(--th-font-semibold);
}
.user-dashboard .btn-success:hover {
  background: var(--th-color-accent-hover);
  border-color: var(--th-color-accent-hover);
}
.user-dashboard .form-control {
  border-radius: var(--th-radius-xl);
  border-color: var(--th-color-border);
  padding: var(--th-space-2-5) var(--th-space-3-5);
  font-size: var(--th-text-base);
}
.user-dashboard .form-control:focus {
  border-color: var(--th-color-primary);
  box-shadow: var(--th-input-shadow-focus);
}

/* Hide old list-menu when sidebar is active */
.list-menu {
  display: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .th-account__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .th-account__profile {
    padding: var(--th-space-4);
  }
  .th-account__avatar {
    width: 44px;
    height: 44px;
    font-size: var(--th-text-base-plus);
  }
  .th-account__stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--th-space-2);
  }
  .th-account__stat {
    padding: var(--th-space-3-5) var(--th-space-3);
  }
  .th-account__stat-icon {
    width: 38px;
    height: 38px;
    font-size: var(--th-text-base-plus);
  }
  .th-account__stat-num {
    font-size: var(--th-text-xl);
  }
  .th-account__quicklinks {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--th-space-2);
  }
  .th-account__qlink {
    padding: var(--th-space-3-5) var(--th-space-2);
  }
  .th-account__qlink-icon {
    width: 36px;
    height: 36px;
    font-size: var(--th-text-base-plus);
  }
  .th-account__order-body {
    grid-template-columns: 1fr;
    gap: var(--th-space-2);
  }
  .th-account__order-detail {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .th-account__od-product {
    grid-template-columns: 1fr;
    gap: var(--th-space-1-5);
    padding: var(--th-space-3) var(--th-space-4);
  }
  .th-account__od-pnum { display: none; }
  .th-account__od-pprice,
  .th-account__od-pqty,
  .th-account__od-ptotal { text-align: left; }
  .th-account__fav-card {
    flex-wrap: wrap;
  }
  .th-account__fav-actions {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--th-color-border-light);
    padding-top: var(--th-space-2-5);
  }
}
@media (max-width: 576px) {
  .th-account__quicklinks {
    grid-template-columns: 1fr 1fr;
  }
  .th-account__wallet-amount {
    font-size: var(--th-text-xl);
  }
  .th-account__order-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .th-account__order-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ── Hamburger → X Animation ── */
.th-header__mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--th-color-text);
  border-radius: var(--th-radius-xs);
  transition: transform .3s ease, opacity .2s ease;
}
.th-header__mobile-menu-btn span + span { margin-top: var(--th-space-1); }
.th-header__menu-open .th-header__mobile-menu-btn span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.th-header__menu-open .th-header__mobile-menu-btn span:nth-child(2) {
  opacity: 0;
}
.th-header__menu-open .th-header__mobile-menu-btn span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ── Search Focus Expand ── */
.th-header__search-wrapper {
  flex: 1;
  max-width: 600px;
  position: relative;
  transition: flex .3s ease;
}
.th-header__search-wrapper.th-header__active {
  flex: 1.5;
}


/* ── Cart Badge Bounce Animation ── */
@keyframes th-badge-bounce {
  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.th-badge-bounce {
  animation: th-badge-bounce .5s ease;
}

/* ── Favorite Heart Pulse ── */
@keyframes th-heart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.th-header__wishlist-badge.th-badge-pulse {
  animation: th-heart-pulse .4s ease;
}

/* ── Notification Dot Pulse ── */
.th-header__notification-btn .th-notif-dot {
  position: absolute;
  top: var(--th-space-1);
  right: var(--th-space-1);
  width: 8px;
  height: 8px;
  background: var(--th-color-danger);
  border-radius: var(--th-radius-full);
  animation: th-notif-pulse 2s ease-in-out infinite;
}
@keyframes th-notif-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}


/* ── Header Micro-interactions ── */
/* Logo hover */
.th-header__logo:hover .th-header__logo-img {
  opacity: .92;
  transition: opacity .2s ease;
}

/* Nav menu item underline slide-in */
.th-header__nav-menu > li > a {
  position: relative;
}
.th-header__nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--th-color-accent);
  transition: width .3s ease;
}
.th-header__nav-menu > li > a:hover::after {
  width: 100%;
}

/* Dropdown open animation */
.th-header__action-dropdown {
  /* structural */
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--th-color-bg);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow-lg);
  min-width: 200px;
  visibility: hidden;
  z-index: var(--th-z-dropdown, 200);
  /* animation */
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.th-header__action-item.th-header__open .th-header__action-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Sticky header shadow transition */
.th-header__header.th-header__scrolled {
  box-shadow: var(--th-shadow-md);
  transition: box-shadow .3s ease;
}

/* Footer link hover arrow animation */
.tf2-links a::before {
  content: '';
  display: inline-block;
  width: 0;
  transition: width .2s ease, margin .2s ease;
}
.tf2-links a:hover::before {
  content: '→';
  width: 14px;
  margin-right: var(--th-space-1);
}


/* ── Mobile Menu Close Button ── */
.th-header__mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--th-color-bg-tertiary);
  border: none;
  border-radius: var(--th-radius-full);
  color: var(--th-color-text);
  font-size: var(--th-text-md);
  cursor: pointer;
  transition: background .2s;
}
.th-header__mobile-menu-close:hover {
  background: var(--th-color-bg-skeleton);
}

/* ── Mobile Menu Body Scroll Lock ── */
.th-header__menu-open {
  overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════════
   BOLUM 2: NAVIGATION & DISCOVERY MODULES
   ═══════════════════════════════════════════════════════════════════ */

/* ── 2A: WhatsApp Floating Widget ── */
.th-wa-widget {
  position: fixed;
  bottom: var(--th-space-6);
  right: var(--th-space-6);
  width: var(--th-whatsapp-size);
  height: var(--th-whatsapp-size);
  background: var(--th-whatsapp-bg);
  color: var(--th-whatsapp-text);
  border-radius: var(--th-whatsapp-radius);
  box-shadow: var(--th-whatsapp-shadow);
  z-index: var(--th-whatsapp-z);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--th-text-3xl);
  text-decoration: none;
  transition: var(--th-transition-normal);
}
.th-wa-widget:hover {
  background: var(--th-whatsapp-bg-hover);
  transform: scale(1.1);
  text-decoration: none;
  color: var(--th-whatsapp-text);
}
.th-wa-widget::before {
  content: 'Bize yazmak ister misiniz?';
  position: absolute;
  right: calc(100% + var(--th-space-3));
  white-space: nowrap;
  background: var(--th-neutral-800);
  color: var(--th-neutral-0);
  padding: var(--th-space-2) var(--th-space-3);
  border-radius: var(--th-radius-md);
  font-size: var(--th-text-xs);
  opacity: 0;
  pointer-events: none;
  transition: var(--th-transition-fast);
}
.th-wa-widget:hover::before { opacity: 1; }

@media (max-width: 768px) {
  .th-wa-widget {
    width: 48px; height: 48px;
    bottom: 80px; right: var(--th-space-4);
    font-size: var(--th-text-2xl);
  }
  .th-wa-widget::before { display: none; }
}

/* ── 2B: Scroll to Top ── */
.th-scroll-top {
  position: fixed;
  bottom: var(--th-space-6);
  left: var(--th-space-6);
  width: var(--th-scrolltop-size);
  height: var(--th-scrolltop-size);
  background: var(--th-scrolltop-bg);
  color: var(--th-scrolltop-text);
  border: none;
  border-radius: var(--th-scrolltop-radius);
  box-shadow: var(--th-scrolltop-shadow);
  z-index: var(--th-scrolltop-z);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--th-text-xl);
  transition: var(--th-transition-normal);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.th-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.th-scroll-top:hover {
  background: var(--th-scrolltop-bg-hover);
  transform: translateY(-3px);
  box-shadow: var(--th-shadow-xl);
}

@media (max-width: 768px) {
  .th-scroll-top { width: 40px; height: 40px; bottom: 80px; left: var(--th-space-4); font-size: var(--th-text-md); }
}


/* ── 8G: Loading Overlay (Token) ── */
.overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--th-ink-900) 40%, transparent);
  z-index: var(--th-z-overlay, 9999);
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay .spinner-border {
  width: 48px; height: 48px;
  border: 3px solid var(--th-color-primary);
  border-top-color: transparent;
  border-radius: var(--th-radius-circle);
  animation: th-spin 0.8s linear infinite;
}

/* Alarm listeleri thumbnail sütunu */
.th-td-thumb { width: 100px; }


