/* WooCommerce Dynamic Category Tabs Styles */
.wc-dynamic-category-tabs {
    margin-bottom: 30px;
}

.category-tabs-container {
    margin-bottom: 20px;
    background-color: #f5f5f5;
    position: relative;
    z-index: 99;
}

.category-tabs-container.sticky {
    position: fixed;
    top: 32px; /* Adjust for admin bar */
    left: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
    background-color: #fff;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.category-tabs::-webkit-scrollbar {
    height: 3px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background-color: #ccc;
}

.category-tab {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.category-tab a {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, background 0.3s;
}

.category-tab.active a {
    color: #333;
    font-weight: 700;
    border-bottom: 2px solid #333;
}

.category-tab a:hover {
    color: #333;
    background-color: rgba(0,0,0,0.03);
}

.products-container {
    position: relative;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.load-more-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-button:hover {
    background-color: #eee;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .category-tab a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .category-tabs-container.sticky {
        top: 0;
    }
}