﻿
:root {
    --colorMain: #808080;
    --colorHover: #aaaaaa;
    --colorAlert: #dc3545;
}


#shopDetailContainer {
    display: inline-block;
    margin-top: 50px;
}

#shopDetailSideContainer {
    display: none;
}

.detailShopProductContainer {
    grid-column: 2;
    position: relative;
}

.detailShopProduct {
    display: grid;
    grid-column-gap: 60px;
    grid-template-columns: 30% 70%;
}

#shopProductImageContainer {
    grid-column: 1;
}

#shopProductContentContainer {
    grid-column: 2;
    width: Calc(100% - 60px);
}

#shopProductImageContainer .productImage {
    margin: 0;
    width: Calc(100% / 2 - 10px);
    display: inline-block;
    padding: 0 2px 10px 0;
}

#shopProductImageContainer .productImage img {
    vertical-align: top;
    margin: 0;
    padding: 0;
}

#shopProductImageContainer .productImage:first-child {
    width: 100%;
    display: block;
    margin: 0 0 20px 0;
}

.detailShopProduct .shopProductProductNumber {
    font-weight: 700;
    margin-bottom: 15px;
    float: left;
    clear: both;
}

.detailShopProduct .shopProductTitle h1 {
    font-size: 28px;
}

.detailShopProduct .shopProductDocuments {
    margin: 0 0 25px 0;
}

.detailShopProduct .shopProductAttributes {
    margin: 0 0 25px 0;
}

.detailShopProduct .shopProductAttributes .control-label {
    font-weight: 700;
    margin-bottom: 5px;
}

.detailShopProduct .shopProductAttributes .productAttribute {
    margin-bottom: 15px;
}

.detailShopProduct .shopProductPriceContainer {
    margin-bottom: 20px;
}

.detailShopProduct .shopProductPrice {
    font-weight: 700;
    font-size: 22px;
    color: var(--colorMain);
}

.detailShopProduct .shopProductPriceDiscountPercent.circle {
    background-color: var(--colorAlert);
    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;
    z-index: 1;
}

#shopProductShipingInfoTitle:focus + #shopProductShipingInfoContentContainer {
    display: block;
    position: absolute;
    margin: 30px 0 0 0;

}

#shopProductShipingInfoContentCloseButton {
    outline: none;
    cursor: pointer;
    float: right;
    font-size: 23px;
}

.detailShopProduct .shopProductDescription {
    float: none;
    clear: both;
}

.detailShopProduct .shopProductFooterCartControlContainer {
    display: flex;
}

.detailShopProduct .shopProductFooterQuantityContainer {
    display: flex;
}

.detailShopProduct input.shopProductQuantityInputPlus,
.detailShopProduct input.shopProductQuantityInputMinus {
    width: 26px;
    height: 30px;
    text-align: center;
    background-color: var(--colorMain);
    border: none;
    color: #fff;
}

.detailShopProduct input:focus {
    outline: none;
}

.detailShopProduct input.shopProductQuantityInputPlus {
    border-radius: 0 4px 4px 0;
}

.detailShopProduct input.shopProductQuantityInputMinus {
    border-radius: 4px 0 0 4px;
}

    .detailShopProduct input.shopProductQuantityInputPlus:hover,
    .detailShopProduct input.shopProductQuantityInputMinus:hover {
        background-color: var(--colorHover);
        cursor: pointer;
    }

.detailShopProduct 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;
}

.detailShopProduct .shopProductAddToCartButton {
    background-color: var(--colorMain);
    color: #fff;
    border-radius: 4px;
    margin-left: 10px;
    height: 30px;
    padding: 0 5px 0 5px;
}

    .detailShopProduct .shopProductAddToCartButton:hover {
        cursor: pointer;
        background-color: var(--colorHover);
    }

.detailShopProduct .quantityInputValueNotNumeric {
    background-color: var(--colorAlert);
}

.detailShopProduct .shopProductAddToCartButton .fa-shopping-cart {
    color: #fff;
    font-size: 17px;
    margin: 7px 10px 0 4px;
}

.detailShopProduct .shopProductAddToCartButton:hover {
    cursor: pointer;
}

#shopProductBlockEditorContainer {
    margin-top: 100px;
}

#shopProductDetailRelatedProductsContainer {
    margin-top: 100px;
}

#shopDetailSearchContainer {
/*    grid-column: 2;
    position: relative;
    margin-bottom: 30px;*/
    display: none;
}

.scrolled #shopDetailSearchContainer {
    /*    position: sticky;
    top: 45px;
    padding-top: 40px;
    align-self: start;
    background-color: white;
    z-index: 80;
    padding-bottom: 20px;*/
    display: none;
}

#shopDetailSearchButton {
    position: absolute;
    right: 10px;
    top: 10px;
}

.scrolled #shopDetailSearchButton {
    top: 50px;
}

#shopDetailSearchInput {
    height: 40px;
}

@media screen and (max-width: 1279.9px) {
    .detailShopProduct .detailShopProduct {
        grid-column-gap: 30px;
    }
}


@media screen and (max-width: 1023.9px) {
    .detailShopProduct {
        display: block;
    }

    #shopProductImageContainer .productImage img {
        max-height: 250px;
    }

    #shopProductContentContainer {
        width: 100%;
    }
}

@media screen and (max-width: 767.9px) {

    #shopDetailContainer {
        display: block;
        margin-top: 100px;
    }

    #shopDetailSideContainer {
        display: none;
    }
}