/* Ana sayfa — sadece canlı istatistikler + son satışlar (orijinal tema) */

/* ═══ WEB + mobil: ana sayfa her zaman nötr gri/beyaz (tema mor/pembe override) ═══ */
html[data-page="home"],
body.page-home,
body.page-home[data-theme],
html[data-theme] body.page-home,
body.page-home.dark-mode {
  background: #f9fafb !important;
  color: #111827 !important;
}

.page-home {
  --primary: #6b7280;
  --primary-dark: #374151;
  --primary-light: #f3f4f6;
  --dark: #111827;
  --mid: #4b5563;
  --gray: #9ca3af;
  --light: #f9fafb;
  --white: #ffffff;
  --t-primary: #6b7280;
  --t-primary-dark: #374151;
  --t-primary-light: #f3f4f6;
  --t-bg: #f9fafb;
  --t-bg2: #ffffff;
  --t-btn-gradient: linear-gradient(135deg, #374151, #1f2937);
}

.page-home .hero {
  background: transparent !important;
  min-height: clamp(520px, 58vh, 640px) !important;
  height: auto !important;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 36px;
}

.page-home .hero--banner .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-home .hero--banner .hero-bg-photo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: none;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.page-home .hero--banner .hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 62% center;
  transform: none;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.page-home .hero--banner .hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 252, 248, 0.28) 0%, rgba(255, 252, 248, 0.12) 36%, transparent 62%);
  pointer-events: none;
}

.page-home .hero--banner .hero-blob {
  display: none !important;
}

.page-home .hero--banner .hero-content {
  position: relative;
  z-index: 2;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 8px;
}

.page-home .hero--banner .hero-text {
  max-width: 520px;
  padding: 12px 0 8px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.page-home .hero--banner .hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem) !important;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 14px;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  text-shadow: 0 1px 16px rgba(255, 252, 248, 0.95), 0 2px 28px rgba(255, 255, 255, 0.75);
}

