﻿ 
/* ==========================================
   استایل اختصاصی بخش تعداد و سبد خرید آلتین‌بافت
   ========================================== */
/* کانتینر کنترلی تعداد (مجموعه دکمه‌ها و اینپوت) */
.quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

/* استایل دکمه‌های مثبت و منفی (+ / -) */
.btn-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #d33c4b; /* قرمز برند آلتین‌بافت */
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    user-select: none;
}

    /* افکت هوور روی دکمه‌ها */
    .btn-qty:hover {
        background-color: #d33c4b;
        color: #ffffff;
        border-color: #d33c4b;
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(211, 60, 75, 0.2);
    }

    /* افکت کلیک روی دکمه */
    .btn-qty:active {
        transform: translateY(0);
        box-shadow: none;
    }

/* باکس نمایش عدد (تعداد) */
.input-qty {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: bold;
    color: #2c2c2c;
    outline: none;
}

    /* غیرفعال کردن کلیک‌های اضافی بر روی مرورگرهای موبایل */
    .input-qty::-webkit-outer-spin-button,
    .input-qty::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .input-qty[type=number] {
        -moz-appearance: textfield;
    }

/* استایل تکمیلی برای کارت کالا در سبد خرید */
.basket-item-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.2s ease;
}

    .basket-item-card:hover {
        border-color: #d33c4b;
    }
 
.basket-mobile-cta {
    position: fixed;
    bottom: 62px; /* بالای نوار پایین */
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

 

 
.basket-row {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    margin-left: 0px;
}

