/* ============================================================
   MOBİL UYUMLULUK — tüm temalar & sayfa alanları
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.home-theme {
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* iOS odak zoom'unu önle */
@media (max-width: 768px) {
  .form-control,
  .form-select {
    font-size: 16px !important;
  }
}

/* ── Tablet (≤991px) ── */
@media (max-width: 991px) {
  .hero-content {
    padding: 20px 0 36px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-subline,
  .hero-social,
  .hero-trust-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-price-box {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 480px;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-showcase {
    overflow: hidden;
    max-width: 100%;
  }

  /* Tema grid düzenleri → tek sütun */
  .th-fresh-bento,
  .th-metro-layout,
  .th-terra-layout,
  .th-candy-layout,
  .th-noir-screen {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .th-noir-screen {
    padding: 24px 18px !important;
  }

  .th-noir-reel-holes {
    display: none !important;
  }

  .th-noir-reel-frame {
    flex-direction: column;
  }

  /* Tema başlıkları */
  [class^="th-"][class$="-title"],
  [class*="th-"][class*="-headline"],
  [class*="th-"][class*="-title"] {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Tema nav */
  [class^="th-"][class*="-nav-inner"],
  [class^="th-"][class*="-nav-inner"] {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Tema vitrin */
  [class^="th-"] .hero-showcase-grid {
    max-width: 100%;
    justify-content: center;
  }

  [class^="th-"] .hero-showcase-card.is-spotlight {
    transform: scale(1.04) translateY(-4px) !important;
  }

  .section-header {
    padding: 40px 0 24px;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .order-summary-card {
    position: static !important;
    top: auto !important;
  }
}

/* ── Telefon (≤576px) ── */
@media (max-width: 576px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* ── Klasik hero ── */
  .hero-header {
    overflow: hidden;
  }

  .hero-urgency {
    padding: 6px 0;
  }

  .hero-urgency-inner {
    gap: 8px 14px;
    justify-content: flex-start;
    font-size: .68rem;
  }

  .hero-nav {
    padding: 10px 0;
  }

  .hero-nav .container {
    gap: 8px;
  }

  .hero-nav-btn {
    padding: 8px 14px;
    font-size: .72rem;
    flex-shrink: 0;
  }

  .hero-nav-btn span {
    display: inline !important;
  }

  .hero-logo-img {
    height: 32px !important;
    max-width: 140px !important;
  }

  .hero-logo-text {
    font-size: 1.05rem !important;
  }

  .hero-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .hero-content {
    padding: 16px 0 28px;
  }

  .hero-discount-badge {
    font-size: .65rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .hero-headline-top {
    font-size: .82rem;
    letter-spacing: 2px;
  }

  .hero-headline-main {
    font-size: 1.75rem !important;
    line-height: 1.08;
    letter-spacing: -.5px;
  }

  .hero-subline {
    font-size: .88rem;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hero-price-box {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .hero-price-old,
  .hero-price-new {
    flex: 1;
    min-width: 90px;
    text-align: center;
  }

  .hero-price-divider {
    flex-basis: 100%;
    text-align: center;
    transform: rotate(90deg);
    margin: -4px 0;
  }

  .hero-price-num {
    font-size: 2rem !important;
  }

  .hero-price-strike {
    font-size: 1rem;
  }

  .hero-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    max-width: 100%;
  }

  .hero-trust-item {
    font-size: .68rem;
    padding: 8px 6px;
  }

  .hero-cta {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .hero-cta-main {
    font-size: .95rem;
  }

  .hero-cta-sub {
    font-size: .72rem;
  }

  .hero-social {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .hero-social-text {
    font-size: .78rem;
  }

  .hero-stars {
    display: block;
    margin-top: 2px;
  }

  /* Vitrin kartları — taşmayı önle */
  .hero-visual {
    width: 100%;
    padding: 0 4px;
  }

  .hero-visual-badge {
    font-size: .7rem;
    padding: 6px 12px;
    margin-bottom: 10px;
  }

  .hero-showcase {
    min-height: auto !important;
    padding: 36px 4px 14px !important;
    margin: 0 auto;
    max-width: min(100%, 340px);
  }

  .hero-showcase-aura {
    width: 260px !important;
    height: 260px !important;
  }

  .hero-showcase-bundle {
    font-size: .62rem !important;
    padding: 5px 12px !important;
    top: 10px !important;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-showcase-grid {
    gap: 0 !important;
    justify-content: center;
    width: 100%;
  }

  .hero-showcase-card {
    border-width: 2px;
    border-radius: 14px;
    animation: none !important;
  }

  .hero-showcase-card img {
    width: 26vw !important;
    max-width: 100px !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .hero-showcase-card-2 img {
    width: 32vw !important;
    max-width: 122px !important;
  }

  .hero-showcase-card-1 {
    transform: rotate(-7deg) translateY(10px) translateX(3px) !important;
  }

  .hero-showcase-card-2 {
    transform: scale(1.1) translateY(-6px) !important;
  }

  .hero-showcase-card-3 {
    transform: rotate(7deg) translateY(10px) translateX(-3px) !important;
  }

  .hero-showcase-card.is-spotlight,
  .hero-showcase-card-1.is-spotlight,
  .hero-showcase-card-2.is-spotlight,
  .hero-showcase-card-3.is-spotlight {
    transform: scale(1.08) translateY(-4px) !important;
    animation: none !important;
  }

  .hero-showcase-label {
    font-size: .55rem;
    padding: 4px 6px;
  }

  .hero-card-tag,
  .hero-card-hot {
    font-size: .58rem !important;
    padding: 3px 6px !important;
    top: 6px !important;
  }

  .hero-card-hot { right: 6px !important; }
  .hero-card-tag { left: 6px !important; }

  .hero-visual-stats {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
  }

  .hero-stat {
    flex: 1 1 30%;
    min-width: 72px;
    padding: 8px 10px !important;
    text-align: center;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .hero-stat span {
    font-size: .62rem;
  }

  .hero-wave svg {
    height: 28px;
  }

  /* ── İlerleme çubuğu ── */
  .selection-progress-bar {
    padding: 8px 0;
  }

  .selection-progress-bar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .progress-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .selection-count-text {
    width: 100%;
    text-align: center;
    font-size: .8rem;
    white-space: normal;
  }

  .selection-count-text .cnt {
    font-size: 1.15rem;
  }

  .selection-progress-track {
    flex: 1 1 100%;
    order: 2;
    height: 8px;
  }

  #goToFormBtn {
    width: 100%;
    order: 3;
    padding: 10px !important;
  }

  /* ── Ürünler ── */
  #urunler {
    padding-bottom: 32px !important;
  }

  .section-header {
    padding: 28px 0 18px;
  }

  .section-header h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    padding: 0 4px;
  }

  .section-header p {
    font-size: .88rem;
    padding: 0 4px;
  }

  .section-header .badge-pill {
    font-size: .7rem;
    padding: 5px 12px;
  }

  .size-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .size-filter-label {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    font-size: .8rem;
  }

  .size-filter-btns {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    scrollbar-width: none;
  }

  .size-filter-btns::-webkit-scrollbar {
    display: none;
  }

  .size-filter-btn {
    flex-shrink: 0;
    min-width: 38px;
    padding: 6px 12px;
    font-size: .78rem;
  }

  .product-col {
    padding-left: 6px;
    padding-right: 6px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-info {
    padding: 10px 10px 12px;
  }

  .product-info h3 {
    font-size: .82rem;
    line-height: 1.25;
  }

  .product-social-proof {
    font-size: .68rem;
  }

  .btn-add-cart {
    padding: 10px 8px;
    font-size: .75rem;
  }

  .gallery-nav {
    width: 28px;
    height: 28px;
  }

  .gallery-zoom {
    width: 30px;
    height: 30px;
  }

  /* ── Sipariş formu ── */
  .order-section {
    padding: 32px 0 48px !important;
  }

  .form-card {
    padding: 16px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .form-card-title {
    font-size: 1rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .form-card-title i {
    width: 32px;
    height: 32px;
    font-size: .9rem;
  }

  .selected-product-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }

  .selected-product-row img {
    width: 56px;
    height: 74px;
  }

  .order-summary-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .summary-total .value {
    font-size: 1.4rem;
  }

  .btn-order {
    padding: 14px;
    font-size: .95rem;
  }

  .security-icons {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  /* ── SSS ── */
  .faq-section {
    padding: 12px 0 48px;
  }

  .faq-section .accordion-button {
    font-size: .82rem;
    padding: 14px 12px;
    line-height: 1.35;
  }

  .faq-section .accordion-body {
    font-size: .85rem;
    padding: 12px 14px;
  }

  /* ── Footer ── */
  .site-footer-main {
    padding: 32px 0 24px;
  }

  .footer-logo-text {
    font-size: 1.15rem;
  }

  .footer-tagline {
    font-size: .85rem;
  }

  .footer-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .footer-trust-item {
    font-size: .72rem;
  }

  /* ── WhatsApp ── */
  .whatsapp-float {
    right: calc(12px + env(safe-area-inset-right, 0));
    bottom: calc(12px + env(safe-area-inset-bottom, 0));
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
  }

  /* ── Önizleme çubuğu ── */
  .theme-preview-bar-inner {
    font-size: .78rem;
    padding: 8px 0;
  }

  .theme-preview-bar-link {
    font-size: .72rem;
    padding: 5px 12px;
  }

  body.is-theme-preview {
    scroll-padding-top: 44px;
  }

  /* ── Tema ortak mobil ── */
  [class^="th-"][class*="-bar-inner"],
  [class^="th-"][class*="-strip-inner"],
  [class^="th-"][class*="-top-inner"],
  [class^="th-"][class*="-term-inner"],
  [class^="th-"][class*="-ticker-inner"],
  [class^="th-"][class*="-ribbon-inner"],
  [class^="th-"][class*="-banner-inner"] {
    font-size: .68rem;
    gap: 8px 12px;
    padding: 8px 0;
  }

  [class^="th-"][class*="-nav-inner"] {
    padding: 10px 14px !important;
    border-radius: 14px;
  }

  [class^="th-"][class*="-nav-btn"],
  [class^="th-"][class*="-nav-link"],
  [class^="th-"][class*="-nav-btn"] {
    font-size: .72rem !important;
    padding: 8px 14px !important;
  }

  [class^="th-"][class*="-main"],
  [class^="th-"][class*="-hero"],
  [class^="th-"][class*="-content"],
  [class^="th-"][class*="-body"] {
    padding-left: 0;
    padding-right: 0;
  }

  [class^="th-"][class*="-title"],
  [class^="th-"][class*="-headline"] {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    line-height: 1.1 !important;
  }

  [class^="th-"][class*="-lead"],
  [class^="th-"][class*="-desc"],
  [class^="th-"][class*="-sub"],
  [class^="th-"][class*="-lead"] {
    font-size: .88rem !important;
    max-width: 100% !important;
  }

  [class^="th-"][class*="-cta"] {
    width: 100%;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
  }

  [class^="th-"] .hero-showcase-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 8px 0 !important;
  }

  [class^="th-"] .hero-showcase-card {
    aspect-ratio: 3 / 4;
    min-width: 0;
  }

  [class^="th-"] .hero-showcase-card img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
  }

  [class^="th-"][class*="-frame"],
  [class^="th-"][class*="-showcase"],
  [class^="th-"][class*="-panel"],
  [class^="th-"][class*="-ring"],
  [class^="th-"][class*="-pot"],
  [class^="th-"][class*="-stage"] {
    padding: 16px 12px 12px !important;
    border-radius: 16px !important;
    max-width: 100%;
    overflow: hidden;
  }

  [class^="th-"][class*="-price"],
  [class^="th-"][class*="-pricing"],
  [class^="th-"][class*="-price-row"],
  [class^="th-"][class*="-price-card"],
  [class^="th-"][class*="-price-panel"],
  [class^="th-"][class*="-glass-card"],
  [class^="th-"][class*="-ticket"],
  [class^="th-"][class*="-console"],
  [class^="th-"][class*="-bubbles-price"] {
    max-width: 100% !important;
    flex-wrap: wrap;
  }

  [class^="th-"][class*="-stats"],
  [class^="th-"][class*="-metrics"],
  [class^="th-"][class*="-footer"],
  [class^="th-"][class*="-credits"],
  [class^="th-"][class*="-foot"],
  [class^="th-"][class*="-mini-stats"],
  [class^="th-"][class*="-stat-pills"] {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px !important;
    font-size: .75rem !important;
  }

  [class^="th-"][class*="-trust"],
  [class^="th-"][class*="-chips"],
  [class^="th-"][class*="-tags"],
  [class^="th-"][class*="-perks"] {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
  }

  /* Metro özel */
  .th-metro-headline {
    font-size: 2rem !important;
  }

  .th-metro-price-now {
    font-size: 2rem !important;
  }

  .th-metro-frame {
    box-shadow: 4px 4px 0 var(--th-yellow, #facc15) !important;
  }

  /* Noir özel */
  .th-noir-title {
    font-size: 2.4rem !important;
  }

  .th-noir-screen {
    padding: 18px 14px !important;
  }

  /* Candy özel */
  .th-candy-nav-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .th-candy-nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .th-candy-trust,
  .th-candy-tags,
  .th-fresh-trust {
    grid-template-columns: 1fr !important;
  }

  /* Zen trust tek sütun değil 2x2 */
  .th-zen-trust {
    flex-direction: column;
    align-items: stretch;
  }

  /* Pulse / Aurora min-height */
  .th-aurora,
  .th-pulse {
    min-height: auto !important;
    padding-bottom: 40px !important;
  }

  /* Royal frame crown */
  .th-royal-frame-crown {
    font-size: 1rem;
  }

  /* Terra layout copy first */
  .th-terra-layout {
    gap: 24px !important;
  }

  /* Fresh bento copy padding */
  .th-fresh-bento-copy {
    padding: 22px 16px !important;
  }

  /* Sipariş takip */
  .site-header .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-header .btn {
    font-size: .78rem;
    padding: 6px 12px !important;
  }

  /* Sipariş takip formu */
  .input-group.mb-3 {
    flex-wrap: wrap;
    border-radius: 14px !important;
    overflow: visible !important;
    box-shadow: none !important;
    gap: 8px;
  }

  .input-group.mb-3 .input-group-text,
  .input-group.mb-3 .form-control {
    border-radius: 12px !important;
  }

  .input-group.mb-3 .form-control {
    flex: 1 1 calc(100% - 48px);
    min-width: 0;
  }

  .input-group.mb-3 .btn-danger {
    flex: 1 1 100%;
    width: 100%;
    border-radius: 12px !important;
    padding: 12px !important;
  }
}

/* ── Çok küçük ekran (≤380px) ── */
@media (max-width: 380px) {
  .hero-headline-main {
    font-size: 1.55rem !important;
  }

  .hero-showcase-card img {
    max-width: 88px !important;
  }

  .hero-showcase-card-2 img {
    max-width: 108px !important;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-stat {
    flex: 1 1 45%;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  [class^="th-"][class*="-title"],
  [class^="th-"][class*="-headline"] {
    font-size: 1.4rem !important;
  }
}

/* Yatay mod telefon */
@media (max-width: 896px) and (orientation: landscape) {
  .hero-content {
    padding: 12px 0 24px;
  }

  .hero-showcase {
    max-width: 380px;
  }

  .selection-progress-bar {
    position: relative !important;
  }
}
