/* 店铺详情页专属布局样式 */
.store-detail-page {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧店铺信息区 */
.store-info-sidebar {
    width: 240px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.store-header {
    text-align: center;
    margin-bottom: 20px;
}

.store-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: block;
    background: #f5f5f5;
    object-fit: cover;
}

.store-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.store-tag {
    background: #e4393c;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.store-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.store-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.store-meta .label {
    color: #999;
    display: inline-block;
    width: 70px;
}

.store-stars {
    margin-top: 8px;
    color: #ff9900;
    font-size: 16px;
}

.store-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-store {
    padding: 10px;
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    display: block;
}

.btn-store:hover {
    background: #f5f5f5;
}

.btn-store-primary {
    background: #e4393c;
    color: #fff;
    border-color: #e4393c;
}

.btn-store-primary:hover {
    background: #d03434;
    border-color: #d03434;
}

/* 右侧商品列表区 */
.store-product-main-area {
    flex: 1;
    min-width: 0;
}

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
	max-width: calc(220px * 4 + 20px * 3);
	margin: 0 auto;
}

.store-product-card {
    width: 240px;              /* ✅ 固定宽度 */
    height: 350px;      
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.store-product-image {
    width: 100%;
    height: 240px;
    object-fit: fill;
    background: #f8f8f8;
}

.store-product-info {
    padding: 16px;
}

.store-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-product-price {
    color: #e4393c;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.store-product-sales {
    font-size: 12px;
    color: #999;
}

/* 分页样式 */
.store-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.store-page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.store-page-btn.active {
    background: #e4393c;
    color: #fff;
    border-color: #e4393c;
}

.store-page-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .store-detail-page {
        flex-direction: column;
    }
    .store-info-sidebar {
        width: 100%;
        position: static;
    }
    .store-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}