/* 商店样式 */
.shop-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

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

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

.goods-image {
    position: relative;
    overflow: hidden;
}

.goods-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.goods-info {
    padding: 15px;
}

.goods-name {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.goods-name a {
    color: #333;
    text-decoration: none;
}

.goods-name a:hover {
    color: #007bff;
}

.goods-price {
    margin-bottom: 15px;
}

.current-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

.market-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
    font-size: 14px;
}

.goods-actions {
    display: flex;
    gap: 8px;
}

.btn-add-cart, .btn-buy-now {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-add-cart {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-add-cart:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-buy-now {
    background: #007bff;
    color: white;
}

.btn-buy-now:hover {
    background: #0056b3;
}

/* 筛选和排序 */
.filters {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-option {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-option:hover,
.filter-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.empty-state p {
    margin: 0 0 20px 0;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .goods-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .goods-image img {
        height: 150px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-options {
        width: 100%;
    }
}
