/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

nav a:hover {
    color: #3498db;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 18px;
}

/* Filters */
.filters {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-bottom: 30px;
}

.filters .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filters label {
    font-weight: bold;
    margin-right: 10px;
}

.filter-btn {
    background-color: white;
    border: 2px solid #ddd;
    padding: 8px 16px;
    margin-right: 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.filters select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Products Section */
.products {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.rating {
    color: #f39c12;
    font-size: 16px;
    margin-bottom: 10px;
}

.price {
    margin: 15px 0;
}

.new-price {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-card button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.product-card button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 15px;
    }
    
    nav a {
        margin: 0 10px;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .filters .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters > div {
        margin-bottom: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
    
    .banner {
        padding: 40px 20px;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .filter-btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}