.page-home .hero--banner .hero-title span {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

.page-home .hero--banner .hero-title.fade-in {
  opacity: 1 !important;
  transform: none !important;
}

.page-home .hero--banner .hero-desc {
  margin-bottom: 22px;
  text-shadow: 0 1px 12px rgba(255, 252, 248, 0.92), 0 1px 20px rgba(255, 255, 255, 0.65);
}

.page-home .hero--banner .hero-title .highlight {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #374151 !important;
  color: #374151 !important;
}

.page-home .hero--banner .hero-visual {
  filter: drop-shadow(0 16px 32px rgba(26, 32, 44, 0.12));
}

.page-home .hero-blob-1,
.page-home .hero-blob-2,
.page-home .hero-blob-3 {
  background: radial-gradient(circle, #e5e7eb, transparent) !important;
  opacity: 0.35 !important;
}

.page-home .hero-title {
  color: #111827 !important;
}

.page-home .hero-desc {
  color: #6b7280 !important;
}

.page-home .header {
  background: rgba(255, 255, 255, 0.98) !important;
}

.page-home .hero-title .highlight {
  background: linear-gradient(135deg, #374151, #6b7280) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.page-home .btn-primary,
.page-home .btn-submit,
.page-home .btn-checkout {
  background: linear-gradient(135deg, #374151, #1f2937) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.page-home .btn-secondary {
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #374151 !important;
}

.page-home .how-section {
  background: #1f2937 !important;
}

.page-home .step-num {
  background: linear-gradient(135deg, #374151, #1f2937) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

.page-home .steps-grid::before {
  background: linear-gradient(to right, transparent, #6b7280, transparent) !important;
}

.page-home .newsletter-section {
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8) !important;
}

.page-home .marquee-section {
  background: #111827 !important;
}

.page-home .marquee-item {
  color: #d1d5db !important;
}

.page-home .marquee-dot {
  background: #9ca3af !important;
}

.page-home .filter-tab.active {
  background: #374151 !important;
  border-color: #374151 !important;
  color: #fff !important;
}

.page-home .promo-tag {
  background: #374151 !important;
}

.page-home .cart-badge {
  background: #374151 !important;
}

/* ── Bölüm navigasyonu kaldırıldı (mobil: burger menü) ── */

.page-home .header {
  z-index: 1000;
}

.page-home .header-inner .nav {
  flex-shrink: 0;
}

.page-home .header .nav a {
  color: #374151;
}

@media (min-width: 992px) {
  .page-home .header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .page-home .header-inner .logo {
    flex: 0 0 auto;
  }

  .page-home .header-inner .header-actions {
    flex: 0 0 auto;
  }

  .page-home .header .nav {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .page-home .header .nav a {
    color: #374151 !important;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 14px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .page-home .header .nav a:hover,
  .page-home .header .nav a.active {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #111827 !important;
  }

  .page-home .header-inner {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
}

.page-home .hero-live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  opacity: 1 !important;
  visibility: visible !important;
}

.page-home .hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(17, 24, 39, 0.1) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
  color: #374151 !important;
  font-size: 0.88rem;
  font-weight: 500;
  -webkit-text-fill-color: #374151 !important;
}

.page-home .hero-stat-pill strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

.page-home .hero-stat-label--short {
  display: none;
}

@media (min-width: 768px) {
  .page-home .hero-stat-label--long {
    display: inline !important;
  }
  .page-home .hero-stat-label--short {
    display: none !important;
  }
}

.page-home .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success, #22c55e);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: homePulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes homePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Son satışlar ── */
.home-recent-sales {
  padding: 56px 0;
  background: var(--light, #f9fafb);
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.07));
}

.home-recent-sales .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-recent-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.home-recent-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--dark, #111827);
  letter-spacing: -0.02em;
}

.home-recent-head p {
  color: var(--gray, #9ca3af);
  font-size: 0.92rem;
  margin-top: 6px;
}

.home-recent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--white, #fff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid, #4b5563);
}

#homeRecentSalesList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.home-sale-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius, 14px);
  background: var(--white, #fff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  box-shadow: var(--shadow, 0 2px 16px rgba(0, 0, 0, 0.06));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.home-sale-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.1));
}

.home-sale-card__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-light, #f3f4f6);
}

.home-sale-card__img--ph {
  background: var(--gray-light, #f3f4f6);
}

.home-sale-card__info {
  flex: 1;
  min-width: 0;
}

.home-sale-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.home-sale-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.home-sale-card__avatar--anon {
  display: inline-block;
  background: #e5e7eb url('/icon/user.svg') center / 13px no-repeat;
}

.home-sale-card--anon .home-sale-card__row strong {
  color: #6b7280;
}

.home-sale-card__row strong {
  font-size: 0.88rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-sale-card__time {
  font-size: 0.72rem;
  color: var(--gray, #9ca3af);
  white-space: nowrap;
}

.home-sale-card__action {
  font-size: 0.75rem;
  color: var(--primary-dark, #374151);
  font-weight: 600;
  margin-bottom: 2px;
}

.home-sale-card__product {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Eski önbellekli JS hâlâ city satırı üretse bile gizle */
.home-sale-card__city {
  display: none !important;
}


@media (max-width: 768px) {
  .page-home .hero-live-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px !important;
    justify-content: stretch;
  }
  .page-home .hero-stat-label--long {
    display: none !important;
  }
  .page-home .hero-stat-label--short {
    display: inline !important;
  }
  .page-home .hero-stat-pill {
    justify-content: center;
    padding: 5px 6px;
    font-size: 0.65rem;
    gap: 3px;
    white-space: nowrap;
    min-width: 0;
    border-radius: 10px;
  }
  .page-home .hero-stat-pill strong {
    font-size: 0.82rem;
  }
  .page-home .hero-stat-pill .svg-icon {
    width: 11px !important;
    height: 11px !important;
  }
  .page-home .hero-stat-pill .pulse-dot {
    width: 6px;
    height: 6px;
  }
  #homeRecentSalesList {
    grid-template-columns: 1fr;
  }

  .page-home .hero--banner {
    min-height: auto !important;
    padding: 0 0 16px !important;
    background: #faf8f5 !important;
  }

  .page-home .hero--banner .hero-bg {
    position: absolute;
    inset: 0 0 auto 0;
    height: clamp(130px, 34vw, 190px);
    overflow: hidden;
  }

  .page-home .hero--banner .hero-bg-photo-wrap {
    position: absolute;
    inset: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    transform: none;
    opacity: 1;
  }

  .page-home .hero--banner .hero-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    transform: none;
  }

  .page-home .hero--banner .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 252, 248, 0.08) 0%,
      rgba(255, 252, 248, 0.55) 55%,
      rgba(255, 252, 248, 0.92) 78%,
      #faf8f5 100%
    );
  }

  .page-home .hero--banner .hero-content {
    padding-top: clamp(118px, 30vw, 168px);
  }

  .page-home .hero--banner .hero-text {
    max-width: none;
    padding: 18px 16px 12px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-home .hero--banner .hero-actions {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
