/*
//    .product-details
//
//        .left-block
//            .title
//            .left-subblock
//                .main-image
//
//        .title_and_image
//            .title
//            .main-image-wrapper.magnifying-glass
//                .main-image
//                <%THEME%/fragments/magnifying_glass.tpl>
//
//        .properties
//            h2
//            table
//                tr
//                    td.key
//                    td.value
//
//        .right-block
//            .right-subblock
//                .sku
//                    .label
//                    .value
//                .availability
//            .gray-area
//                .price
//                    .old
//                    .new
//            .static-area
//                .icon
//                    img
//                    TEXT
*/

/* -- FIXES -- */

.product-details .title,
.product-details .properties .caption {
    margin: 0;
}

/* -- LAYOUT -- */

.product-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    align-self: center;
}

.product-details .title_and_image {
    display: flex;
    flex-direction: column;
}

.product-details .main-image-wrapper {
    display: flex;
    flex-direction: column;
}

.product-details .properties {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    flex-shrink: 0;
}

.product-details .right-block {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    flex-shrink: 0;
}

.product-details .right-block .right-subblock {
    display: flex;
    flex-direction: row;
}

.product-details .right-block .right-subblock .sku,
.product-details .right-block .right-subblock .availability {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.product-details .right-block .gray-area {
    display: flex;
    flex-direction: column;
}

.product-details .right-block .gray-area .price {
    display: flex;
    flex-direction: column;
}

.product-details .right-block .static-area {
    display: flex;
    flex-direction: row;
}

.product-details .right-block .static-area .icon {
    display: flex;
    flex-direction: row;
}

/* -- STYLING -- */

.product-details .title {
    text-transform: uppercase;
    font-size: 22px;
}

.product-details .main-image {
    /*width: 370px;*/
    /*height: 280px;*/
    margin: auto;
    border: 1px solid #dedede;
}

.product-details .right-block .gray-area .price .old,
.product-details .right-block .gray-area .price .new {
    text-align: right;
    font-size: 30px;
}

.product-details .right-block .gray-area .price .currency {
    font-size: 13px;
}

.product-details .price,
.product-details .availability {
    white-space: nowrap;
}

.product-details .properties .caption {
    font-size: 15px;
}

.product-details .properties .key {
    color: #989898;
    font-size: 14px;
    white-space: nowrap;
}

.product-details .properties .value {
    color: #212121;
    font-size: 14px;
}

.product-details .right-block .right-subblock .sku,
.product-details .right-block .right-subblock .availability {
    background-color: white;
}

.product-details .right-block .right-subblock .sku,
.product-details .right-block .right-subblock .availability,
.product-details .right-block .gray-area {
    border: 1px solid #dedede;
    border-collapse: collapse;
}

.product-details .right-block .right-subblock .sku .label {
    color: #989898;
}

.product-details .right-block .right-subblock .sku .value {
    color: #212121;
}

.product-details .right-block .right-subblock .availability .available {
    color: #38b449;
}
.product-details .right-block .right-subblock .availability .unavailable {
    color: #ff0000;
}

.product-details .right-block .gray-area {
    background-color: #eeeeee;
}

/* -- SPACING -- */

.product-details {
    margin-top: 15px;
    margin-bottom: 30px;
    margin-left: 30px;
    margin-right: 30px;
}

.product-details .title {
    max-width: 380px;
    min-height: 67px;
}

.product-details .right-block .gray-area .price {
    margin-top: 20px;
    margin-right: 30px;
}

.product-details .right-block .gray-area .price .currency {
    margin-left: 4px;
}

.product-details .right-block .right-subblock {
}

.product-details .right-block .right-subblock,
.product-details .right-block .gray-area {
    min-width: 370px;
}

.product-details .right-block .right-subblock .sku .label {
    margin-right: 6px;
}

.product-details .right-block .right-subblock .sku,
.product-details .right-block .right-subblock .availability {
    min-height: 65px;
}

.product-details .properties {
    margin-right: 30px;
    margin-top: 115px;
}

.product-details .properties .caption {
    margin-bottom: 15px;
}

.product-details .properties td {
    padding-top: 4px;
    padding-bottom: 4px;
}

.product-details .properties .value {
    /*padding-right: 60px;*/
}

.product-details .right-block .gray-area {
    min-height: 222px;
}

.product-details .right-block .static-area {
    margin-top: 30px;
}

.product-details .right-block .static-area .icon {
    margin-right: 45px;
}

.product-details .right-block .static-area .icon img {
    margin-right: 14px;
    /* [!] hack! -5px */
    margin-top: -5px;
}

article.product_description {
    margin: auto;
    max-width: 370px;
    color: #454545;
    padding-right: 30px;
    padding-left: 30px;
}

.gallery.fastener {
    max-width: 350px;
}
.gallery.scrollable.fastener {
    /*justify-self: center;*/
}
.gallery.scrollable.align > .heading-nav-glue > .heading,
.gallery.scrollable.align > .heading-nav-glue > .owl-nav {
    display: none;
    visibility: hidden;
    height: 0;
}
.gallery.scrollable.fastener {
    max-width: inherit !important;
}
.gallery.scrollable .container {
    width: 350px !important;
    margin-top: 5px !important;
}
.gallery.scrollable .container,
.gallery.scrollable .owl-prev,
.gallery.scrollable .owl-next {
    margin: auto;
}
.gallery.scrollable div.owl-stage-outer {
    width: auto !important;
}
.gallery.scrollable .container .owl-next,
.gallery.scrollable .container .owl-prev {
    /*width: 66px !important;*/
}

/*.main-image-wrapper { background-color: yellow; }*/
/*.title_and_image { background-color: blue; }*/
/*.gallery.scrollable .container { background-color: red; }*/

    .product-details .properties {
        margin-left: 30px;
    }
    
/* == MOBILE == */

@media screen and (max-width: 1120px) {
    /* -- LAYOUT -- */
    .product-details .properties {
        order: 99;

    }
    /* -- STYLING -- */
    .product-details .main-image {
        /*width: 350px;*/
        /*height: 260px;*/
        margin: auto;
    }
    /* -- SPACING -- */
    .product-details .right-block .right-subblock,
    .product-details .right-block .gray-area {
        min-width: 350px;
    }
    .product-details .title {
        max-width: 370px;
        margin-right: 0px;
    }
    .product-details .properties {
        margin-top: 30px;
    }
    .product-details .main-image-wrapper {
        margin-bottom: 10px;
    }
    article.product_description {
        padding-right: 5px;
        padding-left: 5px;
    }
}
