* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(to right, #153765, #2a5a9a);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.control-btn {
    background-color: white;
    color: #153765;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.control-btn i {
    margin-right: 8px;
}

.search-box {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-input {
    padding: 12px 20px;
    width: 100%;
    max-width: 500px;
    border: 2px solid #153765;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-header {
    background-color: #153765;
    color: white;
    padding: 15px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.category-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.products {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.main-product {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.main-product:last-child {
    border-bottom: none;
}

.main-product-title {
    font-size: 1.2rem;
    color: #153765;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sub-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sub-product {
    background-color: #f0f5ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #153765;
    transition: all 0.2s ease;
}

.sub-product:hover {
    background-color: #d9e5ff;
    transform: scale(1.05);
}

.product-details {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 2.5rem;
    color: #153765;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.1rem;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.highlight {
    background-color: #ffeb3b;
    padding: 2px 5px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .category-header {
        font-size: 1.2rem;
    }

    .stats {
        flex-direction: column;
    }
}

/* Animation for category toggle */
.rotate {
    transform: rotate(180deg);
}

/* Fade in animation for search results */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
