/* Toast bildirim sistemi */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-width: 400px;
    min-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid #b91c1c;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: white;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.toast.error .toast-message {
    color: white;
    font-weight: 600;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.toast.error .toast-close {
    color: white;
}

.toast.error .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Disabled checkout button */
#checkout-btn.disabled {
    background-color: #A8FBD3 !important;
    color: #4FB7B3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Address select styling - selected state */
#ulke_id.selected, #il_id.selected, #ilce_id.selected {
    border-color: #00C950 !important;
    color: #00C950 !important;
}

#ulke_id.selected option, #il_id.selected option, #ilce_id.selected option {
    color: #374151;
}

/* Cart page specific styles */

/* Ana panel border stili - sadece dış ana container için dashed ve uyumlu yeşil renk */
.cart-main-border {
    border-color: rgba(151, 20, 207, 0.6) !important;
    border-style: dashed !important;
    border-width: 3px !important;
}

/* Miktar kontrol border'ı için özel stil */
.cart-border-color {
    border-color: #edebe9;
}

.cart-product-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f2f1;
}

/* Kargo dropdown styling - yeşil iç renk */
#kargo_secenek {
    background-color: #f0fdf4;
    color: #374151;
    border-color: #00C950;
}

#kargo_secenek:focus {
    background-color: white;
    color: #374151;
}

#kargo_secenek option {
    color: #374151;
    background-color: white;
}

#kargo_secenek option:checked {
    color: #374151;
    background-color: #f0fdf4;
}

/* Ürün ismi boyutu */
.cart-product-name {
    font-size: 0.875rem; /* text-sm */
}

@media (min-width: 640px) {
    .cart-product-name {
        font-size: 0.9375rem; /* text-sm'den biraz küçük */
    }
}

@media (min-width: 768px) {
    .cart-product-name {
        font-size: 1rem; /* text-base */
    }
}

/* Sepet temizle butonu */
.cart-clear-btn {
    width: 32px;
    height: 32px;
    background-image: url('../assets/clean.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
    filter: brightness(1);
    transition: filter 0.2s ease;
}

.cart-clear-btn:hover {
    filter: brightness(0.6);
}

@media (min-width: 640px) {
    .cart-clear-btn {
        width: 40px;
        height: 40px;
    }
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    select {
        min-height: 48px;
        font-size: 16px;
    }
    
    button, a {
        min-height: 44px;
        touch-action: manipulation;
    }
}

