/*
 * Phase 12B-R1 — compact marketplace product cards.
 * Final override layer for the native homepage, catalogue, wishlist and
 * new-arrival grids. Product data and review calculations remain WooCommerce-owned.
 */

/* --------------------------------------------------------------------------
   1. Strict two-line product titles
   -------------------------------------------------------------------------- */
body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .bupiz-p8-product-rail .woocommerce-loop-product__title,
body .bupiz-home-scroll-section .woocommerce-loop-product__title,
body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
body .bupiz-native-wishlist-shell .woocommerce-loop-product__title{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    overflow:hidden !important;
    white-space:normal !important;
    text-overflow:ellipsis !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    height:2.64em !important;
    min-height:2.64em !important;
    max-height:2.64em !important;
    margin:0 0 6px !important;
    padding:0 !important;
    color:#14213a !important;
    font-family:inherit !important;
    font-size:14px !important;
    font-weight:700 !important;
    line-height:1.32 !important;
    letter-spacing:-.012em !important;
    text-transform:none !important;
}

/* The legacy four-dot helper must never replace the native two-line ellipsis. */
body .woocommerce ul.products li.product .woocommerce-loop-product__title.bupiz-title-has-4dots{
    padding-right:0 !important;
}
body .woocommerce ul.products li.product .woocommerce-loop-product__title.bupiz-title-has-4dots::after{
    content:none !important;
    display:none !important;
}

/* --------------------------------------------------------------------------
   2. Compact, trustworthy rating treatment
   -------------------------------------------------------------------------- */
body .woocommerce ul.products li.product .bupiz-home-review-row,
body .woocommerce ul.products li.product .bupiz-card-rating,
body .bupiz-p8-product-rail .bupiz-card-rating,
body .bupiz-native-new-arrivals .bupiz-card-rating,
body .bupiz-native-wishlist-shell .bupiz-card-rating{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:6px !important;
    width:100% !important;
    height:22px !important;
    min-height:22px !important;
    margin:0 0 5px !important;
    padding:0 !important;
    line-height:1 !important;
}

