﻿
/* --- AddToCart UI (safe, no neon) --- */
.p-atc {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    direction: rtl;
}

.p-atc--card .p-atc__btn {
    padding: 10px 12px;
    font-size: 12px;
}

.p-atc--details .p-atc__btn {
    padding: 12px 14px;
    font-size: 14px;
}

.p-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    height: 40px;
    flex: 0 0 auto;
}

.p-atc--details .p-qty {
    height: 44px;
}

.p-qty__btn {
    width: 40px;
    height: 100%;
    border: 0;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
    cursor: pointer;
    transition: .15s ease;
}

    .p-qty__btn:hover {
        background: #eef2f7;
    }

    .p-qty__btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.p-qty__input {
    width: 52px;
    height: 100%;
    border: 0;
    text-align: center;
    font-weight: 900;
    color: #0f172a;
    outline: none;
}

.p-atc--details .p-qty__input {
    width: 62px;
}

.p-atc__btn {
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: .15s ease;
    width: 100%;
    height: 40px;
}

.p-atc--details .p-atc__btn {
    height: 44px;
}

.p-atc__btn:hover {
    background: #0b1220;
    border-color: #0b1220;
}

.p-atc__btn:disabled {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: #64748b;
    cursor: not-allowed;
}

/* توی کارت‌ها کنار هم جا بشه */
.p-atc--card {
    justify-content: space-between;
}

    .p-atc--card .p-atc__btn {
        max-width: 120px;
    }

/* توی جزئیات: دکمه عریض‌تر */
.p-atc--details .p-atc__btn {
    max-width: none;
}
