/* ================================================================
   mobile-bottom-nav.css — Mobil alt navigasyon
   ================================================================ */

/* Masaüstünde gizli */
.th-mobnav {
  display: none;
}

/* 992px altında görünür */
@media (max-width: 992px) {
  .th-mobnav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--th-z-fixed);
    background: var(--th-color-bg);
    border-top: var(--th-border-width-default) solid var(--th-color-border);
    box-shadow: 0 -2px 10px color-mix(in srgb, var(--th-ink-900) 6%, transparent);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: auto;
  }

  /* Nav item */
  .th-mobnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--th-space-0-5);
    flex: 1;
    padding: var(--th-space-2) var(--th-space-1) var(--th-space-1-5);
    color: var(--th-color-text-muted);
    font-size: var(--th-text-2xs);
    font-weight: var(--th-font-medium);
    text-decoration: none;
    background: none;
    border: none;
    border-top: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color var(--th-duration-fast), border-color var(--th-duration-fast);
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .th-mobnav__icon {
    width: var(--th-space-6);
    height: var(--th-space-6);
    flex-shrink: 0;
  }
  .th-mobnav__item span {
    line-height: 1;
    white-space: nowrap;
    font-size: var(--th-text-2xs);
    letter-spacing: 0.01em;
  }
  .th-mobnav__item:hover,
  .th-mobnav__item.active {
    color: var(--th-color-accent);
    border-top-color: var(--th-color-accent);
  }

  /* Sepet — düz tasarım, badge ile */
  .th-mobnav__item--cart {
    color: var(--th-color-accent);
  }
  .th-mobnav__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .th-mobnav__item--cart span {
    font-weight: var(--th-font-semibold);
  }

  /* Sepet badge */
  .th-mobnav__cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: var(--th-space-4);
    height: var(--th-space-4);
    background: var(--th-color-danger);
    color: var(--th-neutral-0);
    font-size: var(--th-text-2xs);
    font-weight: var(--th-font-bold);
    border-radius: var(--th-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--th-space-1);
    border: 1.5px solid var(--th-neutral-0);
    line-height: 1;
  }
  .th-mobnav__cart-badge:empty,
  .th-mobnav__cart-badge[data-cart-quantity="0"] {
    display: none;
  }

  /* Body padding — bottom nav yüksekliği kadar alt boşluk */
  body {
    padding-bottom: var(--th-bottom-nav-height);
  }

  /* Çerez banner — bottom nav üstüne taşı */
  .th-cookie-banner {
    bottom: var(--th-bottom-nav-height) !important;
    z-index: 1100 !important;
  }

  /* PDP toast notification — bottom nav üstüne */
  .th-pdp__toast-notif {
    bottom: 94px !important;
  }
}

/* Küçük mobil */
@media (max-width: 576px) {
  .th-mobnav__item {
    font-size: var(--th-text-2xs);
    padding: var(--th-space-2) var(--th-space-0-5) var(--th-space-1);
  }
  .th-mobnav__item span {
    font-size: var(--th-text-2xs);
  }
  .th-mobnav__icon {
    width: var(--th-space-6);
    height: var(--th-space-6);
  }

  /* Newsletter popup — mobilde ortalanma düzeltmesi */
  .th-nl-popup {
    width: 92% !important;
    max-width: 360px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0;
    padding: var(--th-space-6) var(--th-space-5);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .th-mobnav__item {
    transition: none;
  }
}

/* Print — gizle */
@media print {
  .th-mobnav { display: none !important; }
  body { padding-bottom: 0 !important; }
}
