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


.custom-qty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.custom-qty-buttons button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 8px;
    color: white;
    background: linear-gradient(45deg, #28a745, #218838);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    outline: none;
}

/* افکت شناور (Hover) */
.custom-qty-buttons button:hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: translateY(-3px);
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.4);
}

/* دکمه فعال */
.custom-qty-buttons button.active {
    border: 2px solid #1e7e34;
    background: linear-gradient(45deg, #1e7e34, #155724);
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.5);
}








.custom-qty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.custom-qty-buttons button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 8px;
    color: white !important;
    background: linear-gradient(45deg, #28a745, #218838) !important;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease-in-out !important;
    outline: none !important;
    min-width: 150px; /* حداقل عرض برای دکمه‌ها */
    text-align: center;
}

/* افکت شناور (Hover) */
.custom-qty-buttons button:hover {
    background: linear-gradient(45deg, #218838, #1e7e34) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.4) !important;
}

/* دکمه فعال */
.custom-qty-buttons button.active {
    border: 2px solid #1e7e34 !important;
    background: linear-gradient(45deg, #1e7e34, #155724) !important;
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.5) !important;
}

/* 📌 ریسپانسیو برای نمایش در موبایل */
@media (max-width: 768px) {
    .custom-qty-buttons {
        flex-direction: column; /* دکمه‌ها زیر هم نمایش داده شوند */
        gap: 8px; /* فاصله بین دکمه‌ها در موبایل */
    }

    .custom-qty-buttons button {
        width: 100%; /* دکمه‌ها تمام عرض صفحه را بگیرند */
        font-size: 14px; /* کاهش سایز فونت برای موبایل */
        padding: 10px; /* کاهش حاشیه داخلی */
    }
}








/* دکمه‌های صفحه آرشیو */
.custom-qty-buttons.archive {
    display: flex;
    gap: 5px; /* فاصله بین دکمه‌ها */
    justify-content: center;
    margin-top: 5px;
    flex-wrap: nowrap; /* جلوگیری از افتادن زیر هم */
}

/* دکمه‌های صفحه آرشیو - کوچک‌تر */
.custom-qty-buttons.archive button {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 5px;
    color: white !important;
    background: linear-gradient(45deg, #28a745, #218838) !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease-in-out !important;
    outline: none !important;
    min-width: 90px; /* عرض کمتر برای دکمه‌ها */
    text-align: center;
}

/* افکت شناور (Hover) */
.custom-qty-buttons.archive button:hover {
    background: linear-gradient(45deg, #218838, #1e7e34) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3) !important;
}

/* دکمه فعال */
.custom-qty-buttons.archive button.active {
    border: 2px solid #1e7e34 !important;
    background: linear-gradient(45deg, #1e7e34, #155724) !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4) !important;
}

/* 📌 ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .custom-qty-buttons.archive {
        gap: 3px; /* کاهش فاصله بین دکمه‌ها */
    }

    .custom-qty-buttons.archive button {
        font-size: 11px; /* کوچکتر شدن فونت در موبایل */
        padding: 5px 8px;
        min-width: 80px; /* دکمه‌ها جمع و جورتر شوند */
    }
}