/* Mobil UX Iyilestirmeleri */

/* 1. Touch-friendly butonlar */
@media (max-width: 768px) {
  .btn, button, [type="submit"], [type="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  /* 2. Modal tam ekran */
  .modal-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
  }
  .modal-content {
    border-radius: 16px 16px 0 0;
    min-height: 50vh;
  }

  /* 3. Miktar butonları büyüt */
  .quantity input.minus, .quantity input.plus,
  input.minus, input.plus {
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
  }

  /* 4. Kategori grid */
  .kategoriler .col-6 {
    flex: 0 0 50%;
  }

  /* 5. Sabit sepet butonu (bottom bar) */
  .basket-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  body {
    padding-bottom: 70px;
  }
}

/* 6-7. Arama formu */
form.head-search {
  position: relative;
}



/* 8. Landing page — içerik sığdığında boş scroll olmasın */
body.page-main {
  overflow: hidden;
  height: 100vh;
}

/* Küçük ekranlarda içerik taşarsa scroll izni ver */
@media (max-height: 600px) {
  body.page-main {
    overflow: auto;
    height: auto;
  }
}

/* 7. Safe area (notch) desteği */
@supports (padding: env(safe-area-inset-bottom)) {
  .basket-bottom-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}
