/*
 * MedyaHizmetlerim Mobile Premium V3.2
 * 2026-08-09 — Android/Instagram mobil olcek ve yerlesim hotfix
 * Onceki V3 dosyasindan sonra yuklenir; yalnizca 760px ve altinda calisir.
 */

@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
  }

  /* Ust baslik: ana sayfada kaybolmasin ve ekranin gereksiz kismini kaplamasin. */
  html body header.premium-site-header,
  html body header.premium-site-header.scrolled {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 5px 0 !important;
    opacity: 1 !important;
    background: #eef8ff !important;
    transform: none !important;
  }

  html body header.premium-site-header .container {
    width: calc(100% - 12px) !important;
    max-width: none !important;
    padding: 0 !important;
  }

  html body .premium-site-header .premium-header-shell {
    min-height: 56px !important;
    height: 56px !important;
    gap: 6px !important;
    padding: 5px 6px !important;
    border-radius: 14px !important;
  }

  html body .premium-site-header .premium-brand {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    height: 44px !important;
    flex: 1 1 auto !important;
    padding: 6px 8px !important;
    border-radius: 11px !important;
  }

  html body .premium-site-header .premium-brand-logo {
    width: min(100%, 205px) !important;
    max-width: 205px !important;
    max-height: 25px !important;
  }

  html body .premium-site-header .premium-header-actions {
    gap: 5px !important;
  }

  html body .premium-site-header .premium-header-cart.cart {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 4px !important;
    border-radius: 12px !important;
  }

  html body .premium-site-header .premium-header-cart-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 9px !important;
  }

  html body .premium-site-header .premium-header-cart-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  html body .premium-site-header .premium-header-cart.cart .counter {
    top: -5px !important;
    right: -5px !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 5px !important;
    border-width: 2px !important;
    font-size: 8px !important;
  }

  /* Ana sayfa: sehir kalsin; ikon, yazi, buton ve ozellikler mobil ritme donsun. */
  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero,
  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__inner {
    min-height: 620px !important;
    height: 620px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__art {
    background-image:
      linear-gradient(180deg, rgba(3,13,30,.08) 0%, rgba(4,17,37,.15) 37%, rgba(5,20,42,.66) 77%, #07162b 100%),
      linear-gradient(90deg, rgba(4,17,38,.4), rgba(5,20,41,.01)),
      url("mh-premium-city-v3.webp") !important;
    background-position: 64% center !important;
    background-size: cover !important;
    filter: none !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__inner {
    display: flex !important;
    align-items: flex-start !important;
    padding: 128px 12px 54px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-social-sky {
    top: 18px !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    height: 42px !important;
    gap: 12px !important;
    padding: 0 10px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-social {
    position: relative !important;
    inset: auto !important;
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 11px !important;
    transform: none !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-social::before {
    height: 34px !important;
    opacity: .28 !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-social i {
    font-size: 18px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__copy {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__kicker {
    min-height: 26px !important;
    padding: 5px 8px !important;
    font-size: 7.5px !important;
    line-height: 1.15 !important;
    letter-spacing: .07em !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__copy h1 {
    margin: 10px 0 8px !important;
    color: #f7fbff !important;
    font-size: 23px !important;
    line-height: 1.02 !important;
    letter-spacing: -.035em !important;
    text-shadow: 0 2px 12px rgba(0,8,22,.3) !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__copy > p {
    margin: 0 !important;
    color: #d4e2ef !important;
    font-size: 10px !important;
    line-height: 1.42 !important;
    text-shadow: 0 1px 6px rgba(0,7,18,.5) !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__actions {
    gap: 6px !important;
    margin-top: 11px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__button,
  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-hero__button--primary {
    width: 100% !important;
    min-height: 38px !important;
    padding: 7px 9px !important;
    border-radius: 11px !important;
    font-size: 9px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-feature-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 11px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-feature {
    min-width: 0 !important;
    min-height: 48px !important;
    gap: 6px !important;
    padding: 6px 7px !important;
    border-radius: 11px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-feature svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin-right: 5px !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-feature strong {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  html.premium-home-v31-active body.premium-home-v31-active section#intro.mh-premium-hero .mh-v31-feature small {
    font-size: 7px !important;
    line-height: 1.15 !important;
  }

  /* Kategori detayi: buyuk yari-bos gorseli kompakt guven seridine cevir. */
  html body.mhui-category .pcd-shell .service--detail .poster,
  html body.pcd-detail-active .pcd-shell .service--detail .poster {
    position: relative !important;
    min-height: 78px !important;
    height: 78px !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(120deg, #03152b, #06375e 64%, #0c7da4) !important;
  }

  html body.mhui-category .pcd-shell .service--detail .poster .pcd-premium-visual,
  html body.pcd-detail-active .pcd-shell .service--detail .poster .pcd-premium-visual {
    object-position: left center !important;
    opacity: .18 !important;
    filter: saturate(.7) contrast(1.08) !important;
  }

  html body.mhui-category .pcd-shell .pcd-platform-mark,
  html body.pcd-detail-active .pcd-shell .pcd-platform-mark {
    top: 50% !important;
    right: auto !important;
    left: 10px !important;
    width: 40px !important;
    height: 40px !important;
    transform: translateY(-50%) !important;
  }

  html body.mhui-category .pcd-shell .pcd-platform-core,
  html body.pcd-detail-active .pcd-shell .pcd-platform-core {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  html body.mhui-category .pcd-shell .pcd-platform-core i,
  html body.pcd-detail-active .pcd-shell .pcd-platform-core i {
    font-size: 16px !important;
  }

  html body.mhui-category .pcd-shell .service--detail .poster .count,
  html body.pcd-detail-active .pcd-shell .service--detail .poster .count {
    inset: 10px 10px 10px 58px !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 7px 9px !important;
    border-radius: 11px !important;
  }

  html body.mhui-category .pcd-shell .poster .count .text,
  html body.pcd-detail-active .pcd-shell .poster .count .text {
    font-size: 8px !important;
    line-height: 1.2 !important;
  }

  html body.mhui-category .pcd-shell .poster .count .text > span,
  html body.pcd-detail-active .pcd-shell .poster .count .text > span {
    font-size: 10px !important;
  }

  html body.mhui-category .pcd-shell .poster .count > .icon,
  html body.pcd-detail-active .pcd-shell .poster .count > .icon {
    display: none !important;
  }

  html body.mhui-category .pcd-shell .service--detail .service--features ul,
  html body.pcd-detail-active .pcd-shell .service--detail .service--features ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body.mhui-category .pcd-shell .service--detail .service--features ul li,
  html body.pcd-detail-active .pcd-shell .service--detail .service--features ul li {
    min-height: 39px !important;
    gap: 6px !important;
    padding: 5px 6px !important;
    border-radius: 11px !important;
  }

  html body.mhui-category .pcd-shell .service--features li > .icon,
  html body.pcd-detail-active .pcd-shell .service--features li > .icon {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
  }

  html body.mhui-category .pcd-shell .service--features li > span,
  html body.pcd-detail-active .pcd-shell .service--features li > span {
    font-size: 8.5px !important;
    line-height: 1.18 !important;
  }

  html body.mhui-category .pcd-shell .service--content .pack--list,
  html body.pcd-detail-active .pcd-shell .service--content .pack--list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 10px !important;
  }

  html body.mhui-category .pcd-shell .service--content .pack--list .pack,
  html body.pcd-detail-active .pcd-shell .service--content .pack--list .pack {
    min-height: 78px !important;
    height: 78px !important;
    padding: 9px 6px 7px !important;
    border-radius: 13px !important;
  }

  html body.mhui-category .pcd-shell .pack--list .pack span.amount,
  html body.pcd-detail-active .pcd-shell .pack--list .pack span.amount {
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.mhui-category .pcd-shell .pack--list .pack span.type,
  html body.pcd-detail-active .pcd-shell .pack--list .pack span.type {
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  html body.mhui-category .pcd-shell .pack--list .pack span.price,
  html body.pcd-detail-active .pcd-shell .pack--list .pack span.price {
    min-height: 19px !important;
    margin-top: 4px !important;
    padding: 3px 6px !important;
    border-radius: 7px !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  html body.mhui-category .pcd-shell .pack--list .pack::after,
  html body.pcd-detail-active .pcd-shell .pack--list .pack::after {
    top: 5px !important;
    right: 5px !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 5px !important;
  }

  html body.mhui-category .pcd-shell .service--content .service--bottom,
  html body.mhui-category .pcd-shell .service--content .service--bottom.active-bar,
  html body.pcd-detail-active .pcd-shell .service--content .service--bottom,
  html body.pcd-detail-active .pcd-shell .service--content .service--bottom.active-bar {
    z-index: 1075 !important;
    right: auto !important;
    bottom: calc(61px + env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: min(360px, calc(100% - 14px)) !important;
    min-height: 48px !important;
    height: 48px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 136px !important;
    gap: 5px !important;
    padding: 4px !important;
    border-radius: 13px !important;
    transform: translateX(-50%) !important;
  }

  html body.mhui-category .pcd-shell .service--content .selected--pack,
  html body.pcd-detail-active .pcd-shell .service--content .selected--pack {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 4px !important;
  }

  html body.mhui-category .pcd-shell .selected--pack .text,
  html body.pcd-detail-active .pcd-shell .selected--pack .text {
    display: block !important;
    min-width: 0 !important;
    line-height: 1.12 !important;
  }

  html body.mhui-category .pcd-shell .selected--pack .text > span,
  html body.pcd-detail-active .pcd-shell .selected--pack .text > span {
    display: block !important;
    max-width: none !important;
    overflow: visible !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  html body.mhui-category .pcd-shell .selected--pack .text > span:first-child,
  html body.pcd-detail-active .pcd-shell .selected--pack .text > span:first-child {
    font-size: 9px !important;
  }

  html body.mhui-category .pcd-shell .pack--action,
  html body.pcd-detail-active .pcd-shell .pack--action {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body.mhui-category .pcd-shell .pack--action .pack--butto,
  html body.pcd-detail-active .pcd-shell .pack--action .pack--butto {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
    font-size: 9px !important;
  }

  /* Urun/islem sayfasi: tum basliklari ve formu gercek telefon olcegine indir. */
  html body.mh-conversion-order .mh-order-hero {
    padding: 13px 0 12px !important;
  }

  html body.mh-conversion-order .mh-order-hero h1 {
    margin: 5px 0 7px !important;
    font-size: 21px !important;
    line-height: 1.08 !important;
  }

  html body.mh-conversion-order .mh-order-hero p {
    max-width: 100% !important;
    font-size: 9.5px !important;
    line-height: 1.4 !important;
  }

  html body.mh-conversion-order .mh-order-eyebrow {
    font-size: 7.5px !important;
    letter-spacing: .1em !important;
  }

  html body.mh-conversion-order #orderPage.mh-order-page {
    padding: 9px 0 124px !important;
  }

  html body.mh-conversion-order #orderPage.mh-order-page > .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 8px !important;
  }

  html body.mh-conversion-order #orderPage.mh-order-page .mh-order-main,
  html body.mh-conversion-order #orderPage.mh-order-page .mh-order-grid {
    gap: 9px !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-order-card {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-order-card__head {
    gap: 7px !important;
    margin-bottom: 10px !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-step {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-order-card__head h2 {
    margin: 0 0 2px !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-order-card__head p {
    font-size: 8.5px !important;
    line-height: 1.35 !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-target-box {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-target-box label {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-target-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-target-row input,
  html body.mhui-product #orderPage.mh-order-page .mh-target-row button {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
  }

  html body.mhui-product #orderPage.mh-order-page .mh-target-status {
    min-height: 15px !important;
    margin-top: 5px !important;
    font-size: 8px !important;
  }

  html body.mh-conversion-order .mh-mobile-purchase-bar {
    z-index: 1075 !important;
    right: auto !important;
    bottom: calc(61px + env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: min(360px, calc(100% - 14px)) !important;
    min-height: 48px !important;
    height: 48px !important;
    grid-template-columns: minmax(0, 1fr) 136px !important;
    gap: 5px !important;
    padding: 4px !important;
    border-radius: 13px !important;
    transform: translateX(-50%) !important;
  }

  html body.mh-conversion-order .mh-mobile-purchase-bar__selection {
    min-width: 0 !important;
    padding-left: 4px !important;
  }

  html body.mh-conversion-order .mh-mobile-purchase-bar__selection span {
    margin: 0 !important;
    font-size: 6.5px !important;
    line-height: 1.1 !important;
  }

  html body.mh-conversion-order .mh-mobile-purchase-bar__selection strong {
    overflow: visible !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  html body.mh-conversion-order .mh-mobile-purchase-bar__selection b {
    margin-top: 1px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  html body.mh-conversion-order .mh-mobile-purchase-bar__button {
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 6px 7px !important;
    border-radius: 10px !important;
    font-size: 8.5px !important;
  }

  /* Alt menuyu incelt; sabit kutularla cakismasin. */
  html body.mhui-active .bottom--menu {
    z-index: 1085 !important;
  }

  html body.mhui-active .bottom--menu .bottom--content {
    min-height: 56px !important;
    height: 56px !important;
  }

  html body.mhui-active .bottom--menu .bm-item {
    min-height: 52px !important;
    padding: 4px 2px !important;
    font-size: 8.5px !important;
  }

  html body.mhui-active .bottom--menu .bm-item .icon {
    font-size: 18px !important;
  }
}

@media (max-width: 370px) {
  html body.mhui-category .pcd-shell .service--content .service--bottom,
  html body.pcd-detail-active .pcd-shell .service--content .service--bottom,
  html body.mh-conversion-order .mh-mobile-purchase-bar {
    grid-template-columns: minmax(0, 1fr) 124px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .mh-v31-social,
  html body .pcd-platform-orbit {
    animation: none !important;
    transition: none !important;
  }
}
