/* استایل مینیمال سبد خرید */
.cart-table img {
    border: 1px solid #eee;
}

.qty-controls .qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-badge {
    cursor: pointer;
}

/* انیمیشن کوتاه برای آپدیت سبد */
@keyframes badge-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-badge-updated {
    animation: badge-pop 0.3s ease;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }
    
    .cart-table td {
        text-align: left;
        padding: 8px 0;
    }
}

.cart-toast{
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #fff;
    color: #333;
    padding: 14px 16px;
    border-radius: 12px;
    z-index: 9999;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: toastSlide .35s ease;
    overflow: hidden;
}

/* آیکون تیک */
.cart-toast-icon{
    width: 28px;
    height: 28px;
    background: #28a745;
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-size:14px;
    flex-shrink:0;
}

/* متن */
.cart-toast-text{
    flex:1;
    line-height:1.5;
}

/* دکمه مشاهده سبد */
.cart-toast-btn{
    background:#ef4056;
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
    text-decoration:none;
    transition:.2s;
}

.cart-toast-btn:hover{
    background:#d9364a;
}

/* نوار پیشرفت پایین toast */
.cart-toast-progress{
    position:absolute;
    bottom:0;
    left:0;
    height:3px;
    width:100%;
    background:#ef4056;
    animation:toastProgress 3s linear forwards;
}

/* انیمیشن ظاهر شدن */
@keyframes toastSlide{
    from{
        transform:translateY(30px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

/* انیمیشن کم شدن نوار */
@keyframes toastProgress{
    from{
        width:100%;
    }
    to{
        width:0%;
    }
}
