/* ===== Mall Shop Page (scoped by class names) ===== */

.shop-hero {
    position: relative;
    background: var(--hero) center/cover no-repeat;
    min-height: 190px;
    border-radius: 16px;
    overflow: hidden;
}

.shop-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.55));
    z-index: 1;
    pointer-events: none;
}

.shop-hero-banner {
    position: relative;
    z-index: 2; /* 一定要比 mask 大 */
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: #fff;
}

.shop-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.85);
    background: #fff;
}

.shop-hero-meta {
    min-width: 0;
}

.shop-name {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .5px;
}

.shop-sub {
    margin-top: 4px;
    opacity: .92;
    max-width: 70ch;
    line-height: 1.35;
}

.shop-body {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 14px;
}

@media (max-width: 992px) {
    .shop-body {
        grid-template-columns: 1fr;
    }
}

.shop-tools {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.shop-kpi {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: .95rem;
    margin-bottom: 10px;
}

.shop-tools-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tool-input, .tool-select, .tool-btn {
    height: 40px;
    border-radius: 10px;
}

.tool-input {
    flex: 1 1 240px;
    border: 1px solid #ddd;
    padding: 0 12px;
    min-width: 220px;
}

.tool-select {
    flex: 0 0 180px;
    border: 1px solid #ddd;
    padding: 0 10px;
}

.tool-btn {
    border: 0;
    padding: 0 14px;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.shop-sidecard {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    height: fit-content;
}

    .shop-sidecard .side-block + .side-block {
        margin-top: 12px;
    }

    .shop-sidecard .side-label {
        font-size: .85rem;
        color: #6c757d;
        margin-bottom: 4px;
    }

    .shop-sidecard .side-text {
        font-size: .95rem;
        white-space: pre-wrap;
        word-break: break-word;
        line-height: 1.45;
    }

.shop-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 992px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .shop-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.shop-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #eee;
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .shop-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.10);
    }

.shop-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f6f6f6;
}

    .shop-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.shop-badge-soldout {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.70);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.shop-card-body {
    padding: 10px 12px 12px;
}

.shop-card-title {
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
}

.shop-card-price {
    margin-top: 6px;
    color: #111;
    font-weight: 900;
}

.empty-box {
    margin-top: 12px;
    border: 1px dashed #ddd;
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    background: #fafafa;
}

.empty-title {
    font-size: 1.15rem;
    font-weight: 900;
}

.empty-sub {
    margin-top: 6px;
    color: #6c757d;
}

.shop-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pg-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #111;
    background: #fff;
    font-weight: 800;
}

    .pg-btn.disabled {
        pointer-events: none;
        opacity: .45;
    }

.pg-info {
    color: #6c757d;
    font-weight: 700;
}
