/* Home Page - Progressive Filter Tabs Styles */

/* Filter Tabs Container */
.products-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

/* Back Button Styles */
.filter-tab.back-btn {
    background: rgba(0, 123, 255, 0.1) !important;
    border: none !important;
    color: #007bff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    white-space: normal !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.filter-tab.back-btn:hover {
    background: rgba(0, 123, 255, 0.2) !important;
    color: #0056b3 !important;
}

.filter-tab.back-btn::after {
    display: none !important;
}

/* Back Button Visibility Control */
#back-button {
    display: none !important;
}

#back-button.show {
    display: inline-flex !important;
}

/* No Products Found Message */
.no-products-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    width: 100%;
    background: #f8f9fa;
    border-radius: 20px;
    border: 2px dashed #dee2e6;
}

.no-products-content {
    text-align: center;
    color: #6c757d;
    max-width: 400px;
    padding: 40px 20px;
}

.no-products-content svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-products-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.no-products-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Filter Tabs Container Animation */
#filter-tabs-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    transition: all 0.4s ease;
}

/* Filter Tab Base Styles */
.filter-tab {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Tab Animation States */
.filter-tab.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.filter-tab.fade-in {
    animation: fadeInTab 0.4s ease-out;
}

/* Fade In Animation */
@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Interaction States */
.filter-tab:hover {
    background: none;
    color: #007bff;
}

.filter-tab.active {
    position: relative;
    color: #007bff;
}

/* Active Tab Indicator */
.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .no-products-message {
        height: 350px;
    }
}