
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .detail-container {
    padding: 0.5em 1em 0 1em;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex: 1;
}

.product-card .product-title {
    /*old style*/
    display: flex;
    justify-content: space-between;
    /*//new style*/
    font-weight: var(--font-weight);
    font-size: 16px;
    color: var(--head-color);
    /*margin: 0.4rem 0;*/
    /*old style */
    /*font-weight: 700;*/
    /*font-size: 1.25rem;*/
    /*color: #3D4F50;*/
}

.product-card .product-title a {
    /* title link was 21-22px tall; keep a 24px minimum touch target */
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
}

.product-card .detail-wrapper {
    height: fit-content;
    margin-top: 0.25rem;
    border-top: 1px solid lightgray;
    padding: 0.5rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
}

.product-card .detail-item {
    display: inline-flex;
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 0 6px;
    height: fit-content;
}

.product-card .slider-img .city-state-badge {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background-color: var(--color-text-700);
    color: var(--color-surface);
    padding: .25rem .5rem;
    border-radius: 20px;
    font-size: 13px;
}

.product-card .publish-status {
    border-radius: 1rem;
    padding: 4px 6px 2px 6px;
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: block;
    color: white;
}

.product-card .detail-item .d-title {
    flex-direction: row;
    display: inline-flex;
    gap: 0.25rem;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 8px;
    padding: 6px;
    margin: 6px 0;
    background: white;
    box-shadow: rgb(var(--color-text-900-rgb) / 0.24) 0 3px 8px;
}

.product-card .detail-item .d-title-txt {
    color: var(--main-color);
    font-weight: 600;
    font-size: 13px;
    margin-top: 2px;
}

.product-card .detail-item .d-title-icon {
    height: 18px;
    display: inline !important;
    color: var(--main-color);
    margin-inline-start: 2px;
}

.product-card .detail-item .d-value {
    color: var(--main-dark-blue);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    padding: 6px;
    text-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.15rem;
    flex: 1;
}

.price-wrapper {

}

.product-card .price-wrapper .price-item {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: var(--font-weight);
    font-size: 15px;
    color: var(--head-color);
    margin: 0.4rem 0;
    gap: 0.5rem;
}

.product-card .price-wrapper .price-title {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--main-dark-blue);
}

.product-card .price-wrapper .price-title {
    flex-shrink: 0;
}

.product-card .price-wrapper hr {
    border: 1px dashed var(--main-bg-color);
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.product-card .price-wrapper .price-value {
    /* Never let the dashed <hr> squeeze the figure to zero width (overflow:hidden lets flex items collapse). */
    flex-shrink: 0;
    max-width: 100%;
    font-weight: 700;
    font-size: 14px;
    color: var(--main-color);
    text-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.15rem;
}


.splide__slide {
    padding-bottom: 2em;
    height: auto;
    max-height: 100%;
    min-height: max-content;
}

/* UI audit 2026-11-18: listing card media, badges and tap targets */
.product-card .slider-img-products {
    overflow: hidden;
    background: rgb(var(--color-muted-100-rgb));
    border-radius: 8px 8px 0 0;
}

.product-card .img_products_card {
    width: 100%;
    height: 12em;
    object-fit: cover;
    /* Hide the broken-image alt text so it never overlaps the badges. */
    font-size: 0;
    color: transparent;
}

.product-card .img_products_card.is-fallback {
    object-fit: contain;
    padding: 1.5rem;
}

.product-card .slider-img .city-state-badge {
    max-width: calc(100% - 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .bookmark-product,
.product-card .like-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    cursor: pointer;
}

.product-card .bookmark-product:focus-visible,
.product-card .like-product:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
    border-radius: 6px;
}

.product-card .detail-item {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .product-card .img_products_card {
        height: 10em;
    }

    .product-card .slider-img .city-state-badge {
        max-width: 60%;
        font-size: 12px;
    }
}
