body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.search-box input {
    width: 80%;
    padding: 12px 20px;
    margin-bottom: 30px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #007bff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative; /* Added to help with badge alignment */
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

/* New Promo Badge Styles */
.promo-badge {
    background-color: #e74c3c;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Base styling for all badges */
.badge {
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Red style for Promotion */
.promo-badge {
    background-color: #e74c3c;
    color: white;
}

/* Green style for Regular Price */
.regular-badge {
    background-color: #28a745;
    color: white;
}

/* Optional: Keep the actual price text green as well */
.price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}