/* WooCommerce Category Tabs Styles */

.wc-category-tabs-wrapper {
    margin: 30px 0;
    width: 100%;
}

/* Tabs Navigation */
.wc-category-tabs-nav {
    background: #fff;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.wc-tabs-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
    padding: 10px 0;
    gap: 10px;
}

.wc-tabs-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.wc-tabs-scroll-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.wc-tabs-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.wc-tabs-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Individual Tab Buttons */
.wc-category-tab {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    flex-shrink: 0;
}

.wc-category-tab:hover {
    color: #333;
    background: #f8f8f8;
}

.wc-category-tab.active {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 3px solid #2c3e50;
}

.wc-category-tab:focus {
    outline: none;
}

/* Products Container */
.wc-category-products-container {
    position: relative;
    min-height: 400px;
}

.wc-category-products {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.wc-category-products.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Loading Spinner */
.wc-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Product Grid Adjustments */
.wc-category-products .products {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-category-products .products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wc-category-products .products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wc-category-products .products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wc-category-products .products.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.wc-category-products .products.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive Design */
@media screen and (max-width: 1499px) {
    .wc-category-products .products.columns-4,
    .wc-category-products .products.columns-5,
    .wc-category-products .products.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .wc-category-tab {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .wc-category-products .products.columns-3,
    .wc-category-products .products.columns-4,
    .wc-category-products .products.columns-5,
    .wc-category-products .products.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .wc-category-tab {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .wc-category-products .products {
        grid-template-columns: 1fr !important;
    }
}

/* Alternative Style - Boxed Tabs (uncomment to use) */
/*
.wc-category-tab {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    margin-right: 10px;
}

.wc-category-tab:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.wc-category-tab.active {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}
*/

/* Pagination Styles - Modern Circular Design */
.wc-category-pagination {
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 20px;
}

.pagination-info {
    text-align: left;
    color: #e91e63;
    font-size: 15px;
    margin-bottom: 25px;
    font-weight: 500;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wc-pagination-btn {
    background: transparent;
    border: none;
    color: #333;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-pagination-btn:hover {
    color: #2196f3;
}

.wc-pagination-btn.page-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #333;
}

.wc-pagination-btn.page-number:hover {
    background: #f5f5f5;
}

.wc-pagination-btn.page-number.active {
    background: #2196f3;
    color: white;
}

.wc-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wc-pagination-btn.prev-page,
.wc-pagination-btn.next-page {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    font-size: 18px;
    color: #333;
}

.wc-pagination-btn.prev-page:hover,
.wc-pagination-btn.next-page:hover {
    background: #f5f5f5;
}

.wc-pagination-btn.prev-page:disabled,
.wc-pagination-btn.next-page:disabled {
    opacity: 0.2;
}

.page-dots {
    color: #999;
    padding: 0 5px;
    font-weight: bold;
}

/* Responsive Pagination */
@media screen and (max-width: 768px) {
    .pagination-links {
        gap: 5px;
    }
    
    .page-numbers {
        gap: 5px;
    }
    
    .wc-pagination-btn.page-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .wc-pagination-btn.prev-page,
    .wc-pagination-btn.next-page {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .pagination-info {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .pagination-links {
        gap: 4px;
    }
    
    .page-numbers {
        gap: 4px;
    }
    
    .wc-pagination-btn.page-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .wc-pagination-btn.prev-page,
    .wc-pagination-btn.next-page {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .page-dots {
        padding: 0 2px;
    }
}
