/* Shop homepage — light xorist-like catalog on banxian.xyz.
   Rev 20261130g. Official Cartoon hooks unchanged. Storefront navbar
   is not restyled here (pinned in shop-global-ui.css). */

.shop-home {
    --shop-card-radius: 24px;
    --shop-row-radius: 16px;
    --shop-buy: #111113;
    --shop-buy-ink: #fff;
    --shop-accent: #5b3cc9;
    --shop-accent-btn: #111113;
    --shop-accent-ink: #3d2fa0;
    --shop-stock: #1a9a62;
    --shop-hero-ink: #1c2024;
    --shop-hero-muted: #5c6068;
}

main.shop-home.container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 12px;
    padding-bottom: 56px;
    max-width: 1180px;
}

.shop-home .panel + .panel,
.shop-home-card + .shop-home-card {
    margin-top: 0;
}

.shop-home-card,
.shop-home .panel {
    position: relative;
    border-radius: var(--shop-card-radius);
    background: #fff;
    border: 1px solid #e0e1e6;
    box-shadow: 0 3px 6px rgba(28, 22, 60, .06), 0 2px 4px rgba(28, 22, 60, .05);
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ---------- hero: light card with mystic indigo motif (特色) ---------- */
.shop-hero-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    color: var(--shop-hero-ink);
    background:
        radial-gradient(circle at 96% 8%, rgba(91, 60, 201, .10), transparent 36%),
        radial-gradient(circle at 8% 100%, rgba(184, 137, 58, .08), transparent 32%),
        #fff;
    border: 1px solid #e0e1e6;
    box-shadow: 0 12px 28px rgba(28, 22, 60, .08), 0 3px 8px rgba(28, 22, 60, .04);
    padding: 28px 28px 0;
}

.shop-hero-wrap::before {
    content: "";
    position: absolute;
    right: 7%;
    top: 18px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 2px solid rgba(91, 60, 201, .18);
    box-shadow: inset 0 0 0 10px rgba(91, 60, 201, .05);
    pointer-events: none;
    opacity: .7;
}

.shop-hero-wrap::after {
    content: "半仙";
    position: absolute;
    right: 8.4%;
    top: 46px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
    color: rgba(91, 60, 201, .28);
    pointer-events: none;
}

.shop-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr);
    gap: 28px 36px;
    align-items: center;
    padding: 4px 4px 22px;
}

.shop-hero__tags {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .04em;
    color: #5b3cc9;
}

.shop-hero__title {
    margin: 0 0 12px;
    font-size: clamp(26px, 4.2vw, 42px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: .01em;
    color: #1c2024;
}

.shop-hero__title em {
    font-style: normal;
    color: #5b3cc9;
}

.shop-hero__desc {
    margin: 0 0 22px;
    max-width: 38rem;
    font-size: 14px;
    line-height: 1.7;
    color: var(--shop-hero-muted);
}

.shop-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.shop-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s, filter .16s, background .16s, border-color .16s;
}

.shop-hero__btn--primary {
    background: #111113;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(17, 17, 19, .16);
}

.shop-hero__btn--primary:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.shop-hero__btn--ghost {
    background: #fff;
    color: #1c2024;
    border: 1px solid #d4d5dc;
}

.shop-hero__btn--ghost:hover {
    color: #1c2024;
    border-color: #5b3cc9;
    background: #efecfb;
}

.shop-hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-trust {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12.5px;
    line-height: 1.3;
    color: #3a3e46;
}

.shop-trust--users,
.shop-trust--served {
    background: #f4f3f9;
    border: 1px solid #e0e1e6;
}

.shop-trust--live {
    padding-left: 4px;
    background: transparent;
    border: 0;
}

.shop-trust__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.shop-trust--users .shop-trust__icon { color: #5b3cc9; }
.shop-trust--served .shop-trust__icon { color: #b8893a; }
.shop-trust__label { white-space: nowrap; }

.shop-trust__num {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #1c2024;
    letter-spacing: .02em;
}

.shop-trust__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5b3cc9;
    box-shadow: 0 0 0 3px rgba(91, 60, 201, .18);
    flex: 0 0 auto;
    animation: shop-trust-pulse 2.4s ease-out infinite;
}

@keyframes shop-trust-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 60, 201, .4); }
    55% { box-shadow: 0 0 0 6px rgba(91, 60, 201, 0); }
}

