/* =========================
   SEPET (Sadece içerik) - MOBILE FIX
   Header/Footer'a dokunmaz
   ========================= */

@media (max-width: 991.98px) {

  /* Sepet bölümünün iç boşlukları */
  body > section.py-5 .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body > section.py-5 .products-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  /* Kartlar */
  body > section.py-5 .premium-cart-card {
    border-radius: 16px !important;
    overflow: hidden;
  }

  body > section.py-5 .premium-cart-card .card-header {
    padding: 14px 14px !important;
  }

  body > section.py-5 .premium-cart-card .card-footer {
    padding: 12px 14px !important;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* ===== TABLOYU MOBİLDE KARTLAŞTIR ===== */
  body > section.py-5 .cart-table thead {
    display: none !important;
  }

  body > section.py-5 .cart-table,
  body > section.py-5 .cart-table tbody,
  body > section.py-5 .cart-table tr,
  body > section.py-5 .cart-table td {
    display: block !important;
    width: 100% !important;
  }

  body > section.py-5 .cart-table tr {
    padding: 12px 12px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }

  body > section.py-5 .cart-table td {
    padding: 0 !important;
    border: 0 !important;
  }

  /* Ürün hücresi (ilk td) */
  body > section.py-5 .cart-table td:first-child {
    margin-bottom: 10px;
  }

  body > section.py-5 .cart-table td:first-child img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    flex: 0 0 auto;
  }

  body > section.py-5 .cart-table td:first-child .fw-semibold {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  /* Adet / fiyat / toplam / işlem blokları */
  body > section.py-5 .cart-table td:nth-child(2),
  body > section.py-5 .cart-table td:nth-child(3),
  body > section.py-5 .cart-table td:nth-child(4),
  body > section.py-5 .cart-table td:nth-child(5) {
    margin-top: 10px;
  }

  /* Etiketler */
  body > section.py-5 .cart-table td:nth-child(2)::before {
    content: "Adet";
    display: block;
    font-size: 11px;
    opacity: .65;
    margin-bottom: 6px;
  }

  body > section.py-5 .cart-table td:nth-child(3)::before {
    content: "Fiyat";
    display: block;
    font-size: 11px;
    opacity: .65;
    margin-bottom: 6px;
  }

  body > section.py-5 .cart-table td:nth-child(4)::before {
    content: "Toplam";
    display: block;
    font-size: 11px;
    opacity: .65;
    margin-bottom: 6px;
  }

  body > section.py-5 .cart-table td:nth-child(5)::before {
    content: "İşlem";
    display: block;
    font-size: 11px;
    opacity: .65;
    margin-bottom: 6px;
  }

  /* Adet kontrolü */
  body > section.py-5 .cart-table td:nth-child(2) .input-group {
    justify-content: flex-start !important;
    width: max-content;
  }

  body > section.py-5 .cart-table td:nth-child(2) .btn {
    padding: 6px 10px !important;
  }

  body > section.py-5 .cart-table td:nth-child(2) input.form-control {
    width: 44px !important;
    padding: 0 !important;
    font-size: 13px !important;
  }

  /* Fiyat/Toplam hizası */
  body > section.py-5 .cart-table td:nth-child(3),
  body > section.py-5 .cart-table td:nth-child(4),
  body > section.py-5 .cart-table td:nth-child(5) {
    text-align: left !important;
  }

  /* Sil butonu */
  body > section.py-5 .cart-table td:nth-child(5) .btn {
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }

  /* Boş sepet state */
  body > section.py-5 #cart-empty-state {
    padding: 28px 16px !important;
  }

  /* Özet kart butonu */
  body > section.py-5 #cart-checkout-btn {
    border-radius: 12px !important;
    padding: 12px 14px !important;
  }

  /* Footer içindeki linkleri değil, sadece sepet card-footer içindekileri büyüt */
  body > section.py-5 .premium-cart-card .card-footer a {
    width: 100% !important;
    text-align: center !important;
    padding: 10px 12px !important;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
  }

  body > section.py-5 #cart-clear-all {
    width: 100% !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
}
/* =========================
   SEPET - MOBILE UI TWEAKS
   (Çöp: Adet yanına, İşlem yazısı yok, Toplam daha belirgin)
   ========================= */
@media (max-width: 991.98px) {

  /* "İşlem" label'ını gizle */
  body > section.py-5 .cart-table td:nth-child(5)::before{
    display: none !important;
    content: "" !important;
  }

  /* Adet satırını "row" gibi yap, çöp butonu sağa */
  body > section.py-5 .cart-table td:nth-child(2){
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  /* Adet label + input-group aynı blokta kalsın */
  body > section.py-5 .cart-table td:nth-child(2)::before{
    margin: 0 !important;
  }

  body > section.py-5 .cart-table td:nth-child(2) .input-group{
    margin: 0 !important;
  }

  /* Çöp butonunu Adet satırının içine "sağa" al */
  body > section.py-5 .cart-table td:nth-child(5){
    margin: 0 !important;
    order: 2 !important;
    display: block !important;
    width: auto !important;
  }

  /* td(5) içindeki butonu kompakt yap */
  body > section.py-5 .cart-table td:nth-child(5) .btn{
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  /* td(2) içine td(5) gibi davranması için: td(5)'i absolute yerine "flow"da tutmak
     td(5) zaten ayrı block oluyordu. Bunu görsel olarak td(2)'nin yanına çekiyoruz. */
  body > section.py-5 .cart-table tr{
    position: relative !important;
  }

  /* td(5)'i adet satırının yanına hizalamak için td(5)'i "adet satırının sağ üstüne" al */
  body > section.py-5 .cart-table td:nth-child(5){
    position: absolute !important;
    right: 12px !important;
    top: 78px !important; /* ürün satırına göre ince ayar */
  }

  /* Adet label + kontrol satırına yer aç */
  body > section.py-5 .cart-table td:nth-child(2){
    padding-right: 56px !important;
  }

  /* "Toplam" alanını daha belirgin yap */
  body > section.py-5 .cart-table td:nth-child(4)::before{
    font-size: 12px !important;
    opacity: .8 !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
  }

  body > section.py-5 .cart-table td:nth-child(4) .fw-semibold{
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
  }

  /* İstersen "Fiyat"ı biraz geri plana al */
  body > section.py-5 .cart-table td:nth-child(3) span{
    opacity: .85 !important;
  }
}
@media (max-width: 991.98px) {
  body > section.py-5 .cart-table td:nth-child(5){
    top: 85px !important; /* 🔥 biraz aşağı indi */
  }
}
