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

/* Product page */
.product-section {
    font-family: 'Poppins', sans-serif;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
    min-height: 100vh;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 10px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #1976d2);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Filter Buttons - Responsive */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    padding: 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.filter-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.filter-btn {
    background: white;
    border: 2px solid #e3f2fd;
    color: #666;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Prevent buttons from shrinking */
    white-space: nowrap; /* Keep text in one line */
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2196f3, #1976d2);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: white;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
}

.filter-btn.active::before {
    left: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border: 3px solid #0052A4;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 82, 164, 0.1);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
}

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

.product-card.hidden {
    display: none;
}

.product-card.show {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

.product-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #999;
    font-size: 18px;
    font-weight: 500;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 82, 164, 0.1), rgba(0, 82, 164, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.product-image span {
    color: #666;
    font-size: 1rem;
    text-align: center;
    z-index: 2;
    position: relative;
}

.product-label {
    background-color: #0052A4;
    color: white;
    padding: 15px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 40px 15px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .filter-buttons {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .product-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-label {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .filter-buttons {
        padding: 0 10px 15px;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}