/*
 * Header sepet çekmecesi (mini sepet), "listeye eklendi" bildirimi ve her sayfada gereken ortak kurallar.
 * 25.10.2026: Liste (sepet) sayfası, Hesabım liste/Liste detayı kuralları furkan-liste-sayfalari.css dosyasına taşındı
 * (yalnız is_cart() ve Hesabım sayfalarında yüklenir). Özgün tek dosya sürümü kullanıcının "25-10-2026 css temizliği öncesi" klasöründe.
 */

/* 1) Kaydırma: tüm çekmece değil, yalnız ürün listesi kayar */
html body .astra-cart-drawer{
    overflow: hidden !important;
}
html body .astra-cart-drawer .astra-cart-drawer-content{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
}
html body .astra-cart-drawer .widget_shopping_cart{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
html body .astra-cart-drawer .widget_shopping_cart_content{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
html body .elementor-menu-cart__products{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0 6px 0 0;
}
/* 2) Satır: tek satır (görsel | ad | miktar | birim fiyat | toplam), altında düğmeler.
 * Elementor'un fiyat kabı ve detay kabı display:contents ile kaldırılır; çocuklar satır ızgarasına yerleşir. */
html body .elementor-menu-cart__products .elementor-menu-cart__product{
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto auto;
    grid-template-areas:
        "img name adet unit total"
        "img actions actions actions actions"
        "msg msg msg msg msg";
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
    color: #1F2937;
    font-size: 13px;
    line-height: 1.35;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product:last-child{
    border-bottom: 0;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product-price,
html body .elementor-menu-cart__products .fkat-mc__detay{
    display: contents;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product-image{
    grid-area: img;
    width: 36px;
    margin: 0;
    padding: 0;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product-image img{
    width: 36px !important;
    height: 36px !important;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border-radius: 6px;
    background: #F9FAFB;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product-name{
    grid-area: name;
    min-width: 0;
    margin: 0;
    padding: 0;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product-name .ast-product-name a{
    color: #1F2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Birim (yalnızca kurumsal satır) */
html body .elementor-menu-cart__products .elementor-menu-cart__product-name dl.variation{
    display: flex;
    gap: 4px;
    margin: 2px 0 0;
    font-size: 12px;
    color: #6B7280;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product-name dl.variation dt,
html body .elementor-menu-cart__products .elementor-menu-cart__product-name dl.variation dd{
    margin: 0;
    padding: 0;
    display: inline;
}
html body .elementor-menu-cart__products .elementor-menu-cart__product-name dl.variation dd p{
    margin: 0;
    display: inline;
}
/* Birim fiyatı ve satır toplamı (aynı satırda) */
html body .elementor-menu-cart__products .fkat-mc__birimf{
    grid-area: unit;
    color: #4B5563;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
}
html body .elementor-menu-cart__products .fkat-mc__toplam{
    grid-area: total;
    color: #C62828;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
}
/* Miktar (− / +) */
html body .elementor-menu-cart__products .fkat-mc__adet-satir{
    grid-area: adet;
    margin: 0;
}
html body .elementor-menu-cart__products .fkat-mc__adet{
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: #FFFFFF;
}
html body .elementor-menu-cart__products .fkat-mc__adet-btn{
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #F3F4F6;
    color: #111827;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
html body .elementor-menu-cart__products .fkat-mc__adet-deger{
    min-width: 20px;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
html body .elementor-menu-cart__products .fkat-mc__birim{
    padding: 0 2px 0 0;
    color: #6B7280;
    font-size: 10px;
}
/* Düğmeler: Listeden kaldır | Listeyi güncelle (küçük, yan yana, satırın altında) */
html body .elementor-menu-cart__products .fkat-mc__eylemler{
    grid-area: actions;
    display: flex;
    gap: 6px;
    margin: 0;
    min-width: 0;
}
html body .elementor-menu-cart__products .fkat-mc__btn{
    flex: 1 1 0;
    min-width: 0;
    height: 26px;
    margin: 0;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    box-sizing: border-box;
    cursor: pointer;
}
html body .elementor-menu-cart__products a.remove.fkat-mc__btn--kaldir{
    width: auto !important;
    height: 26px !important;
    line-height: 1 !important;
    background: #FFFFFF !important;
    background-image: none !important;
    color: #4B5563 !important;
    border: 1px solid #D1D5DB !important;
}
html body .elementor-menu-cart__products a.remove.fkat-mc__btn--kaldir::before,
html body .elementor-menu-cart__products a.remove.fkat-mc__btn--kaldir::after{
    content: none !important;
    display: none !important;
}
html body .elementor-menu-cart__products a.remove.fkat-mc__btn--kaldir:hover{
    color: #C62828 !important;
    border-color: #C62828 !important;
}
html body .elementor-menu-cart__products .fkat-mc__btn--guncelle{
    background: #C62828 !important;
    color: #FFFFFF !important;
    border: 0 !important;
}
html body .elementor-menu-cart__products .fkat-mc__btn--guncelle:hover{
    background: #A71F1F !important;
}
html body .elementor-menu-cart__products .fkat-mc__btn:disabled,
html body .elementor-menu-cart__products .fkat-mc__adet-btn:disabled{
    opacity: .5;
    cursor: not-allowed;
}
/* Satır mesajı (sınır, stok, hata veya başarı) */
html body .elementor-menu-cart__products .fkat-mc__msg{
    grid-area: msg;
    margin: 2px 0 0;
    color: #B45309;
    font-size: 12px;
    line-height: 1.4;
}
html body .elementor-menu-cart__products .fkat-mc__msg--ok{
    color: #15803D;
}
html body .elementor-menu-cart__products .fkat-mc__msg[hidden]{
    display: none;
}
/* Dar ekran: görsel solda; ad, miktar, fiyat ve toplam iki satırda */
@media (max-width: 480px) {
html body .elementor-menu-cart__products .elementor-menu-cart__product{
        grid-template-columns: 36px minmax(0, 1fr) auto;
        grid-template-areas:
            "img name total"
            "img adet unit"
            ". actions actions"
            "msg msg msg";
    }
}
/* 3) Üst bilgi: kalem sayısı (sabit, kaydırmaz) */
html body .fkat-mc__ozet{
    flex: 0 0 auto;
    padding: 0 0 8px;
    margin: 0;
    border-bottom: 1px solid #E5E7EB;
    color: #4B5563;
    font-size: 13px;
}
html body .fkat-mc__ozet strong{
    color: #111827;
    font-weight: 700;
}
/* 4) Alt bilgi: toplamlar ve "Listemi incele" (sabit, kaydırmaz) */
html body .fkat-mc__toplamlar{
    flex: 0 0 auto;
    padding: 10px 0 0;
    border-top: 1px solid #E5E7EB;
    color: #374151;
    font-size: 13px;
}
html body .fkat-mc__toplamlar > div{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
}
html body .fkat-mc__toplamlar small{
    color: #6B7280;
    font-size: 11px;
    font-weight: 400;
}
html body .fkat-mc__toplamlar strong{
    color: #111827;
    font-weight: 600;
    white-space: nowrap;
}
html body .fkat-mc__toplamlar .fkat-mc__genel{
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #D1D5DB;
}
html body .fkat-mc__toplamlar .fkat-mc__genel span{
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}
html body .fkat-mc__toplamlar .fkat-mc__genel strong{
    color: #C62828;
    font-size: 17px;
    font-weight: 800;
}
/* Çekmece altı: Elementor'un ara toplamı ve "Listeyi İlet" gizli; yalnız büyük kırmızı "Listemi incele" */
html body .elementor-menu-cart__subtotal,
html body .elementor-menu-cart__footer-buttons .elementor-button--checkout{
    display: none !important;
}
html body .elementor-menu-cart__footer-buttons{
    flex: 0 0 auto;
    padding: 12px 0 16px;
    margin: 0;
}
html body .elementor-menu-cart__footer-buttons .elementor-button--view-cart{
    display: flex !important;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #C62828 !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none !important;
}
html body .elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover{
    background: #A71F1F !important;
}
html body .elementor-menu-cart__footer-buttons .elementor-button--view-cart .elementor-button-text{
    color: #FFFFFF;
}
/* Listelerim'in üstündeki "Şu anki listeniz" kutusu */
@media (max-width: 767px) {
html body .elementor-menu-cart__products .fkat-mc__btn{
        height: 30px;
    }
}
/* 6) Toplam ağırlık (en fazla 5 kg): çekmece (JS üretir) ve Şu anki listem sayfası (FKat_Liste::liste_html) */
html body .fkat-mc__kg{
    padding: 0 0 8px;
    color: #374151;
    font-size: 12px;
}
html body .fkat-mc__kg > div:first-child{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
}
html body .fkat-mc__kg small{
    color: #6B7280;
    font-size: 11px;
}
html body .fkat-mc__kg strong{
    font-weight: 700;
    white-space: nowrap;
}
.fkat-lt__kg{
    margin: 12px 0 0;
    font-size: 14px;
    color: #374151;
}
.fkat-lt__kg > div:first-child{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
}
.fkat-lt__kg small{
    color: #6B7280;
    font-size: 12px;
}
.fkat-lt__kg strong{
    font-weight: 700;
    white-space: nowrap;
}
.fkat-lt__cubuk{
    height: 6px;
    margin-top: 4px;
    border-radius: 99px;
    background: #EEF0F4;
    overflow: hidden;
}
.fkat-lt__cubuk span{
    display: block;
    height: 100%;
    border-radius: 99px;
}
/* Hesabım > Şu anki listem sayfası */
html body .fkat-mc__toplamlar > div.fkat-mc__kg{
    display: block;
    padding: 0 0 8px;
}
/* 7) WhatsApp teklif düğmesi (liste sayfası): dolu yeşil yerine ikincil, sakin buton */
html body .fkat-wa-btn.fkat-wa-btn--blok{
    display: flex;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0 16px;
    border: 2px solid #25D366;
    border-radius: 10px;
    background: #FFFFFF;
    color: #128C7E !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
}
html body .fkat-wa-btn.fkat-wa-btn--blok i{
    font-size: 20px;
    color: #25D366;
}
html body .fkat-wa-btn.fkat-wa-btn--blok:hover{
    background: #F0FDF4;
}
/* Teslimat satırı (toplamlar kutusunun altı) */
html body .fkat-mc__teslim{
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #F9FAFB;
    color: #374151;
    font-size: 12px;
    line-height: 1.4;
}
html body .fkat-mc__teslim{
    margin-top: 8px;
}
/* 9) Listeye ekle bildirimi (sayfa yenilenmeden; sağ altta) */
.fkat-bildirim{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 10px;
    background: #1F2937;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    transition: opacity .3s, transform .3s;
}
.fkat-bildirim--ok{
    border-left: 4px solid #22C55E;
}
.fkat-bildirim--hata{
    border-left: 4px solid #F59E0B;
}
.fkat-bildirim--kapan{
    opacity: 0;
    transform: translateY(8px);
}
.fkat-bildirim a{
    color: #FCA5A5 !important;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.fkat-bildirim a:hover{
    text-decoration: underline;
}
/* 10) Liste sayfası: ürün adının altındaki en fazla adet notu */
html body .fkat-sepet-sinir{
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 12px;
    line-height: 1.4;
}
html body .fkat-sepet-sinir strong{
    color: #374151;
    font-weight: 700;
}
/* 11) Sepet (liste) tablosu: Ağırlık sütunu */
html body .fkat-agirlik-bas,
html body .fkat-agirlik-hucre{
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    color: #374151;
}
html body .fkat-max-bas,
html body .fkat-max-hucre{
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    color: #374151;
}
/* Başlık hücreleri: diğer sütun başlıklarıyla aynı boyut ve kalınlık (yalnız hücre değerleri küçük) */
html body th.fkat-agirlik-bas,
html body th.fkat-max-bas{
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
/* 22) Sepet: ağırlık ürün adının altında; Maks. adet sütunu kalır.
   Hızlı dönüş düğmesi: kırmızı zemin, beyaz yazı (önceki yeşil yazı okunmuyordu).
   Sepet ağırlığı kutusu: tek satır başlık, sıkı ve düzenli. */
html body .elementor-menu-cart__products .fkat-sepet-agirlik-deger{
    display: block !important;
    margin-top: 3px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 500;
}
/* Yan çekmece (PC): kenar ve üst boşluklar daraltıldı, yazılar bir tık büyütüldü */
@media (min-width: 768px) {
html body .elementor-menu-cart__products{
        padding: 6px 10px 0 10px !important;
    }
html body .elementor-menu-cart__products .elementor-menu-cart__product{
        padding: 12px 0;
        font-size: 14px;
    }
html body .elementor-menu-cart__products .elementor-menu-cart__product-name .ast-product-name a{
        font-size: 14px;
    }
html body .elementor-menu-cart__products .fkat-mc__birimf{
        font-size: 13px;
    }
html body .elementor-menu-cart__products .fkat-mc__toplam{
        font-size: 14px;
    }
html body .elementor-menu-cart__products .fkat-mc__adet-btn{
        width: 24px;
        height: 24px;
        font-size: 15px;
    }
html body .elementor-menu-cart__products .fkat-mc__adet-deger{
        font-size: 13px;
    }
html body .elementor-menu-cart__products .fkat-mc__btn{
        height: 28px;
        font-size: 12px;
    }
}
/* Üyelik formu: "Mağazadan Teslim Sözleşmesi" bağlantısı, yasal kutu metniyle aynı boyutta (kalın/büyük yazı düzeltmesi) */
html body .furkan-legal-panel a{ font-size: inherit !important; line-height: inherit !important; font-weight: 600 !important; color: #C62828 !important; text-decoration: underline; }
/* Üyelik formu: isteğe bağlı İYS izin kutuları (class-fkat-kayit.php) — yasal kutularla aynı kutu, yazılar küçük ve tam genişlik */
html body .furkan-iys-secim{ display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px 22px !important; float: none !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; margin: 14px 0 0 !important; padding: 12px 14px !important; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 13px; line-height: 1.5; color: #374151; text-align: left; }
html body .furkan-iys-secim .furkan-iys-baslik{ flex: 0 0 100% !important; font-size: 14px !important; line-height: 1.3 !important; margin: 0 0 4px !important; color: #1D3557 !important; }
html body .furkan-iys-secim .furkan-legal-check{ flex: 0 1 auto !important; display: flex !important; align-items: flex-start !important; gap: 8px !important; font-size: 13px !important; font-weight: 400 !important; margin: 0 !important; max-width: 100% !important; }
html body .furkan-iys-secim .furkan-iys-not{ flex: 0 0 100% !important; font-size: 12px !important; line-height: 1.5 !important; color: #6B7280 !important; margin: 6px 0 0 !important; font-weight: 400 !important; }
