/* Trust Badges for Product Reviews */
.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.trust-badge i {
    margin-right: 4px;
    font-size: 14px;
}

/* Medical Grade - Highest tier */
.trust-badge.verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.trust-badge.verified:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Professional Choice */
.trust-badge.professional {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.trust-badge.professional:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* Clinical Tested */
.trust-badge.clinical {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.trust-badge.clinical:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

/* Quality Assured - Standard tier */
.trust-badge.standard {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.trust-badge.standard:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* RTL Support for badges */
body[dir='rtl'] .trust-badge {
    margin-left: 0;
    margin-right: 8px;
}

body[dir='rtl'] .trust-badge i {
    margin-right: 0;
    margin-left: 4px;
}

/* Enhanced rating display */
.rating_wrap {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating_wrap a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.rating_wrap a:hover {
    opacity: 0.8;
}

.rating_wrap .rating {
    position: relative;
    display: inline-block;
    height: 20px;
    width: 100px;
    margin-right: 8px;
}

.rating_wrap .rating:before {
    content: "★★★★★";
    color: #e5e7eb;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating_wrap .product_rate {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    color: #fbbf24;
}

.rating_wrap .product_rate:before {
    content: "★★★★★";
    font-size: 16px;
    letter-spacing: 2px;
}

.rating_wrap .rating_num {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* RTL Support for rating */
body[dir='rtl'] .rating_wrap .rating {
    margin-right: 0;
    margin-left: 8px;
}

body[dir='rtl'] .rating_wrap .product_rate {
    left: auto;
    right: 0;
}
