/**
 * Category Filter Tabs Styling
 * Premium, elegant, Apple-inspired design
 */

.tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.tab-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
}

.tab-btn:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.tab-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.3);
}

.tab-btn.active:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Dropdown for subcategories */
.tab-item {
    position: relative;
    display: inline-block;
}

.tab-item.has-dropdown .tab-btn {
    padding-right: 32px;
}

.tab-dropdown {
    position: absolute !important;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9999 !important;
}

.tab-item:hover .tab-dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}