/**
 * DBUSA-specific product-card overrides (issue DirtyBirdUSA#38).
 *
 * The card itself is the shared AR15Discounts card (content-product.php +
 * productCard.css, enabled for DBUSA). This file only adjusts the few DBUSA
 * brand specifics, so AR15D stays untouched. Loaded only on DBUSA via
 * env(SITE_DBUSA).
 */

/* Title: keep DBUSA's own theme font. The shared productCard.css forces
   Poppins (that's AR15D only); reset to inherit so DBUSA keeps its font. */
.product-title-wrapper h2,
.product-title-wrapper .woocommerce-loop-product__title,
.woocommerce-loop-product__title {
    font-family: inherit !important;
}

/* Cost-per-round badge: DBUSA brand (primary/gold) color instead of the AR15D
   red, readable dark text, and larger (it reads too small on DBUSA). */
.dbi-product__cpr,
.category-page-row .dbi-product__cpr,
.single-product .dbi-product__cpr {
    background: var(--primary-color) !important;
    color: #111 !important;
    font-size: 14px !important;
}

/* .product-card-container is a flex column; the CPR is late in the DOM. Keep
   it at the bottom of the card. */
.custom-product-card .dbi-product__cpr {
    order: 99;
}

/* Show the ratings directly under the title, before the save-% / price. The
   ratings sit after the price block in the DOM, so make the meta wrapper a
   flex column and pull the ratings up with order. */
.custom-product-card .product-meta-wrapper {
    display: flex;
    flex-direction: column;
}

.custom-product-card .rr_cat_ratings {
    order: -1;
}

/* Save-percentage badge: neutral gray on DBUSA (stays red on AR15D, whose
   styling lives in the shared productCard.css). */
.save-percentage {
    background: #ececec !important;
    color: #555 !important;
}

/* Brand label (span.yith-wcbr-brands): align with the padded card content
   above (.product-info-container has 10px of padding). */
.custom-product-card .yith-wcbr-brands {
    display: block;
    padding-left: 10px !important;
}
