.comments-item-rating {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-item-rating li {
    margin-bottom: 20px;
}

.cell-title {
    display: inline-block;
    width: 70%;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.cell-value {
    display: inline-block;
    width: 50%;
    text-align: left;
    color: #333;
    font-weight: 500;
}

.rating-general {
    width: 100%;
    height: 6px;
    background-color: #ddd;
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.rating-value {
    height: 100%;
    background-color: #7c3aed; /* رنگ بنفش */
    border-radius: 4px;
}

/*///////////////////////////////////////*/
.star {
    position: relative;
}

.star::before {
    content: '\2605'; /* Unicode برای ستاره پر */
    font-size: 2rem;
    color: #ccc; /* رنگ پیش‌فرض خاکی */
    text-align: center;
    line-height: 2rem;
}

.star-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 0;
}

.star.bg-yellow-400::before {
    color: #fbbf24; /* رنگ طلایی برای ستاره‌های انتخاب‌شده */
}

.star:hover::before {
    color: #fbbf24; /* رنگ طلایی در هنگام hover */
}

.text-yellow-400 {
    color: #FFD700;
}

/*///////////////////////////////////*/
.mobile-cart-container {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 20;
    background-color: #ffffff;
    padding: 10px;
    transition: all 0.3s ease-in-out;
    display: block;
    /* تغییر اضافه‌شده */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}


@media (min-width: 1024px) {
    .mobile-cart-container {
        display: none;
    }
}

.mobile-cart-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-cart-info {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem; /* text-sm */
}

.stock-warning {
    color: #ef4444; /* text-red-500 */
    font-weight: bold;
}

.price-details {
    display: flex;
    flex-direction: column; /* تغییر مهم: از row به column */
    gap: 0.25rem;
    margin-top: 0.25rem;
    align-items: flex-start; /* برای تراز مناسب به چپ */
}


.old-price {
    text-decoration: line-through;
    color: #f87171; /* text-red-400 */
    font-size: 0.90rem;
}

.old-price-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discount-badge {
    background-color: red; /* زرد – مثل badge */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
}

.text-sm-product {
    font-size:1.2rem;
}

.discounted-price {
    color: #16a34a; /* text-green-600 */
    font-weight: bold;
    font-size: 1rem;
}

.rell-price-product {
    color: #16a34a; /* text-green-600 */
    font-weight: bold;
    font-size: 1.1rem;
}

.stock-info {
    display: block;
    color: #dc2626; /* قرمز (text-red-600) */
    font-weight: normal;
    font-size: 0.875rem;
    margin-bottom: 5px;
    margin-right: 5px;
}


.add-to-cart-btn {
    display: flex; /* برای چیدمان افقی آیکون و متن */
    align-items: center; /* تراز عمودی */
    gap: 0.5rem; /* فاصله بین آیکون و متن */
    background-color: #3b82f6; /* bg-blue-500 */
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 0.3rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #2563eb; /* bg-blue-600 */
}

.space-y-4 {
    overflow-y: auto; /* برای اسکرول عمودی */
    max-height: 500px; /* محدود کردن ارتفاع برای نمایش اسکرول */
}

.green-to {
    color: #16a34a;
}

.box-shadow {
    box-shadow:
        0 -4px 12px rgba(0, 0, 0, 0.08), /* سایه بالا */
        0 4px 12px rgba(0, 0, 0, 0.08);  /* سایه پایین */
}

/*//////////////////////////////////////////////////*/
.star-rating {
    font-family: Arial, sans-serif;
    letter-spacing: 0; /* حذف فاصله اضافی */
    user-select: none;
    position: relative;
    display: inline-block;
    color: #ddd;
    font-size: 1.5rem;
    line-height: 1;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #facc15;
    pointer-events: none;
    transition: width 0.3s ease;
}

.heart-active {
    color: red;
    stroke: red;
    fill: red;
}


