
/** PRODUCT DETAIL **/

#detail {
    display: flex;
    gap: 4rem;
    max-width: unset;
}

/** PRODUCT RATING **/

/** Product rating: reviews **/

#rating {
    margin-top: 6rem;
}

#rating .break {
    background-image: url(../../svg/borde_ondulado_b.svg);
    background-position-x: center;
    background-repeat: repeat-x;
    background-size: 10rem;
    height: 3rem;
    margin-bottom: 3rem;
}

#rating .reviews > h4 {
    font-size: 3rem;
}

#rating .reviews > section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 70rem;
}

#rating .reviews > section > .no_reviews {
    color: #A9A9A9;
}

#rating .reviews > section > article {
    display: flex;
}

#rating .reviews > section .user_icon {
    display: none;
    background-image: url("../../svg/rating_profile.svg");
    flex-shrink: 0;
    margin-right: 1rem;
    width: 3.8rem;
}

#rating .reviews > section .user_name, #rating .reviews > section .user_rating {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#rating .reviews > section .user_message {
    line-height: 1.8rem;
    text-align: justify;
}

#rating .reviews hr {
    border-top: 1px dashed #E9E9E9;
    margin: 3rem 0;
}

/** Product rating: user rating **/

#rating .form {
    max-width: 70rem;
}

#rating .form > .first {
    font-weight: bold;
    margin-bottom: 1rem;
}

#rating .form > .note {
    margin-bottom:3rem;
}

#rating .form > .rating_label {
    color: #A9A9A9;
}

#rating .form .rating {
    display: flex;
    margin-top: 1rem;
}

#rating .form .rating > div {
    background-image: url("../../svg/rating_f.svg");
    background-position: center;
    background-size: 100%;
    border-right: 0.5rem solid transparent;
    height: 2.9rem;
    width: 2.9rem;
}

#rating .form .rating > .rt_true {
    background-image: url("../../svg/rating_t.svg");
}

#rating .form .rating_value {
    margin-bottom: 3rem;
    -moz-appearance: textfield;
    opacity: 0;
    height: 1px;
    width: 14.5rem;
}

#rating .form .rating_value::-webkit-inner-spin-button,
#rating .form .rating_value::-webkit-outer-spin-button {
    -webkit-appearance: none;
    opacity: 0;
    margin: 0;
}

#rating .form > input[type=submit] {
    border-radius: 2.5rem;
    font-size: 1.6rem;
    line-height: 3rem;
    margin: 2.5rem auto 1rem auto;
}

/** PRODUCT RELATED **/

#related {
    border-top: 1px dashed #E9E9E9;
    margin-top: 3rem;
    padding-top: 3rem;
}

#related h4 {
    font-size: 3rem;
    margin-bottom: 4rem;
}

#related .product_items > article {
    flex-shrink: 0;
    margin-bottom: 2rem;
    width: 22.375%;
}

/** RESPONSIVE **/

@media (max-width: 1250px) {

    body > main .max_width {
        max-width: none;
    }

    body > main .container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 850px) {
 
    body > main .container {
        padding: 2.5rem 2rem 4rem 2rem;
    }

    #detail {
        flex-direction: column;
    }

    #related .product_items > article {
        width: 48%;
    }
}

@media (max-width: 550px) {

    #related .product_items > article {
        width: 100%;
    }
}