/* Detail page layout */


.ModuleShopDetailPage #header + #main {
    margin-top: 0;
}

#shopDetailContainer {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    width: 100%;
}

#shopDetailSideContainer {
    grid-column: 1;
    min-width: 0;
    position: sticky;
    top: 125px;
    align-self: start;
    max-height: calc(100vh - 145px);
    overflow-y: auto;
    padding-right: 4px;
}

.detailShopProductContainer {
    grid-column: 2;
    min-width: 0;
}

/* Product layout */

.detailShopProduct {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 54px;
    width: 100%;
    align-items: start;
}

#shopProductImageContainer,
#shopProductContentContainer {
    min-width: 0;
}

#shopProductImageContainer {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#shopProductContentContainer {
    display: block;
}

[data-productgroup="imagenottransparent"] #shopProductContentContainer {
    background: none;
}

/* Product image */

#shopProductImageWrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ECECEC;
    border-radius: 8px;
    background-color: #FAFAFA;
}

    #shopProductImageWrapper[data-imageslider="False"] {
        padding: 24px;
    }

    #shopProductImageWrapper[data-imageslider="True"] {
        padding: 0;
    }

    #shopProductImageWrapper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    #shopProductImageWrapper .productImage {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    #shopProductImageWrapper[data-imageslider="True"] .productImage {
        padding: 24px;
    }

    #shopProductImageWrapper .productImage a {
        display: block;
    }

#shopProductImageContainer .productImage img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: 650px;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
}

/* Slider controls */

#shopProductImageWrapper .swiper-button-prev,
#shopProductImageWrapper .swiper-button-next {
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border: 1px solid #E2E2E2;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--CSSColor);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

#shopProductImageWrapper .swiper-button-prev::after,
#shopProductImageWrapper .swiper-button-next::after {
    font-size: 15px;
    font-weight: 700;
}

#shopProductImageWrapper .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: -4px;
    padding: 0 0 14px 0;
}

#shopProductImageWrapper .swiper-pagination-bullet {
    background-color: #BDBDBD;
    opacity: 1;
}

#shopProductImageWrapper .swiper-pagination-bullet-active {
    background-color: var(--ButtonBackgroundColor);
}

/* Product content */

#shopProductContentWrapper {
    width: 100%;
    max-width: 620px;
}

#shopProductContentWrapper .shopProductTitle h1 {
    margin: 0 0 12px 0;
    color: var(--CSSColor);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
}

.shopProductProductNumber,
.shopProductProductNumber2 {
    margin-bottom: 18px;
    color: var(--MutedColor);
    font-size: 14px;
    font-weight: 400;
}

.shopProductDescription {
    clear: both;
    margin-bottom: 28px;
    color: #454545;
    font-size: 14px;
    line-height: 1.6;
}

.shopProductDescription p {
    padding-bottom: 14px;
}

.shopProductDescription p:last-child {
    padding-bottom: 0;
}

/* Documents */

.shopProductDocuments {
    margin: 0 0 28px 0;
}

.shopProductDocuments a {
    text-decoration: underline;
    text-decoration-color: #CFCFCF;
    text-underline-offset: 3px;
}

.shopProductDocuments a:hover {
    text-decoration-color: var(--CSSColor);
}

/* Product attributes */

.shopProductAttributes {
    margin: 0 0 28px 0;
    padding: 22px;
    border: 1px solid var(--BorderColor);
    border-radius: 8px;
    background-color: #FAFAFA;
}

.shopProductAttributeContainer {
    margin-bottom: 18px;
}

.shopProductAttributeContainer:last-child {
    margin-bottom: 0;
}

.shopProductAttributes .control-label {
    display: block;
    margin-bottom: 7px;
    color: var(--CSSColor);
    font-size: 14px;
    font-weight: 700;
}

.shopProductAttributes .productAttribute,
.shopProductAttributes .productAttributeTextField,
.shopProductRadiobuttonAttributes {
    margin-bottom: 0;
}

.shopProductAttributes select.form-control,
.shopProductAttributes input.form-control,
.shopProductAttributes textarea.form-control {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #D8D8D8;
    border-radius: 5px;
    background-color: #fff;
    color: var(--CSSColor);
    box-shadow: none;
}

.shopProductAttributes select.form-control:focus,
.shopProductAttributes input.form-control:focus,
.shopProductAttributes textarea.form-control:focus {
    border-color: #777;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.shopProductAttributeTextFieldInfo {
    margin: -3px 0 6px 0;
    color: var(--MutedColor);
    font-size: 12px;
}

.productAttributeTextFieldError {
    display: none;
    margin-bottom: 6px;
    color: var(--AlertColor);
    font-size: 12px;
}

/* Price */

.shopProductPriceContainer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    clear: both;
    margin: 0 0 22px 0;
    text-align: left;
}

.shopProductPrice {
    color: var(--CSSColor);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.shopProductPriceWithoutDiscount {
    width: 100%;
    color: var(--MutedColor);
    font-size: 14px;
}

.shopProductPriceDiscountPercent.circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    height: 26px;
    padding: 0 9px;
    border: 0;
    border-radius: 4px;
    background-color: var(--AlertColor);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-shadow: none;
}

/* Price remarks */

.shopProductPriceRemarksContainer {
    margin: -10px 0 22px 0;
    color: var(--MutedColor);
    font-size: 13px;
}

/* Shipping info */

#shopProductShipingInfoTitle {
    display: inline-flex;
    align-items: center;
    color: var(--CSSColor);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

#shopProductShipingInfoTitle:hover {
    color: var(--ButtonBackgroundHoverColor);
}

