/* ============================================
   باکس اطلاعات محصول (کارت مستطیلی چسبیده به گالری)
   ============================================ */
.product_meta_info {
    background-color: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 20px;
    padding: 35px 30px;

    /* ▼ اضافه شد: کشیده شدن تا انتهای ستون */
    height: 100%;

    /* ▼ اضافه شد: برای وسط‌چین کردن عمودی محتوا داخل کارت */
    display: flex;
    flex-direction: column;
}

/* ▼ اضافه شد: جبران حذف کلاس mt-sm-3 در حالت موبایل/تبلت */
@media (max-width: 767.98px) {
    .product_meta_info {
        margin-top: 24px;
    }
}

/* ============================================
   Custom Price Card (شبیه طرح الگوی وگاس)
   ============================================ */
.custom_price_card {
    position: relative;
    background-color: #e6e6e6;
    border-radius: 20px;
    padding: 35px 25px 25px;
    margin-top: 60px;
    margin-right: 50px;

    /* ▼ تغییر کرد: به جای max-width تنها، عرض کامل + سقف عرض */
    width: 100%;
    max-width: 480px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.price_card_badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 6px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #222222;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    /* ▼ اضافه شد: جلوگیری از شکستن متن بج در عرض کم */
    white-space: nowrap;
}

/* استایل قیمت */
.custom_price_card .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222222;

    /* ▼ اضافه شد: اجازه‌ی wrap در عرض‌های کوچک */
    flex-wrap: wrap;
}

.custom_price_card .price del {
    color: #a0a0a0;
    font-size: 1.05rem;
    text-decoration: line-through;
}

.custom_price_card .price ins {
    text-decoration: none;
}

/* دکمه افزودن به سبد خرید */
.custom_price_card .single_add_to_cart_button {
    background-color: #81c784 !important; /* رنگ سبز مشابه عکس الگو */
    color: #ffffff !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
    transition: all 0.3s ease;
}

.custom_price_card .single_add_to_cart_button:hover {
    background-color: #66bb6a !important;
}

/* جدول متغیرها (رنگ / سایز) */
.custom_price_card table.variations {
    width: 100%;
    margin-bottom: 15px;
}

.custom_price_card table.variations td {
    padding: 6px 0;
}

.pro_meta_title {
    font-size: 2rem !important;
}

/**/

/* ===================================================
   باکس تعداد محصول: استایل مینیمال کپسولی با هاور سبز
   =================================================== */

/* ۱. کانتینر کلی (کادر دور کل المان) */
.quantity {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    direction: ltr !important; /* چینش از چپ به راست (-) [عدد] (+) */
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0; /* رنگ کادر دور */
    border-radius: 10px; /* میزان گردی گوشه‌های کادر کل کار */
    padding: 2px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    width: fit-content;
    vertical-align: middle;
    margin: 10 10 30 4px !important;
}

/* ۲. دکمه‌های + و - (کاملاً فلت بدون بردر مجزا) */
.quantity button.plus,
.quantity button.minus {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1a202c; /* رنگ علامت‌ها */
    font-size: 20px;
    font-weight: 500;
    width: 36px;
    height: 36px;
    border-radius: 8px; /* گردی ملایم پس‌زمینه موقع هاور */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* افکت هاور: بک‌گراند سبز کم‌رنگ */
.quantity button.plus:hover,
.quantity button.minus:hover {
    background-color: #e8f8f0 !important; /* سبز ملایم و شیک */
    color: #10b981 !important; /* رنگ علامت در حالت هاور */
}

/* افکت کلیک روی دکمه */
.quantity button.plus:active,
.quantity button.minus:active {
    transform: scale(0.92);
}

/* ۳. اینپوت نمایش عدد */
.quantity input.qty {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: 44px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    -moz-appearance: textfield; /* فایرفاکس */
}

/* حذف فلش‌های پیش‌فرض مرورگر */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
