@import url(../../style.css);
@import url(../../css/aside.css);

.card{
    width: 20rem;
    height: 100%;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem;
    height: fit-content;
}

.card-text{
    line-height: 1.5rem;
}

.card-header{
    display: flex;
}

.cross{
    background-color: var(--bg-color);
    border: none;
    outline: none;
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;
}

.cross:active{
    box-shadow: var(--normal-inset-shadow);
}

.fas, .far{
    font-size: 1rem;
    color: var(--primary-color);
}

.card-ecom{
    padding: 0;
}

.product-img{
    position: relative;
    width: 20rem;
    display: flex;
    overflow: hidden;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.product-img img{
    width: 100%;
    height: 100%;
    object-fit:cover;
    border-radius: inherit;
}

.product-img-fill {
    position: relative;
    padding: 1rem;
}

.badge-and-wishlist{
    display: flex;
    margin:0 1rem;
}

.card-badge{
    font-size: 1.3rem;
    color: var(--primary-color);
    box-shadow: var(--normal-inset-shadow);
    padding:0 .7rem;
    border-radius: 2rem;
    height: fit-content;
    width: fit-content;
}

.wishlist{
    height: 2rem;
    min-width: 2rem;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-color);
    cursor: pointer;
}

.card-alt-badge{
    position: absolute;
    top:1.2rem;
    left: 0;
    padding:0 .7rem;
    padding-left: 1rem;
    height: fit-content;
    width: fit-content;
    font-size: 1.3rem;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    color: var(--primary-color);
    background-color: var(--bg-color);
}

.alt-wishlist{
    position: absolute;
    top:1rem;
    right: 1rem;
    height: 2rem;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-color);
    cursor: pointer;
}

.alt-wishlist .fa-heart, .wishlist .fa-heart{
    font-size: 1rem;
}


.alt-wishlist:active, .wishlist:active{
    box-shadow: var(--normal-inset-shadow);
}

.card-footer{
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 12rem;
}

.card-footer-hr{
    height: auto;
}


.product-title{
    font-size: 2.5rem;
    line-height: 2.5rem;
}

.product-desc{
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.btn-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price{
    font-size: 2rem;
}

.cart{
    background-color: var(--bg-color);
    border: none;
    outline: none;
    padding:.5rem 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
}

.cart:active{
    box-shadow: var(--normal-inset-shadow);
}

.fa-cart-plus{
    padding-right: .5rem;
}

.product-title-overlay{
    position: absolute;
    bottom: .7rem;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;
}

/* Horizontal Card  */

.card-ecom-horizontal{
    display: flex;
    width: auto;
}


.product-header{
    display: flex;
    justify-content: space-between;
}

.hamburger .fa-bars, .hamburger .fa-times{
    font-size: 1.5rem;
}

/* Media Queries */

@media screen and (max-width:900px) {
    .product-img-horizontal{
        width: clamp(12rem, 30vw, 20rem);
        height: 100%;
    }

    .product-content-hr{
        margin: 0;
    }

    .product-title-hr{
        font-size: 2rem;
        line-height: 2rem;
    }

    .product-desc-hr{
        font-size: 1.2rem;
    }

    .price{
        font-size: 1.3rem;
    }

    .cart-hr{
        padding:.2rem .5rem;
    }

    .wishlist{
        min-width: 30px;
        min-height: 30px;
    }

    .card-badge-hr{
        line-height: 1.5rem;
    }
} 
