/* /site/themes/linguine-main/static/css/products.css */

.listing .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
}

.listing .card {
    background-color: #ffffff; /* was transparent for dark */
    border: 1px solid #e5e7eb; /* light border */
    border-radius: 0.5rem;
    transition: border-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.listing .card:hover {
    border-color: #cbd5e1; /* slate-300 */
    transform: translateY(-5px);
}

.listing .card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.listing .card-content h2 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.listing .card-content h2 a {
    text-decoration: none;
    color: #111827; /* gray-900 for headings */
}

.listing .card-content p {
    color: #4b5563; /* gray-600 for body text */
    flex-grow: 1;
    margin: 0 0 1.5rem;
}

.listing .card-content .btn {
    align-self: center;
    background-color: #111827; /* dark text on light bg */
    color: #ffffff;
}
