/* Custom CSS */

/* PRODUCT GRID/SLIDER ---------------------------------------------- */
@media screen and (min-width: 640px) {

    .products-grid .product-item .product-image-wrapper {
        padding-bottom:100% !important;
    }

    .products-grid .product-item-info {
        height: 450px;
    }

    .products-grid.grid .product-item-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        margin-bottom: 30px;
        min-height: 39px;
    }

    .products-grid.grid .product-item .price-box {
        margin: 10px 0 22px;
        text-align: center;
    }

    .products-grid .product-item-info {
        border: 1px solid #bbb;
        margin: -10px -10px 8px -10px;
        padding: 9px;
    }

    .products-grid .product-item-info:not(:hover):not(.active) .product-item-inner {
        border: 0;
        clip: unset;
        height: auto;
        margin: -1px;
        overflow: unset;
        padding: 0 9px 9px;
        position: relative;
        width: auto;
    }

    .block.widget .products-grid .product-item .product-item-inner,
    .page-layout-1column .block.widget .products-grid .product-item .product-item-inner {
        box-shadow: unset;
    }

    .products-grid .product-item-inner {
        box-shadow: unset;
        border: 0;
        margin: inherit;
        position: inherit;
        padding: 0 9px 9px;
    }

    .products-grid .product-item-info:hover {
        border: 1px solid #cb3040;
        position: inherit;
    }

    .products-grid .product-item-actions .actions-primary,
    .products-grid .product-item-actions .actions-primary .action {
        width: 100%;
    }

    .products-grid .product-item-actions {
        margin: 0;
    }

    .products-grid .product-item-actions .actions-primary + .actions-secondary > .action {
        line-height: 24px;
        text-align: center;
        width: 24px;
    }

    .products-grid .opencallforpopup {
        text-align: center;
    }

    .products-grid .opencallforpopup .action {
        width: 100%;
    }

    .products-grid .product-item-actions .actions-primary {
        text-align: center;
    }

    .products-grid .product-item-actions .actions-primary .stock img {
        height: 25px;
    }

    .products-grid .product-item-actions .actions-primary .stock span {
        display: none;
    }
}

/* Stock - NO stock Icons */
.ec-product-in-stock, .ec-product-out-of-stock  {
    padding: 4px;
}

.ec-product-in-stock span, .ec-product-out-of-stock span {
    display: inline-block !important;
}

.ec-product-in-stock {
    color: green;
}

.ec-product-out-of-stock {
    color: rgb(217, 83, 0);
}

/* CFP Empty Price */
.cfp-empty-price {
    height: 39px;
}


/* Product Slider */
.owl-item .product-image-photo {
    max-width: max-content;
    max-height: max-content;
}
/* ------------------------------------------------------------------ */

/* PRODUCT PAGE ----------------------------------------------------- */

@media screen and (min-width: 768px) {
    /* Layout - Media column (left) */
    .page-layout-1column .product.media {
        width: 47%;
    }

    /* Layout - Product info column (right) */
    .page-layout-1column .product-info-main {
        width: 50%;
    }

    /* Product name */
    .product-info-main h1 {
        font-size: 30px;
    }

    /* Product price */
    .product-info-price .price-box .price-container .price {
        font-size: 25px;
    }

    /* Product custom message on option */
    .product_options_radio .hidden-text {
        width: 400px;
    }

    /* Product - Price message */
    .product-price-message {
        padding-top: 8px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 800px)
{
    /* Product custom message on option */
    .product_options_radio .hidden-text {
        width: 200px;
    }
}

@media screen and (min-width: 801px) and (max-width: 900px)
{
    /* Product custom message on option */
    .product_options_radio .hidden-text {
        width: 250px;
    }
}

@media screen and (min-width: 901px) and (max-width: 1000px)
{
    /* Product custom message on option */
    .product_options_radio .hidden-text {
        width: 300px;
    }
}

@media screen and (min-width: 1001px) and (max-width: 1100px)
{
    /* Product custom message on option */
    .product_options_radio .hidden-text {
        width: 350px;
    }
}

/* Product Main Info - Wrapper */
.product-main-info {
    margin-bottom: 15px;
}

/* Product Main Info - Attribute name */
.product-main-info .attribute-name {
    text-transform: uppercase;
}

/* Product Main Info - Attribute value */
.product-main-info .attribute-value {
    text-transform: uppercase;
    font-weight: bold;
}

/* Product - Price message */
.product-price-message {
    display: table-cell;
    padding-bottom: 10px;
    padding-left: 3%;
    text-align: left;
    font-style: italic;
    color: #cb3040;

    min-width: 90px;
    vertical-align: top;
    padding-top: 2px;
}

/* Product Page - Configurable options */
.product_options_radio {
    margin-left: 25px;
}

.product_options_radio input {
    margin-bottom: 16px;
}

.product_options_radio .state-question {
    margin-left: 10px;
}

.product_options_radio .hidden-text {
    display: none;
    position:absolute;
    margin-left: 10px;
    padding: 10px;
    border: 1px solid orange;
    background: wheat;
    font-style: italic;
}

.product_options_radio .state-question:hover + .hidden-text {
    display: unset;
}
/* ------------------------------------------------------------------ */

/* Fix for Breadcrumb */
.columns .column.main .breadcrumbs {
    padding-left: 0px;
}


/* Slider fix */
/* @TODO chop in resolutions : 1 = 1, 600 = 3, 1000 = 5 */
.owl-carousel {
    padding-left: 40px !important;
    padding-right: 40px !important;
    width: inherit !important;
}

.owl-carousel .owl-stage-outer {
    margin-left: 20px;
    margin-right: 20px;
}

.mp-product-slider-content .owl-nav button span {
    margin-left: 0px !important;
}

/* ------------------------------------------------------------------ */

/* Sidebar products */
.block-products-list.simple-link .block-title {
    color: #e73845;
}

.block-products-list.simple-link .block-title strong {
    font-weight: inherit;
}

.products-simple-link.simple-link .product-item-details {
    margin-left: 0;
}


/* -------------------------------------------------------------------- */
/* DATATABLES */

.datatables_filter_row label {
    float: left;
    margin-right: 10px;
    margin-top: 4px;
}

.datatables_filter_row select {
    width: 200px;
    float: left;
    margin-right: 10px;
}

#datatable_wrapper {
    clear: both;
    padding-top: 40px;
}

#datatable_wrapper #datatable_length select {
    width: inherit !important;
}

#datatable_wrapper #datatable_filter {
    margin-top: 20px;
}


#datatable_wrapper #datatable_filter input {
    width: 600px !important;
    margin-left: 10px;
}

#datatable_wrapper #datatable {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #cb3040;
}

#datatable_wrapper #datatable thead {
    background-color: #cb3040;
    color: #ffffff;
}

#datatable_wrapper #datatable tbody tr:nth-child(even) {
    background-color: #ccc;
}

#datatable_wrapper #datatable_info {
    text-align: center;
}

#datatable_wrapper #datatable_paginate {
    margin-top: 20px;
    text-align: center;
}

#datatable_wrapper #datatable_paginate #datatable_previous{
    float: left;
}

#datatable_wrapper #datatable_paginate .paginate_button {
    margin-left: 10px;
    margin-right: 10px;
}

#datatable_wrapper #datatable_paginate .paginate_button.current{
    font-weight: bold;
}

#datatable_wrapper #datatable_paginate #datatable_next{
    float: right;
}