#shopProductShipingInfoContentContainer {
    display: none;
    position: relative;
    clear: both;
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid var(--BorderColor);
    border-radius: 6px;
    background-color: #FAFAFA;
    color: var(--CSSColor);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

#shopProductShipingInfoTitle:focus + #shopProductShipingInfoContentContainer {
    display: block;
}

#shopProductShipingInfoContentCloseButton {
    float: right;
    color: var(--MutedColor);
    font-size: 20px;
    outline: none;
    cursor: pointer;
}

/* Cart controls */

.detailShopProductFooter {
    margin-top: 6px;
}

.shopProductFooterCartControlContainer {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 10px;
}

.shopProductFooterQuantityContainer {
    display: flex;
    flex: 0 0 auto;
}

.shopProductContainer input.shopProductQuantityInputPlus,
.shopProductContainer input.shopProductQuantityInputMinus {
    width: 38px;
    height: 44px;
    padding: 0;
    font-size: 18px;
    text-align: center;
    border: 1px solid var(--ButtonBackgroundColor);
    background-color: var(--ButtonBackgroundColor);
    color: var(--ButtonTextColor);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shopProductContainer input.shopProductQuantityInputMinus {
    border-radius: 5px 0 0 5px;
}

.shopProductContainer input.shopProductQuantityInputPlus {
    border-radius: 0 5px 5px 0;
}

    .shopProductContainer input.shopProductQuantityInputPlus:hover,
    .shopProductContainer input.shopProductQuantityInputMinus:hover {
        cursor: pointer;
        border-color: var(--ButtonBackgroundHoverColor);
        background-color: var(--ButtonBackgroundHoverColor);
        color: var(--ButtonTextHoverColor);
    }

.shopProductContainer input.shopProductQuantityInput {
    width: 46px;
    height: 44px;
    margin: 0;
    padding: 0 5px;
    border-top: 1px solid #D8D8D8;
    border-right: 0;
    border-bottom: 1px solid #D8D8D8;
    border-left: 0;
    border-radius: 0;
    background-color: #fff;
    color: var(--CSSColor);
    font-size: 14px;
    text-align: center;
    vertical-align: top;
}

.shopProductContainer input:focus {
    outline: none;
}

.shopProductAddToCartButton {
    display: flex;
    min-height: 44px;
    padding: 0 20px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: var(--ButtonBackgroundColor);
    color: var(--ButtonTextColor);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.shopProductAddToCartButton:hover {
    background-color: var(--ButtonBackgroundHoverColor);
    color: var(--ButtonTextHoverColor);
}

.shopProductAddToCartButton .fa-shopping-cart {
    margin-right: 9px;
    color: var(--ButtonTextColor);
    font-size: 16px;
}

.quantityInputValueNotNumeric {
    background-color: var(--AlertColor) !important;
    color: #fff !important;
}

/* Selected attributes */

#shopProductSelectedAttributeSummaryContainer {
    margin: 18px 0 0 0;
    padding: 14px 0 0 0;
    overflow: hidden;
    border-top: 1px solid var(--BorderColor);
    color: var(--MutedColor);
    font-size: 14px;
}

/* Additional product content */

#shopProductBlockEditorContainer {
    margin-top: 60px;
}

/* Tablet */

@media screen and (max-width: 1279.9px) {
    #shopDetailSideContainer {
        top: 110px;
        max-height: calc(100vh - 130px);
    }

#shopDetailContainer {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 28px;
    }

    .detailShopProduct {
        gap: 36px;
    }

    #shopProductContentWrapper .shopProductTitle h1 {
        font-size: 34px;
    }
}

/* Small tablet */

@media screen and (max-width: 1023.9px) {
    #shopDetailSideContainer {
        top: 100px;
        max-height: calc(100vh - 120px);
    }

#shopDetailContainer {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }

    .detailShopProduct {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #shopProductImageWrapper {
        max-width: 620px;
    }

    #shopProductContentWrapper {
        max-width: none;
    }

    #shopProductContentWrapper .shopProductTitle h1 {
        font-size: 32px;
    }
}

/* Mobile */

@media screen and (max-width: 767.9px) {
    .ModuleShopDetailPage #main {
        padding-top: 15px;
    }

    #shopDetailContainer {
        display: block;
    }

    #shopDetailSideContainer {
        position: relative;
        top: auto;
        z-index: 98;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .detailShopProductContainer {
        position: relative;
        z-index: 1;
        width: 100%;
    }

    .detailShopProduct {
        display: block;
    }

    #shopProductImageContainer {
        margin-bottom: 28px;
    }

    #shopProductImageWrapper {
        max-width: none;
    }

    #shopProductImageWrapper .productImage {
        padding: 16px;
    }

    #shopProductContentWrapper .shopProductTitle h1 {
        font-size: 28px;
    }

    .shopProductDescription {
        font-size: 15px;
    }

    .shopProductAttributes {
        padding: 16px;
    }
}

/* Smartphone */

@media screen and (max-width: 500px) {
    #shopProductContentWrapper .shopProductTitle h1 {
        font-size: 26px;
    }

    .shopProductPrice {
        font-size: 23px;
    }

    .shopProductFooterCartControlContainer {
        flex-wrap: wrap;
    }

    .shopProductFooterQuantityContainer {
        width: 100%;
    }

    .shopProductContainer input.shopProductQuantityInputMinus,
    .shopProductContainer input.shopProductQuantityInputPlus {
        width: 42px;
    }

    .shopProductContainer input.shopProductQuantityInput {
        flex: 1 1 auto;
        width: auto;
    }

    .shopProductAddToCartButton {
        width: 100%;
        min-height: 46px;
        flex-basis: 100%;
    }

    #shopProductBlockEditorContainer {
        margin-top: 40px;
    }
}