body .bupiz-card-rating__badge{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    height:20px !important;
    min-width:43px !important;
    padding:0 7px !important;
    border:1px solid rgba(0,91,61,.08) !important;
    border-radius:6px !important;
    background:linear-gradient(135deg,#168352 0%,#0f9663 100%) !important;
    color:#fff !important;
    box-shadow:0 3px 8px rgba(15,131,82,.15) !important;
    font-variant-numeric:tabular-nums !important;
}
body .bupiz-card-rating__score{
    color:#fff !important;
    font-size:10.5px !important;
    font-weight:800 !important;
    line-height:1 !important;
    letter-spacing:-.01em !important;
}
body .bupiz-card-rating__star{
    position:relative !important;
    top:-.2px !important;
    color:#fff !important;
    font-size:10px !important;
    font-weight:800 !important;
    line-height:1 !important;
}
body .bupiz-card-rating__count,
body .woocommerce ul.products li.product .bupiz-home-review-count{
    color:#667085 !important;
    font-size:10.5px !important;
    font-weight:600 !important;
    line-height:1 !important;
    white-space:nowrap !important;
}
body .bupiz-card-rating--empty{
    visibility:hidden !important;
}

/* Defensive cleanup for cached or third-party loop rating markup. */
body .woocommerce ul.products li.product .bupiz-home-review-row .star-rating,
body .woocommerce ul.products li.product .bupiz-card-rating .star-rating,
body .woocommerce ul.products li.product .bupiz-home-review-row .rating,
body .woocommerce ul.products li.product .bupiz-home-review-row .screen-reader-text{
    display:none !important;
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
}

/* --------------------------------------------------------------------------
   3. Cleaner price rhythm
   -------------------------------------------------------------------------- */
body .woocommerce ul.products li.product .bupiz-home-price-row{
    display:flex !important;
    align-items:baseline !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    gap:2px 5px !important;
    min-height:23px !important;
    margin:0 0 3px !important;
    padding:0 !important;
    color:#111827 !important;
    line-height:1.08 !important;
    font-variant-numeric:tabular-nums !important;
}
body .woocommerce ul.products li.product .bupiz-home-now-wrap{
    display:inline-flex !important;
    align-items:baseline !important;
    gap:1px !important;
    white-space:nowrap !important;
}
body .woocommerce ul.products li.product .bupiz-home-currency{
    color:#111827 !important;
    font-size:10.5px !important;
    font-weight:800 !important;
    transform:none !important;
}
body .woocommerce ul.products li.product .bupiz-home-now{
    color:#111827 !important;
    font-size:16px !important;
    font-weight:850 !important;
    letter-spacing:-.025em !important;
}
body .woocommerce ul.products li.product .bupiz-home-mrp-label{
    color:#8a94a6 !important;
    font-size:8px !important;
    font-weight:700 !important;
    letter-spacing:.015em !important;
}
body .woocommerce ul.products li.product .bupiz-home-old{
    color:#8a94a6 !important;
    font-size:10.5px !important;
    font-weight:500 !important;
    text-decoration:line-through !important;
    white-space:nowrap !important;
}
body .woocommerce ul.products li.product .bupiz-home-off{
    color:#f56a00 !important;
    font-size:10.5px !important;
    font-weight:750 !important;
    white-space:nowrap !important;
}

/* --------------------------------------------------------------------------
   4. Remove artificial row height and keep rails aligned to their content
   -------------------------------------------------------------------------- */
body .bupiz-p8-collection,
body .bupiz-p8-product-rail,
body .bupiz-p8-product-rail-wrap{
    height:auto !important;
    min-height:0 !important;
}
body .bupiz-p8-product-rail ul.products.bupiz-p8-products{
    align-items:start !important;
    grid-auto-rows:max-content !important;
}
body .bupiz-p8-product-rail ul.products.bupiz-p8-products li.product,
body .woocommerce ul.products li.product{
    align-self:start !important;
    height:auto !important;
    min-height:0 !important;
}
body .bupiz-p8-product-rail ul.products.bupiz-p8-products li.product .woocommerce-loop-product__link{
    height:auto !important;
    min-height:0 !important;
}
body.home .bupiz-p8-collection{
    padding-bottom:24px !important;
}

/* The LCP hero must paint immediately; signature text may still animate. */
body.home .bupiz-p8-hero__media img{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
}

/* --------------------------------------------------------------------------
   5. Responsive typography tuned for two-card mobile rails
   -------------------------------------------------------------------------- */
@media (max-width:1024px){
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .bupiz-p8-product-rail .woocommerce-loop-product__title,
    body .bupiz-home-scroll-section .woocommerce-loop-product__title,
    body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
    body .bupiz-native-wishlist-shell .woocommerce-loop-product__title{
        font-size:13.5px !important;
    }
}

@media (max-width:767px){
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .bupiz-p8-product-rail .woocommerce-loop-product__title,
    body .bupiz-home-scroll-section .woocommerce-loop-product__title,
    body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
    body .bupiz-native-wishlist-shell .woocommerce-loop-product__title{
        height:2.56em !important;
        min-height:2.56em !important;
        max-height:2.56em !important;
        margin-bottom:5px !important;
        font-size:13px !important;
        line-height:1.28 !important;
        letter-spacing:-.01em !important;
    }

    body .woocommerce ul.products li.product .bupiz-home-review-row,
    body .woocommerce ul.products li.product .bupiz-card-rating{
        height:20px !important;
        min-height:20px !important;
        margin-bottom:4px !important;
        gap:5px !important;
    }
    body .bupiz-card-rating__badge{
        height:19px !important;
        min-width:40px !important;
        padding-inline:6px !important;
        border-radius:5px !important;
    }
    body .bupiz-card-rating__score,
    body .bupiz-card-rating__count,
    body .woocommerce ul.products li.product .bupiz-home-review-count{
        font-size:10px !important;
    }
    body .bupiz-card-rating__star{font-size:9.5px !important;}

    body .woocommerce ul.products li.product .bupiz-home-price-row{
        min-height:21px !important;
        gap:2px 4px !important;
        margin-bottom:2px !important;
    }
    body .woocommerce ul.products li.product .bupiz-home-now{font-size:15px !important;}
    body .woocommerce ul.products li.product .bupiz-home-currency,
    body .woocommerce ul.products li.product .bupiz-home-old,
    body .woocommerce ul.products li.product .bupiz-home-off{font-size:10px !important;}
    body .woocommerce ul.products li.product .bupiz-home-mrp-label{font-size:7.5px !important;}

    body.home .bupiz-p8-collection{padding-bottom:18px !important;}
}

@media (max-width:420px){
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .bupiz-p8-product-rail .woocommerce-loop-product__title,
    body .bupiz-home-scroll-section .woocommerce-loop-product__title,
    body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
    body .bupiz-native-wishlist-shell .woocommerce-loop-product__title{
        font-size:12.5px !important;
    }
    body .woocommerce ul.products li.product .bupiz-home-mrp-label{display:none !important;}
}

/* ============================================================
   Phase 13K-R2 — conditional empty-space cleanup for product cards
   Spacing only. No product data, rating logic, price logic or card structure.
============================================================ */
/* Phase 12B intentionally reserved a hidden rating row for products with no
   reviews. Collapse only that empty placeholder so price moves up naturally. */
body .woocommerce ul.products li.product .bupiz-card-rating--empty,
body .bupiz-p8-product-rail .bupiz-card-rating--empty,
body .bupiz-native-new-arrivals .bupiz-card-rating--empty,
body .bupiz-native-wishlist-shell .bupiz-card-rating--empty{
    display:none !important;
    visibility:hidden !important;
    width:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    overflow:hidden !important;
}

/* ============================================================
   Phase 13K-R3 — content-height product-card cleanup
   Spacing only. One-line titles and absent ratings no longer reserve rows.
============================================================ */
/* Keep the existing two-line clamp, but do not force every title to occupy
   two lines. One-line titles now use one line; long titles still clamp at two. */
body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .bupiz-p8-product-rail .woocommerce-loop-product__title,
body .bupiz-home-scroll-section .woocommerce-loop-product__title,
body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
body .bupiz-native-wishlist-shell .woocommerce-loop-product__title{
    height:auto !important;
    min-height:0 !important;
    max-height:2.64em !important;
}

/* Homepage's alternate native cards use their own title class. Give them the
   same content-height behaviour without changing the two-line clamp. */
body.home .bupiz-p13i-product-card__title{
    height:auto !important;
    min-height:0 !important;
    max-height:2.52em !important;
}

/* Defensive zero-space rule for every no-review placeholder in card contexts. */
body .bupiz-card-rating--empty,
body .woocommerce ul.products li.product .bupiz-card-rating--empty,
body .bupiz-p8-product-rail .bupiz-card-rating--empty,
body .bupiz-native-new-arrivals .bupiz-card-rating--empty,
body .bupiz-native-wishlist-shell .bupiz-card-rating--empty{
    display:none !important;
    visibility:hidden !important;
    width:0 !important;
    height:0 !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    overflow:hidden !important;
}

/* ============================================================
   Phase 13L — compact marketplace card hierarchy
   Product-card presentation only: rating on image, optional brand heading,
   one-line product name and immediate price row.
============================================================ */

/* The loop link is already the image/title container. Keep it positioned so
   the rating emitted immediately after the thumbnail can sit on the image. */
body .woocommerce ul.products li.product .woocommerce-loop-product__link,
body .woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
    position:relative !important;
}

