.recently-viewed-products {
    padding: 15px 0;
}

.recently-viewed-products.hide {
    display: none;
}

/* Template 01 */
@media only screen and (min-width: 768px) {
    recently-viewed-products[data-name="template01"] .ec-newItemRole {
        padding: 20px 0;
    }
}

recently-viewed-products[data-name="template01"] .ec-newItemRole .ec-newItemRole__listItem:first-child a {
    color: black;
}

/* Template 02 */
recently-viewed-products[data-name="template02"] *, recently-viewed-products[data-name="template02"] *::before, recently-viewed-products[data-name="template02"] *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

recently-viewed-products[data-name="template02"] h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

recently-viewed-products[data-name="template02"] h5 {
    font-size: 1.25rem;
}

recently-viewed-products[data-name="template02"] p {
    margin-top: 0;
    margin-bottom: 1rem;
}

recently-viewed-products[data-name="template02"] ul {
    padding-left: 2rem;
}

recently-viewed-products[data-name="template02"] ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

recently-viewed-products[data-name="template02"] a {
    color: #0d6efd;
    text-decoration: underline;
}

recently-viewed-products[data-name="template02"] a:hover {
    color: #0a58ca;
}

recently-viewed-products[data-name="template02"] img, recently-viewed-products[data-name="template02"] svg {
    vertical-align: middle;
}

recently-viewed-products[data-name="template02"] .img-fluid {
    max-width: 100%;
    height: auto;
}

recently-viewed-products[data-name="template02"] *, recently-viewed-products[data-name="template02"] *::before, recently-viewed-products[data-name="template02"] *::after {
    margin: 0;
    padding: 0;
}

recently-viewed-products[data-name="template02"] ::selection {
    background-color: #b3d4fc;
    color: #000;
    text-shadow: none;
}

recently-viewed-products[data-name="template02"] ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

recently-viewed-products[data-name="template02"] a {
    color: #262834;
}

recently-viewed-products[data-name="template02"] a:hover {
    color: #262834;
}

recently-viewed-products[data-name="template02"] .rating {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2px;
}

recently-viewed-products[data-name="template02"] .bg-new {
    background-color: #0f8fac !important;
}

recently-viewed-products[data-name="template02"] .arrow-label-wrap {
    position: absolute;
    left: 0;
    top: calc(6px + (14 - 6) * ((100vw - 320px) / (1920 - 320)));
}

recently-viewed-products[data-name="template02"] .arrow-label-wrap .arrow-label {
    font-weight: 600;
    font-size: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));
    line-height: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
    padding: 6px calc(10px + (20 - 10) * ((100vw - 320px) / (1920 - 320))) 6px calc(7px + (10 - 7) * ((100vw - 320px) / (1920 - 320)));
    color: #fff;
    position: relative;
    display: inline-block;
    clip-path: polygon(100% 0, 85% 50%, 100% 100%, 0 100%, 0 0);
}

recently-viewed-products[data-name="template02"] .arrow-label-wrap .arrow-label.bg-theme-sun::after {
    border-color: #ffba00;
    border-right-color: transparent;
}

recently-viewed-products[data-name="template02"] .arrow-label-wrap .arrow-label.bg-theme-theme::after {
    border-color: #0f8fac;
    border-right-color: transparent;
}

recently-viewed-products[data-name="template02"] .rating {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    margin-top: -3px;
}

recently-viewed-products[data-name="template02"] li {
    display: inline-block;
    font-size: 14px;
}

recently-viewed-products[data-name="template02"] p {
    font-size: 14px;
    line-height: 18px;
}

recently-viewed-products[data-name="template02"] a {
    color: #262834;
    -webkit-transition: 0.5s ease;
    transition: 0.5s ease;
    text-decoration: none;
}

recently-viewed-products[data-name="template02"] a:hover {
    text-decoration: none;
    -webkit-transition: 0.5s ease;
    transition: 0.5s ease;
}

recently-viewed-products[data-name="template02"] a:focus {
    outline: none;
}

recently-viewed-products[data-name="template02"] h5 {
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
    font-weight: 400;
}

recently-viewed-products[data-name="template02"] .product-card {
    overflow: hidden;
}

recently-viewed-products[data-name="template02"] .product-card .img-box {
    position: relative;
    overflow: hidden;
}

