.popular-dishes-wrapper {
    &.style1 {
        position: relative;

        .btn-wrapper {
            display: block;
            margin: 60px auto 0;
        }

        .shape1 {
            position: absolute;
            bottom: -120px;
            left: 0;
            z-index: 1;
        }

        .shape2 {
            position: absolute;
            top: -50px;
            right: 0;
            z-index: 1;
        }
    }

    &.style2 {
        position: relative;

        .shape1 {
            position: absolute;
            bottom: 0px;
            left: 0;
            z-index: 1;
        }

        .shape2 {
            position: absolute;
            top: 0px;
            right: 0;
            z-index: 1;
        }

        .btn-wrapper {
            max-width: 195px;
            margin: 0 auto;
        }
    }

    &.style3 {
        position: relative;

        .swiper {
            overflow: visible;
        }

        .shape1 {
            position: absolute;
            top: -60px;
            left: 0;
        }

        .shape2 {
            position: absolute;
            top: -30px;
            right: 0;
        }
    }
    
    &.style4 {
        position: relative;

        .shape1 {
            position: absolute;
            top: 0px;
            left: 0;
            z-index: 1;
        }
    }
}


.dishes-card-wrap {
    &.style1 {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;

        @include breakpoint (max-xxl) {
            grid-template-columns: repeat(3, 1fr);
        }

        @include breakpoint (max-lg) {
            grid-template-columns: repeat(2, 1fr);
        }

        @include breakpoint (max-md) {
            grid-template-columns: repeat(1, 1fr);
        }
    }

    &.style2 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;

        @include breakpoint (max-xxl) {
            grid-template-columns: repeat(3, 1fr);
        }

        @include breakpoint (max-xl) {
            grid-template-columns: repeat(2, 1fr);
        }

        @include breakpoint (max-md) {
            grid-template-columns: repeat(1, 1fr);
        }
    }

    &.style3 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }

    &.style4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;

        @include breakpoint (max-xxl) {
            grid-template-columns: repeat(3, 1fr);
        }

        @include breakpoint (max-xl) {
            grid-template-columns: repeat(2, 1fr);
        }

        @include breakpoint (max-md) {
            grid-template-columns: repeat(1, 1fr);
        }
    }

}