/* Verified rating overlay. It is output only when a real rating exists, so
   products without reviews reserve no row at all. */
body .woocommerce ul.products li.product .bupiz-card-rating--overlay,
body .bupiz-p8-product-rail .bupiz-card-rating--overlay,
body .bupiz-native-new-arrivals .bupiz-card-rating--overlay,
body .bupiz-native-wishlist-shell .bupiz-card-rating--overlay{
    position:relative !important;
    z-index:6 !important;
    display:flex !important;
    align-items:center !important;
    width:max-content !important;
    min-width:0 !important;
    height:22px !important;
    min-height:22px !important;
    margin:-34px 0 12px 8px !important;
    padding:0 7px !important;
    gap:4px !important;
    border:1px solid rgba(20,33,58,.08) !important;
    border-radius:4px !important;
    background:rgba(255,255,255,.92) !important;
    color:#14213a !important;
    box-shadow:0 2px 7px rgba(20,33,58,.08) !important;
    backdrop-filter:blur(4px) !important;
    -webkit-backdrop-filter:blur(4px) !important;
    line-height:1 !important;
}
body .woocommerce ul.products li.product .bupiz-card-rating--overlay .bupiz-card-rating__score,
body .woocommerce ul.products li.product .bupiz-card-rating--overlay .bupiz-card-rating__count,
body .woocommerce ul.products li.product .bupiz-card-rating--overlay .bupiz-home-review-count{
    color:#14213a !important;
    font-size:10.5px !important;
    font-weight:800 !important;
    line-height:1 !important;
}
body .woocommerce ul.products li.product .bupiz-card-rating--overlay .bupiz-card-rating__star{
    color:#0a9a92 !important;
    font-size:10.5px !important;
}
body .woocommerce ul.products li.product .bupiz-card-rating__divider{
    color:#9aa3b2 !important;
    font-size:9px !important;
    font-weight:700 !important;
}

