/* pe-build:4 — telefon düzeni (site.css'ten sonra yüklenir) */
@media (max-width: 768px) {
  :root {
    --pad-x: 16px;
    --nav-h: 56px;
    --ticker-h: 0px;
    --m-gap: 14px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    font-size: 16px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
  }

  /* Üst bant telefonda gizlenir; chrome tek sabit katman */
  .site-ticker {
    display: none !important;
  }

  .site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    max-width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    box-sizing: border-box;
  }

  .site-header {
    position: relative;
    height: var(--nav-h);
    width: 100%;
    box-sizing: border-box;
  }

  .site-header .inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    height: var(--nav-h);
    padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box;
    grid-template-columns: unset !important;
  }

  .nav-desktop {
    display: none !important;
  }

  .brand,
  .brand-logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .pe-logo {
    height: 34px !important;
    width: auto !important;
    max-width: min(150px, 46vw) !important;
  }

  .nav-tools {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  main {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .wrap,
  .entry-content,
  .co-main,
  .admin-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box !important;
  }

  /* —— Hero —— */
  .entry {
    width: 100%;
    max-width: 100%;
    min-height: min(72dvh, 560px);
    overflow: hidden;
    align-items: end;
  }

  .entry-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-items: stretch;
    padding-top: 28px !important;
    padding-bottom: 32px !important;
    gap: 0;
  }

  /* Header’da logo var; hero’da tekrar etmesin */
  .entry-logo-wrap {
    display: none !important;
  }

  .entry-kicker {
    align-self: flex-start;
    margin-bottom: 12px;
    font-size: 0.75rem;
  }

  .entry-headline {
    font-size: clamp(1.55rem, 6.5vw, 2rem) !important;
    max-width: 16ch !important;
    line-height: 1.18 !important;
    margin: 0 0 12px !important;
  }

  .entry-lead {
    font-size: 0.98rem;
    max-width: 32ch;
    margin: 0 0 16px;
    line-height: 1.5;
  }

  .entry-points {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 18px;
    list-style: none;
  }

  .entry-points li {
    font-size: 0.88rem;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
  }

  .entry-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .entry-cta .btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }

  /* —— Trust —— */
  .trust-strip {
    width: 100%;
    overflow: hidden;
  }

  .trust-strip-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    overflow: hidden;
  }

  .trust-item {
    min-width: 0 !important;
    flex: none !important;
    padding: 14px 12px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .trust-item:nth-child(2n) {
    border-right: 0 !important;
  }

  .trust-item:nth-child(n + 3) {
    border-bottom: 0 !important;
  }

  .trust-item strong {
    font-size: 0.9rem;
  }

  .trust-item span {
    font-size: 0.78rem;
  }

  /* —— Sections —— */
  .section {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-head-cta {
    width: 100%;
  }

  .section-head-cta.btn,
  .section-more .btn,
  .page-hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 1.95rem);
    line-height: 1.15;
  }

  .section-lead {
    font-size: 0.95rem;
    margin-bottom: 16px;
    max-width: 34ch;
  }

  .page-hero {
    margin-bottom: 20px;
  }

  .page-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* —— Product cards —— */
  .fab-series-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100%;
  }

  .fab-series {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: 16px;
    gap: 12px;
    box-sizing: border-box;
  }

  .fab-series-head {
    margin-bottom: 2px;
  }

  .fab-series-title {
    font-size: 1.15rem;
  }

  .fab-series-blurb,
  .fab-feat-mini,
  .fab-swatches {
    display: none !important;
  }

  .fab-series-price .price-now {
    font-size: 1.25rem;
  }

  .fab-carousel {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
    width: 100%;
    align-items: center;
  }

  .fab-nav {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .fab-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    max-height: none;
    border-radius: 14px;
  }

  .fab-order-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto !important;
    min-height: 48px !important;
    font-size: 0.92rem !important;
    padding: 0 14px !important;
  }

  /* —— Buttons —— */
  .btn {
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  /* —— Flow / install —— */
  .flow-stage,
  .install-stage {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  

  

  .flow-steps li,
  .install-steps li {
    padding: 12px 14px;
  }

  /* —— Gallery —— */
  .ba-track {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
  }

  .ba-caption {
    font-size: 0.9rem;
    padding-top: 8px;
  }

  /* —— FAQ —— */
  .faq-list {
    gap: 10px;
    max-width: 100%;
  }

  .faq-item summary {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 0.98rem;
  }

  .faq-item p {
    padding: 0 16px 14px;
    font-size: 0.92rem;
  }

  /* —— Float dock —— */
  .float-dock {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  /* —— Sipariş —— */
  .siparis-grid,
  .grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .siparis-totals {
    position: static !important;
  }

  .fab-pick {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .fab-pick-img {
    min-height: 180px;
  }

  .color-pick-stage {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .color-pick-fig {
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .color-pick-thumbs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .measure,
  .siparis-card,
  .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* —— Ürün detay —— */
  .urun-layout {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .urun-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .urun-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .urun-thumbs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* —— Compare —— */
  .cmp-tray {
    grid-template-columns: 1fr !important;
  }

  .cmp-chip {
    width: 100%;
  }

  /* —— Welcome —— */
  .pe-welcome {
    padding: 8px;
    align-items: center;
  }

  .pe-welcome-panel {
    width: min(100%, 520px);
    max-height: 92dvh;
    border-radius: 14px;
  }

  .pe-welcome-img {
    max-height: min(58dvh, 480px);
    width: 100%;
    object-fit: contain;
  }

  .pe-welcome-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .pe-welcome-go {
    width: 100%;
    min-height: 48px;
  }

  .pe-welcome-x {
    top: 8px;
    right: 8px;
  }

  /* —— Footer —— */
  .site-footer {
    width: 100%;
    overflow-x: hidden;
  }

  .footer-top {
    padding-top: 32px;
    padding-bottom: 24px;
    gap: 24px;
  }

  .footer-actions {
    flex-direction: column;
  }

  .footer-actions .btn {
    width: 100%;
    flex: none;
  }

  .footer-navs {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .nav-sheet {
    width: min(100%, 100vw);
    left: 0;
    right: 0;
    max-width: none;
  }

  .nav-sheet-links a {
    min-height: 50px;
    padding: 14px 14px;
  }

  /* Genel taşma kilidi */
  img,
  video,
  svg,
  canvas {
    max-width: 100%;
  }

  .fab-series,
  .fab-carousel,
  .fab-stage,
  .entry,
  .trust-strip,
  .ba-track,
  .section {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  :root {
    --pad-x: 14px;
  }

  .fab-series-title {
    font-size: 1.05rem;
  }

  .pe-logo {
    max-width: min(132px, 42vw) !important;
  }
}

/* ================================================================
   Mobil cilası (2026-11) — önceki üç mobil katmanın üstüne son söz
   ================================================================ */
@media (max-width: 768px) {
  html { scroll-padding-top: calc(var(--nav-h) + 12px); }

  /* Hero: madde işaretleri buton gibi tam genişlik kutular değil, sade liste */
  .entry-points {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px 16px !important;
    margin-bottom: 22px !important;
  }
  .entry-points li {
    position: relative;
    padding: 0 0 0 22px !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0.88rem !important;
    font-weight: 600;
  }
  .entry-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--mark-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
  }
  .entry { min-height: auto; }
  .entry-content { padding-top: 40px !important; padding-bottom: 36px !important; }

  /* Kumaşlar: 11 uzun kart alt alta yerine 2 sütun, kısa kartlar */
  .fab-series-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .fab-series {
    padding: 10px !important;
    border-radius: 14px !important;
    gap: 0 !important;
  }
  .fab-series-eyebrow { font-size: 0.68rem !important; margin-bottom: 2px !important; }
  .fab-series-title { font-size: 1rem !important; }
  .fab-series-head { margin-bottom: 8px !important; }
  .fab-series-price .price-block { margin-top: 4px; }
  .fab-series-price .price-now { font-size: 1.05rem !important; }
  .fab-series-price .price-was { font-size: 0.7rem !important; }
  .fab-series-price .price-unit { font-size: 0.64rem !important; }
  .fab-carousel { display: block !important; position: relative; }
  .fab-stage { display: block; width: 100%; aspect-ratio: 1 / 1 !important; border-radius: 10px !important; }
  .fab-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 30px !important;
    height: 30px !important;
    margin-top: -15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  .fab-prev { left: 4px; }
  .fab-next { right: 4px; }
  .fab-count { font-size: 0.62rem; padding: 2px 7px; top: 6px; right: 6px; }
  .fab-order-link {
    min-height: 40px !important;
    margin-top: 10px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
  }

  /* Öncesi/sonrası: ekranı kaplamasın */
  .ba-track {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x) 6px;
    scrollbar-width: none;
  }
  .ba-track::-webkit-scrollbar { display: none; }
  .ba-slide { flex: 0 0 84%; scroll-snap-align: center; }

  /* SSS: tek iç boşluk kuralı */
  .faq-item { padding: 0 !important; }
  .faq-item summary { padding: 16px 48px 16px 16px !important; font-size: 0.98rem; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 16px 16px !important; }

  /* Sağ alttaki 3 büyük buton içeriği kapatıyordu: küçült, Instagram'ı gizle (altbilgide var) */
  .float-dock { gap: 8px !important; right: 12px !important; bottom: max(12px, env(safe-area-inset-bottom)) !important; }
  .float-btn { width: 46px !important; height: 46px !important; border-radius: 50% !important; }
  .float-btn svg { width: 20px; height: 20px; }
  .float-ig { display: none !important; }

  /* Sipariş: kumaş seçimi yatay kaydırılan şerit */
  .fab-pick {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 10px !important;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .fab-pick::-webkit-scrollbar { display: none; }
  .fab-pick-card { flex: 0 0 40%; scroll-snap-align: start; border-radius: 12px; }
  .fab-pick-img { aspect-ratio: 1 / 1 !important; min-height: 0 !important; }
  .fab-pick-name { font-size: 0.72rem; }
  .fab-pick-price b { font-size: 0.9rem; }
  .color-pick-fig { aspect-ratio: 4 / 3 !important; }
  .measure { padding: 0 !important; }
  .measure-body { padding: 14px 14px 16px; }

  /* Menü: tam ekran yerine sağdan panel, kenarda boşluk kalsın */
  .nav-sheet { left: auto !important; right: 0 !important; width: min(86vw, 360px) !important; }

  .section { padding-top: 44px; padding-bottom: 44px; }
}

@media (max-width: 380px) {
  .fab-series-title { font-size: 0.92rem !important; }
  .fab-pick-card { flex-basis: 46%; }
}
