/* Dokunsat — mobil (max-width: 767px) */
:root {
  --max: 720px;
}

body.has-tab {
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

/* Masaüstü menü mobilde gizli */
.desk-nav,
.lg-top {
  display: none !important;
}

.lg-mobile-header {
  display: block;
}

.letgo-header {
  padding: 0.65rem 1rem 0.85rem;
}

.letgo-header-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.letgo-header .brand .logo {
  height: 48px;
  max-width: 240px;
}

/* Alt tab bar */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 0.25rem env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #9e9e9e;
  height: 100%;
}

.tabbar a svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.tabbar a.active {
  color: var(--brand);
}

.tabbar a.tab-sell {
  color: var(--ink);
}

.tabbar a.tab-sell .sell-fab {
  width: 48px;
  height: 48px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(23, 72, 115, 0.4);
  border: 3px solid var(--white);
}

.tabbar a.tab-sell .sell-fab svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2.5;
}

.tabbar a.tab-sell span.label {
  margin-top: 0.1rem;
  font-size: 0.62rem;
}

.product-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Ürün detay — tabbar yok, altta sabit Sohbet/Teklif */
body.pd-page.has-tab {
  padding-bottom: 0;
}

body.pd-page #toast-root {
  bottom: calc(0.85rem + 4.75rem + env(safe-area-inset-bottom, 0px));
}

#product-detail-root .pd-breadcrumb {
  padding: 0.55rem 1rem 0.3rem;
  font-size: 0.74rem;
  line-height: 1.4;
  gap: 0.25rem 0.35rem;
}

