/**
 * 商品瀑布流样式 - 简化版
 */

/* 商品卡片基础样式 */
.wf-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wf-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.wf-card-link {
    text-decoration: none;
    display: block;
}

.wf-card-image {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.wf-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.wf-card-info {
    padding: 12px;
}

.wf-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wf-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wf-current-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4d;
}

.wf-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.wf-card-sales {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.wf-buy-btn {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff8c60);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.wf-buy-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7043);
    transform: scale(1.02);
}

/* 加载更多按钮 */
.wf-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

.wf-load-more-btn {
    padding: 10px 30px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wf-load-more-btn:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* 加载动画 */
.wf-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.wf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: wf-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes wf-spin {
    to { transform: rotate(360deg); }
}

/* 无商品提示 */
.wf-no-products,
.wf-no-more {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 底部区块 */
.wf-footer-block {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

/* 暗色模式 */
.dark .wf-product-card {
    background: #2a2a2a;
}

.dark .wf-card-title {
    color: #e0e0e0;
}

.dark .wf-original-price {
    color: #777;
}

.dark .wf-load-more-btn {
    background: #3a3a3a;
    color: #ccc;
    border-color: #4a4a4a;
}

.dark .wf-load-more-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

/* 容器扩展 */
.wf-container-extend {
    margin: -20px -20px -20px -20px !important;
    width: calc(100% + 40px) !important;
    position: relative;
    z-index: 1;
    overflow: visible !important;
}