/**
 * Label product
 */

.product-labels {
    .product-label {
        display: block;
        min-width: 60px;
        height: 28px;
        line-height: 28px;
        padding: 0 10px;
        text-align: center;
        text-transform: uppercase;
        color: #fff;
        font-weight: 700;
        .border-radius(3px);
    }

    .new-label {
        background-color: #00b46a;
    }

    .sale-label {
        background-color: #ff5500;
    }
}

.products-list .image-product {
    position: relative;
}

.products-list,
.products-grid {
    .product-labels {
        .product-label {
            position: absolute;
            top: 10px;
            z-index: 20;
            font-size: 13px;
        }

        .new-label {
            right: 10px;
        }

        .sale-label {
            left: 10px;
        }
    }
}

/**
 * Grid style
 */

.products-grid {
    .product-item {
        font-size: unset;
    }

    .image-product {
        position: relative;

        .quickview-handler {
            width: 60px;
            height: 60px;
            text-align: center;
            line-height: 60px;
            background-color: #fff;
            color: #333;
            position: absolute;
            left: 50%;
            top: 50%;
            opacity: 0;
            visibility: hidden;
            z-index: 30;
            .transform(translate(-50%, -50%));
            .border-radius(50%);
            .box-shadow(0 0 10px rgba(0, 0, 0, 0.15));
            .transition(.1s);
        }

        .quickview-handler:before {
            .icomoon(e954, 22px);
        }

        .quickview-handler span {
            display: none;
        }
    }

    .product-item .price-box {
        margin: 5px 0 15px;
    }

    .product-item .price-box {
        .price {
            font-size: 153.84%;
            font-weight: 700;
            color: #e74c3c;
        }

        .old-price .price {
            color: #999;
            position: relative;
            top: 4px;
            font-size: 116.67%;
        }
    }

    .product-image-container {
        vertical-align: top;
    }

    .product-reviews-summary {
        display: block;
    }

    .product-item .product-reviews-summary .rating-summary {
        display: inline-block;
    }

    .product-reviews-summary .reviews-actions {
        display: none;
    }

    .product-item-details {
        text-align: center;
        padding: 13px 5px 0;
        position: relative;
    }

    .product-item-name {
        font-size: 107.69%;
        margin: 0 0 6px;

        a {
            display: inline-block;
        }
    }

    .product-item-inner {
        position: absolute;
        left: -5px;
        right: -5px;
        top: -44px;
        opacity: 0;
        visibility: hidden;
        z-index: 20;
    }

    .product-item-actions {
        display: block;
        padding: 0 44px;
        margin: 0;
        position: relative;

        .actions-primary {
            display: block;
        }

        .actions-primary button {
            border: none;
            height: 44px;
            line-height: 44px;
            background-color: #333;
            color: #fff;
            padding: 0 15px;
            text-transform: uppercase;
            font-weight: 400;
            width: 100%;
            .border-radius(0);
            .box-shadow-none();
            .transition(.1s);
        }

        .actions-secondary {
            .action {
                display: inline-block;
                width: 44px;
                height: 44px;
                text-align: center;
                line-height: 44px;
                color: #fff;
                background-color: #333;
                border: none;
                position: absolute;
                top: 0;
                .border-radius(0);
                .transition(.1s);
            }

            .action:before,
            .action span {
                display: none !important;
            }

            .towishlist {
                left: 0;
                border-right: 1px solid rgba(255, 255, 255, 0.1);
            }

            .towishlist:after {
                .icomoon(e93f, 16px);
            }

            .tocompare {
                right: 0;
                border-left: 1px solid rgba(255, 255, 255, 0.1);
            }

            .tocompare:after {
                .icomoon(e952, 16px);
            }
        }
    }

    .product-item-info {
        background-color: #fff;
        height: 100%;
        width: 100%;
        position: relative;
        padding: 5px 5px 5px;
        .border-radius(6px);
        .transition(.1s);

        &:hover {
            position: relative;
            z-index: 30;
            .box-shadow(rgba(0, 0, 0, 0.1) 0px 0px 15px);

            .product-item-inner {
                opacity: 1;
                visibility: visible;
            }

            .image-product .quickview-handler {
                opacity: 1;
                visibility: visible;
            }
        }
    }

    .swatch-attribute:last-child {
        margin-bottom: 10px;
    }

    .swatch-attribute-options {
        margin: 0;
    }

    .swatch-option {
        float: none;
        display: inline-block;
        margin-left: 3px;
        margin-right: 3px;
    }
}

/**
 * Block slider product page
 */

.detail-product-slider {
    .block-title {
        font-size: 138.461%;
        color: #222;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .block-content {
        border: 1px solid #e5e5e5;
    }

    .products-grid .product-item-info {
        .border-radius(0);
    }

    .owl-theme .owl-nav {
        margin: 0;
        position: absolute;
        top: -44px;
        right: 0;
    }

    .owl-theme .owl-nav [class*='owl-'] {
        margin: 0;
        padding: 0;
        width: 26px;
        height: 34px;
        line-height: 32px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        color: #888;
        .border-radius(0);
        .transition(.1s);

        &:before {
            font-size: 18px;
        }

        &.owl-next {
            border-left: none;
        }

        &.owl-prev {
            border-right: none;
        }
    }
}

.wishlist-index-index {
    .products-grid .product-item-inner {
        position: static;
        opacity: 1;
        visibility: visible;
    }

    .products-grid .product-item-actions {
        padding: 20px 0 0;
    }
}
