/*======================================
EIVOX PRODUCTS CSS
Version: 1.0
======================================*/


/*======================================
PRODUCT GRID
======================================*/

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:24px;
}


/*======================================
PRODUCT CARD
======================================*/

.product-card{
    position:relative;
    display:flex;
    flex-direction:column;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    overflow:hidden;
    transition:var(--transition);
    box-shadow:var(--shadow-sm);
}

.product-card:hover{
    transform:translateY(-6px);
    border-color:var(--primary);
    box-shadow:var(--shadow-lg);
}


/*======================================
PRODUCT IMAGE
======================================*/

.product-image{
    position:relative;
    aspect-ratio:1/1;
    overflow:hidden;
    background:var(--surface);
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.product-card:hover .product-image img{
    transform:scale(1.06);
}


/*======================================
PRODUCT BADGES
======================================*/

.product-badge{
    position:absolute;
    top:15px;
    left:15px;
    padding:6px 12px;
    border-radius:999px;
    background:var(--danger);
    color:#fff;
    font-size:12px;
    font-weight:600;
}

.product-favorite{
    position:absolute;
    top:15px;
    right:15px;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(10px);
    border-radius:50%;
    color:#fff;
    cursor:pointer;
    transition:var(--transition);
}

.product-favorite:hover{
    background:var(--primary);
}


/*======================================
PRODUCT CONTENT
======================================*/

.product-content{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:20px;
    flex:1;
}

.product-category{
    font-size:var(--font-sm);
    color:var(--primary);
    font-weight:var(--weight-semibold);
}

.product-title{
    font-size:1.1rem;
    font-weight:var(--weight-bold);
    color:var(--text);

    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.product-description{
    color:var(--text-muted);
    font-size:var(--font-sm);

    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}


/*======================================
PRICE
======================================*/

.product-price{
    display:flex;
    align-items:center;
    gap:10px;
}

.product-price .current{
    font-size:1.35rem;
    font-weight:700;
    color:var(--success);
}

.product-price .old{
    text-decoration:line-through;
    color:var(--text-muted);
}


/*======================================
RATING
======================================*/

.product-rating{
    display:flex;
    align-items:center;
    gap:6px;
    color:#fbbf24;
    font-size:.9rem;
}


/*======================================
PRODUCT FOOTER
======================================*/

.product-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:auto;
}


/*======================================
STOCK
======================================*/

.product-stock{
    font-size:13px;
    color:var(--text-muted);
}

.in-stock{
    color:var(--success);
}

.out-stock{
    color:var(--danger);
}


/*======================================
RESPONSIVE
======================================*/

@media(max-width:767px){

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:16px;
    }

    .product-content{
        padding:16px;
    }

    .product-title{
        font-size:1rem;
    }

    .product-price .current{
        font-size:1.15rem;
    }

}

@media(max-width:480px){

    .products-grid{
        grid-template-columns:1fr;
    }

}