/* Rewaa Phase 1: product card discount and genuine-review presentation only. */
.product-card .product-badges {
    top: 10px;
    right: auto;
    left: auto;
    inset-inline-start: 10px;
    inset-inline-end: auto;
    z-index: 3;
    gap: 6px;
    max-width: calc(100% - 20px);
    pointer-events: none;
}

.product-card .product-badges .badge.danger {
    min-height: 23px;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: linear-gradient(135deg, #b91f2b, #d9343f);
    box-shadow: 0 4px 12px rgba(135, 22, 34, .2);
    font-size: 9.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.product-card .rating-row {
    min-width: 0;
    min-height: 16px;
    gap: 5px;
}

.product-card .product-card-rating-stars {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 1px;
    direction: ltr;
    line-height: 1;
}

.product-card .product-card-rating-star {
    position: relative;
    display: inline-block;
    color: #d7dfe9;
    font-size: 12px;
    line-height: 1;
}

.product-card .product-card-rating-star::before {
    content: "★";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--rating-fill, 0%);
    overflow: hidden;
    color: #f1b53b;
    white-space: nowrap;
}

.product-card .product-rating-average {
    flex: 0 0 auto;
    color: var(--ink-700);
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.product-card .product-rating-count {
    color: var(--ink-400);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.product-card .product-rating-empty {
    color: var(--ink-400);
    font-size: 9px;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .product-card .product-badges {
        top: 8px;
        inset-inline-start: 8px;
        max-width: calc(100% - 16px);
    }

    .product-card .product-badges .badge.danger {
        min-height: 21px;
        padding: 5px 7px;
        font-size: 9px;
    }
}
