/* View Cart / Sepetim butonlarını tamamen yok et */
.added_to_cart {
    display: none !important;
}

/* WooCommerce varsayılan loader iconunu gizle */
.add_to_cart_button.loading::after,
.add_to_cart_button.added::after {
    display: none !important;
}

/* Özel tasarım Sepete Ekle butonu */
.add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(90deg, #6B8E23, #000000) !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px !important;
    cursor: pointer;
    transition: 0.25s ease;
    border: none !important;
    position: relative;
    overflow: hidden;
}

/* Hover */
.add_to_cart_button:hover {
    opacity: 0.85;
}

/* YÜKSEKLİK SABİT – ESNEMEYİ TAMAMEN ENGELLER */
.add_to_cart_button {
    min-height: 40px;
}

/* İçerik alanı (ikon + yazı) */
.add-btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    position: relative;
    z-index: 2;
}

/* Sepet iconu – yazıyla %100 dikey ortalı */
.add-btn-inner i.lnr-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    height: 1em;
    color: #ffffff;
}

/* Yazı – ikonla tam hizalı */
.add-btn-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Loading anında ikon görünmesin */
.add_to_cart_button.loading .add-btn-inner i {
    display: none;
}

/* LOADING ANINDA ORTADA SABİT GÖRÜNECEK ALAN */
.add-btn-loading {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 3;
    font-size: 14px;
    color: #fff;
}

/* LOADING DURUMUNDA BUTON RENGİ KAYBETMESİN */
.add_to_cart_button.loading {
    opacity: 1 !important;
    background: linear-gradient(90deg, #6B8E23, #000000) !important;
}

/* Spinner */
.wc-spinner {
    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

/* Toast */
.cart-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0,0,0,0.15);
    padding: 22px 26px;
    border-radius: 12px;
    z-index: 999999;
    width: 340px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

.cart-toast.fadeOut {
    animation: fadeOut 0.25s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to   { opacity: 0; transform: translate(-50%, -46%); }
}

.cart-toast-icon {
    font-size: 28px;
    color: #4caf50;
    margin-bottom: 8px;
}

.cart-toast-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Toast Progress */
.cart-toast-progress {
    width: 100%;
    height: 5px;
    background: #dcdcdc;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 12px;
}

.cart-toast-progress-bar {
    height: 100%;
    background: #4caf50;
    width: 100%;
    animation: toastProgress 2s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}
