/* WooCommerce Category Tabs - Frontend Styles */

.wct-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Tabs Wrapper - Horizontally Centered */
.wct-tabs-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.wct-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.wct-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 8px;
    min-width: 120px;
}

.wct-tab:hover {
    background-color: #f8f8f8;
}

.wct-tab.active {
    background-color: #f5f5f5;
    position: relative;
}

.wct-tab.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #c9a86c;
    border-radius: 2px;
}

.wct-tab-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wct-tab-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wct-tab:hover .wct-tab-icon img {
    transform: scale(1.05);
}

.wct-tab-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.wct-tab.active .wct-tab-label {
    color: #c9a86c;
}

/* Products Grid */
.wct-products-wrapper {
    position: relative;
    min-height: 200px;
}

.wct-products {
    display: grid;
    gap: 25px;
    transition: opacity 0.3s ease;
}

.wct-products.wct-loading-state {
    opacity: 0.5;
    pointer-events: none;
}

/* Column configurations */
.wct-products.wct-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

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

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

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

/* Product Card */
.wct-product {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wct-product:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.wct-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.wct-product-image {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
}

.wct-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wct-product:hover .wct-product-image img {
    transform: scale(1.05);
}

.wct-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.wct-product-attributes {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    line-height: 1.4;
}

.wct-product-attributes span {
    display: block;
}

.wct-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.wct-product-price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.wct-product-price ins {
    text-decoration: none;
    color: #c9a86c;
}

.wct-price-from {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-transform: capitalize;
}

/* Loading Spinner */
.wct-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    z-index: 10;
}

.wct-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c9a86c;
    border-radius: 50%;
    animation: wct-spin 1s linear infinite;
}

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

/* No Products Message */
.wct-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 16px;
}

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

    .wct-tabs {
        gap: 20px;
    }

    .wct-tab {
        padding: 12px 18px;
        min-width: 100px;
    }

    .wct-tab-icon {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 768px) {
    .wct-tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0 15px 20px;
    }

    .wct-tabs {
        gap: 15px;
    }

    .wct-tab {
        padding: 10px 15px;
        min-width: 90px;
    }

    .wct-tab-icon {
        width: 45px;
        height: 45px;
    }

    .wct-tab-label {
        font-size: 12px;
    }

    .wct-products.wct-columns-3,
    .wct-products.wct-columns-4,
    .wct-products.wct-columns-5,
    .wct-products.wct-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wct-products {
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .wct-tab {
        padding: 8px 12px;
        min-width: 80px;
    }

    .wct-tab-icon {
        width: 40px;
        height: 40px;
    }

    .wct-tab-label {
        font-size: 11px;
    }

    .wct-products.wct-columns-2,
    .wct-products.wct-columns-3,
    .wct-products.wct-columns-4,
    .wct-products.wct-columns-5,
    .wct-products.wct-columns-6 {
        grid-template-columns: 1fr;
    }

    .wct-product-title {
        font-size: 14px;
    }

    .wct-product-price {
        font-size: 16px;
    }
}
