/* === 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: 14px;
  padding: 20px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 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: 18px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 1px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.2);
}
.th-account__user {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.th-account__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--th-color-text-inverse);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.th-account__email {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wallet Card */
.th-account__wallet {
  margin: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
  border-radius: var(--th-radius-2xl);
  color: var(--th-color-text-inverse);
}
.th-account__wallet-label {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
}
.th-account__wallet-label i {
  margin-right: 4px;
}
.th-account__wallet-amount {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.th-account__wallet-actions {
  display: flex;
  gap: 8px;
}
.th-account__wbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: var(--th-radius-lg);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,.15);
  color: var(--th-color-text-inverse);
  transition: background .2s;
}
.th-account__wbtn:hover {
  background: rgba(255,255,255,.25);
  color: var(--th-color-text-inverse);
  text-decoration: none;
}

/* Navigation */
.th-account__nav {
  padding: 8px 0;
}
.th-account__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  text-decoration: none;
  color: var(--th-color-text-tertiary);
  font-size: 13px;
  font-weight: 500;
  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: 600;
  border-left-color: var(--th-color-primary);
}
.th-account__nav-icon {
  width: 20px;
  text-align: center;
  font-size: 14px;
  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: 20px;
}
.th-account__welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--th-color-text);
  margin: 0 0 4px;
}
.th-account__welcome-text {
  font-size: 14px;
  color: var(--th-color-text-muted);
  margin: 0;
}

/* Stats Row */
.th-account__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.th-account__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  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: 0 4px 12px rgba(0,0,0,.06);
}
.th-account__stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--th-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  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: 24px;
  font-weight: 800;
  color: var(--th-color-text);
  line-height: 1.1;
}
.th-account__stat-label {
  font-size: 12px;
  color: var(--th-color-text-muted);
  font-weight: 500;
}

/* Section Title */
.th-account__section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--th-color-text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.th-account__section-title i {
  color: var(--th-color-primary);
  font-size: 15px;
}

/* Quick Links Grid */
.th-account__quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.th-account__qlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  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: 0 4px 12px rgba(0,0,0,.06);
  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: 17px;
  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: 12px;
  font-weight: 600;
  color: var(--th-color-text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ─── ORDERS LIST ─── */
.th-account__orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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: 0 4px 12px rgba(0,0,0,.05);
}
.th-account__order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 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: 8px;
  font-size: 14px;
  font-weight: 600;
  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: 4px 12px;
  border-radius: var(--th-radius-3xl);
  font-size: 11px;
  font-weight: 700;
  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: 12px;
  padding: 16px 18px;
}
.th-account__order-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.th-account__order-label {
  font-size: 11px;
  color: var(--th-color-text-placeholder);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.th-account__order-detail span,
.th-account__order-detail strong {
  font-size: 14px;
  color: var(--th-color-text);
}
.th-account__order-amount {
  color: var(--th-color-primary);
  font-size: 16px;
  font-weight: 800;
}
.th-account__order-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 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: 6px;
  padding: 8px 16px;
  border-radius: var(--th-radius-lg);
  font-size: 12px;
  font-weight: 600;
  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: 20px;
}
.th-account__od-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 14px;
  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: 8px;
  color: var(--th-color-text-muted);
  font-size: 13px;
  font-weight: 500;
}
.th-account__od-label i {
  color: var(--th-color-primary);
  width: 18px;
  text-align: center;
  font-size: 13px;
}
.th-account__od-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--th-radius-3xl);
  font-size: 12px;
  font-weight: 700;
  background: var(--th-emerald-50);
  color: var(--th-color-success);
}
.th-account__od-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--th-color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}
.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: 16px;
}
.th-account__od-ptitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--th-color-text);
  padding: 14px 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: 8px;
}
.th-account__od-product {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--th-color-border-light);
  font-size: 14px;
}
.th-account__od-product:last-child {
  border-bottom: none;
}
.th-account__od-pnum {
  font-size: 12px;
  font-weight: 700;
  color: var(--th-color-text-placeholder);
  text-align: center;
}
.th-account__od-pinfo strong {
  display: block;
  font-size: 14px;
  color: var(--th-color-text);
  font-weight: 600;
  line-height: 1.3;
}
.th-account__od-pvar {
  display: block;
  font-size: 12px;
  color: var(--th-color-text-muted);
  margin-top: 2px;
}
.th-account__od-pprice {
  font-size: 13px;
  color: var(--th-color-text-muted);
  text-align: right;
}
.th-account__od-pqty {
  font-size: 13px;
  color: var(--th-color-text-muted);
  text-align: right;
  min-width: 50px;
}
.th-account__od-ptotal {
  font-size: 14px;
  font-weight: 700;
  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: 10px 18px;
  font-size: 14px;
  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: 14px 18px;
}
.th-account__od-sum-row--total strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--th-color-success);
}

