/* Tema 3 — Mobil uyumluluk (v3.0) */

html[data-theme="tema-3"] {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

html[data-theme="tema-3"] body {
  overflow-x: clip;
}

html[data-theme="tema-3"] body.t3-mobile-open {
  overflow: hidden;
  touch-action: none;
}

/* ── Genel ── */
@media (max-width: 768px) {
  html[data-theme="tema-3"] {
    --t3-page-gutter: clamp(12px, 4vw, 20px);
  }

  .t3-container,
  .t3-header-inner {
    width: min(1200px, calc(100% - 24px));
  }

  .t3-section {
    padding: 2.5rem 0;
  }

  .t3-section-head {
    margin-bottom: 1.5rem;
  }

  .t3-section-head h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .t3-platforms {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr));
    gap: 0.65rem;
  }

  .t3-platform-card {
    padding: 0.95rem 0.45rem;
  }

  .t3-platform-card span {
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
  }

  .t3-faq-answer {
    padding: 0 1rem 1rem;
    margin: 0 0.5rem 0.5rem;
  }

  .t3-product-row {
    padding: 0.65rem 0.7rem;
    margin: 0 0.35rem;
  }

  .t3-footer-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .t3-blog-grid {
    gap: 1rem;
  }

  .t3-blog-card h3 {
    font-size: 0.95rem;
  }

  .t3-page-wrap {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .t3-page-banner {
    padding: 1.75rem 0 1.25rem;
    margin-bottom: 1rem;
  }

  .t3-live-support {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    max-width: calc(100vw - 1.5rem);
    font-size: 0.72rem;
    padding: 0.6rem 0.9rem;
  }
}

/* ── Header ── */
@media (max-width: 768px) {
  .t3-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    box-shadow: 0 1px 0 #eef2f6, 0 6px 24px rgba(15, 23, 42, 0.05);
  }

  .t3-topbar {
    display: none;
  }

  .t3-mainbar {
    border-bottom: none;
  }

  .t3-search-wrap {
    display: none !important;
  }

  .t3-mainbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    min-height: 54px;
    padding: 0.45rem 0;
  }

  .t3-logo {
    min-width: 0;
    font-size: 0.98rem;
    gap: 0.5rem;
  }

  .t3-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.62rem;
    box-shadow: none;
  }

  .t3-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .t3-actions {
    gap: 4px;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .t3-actions #t3-cart-open,
  .t3-actions .t3-notif-wrap {
    display: inline-grid !important;
  }

  #t3-order-open,
  #t2-login-open {
    display: none !important;
  }

  .t3-mobile-theme-bar-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }

  .t3-mobile-nav-head-actions .t3-theme-toggle {
    flex-shrink: 0;
    width: 56px;
    height: 28px;
  }

  .t3-icon-badge {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #334155;
  }

  .t3-icon-badge:hover,
  .t3-icon-badge:focus-visible {
    background: #f1f5f9;
    color: var(--t3-primary, #059669);
  }

  .t3-icon-badge svg {
    width: 20px;
    height: 20px;
  }

  .t3-notif-wrap .t3-icon-badge svg {
    width: 21px;
    height: 21px;
  }

  .t3-badge {
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    border-width: 1.5px;
  }

  .t3-mobile-toggle.t3-icon-badge {
    color: var(--t3-primary, #059669);
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.18);
    box-shadow: none;
  }

  .t3-mobile-toggle.t3-icon-badge:hover,
  .t3-mobile-toggle.t3-icon-badge:focus-visible {
    background: rgba(5, 150, 105, 0.14);
    border-color: rgba(5, 150, 105, 0.32);
    color: var(--t3-primary-dark, #047857);
  }

  .t3-mobile-toggle svg {
    width: 21px;
    height: 21px;
  }

  .t3-mobile-nav-panel {
    width: 100%;
    max-width: 100%;
  }

  .t3-mobile-nav a,
  .t3-mobile-tools-toggle {
    padding: 0.82rem 1rem;
    font-size: 0.92rem;
  }

  .t3-mobile-tools-panel a {
    font-size: 0.84rem;
    padding: 0.5rem 0.7rem;
  }

  .t3-mobile-nav-icons {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0 0 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid #eef2f7;
  }

  .t3-mobile-nav-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
  }

  .t3-mobile-nav-icon-btn .t3-badge {
    top: -4px;
    right: -4px;
  }
}

@media (max-width: 480px) {
  .t3-mainbar-inner {
    min-height: 50px;
  }

  .t3-actions {
    gap: 2px;
  }

  .t3-icon-badge {
    width: 38px;
    height: 38px;
  }

  .t3-mobile-nav-icons {
    display: flex;
  }

  .t3-hero-mini .t3-hero-small {
    min-height: 148px;
    height: 148px;
  }

  .t3-home-stats-grid {
    gap: 0.85rem 0.55rem;
  }
}

@media (max-width: 390px) {
  #t3-order-open {
    display: none;
  }
}

/* ── Hizmet detay ── */
@media (max-width: 768px) {
  .t3-svc-shell {
    margin-bottom: 28px;
  }

  .t3-svc-area-options {
    padding: 14px 12px 12px;
  }

  .t3-svc-area-heading {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.35;
  }

  .t3-svc-area-heading span {
    font-size: 14px;
    margin-bottom: 1px;
  }

  .t3-svc-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .t3-svc-pkg {
    padding: 8px 9px 22px;
    border-radius: 10px;
    line-height: 1.15;
  }

  .t3-svc-pkg-qty {
    font-size: 15px;
    line-height: 1.1;
  }

  .t3-svc-pkg-unit {
    font-size: 11px;
    line-height: 1.15;
    margin-top: 1px;
  }

  .t3-svc-pkg-price {
    padding: 2px 7px 1px 9px;
    font-size: 10px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 7px;
  }

  .t3-svc-pkg-active::after {
    font-size: 13px;
    top: 5px;
    right: 6px;
  }

  .t3-svc-area {
    margin-bottom: 58px;
  }

  .t3-svc-details {
    margin-top: 32px;
  }

  .t3-svc-how-item .text span {
    font-size: 16px;
  }

  .t3-svc-related-grid {
    grid-template-columns: 1fr;
  }

  .t3-svc-faq-grid {
    grid-template-columns: 1fr;
  }

  .t3-svc-price-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .t3-svc-packages {
    gap: 5px;
  }

  .t3-svc-pkg {
    padding: 7px 8px 20px;
  }

  .t3-svc-pkg-qty {
    font-size: 14px;
  }

  .t3-svc-pkg-unit {
    font-size: 10px;
  }
}

/* ── Platform sayfası ── */
@media (max-width: 640px) {
  .t3p-hero-inner {
    padding: 1.5rem 0 1.25rem;
  }

  .t3p-segments {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .t3p-segment {
    flex-shrink: 0;
  }
}

/* Sepet modal mobil kuralları cart-page.css içinde */
