/* 商家店铺页面样式 */

/* 店铺banner部分 */
.store-banner {
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.store-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.store-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-info {
    flex: 1;
    min-width: 300px;
}

.store-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark);
}

.store-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge i {
    margin-right: 5px;
}

.badge.verified {
    background-color: #e3f9f7;
    color: var(--primary);
}

.badge.premium {
    background-color: #fff8e1;
    color: #ffc107;
}

.badge.fast-ship {
    background-color: #e8f5e9;
    color: #4caf50;
}

.store-actions {
    display: flex;
    gap: 15px;
}

.follow-btn, .message-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.follow-btn {
    background-color: var(--primary);
    color: white;
    border: none;
}

.follow-btn:hover {
    background-color: #009b8e;
}

.message-btn {
    background-color: white;
    color: var(--gray);
    border: 1px solid #e0e0e0;
}

.message-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 店铺内容部分 */
.store-content {
    padding: 40px 0;
}

.store-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.store-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.store-tabs li {
    position: relative;
}

.store-tabs li a {
    display: block;
    padding: 15px 25px;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s;
}

.store-tabs li a:hover {
    color: var(--primary);
}

.store-tabs li.active a {
    color: var(--primary);
}

.store-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.store-search {
    position: relative;
}

.store-search input {
    width: 280px;
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.store-search input:focus {
    border-color: var(--primary);
    outline: none;
}

.store-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

.store-search button:hover {
    color: var(--primary);
}

/* 筛选栏 */
.store-filter {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.filter-label {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

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

.filter-options a {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.filter-options a:hover {
    color: var(--primary);
}

.filter-options a.active {
    color: var(--primary);
    font-weight: 500;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-item {
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.tag.new {
    background-color: var(--primary);
    color: white;
}

.tag.hot {
    background-color: #ff6b6b;
    color: white;
}

.tag.discount {
    background-color: #ffc107;
    color: white;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.product-title a {
    color: var(--dark);
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    margin-bottom: 10px;
}

.product-price .current {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}

.product-price .original {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
    margin-top: auto;
}

.product-meta .rating {
    color: #ffc107;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: white;
    color: var(--gray);
    font-size: 14px;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f5f5f5;
    color: var(--primary);
}

.page-link.active {
    background-color: var(--primary);
    color: white;
}

.page-link.next {
    width: auto;
    padding: 0 15px;
}

.page-dots {
    color: var(--gray);
    padding: 0 10px;
}

/* 店铺介绍部分 */
.store-about {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.store-about .container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.about-content {
    flex: 2;
    min-width: 300px;
}

.about-content h2, .contact-info h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.store-certificates {
    margin-top: 30px;
}

.store-certificates h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
}

.certificate-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.certificate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.certificate-item img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.certificate-item span {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.contact-info li i {
    width: 20px;
    margin-right: 15px;
    color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .store-header {
        justify-content: center;
        text-align: center;
    }
    
    .store-info {
        text-align: center;
    }
    
    .store-stats {
        justify-content: center;
    }
    
    .store-badges {
        justify-content: center;
    }
    
    .store-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .store-nav {
        flex-direction: column;
    }
    
    .store-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .store-search {
        width: 100%;
    }
    
    .store-search input {
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .store-logo {
        width: 80px;
        height: 80px;
    }
    
    .store-info h1 {
        font-size: 24px;
    }
    
    .store-tabs li a {
        padding: 15px 15px;
    }
    
    .certificate-list {
        justify-content: center;
    }
} 