/* 1. Card container */
.category_products_grid_card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%; /* let grid define height */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 2. Card hover effect */
.category_products_grid_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 3. Image container */
.category_products_grid_card img {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 1 / 1; /* keeps all images square */
    object-fit: contain; /* prevents stretching */
    background: #f3f3f3; /* placeholder color */
}

/* 4. Text container */
.category_products_grid_card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2rem;
    height: 2.4rem; /* max two lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 8px 10px 4px 10px;
}

/* 5. Price styling */
.category_products_grid_card .text-heading {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 10px 10px 10px;
}
