﻿* {
    font-family: "IRANSansWeb";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.title-latestProducts {
    color: #000;
    font-size: 30px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}
.col-lg-5th {
    flex: 0 0 20%;
    max-width: 20%;
}


a.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
    
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    outline: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    a.product-card:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,0.09);
        transform: translateY(-2px);
        border: 1px solid rgba(86, 86, 86, 0.3);
    }

    a.product-card:focus,
    a.product-card:active {
        outline: none;
        border: 1px solid rgba(86, 86, 86, 0.3);
    }
.product-card {
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 30px;
    right: 29px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transform: scale(.8);
    transition: all .25s ease;
}


.product-card:hover .favorite-btn {
    opacity: 1;
    transform: scale(1);
}


.favorite-btn.liked {
    opacity: 1;
}


.favorite-btn.pop {
    animation: likePop .3s ease;
}

@keyframes likePop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}


.price-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    margin: 0 15px 18px 15px;
}

    .price-box:hover {
        border: 2px solid #2A3256;
    }

.price-text {
    font-weight: 500;
    color: #000;
    font-size: 14px;
}

.old-price {
    font-size: 9px;
    font-weight: 400;
    color: #999 !important;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

    .old-price::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background-color: #999;
        transform: translateY(-50%);
    }

.product-image {
    position: relative;
    width: 100%;
    padding: 25px 45px;
    background-color: #fff;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }


.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    padding: 25px 45px;
   /* transform: scale(1.05);*/
    transition: opacity 0.5s ease, transform 0.5s ease;
}



.img-main {
    transition: opacity 0.4s ease;
}


.single-image {
    position: relative;
    opacity: 1 !important;
}


.product-image:hover .img-hover {
    opacity: 1;
}

.product-image:hover .img-main {
    opacity: 0;
}

    .product-image::after {
        content: "";
        position: absolute;
        bottom: 10px; 
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #ddd;
    }


.product-info {
    text-align: center;
    padding: 10px 5px;
    text-decoration: none;
}

.product-title {
    font-weight: 500;
    color: #000;
    font-size: 16px;
    margin: 8px 0;
    text-decoration: none;
}

.product-subtitle {
    color: #555;
    font-size: 12px;
    margin-bottom: 10px;
}




/*.price-dot {
    width: 5px;
    height: 5px;
    background-color: #2A3256;
    border-radius: 50%;
    position: absolute;
    left: 41px;
    top: -2.78px;
}*/


.price-icon img {
    width: auto;
    height: 13px;
    max-height: 13px;
    object-fit: contain;
    -webkit-object-fit: contain;
    display: block;
}


.price-text {
    font-weight: 500;
    color: #000;
}