recently-viewed-products[data-name="template02"] .product-card .img-box img {
    width: 100%;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .rating {
    left: calc(7px + (10 - 7) * ((100vw - 320px) / (1920 - 320)));
    bottom: calc(7px + (10 - 7) * ((100vw - 320px) / (1920 - 320)));
    padding: calc(4px + (8 - 4) * ((100vw - 320px) / (1920 - 320))) 0;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    gap: 0;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .rating span {
    padding: 0 calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    font-size: calc(10px + (14 - 10) * ((100vw - 320px) / (1920 - 320)));
}

recently-viewed-products[data-name="template02"] .product-card .img-box .rating span:first-of-type {
    border-right: 1px solid rgba(82, 82, 82, 0.2);
}

recently-viewed-products[data-name="template02"] .product-card .img-box .rating span svg {
    width: calc(10px + (14 - 10) * ((100vw - 320px) / (1920 - 320)));
    height: calc(10px + (14 - 10) * ((100vw - 320px) / (1920 - 320)));
    stroke: #0f8fac;
    fill: #0f8fac;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap {
    position: absolute;
    top: 7px;
    right: -64px;
    opacity: 0;
    z-index: 2;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    gap: calc(4px + (7 - 4) * ((100vw - 320px) / (1920 - 320)));
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a {
    width: calc(25px + (34 - 25) * ((100vw - 320px) / (1920 - 320)));
    height: calc(25px + (34 - 25) * ((100vw - 320px) / (1920 - 320)));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 100%;
    position: relative;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    z-index: 1;
    -webkit-box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a::after {
    content: "";
    position: absolute;
    background-color: #0f8fac;
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    z-index: -1;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a::before {
    content: "";
    position: absolute;
    background-color: #fff;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    z-index: -1;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a svg {
    width: calc(12px + (16 - 12) * ((100vw - 320px) / (1920 - 320)));
    height: calc(12px + (16 - 12) * ((100vw - 320px) / (1920 - 320)));
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    stroke: #262834;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a:hover {
    background-color: transparent;
    color: #fff;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a:hover svg {
    stroke: #fff;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a:hover::after {
    -webkit-transform: scale(1);
    transform: scale(1);
}

recently-viewed-products[data-name="template02"] .product-card .img-box .option-wrap li a:hover::before {
    -webkit-transform: scale(0);
    transform: scale(0);
}

recently-viewed-products[data-name="template02"] .product-card .img-box .thumbnail-img {
    padding: calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: calc(2px + (10 - 2) * ((100vw - 320px) / (1920 - 320)));
    background-color: #fff;
    position: absolute;
    bottom: -64px;
    left: 0;
    right: 0;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    -webkit-box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .thumbnail-img li {
    overflow: hidden;
    cursor: pointer;
    border-radius: 100%;
    border: 1px solid transparent;
    padding: 2px;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

recently-viewed-products[data-name="template02"] .product-card .img-box .thumbnail-img li img {
    background: linear-gradient(165.23deg, #e5e6e9 8.65%, #eaebed 87.81%);
    width: calc(22px + (37 - 22) * ((100vw - 320px) / (1920 - 320)));
    border-radius: 100%;
    height: calc(22px + (37 - 22) * ((100vw - 320px) / (1920 - 320)));
    -o-object-fit: contain;
    object-fit: contain;
}

recently-viewed-products[data-name="template02"] .product-card .content-box {
    padding: 10px 0 0 0;
    margin-bottom: -5px;
}

recently-viewed-products[data-name="template02"] .product-card .content-box p {
    font-size: 12px;
    color: #767676;
}

recently-viewed-products[data-name="template02"] .product-card .content-box h5 {
    font-size: 14px;
    font-weight: bold;
    color: #262834;
    overflow: hidden;
    white-space: nowrap;
    max-width: max-content;
    text-overflow: ellipsis;
}

recently-viewed-products[data-name="template02"] .product-card .content-box span, recently-viewed-products[data-name="template02"] .product-card .content-box del {
    line-height: 26px;
    font-size: 12px;
}

recently-viewed-products[data-name="template02"] .product-card .content-box span {
    color: #262834;
    margin-right: calc(3px + (10 - 3) * ((100vw - 320px) / (1920 - 320)));
    display: inline-block;
}

recently-viewed-products[data-name="template02"] .product-card .content-box del {
    color: #0f8fac;
}

recently-viewed-products[data-name="template02"] .product-card:hover .option-wrap {
    opacity: 1;
    right: 7px;
}

recently-viewed-products[data-name="template02"] .product-card:hover .thumbnail-img {
    bottom: 0;
    background-color: #d3d3d4;
}

recently-viewed-products[data-name="template02"] button {
    border: none;
    background: none;
}

recently-viewed-products[data-name="template02"] .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

recently-viewed-products .swiper-pagination-dot {
    text-align: center;
    margin-top: 25px;
}