/* Giriş / Kayıt / Sipariş form inputları */
.tf-login-wrap .tf-field-input,
.tf-login-wrap .tf-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    height: auto;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--main);
    transition: border-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
}
.tf-login-wrap .tf-field-input:focus,
.tf-login-wrap .tf-input:focus {
    border-color: var(--main);
}
.tf-login-wrap textarea.tf-field-input,
.tf-login-wrap textarea.tf-input {
    min-height: 80px;
    resize: vertical;
}
.tf-login-wrap .form-label {
    margin-bottom: 6px;
    font-size: 13px;
}
.tf-login-wrap .tf-field.style-1 {
    position: relative;
}
.tf-login-wrap .tf-field.style-1 .tf-field-label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
    background: #fff;
    padding: 0 4px;
}
.tf-login-wrap .tf-field.style-1 .tf-field-input:focus ~ .tf-field-label,
.tf-login-wrap .tf-field.style-1 .tf-field-input:not(:placeholder-shown) ~ .tf-field-label {
    top: -1px;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--main);
    line-height: 1;
    z-index: 1;
}
/* Textarea floating label */
.tf-login-wrap .tf-field.style-1 textarea ~ .tf-field-label {
    top: 14px;
    transform: none;
}
.tf-login-wrap .tf-field.style-1 textarea:focus ~ .tf-field-label,
.tf-login-wrap .tf-field.style-1 textarea:not(:placeholder-shown) ~ .tf-field-label {
    top: -1px;
    left: 10px;
    font-size: 11px;
    color: var(--main);
    background: #fff;
    padding: 0 6px;
    transform: translateY(-50%);
    z-index: 1;
    line-height: 1;
}
.tf-login-wrap .tf-login-title {
    margin-bottom: 20px;
}
.tf-login-wrap .tf-login-title h4 {
    margin-bottom: 4px;
}
.tf-login-wrap .tf-login-title p {
    margin-bottom: 0;
}

/* Sipariş sayfası buton aralığı */
.siparis-buton-alani .tf-btn + .tf-btn {
    margin-top: 12px;
}

/* Siyah buton hover - yazı beyaz, arka plan siyah kalacak */
.tf-btn.btn-fill:not(.btn-reset):hover {
    color: var(--white) !important;
    background-color: var(--main) !important;
}
.tf-btn.btn-fill:not(.btn-reset):hover span {
    color: var(--white) !important;
}
.tf-btn.btn-fill:not(.btn-reset)::after {
    display: none !important;
}

/* Outline buton hover */
.tf-btn.btn-outline:not(.btn-reset)::after {
    display: none !important;
}
.tf-btn.btn-outline:not(.btn-reset):hover {
    background-color: var(--main) !important;
    color: var(--white) !important;
    border-color: var(--main) !important;
}
.tf-btn.btn-outline:not(.btn-reset):hover span {
    color: var(--white) !important;
}

/* Dosya Dolabı - Kartlar */
.dosya-dolabi-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--main);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.dosya-dolabi-kart:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--main);
    color: var(--main);
}

.dosya-dolabi-ikon {
    color: #666;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.dosya-dolabi-kart:hover .dosya-dolabi-ikon {
    color: var(--primary);
}