/* Real brand only. PHP does not render this element for Generic/no-brand, so
   absent brands create zero vertical gap. */
body .woocommerce ul.products li.product .bupiz-card-brand{
    display:block !important;
    overflow:hidden !important;
    margin:0 0 2px !important;
    padding:0 !important;
    color:#14213a !important;
    font-size:13.5px !important;
    font-weight:800 !important;
    line-height:1.18 !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
}

/* Product name becomes the softer single-line descriptor beneath the brand. */
body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .bupiz-p8-product-rail .woocommerce-loop-product__title,
body .bupiz-home-scroll-section .woocommerce-loop-product__title,
body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
body .bupiz-native-wishlist-shell .woocommerce-loop-product__title,
body.home .bupiz-p8-collection ul.products.bupiz-p8-products > li.product .woocommerce-loop-product__title{
    display:block !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin-top:0 !important;
    margin-bottom:5px !important;
    overflow:hidden !important;
    color:#536176 !important;
    font-size:12px !important;
    font-weight:500 !important;
    line-height:1.25 !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    -webkit-line-clamp:unset !important;
    -webkit-box-orient:unset !important;
}
body .woocommerce ul.products li.product .woocommerce-loop-product__title.bupiz-title-has-4dots{
    padding-right:0 !important;
    text-overflow:ellipsis !important;
}
body .woocommerce ul.products li.product .woocommerce-loop-product__title.bupiz-title-has-4dots::after{
    content:none !important;
    display:none !important;
}

/* Price follows the one-line name directly; there is no separate rating row. */
body .woocommerce ul.products li.product .bupiz-home-price-row{
    margin-top:0 !important;
}

@media (max-width:767px){
    body .woocommerce ul.products li.product .bupiz-card-brand{font-size:12px !important;}
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .bupiz-p8-product-rail .woocommerce-loop-product__title,
    body .bupiz-home-scroll-section .woocommerce-loop-product__title,
    body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
    body .bupiz-native-wishlist-shell .woocommerce-loop-product__title,
    body.home .bupiz-p8-collection ul.products.bupiz-p8-products > li.product .woocommerce-loop-product__title{
        margin-bottom:4px !important;
        font-size:11px !important;
    }
    body .woocommerce ul.products li.product .bupiz-card-rating--overlay,
    body .bupiz-p8-product-rail .bupiz-card-rating--overlay,
    body .bupiz-native-new-arrivals .bupiz-card-rating--overlay,
    body .bupiz-native-wishlist-shell .bupiz-card-rating--overlay{
        height:20px !important;
        min-height:20px !important;
        margin:-31px 0 11px 7px !important;
        padding:0 6px !important;
    }
}

/* ============================================================
   Phase 13M — exact rating overlay + compact brand alignment
   Scope: product-card presentation only.
============================================================ */

