#ProductCont {
    position: relative;
    display: flex;
    flex-direction: row;
    /* border: 1px solid pink; */
}

#ProductImagesFlex {
    display: flex;
    flex-direction: column;
    position: relative;
    flex-basis: 60%;
    border: 1px solid #F2F2F2;
    margin-bottom: 20px;
    max-width: 50%;
}

#ProductMainPicCont {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 450px;
    /* background-color: gray; */
}

#MainImage {
    margin: auto;
    max-width: 100%;
    max-height: 450px;
    /* border: 1px solid green; */
}

#ProductPicSelectCont {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    background-color: #F2F2F2;
    justify-content: center;
    padding: 8px;
    flex-wrap: wrap;
    /* overflow: hidden; */
}

.THB_CONT {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    background-color: white;
    margin: 3px;
    border: 3px solid transparent;
    max-width: 80px;
    max-height: 80px;
    height: 80px;
    flex-shrink: 1;
    flex-grow: 1;
}

.THB_CONT_SEL {
    border: 3px solid #860909 !important;
}

.THB_PIC {
    margin: auto;
    display: block;
    /* max-width: 80px;
    max-height: 80px; */
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

.THB_CONT_SEL::before {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: transparent;
    border-bottom-color: #860909;
}

#ProductInfoCont {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1 1 auto;
    padding: 20px;
}

#ProductNameCont {
    margin: 4px 0 0;
}

#PNAME_LAB {
    font-size: 36px;
    color: #860909;
}

#ProductCodeCont {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    justify-content: space-between;
}

#ProductCodeCont>div>span {
    margin: 0 5px;
}

#ProductStatusCont {
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#ProductStatusCont>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#ProductOfferCont {
    display: flex;
    flex-direction: row;
    align-content: space-between;
    margin: 40px 0 0;
    padding: 0 15px;
    min-height: 80px;
    border-top: 1px solid #eee;
    background-color: #eee;
    justify-content: space-between;
}

#PSTOCK_LAB {
    font-weight: bold;
    font-size: 22px;
}

#ProductAddCont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: auto;
}

#ProductAddCont>div {
    margin: 2px;
}

#QtyBox {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#QtyBox>input {
    /* line-height: 20px; */
    font-size: 18px;
    width: 100px;
    text-align: center;
    border: none;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
    margin: 0;
}

#QtyButtons {
    display: flex;
    flex-direction: column;
    margin-right: 5px;
    position: relative;
}

#QtyButtons>label {
    display: block;
}

#QtyButtons button {
    padding: 0;
    border: 1px solid #eee;
    width: 20px;
    height: 20px;
    background-color: white;
    cursor: pointer;
}

#QtyButtons button:hover {
    background-color: #eee;
}

#qtylab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    background-color: #454340;
    color: white;
    padding: 10px;
    margin-right: 5px;
}

#ProductAddButtonsCont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* margin-right: 5px; */
}

#ProductAddButtonsCont > input,
#ProductAddButtonsCont > button {
    padding: 5px 10px;
    flex: 1 1 auto;
    font-size: 18px;
}

#PricesPanel {
    display: flex;
    position: relative;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 10px;
}

.PriceCont {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
    flex: 1 1 auto;
}

#SalePriceDiv {
    display: flex;
    flex-direction: column;
}

div.PriceCont span.CurText {
    margin-left: 5px;
}

#CurSymbol_Lab:not(.oldprice),
#REGPRICE_LAB:not(.oldprice),
div.PriceCont span.sale_text,
div.PriceCont span.CurText {
    font-size: 28px;
}

#CurIconCont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 10px;
}

#ProductOfferNotes {
    font-size: 12px;
    margin-top: 2px;
}

#TagsCont {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 20px 0;
    padding: 10px 0;
    flex-wrap: wrap;
}

#ProductScaleIcon {
    width: 100px;
    position: absolute;
    bottom: 0;
    right: 0;
}

@media (max-width: 990px) {
    #QtyBox>input {
        -moz-appearance: unset;
        -webkit-appearance: unset;
        appearance: unset;
    }
}

@media (max-width: 768px) {
    #ProductImagesFlex {
        max-width: unset;
    }
    #ProductCont {
        flex-direction: column-reverse;
    }
    #ProductScaleIcon {
        bottom: unset;
        right: unset;
        top: 0;
        left: 0;
    }
    #ProductOfferCont {
        flex-wrap: wrap;
        padding: 10px;
    }
    #ProductAddCont {
        flex-wrap: wrap;
    }
}