#product-detail-root .pd-bc-current {
  display: inline-block;
  max-width: min(42vw, 11rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

#product-detail-root .pd-ad-slot {
  margin: 0.45rem 0.75rem 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-col-main {
  min-width: 0;
}

.pd-gallery .gallery {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  touch-action: pan-y;
}

.pd-plus-badge {
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  padding: 0.22rem 0.55rem;
}

.pd-gallery-tools {
  top: 10px;
  right: 10px;
  gap: 0.35rem;
}

.pd-tool-btn {
  width: 36px;
  height: 36px;
}

.pd-thumbs {
  padding: 0 1rem;
  margin-top: 0.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pd-thumbs::-webkit-scrollbar {
  display: none;
}

.pd-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.pd-nav {
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
}

.pd-nav-prev {
  left: 8px;
}

.pd-nav-next {
  right: 8px;
}

.pd-zoom-hint {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.detail-body {
  padding-bottom: 1rem;
}

.detail-body.pd-info {
  padding: 0.75rem 0.75rem 0.5rem;
  background: transparent;
}

.pd-panel {
  border-radius: 14px;
  padding: 0.95rem 0.9rem 1.05rem;
  border: 1px solid var(--line);
  background: #fff;
}

.pd-head {
  flex-direction: column;
  gap: 0.65rem;
}

.pd-head-side {
  max-width: none;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  width: 100%;
}

.pd-loc {
  justify-content: flex-start;
}

.pd-price-row .detail-price {
  font-size: 1.55rem;
}

.pd-taksit {
  font-size: 0.72rem;
  padding: 0.22rem 0.5rem;
}

.pd-head .detail-title {
  font-size: 0.95rem;
}

.pd-attrs-grid {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.pd-attr {
  grid-template-columns: 5.5rem 1fr;
}

.pd-attrs-actions {
  gap: 0.45rem;
}

.pd-secure-btn,
.pd-return-btn {
  min-height: 44px;
  font-size: 0.82rem;
  padding: 0.45rem 0.4rem;
}

.pd-credit {
  padding: 0.75rem 0.8rem;
  gap: 0.55rem;
}

.pd-credit strong {
  font-size: 0.88rem;
}

.pd-credit em {
  font-size: 0.74rem;
}

.pd-aside {
  padding: 0 0.75rem 6.5rem;
}

.pd-aside-card {
  border-radius: 12px;
  padding: 0.9rem;
}

.pd-aside .pd-cta,
.pd-aside .pd-btn-buy {
  display: none;
}

.pd-info .pd-cta {
  display: none;
}

.pd-top {
  gap: 0.4rem 0.65rem;
}

.pd-fav-link {
  font-size: 0.8rem;
}

.pd-views {
  font-size: 0.78rem;
}

.pd-price-box {
  padding: 0.75rem 0.85rem;
}

.pd-seller-card {
  margin: 0 0 0.65rem;
}

.detail-actions.pd-sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0.45rem;
  padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15, 53, 88, 0.08);
}

.pd-sticky-actions .pd-btn-chat,
.pd-sticky-actions .pd-btn-offer,
.pd-sticky-actions .pd-btn-buy-sticky {
  min-height: 46px;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.3rem;
  border-radius: 12px;
}

.pd-similar {
  padding: 0.85rem 1rem 6.75rem;
}

.pd-lightbox {
  padding: 0.35rem;
}

.pd-lb-img {
  max-width: 100vw;
  max-height: 82vh;
  border-radius: 0;
  box-shadow: none;
}

.pd-lb-close {
  top: calc(0.55rem + env(safe-area-inset-top, 0px));
  right: 0.55rem;
  width: 40px;
  height: 40px;
}

.pd-lb-nav {
  width: 40px;
  height: 40px;
  font-size: 1.55rem;
}

.pd-lb-prev {
  left: 0.25rem;
}

.pd-lb-next {
  right: 0.25rem;
}

.pd-lb-count {
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.pd-offer-sheet {
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  transform: none;
  width: 100%;
  max-height: min(92vh, 640px);
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 1rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

body.has-tab #toast-root {
  bottom: calc(0.85rem + var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

body.pd-page.has-tab #toast-root {
  bottom: calc(0.85rem + 4.75rem + env(safe-area-inset-bottom, 0px));
}

.auth-shell {
  padding: 2rem 1rem;
}

.gallery {
  aspect-ratio: 1;
  max-height: none;
}

body.msg-ready.has-tab {
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

.msg-app {
  min-height: calc(100vh - 56px - var(--tab-h));
}

.msg-side {
  display: none;
}

/* Hesap sayfaları — mobil */
body.ml-body .ac-card { border-radius: 12px; padding: 1rem; }
body.ml-body .ac-tabs { gap: 1rem; overflow-x: auto; }
body.ml-body .ac-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.15rem; }
body.ml-body .ac-chip { flex: 0 0 auto; white-space: nowrap; }
body.ml-body .ac-net-card { padding: 0.7rem 0.75rem; }
body.ml-body .ac-earn-val { font-size: 1.35rem; }
body.ml-body .ac-empty-art { width: 100px; height: 100px; font-size: 2rem; }
/* mobilde yan menü yok — topnav başlık yeterli; isteğe bağlı yatay kısayol */
body.ml-body .ac-mobile-nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 0 0.75rem;
  -webkit-overflow-scrolling: touch;
}

/* Satıcı profili — mobil */
.sp-body .sp-topnav strong { display: none; }
.sp-hero { padding: 0.85rem 0.85rem 1rem; }
.seller-avatar { width: 64px; height: 64px; }
.seller-name { font-size: 1.05rem; }
.sp-info-cards { gap: 0.45rem; }
.sp-info-card { padding: 0.6rem 0.65rem; }
.sp-stats { padding: 0.65rem 0.85rem; gap: 0.2rem; }
.sp-stat-label { font-size: 0.68rem; }
.sp-stat strong { font-size: 0.95rem; }
.sp-follow-fab { width: 40px; height: 40px; }
.sp-filters { padding: 0.75rem 0.85rem 0.25rem; }
.sp-filter-pills { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 0.15rem; }
.sp-pill { flex: 0 0 auto; white-space: nowrap; font-size: 0.8rem; padding: 0.45rem 0.7rem; }
.sp-tabs { gap: 1.1rem; justify-content: flex-start; overflow-x: auto; }
.sp-tabs button { font-size: 0.88rem; white-space: nowrap; }
.seller-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.seller-listings { padding-left: 0.75rem; padding-right: 0.75rem; }
.sp-card-trust { font-size: 0.62rem; padding: 0.22rem 0.4rem; }
.sp-card-pay { font-size: 0.66rem; }

/* Satıcı doğrulama OTP / kilit — mobil */
.ac-input-action {
  flex-direction: column;
  align-items: stretch;
}
.ac-input-action .btn {
  width: 100%;
  min-height: 44px;
}
