/* Ürün Detay Butonları - Düzeltilmiş ve İyileştirilmiş Tasarım */

/* Ana formu yan yana hizalamak için flex yapısı */
form#urun_detay_sepete_ekle_form {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Tablo yapısının gereksiz boşluklarını kaldır */
form#urun_detay_sepete_ekle_form .urun_secenekleri,
form#urun_detay_sepete_ekle_form .urun_secenekleri table {
    margin: 0 !important;
    padding: 0 !important;
}

/* Miktar Seçici Grubu */
form#urun_detay_sepete_ekle_form .miktar-group {
    display: flex !important;
    align-items: center !important;
}

form#urun_detay_sepete_ekle_form .miktar-group .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    background-color: #f1f3f5 !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    padding: 0 !important;
}

form#urun_detay_sepete_ekle_form .miktar-group .btn:hover {
    background-color: #e9ecef !important;
}

form#urun_detay_sepete_ekle_form .miktar-group .btn[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

form#urun_detay_sepete_ekle_form .miktar-group .miktar_azalt {
    border-radius: 8px 0 0 8px !important;
}
form#urun_detay_sepete_ekle_form .miktar-group .miktar_arttir {
    border-radius: 0 8px 8px 0 !important;
}

form#urun_detay_sepete_ekle_form #urun_miktar_secenekleri {
    width: 55px !important;
    height: 48px !important;
    text-align: center !important;
    border: 1px solid #ced4da !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}
form#urun_detay_sepete_ekle_form #urun_miktar_secenekleri::-webkit-outer-spin-button,
form#urun_detay_sepete_ekle_form #urun_miktar_secenekleri::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
form#urun_detay_sepete_ekle_form #urun_miktar_secenekleri:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
}


/* Butonların olduğu ana taşıyıcı */
form#urun_detay_sepete_ekle_form .urun_sepete_ekle {
    display: flex !important;
    flex-grow: 1 !important;
    gap: 10px !important;
}

/* Sepete Ekle Butonu */
#sepete_ekle_buton {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 1 !important;
    height: 48px !important;
    background: linear-gradient(180deg, #338eff, #0d6efd) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    padding: 0 20px !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25) !important;
}

#sepete_ekle_buton:hover {
    background: linear-gradient(180deg, #1a7eff, #0b5ed7) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.35) !important;
}

#sepete_ekle_buton:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.2) !important;
}

/* Sadece alışveriş sepeti ikonunu ekliyoruz */
#sepete_ekle_buton::before {
    font-family: 'Font Awesome 6 Free', sans-serif !important;
    content: '07a' !important; 
    margin-right: 10px !important;
    font-weight: 900 !important;
}

/* * METİN ÇAKIŞMASINI ÖNLEMEK İÇİN BU BÖLÜM KALDIRILDI
 * #sepete_ekle_buton::after {
 * content: 'Sepete Ekle' !important;
 * }
*/


/* Favorilere Ekle Butonu */
a.favori-ekle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    transition: all 0.2s ease !important;
}

a.favori-ekle svg {
    width: 22px !important;
    height: 22px !important;
    fill: #6c757d !important;
    transition: all 0.2s ease !important;
}

a.favori-ekle:hover {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

a.favori-ekle:hover svg {
    fill: #dc3545 !important;
    transform: scale(1.1) !important;
}