/* ─── FAVORITES ─── */
.th-account__desc {
  font-size: 13px;
  color: var(--th-color-text-muted);
  margin-bottom: 16px;
  padding: 12px 16px;
  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: 10px;
}
.th-account__fav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  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: 14px;
  font-weight: 600;
  color: var(--th-color-text);
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 2px;
}
.th-account__fav-name:hover {
  color: var(--th-color-primary);
}
.th-account__fav-date {
  font-size: 12px;
  color: var(--th-color-text-placeholder);
}
.th-account__fav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.th-account__fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--th-radius-lg);
  font-size: 12px;
  font-weight: 600;
  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: 8px 10px;
}
.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: 48px 20px;
  color: var(--th-color-text-placeholder);
}
.th-account__empty i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: .4;
}
.th-account__empty p {
  font-size: 14px;
  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: 13px;
}
.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: 10px 28px;
  font-weight: 600;
}
.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: 10px 14px;
  font-size: 14px;
}
.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: 16px;
  }
  .th-account__avatar {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
  .th-account__stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .th-account__stat {
    padding: 14px 12px;
  }
  .th-account__stat-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .th-account__stat-num {
    font-size: 20px;
  }
  .th-account__quicklinks {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .th-account__qlink {
    padding: 14px 8px;
  }
  .th-account__qlink-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .th-account__order-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .th-account__order-detail {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .th-account__od-product {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 16px;
  }
  .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: 10px;
  }
}
@media (max-width: 480px) {
  .th-account__quicklinks {
    grid-template-columns: 1fr 1fr;
  }
  .th-account__wallet-amount {
    font-size: 22px;
  }
  .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: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.th-header__mobile-menu-btn span + span { margin-top: 5px; }
.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: 4px;
  right: 4px;
  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: 0 2px 12px rgba(0,0,0,.08);
  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: 4px;
}


/* ── 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: 16px;
  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: 28px;
  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: 767px) {
  .th-wa-widget {
    width: 48px; height: 48px;
    bottom: 80px; right: var(--th-space-4);
    font-size: 24px;
  }
  .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: 20px;
  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: 767px) {
  .th-scroll-top { width: 40px; height: 40px; bottom: 80px; left: var(--th-space-4); font-size: 16px; }
}

/* ── 2C: Cookie Consent Banner ── */
.th-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--th-neutral-900);
  color: var(--th-neutral-200);
  padding: var(--th-space-4) var(--th-space-6);
  z-index: var(--th-z-toast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--th-space-4);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.th-cookie-banner.visible { transform: translateY(0); }
.th-cookie-banner p { margin: 0; font-size: var(--th-text-sm); line-height: var(--th-leading-relaxed); flex: 1; }
.th-cookie-banner a { color: var(--th-color-accent); text-decoration: underline; }
.th-cookie-actions { display: flex; gap: var(--th-space-2); flex-shrink: 0; }
.th-cookie-accept {
  padding: var(--th-space-2) var(--th-space-5);
  background: var(--th-btn-primary-bg);
  color: var(--th-btn-primary-text);
  border: none;
  border-radius: var(--th-btn-radius);
  font-weight: var(--th-font-semibold);
  cursor: pointer;
}
.th-cookie-reject {
  padding: var(--th-space-2) var(--th-space-5);
  background: transparent;
  color: var(--th-neutral-400);
  border: 1px solid var(--th-neutral-700);
  border-radius: var(--th-btn-radius);
  cursor: pointer;
}

