﻿.box_shop_type .img_box {
    flex: 0 0 calc(25% - 16px);
    overflow: hidden;
    /* border-radius: 50%;   */
    position: relative;
    height: 200px;
}
.box_shop_type {
    overflow-x: auto;
    gap: 16px;
}

.box_shop_type .img_box .small_img { 
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}
.box_shop_type .img_box .small_img::before {
    content: "";
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    pointer-events: none;
    background-color: #0000007d;
    transition: width 0.4s ease;
    animation: slideInFromLeft 1s ease-out;
}
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.box_shop_type .img_box .small_img::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    background-color: #00000007;
}
.box_shop_type .title {
    font-size: 12px;
    text-align: center;
    position: absolute;
    top:45%;
    color: #fff;
    background-color: var(--primary-top-bg-color);
    width: 100%;
    padding: 5px;
    opacity: 0;
    transition: all 0.4s ease;
}
.box_shop_type .title a{
    color: #fff;
}
.box_shop_type .title a:hover{
    color: #fff;
}
.box_shop_type .img_box .small_img:hover {
    -webkit-clip-path: inset(0% 0% 0% 0%);
    clip-path: inset(0% 0% 0% 0%);
}

/* ============= */
.box_shop_type_1,
.box_shop_type_2,
.box_shop_type {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

.box_shop_type_1 .shop_type_1 {
    width: 100%;
}

.box_shop_type_1 .shop_type_1 .img_box {
    width: 100%;
    padding: 10px;
    cursor: pointer;

}

.box_shop_type_1 .flickity-prev-next-button {
    background-color: var(--primary-top-bg-color);
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.box_shop_type_1 .flickity-prev-next-button .arrow {
    fill: #fff;
}

.box_shop_type_1 .shop_type_1 .small_img {
    width: 50%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.box_shop_type_1 .shop_type_1 .small_img::after {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    pointer-events: none;
    background-color: #00000009;
}

.box_shop_type_1 .shop_type_1 .type_url_1 {
    width: 50%;
    background-color: #fff;
    padding: 5px;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
}

/* ---------------------- 2              -------------- */
.box_shop_type_2 {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 5px;
    flex-wrap: wrap;
}

.box_shop_type_2 .img_box {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    flex-wrap: wrap;
}

.box_shop_type_2 .shop_type_2 {
    width: 60%;
}

.box_shop_type_2 .shop_type_2 .img_box {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    background: linear-gradient(to right, var(--primary-top-bg-color), #ccc);
}

.box_shop_type_2 .right_img {
    width: 40%;
    height: 300px;
    overflow: hidden;
    background-color: #d3d3d3;
}

.box_shop_type_2 .right_img:hover {
    opacity: .8;
}

.box_shop_type_2 .flickity-prev-next-button {
    background-color: var(--primary-top-bg-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.box_shop_type_2 .flickity-prev-next-button .arrow {
    fill: #fff;
}

.box_shop_type_2 .shop_type_2 .small_img {
    width: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.box_shop_type_2 .shop_type_2 .type_url_1 {
    width: 50%;
    padding: 5px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

/* ---------------       3   ----------------------    */

.box_shop_type_3 {
    max-width: 1200px;
    margin: 10px auto;

}

.box_shop_type_3 .shop_type_1 {
    width: 100%;
}

.box_shop_type_3 .shop_type_1 .img_box {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    background: linear-gradient(45deg, var(--primary-top-bg-color), #ccc);

}

.box_shop_type_3 .flickity-prev-next-button {
    background-color: var(--primary-top-bg-color);
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.box_shop_type_3 .flickity-prev-next-button .arrow {
    fill: #fff;
}

.box_shop_type_3 .shop_type_1 .small_img {
    width: 50%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #fff;
}

.box_shop_type_3 .shop_type_1 .small_img::after {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    pointer-events: none;
    background-color: #00000009;
}

.box_shop_type_3 .shop_type_1 .type_url_1 {
    width: 50%;
    background-color: #fff;
    padding: 5px;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
}

/* ----------------------------------4---------------------- */
.box_shop_type_4 {
    max-width: 1200px;
    display: flex;
    margin: 20px auto;
    align-items: center;
    background-color: #eee;
    padding: 10px;
    border: 1px solid #eee
}

.box_shop_type_4 .left_img {
    width: 50%;
    height: 500px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

.box_shop_type_4 .left_img .small_img {
    width: 50%;
    height: 250px;
}

.box_shop_type_4 .left_img .small_img::after {
    width: 50%;
    height: 250px;
}

.box_shop_type_4 .right_img {
    width: 50%;
    height: 500px;
    overflow: hidden;
    padding-left: 10px;
}

.box_shop_type_4 .right_img .item_box {
    width: 60px;
    padding: 20px;
    background-color: var(--primary-top-bg-color);
    color: #fff;
    font-weight: 600;
    margin-right: 20px;
    border-radius: 10px;
    font-size: 20px;
}

.box_shop_type_4 .right_img .item_box1 {
    color: #333;
    font-weight: 600;
    margin-right: 20px;
    font-size: 18px;
}

.box_shop_type_4 .right_img a {
    display: block;
    margin-top: 20px;
    text-transform: capitalize;
    padding: 10px 35px;
    border: 1px solid var(--primary-top-bg-color);
}

/* --------------------- 55555       ---------------- */
.box_shop_type_5 {
    padding-top: 30px;
    background-color: #e7e5e4;
    padding: 10px;
}

.box_shop_type_5 .img_box {
    max-width: 1200px;
    margin: 0 auto;
    border: 0 solid #e7e5e4;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.box_shop_type_5 .img_box .small_img {
    width: 500px;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}

.box_shop_type_5 .img_box .product_typeF {
    width: 500px;
    height: 500px;
    padding: 10px;
}

.box_shop_type_5 .product_typeF p {
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
}

.box_shop_type_5 .product_typeF a {
    width: 300px;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--primary-top-bg-color);
    color: #fff;
    font-size: 14px;
    text-align: center;
}

/* ==================================        6      ================== */
.box_shop_type_6 {
    max-width: 1200px;
    margin: 10px auto;
}

.box_shop_type_6 .img_box {
    width: 47%;
    height: 600px;
    overflow: hidden;
    border: 1px solid #e7e5e4;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    cursor: pointer;
}

.box_shop_type_6 .img_box .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.box_shop_type_6 .new_in {
    opacity: 0;
    /* background-color: rgba(0, 0, 0, 0.2); */
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    padding: 20px;
    color: #fff;
    transform: translate(-50%, -50%);
}

.box_shop_type_6 .new_in a {
    padding: 10px 20px;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 10px;
}

.box_shop_type_6 .new_in a:hover {
    border-bottom: 2px solid #fff;
    background-color: #fff;
    color: #222;
}

@media screen and (max-width: 3400px) and (min-width: 850px) { 
    .box_shop_type .img_box:hover .title {
        opacity: 1;  
    }
    .box_shop_type .img_box :hover::before {
        display: block;
        width: 100%;
    }
    .box_shop_type_3 .img_box:hover .product_typeF {
        opacity: 1;
        transform: translateY(-40px);
        transition: all 0.3s ease;
    }

    .box_shop_type_3 .product_typeF:hover {
        background-color: #fff;
        color: #0d0d0d;
        border: 1px solid var(--primary-top-bg-color);
        transition: all 0.3s ease;
    }

    .box_shop_type_6 .img_box:hover .mask {
        opacity: 1;
    }

    .box_shop_type_6 .img_box:hover .new_in {
        opacity: 1;
    }

    .box_shop_type_4 .right_img a:hover {
        background-color: var(--primary-top-bg-color);
        color: #fff;
    }
}

@media screen and (max-width: 1320px) and (min-width: 850px) {
    .box_shop_type_3 .img_box {
        width: 25%;
    }

    .box_shop_type_3 .small_img {
        max-width: 100%;
        height: 300px;
    }

    .box_shop_type_6 .img_box {
        height: 300px;
    }
}

@media screen and (max-width:840px) {
    .box_shop_type_1 .shop_type_1 .small_img {
        height: 200px;
        font-size: 12px;
    }

    .box_shop_type_1 .shop_type_1 .type_url_1 {
        font-size: 12px;
    }

    .box_shop_type_2 .img_box {
        height: 200px;
    }

    .box_shop_type_2 .right_img,
    .box_shop_type_2 .shop_type_2 {
        width: 100%;
        height: 200px;
    }

    /* ====================   3 =============== */
    .box_shop_type_3 .shop_type_1 .small_img {
        height: 200px;
    }

    /* ====================   4 =============== */
    .box_shop_type_4 {
        flex-wrap: wrap;
        /* height: 510px; */
    }

    .box_shop_type_4 .left_img,
    .box_shop_type_4 .right_img {
        /* height: 250px; */
        width: 100%;
    }

    /* ---------------- 5 ------------- */
    .box_shop_type_5 .img_box .small_img {
        width: 100%;
        height: 200px;
    }

    .box_shop_type_5 .img_box .product_typeF {
        width: 100%;
        height: 150px;
    }

    .box_shop_type_5 .product_typeF p {
        font-weight: 600;
        font-size: 16px;
        text-transform: uppercase;
    }

    .box_shop_type_5 .product_typeF a {
        padding: 8px;
        font-size: 12px;
    }

    .box_shop_type_6 .img_box {
        height: 200px;
    }
}