* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f0f2f5;
    padding: 20px;
}

#container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    gap: 20px;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 18px;
    margin: 10px 0;
    height: 50px;
    overflow: hidden;
}

.card p {
    font-size: 14px;
    color: #555;
    height: 60px;
    overflow: hidden;
    margin-bottom: 10px;
}

.card .price {
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 8px;
}

.card .rating {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.card .btn {
    display: inline-block;
    padding: 8px 12px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card .btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}