/* ---------- Telegram card (indigo-tinted white, readable) ---------- */
.shop-tg-card {
    position: relative;
    border-radius: 18px;
    padding: 16px;
    background:
        linear-gradient(180deg, #f7f5ff 0%, #ffffff 60%);
    border: 1px solid #ddd8f3;
    box-shadow: 0 8px 24px rgba(91, 60, 201, .08);
}

.shop-tg-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.shop-tg-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.shop-tg-card__channels {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
}

.shop-tg-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(91, 60, 201, .22);
}

.shop-tg-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.shop-tg-card__label {
    font-size: 14px;
    font-weight: 700;
    color: #1c2024;
}

.shop-tg-card__handle {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #3d2fa0;
    background: #efecfb;
    border: 1px solid #ddd8f3;
}

.shop-tg-card__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #111113;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
    white-space: nowrap;
}

.shop-tg-card__open:hover { color: #fff; filter: brightness(1.08); }

.shop-tg-card__channels a.shop-tg-card__handle {
    text-decoration: none;
}

.shop-tg-card__channels a.shop-tg-card__handle:hover {
    background: #e4dff8;
    border-color: #c9c0ee;
}

.shop-tg-card__hours {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #5c6068;
    line-height: 1.3;
}

.shop-tg-card__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.shop-tg-card__tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
    padding: 10px 10px 9px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e0e1e6;
    color: #1c2024;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.shop-tg-card__tile:hover {
    color: #1c2024;
    background: #efecfb;
    border-color: #c9c0ee;
}

.shop-tg-card__tile .material-icons-outlined {
    font-size: 18px;
    color: #5b3cc9;
}

/* ---------- info bar ---------- */
.shop-hero__bar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    padding: 14px 4px 16px;
    border-top: 1px solid #ececf1;
    font-size: 13px;
    color: #5c6068;
}

.shop-hero__bar-item { color: inherit; text-decoration: none; }
.shop-hero__bar-item b { color: #1c2024; font-weight: 700; }
a.shop-hero__bar-item:hover { color: #5b3cc9; }
.shop-hero__bar-orders { margin-left: auto; }
.shop-hero__bar-orders::after { content: " →"; }

.shop-hero__bar-contract {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #5b3cc9;
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
}

a.shop-hero__bar-contract,
a.shop-hero__bar-contract:hover { color: #fff; }
a.shop-hero__bar-contract:hover { filter: brightness(1.06); }

#shop-products { scroll-margin-top: 86px; }

/* ---------- products: sidebar + catalog (xorist-like) ---------- */
.shop-products {
    padding: 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.shop-products .panel-body,
.shop-products .panel-header { padding: 0; }

@media (min-width: 900px) {
    .shop-products {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        grid-template-areas:
            "side head"
            "side search"
            "side list";
        gap: 12px 20px;
        align-items: start;
        padding: 0;
    }
    .shop-products__head { grid-area: head; }
    .shop-products__search { grid-area: search; margin-bottom: 0; }
    .shop-home .chip-list { grid-area: side; }
    .shop-home .item-list,
    .shop-home .item-message { grid-area: list; }
}

.shop-products__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 4px;
    min-height: 32px;
}

.shop-kicker {
    display: block;
    width: 100%;
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a8f99;
}

.shop-products__head .shop-kicker { width: auto; margin: 0 8px 0 0; }

.shop-products__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #1c2024;
}

.shop-products__title i { color: #5b3cc9; font-size: 16px; }

.shop-products__count {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #5b3cc9;
    background: #efecfb;
}

.shop-products__search,
.shop-search-combo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.shop-products__search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    width: auto;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d4d5dc;
    color: #5c6068;
    transition: border-color .16s, box-shadow .16s;
}

.shop-products__search-box:focus-within {
    border-color: #5b3cc9;
    box-shadow: 0 0 0 3px rgba(91, 60, 201, .16);
}

.shop-products__search-box i { font-size: 15px; flex: 0 0 auto; }

.shop-products__search-box input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent !important;
    color: #1c2024 !important;
    font-size: 14px;
    box-shadow: none !important;
}

.shop-products__search-box input::placeholder { color: #8a8f99 !important; }

.shop-search-go {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #111113;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.shop-search-go:hover { filter: brightness(1.08); }

/* ---------- category sidebar pills ---------- */
.shop-home .chip-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 0;
    overflow: visible;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #e0e1e6;
    border-radius: 24px;
    box-shadow: 0 3px 6px rgba(28, 22, 60, .06), 0 2px 4px rgba(28, 22, 60, .05);
}

@media (min-width: 900px) {
    .shop-home .chip-list { position: sticky; top: 86px; }
}

.shop-cat-kicker { padding: 0 8px 10px; }
.shop-cat-kicker .shop-kicker { margin-bottom: 2px; }
.shop-cat-kicker__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #1c2024;
}

.shop-home .chip {
    width: 100%;
    justify-content: flex-start;
    height: 42px;
    padding: 0 12px 0 8px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #1c2024;
    box-shadow: none;
}

.shop-home .chip:hover {
    background: #f4f3f9;
    color: #1c2024;
}

.shop-home .chip .chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.shop-home .chip-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #f0f0f3;
    color: #5c6068;
}