.breadcrumb-simple {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: -1px;
}

    .breadcrumb-simple a {
        text-decoration: none;
        color: #6E6D6D;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

.breadcrumb-separator {
    display: flex;
    align-items: center;
    height: 32.438px;
    flex-shrink: 0;
}

.products-header {
    margin-left: -1px;
    margin-right: -1px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    border-radius: 10px;
    border: 2px solid #2F4497;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

    .pagination-wrapper .page-btn {
        padding: 8px 14px;
        border: none;
        background: #fff;
        cursor: pointer;
        transition: 0.3s;
        font-size: 14px;
    }

        .pagination-wrapper .page-btn.active {
            border-radius: 10px;
            background: #2F4497;
            color: #fff;
            pointer-events: none;
            padding: 5px 13px;
        }

        .pagination-wrapper .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

.page-btn img.page-icon {
    width: 6px;
    height: 12px;
    flex-shrink: 0;
    fill: #2F4497;
}

.page-btn.prev img.page-icon {
    transform: rotate(180deg);
}


.cards-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cards {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
}

.cards-img {
    position: relative;
    height: 450px;
    object-fit: cover;
    display: block;
    bottom: -8px;
    width: 100%;
    border-radius: 5px;
}

.cards-body {
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-align: center;
    padding: 26px 10px 10px 10px;
    border: 1px solid #2F4497;
    border-radius: 10px 10px 10px 10px;
}

.card-price {
    display: flex;
    flex-direction: column;
}

.cards-title {
    font-size: 13px;
    white-space: nowrap;
    text-align: right;
    margin-bottom: 15px;
    padding: 4px 0 0 0;
    font-weight: 800;
    color: #1E1E1E;
}

.cards-text {
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
    font-weight: 800;
    margin-bottom: 0;
    color: #1E1E1E;
}

    .cards-text del {
        font-size: 11px;
    }

.favorite-btn img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(32%) saturate(1046%) hue-rotate(190deg) brightness(92%) contrast(92%);
}


.product-badge {
    position: absolute;
    top: 35px;
    left: 14px;
    background: #2A3256;
    color: #fff;
    padding: 10px 17px 7px 17px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 3;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}


    .product-badge.discount {
        font-size: 12px;
    }


    .product-badge.new {
        opacity: 0.9;
    }



.image-logo {
    position: absolute;
    bottom: 49px;
    left: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid #222E59;
    border-radius: 0 50px 50px 0;
    padding: 3px 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-logo img {
        height: 38px;
        width: auto;
    }

@media (min-width: 1026px) and (max-width: 1600px) {
    .container {
        max-width: 1175px !important;
    }

    .cards-title {
        font-size: 13px;
        margin-bottom: 15px;
        padding: 4px 0 0 0;
        font-weight: 800;
        color: #1E1E1E;
    }
}



@media (max-width: 1300px){
    .product-image {
        position: relative;
        width: 100%;
        padding: 25px 23px;
        background-color: #fff;
        overflow: hidden;
    }
    .price-box {
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        position: relative;
        margin: 0 15px 18px 15px;
    }

        .price-box:hover {
            border: 2px solid #2A3256;
        }

    .price-text {
        font-weight: 500;
        color: #000;
        font-size: 14px;
    }

    .old-price {
        font-size: 8px;
        font-weight: 400;
        color: #999 !important;
        text-decoration: none;
        position: relative;
        display: inline-block;
    }

        .old-price::after {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            width: 100%;
            height: 1px;
            background-color: #999;
            transform: translateY(-50%);
        }
}

@media (max-width: 1030px) and (min-width: 700px) {
    .col-lg-5th {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
    .product-image {
        position: relative;
        width: 100%;
        padding: 25px 23px;
        background-color: #fff;
        overflow: hidden;
    }
}

@media (max-width: 700px) {

    .favorite-btn {
        position: absolute;
        top: 19px;
        right: 19px;
        width: 27px;
        height: 27px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
        opacity: 0;
        transform: scale(.8);
        transition: all .25s ease;
    }
    .img-hover {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.4s ease;
        padding: 19px;
    }
    .col-lg-5th {
        flex: 0 0 100%;
        max-width: 50%;
    }
    .old-price {
        font-size: 12px;
        font-weight: 400;
        color: #999 !important;
        text-decoration: none;
        position: relative;
        display: inline-block;
    }

    .image-logo img {
        height: 40px !important;
        width: auto !important;
        padding-bottom: 0 !important;
    }

}
@media (max-width:450px) {
    .product-badge {
        position: absolute;
        top: 22px;
        left: 12px;
        background: #2A3256;
        color: #fff;
        padding: 10px 14px 7px 14px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        z-index: 3;
        backdrop-filter: blur(6px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }

    .title-latestProducts {
        color: #000;
        font-size: 16px;
        font-style: normal;
        font-weight: 800;
        line-height: normal;
    }

    .breadcrumb-simple {
        margin-right: 12px;
    }

    .products-header {
        margin-left: 12px;
        margin-right: 12px;
    }

    .sort-menu {
        right: -72px !important;
        left: 0;
    }


    .product-card img {
        width: 100%;
    /*    height: auto !important;*/
        object-fit: cover;
        display: block;
    }



    .price-text {
        font-weight: 500;
        color: #000;
        font-size: 11px;
    }

    .bestSell-card img {
        width: 100%;
        height: 180px !important;
        object-fit: cover;
        display: block;
    }

    .price-box {
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        gap: 15px;
        position: relative;
        margin: 0 7px 18px 7px;
    }

    .product-title {
        font-weight: 500;
        color: #000;
        font-size: 11px;
        margin: 8px 0;
        text-decoration: none;
    }

    .product-card {
        flex: 0 0 155px;
        scroll-snap-align: start;
    }

    .bestSell-card {
        min-width: 152px;
        scroll-snap-align: start;
    }

    .product-image {
        position: relative;
        width: 100%;
        padding: 19px 19px;
        background-color: #fff;
    }

    .Bestseller-image {
        position: relative;
        width: 100%;
        padding: 19px 19px;
        background-color: #fff;
    }

    .price-icon img {
        width: auto;
        height: 13px;
        max-height: 13px;
        object-fit: contain;
        -webkit-object-fit: contain;
        display: block;
    }

    .image-logo {
        position: absolute;
        bottom: 36px;
        left: 0;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(10px);
        border: 1px solid #222E59;
        border-radius: 0 50px 50px 0;
        padding: 3px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .image-logo img {
            height: 31px !important;
            width: auto !important;
            padding-bottom: 0 !important;
        }

}
