/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ==========================================================================
   Lot card styling — applied to EVERY WooCommerce product loop on the site
   (shop page, category archives, Avada's [fusion_woo_product_grid]
   shortcode, etc.), since the markup is now generated by one shared PHP
   function (artisio_render_lot_card() in functions.php) hooked onto
   WooCommerce's common loop-item actions rather than a template override.

   Values (fonts, sizes, colors) copied directly from the live, already-built
   /auction-listings/ page's own card CSS for visual consistency across the
   site, scoped under .products so it can't collide with unrelated "card"
   elements elsewhere. That page sets its own font-family on .artisio-page
   (a system-font stack) rather than inheriting Avada's theme font — matched
   here too, since that was the actual cause of the font mismatch.

   Bid count, "Ends" date and the live countdown from that reference aren't
   included yet — that data doesn't exist in WooCommerce/this site's cache
   yet. Only Lot No (SKU), title, image and price (for Sold lots) are real.
   ========================================================================== */

.products li.product {
    list-style: none;
}

.products .card-custom {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 380px;
    margin: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.products .card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.products .card-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #203a5d;
    color: #fff;
    padding: 12px 20px;
}

.products .card-status-bar .status-text {
    font-weight: 600;
    font-size: 1.1rem;
    font-style: italic;
}

.products .card-status-bar .price-badge {
    color: #203a5d;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}

.products .card-status-bar .price-badge.sold-for {
    background: #6ce9a6;
}

.products .card-status-bar .price-badge.live-auction {
    background: #9ecdc9;
}

.products .card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.products .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products .lot-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.products .lot-number,
.products .offers-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.products .card-custom .car-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    color: rgb(32, 58, 93) !important;
    margin: 12px 0 16px !important;
    line-height: 26px !important;
}

.products .card-custom .car-title a {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    color: inherit !important;
}

.products .card-footer-custom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.products .view-listing {
    color: #4a90a4;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.products .view-listing:hover {
    color: #357a8a;
}

.table-2 .auction-type-v {line-height: 1.5;}
/* Search results (search.php) — lot cards laid out in a responsive grid. */
.products.artisio-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 0 40px;
    padding: 0;
}
