/* Advanced Tabs Widget Styles */

/* 继承Elementor Tabs Widget的基础样式 */
.elementor-widget-advanced-tabs-widget .elementor-tabs {
    /* 保持与原生Tabs Widget相同的样式 */
}

/* 产品展示样式 */
.category-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.product-item {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.product-info {
    padding: 15px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007cba;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 8px;
}

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

.product-price ins {
    text-decoration: none;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
}

/* 无产品时的样式 */
.no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .category-products {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 确保与Elementor Tabs Widget完全兼容 */
.elementor-widget-advanced-tabs-widget .elementor-tabs .elementor-tab-title {
    cursor: pointer;
}

.elementor-widget-advanced-tabs-widget .elementor-tabs .elementor-tab-content {
    display: none;
}

.elementor-widget-advanced-tabs-widget .elementor-tabs .elementor-tab-content.elementor-active {
    display: block;
}

/* 加载状态 */
.category-products.loading {
    opacity: 0.6;
    pointer-events: none;
}

.category-products.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 自定义滚动条 */
.category-products::-webkit-scrollbar {
    width: 6px;
}

.category-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-products::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.category-products::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 