.shop-home .chip.is-primary {
    color: #3d2fa0;
    background: #efecfb;
    border-color: transparent;
    box-shadow: inset 3px 0 0 #5b3cc9;
}

.shop-home .chip.is-primary .chip-count {
    background: #fff;
    color: #5b3cc9;
}

/* ---------- product rows ---------- */
.shop-home .item-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e0e1e6;
    border-radius: 24px;
    box-shadow: 0 3px 6px rgba(28, 22, 60, .06), 0 2px 4px rgba(28, 22, 60, .05);
    overflow: hidden;
    padding: 4px 0;
}

.shop-home .item-card-cell {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.shop-home .acg-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #ececf1;
    box-shadow: none;
}

.shop-home .item-card-cell:last-child .acg-card { border-bottom: 0; }

.shop-home .item-card-cell:hover .acg-card {
    transform: none;
    background: #faf9ff;
    border-color: #ececf1;
}

.shop-home .acg-thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: auto;
    flex: 0 0 48px;
    border-radius: 14px;
    border: 1px solid #e0e1e6;
    background-color: #f4f3f9;
    overflow: hidden;
}

.shop-home .acg-card > .acg-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.shop-home .goods-title {
    grid-column: 1;
    grid-row: 1;
    order: unset;
    margin: 0;
    min-height: 0;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.02em;
    color: #1c2024;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-home .tags {
    grid-column: 1;
    grid-row: 2;
    order: unset;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shop-home .badge-soft,
.shop-home .acg-tag,
.shop-home .tags .badge,
.shop-home .tags span {
    padding: 1px 7px;
    font-size: 10.5px;
    border-radius: 999px;
}

.shop-home .stat-row {
    grid-column: 2;
    grid-row: 1 / 3;
    order: unset;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    margin: 0;
}

.shop-home .price {
    color: #111113;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.shop-home .stat-row::after {
    content: "购买";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* repositioned via parent */
}

/* Place the buy button in column 4 using a positioned after on the card instead.
   Keep the existing ::after as a black pill, moved into the action column. */
.shop-home .acg-body { position: relative; }

.shop-home .stat-row {
    position: relative;
    padding-right: 0;
}

.shop-home .stat-row::after {
    position: static;
    height: 36px;
    padding: 0 16px;
    margin-left: 0;
    border-radius: 999px;
    background: #111113;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
    letter-spacing: .02em;
    /* hide here; we re-grid it below */
}

/* Better: make stat-row a 2-col cluster: price | button, then move stock beside it */
.shop-home .stat-row {
    grid-column: 2 / 5;
    grid-row: 1 / 3;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.shop-home .acg-card.soldout .stat-row::after {
    content: "售罄";
    background: #c5c7ce;
    color: #fff;
}

.shop-home .stat-bottom {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    order: unset;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    gap: 0;
    font-size: 12px;
    color: #5c6068;
    white-space: nowrap;
    /* overlaps stat-row start; hide default layout and keep readable stock near price via flow */
    display: none; /* shown in a compact way via the first span cloned? keep visible: */
}

/* Keep stock visible: reveal stat-bottom between price and button by not using display:none.
   Place it in the row cluster by letting it sit in column 3. */
.shop-home .stat-bottom {
    display: flex;
    grid-column: 3;
    margin: 0;
}

.shop-home .stat-row {
    grid-column: 2 / 5;
}

/* To avoid overlap, take button out of the price cluster by using a fixed width row:
   price (col2) + stock (col3) + button (col4). display:contents on stat-row. */
.shop-home .stat-row {
    display: contents;
}

.shop-home .price {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
}

.shop-home .stat-row::after {
    grid-column: 4;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
}

.shop-home .stat-bottom {
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
}

.shop-home .stat-bottom span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shop-home .stat-bottom span:first-child::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--shop-stock);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-stock) 22%, transparent);
}

.shop-home .acg-card.soldout .stat-bottom span:first-child::before {
    background: #9aa0ab;
    box-shadow: none;
}

