$background-color: #252422;
$main-color: #CCC5B9;
$accent-color: #EB5E28;

.product-page {
    width: 96%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    
    .product-page__main-section {
        gap: 30px;
        min-height: 500px;
        display: flex;
        justify-content: space-between;

        .product-page__img {
            max-height: 500px;
            border-radius: 15px;
        }

        .product-page__info-div {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;

            .product-page__text-span {
                display: flex;
                flex-direction: column;
                
                .product-page__heading-h2 {
                    color: white;
                    font-size: 32px;
                    font-weight: 600;
                    line-height: 39px;
                    letter-spacing: 0px;
                }
    
                .product-page__short-desc-div {
                    color: $main-color;
                    font-size: 24px;
                    font-weight: 400;
                    line-height: 29px;
                    letter-spacing: 0px;
                    width: 100%;
                }
            }

            .product-page__container-div {
                width: 100%;
                height: 140px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: flex-end;

                .product-page__share-button {
                    width: 40px;
                    height: 40px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    box-sizing: border-box;
                    border: 2px solid $main-color;
                    border-radius: 12px;
                }

                .product-page__price-buy-div {
                    width: 100%;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    height: 80px;
                    
                    .product-page__price-span {
                        color: $accent-color;
                        font-size: 40px;
                        font-weight: 600;
                        line-height: 49px;
                        letter-spacing: 0px;
                    }

                    .product-page__buy-link {
                        width: 400px;
                        height: 100%;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        padding: 20px;
                        box-sizing: border-box;
                        border-radius: 15px;
                        background: $accent-color;
                        color: white;
                        font-size: 32px;
                        font-weight: 600;
                        line-height: 39px;
                        letter-spacing: 0px;
                    }
                }
            }
        }
    }

    .product-page__info-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 40px;

        .product-page__desc {
            color: $main-color;
            font-size: 20px;
            font-weight: 400;
            line-height: 24px;
            letter-spacing: 0px;
            text-align: left;
        }

        .product-page__tags-ul {
            display: flex;
            gap: 20px;

            .product-page__tag-li {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 10px 20px 10px 20px;
                border-radius: 50px;
                background-color: $main-color;
                color: black;
                font-size: 24px;
                font-weight: 600;
                line-height: 29px;
                letter-spacing: 0px;
                text-align: left;
            }
        }
    }

    .product-page__reviews-section {
        width: 100%;
        display: flex;
        flex-direction: column;

        .reviews-section__rate-block {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 48px;
            width: 310px;
            
            .rate-block__rating {
                display: flex;
                align-items: center;
                gap: 20px;
                
                .rate-block__rate-number {
                    color: white;
                    font-size: 36px;
                    font-weight: 600;
                    line-height: 44px;
                    letter-spacing: 0px;
                    text-align: left;
                }
    
                .rate-block__star-rating {
                    display: flex;
                    justify-content: flex-end;
                    align-items: center;
                    color: #ccc;
                    position: relative;
                    unicode-bidi: bidi-override;
                    direction: rtl;
                    font-size: 36px;
                    
                    .star-rating__back-stars {
                        display: flex;
                        flex-direction: row-reverse;
                        position: relative;
                        z-index: 0;
                        
                        span {
                            height: 100%px;
                        }
    
                        .star-rating__front-stars {
                            display: flex;
                            position: absolute;
                            flex-direction: row-reverse;
                            top: 0;
                            overflow: hidden;
                            z-index: 1;
                            color: #FFB800;

                            span {
                                height: 100%px;
                            }
                        }
                    }
                }
            }

            .rate-block__progressbars-group {
                display: flex;
                flex-direction: column;
                gap: 10px;
                width: 100%;
                color: white;
                font-size: 20px;
                font-weight: 400;
                line-height: 24px;
                letter-spacing: 0px;
                text-align: left;

                .progressbars-group__progressbar-container {
                    display: flex;
                    gap: 10px;
                    align-items: center;
                    
                    .rate-progressbar__rate-number {
                        width: 16px;
                    }
                    
                    .progressbar-container__progressbar {
                        height: 12px;
                        width: 100%;
                        border-radius: 15px;
                        background: $main-color;
                        position: relative;
                        
                        .progressbar__active-line {
                            width: 50%;
                            border-radius: 15px;
                            position: absolute;
                            top: 0;
                            left: 0;
                            height: 100%;
                            background-color: #FFB800;
                        }
                    }
                }
            }
        }

        .product-page__review-form {
            display: flex;
            flex-direction: column;
            margin-top: 48px;
            gap: 20px;

            .review-form__heading {
                color: white;
                font-size: 26px;
                font-weight: 500;
                letter-spacing: 0px;
                text-align: left;
            }

            .review-form__stars-container {
                position: relative;
                width: 150px;
                height: 30px;
                background-image: url(assets/icons/rating__star-icon.svg);
                background-size: 30px auto;
                background-repeat: repeat-x;

                .review-form__star-radio {
                    appearance: none;
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 30px;
                }

                .review-form__star-radio:checked, .review-form__star-radio:hover {
                    background-image: url(assets/icons/rating__filled-star-icon.svg);
                    background-size: 30px auto;
                    background-repeat: repeat-x;
                }

                .review-form__star-radio:hover ~ .review-form__star-radio {
                    background-image: url(assets/icons/rating__star-icon.svg);
                    background-size: 30px auto;
                    background-repeat: repeat-x;
                }

                .review-form__star-radio:nth-of-type(1) {
                    z-index: 5;
                    width: 30px;
                }
                .review-form__star-radio:nth-of-type(2) {
                    z-index: 4;
                    width: 60px;
                }
                .review-form__star-radio:nth-of-type(3) {
                    z-index: 3;
                    width: 90px;
                }
                .review-form__star-radio:nth-of-type(4) {
                    z-index: 2;
                    width: 120px;
                }
                .review-form__star-radio:nth-of-type(5) {
                    z-index: 1;
                    width: 150px;
                }
            }

            .review-form__textarea {
                width: 100%;
                border: 2px solid $main-color;
                border-radius: 15px;
                color: white;
                padding: 10px;
                font-size: 24px;
            }

            .review-form__image-container {
                width: 100%;
                display: flex;
                gap: 20px;
                
                .review-form__image-attach {
                    width: 34px;
    
                    img {
                        width: 100%;
                    }
                }
    
                .review-form__image-input {
                    display: none;
                }

                .review-form__image-name {
                    color: black;
                    font-size: 16px;
                    background-color: $main-color;
                    border-radius: 50px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-weight: 500;
                    padding: 10px 20px;
                }
            }

            .review-form__send-button {
                padding: 20px;
                border-radius: 15px;
                background-color: $accent-color;
                font-size: 20px;
                color: white;
                font-weight: 500;
                letter-spacing: 0px;
            }
        }

        .product-page__reviews-container {
            display: flex;
            flex-direction: column;
            margin-top: 50px;
            margin-bottom: 30px;
            gap: 50px;
        }
    }

    .product-page__block-heading {
        color: white;
        font-size: 32px;
        font-weight: 500;
        line-height: 39px;
        letter-spacing: 0px;
        text-align: left;
    }
}