/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart

*/
.product-image {
    position: relative; /* برای ایجاد فضای شناور */
    overflow: hidden; /* جلوگیری از خروج محتوا */
}

.quantity-buttons {
    position: absolute;
    top: 10px; /* فاصله از بالای عکس */
    left: 50%; /* مرکز چین کردن افقی */
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* پس‌زمینه نیمه‌شفاف */
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0; /* دکمه‌ها در حالت عادی مخفی هستند */
    transition: opacity 0.3s ease-in-out; /* انیمیشن ظاهر شدن */
}

.product-image:hover .quantity-buttons {
    opacity: 1; /* دکمه‌ها هنگام هاور روی عکس نمایش داده می‌شوند */
}

.quantity-buttons button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out;
}

.quantity-buttons button:hover {
    background-color: #005177;
}

.quantity-buttons .quantity-input {
    width: 40px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

//new
.woocommerce .product .add_to_cart_button.button {
 
background-color: #FF0000;
 
color: #C0C0C0;
 
}