@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
    font-family: 'Poppins', Arial, sans-serif;
}


body {
    background-color: #f3eff5;
    overflow-x: auto;
    overflow-y: auto;
    min-height: 100vh;
}

.main-content {
    transition: all 0.3s ease;
    background-color: #a6c5b1;
    min-height: 100vh;
    position: relative;
    padding-top: 2rem;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.search-logo {
    margin-bottom: 2rem;
}

.search-logo img {
    width: 200px;
    height: auto;
}

.search-box {
    display: flex;
    margin: 0 auto 2rem;
    max-width: 800px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    border-radius: 50px;
}

.search-header {
    color: #333;
    font-size: 1.2rem;
    text-align: center;
}

/* Update the filter buttons styling for centered alignment */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Center the buttons */
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 650px; /* Increased from 600px to accommodate keyword button */
    margin: 0 auto; /* Center the container itself */
    margin-top: 1.5rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap; /* Prevent text wrapping */
}

.filter-btn:hover {
    background: #3da35d;
    color: white;
    transform: translateY(-2px);
}

.filter-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .search-logo img {
        width: 120px;
    }

    .search-box {
        margin: 0 auto 1.5rem;
    }

    .filter-buttons {
        gap: 0.5rem;
        justify-content: center; /* Changed back to center */
        padding-bottom: 5px;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Override the grid layout at smaller screens but maintain center alignment */
@media (max-width: 480px) {
    .filter-buttons {
        display: flex;
        grid-template-columns: none;
        flex-wrap: wrap;
        overflow-x: auto;
        justify-content: center; /* Keep centered */
        gap: 0.5rem;
    }

    .filter-btn {
        width: auto;
        justify-content: center;
        padding: 0.6rem 0.8rem; /* Make buttons slightly smaller */
    }
}

/* Make buttons slightly more compact on smaller screens */
@media (max-width: 576px) {
    .filter-btn {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .filter-btn i {
        font-size: 1rem;
    }
}

/* Hide scrollbar but keep functionality */
.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-buttons {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.filter-option {
    cursor: pointer;
    flex: 0 0 auto; /* Don't allow shrinking or growing */
}

/* Search button styling */
.search-submit {
    margin-top: 2rem;
}

.search-btn {
    background-color: #3da35d;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background-color: #2e8246;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Filter option styling */
.filter-option {
    cursor: pointer;
}

.filter-btn.active {
    background-color: #3da35d;
    color: white;
    font-weight: 500;
}

/* Popular categories section */
.popular-categories {
    margin-top: 3rem;
    padding: 2rem 0 2rem 0;
    border-top: 1px solid #e0e0e0;
    
}

.popular-categories h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.collection-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.collection-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    width: 170px;
    background-color: #f5f5f5;
    padding: 1.2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.collection-link i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #3da35d;
    transition: all 0.3s ease;
}

.collection-link span.collection-title {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.collection-link span.collection-desc {
    font-size: 0.85rem;
    text-align: center;
    color: #666;
    line-height: 1.3;
}

.collection-link:hover {
    background-color: #3da35d;
    transform: translateY(-5px);
}

.collection-link:hover i,
.collection-link:hover span.collection-title,
.collection-link:hover span.collection-desc {
    color: white;
}

@media (max-width: 768px) {
    .collection-links {
        gap: 1rem;
    }
    
    .collection-link {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .collection-links {
        gap: 0.8rem;
    }
    
    .collection-link {
        width: 130px;
        padding: 1rem 0.8rem;
    }
    
    .collection-link i {
        font-size: 1.5rem;
    }
    
    .collection-link span.collection-title {
        font-size: 0.9rem;
    }
    
    .collection-link span.collection-desc {
        font-size: 0.75rem;
    }
}