/* Overrides for product card display */

/* Remove fixed height to prevent cropping and allow flexible layout */
.product-card {
    height: auto;
    max-height: none;
}

/* Constrain card image size for consistent grid alignment */
.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 12px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

/* List View styles for #products-grid toggle */
#products-grid.list-view > .col {
    flex: 0 0 100%;
    max-width: 100%;
}

#products-grid.list-view .product-card {
    flex-direction: row;
    height: auto;
}

#products-grid.list-view picture,
#products-grid.list-view .card-img-top {
    width: 200px;
    height: 180px;
    object-fit: cover;
    border-radius: 0.25rem 0 0 0.25rem;
}

#products-grid.list-view .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}