﻿
:root {
    --colorMain: #AFCB08;
    --colorHover: #FDC300;
    --colorAlert: #dc3545;
    --colorBulRed: #e3000b;
}


.ModuleShopDetailPage #main {
    max-width: inherit;
    padding: 0;
}

.ModuleShopDetailPage #header + #main {
    margin: 120px auto 0 auto;
}

/* Ensure the .shopProduct container is using flexbox */
.shopProduct {
    display: flex; /* Use flexbox to place the children next to each other */
    width: 100%;
}

/* Both containers should take 50% of the width */
#shopProductImageContainer,
#shopProductContentContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%; /* Ensure each container takes up 50% of the width */
}

#shopProductImageContainer {
    justify-content: flex-end;
}

#shopProductContentContainer {
    justify-content: flex-start;
}

/* Optional: Background colors for visibility */
#shopProductImageContainer {
    background: linear-gradient(to right, #5B5B5B, #D1D1D1 40%, #D1D1D1 75%, #5B5B5B);
}

[data-productgroup="imagenottransparent"] #shopProductImageContainer {
    background: none;
}

#shopProductContentContainer {
    background: url('../../layout/images/Melamine-wood-001.png') 0 0 repeat;
}

[data-productgroup="imagenottransparent"] #shopProductContentContainer {
    background: none;
}


/* Center the #shopProductContentWrapper itself inside the container */
#shopProductContentWrapper {
    width: 100%; /* Ensure it takes full width of the parent */
    height: 100%; /* Ensure it takes full height of the parent */
    max-width: 900px;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 70px;
}

#shopProductImageWrapper {
    width: 75%;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-right: 70px;
}

/* Ensure the image scales properly */
#shopProductImageContainer .productImage img {
    vertical-align: top;
    margin: 0;
    padding: 0;
    width: 100%; /* Make the image take up all available width */
    height: 100%; /* Ensure the image takes full height of the container */
    object-fit: contain; /* Ensure image scales correctly without distortion */
}

.shopProductProductNumber {
    font-weight: 700;
    margin-bottom: 15px;
    float: left;
}

.shopProductDocuments {
    margin: 0 0 25px 0;
}

.shopProductAttributes {
    margin: 0 0 25px 0;
}

.shopProductAttributes .control-label {
    font-weight: 700;
    margin-bottom: 5px;
}

.shopProductAttributes .productAttribute,
.shopProductRadiobuttonAttributes {
    margin-bottom: 15px;
}

.shopProductPriceContainer {
    margin-bottom: 20px;
    clear: both;
    text-align: right;
}

[data-hasattributes="false"] .shopProductPriceContainer {
    text-align: left;
}

.shopProductPrice {
    font-weight: 700;
    font-size: 22px;
    color: var(--colorMain);
}

.shopProductPriceDiscountPercent.circle {
    background-color: var(--colorBulRed);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 7px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    line-height: 38px;
    text-shadow: 1px 1px #4c4c4c;
    border: 1px solid #fff;
}

#shopProductShipingInfoTitle {
    color: var(--colorMain);
    float: right;
    outline: none;
    cursor: pointer;
}

#shopProductShipingInfoContentContainer {
    display: none;
    float: none;
    clear: both;
    background-color: #FBFCF7;
    border: 1px solid var(--colorMain);
    border-radius: 5px;
    padding: 10px 10px 5px 10px;
    box-shadow: 5px 5px 5px #ccc;
}

#shopProductShipingInfoTitle:focus + #shopProductShipingInfoContentContainer {
    display: block;
    position: absolute;
    margin: 30px 0 0 0;
}

#shopProductShipingInfoContentCloseButton {
    outline: none;
    cursor: pointer;
    float: right;
    font-size: 23px;
}

.shopProductDescription {
    float: none;
    clear: both;
}

.shopProductFooterCartControlContainer {
    display: flex;
}

.shopProductFooterQuantityContainer {
    display: flex;
}

.shopProductContainer input.shopProductQuantityInputPlus,
.shopProductContainer input.shopProductQuantityInputMinus {
    width: 26px;
    height: 30px;
    text-align: center;
    background-color: var(--colorMain);
    border: none;
    color: #fff;
}

.shopProductContainer input:focus {
    outline: none;
}

.shopProductContainer input.shopProductQuantityInputPlus {
    border-radius: 0 4px 4px 0;
}

.shopProductContainer input.shopProductQuantityInputMinus {
    border-radius: 4px 0 0 4px;
}

.shopProductContainer input.shopProductQuantityInputPlus:hover,
.shopProductContainer input.shopProductQuantityInputMinus:hover {
    background-color: var(--colorHover);
    cursor: pointer;
}

.shopProductContainer input.shopProductQuantityInput {
    width: 30px;
    height: 30px;
    text-align: right;
    border: 0;
    border-top: 1px solid var(--colorMain);
    border-bottom: 1px solid var(--colorMain);
    border-radius: 0;
    vertical-align: top;
    font-size: 12px;
    margin: 0;
    padding: 0 5px 0 0;
}

.shopProductAddToCartButton {
    background-color: var(--colorMain);
    color: #fff;
    border-radius: 4px;
    margin-left: 10px;
    height: 30px;
    padding: 0 5px 0 5px;
}

.shopProductAddToCartButton:hover {
    cursor: pointer;
    background-color: var(--colorHover);
}

.quantityInputValueNotNumeric {
    background-color: var(--colorAlert);
}

.shopProductAddToCartButton .fa-shopping-cart {
    color: #fff;
    font-size: 17px;
    margin: 7px 10px 0 4px;
}

.shopProductAddToCartButton:hover {
    cursor: pointer;
}

#shopProductSelectedAttributeSummaryContainer {
    padding-top: 5px;
    padding-bottom: 3px;
    overflow: hidden;
    border-top: 1px solid #BFBFBF;
    font-size: 16px;
}


#shopProductBlockEditorContainer {
    margin-top: 50px;
}

@media screen and (max-width: 1920px) {

    #shopProductContentWrapper {
        padding-left: 0;
    }

    #shopProductImageWrapper {
        padding-right: 0;
    }

    #shopProductImageContainer {
        justify-content: center;
    }

    #shopProductContentContainer {
        justify-content: center;
        padding-left: 90px;
        padding-right: 90px;
    }

    #shopProductImageWrapper {
        width: 90%;
    }

    #shopProductImageContainer {
        background: linear-gradient(to right, #5B5B5B, #D1D1D1 40%, #D1D1D1 60%, #5B5B5B);
    }
}

@media screen and (max-width: 1600px) {

    #shopProductContentContainer {

        padding-left: 60px;
        padding-right: 60px;
    }

    #shopProductImageWrapper {
        width: 95%;
    }
}

@media screen and (max-width: 1366px) {

    #shopProductContentContainer {
        padding-left: 40px;
        padding-right: 40px;
    }

}

@media screen and (max-width: 1280px) {

    #shopProductContentContainer {
        padding-left: 30px;
        padding-right: 30px;
    }
}


@media screen and (max-width: 1023.9px) {

    .ModuleShopDetailPage #header + #main {
        margin: 95px auto 0 auto;
    }

    .shopProduct {
        display: block;
    }

    #shopProductImageContainer, #shopProductContentContainer {
        width: 100%;
    }
}

@media screen and (max-width: 767.9px) {

    .ModuleShopDetailPage #header + #main {
        margin: 70px auto 0 auto;
    }
}

@media screen and (max-width: 600px) {

    #shopProductContentContainer {
        padding-left: 20px;
        padding-right: 20px;
    }
}


