* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #f8f9fa, #e8ecef);
    padding: 20px;
    min-height: 100vh;
}

header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.header-icons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.header-icons i {
    font-size: 1.8rem;
    color: #e74c3c;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-icons i:hover {
    transform: scale(1.2);
    color: #c0392b;
}

.header-icons .fa-shopping-cart {
    margin-left: -5px;
}

.header-icons .fa-user {
    margin-right: -5px;
}

h1 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    line-height: 60px;
}

.filter {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 10px;
    margin-bottom: 25px;
    text-align: center;
    border-radius: 8px;
    width: 100%;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.filter:hover {
    transform: scale(1.02);
}

.filter h2 {
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 12px;
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.5s ease;
    border-radius: 6px;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.product-type {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.9rem;
}

.discount {
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    header {
        height: 50px;
    }
    h1 {
        font-size: 1.4rem;
        line-height: 50px;
    }
    .filter {
        height: 5vh;
        padding: 8px;
    }
    .filter h2 {
        font-size: 1.2rem;
    }
    .image-container {
        height: 150px;
    }
    .product-info {
        padding: 12px;
    }
    .product-name {
        font-size: 1rem;
    }
    .product-type {
        font-size: 0.85rem;
    }
    .current-price {
        font-size: 1rem;
    }
    .original-price {
        font-size: 0.85rem;
    }
    .discount {
        font-size: 0.75rem;
    }
    .header-icons {
        padding: 0 10px;
    }
    .header-icons i {
        font-size: 1.6rem;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        gap: 10px;
    }
    header {
        height: 40px;
    }
    h1 {
        font-size: 1.2rem;
        line-height: 40px;
    }
    .filter {
        height: 5vh;
        padding: 6px;
    }
    .filter h2 {
        font-size: 1rem;
    }
    .image-container {
        height: 120px;
    }
    .product-card {
        padding: 8px;
    }
    .header-icons {
        padding: 0 5px;
    }
    .header-icons i {
        font-size: 1.4rem;
        padding: 5px;
    }
    .product-name {
        font-size: 0.95rem;
    }
    .product-type {
        font-size: 0.8rem;
    }
    .current-price {
        font-size: 0.95rem;
    }
    .original-price {
        font-size: 0.8rem;
    }
    .discount {
        font-size: 0.7rem;
    }
}