/* کانتینر اصلی - تراز چپ */
.custom-quantity-controller, 
.custom-add-initial {
    margin-left: 0 !important;
    margin-right: auto !important;
    font-family: inherit;
}

/* --- دکمه افزودن (تک‌رنگ و تخت) --- */
.custom-add-initial {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #1b5701 !important; /* سبز اصلی */
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.custom-add-initial:hover {
    opacity: 0.9; /* تغییر بسیار ملایم در هاور */
}

/* --- کنترلر تعداد (مینیمالیسم خالص) --- */
.custom-quantity-controller {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background-color: #f1f5ef; /* یک سبز بسیار بسیار روشن (نزدیک به سفید) */
    border-radius: 12px;
    padding: 4px;
    width: 120px;
    height: 40px;
}

/* دکمه‌های مثبت و منفی */
.custom-quantity-controller button {
    background-color: #1b5701; /* همان سبز اصلی */
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px; /* کمی زاویه‌دار برای شیک بودن */
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s active;
}

.custom-quantity-controller button:active {
    transform: scale(0.92);
}

/* عدد وسط */
.custom-quantity-controller .quantity-display {
    font-size: 15px;
    font-weight: 700;
    color: #1b5701; /* متن هم‌رنگ دکمه‌ها */
    user-select: none;
}

/* موبایل */
@media screen and (max-width: 480px) {
    .custom-quantity-controller {
        width: 110px;
        height: 36px;
    }
    .custom-quantity-controller button {
        width: 28px;
        height: 28px;
    }
}

.dac-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl; /* تضمین راست‌چین بودن المان‌ها */
    width: 100%;
}

/* تنظیم جایگاه قیمت (سمت راست) */
.dac-price-wrapper {
    order: 1;
}

/* تنظیم جایگاه دکمه و کنترل‌کننده تعداد (سمت چپ) */
.custom-add-initial, 
.custom-quantity-controller {
    order: 2;
    margin-right: auto; /* در صورت نیاز دکمه را کاملاً به چپ هل می‌دهد */
}

.dac-price-wrapper {
    font-weight: bold;
    color: #333;
}
/* تنظیمات اختصاصی موبایل */
@media screen and (max-width: 480px) {
    /* سایز فونت قیمت در موبایل */
    .dac-price-wrapper, 
    .dac-price-wrapper span, 
    .dac-price-wrapper bdi {
        font-size: 14px !important;
    }

    /* سایز فونت دکمه افزودن در موبایل */
    .custom-add-initial {
        font-size: 14px !important;
        padding: 8px 16px !important; /* کمی جمع‌وجورتر برای موبایل */
    }
}