/*
 * Texas Quality Furniture product-listing grid refinements
 * Upload to: /public_html/includes/templates/bootstrap/css/stylesheet_product_grid.css
 */

/* Remove the extra border and padding around the complete listing. */
#productsListing > .card {
    border: 0;
    margin-bottom: 0 !important;
}

#productsListing > .card > .card-body {
    padding: 0;
}

/* Give each product a clean, consistent retail card. */
#productsListing .centerBoxContentsListing {
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    padding: 18px !important;
    box-shadow: 0 2px 10px rgba(15, 41, 69, 0.06);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#productsListing .centerBoxContentsListing:hover {
    border-color: #bec9d3;
    box-shadow: 0 5px 16px rgba(15, 41, 69, 0.11);
}

/* Keep different source-image shapes contained in the same visual area. */
#productsListing .listingProductImage {
    display: block;
    width: 100%;
    max-width: 350px;
    height: 280px;
    margin: 0 auto 16px;
    object-fit: contain;
}

/* Product title: compact, readable, and consistent across each row. */
#productsListing .itemTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: 4px 0 12px;
    font-size: 1.08rem !important;
    font-weight: 600;
    line-height: 1.35;
}

#productsListing .itemTitle a {
    color: #102b49;
    text-decoration: none;
}

#productsListing .itemTitle a:hover,
#productsListing .itemTitle a:focus {
    color: #1f527f;
    text-decoration: underline;
}

/* Make the selling price easier to scan. */
#productsListing .pl-dp {
    margin: 4px 0 10px;
    color: #17212b;
    font-size: 1.12rem;
    font-weight: 700;
}

/* Refine the individual product call-to-action without movement on hover. */
#productsListing .listingBuyNowButton {
    width: 100%;
    margin-top: 6px !important;
    padding: 11px 16px;
    border-color: #102b49;
    border-radius: 6px;
    background-color: #102b49;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#productsListing .listingBuyNowButton:hover,
#productsListing .listingBuyNowButton:focus {
    border-color: #1f527f;
    background-color: #1f527f;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    #productsListing .centerBoxContentsListing {
        padding: 14px !important;
    }

    #productsListing .listingProductImage {
        height: auto;
        max-height: 280px;
    }

    #productsListing .itemTitle {
        min-height: 0;
        font-size: 1rem !important;
    }
}