.dishes-card {
    &.style1 {
        position: relative;
        padding: 25px;
        border-radius: 16px;
        margin-top: 30px;
        background: $white;
        text-align: center;
        transition: all 0.4s;
        -webkit-transition: all 0.4s;
        -moz-transition: all 0.4s;
        -ms-transition: all 0.4s;
        -o-transition: all 0.4s;
 


        .dishes-thumb {
            margin-bottom: 30px;
            margin-top: 20px;
        }

        h3 {
            color: $title-color;
            font-family: $title-font;
            font-size: 20px;
            font-style: normal;
            font-weight: 700;
            line-height: 1;
            text-transform: capitalize;
            margin-bottom: 18px;
        }

        p {
            color: $text-color;
            text-align: center;
            font-family: $body-font;
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 1;
            text-transform: capitalize;
            margin-bottom: 16px;
        }

        h6 {
            color: $theme-color;
            text-align: center;
            font-family: $title-font;
            font-size: 18px;
            font-style: normal;
            font-weight: 700;
            line-height: 1;
            text-transform: capitalize;
        }

        &:hover {
            background-image: url(../../assets/img/bg/dishesThumbBG.png);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 1;

            h3 {
                color: $white;
            }

            p {
                color: $white;
            }

            h6 {
                color: $white;
            }

            .social-profile {
                ul {
                    transform: translateY(10%);
                    opacity: 1;
                    visibility: visible;
                    -webkit-transform: translateY(10%);
                    -moz-transform: translateY(10%);
                    -ms-transform: translateY(10%);
                    -o-transform: translateY(10%);
        }
            }
        }
    }

    &.style2 {
        padding: 26px 25px;
        margin-top: 140px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, #FFF 63.33%);
        text-align: center;
        border-radius: 16px;
        background: $white;
        box-shadow: 0px 4px 54px 0px rgba(0, 0, 0, 0.08);

        .dishes-thumb {
            position: relative;
            margin-top: -120px; 
            border-radius: 50%;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            -ms-border-radius: 50%;
            -o-border-radius: 50%;
            img {
                position: relative;
                z-index: 2;
                border-radius: 50%;
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                -ms-border-radius: 50%;
                -o-border-radius: 50%;
}

            .circle-shape {
                position: absolute;
                top: -7px;
                left: 50%;
                width: 100%;
                transform: translateX(-50%);
                z-index: 1;
                -webkit-transform: translateX(-50%);
                -moz-transform: translateX(-50%);
                -ms-transform: translateX(-50%);
                -o-transform: translateX(-50%);
            }
        }

        .dishes-content {
            margin-top: 24px;

            h3 {
                color: $title-color;
                font-family: $title-color;
                font-size: 20px;
                font-style: normal;
                font-weight: 700;
                line-height: 1;
                text-transform: capitalize;
                margin-bottom: 1px;
                transition: all 0.4s;
                -webkit-transition: all 0.4s;
                -moz-transition: all 0.4s;
                -ms-transition: all 0.4s;
                -o-transition: all 0.4s;

                &:hover {
                    color: $theme-color;
                }
            }

            .text {
                color: $text-color;
                font-family: $body-font;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 1;
                text-transform: capitalize;
                margin-bottom: 16px;
                margin-top: 3px;
            }

            h6 {
                color: $theme-color;
                font-family: $title-font;
                font-size: 18px;
                font-style: normal;
                font-weight: 700;
                line-height: 1;
                text-transform: capitalize;
                margin-bottom: 24px;
            }
        }
    }

    &.style3 {
        margin-top: 40px;

        .dishes-thumb {
            position: relative;
            transition: all 0.4s;
            -webkit-transition: all 0.4s;
            -moz-transition: all 0.4s;
            -ms-transition: all 0.4s;
            -o-transition: all 0.4s;

            img {
                position: relative;
                width: 100%;
                transition: all 0.4s;
                -webkit-transition: all 0.4s;
                -moz-transition: all 0.4s;
                -ms-transition: all 0.4s;
                -o-transition: all 0.4s;
            }

            .view-more {
                opacity: 0;
                visibility: hidden;
                text-align: center;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                -webkit-transform: translate(-50%, -50%);
                -moz-transform: translate(-50%, -50%);
                -ms-transform: translate(-50%, -50%);
                -o-transform: translate(-50%, -50%);
                transition: all 0.4s;
                -webkit-transition: all 0.4s;
                -moz-transition: all 0.4s;
                -ms-transition: all 0.4s;
                -o-transition: all 0.4s;

                a {
                    display: inline-block;

                    h3 {
                        padding: 35px 15px;
                        text-align: center;
                        background: $theme-color-2;
                        color: $white;
                        font-family: $title-font;
                        font-size: 12px;
                        font-style: normal;
                        font-weight: 700;
                        line-height: 30px;
                        text-transform: capitalize;
                        border-radius: 50%;
                        -webkit-border-radius: 50%;
                        -moz-border-radius: 50%;
                        -ms-border-radius: 50%;
                        -o-border-radius: 50%;
                    }

                }
            }
        }

        .dishes-content {
            text-align: center;

            a {
                h3 {
                    color: $title-color;
                    font-family: $title-font;
                    font-size: 24px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 30px;
                    text-transform: capitalize;
                    margin-top: 30px;
                    margin-bottom: -0.3em;
                }
            }

            p {
                color: $text-color;
                text-align: center;
                font-family: $body-font;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 50px;
                text-transform: capitalize;
            }
        }

        &:hover {
            .dishes-thumb {
                overflow: hidden;
                border-radius: 100px;
                -webkit-border-radius: 100px;
                -moz-border-radius: 100px;
                -ms-border-radius: 100px;
                -o-border-radius: 100px;

                img {
                    border-radius: 100px;
                    -webkit-border-radius: 100px;
                    -moz-border-radius: 100px;
                    -ms-border-radius: 100px;
                    -o-border-radius: 100px;
                }

                .view-more {
                    position: absolute;
                    opacity: 1;
                    visibility: visible;
                    z-index: 9;
                }
            }
        }
    }

    &.style4 {
        position: relative;
        display: flex;
        align-items: center;
        gap: 30px;
        padding: 5px 30px 20px 35px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, #FFF 63.33%);
        text-align: left;
        border-radius: 16px;
        background: $white;
        box-shadow: 0px 4px 54px 0px rgba(0, 0, 0, 0.08);

        .dishes-thumb {
            position: relative;

            img {
                position: relative;
                z-index: 2;
            }

            .circle-shape {
                position: absolute;
                top: -7px;
                left: 50%;
                transform: translateX(-50%);
                z-index: 1;
                -webkit-transform: translateX(-50%);
                -moz-transform: translateX(-50%);
                -ms-transform: translateX(-50%);
                -o-transform: translateX(-50%);
            }
        }

        .dishes-content {
            margin-top: 24px;

            a {
                h3 {
                    color: $title-color;
                    font-family: $title-color;
                    font-size: 20px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 1;
                    text-transform: capitalize;
                    margin-bottom: 5px;
                    transition: all 0.4s;
                    -webkit-transition: all 0.4s;
                    -moz-transition: all 0.4s;
                    -ms-transition: all 0.4s;
                    -o-transition: all 0.4s;

                    &:hover {
                        color: $theme-color;
                    }
                }
            }

            .icon {
                position: absolute;
                top: 15px;
                right: 15px;
                width: 35px;

                a {
                    transition: all 0.4s;
                    -webkit-transition: all 0.4s;
                    -moz-transition: all 0.4s;
                    -ms-transition: all 0.4s;
                    -o-transition: all 0.4s;

                    i {
                        width: 30px;
                        height: 30px;
                        line-height: 30px;
                        text-align: center;
                        background: $theme-color-2;
                        color: $white;
                        margin-bottom: 5px;
                        border-radius: 50%;
                        -webkit-border-radius: 50%;
                        -moz-border-radius: 50%;
                        -ms-border-radius: 50%;
                        -o-border-radius: 50%;
                    }

                    &:hover {
                        i {
                            background: $theme-color;
                        }
                    }
                }
            }

            .text {
                color: $text-color;
                font-family: $body-font;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 26px;
                margin-top: 10px;
                margin-bottom: 20px;
            }

            h6 {
                color: $theme-color;
                font-family: $title-font;
                font-size: 18px;
                font-style: normal;
                font-weight: 700;
                line-height: 1;
                text-transform: capitalize;
                margin-bottom: 24px;
            }
        }

        @include breakpoint (max-md) {
            display: flex;
            flex-direction: column; 
            padding: 35px 30px 20px 35px;
        }
    }

    &.style5 {
        position: relative;
        display: flex;
        align-items: center; 
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, #FFF 63.33%);
        text-align: left;
        border-radius: 16px;
        background: $white;
        box-shadow: 0px 4px 54px 0px rgba(0, 0, 0, 0.08);
        margin-bottom: 40px;

        @include breakpoint (max-xl) { 
           margin-bottom: 0;
        }

        .dishes-thumb {
            position: relative; 
            margin-bottom: -200px;
            margin-top: -165px;
            margin-left: -2px;
            border-radius: 20px 0px 20px 20px; 

            @include breakpoint (max-xl) { 
                margin-bottom: 0px;
                margin-top: 0px; 
                height: 100%;
            }

            img {
                position: relative;
                z-index: 2;
                height: 100%;
                border-radius: 20px 0px 20px 20px; 
            } 
        }

        .dishes-content { 
            padding: 25px 15px;

            @include breakpoint (max-xl4) {  
              padding: 25px 8px;
            }

            @include breakpoint (max-xl) { 
                padding: 15px 3px 15px 25px;
            }

            @include breakpoint (max-lg) { 
                padding: 15px 3px 15px 7px;
            }

            @include breakpoint (max-md) { 
                padding: 15px 15px 15px 20px;
            }

            a {
                h3 {
                    color: $title-color;
                    font-family: $title-color;
                    font-size: 20px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 1;
                    text-transform: capitalize;
                    margin-bottom: 10px;
                    transition: all 0.4s;
                    -webkit-transition: all 0.4s;
                    -moz-transition: all 0.4s;
                    -ms-transition: all 0.4s;
                    -o-transition: all 0.4s;

                    &:hover {
                        color: $theme-color;
                    }
                }
            }

            .icon {
                position: absolute;
                top: 15px;
                right: 15px;
                width: 35px;

                a {
                    transition: all 0.4s;
                    -webkit-transition: all 0.4s;
                    -moz-transition: all 0.4s;
                    -ms-transition: all 0.4s;
                    -o-transition: all 0.4s;

                    i {
                        width: 30px;
                        height: 30px;
                        line-height: 30px;
                        text-align: center;
                        background: $theme-color-2;
                        color: $white;
                        margin-bottom: 5px;
                        border-radius: 50%;
                        -webkit-border-radius: 50%;
                        -moz-border-radius: 50%;
                        -ms-border-radius: 50%;
                        -o-border-radius: 50%;
                    }

                    &:hover {
                        i {
                            background: $theme-color;
                        }
                    }
                }
            }

            .text {
                color: $text-color;
                font-family: $body-font;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 26px;
                margin-top: 0px;
                margin-bottom: 10px;
            }

            h6 {
                color: $theme-color;
                font-family: $title-font;
                font-size: 18px;
                font-style: normal;
                font-weight: 700;
                line-height: 1;
                text-transform: capitalize;
                margin-bottom: 24px;
            }

            .theme-btn.style6 {
                padding: 13px 15px; 
            }
        }

        
        @include breakpoint (max-md) {
            flex-direction: column;
            padding: 25px;
            .dishes-thumb { 
                width: 100%; 
                border-radius: 10px;
                -webkit-border-radius: 10px;
                -moz-border-radius: 10px;
                -ms-border-radius: 10px;
                -o-border-radius: 10px;

                img {
                    height: 300px;
                    width: 100%;
                    border-radius: 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    -ms-border-radius: 10px;
                    -o-border-radius: 10px;
} 
            }

            .dishes-content { 
                text-align: center;
                padding: 25px 15px 0;  
                a {
                    h3 { 
                        font-size: 25px;  
                    }
                }
    
                .icon {
                    position: absolute;
                    top: 15px;
                    right: 15px;
                    width: 35px;
    
                    a {
                        transition: all 0.4s;
                        -webkit-transition: all 0.4s;
                        -moz-transition: all 0.4s;
                        -ms-transition: all 0.4s;
                        -o-transition: all 0.4s;
    
                        i {
                            width: 30px;
                            height: 30px;
                            line-height: 30px;
                            text-align: center;
                            background: $theme-color-2;
                            color: $white;
                            margin-bottom: 5px;
                            border-radius: 50%;
                            -webkit-border-radius: 50%;
                            -moz-border-radius: 50%;
                            -ms-border-radius: 50%;
                            -o-border-radius: 50%;
                        }
    
                        &:hover {
                            i {
                                background: $theme-color;
                            }
                        }
                    }
                }
    
                .text {
                    color: $text-color;
                    font-family: $body-font;
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 26px;
                    margin-top: 0px;
                    margin-bottom: 10px;
                }
    
                h6 {
                    color: $theme-color;
                    font-family: $title-font;
                    font-size: 18px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 1;
                    text-transform: capitalize;
                    margin-bottom: 24px;
                }
    
                .theme-btn.style6 {
                    padding: 13px 15px; 
                }
            }
        }
    }
}

.dishes-thumb {
    position: relative;
    text-align: center;

    img {
        position: relative;
        z-index: 2;  

        @include breakpoint (max-xs) {
            max-width: 100%;
        }
    }

    .circle-shape {
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
    }
}


