

.item {
    height: 285px;
    position: relative;
    width: 23%;
    box-shadow: rgb(237 67 112 / 4%) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    border-radius: 12px;
    background: white;
    padding: 16px;
    border:1px solid #ffffff;
}

.item:hover{
    border:1px solid var(--hover-color);
}

.item a{
    text-decoration: none;
}


.item a img{
    width: 100%;
    height: 125px;
    border-radius: 12px;
    object-fit: cover;
}

.item-details{
    padding: 10px 0px;
}

.item-details h5{
    font-weight: 400;
    color: #1d1d1d;
    font-size: 15px;
    height: 32px;
}

.item-details .weight{
    color: #7e7a7a;
    font-size: 14px;
    font-weight: 300;
}

.item-details .price span:first-child {
    color: #1d1d1d;
    font-weight: 400;
}

.item-details .price span:last-child {
    color: grey;
    font-size:12px;
    text-decoration:line-through;
}

.cart-controls{
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    padding: 0px 20px 0px;
    display: flex;
}

.item-price{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.item-price p{
    margin-bottom: 0;
}

.cart-controls span{
    flex:1;
    display:flex;
    justify-content: center;
    align-items: center;
    height:44px;
    color: var(--button-color);
}

.cart-controls span:nth-child(1){
    border:1px solid var(--border-color);
    border-right:0;
    border-top-right-radius:0;
    border-bottom-right-radius:0;
    background: var(--button-light-color);
}

.cart-controls span:nth-child(2){
    border:1px solid var(--border-color);
    border-radius:0;
}

.cart-controls span:nth-child(3){
    border:1px solid var(--border-color);
    border-left:0;
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    background: var(--button-light-color);
}




@media screen and (max-width: 768px) {
    .hero,
    .shop-by,
    .recommended-products {
        padding: 0px;
    }

    

    .shop-by-items div a img {
        background-color: white;
        border-radius: 20%;
        height: 70px;
        width: 70px;
        border: 4px solid #f3ebed;
    }

    .item {
        width: 48% !important;
        height: 280px;
        margin-bottom: 16px;
    }

    .item a h5,
    .item a p,
    .item a span {
        background-color: white;
        font-size: 14px;
    }

    .item a {
        display: block;
        width: auto;
        height: 360px;
    }
    .item a img {
        width: 100%;
        height: 103px;
        border-radius: 12px;
        object-fit: cover;
    }

    .item .btn-danger {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        margin-bottom: 12px;
        border-radius: 20px;
        width: 100%;
        bottom: 0px;
    }

    .shop-by-items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 8px;
    }

    .shop-by h2 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .shop-by p {
        font-size: 12px;
        margin-bottom: 0;
        color: #787474;
    }

    .shop-by-items div a span {
        font-size: 12px;
        line-height: 14px;
    }

    .best-sellers {
        display: flex;
        width: 100%;
        gap: 10px;
    }

    .cart-controls span {
        flex: 1;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .item-price p {
        width: 50%;
    }
    .item-details .weight {
        text-align: end;
    }
}