/* Keep the verified rating visually inside the bottom-left of the product
   image.  This selector intentionally outranks the older homepage row rules
   that otherwise pull the badge back into normal document flow. */
body .woocommerce ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body .bupiz-p8-product-rail ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body.home .bupiz-p8-collection ul.products.bupiz-p8-products > li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body .bupiz-native-new-arrivals ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body .bupiz-native-wishlist-shell ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay{
    position:relative !important;
    z-index:8 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:max-content !important;
    max-width:calc(100% - 24px) !important;
    height:21px !important;
    min-height:21px !important;
    margin:-36px 12px 10px 12px !important;
    padding:0 6px !important;
    gap:3px !important;
    border:1px solid rgba(15,23,42,.08) !important;
    border-radius:3px !important;
    background:rgba(250,250,248,.94) !important;
    color:#101828 !important;
    box-shadow:0 1px 4px rgba(15,23,42,.08) !important;
    backdrop-filter:blur(3px) !important;
    -webkit-backdrop-filter:blur(3px) !important;
    line-height:1 !important;
}

/* Explicit child colours in every card context. The old rating layer used
   white score/star text, which became invisible once the badge background was
   changed to a soft light surface. */
body .bupiz-card-rating--overlay .bupiz-card-rating__score,
body .bupiz-card-rating--overlay .bupiz-card-rating__count,
body .bupiz-card-rating--overlay .bupiz-home-review-count{
    color:#101828 !important;
    font-size:10px !important;
    font-weight:800 !important;
    line-height:1 !important;
}
body .bupiz-card-rating--overlay .bupiz-card-rating__star{
    top:0 !important;
    color:#009688 !important;
    font-size:10px !important;
    font-weight:900 !important;
    line-height:1 !important;
}
body .bupiz-card-rating--overlay .bupiz-card-rating__divider{
    color:#98a2b3 !important;
    font-size:9px !important;
    font-weight:700 !important;
    line-height:1 !important;
}

/* Brand: about 25% smaller than the previous 13.5px treatment, still bold.
   On the home WooCommerce rail it uses the exact same horizontal inset as the
   product name, so the two lines start and end on the same vertical guides. */
body .woocommerce ul.products li.product .bupiz-card-brand{
    font-size:10.25px !important;
    font-weight:800 !important;
    line-height:1.15 !important;
}
body.home .bupiz-p8-collection ul.products.bupiz-p8-products > li.product .bupiz-card-brand{
    margin:0 12px 2px 12px !important;
    padding:0 !important;
}

@media (max-width:767px){
    body .woocommerce ul.products li.product .bupiz-card-brand{
        font-size:9.5px !important;
    }
    body .woocommerce ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body .bupiz-p8-product-rail ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body.home .bupiz-p8-collection ul.products.bupiz-p8-products > li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body .bupiz-native-new-arrivals ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body .bupiz-native-wishlist-shell ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay{
        height:20px !important;
        min-height:20px !important;
        margin:-34px 10px 9px 10px !important;
        padding:0 6px !important;
    }
}

/* ============================================================
   Phase 13N — reference-style product-card chrome
   Presentation only: rating/wishlist image corners + brand/name type.
============================================================ */

/* Rating sits inside the image at bottom-left. JS supplies the exact top
   coordinate from the rendered image so this remains correct at every card
   width and responsive breakpoint. */
body .woocommerce ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body .bupiz-p8-product-rail ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body .bupiz-native-new-arrivals ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body .bupiz-native-wishlist-shell ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
body .related.products ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay{
    position:absolute !important;
    z-index:12 !important;
    top:var(--bupiz-card-rating-top, 8px) !important;
    left:8px !important;
    right:auto !important;
    bottom:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:max-content !important;
    height:22px !important;
    min-height:22px !important;
    margin:0 !important;
    padding:0 6px !important;
    gap:3px !important;
    border:1px solid rgba(40,44,63,.12) !important;
    border-radius:2px !important;
    background:rgba(255,255,255,.96) !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    color:#282c3f !important;
    line-height:1 !important;
    pointer-events:none !important;
}
body .bupiz-card-rating--overlay .bupiz-card-rating__score,
body .bupiz-card-rating--overlay .bupiz-card-rating__count,
body .bupiz-card-rating--overlay .bupiz-home-review-count{
    color:#282c3f !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1 !important;
}
body .bupiz-card-rating--overlay .bupiz-card-rating__star{
    color:#14958f !important;
    font-size:10px !important;
    font-weight:900 !important;
    line-height:1 !important;
}
body .bupiz-card-rating--overlay .bupiz-card-rating__divider{
    color:#94969f !important;
    font-size:10px !important;
    font-weight:500 !important;
    line-height:1 !important;
}

