/* 3E Yazılım — güncel ZIP tabanlı mobil son düzen */

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip !important;
  }
}

img,
picture,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

main,
main > *,
section,
article,
aside {
  min-width: 0;
}

.three-mobile-table-scroll,
.three-mobile-overflow {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.three-mobile-table-scroll table {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

@media (max-width: 1320px) {
  body.three-mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .three-premium-header.is-open {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .three-premium-header.is-open .three-header-shell {
    width: calc(100% - 22px) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    overflow: hidden !important;
  }

  .three-premium-header.is-open .three-header-brand,
  .three-premium-header.is-open .three-header-toggle {
    align-self: center !important;
  }

  .three-premium-header.is-open .three-header-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 2px calc(26px + env(safe-area-inset-bottom)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    background: #ffffff !important;
  }

  .three-premium-header.is-open .three-header-nav::-webkit-scrollbar {
    width: 5px;
  }

  .three-premium-header.is-open .three-header-nav::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #c9d4e2;
  }

  .three-premium-header.is-open .three-header-nav > a,
  .three-premium-header.is-open .three-header-nav .three-google-nav-main {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 13px 12px !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-bottom: 1px solid #e6ebf2 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #07152d !important;
    -webkit-text-fill-color: #07152d !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .three-premium-header.is-open .three-header-nav > a:hover,
  .three-premium-header.is-open .three-header-nav > a:focus,
  .three-premium-header.is-open .three-header-nav .three-google-nav-main:hover,
  .three-premium-header.is-open .three-header-nav .three-google-nav-main:focus {
    background: #f5f8fc !important;
    background-color: #f5f8fc !important;
    color: #0d315f !important;
    -webkit-text-fill-color: #0d315f !important;
  }

  .three-premium-header.is-open .three-header-nav > a[aria-current="page"],
  .three-premium-header.is-open .three-header-nav .three-google-nav-main[aria-current="page"],
  .three-premium-header.is-open .three-header-nav .is-section-current {
    padding-left: 10px !important;
    border-left: 3px solid #155eef !important;
    background: #eef4ff !important;
    background-color: #eef4ff !important;
    color: #155eef !important;
    -webkit-text-fill-color: #155eef !important;
  }

  /* Satın Al mobilde kaybolmaz; temiz, okunaklı tek CTA olarak kalır. */
  .three-premium-header.is-open .three-header-nav > a.three-header-shop,
  .three-premium-header.is-open .three-header-nav > a.three-header-shop:hover,
  .three-premium-header.is-open .three-header-nav > a.three-header-shop:focus,
  .three-premium-header.is-open .three-header-nav > a.three-header-shop[aria-current="page"] {
    width: 100% !important;
    min-height: 50px !important;
    height: auto !important;
    margin: 2px 0 9px !important;
    padding: 13px 14px !important;
    justify-content: center !important;
    border: 1px solid #128552 !important;
    border-radius: 8px !important;
    background: #15945d !important;
    background-color: #15945d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-align: center !important;
    transform: none !important;
  }

  .three-premium-header.is-open .three-header-nav > a.three-header-shop:hover,
  .three-premium-header.is-open .three-header-nav > a.three-header-shop:focus,
  .three-premium-header.is-open .three-header-nav > a.three-header-shop[aria-current="page"] {
    border-color: #0d7145 !important;
    background: #0d7d4c !important;
    background-color: #0d7d4c !important;
  }

  .three-premium-header.is-open .three-header-nav .three-google-nav-drop {
    flex: 0 0 auto !important;
    grid-column: auto !important;
    width: 100% !important;
    display: block !important;
  }

  .three-premium-header.is-open .three-header-nav .three-google-nav-panel {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .three-premium-header.is-open .three-header-nav .three-google-nav-panel-inner {
    width: 100% !important;
    margin: 0 0 7px !important;
    padding: 2px 0 5px 14px !important;
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
  }

  .three-premium-header.is-open .three-header-nav .three-google-nav-panel a {
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-left: 2px solid #dce4ef !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #31445f !important;
    -webkit-text-fill-color: #31445f !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .three-premium-header.is-open .three-header-nav .three-google-nav-panel a:hover,
  .three-premium-header.is-open .three-header-nav .three-google-nav-panel a:focus,
  .three-premium-header.is-open .three-header-nav .three-google-nav-panel a[aria-current="page"] {
    border-left-color: #155eef !important;
    background: #eef4ff !important;
    color: #155eef !important;
    -webkit-text-fill-color: #155eef !important;
  }
}

@media (max-width: 760px) {
  body,
  button,
  input,
  select,
  textarea {
    -webkit-text-size-adjust: 100%;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    max-width: 100% !important;
    font-size: 16px !important;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  a,
  button,
  label,
  span {
    overflow-wrap: break-word;
  }

  pre,
  code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  /* Paketler sayfasındaki yatay sekmeler mobilde düzgün bir ızgaraya dönüşür. */
  body.page-packages .pkgv2-jump {
    width: calc(100% - 28px) !important;
    min-height: 0 !important;
    padding: 7px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  body.page-packages .pkgv2-jump a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 9px 8px !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  /* Satın Al, ürün, sepet ve ödeme ekranları. */
  .three-store-shell,
  .three-store-installment-payment {
    width: calc(100% - 22px) !important;
  }

  .three-store-card-actions,
  .three-store-actions,
  .three-store-result-actions,
  .three-store-form-grid {
    grid-template-columns: 1fr !important;
  }

  .three-store-card-actions a,
  .three-store-card-actions button,
  .three-store-button,
  .three-store-result-actions a {
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .three-store-product-summary h1,
  .three-store-catalog-head h1 {
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  .three-store-price {
    font-size: clamp(32px, 10vw, 40px) !important;
  }

  .three-store-detail-section,
  .three-store-notice,
  .three-store-sidebox,
  .three-store-checkout-form,
  .three-store-summary-box {
    padding: 18px !important;
  }

  .three-store-installment-payment .three-installment-payment-inner {
    padding: 14px !important;
  }

  .three-store-installment-payment .three-installment-slider,
  .three-installment-slider {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Kampanya ve blog kartları dar ekranda tek sütun kalır. */
  .three-campaign-list-item,
  .blog-list-item {
    min-width: 0 !important;
  }

  .three-campaign-list-item .blog-list-action,
  .blog-list-item .blog-list-action {
    width: 100% !important;
    white-space: normal !important;
  }

  .three-campaign-list-item .blog-list-action a,
  .blog-list-item .blog-list-action a {
    display: inline-flex !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* Mevcut yatay karşılaştırmalar ve stok tabloları dokunarak kaydırılır. */
  .r-compare,
  .p-stock-panel,
  .three-package-table-wrap,
  .compare,
  .table-responsive {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-inline: contain !important;
  }

  .three-static-map,
  .three-static-map iframe {
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .three-header-shell {
    width: calc(100% - 18px) !important;
  }

  .three-header-brand-text strong {
    font-size: 20px !important;
  }

  .three-header-brand-text em {
    font-size: 13px !important;
  }

  body.page-packages .pkgv2-jump {
    grid-template-columns: 1fr !important;
  }

  .three-store-product-summary h1,
  .three-store-catalog-head h1 {
    font-size: 30px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .three-premium-header *,
  .three-mobile-table-scroll *,
  .three-mobile-overflow * {
    scroll-behavior: auto !important;
  }
}
