/* Shared default-theme product-card tokens and pricing treatment. */
:root {
    --besti-card-red: #e53935;
    --besti-card-ink: #172033;
    --besti-card-muted: #687386;
    --besti-card-border: #edf0f4;
}

.besti-card-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    min-height: 1.55rem;
    line-height: 1.2;
    justify-content: flex-start;
    text-align: start !important;
    width: 100%;
}

.besti-card-sale-price {
    color: var(--besti-card-ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.besti-card-regular-price {
    color: var(--besti-card-muted);
    font-size: .78rem;
    font-weight: 400;
    white-space: nowrap;
}

.besti-card-discount {
    display: inline-flex;
    align-items: center;
    border-radius: .25rem;
    background: var(--besti-card-red);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    padding: .3rem .38rem;
    white-space: nowrap;
}

/* Legacy compact widgets that still render the shared badge class keep the
   same treatment and flow outside the image frame. */
.for-discount-value {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    border-radius: .25rem !important;
    background: var(--besti-card-red) !important;
    color: #fff !important;
    font-size: .7rem !important;
    line-height: 1 !important;
    padding: .3rem .38rem !important;
}

.product-single-hover:focus-within {
    outline: 2px solid rgba(13, 92, 211, .45);
    outline-offset: 2px;
}

.product-single-hover .single-product-details h3,
.product-single-hover .single-product-details h4 {
    line-height: 1.35;
}

.product-single-hover .single-product-details h3 a,
.product-single-hover .single-product-details h4 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Jumia-style card titles: calm hierarchy, predictable two-line density,
   and logical alignment for both LTR and RTL storefronts. */
.product-single-hover .single-product-details h3,
.product-single-hover .single-product-details h3 a,
.product-single-hover .single-product-details h3 a.text-capitalize,
.product-single-hover .flash-product-title,
.product-single-hover .widget-product-title,
.product-single-hover .widget-product-title span,
.flash_deal_product .flash-product-title,
.flash_deal_product .widget-product-title,
.flash_deal_product .widget-product-title span {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    text-align: start !important;
}

.product-single-hover .single-product-details,
.product-single-hover .product-price,
.flash_deal_product .flash_deal_product_details,
.flash_deal_product .flash_deal_product_details h4 {
    text-align: start !important;
}

.flash_deal_product .besti-card-pricing {
    width: auto;
}

.product-single-hover .single-product-details h3 {
    min-height: 40px;
}

.product-single-hover .widget-product-title {
    min-height: 40px;
    margin-bottom: 0;
}

.flash_deal_product .flash-product-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 40px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-single-hover .inline_product > a img {
    display: block;
    width: 100%;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .besti-card-sale-price { font-size: .95rem; }
    .besti-card-regular-price { font-size: .74rem; }
    .besti-card-discount { font-size: .66rem; padding: .27rem .34rem; }
}
