/**
 * استایل Solution Category Grid
 * 
 * @package Plus_Modiresabz
 * @since 1.1.0
 */

/* ===== Container ===== */
.solCatGrid-wrap {
    width: 100%;
}

/* ===== Grid Layout (Desktop) ===== */
.solCatGrid-items {
    display: grid;
    grid-template-columns: repeat(var(--sol-grid-cols, 3), 1fr);
    gap: 20px;
}

/* ===== Card ===== */
.solCatGrid-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.3s ease;
    text-decoration: none;
    height: 100%;
}

/* ===== Icon (Inline SVG) ===== */
.solCatGrid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.solCatGrid-icon svg {
    width: 100%;
    height: 100%;
    fill: #64748b;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.solCatGrid-card:hover .solCatGrid-icon svg, .solCatGrid-card:hover .solCatGrid-icon path {
    fill: #ffc31d;
}


/* ===== Body ===== */
.solCatGrid-body {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 10px;
    align-items: center;
}
/*
.solCatGrid-card:hover {
    background: #ffc31d;
}

.solCatGrid-body:hover p, .solCatGrid-body:hover h3 {
    color: #fff;
}
*/
.solCatGrid-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
	text-align: center;
}

.solCatGrid-divider {
    display: block;
    width: 30px;
    height: 2px;
    background: #ffc31d;
}

.solCatGrid-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #64748b;
    margin: 0;
	text-align: center;
	min-height: 93px;
}
.solCatGrid-badge {
    display: inline-block;
    align-self: center;
    font-size: 12px;
    font-weight: 600;
    color: #696969;
    background: #F5F5F5;
    padding: 4px 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .solCatGrid-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* حالت پیش‌فرض: زیر هم */
    .solCatGrid-items {
        grid-template-columns: 1fr;
    }

    /* حالت کاروسل CSS موبایل */
    .solCatGrid-mobile-scroll .solCatGrid-items {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
    }

    .solCatGrid-mobile-scroll .solCatGrid-col {
        flex: 0 0 calc(100% / var(--sol-mobile-cols, 1.8));
        min-width: calc(100% / var(--sol-mobile-cols, 1.8));
        scroll-snap-align: start;
    }

    /* مخفی کردن اسکرول‌بار */
    .solCatGrid-mobile-scroll .solCatGrid-items::-webkit-scrollbar {
        display: none;
    }

    .solCatGrid-mobile-scroll .solCatGrid-items {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}
