.product-info {
    display: flex;
    height: calc(100dvh - (128px + 64px));
}

.product-img-rate {
    width: 300px;
    flex-shrink: 0;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img img {
    width: 90%;
    margin: auto;
}

.product-info .text {
    overflow-y: auto;
    flex-grow: 1;
    padding: 16px;
    border-left: 1px solid var(--border-cl);
    border-right: 1px solid var(--border-cl);
}

.product-info .text::-webkit-scrollbar {
    display: none;
}

.product-info .name {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
}

.product-info .about,
.product-info p {
    max-width: 600px;
    color: #777;
}

.product-info .price {
    color: var(--white);
}

.product-info .price .value {
    font-size: 32px;
    font-weight: 700;
}

.description {
    width: 100%;
    direction: rtl;
    margin: auto;
}

.description table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
    font-size: 14px;
    color: #1f2937;
    margin-top: 16px;
    border: 1px solid var(--border-cl);
}

.description table tr:nth-child(odd) {
    background-color: var(--background-secondary);
}

.description table tr:nth-child(even) {
    background-color: var(--background-primary);
}

.description table td {
    padding: 14px 18px;
    border: none;
    vertical-align: middle;
    line-height: 1.5;
}

.description table td:first-child {
    width: 25%;
    color: var(--main-cl);
    text-align: right;
    white-space: nowrap;
}

.description table td:last-child {
    width: 75%;
    color: #777;
    text-align: right;
}

.product-info .rate {
    width: 100%;
    fill: orange;
    stroke: orange;
    color: var(--white);
}

.stars-progress {
    position: relative;
    width: 140px;
    height: 24px;
    margin-bottom: 16px;
}

.stars-empty,
.stars-filled {
    position: absolute;
    top: 0;
    right: 0;
    height: 32px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    white-space: nowrap;
}

.stars-empty {
    width: 160px;
    color: orange;
}

.stars-empty svg {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    fill: transparent;
    stroke: orange;
    stroke-width: 1;
}

.stars-filled {
    z-index: 2;
}

.stars-filled svg {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    fill: orange;
    stroke: orange;
    stroke-width: 1;
}

.product-info .rate .value {
    font-size: 48px;
    font-weight: 700;
}

.percentages>div {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
}

.percentages>div .percentage-cnt {
    height: 12px;
    border-radius: 6px;
    width: 100%;
    background-color: var(--background-secondary);
    flex-grow: 1;
    margin-inline: 8px;
}

.percentages>div .percentage {
    height: 100%;
    border-radius: 6px;
    background-color: orange;
}

.comments-cnt {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 16px;
    gap: 8px;
}

.comments {
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    border-radius: 16px;
}

.comments::-webkit-scrollbar {
    display: none;
}


.comments ul {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.comments ul li {
    width: 100%;
}

.comments,
.post-comment {
    width: 100%;
    padding: 16px;
    background-color: var(--background-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-cl);
}

.comments .comment {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-cl);
}

.comments .comment .comment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments .comment .comment-info .user-name {
    color: var(--main-cl);
    font-weight: 700;
}

.comments .comment .comment-info .time {
    font-size: 12px;
    color: #777;
}

.comments .comment .value {
    color: var(--white);
}

.post-comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-comment textarea {
    height: 80px;
    background-color: var(--background-secondary);
    border: 1px solid var(--border-cl);
    width: 100%;
    resize: none;
    border-radius: 8px;
    outline: none;
    color: var(--white);
    font-family: sans-serif;
    padding: 4px;
}

.post-comment button {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    background-color: var(--main-cl);
    font-size: 18px;
    font-weight: 700;
}

.post-comment .stars-cnt {
    display: flex;
    justify-content: flex-end;
    direction: ltr;

}

.post-comment .stars-cnt .rating-radio {
    display: none;
}

.post-comment .stars-cnt label svg {
    fill: transparent;
    stroke: orange;
}

.post-comment .stars-cnt label:hover svg,
.post-comment .stars-cnt label:hover~label svg {
    fill: orange;
}

.post-comment .stars-cnt .rating-radio:checked+label svg,
.post-comment .stars-cnt .rating-radio:checked~label svg {
    fill: orange;
}

h2 {
    color: var(--white);
    margin-top: 32px;
}

.order-cnt {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px;
    border-radius: 32px;
    background-color: var(--background-secondary);
    border: 2px solid var(--border-cl);
    box-shadow: 0px 15px 16px var(--shadow-cl);
}

.order-cnt form {
    display: flex;
    gap: 64px;
    justify-content: space-between;
}

.order-cnt .quantity {
    height: 48px;
    border: 2px solid var(--border-cl);
    width: fit-content;
    display: flex;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
}

.order-cnt #quantity {
    width: 64px;
    height: 32px;
    background-color: var(--background-secondary);
    outline: none;
    color: var(--white);
    text-align: center;
    font-size: 18px;
    direction: ltr;
}

.order-cnt .add-btn,
.order-cnt .remove-btn {
    background-color: transparent;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    stroke: var(--white);
}

.order-cnt .add-btn svg,
.order-cnt .remove-btn svg {
    width: 50%;
    height: 50%;
}

.order-cnt .add-btn {
    border-left: 2px solid var(--border-cl);
}

.order-cnt .remove-btn {
    border-right: 2px solid var(--border-cl);
}

.order-cnt button[type="submit"] {
    height: 48px;
    border-radius: 24px;
    flex-shrink: 0;
    padding-inline: 32px;
    font-weight: 700;
    background-color: var(--main-cl);
}

@media(max-width: 800px) {
    .product-info {
        flex-direction: column;
        height: fit-content;
    }

    .product-img {
        width: 60%;
        margin: auto;
    }

    .product-img-rate {
        width: 100%;
        padding: 0;
    }

    .product-info .text {
        padding: 0;
        border: none;
    }

    .comments-cnt {
        width: 100%;
        padding: 0;
    }

    .comments {
        border: none;
    }

    .comments ul {
        padding: 0;
    }

    .order-cnt {
        width: calc(100% - 32px);
    }
}