/* Seattle product table presentation. Existing sidebars and storefront behavior are unchanged. */
@media (min-width: 1181px) and (min-height: 501px) {
    body.st-store-body {
        --st-shell-width: 1680px;
    }
}

@media (min-width: 768px) and (min-height: 501px) {
    .st-store-home .st-product-columns,
    .st-store-home .st-product-row {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 88px 92px 72px !important;
        align-items: center;
        gap: 12px;
        box-sizing: border-box;
    }

    .st-store-home .st-product-columns {
        min-height: 42px;
        padding: 9px 14px;
        border: 1px solid var(--st-border);
        border-bottom: 0;
        border-radius: 8px 8px 0 0;
        background: var(--st-surface-soft);
        color: var(--st-text-secondary);
        font-size: 12px;
        font-weight: 700;
        line-height: 18px;
    }

    .st-store-home .st-product-columns > span:nth-child(2) {
        text-align: left;
    }

    .st-store-home .st-product-columns > span:nth-child(n + 3) {
        text-align: center;
    }

    .st-store-home .st-product-feed {
        overflow: hidden;
        border-top: 0;
        border-radius: 0 0 8px 8px;
        background: var(--st-surface);
        box-shadow: 0 1px 3px rgba(15, 20, 25, .04);
    }

    .st-store-home .st-product-row {
        min-height: 72px;
        padding: 10px 14px;
        background: var(--st-surface);
        border-bottom-color: var(--st-border);
    }

    .st-store-home .st-product-row:last-child {
        border-bottom: 0;
    }

    .st-store-home .st-product-row:not(.is-soldout):hover {
        background: var(--st-surface-soft);
    }

    .st-store-home .st-product-row > .st-product-icon {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 44px;
        height: 44px;
        max-width: 44px !important;
        border-radius: 0 !important;
        border: 0 !important;
        background: transparent;
        overflow: visible;
        place-items: center;
        box-sizing: border-box;
    }

    .st-store-home .st-product-row > .st-product-icon img {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        border-radius: 0 !important;
        border: 0 !important;
        object-fit: cover !important;
        object-position: center;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .st-store-home .st-product-row > .st-product-copy {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0;
        gap: 2px;
    }

    .st-store-home .st-product-name {
        overflow: hidden;
        color: var(--st-text);
        font-size: 15px;
        font-weight: 650;
        line-height: 21px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .st-store-home .st-product-meta {
        min-height: 17px;
        font-size: 11px;
        line-height: 17px;
    }

    .st-store-home .st-product-row > .st-product-stock {
        display: block !important;
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: stretch;
        color: var(--st-text) !important;
        font-size: 13px;
        font-weight: 750;
        line-height: 20px;
        text-align: center;
    }

    .st-store-home .st-product-stock .st-product-badge {
        color: inherit;
        font-size: inherit;
        line-height: inherit;
    }

    .st-store-home .st-product-row > .st-product-price {
        display: grid;
        grid-column: 4 !important;
        grid-row: 1 !important;
        justify-items: center;
        color: var(--st-text) !important;
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }

    .st-store-home .st-product-price strong {
        font-size: 14px;
        font-weight: 750;
        line-height: 20px;
    }

    .st-store-home .st-product-row > .st-product-action {
        display: inline-flex !important;
        grid-column: 5 !important;
        grid-row: 1 !important;
        justify-self: end;
        width: 60px;
        min-width: 60px;
        height: 30px;
        min-height: 30px;
        align-items: center;
        justify-content: center;
        border: 1px solid #ff5a00;
        border-radius: 6px;
        background: #ff5a00;
        color: #fff !important;
        font-size: 12px !important;
        font-family: var(--st-font);
        font-weight: 700;
        line-height: 1;
        box-sizing: border-box;
    }

    .st-store-home .st-product-action .material-icons-outlined {
        display: none !important;
    }

    .st-store-home .st-product-buy-label {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: inherit !important;
        font-size: 12px !important;
        font-weight: 700;
        line-height: 1 !important;
    }

    .st-store-home .st-product-row.is-soldout > .st-product-action {
        background: var(--st-surface-soft);
        color: var(--st-text-muted) !important;
    }

    .st-store-home .st-product-row.is-soldout > .st-product-stock,
    .st-store-home .st-product-row.is-soldout > .st-product-stock .st-product-badge {
        color: var(--st-danger);
    }
}

@media (max-width: 767px), (max-height: 500px) and (max-width: 1024px) {
    .st-store-home .st-product-columns {
        display: none;
    }

    .st-store-home .st-product-row {
        grid-template-columns: 40px minmax(0, 1fr) auto 18px;
    }

    .st-store-home .st-product-row > .st-product-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .st-store-home .st-product-row > .st-product-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .st-store-home .st-product-row > .st-product-stock {
        display: block;
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        justify-self: start;
        color: var(--st-text-secondary);
        font-size: 10.5px;
        font-weight: 600;
        text-align: left;
    }

    .st-store-home .st-product-stock .st-product-badge::before {
        content: "库存 ";
    }

    .st-store-home .st-product-row > .st-product-price {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .st-store-home .st-product-row > .st-product-action {
        grid-column: 4;
        grid-row: 1 / span 2;
        min-width: 18px;
        min-height: 18px;
        background: transparent;
        color: var(--st-text-secondary);
        font-size: inherit;
    }

    .st-store-home .st-product-action .material-icons-outlined {
        display: inline;
    }

    .st-store-home .st-product-buy-label {
        display: none;
    }
}
