.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:30px;
}

.product-card{
    position:relative;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
    transition:.3s;
    padding:10px;
    width:100%;
}

.product-card:hover{
    transform:translateY(-6px);
}

.product-card img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
}

.product-card h3{
    margin:10px 0 6px;
    font-size:15px;
}

.price{
    color:#e63946;
    font-size:16px;
    font-weight:bold;
    margin-bottom:10px;
}

.product-actions{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.buy-btn{
    background:#ff9800;
    color:#fff;
    border:none;
    padding:8px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
    font-weight:bold;
}

.buy-btn:hover{
    background:#e68900;
}

.cart-btn{
    background:#222;
    color:#fff;
    border:none;
    padding:8px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
}

.cart-btn:hover{
    background:#000;
}

.products{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.products img{
    width:100%;
    height:auto;
}

.size-overlay{
    position:absolute;
    top:8px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:4px;
    background:rgba(255,255,255,.9);
    padding:4px 8px;
    border-radius:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.2);
}

.size-overlay span{
    background:#000;
    color:#fff;
    font-size:10px;
    font-weight:bold;
    padding:4px 7px;
    border-radius:50%;
    cursor:pointer;
}

.size-overlay span:hover{
    background:#ff3c00;
}

/* Keep 3 columns on phones */
@media (max-width:768px){
    .product-grid{
        grid-template-columns:repeat(3,1fr);
        gap:6px;
    }

    .product-card{
        padding:6px;
    }

    .product-card img{
        height:90px;
    }

    .product-card h3{
        font-size:11px;
    }

    .price{
        font-size:13px;
    }

    .buy-btn,
    .cart-btn{
        font-size:10px;
        padding:5px;
    }
}