/*
 Theme Name:   parskala Child
 Template:     parskala
 Theme URI: #
 Author: Hosein esmaliyan
 Author URI: https://masirwp.com
 Version:      1.0.0
*/
/* تبدیل مشخصات محصول ووکامرس به باکس‌های مربعی */
/* FORCE override Woo attributes layout */
/* === Force Grid Style for Short Attributes === */
/* Container grid */
/* ظرف اصلی لیست ویژگی‌ها */
.short-attributes ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* فاصله بین باکس‌ها */
    padding: 0;
    list-style: none;
}

/* استایل هر آیتم به صورت باکس مربعی/مستطیلی */
.short-attributes ul li.woocommerce-product-attributes-item {
    flex: 0 0 calc(33.33% - 12px); /* نمایش ۳ باکس در هر ردیف */
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px; /* گوشه‌های کمی گرد برای زیبایی */
    transition: all 0.3s ease;
    min-height: 100px; /* ارتفاع حداقلی برای حفظ حالت مربعی */
}

/* افکت هاور روی باکس‌ها */
.short-attributes ul li.woocommerce-product-attributes-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* استایل عنوان ویژگی (مثلاً: صفحه نمایش) */
.short-attributes .item__label {
    font-weight: bold;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* استایل مقدار ویژگی (مثلاً: تا ۳ روز) */
.short-attributes .item__value {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* ریسپانسیو برای موبایل (نمایش ۲ باکس در هر ردیف) */
@media (max-width: 768px) {
    .short-attributes ul li.woocommerce-product-attributes-item {
        flex: 0 0 calc(50% - 12px);
    }
}






