/* =========================================================
   BÜROMOTTO MOBILE FIX SAFE v1.2.0
   Anasayfaya dokunmaz. Sadece sepet/ödeme mobil düzenler.
=========================================================*/

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  /* Sepet: ürünler -> toplamlar -> güven kutuları */
  body.woocommerce-cart .woocommerce,
  body.woocommerce-cart main,
  body.woocommerce-cart .site-main,
  body.woocommerce-cart .bmpcc-cart-page,
  body.woocommerce-cart .bmcc-cart-page {
    display: flex !important;
    flex-direction: column !important;
  }

  body.woocommerce-cart form.woocommerce-cart-form,
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart [class*="cart-form"] {
    order: 1 !important;
    margin-top: 0 !important;
  }

  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .cart_totals,
  body.woocommerce-cart [class*="cart_totals"] {
    order: 2 !important;
  }

  body.woocommerce-cart .bmfs-trust-moved {
    order: 3 !important;
  }

  body.woocommerce-cart .cart_totals {
    width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 28px !important;
    border-radius: 28px !important;
  }

  body.woocommerce-cart .cart_totals h2 {
    font-size: 28px !important;
    line-height: 1.15 !important;
    margin: 0 0 18px !important;
  }

  body.woocommerce-cart .cart_totals tr {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }

  body.woocommerce-cart .cart_totals th,
  body.woocommerce-cart .cart_totals td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  body.woocommerce-cart .cart_totals td {
    text-align: right !important;
  }

  body.woocommerce-cart .cart_totals .amount,
  body.woocommerce-cart .cart_totals strong {
    white-space: nowrap !important;
  }

  body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100% !important;
    height: 62px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Ödeme: güven kutuları formdan sonra gelsin */
  body.woocommerce-checkout .woocommerce,
  body.woocommerce-checkout main,
  body.woocommerce-checkout .site-main,
  body.woocommerce-checkout form.checkout {
    display: flex !important;
    flex-direction: column !important;
  }

  body.woocommerce-checkout .bmfs-trust-moved {
    order: 99 !important;
    margin-top: 22px !important;
  }

  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-checkout-review-order,
  body.woocommerce-checkout .woocommerce-checkout-payment {
    order: 1 !important;
  }

  body.woocommerce-checkout .woocommerce {
    padding-top: 12px !important;
  }

  body.woocommerce-checkout h3,
  body.woocommerce-checkout .woocommerce-billing-fields h3 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  body.woocommerce-checkout input,
  body.woocommerce-checkout select,
  body.woocommerce-checkout textarea {
    font-size: 16px !important;
  }

  /* Güven kutuları kompakt */
  .bmfs-trust-moved {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }

  .bmfs-trust-moved h2,
  .bmfs-trust-moved h3,
  .bmfs-trust-moved h4,
  .bmfs-trust-moved strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .bmfs-trust-moved p,
  .bmfs-trust-moved span {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* Mağaza/Kategori mobil ürün kartları hafif sıkılaştırma */
  body .bmps-clean-toolbar,
  body .bmps-toolbar {
    margin-top: 12px !important;
    margin-bottom: 16px !important;
  }

  body .bmps-products-grid {
    gap: 18px !important;
  }

  body .bmps-card-image {
    height: 220px !important;
  }

  body .bmps-card-body {
    padding: 18px !important;
  }

  body .bmps-card-title {
    font-size: 17px !important;
    min-height: auto !important;
  }

  body .bmps-card-button {
    height: 50px !important;
  }
}

@media (max-width: 420px) {
  body .bmps-card-image {
    height: 210px !important;
  }
}
