/* Single product card */
.single-product-card {
    border: 1px solid var(--greyBorder1);
    border-radius: 6px;
    overflow: hidden;
    width: 400px;
    display: flex !important;
    flex-direction: column;
}
.single-product-img {
    position: relative;

    .discount-percentage {
        position: absolute;
        top: 20px;
        left: 0;
        padding: 10px;
        background: var(--yellow1);
        border-radius: 0 6px 6px 0;
        transition: all 0.4s ease;
    }
    .discount-percentage.out-of-stock {
        background: var(--red1);
        color: var(--white1);
    }
    .single-product-favorites {
        position: absolute;
        top: 20px;
        right: 10px;
        height: 40px;
        width: 40px;
        color: var(--blue1);
        /* background: var(--white1); */
        background-color: rgba(255, 255, 255, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: all 0.4s ease;

        svg {
            height: 30px;
            width: 30px;
            transition: fill 0.4s ease;
        }
    }
    /* .single-product-favorites.favorited {
        opacity: 1;
    } */
    
    .single-product-favorites:hover {
        /* opacity: 1; */
        background-color: var(--white1);
        color: var(--blue1);
        cursor: pointer;
    }
    a {
        display: block;
        height: 250px;
        width: 400px;
        aspect-ratio: 16/10;
        transition: all 0.4s ease;
    }
    a img,
    a picture {
        height: 100%;
        width: 100%;
        -o-object-position: center;
           object-position: center;
        -o-object-fit: contain;
           object-fit: contain;
    }
    .single-product-favorites.favorited svg {
        color: var(--blue1);
        fill: var(--blue1);
    }
}
.single-product-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
    transition: all 0.4s ease;

    img {
        height: 30px;
        width: auto;
        max-width: 190px;
        -o-object-fit: contain;
           object-fit: contain;
        -o-object-position: center;
           object-position: center;
        transition: all 0.4s ease; 
    }
    .body6 {
        width: 100%;
    }
}
.single-product-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    left: 20px;
    right: 20px;
    /* width: 100%; */
    background: var(--greyBorder1);
}
.single-product-stock {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    transition: all 0.4s ease;

    .stock {
        display: flex;
        align-items: center;
        gap: 4px;

        img {
            margin-right: 4px;
            height: 12px;
            width: 12px;                       
        }
    }
    .delivery {
        display: flex;
        align-items: center;
        gap: 4px;

        img {
            height: 24px;
            width: 24px;                        
        }
    }

    .body4 {
        color: var(--greyText1);
    }
}
.single-product-shop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 16px;
    margin-top: auto;
    transition: all 0.4s ease;
}
.single-product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-regular {
    color: var(--greyText1);
    text-decoration: line-through;
}

.price-sale {
    color: var(--red1);
    display: flex;
    gap: 4px;
    align-items: center;
}
.price-sale .body4 {
    color: var(--greyText1);
}
.var-price {
    color: var(--black1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.var-price .body4 {
    color: var(--greyText1);
}

.single-product-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;

    .body4 {
        color: var(--greyText1);
    }
}
.single-product-specs > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.free-product-points-price {
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--blue2);
    color: var(--blue1);
    display: flex;
    gap: 4px;
}

.free-product-points-price .body4, 
.free-product-points-price .body3 {
    color: var(--blue1);
}

.add-to-cart-points {
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: none;
}

.add-to-cart-points:has(.enough-points) {
    background-color: var(--blue1);
    transition: 0.3s ease all;
    cursor: pointer;
}

.add-to-cart-points:has(.missing-points) {
    background-color: var(--greyBackground1);
}

.enough-points {
    color: var(--white1);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 16px;
    text-align: center;
}

.add-to-cart-points:has(.enough-points):hover {
    background-color: var(--hoverBlue1);
    transition: 0.3s ease all;
}

.missing-points {
    padding: 16px;
    color: var(--black1)
}

/* Favorites page*/
.favorite-products-list .single-product-card,
.archive-product-container .single-product-card {
    width: auto;
}


/* responsive */
@media (max-width: 767px) {
    .single-product-card {
        width: 280px;
    }
    .single-product-img {

        .discount-percentage {
            top: 16px;
        }
        .single-product-favorites {
            top: 16px;
            right: 6px;
        }
        a {
            display: block;
            height: 200px;
            width: 280px;
            transition: all 0.4s ease;
        }
    }
    .single-product-title {
        padding: 16px 16px 12px;

        img {
            height: 26px;
        }
    }
    .single-product-stock {
        padding: 12px 16px;
    }
    .single-product-shop {
        padding: 0 16px 16px;
    }
    
}