﻿/*
Recommended to edit file in external code editor as Visual Studio CSS does not fully support nesting 
If you need to update padding and margins, adjust in View that is calling this partial. Making adjustments here can affect partial in other View pages.
*/

.products-carousel-partial {
    padding-left: 15px;

    .owl-stage-outer {
        border: none;
    }

    .owl-stage {
        padding-left: 0 !important;
    }

    .product-item {
        margin-right: 15px;

        .product-swatch {
            position: relative;

            img {
                border-radius: 7px;
            }
        }

        .favorite {
            width: 10%;
            height: 9%;
            min-width: 30px;
            min-height: 30px;
            position: absolute;
            right: 4%;
            top: 4%;
            z-index: 2;
    
            button {
                width: 100%;
                height: 100%;
                margin: 0px;
                padding: 0px;
                position: relative;
                border-radius: 100%;
                border: none;
                cursor: pointer;
                -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    
                svg {
                    display: block;
                    width: 68%;
                    height: 100%;
                    margin: 0px;
                    fill: #6C6C6C;
                    transition: all 0.2s ease;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -45%);
    
                    &:first-child {
                        z-index: 1;
                    }
    
                    &:last-child {
                        opacity: 0;
                        z-index: 0;
                    }
                }
    
                &:hover {
                    svg {
                        fill: var(--color-empire-blue);
                    }
                }
    
                &.fav-apply svg {
                    fill: var(--color-empire-blue);
    
                    &:first-child {
                        z-index: 0;
                    }
    
                    &:last-child {
                        opacity: 1;
                        z-index: 1;
                    }
                }
            }
        }

        .name {
            /* background-color: transparent; */
            /* text-align: center; */
            position: relative;
            min-height: 44px;
            margin: 15px 0 5px;

            a {
                color: var(--color-black);
                font-family: var(--font-poppins);
                font-size: 14px;
                font-weight: var(--font-weight-medium);
                line-height: normal;
                text-align: left;
                text-decoration: none;
                margin: 15px 0 5px;
                /* letter-spacing: normal; */
                /* text-transform: none; */
                /* line-height: normal; */
                /* min-height: 34px; */

                &:hover {
                    text-decoration: underline;
                }
            }
        }

        .more-color-options {
            .color-item-count {
                font-family: var(--font-poppins);
                font-size: 12px;
                font-weight: var(--font-weight-regular);
                color: var(--color-black);
                font-style: normal;
                line-height: normal;
                margin: 0;
            }

            .more-color-items {
                display: flex;
                flex-wrap: wrap;
                position: relative;

                .show-more-arrow {
                    border: solid #005db8;
                    border-width: 0 2px 2px 0;
                    margin: 0 2px 2px 0;
                    width: 8px;
                    height: 8px;
                    transform: rotate(45deg);
                    position: absolute;
                    top: 20px;
                    right: 10px;
                    cursor: pointer;
                    transition: all 0.2s ease;

                    &.show {
                        transform: rotate(225deg);
                    }

                    &.hide {
                        display: none;
                    }
                }

                .color-item-swatch {
                    max-width: calc(20% - 10px);
                    margin: 10px 10px 0 0;
                    /* max-width: calc(17.55% - 15px); */
                    /* margin-right: 15px; */

                    &.hide {
                        visibility: hidden;
                    }

                    img {
                        width: 100%;
                        max-width: 30px;
                        border-radius: 3px;
                    }
                }
            }
        }
    }

    .owl-nav {
        button {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            background-color: rgba(238,238,238, .8) !important;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            position: absolute;
            top: calc(30% - 22px);
            /* class is created through the _owl-carousels-product-catalog.js file */
            .arrow {
                display: inline-block;
                border: solid #474747;
                border-width: 0 3px 3px 0;
                margin: 0 3px 3px 0;
                width: 13px;
                height: 13px;
            }
        }
    
        .owl-prev {
            transform: rotate(135deg);
            left: 25px;
        }
    
        .owl-next {
            transform: rotate(-45deg);
            right: 10px;
        }
    }
    
    .owl-dots {
        display: none;
    }

    @media (min-width: 560px) {
        .owl-nav {
            .owl-next {
                right: 25px;
            }
        }
    }

    @media (min-width: 767px) {
        /*.products-carousel-partial*/
        padding-left: 0;

        .product-item {
            width: 350px;
            margin: 0 auto;

            .more-color-options {
                .more-color-items {
                    .color-item-swatch {
                        /* max-width: calc(17.55% - 10px);
                        margin-right: 10px; */
                    }
                }
            }
        }

        .owl-nav {
            button {
                /* background-color: transparent !important; */
                top: calc(45% - 32px);
            }

            .owl-prev {
                left: 0;
            }
            
            .owl-next {
                right: 0;
            }
        }
    }

    @media (min-width:960px) {
        .product-item {
            .name {
            }
        }
    }

    @media (min-width:1024px) {
        .product-item {
            width: 230px;
        }

        .owl-nav {
            .owl-prev {
                left: -15px;
            }
            
            .owl-next {
                right: -15px;
            }
        }
    }

    @media (min-width: 1400px) {
        .product-item {
            .product-swatch {

                img {
                }
            }

            .name {
            }
        }
    }

    @media (min-width: 1600px) {
    }
}
