.custom-grid-widget {
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 20px;
    background-color: #fff;
}

.custom-grid-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: right;
}


.custom-grid-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.custom-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}


/* کانتینر اصلی برای چیدمان */
.custom-grid-main-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-direction: row;
}

/* کانتینر محتوا: نام کوتاه + متن */
.custom-grid-content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    margin: 0 15px;
}


.custom-grid-icon {
    /* آیکن در سمت راست */
}

.custom-grid-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 15px;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.custom-grid-item:hover .custom-grid-icon img {
    transform: scale(1.15);
}

.custom-grid-shortname {
    font-weight: bold;
    margin: 0 0 5px 0;
    font-size: 16px;
}


/* کانتینر توضیحات و دکمه کنار هم */
.custom-grid-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* توضیحات کوتاه */
.custom-grid-excerpt {
    font-size: 13px;
    color: #888;
    margin: 0;
}


/* دکمه خرید اشتراک */
.custom-grid-button {
    padding: 7px 18px;
    background-color: #21759b;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    /* دکمه در سمت چپ */
}

