* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 40px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    transform: translateY(-8px) scale(1.02); 
    border-color: #288ad6;
}

.product-img {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-img img {
    max-width: 90%;
    max-height: 100%;
    transition: 0.5s;
    filter: brightness(100%); 
}

.product-item:hover .product-img img {
    filter: brightness(110%) contrast(105%);
}
 
.product-info {
    text-align: left; 
}

.name {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    height: 40px; 
}

.price {
    color: #bf081f; 
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.rating {
    font-size: 12px;
    color: #ff9800;
    margin-bottom: 8px;
}

.count { color: #888; margin-left: 5px; }

.promo {
    font-size: 12px;
    color: #444;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    z-index: 2;
}
.orange { background-color: #f57224; }
.red { background-color: #d0021b; }