.dosya-dolabi-baslik {
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

/* Ürün açıklama alanı - CKEditor HTML içerik stilleri */
.tab-description ul,
.tab-description ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.tab-description ul {
    list-style: disc;
}
.tab-description ol {
    list-style: decimal;
}
.tab-description ul li,
.tab-description ol li {
    list-style: inherit;
    margin-bottom: 4px;
    padding-left: 4px;
}

/* Quickview açıklama alanı - CKEditor HTML içerik stilleri */
.tf-product-info-desc-text ul,
.tf-product-info-desc-text ol {
    padding-left: 20px;
    margin-bottom: 10px;
}
.tf-product-info-desc-text ul {
    list-style: disc;
}
.tf-product-info-desc-text ol {
    list-style: decimal;
}
.tf-product-info-desc-text ul li,
.tf-product-info-desc-text ol li {
    list-style: inherit;
    margin-bottom: 3px;
    padding-left: 4px;
}

/* Ürün detay açıklama alanı - CKEditor HTML içerik stilleri */
.urun-aciklama-alani ul,
.urun-aciklama-alani ol {
    padding-left: 20px;
    margin-bottom: 10px;
}
.urun-aciklama-alani ul {
    list-style: disc;
}
.urun-aciklama-alani ol {
    list-style: decimal;
}
.urun-aciklama-alani ul li,
.urun-aciklama-alani ol li {
    list-style: inherit;
    margin-bottom: 3px;
    padding-left: 4px;
}

/* SweetAlert buton hover - yazı beyaz kalacak */
.swal2-styled.swal2-confirm:hover,
.swal2-styled.swal2-cancel:hover,
.swal2-styled:hover {
    color: #fff !important;
}

/* btn-line hover - tf-btn ::after beyaz overlay'i devre dışı, alt çizgi korunacak */
.tf-btn.btn-line:not(.btn-reset)::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: 2px !important;
    background-color: var(--main) !important;
    transform: none !important;
    z-index: auto !important;
}
.tf-btn.btn-line:not(.btn-reset):hover::after {
    transform: none !important;
}
.tf-btn.btn-line:not(.btn-reset):hover {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* ==================== SEPET SAYFASI - MOBİL TASARIM ==================== */

/* Desktop tablo göster, mobil kartları gizle */
.sepet-desktop {
    display: block;
}
.sepet-mobil {
    display: none;
}

@media (max-width: 767px) {
    .sepet-desktop {
        display: none;
    }
    .sepet-mobil {
        display: block;
    }

    /* Mobil kart */
    .sepet-kart {
        position: relative;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        background: #fff;
        transition: opacity 0.3s ease;
    }

    /* Sil butonu - sağ üst köşe */
    .sepet-kart-sil {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 12px;
        border-radius: 50%;
        transition: color 0.2s ease, background 0.2s ease;
        z-index: 2;
    }
    .sepet-kart-sil:hover {
        color: #e74c3c;
        background: rgba(231, 76, 60, 0.08);
    }

    /* Üst kısım: görsel + bilgi yan yana */
    .sepet-kart-ust {
        display: flex;
        gap: 14px;
        margin-bottom: 14px;
    }

    .sepet-kart-gorsel {
        flex-shrink: 0;
    }
    .sepet-kart-gorsel img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 6px;
        display: block;
    }

    .sepet-kart-bilgi {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding-right: 24px;
    }

    .sepet-kart-baslik {
        font-size: 14px;
        font-weight: 600;
        color: var(--main);
        text-decoration: none;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .sepet-kart-baslik:hover {
        color: var(--primary);
    }

    .sepet-kart-varyant {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

    .sepet-kart-fiyat {
        font-size: 14px;
        font-weight: 600;
        color: var(--main);
        margin-top: 2px;
    }

    /* Alt kısım: adet + toplam fiyat */
    .sepet-kart-alt {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .sepet-kart-toplam {
        font-size: 15px;
        font-weight: 700;
        color: var(--main);
    }

    /* Sipariş özeti mobil */
    .sepet-ozet-kutu {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 20px 16px;
    }
}

/* ==================== intl-tel-input UYUMLULUĞU ==================== */
.tf-login-wrap .iti {
    width: 100%;
}
.tf-login-wrap .iti .iti__tel-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    height: auto;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--main);
    transition: border-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
}
.tf-login-wrap .iti .iti__tel-input:focus {
    border-color: var(--main);
}

/* ==================== ŞİFRE ALANI MASKELEMESİ ==================== */
/* type="text" + CSS maskeleme ile tarayıcı "şifreyi kaydet" popup'ı engellenir */
.sifre-maskeli {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

/* Ürün kartı görselleri - contain ile tam görünsün */
.card-product .card-product-wrapper img {
    object-fit: contain !important;
}

/* Hızlı bakış - adet ve sepete ekle butonu arası boşluk */
.modal-quick-view .tf-product-info-quantity {
    margin-bottom: 16px;
}
