/**
 * Label product
 */

.product-labels {
    .product-label {
        display: block;
        height: 26px;
        text-align: center;
        padding: 0 10px;
        line-height: 26px;
        text-transform: uppercase;
        color: #fff;
        min-width: 50px;
        font-weight: 700;
    }

    .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: 5px;
            z-index: 20;
            font-size: 12px;
        }

        .new-label {
            right: 5px;
        }

        .sale-label {
            left: 5px;
        }
    }
}

/**
 * Grid style
 */

.products-grid {
    .product-item {
        font-size: unset;
    }

    .product-item .price-box {
        margin: 5px 0 15px;
    }

    .product-item .price-box {
        .price {
            font-size: 126.67%;
            font-weight: 400;
            color: #e74c3c;
        }

        .old-price .price {
            color: #999;
            font-size: 100%;
            position: relative;
            top: 4px;
        }
    }

    .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;
        border-top: 1px solid #eee;
        padding: 12px 10px 0;
        position: relative;

        .quickview-handler {
            height: 36px;
            line-height: 36px;
            position: absolute;
            left: 0;
            right: 0;
            text-transform: uppercase;
            opacity: 0;
            visibility: hidden;
            z-index: 20;
        }
    }

    .product-item-name {
        font-size: 107.69%;
        margin: 0 0 6px;

        a {
            display: inline-block;
        }
    }

    .product-item-actions {
        .actions-primary {
            display: block;
        }

        .actions-primary button {
            height: 44px;
            line-height: 44px;
            background-color: rgba(0, 0, 0, 0.7);
            color: #fff;
            padding: 0 15px;
            font-size: 100%;
            text-transform: uppercase;
            font-weight: 400;
            position: absolute;
            top: -44px;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 20;
            opacity: 0;
            visibility: hidden;
            .border-radius(0);
            .box-shadow-none();
            .transition(.1s);
        }

        .actions-secondary {
            font-size: 0;
            position: absolute;
            left: 50%;
            top: -40px;
            z-index: 20;
            opacity: 0;
            visibility: hidden;
            transition: opacity .1s, visibility .1s;
            -webkit-transition: opacity .1s, visibility .1s;
            .transform(translate(-50%, 0));

            .action {
                display: inline-block;
                position: static;
                vertical-align: top;
                margin: 0 2px;
                width: 40px;
                height: 40px;
                text-align: center;
                line-height: 40px;
                background-color: #fff;
                color: #222;
                border: none;
                opacity: 1;
                visibility: visible;
                .transition(.1s);
                .box-shadow(0 0 10px rgba(0, 0, 0, 0.1));
            }

            .action:before,
            .action span {
                display: none !important;
            }

            .towishlist:after {
                .icomoon(e93f, 16px);
            }

            .tocompare:after {
                .icomoon(e952, 16px);
            }

            .quickview-handler:after {
                .icomoon(e954, 16px);
            }
        }
    }

    .product-item-info {
        background-color: #fff;
        height: 100%;
        width: 100%;
        position: relative;
        padding-bottom: 5px;

        &:hover {
            position: relative;
            z-index: 30;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));

            .product-item-actions .actions-secondary,
            .product-item-actions .actions-primary button {
                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;
    }

    .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;
        }
    }
}

/**
 * Product wishlist page
 */
.products-grid.wishlist .product-item .price-box {
    margin: 5px 0 15px;
}

.products-grid.wishlist .product-item .fieldset .field.qty {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.products-grid.wishlist {
    .product-item-info {
        text-align: center !important;
        padding-bottom: 20px;

        .product-item-inner {
            position: static;
        }

        .box-tocart {
            margin-bottom: 10px;
        }
    }
}