/* Wishlist remains the existing Bupiz control, but moves to the image's
   bottom-right. JS calculates this top value from the rendered image. */
body .woocommerce ul.products li.product .bupiz-wishlist-btn--loop,
body .related.products ul.products li.product .bupiz-wishlist-btn--loop,
body .bupiz-hot-deals-slider ul.products li.product .bupiz-wishlist-btn--loop,
body .bupiz-native-new-arrivals ul.products li.product .bupiz-wishlist-btn--loop,
body .bupiz-native-wishlist-shell ul.products li.product .bupiz-wishlist-btn--loop{
    top:var(--bupiz-card-wishlist-top, 8px) !important;
    right:8px !important;
    left:auto !important;
    bottom:auto !important;
}

/* Reference hierarchy: brand is the strongest text line, product name is a
   softer one-line descriptor. Generic/no-brand is still not rendered by PHP. */
body .woocommerce ul.products li.product .bupiz-card-brand,
body .related.products ul.products li.product .bupiz-card-brand,
body .bupiz-hot-deals-slider ul.products li.product .bupiz-card-brand{
    display:block !important;
    overflow:hidden !important;
    margin:0 0 2px !important;
    padding:0 !important;
    color:#282c3f !important;
    font-family:inherit !important;
    font-size:15px !important;
    font-weight:700 !important;
    line-height:1.18 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
}
body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .related.products ul.products li.product .woocommerce-loop-product__title,
body .bupiz-hot-deals-slider ul.products li.product .woocommerce-loop-product__title,
body .bupiz-p8-product-rail .woocommerce-loop-product__title,
body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
body .bupiz-native-wishlist-shell .woocommerce-loop-product__title{
    display:block !important;
    overflow:hidden !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 0 5px !important;
    padding:0 !important;
    color:#535766 !important;
    font-family:inherit !important;
    font-size:13px !important;
    font-weight:400 !important;
    line-height:1.2 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    -webkit-line-clamp:unset !important;
    -webkit-box-orient:unset !important;
}

@media (max-width:767px){
    body .woocommerce ul.products li.product .bupiz-card-brand,
    body .related.products ul.products li.product .bupiz-card-brand,
    body .bupiz-hot-deals-slider ul.products li.product .bupiz-card-brand{
        font-size:13px !important;
    }
    body .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body .related.products ul.products li.product .woocommerce-loop-product__title,
    body .bupiz-hot-deals-slider ul.products li.product .woocommerce-loop-product__title,
    body .bupiz-p8-product-rail .woocommerce-loop-product__title,
    body .bupiz-native-new-arrivals .woocommerce-loop-product__title,
    body .bupiz-native-wishlist-shell .woocommerce-loop-product__title{
        font-size:11.5px !important;
        margin-bottom:4px !important;
    }
    body .woocommerce ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body .bupiz-p8-product-rail ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body .bupiz-native-new-arrivals ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body .bupiz-native-wishlist-shell ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay,
    body .related.products ul.products li.product .bupiz-home-review-row.bupiz-card-rating--overlay{
        height:20px !important;
        min-height:20px !important;
        left:7px !important;
        padding:0 5px !important;
    }
    body .bupiz-card-rating--overlay .bupiz-card-rating__score,
    body .bupiz-card-rating--overlay .bupiz-card-rating__count,
    body .bupiz-card-rating--overlay .bupiz-home-review-count{
        font-size:10px !important;
    }
}