@media (max-width: 767px) {
  .th-cookie-banner { flex-direction: column; padding: var(--th-space-3) var(--th-space-4); }
  .th-cookie-actions { width: 100%; }
  .th-cookie-accept, .th-cookie-reject { flex: 1; }
}

/* ── 2D: Newsletter Popup ── */
.th-nl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--th-z-modal) - 1);
  opacity: 0;
  pointer-events: none;
  transition: var(--th-transition-normal);
}
.th-nl-overlay.active { opacity: 1; pointer-events: auto; }

.th-nl-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--th-color-bg);
  border-radius: var(--th-radius-2xl);
  box-shadow: var(--th-shadow-2xl);
  z-index: var(--th-z-modal);
  width: 90%; max-width: 480px;
  padding: var(--th-space-8);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--th-transition-normal);
}
.th-nl-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.th-nl-popup-close {
  position: absolute;
  top: var(--th-space-3); right: var(--th-space-3);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--th-color-bg-tertiary);
  border: none; border-radius: var(--th-radius-full);
  cursor: pointer; color: var(--th-color-text-muted);
  font-size: 16px;
}
.th-nl-popup h3 { font-size: var(--th-text-xl); font-weight: var(--th-font-bold); margin-bottom: var(--th-space-2); }
.th-nl-popup p { font-size: var(--th-text-sm); color: var(--th-color-text-muted); margin-bottom: var(--th-space-5); }
.th-nl-popup-form { display: flex; gap: var(--th-space-2); }
.th-nl-popup-form input {
  flex: 1; padding: var(--th-space-3);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-base);
}
.th-nl-popup-form button {
  padding: var(--th-space-3) var(--th-space-5);
  background: var(--th-btn-accent-bg);
  color: var(--th-btn-accent-text);
  border: none; border-radius: var(--th-radius-lg);
  font-weight: var(--th-font-semibold);
  cursor: pointer; white-space: nowrap;
}
.th-nl-popup-note { font-size: var(--th-text-2xs); color: var(--th-color-text-muted); margin-top: var(--th-space-3); }

/* ── 1D: Compare Bar ── */
.th-compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--th-color-bg);
  border-top: 1px solid var(--th-color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: var(--th-z-sticky);
  padding: var(--th-space-3) var(--th-space-6);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--th-space-4);
}
.th-compare-bar.active { display: flex; }
.th-compare-items { display: flex; gap: var(--th-space-2); }
.th-compare-item {
  width: 56px; height: 56px;
  border-radius: var(--th-radius-lg);
  border: 2px solid var(--th-color-border);
  overflow: hidden; position: relative;
}
.th-compare-item img { width: 100%; height: 100%; object-fit: cover; }
.th-compare-item .remove {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--th-color-danger); color: var(--th-color-text-inverse);
  border-radius: var(--th-radius-full);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
}
.th-compare-btn {
  padding: var(--th-space-2) var(--th-space-5);
  background: var(--th-btn-primary-bg);
  color: var(--th-btn-primary-text);
  border: none; border-radius: var(--th-btn-radius);
  font-weight: var(--th-font-semibold);
  cursor: pointer;
}
.th-compare-clear { color: var(--th-color-text-muted); background: none; border: none; cursor: pointer; font-size: var(--th-text-sm); text-decoration: underline; }
.th-compare-bar__actions { display: flex; align-items: center; gap: var(--th-space-3); }

@media (max-width: 767px) {
  .th-compare-bar { flex-direction: column; padding: var(--th-space-2) var(--th-space-4); bottom: 64px; }
  .th-compare-item { width: 44px; height: 44px; }
}

/* ── 8G: Loading Overlay (Token) ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  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: 50%;
  animation: th-spin 0.8s linear infinite;
}


