/* Modern Archive Page Design - Header Styles */

/* Products Header */
.woocommerce-products-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Category Header */
.category-header-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.2;
}

.category-header-subcats {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #e9ecef transparent;
}

.category-header-subcats::-webkit-scrollbar {
    height: 4px;
}

.category-header-subcats::-webkit-scrollbar-track {
    background: transparent;
}

.category-header-subcats::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 2px;
}

.category-header-subcats::-webkit-scrollbar-thumb:hover {
    background: var(--primary-background);
}

/* Subcategory Tabs */
.subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.subcategory-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--secondary-background);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.subcategory-tab:hover {
    background: var(--primary-background-hover);
    color: var(--primary-text);
    transform: translateY(-1px);
}

.subcategory-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
}

/* Product Features */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 1rem;
}

.product-feature {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

/* Products Header with Sticky Functionality */
.products-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    will-change: transform;
}

/* Add shadow when sticky for better visual separation */
.products-header.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure the sticky header works well on all screen sizes */
@media (max-width: 768px) {
    .products-header {
        /* Override responsive styles to maintain sticky behavior */
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

@media (max-width: 640px) {
    .products-header {
        /* Override responsive styles to maintain sticky behavior */
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

@media (max-width: 480px) {
    .products-header {
        /* Override responsive styles to maintain sticky behavior */
        position: sticky;
        top: 0;
        z-index: 100;
    }
}