.shop-home .item-message {
    background: #fff;
    border: 1px solid #e0e1e6;
    border-radius: 24px;
    padding: 28px 18px;
    color: #5c6068;
    text-align: center;
}

/* ---------- bottom tab bar (mobile) — light, readable ---------- */
.shop-tabbar { display: none; }

@media (max-width: 768px) {
    .shop-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding: 4px 8px env(safe-area-inset-bottom, 0px);
        background: rgba(252, 252, 253, .94);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-top: 1px solid #e0e1e6;
        box-shadow: 0 -8px 24px rgba(31, 45, 70, .06);
    }

    .shop-tabbar__item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #8a8f99;
        font-size: 11px;
        font-weight: 500;
        text-decoration: none;
        min-width: 0;
    }

    .shop-tabbar__item .material-icons-outlined {
        font-size: 22px;
        line-height: 1;
    }

    .shop-tabbar__item.is-active {
        color: #5b3cc9;
        font-weight: 700;
    }

    .shop-tabbar__item:hover { color: #1c2024; }
    .shop-tabbar__item.is-active:hover { color: #5b3cc9; }

    body.uc-body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    main.shop-home.container { padding-bottom: 24px; }
}

body.shop-notice-open .shop-tabbar,
body.shop-drawer-open .shop-tabbar { visibility: hidden; }

/* ---------- mobile catalog ---------- */
@media (max-width: 899px) {
    .shop-home .chip-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        margin-bottom: 12px;
        scrollbar-width: thin;
    }
    .shop-home .chip {
        width: auto;
        flex: 0 0 auto;
    }
    .shop-cat-kicker { display: none; }
    .shop-home .acg-card > .acg-body {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
    }
    .shop-home .goods-title { grid-column: 1; grid-row: 1; }
    .shop-home .tags { grid-column: 1; grid-row: 2; }
    .shop-home .price { grid-column: 1; grid-row: 3; justify-self: start; }
    .shop-home .stat-bottom { grid-column: 1; grid-row: 3; justify-self: center; margin-left: 88px; }
    .shop-home .stat-row::after { grid-column: 2; grid-row: 1 / 4; }
}

@media (max-width: 860px) {
    .shop-hero-wrap { padding: 20px 16px 0; border-radius: 20px; }
    .shop-hero-wrap::before, .shop-hero-wrap::after { display: none; }
    .shop-hero { grid-template-columns: 1fr; gap: 20px; padding: 0 0 18px; }
    .shop-hero__title { font-size: clamp(24px, 7vw, 34px); }
    .shop-hero__bar-orders { margin-left: 0; }
    .shop-hero__bar-contract { height: 32px; padding: 0 14px; }
    .shop-tg-card__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-tg-card__tile { flex-direction: row; align-items: center; min-height: 44px; }
}

@media (max-width: 480px) {
    .shop-hero__btn { height: 42px; padding: 0 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-hero__btn, .shop-home .acg-card, .shop-tg-card__tile { transition: none; }
}

@media print {
    .shop-tabbar { display: none !important; }
}


/* ----- final product-row grid (wins over earlier drafts) ----- */
.shop-home .acg-card > .acg-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 92px 92px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.shop-home .goods-title {
    grid-column: 1;
    grid-row: 1;
    order: unset;
    min-height: 0;
    font-size: 15px;
    font-weight: 650;
    color: #1c2024;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-home .tags { grid-column: 1; grid-row: 2; order: unset; }
.shop-home .stat-row { display: contents; order: unset; margin: 0; }
.shop-home .price {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
    color: #111113;
    font-size: 16px;
    font-weight: 800;
}
.shop-home .stat-bottom {
    display: flex;
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    font-size: 12px;
    color: #5c6068;
    white-space: nowrap;
    order: unset;
}
.shop-home .stat-row::after {
    content: "购买";
    grid-column: 4;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111113;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}
.shop-home .acg-card.soldout .stat-row::after {
    content: "售罄";
    background: #c5c7ce;
    color: #fff;
}

@media (max-width: 899px) {
    .shop-home .acg-card > .acg-body {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
    }
    .shop-home .goods-title { grid-column: 1; grid-row: 1; }
    .shop-home .tags { grid-column: 1; grid-row: 2; }
    .shop-home .price { grid-column: 1; grid-row: 3; justify-self: start; }
    .shop-home .stat-bottom { grid-column: 1; grid-row: 3; justify-self: start; margin-left: 96px; align-items: flex-start; }
    .shop-home .stat-row::after { grid-column: 2; grid-row: 1 / 4; }
}
