.fav-wrap
{
    width: 100%;
    margin:24px auto;
    padding:0 16px;
    
}
.fav-head
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px
}
.fav-grid
{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:16px
}

.card
{
    border:1px solid #eee;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    display:flex;
    flex-direction:column
}
.card img
{
    width:100%;
    height:180px;
    object-fit:cover
}
.card-body
{
    padding:12px;
    display:flex;
    flex-direction:
    column;gap:6px
}
.price
{
    font-weight:800
}
.card-actions
{
    display:flex;
    gap:8px;
    margin-top:8px
}
.btn-clear-all {
    padding:8px 12px;
    border-radius:10px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    font-size:14px
}
.btn-link {
    border-color:#2234e4;
    color:#2234e4
}
.muted {
    color:#6b7280
}
.btn-remove-fav {
    background: #ff4d4f;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-remove-fav:hover {
    background: #d9363e;
}
/* Grid cho trang yêu thích */
#fav-root {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 40px 60px;
}

/* Item */
.fav-item {
    display: flex;
    justify-content: center;
}

/* Card */
.product-card {
    width: 100%;
    max-width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-img img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.product-content {
    padding: 12px;
    text-align: center;

}
.product-content a {
    text-decoration: none;
}
.product-content a:hover {
    text-decoration: underline;
}
.product-name {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;

}

.price-row {
    margin-bottom: 10px;
}

.btn-remove-fav {
    background: #ff4d4f;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
