/* 顶部导航 */
.top-nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
    font-size: 12px;
    color: #666;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-nav a {
    color: #666;
    text-decoration: none;
    margin-right: 15px;
}

.top-nav a:hover {
    color: #e4393c;
}

/* 店铺头部 */
.shop-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 20px;
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.shop-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.shop-details h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.shop-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.tag.gold {
    background: #ffd700;
    color: #333;
}

.shop-stats {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

/* 分类导航 */
.category-nav {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.category-list li {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
}

.category-list li:hover,
.category-list li.active {
    background: #667eea;
    color: white;
}

/* 筛选栏 */
.filter-bar {
    background: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-count {
    color: #666;
    font-size: 14px;
}

.product-count strong {
    color: #e4393c;
    margin: 0 5px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
    padding: 6px 15px;
    font-weight: bold;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    width: 100%;
    height: 260px;
    background: #f8f8f8;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e4393c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-wishlist:hover {
    background: #fff0f0;
    color: #e4393c;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
    color: #333;
}

.product-shop {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-shop .crown {
    color: #ffd700;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 22px;
    font-weight: bold;
    color: #e4393c;
}

.current-price::before {
    content: '¥';
    font-size: 14px;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart {
    width: 36px;
    height: 36px;
    border: 1px solid #e4393c;
    background: white;
    color: #e4393c;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart:hover {
    background: #e4393c;
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.quantity-selector input {
    width: 50px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.add-cart-btn {
    flex: 1;
    padding: 8px;
    background: #e4393c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 13px;
}

.add-cart-btn:hover {
    background: #c83232;
}

/* 响应式 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .shop-info {
        flex-direction: column;
        text-align: center;
    }

    .category-list {
        overflow-x: auto;
        gap: 10px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}