:root {
    --pm-accent: #f26a1b;
    --pm-accent-deep: #d8500b;
    --pm-accent-soft: #fff1e7;
    --pm-hero-start: #ffead9;
    --pm-hero-end: #ffd1a6;
    --pm-hero-text: #342015;
    --pm-page-bg: #f6f7f9;
    --pm-card: #fff;
    --pm-text: #172033;
    --pm-muted: #778298;
    --pm-line: #e8ebf0;
    --pm-success: #12936b;
    --pm-shadow: 0 14px 40px rgba(27, 37, 59, .07);
    --pm-topbar-height: 72px;
}

.pm-palette-blue { --pm-accent: #2766d5; --pm-accent-deep: #174ea9; --pm-accent-soft: #eaf2ff; --pm-hero-start: #e3f0ff; --pm-hero-end: #b9d8ff; --pm-hero-text: #122f62; }
.pm-palette-green { --pm-accent: #118b68; --pm-accent-deep: #087154; --pm-accent-soft: #e6f6f0; --pm-hero-start: #ddf6ea; --pm-hero-end: #ace5ca; --pm-hero-text: #103b2f; }
.pm-palette-rose { --pm-accent: #dc4756; --pm-accent-deep: #b82e3c; --pm-accent-soft: #ffebed; --pm-hero-start: #ffe5e1; --pm-hero-end: #ffbbae; --pm-hero-text: #571d23; }
.pm-palette-black { --pm-accent: #222938; --pm-accent-deep: #111621; --pm-accent-soft: #edf0f4; --pm-hero-start: #e7e9ed; --pm-hero-end: #bdc3cd; --pm-hero-text: #171d28; }

html {
    min-width: 320px;
    background: var(--pm-page-bg);
    scroll-behavior: smooth;
}

body.pm-front {
    min-height: 100vh;
    margin: 0;
    color: var(--pm-text);
    background: var(--pm-page-bg);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pm-front *,
.pm-front *::before,
.pm-front *::after {
    box-sizing: border-box;
}

.pm-front a {
    color: inherit;
    text-decoration: none;
}

.pm-front button,
.pm-front input,
.pm-front textarea {
    font: inherit;
}

.pm-page {
    min-height: 100vh;
    padding-top: calc(var(--pm-topbar-height) + env(safe-area-inset-top));
}

.pm-skip-link {
    position: fixed;
    z-index: 200;
    top: -80px;
    left: 18px;
    padding: 9px 14px;
    border-radius: 9px;
    color: #fff;
    background: var(--pm-accent);
}

.pm-skip-link:focus {
    top: 10px;
}

.pm-topbar {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: calc(var(--pm-topbar-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid rgba(226, 230, 237, .92);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
}

.pm-topbar__inner {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    height: var(--pm-topbar-height);
    margin: 0 auto;
}

.pm-topbar__back,
.pm-brand,
.pm-topbar__actions,
.pm-credit-pill,
.pm-order-link {
    display: flex;
    align-items: center;
}

.pm-topbar__back {
    gap: 8px;
    width: max-content;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--pm-line);
    border-radius: 24px;
    font-weight: 700;
}

.pm-topbar__back i {
    font-size: 19px;
}

.pm-brand {
    gap: 10px;
    min-width: 0;
}

.pm-brand > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--pm-accent);
    background: var(--pm-accent-soft);
    font-size: 20px;
}

.pm-brand strong,
.pm-brand small {
    display: block;
}

.pm-brand strong {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-brand small {
    overflow: hidden;
    color: var(--pm-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-topbar__actions {
    justify-content: flex-end;
    gap: 9px;
}

.pm-credit-pill {
    gap: 5px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 22px;
    color: var(--pm-accent-deep);
    background: var(--pm-accent-soft);
}

.pm-credit-pill i {
    font-size: 18px;
}

.pm-credit-pill b {
    font-size: 15px;
}

.pm-credit-pill em {
    font-size: 11px;
    font-style: normal;
}

.pm-order-link {
    position: relative;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 22px;
    font-weight: 700;
}

.pm-order-link i {
    font-size: 19px;
}

.pm-order-link b {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    background: #ef4c4c;
    font-size: 10px;
}

.pm-topbar__login {
    display: grid;
    min-width: 64px;
    height: 40px;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: var(--pm-accent);
    font-weight: 700;
}

.pm-main {
    min-height: calc(100vh - var(--pm-topbar-height) - 88px);
}

.pm-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.pm-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    min-height: 306px;
    overflow: hidden;
    border-radius: 28px;
    color: var(--pm-hero-text);
    background: linear-gradient(118deg, var(--pm-hero-start), var(--pm-hero-end));
    box-shadow: 0 22px 58px color-mix(in srgb, var(--pm-accent) 16%, transparent);
}

.pm-hero::before,
.pm-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    content: "";
}

.pm-hero::before {
    top: -190px;
    right: 15%;
    width: 440px;
    height: 440px;
}

.pm-hero::after {
    right: -130px;
    bottom: -230px;
    width: 430px;
    height: 430px;
}

.pm-hero__copy {
    position: relative;
    z-index: 2;
    align-self: center;
    max-width: 660px;
    padding: 42px 0 42px 52px;
}

.pm-hero__copy > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    background: rgba(255, 255, 255, .42);
    font-size: 12px;
    font-weight: 700;
}

.pm-hero h1 {
    max-width: 620px;
    margin: 17px 0 8px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.pm-hero__copy > p {
    max-width: 540px;
    margin: 0;
    color: color-mix(in srgb, var(--pm-hero-text) 72%, transparent);
    font-size: 16px;
}

.pm-hero__actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 26px;
}

.pm-hero__actions > div,
.pm-hero__actions > a {
    min-height: 58px;
    padding: 9px 18px;
    border-radius: 16px;
}

.pm-hero__actions > div {
    min-width: 150px;
    color: #fff;
    background: var(--pm-accent-deep);
}

.pm-hero__actions small,
.pm-hero__actions strong {
    display: block;
}

.pm-hero__actions small {
    opacity: .76;
    font-size: 11px;
}

.pm-hero__actions strong {
    font-size: 21px;
    line-height: 1.25;
}

.pm-hero__actions > a {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .5);
    font-weight: 700;
}

.pm-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    place-items: center;
}

.pm-hero__visual > div {
    position: relative;
    display: grid;
    width: 210px;
    height: 170px;
    place-items: center;
    border: 8px solid rgba(255, 255, 255, .44);
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(145deg, var(--pm-accent), var(--pm-accent-deep));
    box-shadow: 0 28px 44px color-mix(in srgb, var(--pm-accent-deep) 28%, transparent);
    transform: rotate(-5deg);
}

.pm-hero__visual > div::before,
.pm-hero__visual > div::after {
    position: absolute;
    top: -18px;
    width: 45px;
    height: 26px;
    border: 6px solid rgba(255, 255, 255, .75);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    content: "";
}

.pm-hero__visual > div::before { left: 33px; }
.pm-hero__visual > div::after { right: 33px; }

.pm-hero__visual > div > i {
    font-size: 74px;
}

.pm-hero__visual > div span {
    position: absolute;
    right: 17px;
    bottom: 14px;
    display: grid;
    color: rgba(255, 255, 255, .78);
    font-size: 9px;
    letter-spacing: .1em;
}

.pm-hero__visual > div b {
    font-size: 14px;
}

.pm-coin {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 5px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
    color: var(--pm-accent-deep);
    background: #ffcc55;
    box-shadow: 0 10px 20px rgba(92, 59, 20, .18);
    font-size: 23px;
}

.pm-coin--one { top: 48px; left: 28px; transform: rotate(-14deg); }
.pm-coin--two { right: 26px; bottom: 40px; transform: rotate(16deg); }

.pm-categories {
    display: flex;
    gap: 9px;
    margin: 24px 0 20px;
    overflow-x: auto;
    padding: 2px 1px;
    scrollbar-width: none;
}

.pm-categories::-webkit-scrollbar { display: none; }

.pm-categories a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid var(--pm-line);
    border-radius: 24px;
    color: #5d687c;
    background: var(--pm-card);
    font-weight: 700;
}

.pm-categories a.is-active {
    border-color: var(--pm-accent);
    color: #fff;
    background: var(--pm-accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--pm-accent) 22%, transparent);
}

.pm-categories small {
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, .06);
    font-size: 10px;
}

.pm-goods-section > header,
.pm-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.pm-goods-section > header span,
.pm-page-heading > div > span,
.pm-detail-content header span,
.pm-order-detail header span {
    color: var(--pm-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.pm-goods-section h2,
.pm-page-heading h1,
.pm-detail-content h2 {
    margin: 2px 0 0;
    font-size: 26px;
    line-height: 1.3;
}

.pm-goods-section > header p,
.pm-page-heading p {
    margin: 0;
    color: var(--pm-muted);
}

.pm-goods-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.pm-goods-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pm-line);
    border-radius: 18px;
    background: var(--pm-card);
    box-shadow: 0 9px 30px rgba(28, 38, 58, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pm-goods-card__media {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    color: color-mix(in srgb, var(--pm-accent) 65%, white);
    background: linear-gradient(145deg, var(--pm-accent-soft), color-mix(in srgb, var(--pm-accent-soft) 45%, white));
    font-size: 58px;
}

.pm-goods-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.pm-goods-card__media span {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 4px 9px;
    border-radius: 14px;
    color: var(--pm-text);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 3px 9px rgba(26, 36, 54, .08);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.pm-goods-card__sold-out {
    position: absolute;
    top: 11px;
    right: 11px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    color: #fff;
    background: rgba(24, 29, 39, .76);
    font-size: 11px;
    line-height: 1.4;
    backdrop-filter: blur(8px);
}

.pm-goods-card.is-out-of-stock .pm-goods-card__media img {
    filter: saturate(.78);
    opacity: .88;
}

.pm-goods-card.is-out-of-stock .pm-goods-card__stock em {
    color: var(--pm-muted);
}

.pm-goods-card__body {
    padding: 16px;
}

.pm-goods-card h3 {
    display: -webkit-box;
    min-height: 45px;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pm-goods-card__body > p {
    overflow: hidden;
    margin: 6px 0 14px;
    color: var(--pm-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-goods-card footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.pm-goods-card footer > strong {
    flex: 0 0 auto;
    color: var(--pm-accent-deep);
    font-size: 11px;
}

.pm-goods-card footer b {
    margin-right: 3px;
    font-size: 22px;
    line-height: 1;
}

.pm-goods-card__stock {
    display: grid;
    flex: 1 1 112px;
    gap: 5px;
    min-width: 76px;
    max-width: 122px;
}

.pm-goods-card__stock > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    line-height: 1;
}

.pm-goods-card__stock small {
    color: var(--pm-muted);
    font-size: 10px;
}

.pm-goods-card__stock em {
    color: var(--pm-text);
    font-size: 11px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.pm-goods-card__stock progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: var(--pm-accent-soft);
}

.pm-goods-card__stock progress::-webkit-progress-bar {
    border-radius: 999px;
    background: var(--pm-accent-soft);
}

.pm-goods-card__stock progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pm-accent), var(--pm-accent-deep));
}

.pm-goods-card__stock progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pm-accent), var(--pm-accent-deep));
}

.pm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
}

.pm-pagination a {
    display: grid;
    min-width: 42px;
    height: 42px;
    padding: 0 9px;
    place-items: center;
    border: 1px solid var(--pm-line);
    border-radius: 11px;
    background: #fff;
}

.pm-pagination a.is-active {
    border-color: var(--pm-accent);
    color: #fff;
    background: var(--pm-accent);
}

.pm-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
    gap: 20px;
}

.pm-detail-media,
.pm-detail-card,
.pm-detail-content,
.pm-order-detail {
    border: 1px solid var(--pm-line);
    border-radius: 24px;
    background: var(--pm-card);
    box-shadow: var(--pm-shadow);
}

.pm-detail-media {
    display: grid;
    min-height: 510px;
    overflow: hidden;
    place-items: center;
    color: color-mix(in srgb, var(--pm-accent) 64%, white);
    background: linear-gradient(145deg, var(--pm-accent-soft), #fff);
    font-size: 100px;
}

.pm-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pm-detail-card {
    align-self: start;
    padding: 34px;
}

.pm-detail-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pm-detail-card__meta span {
    padding: 4px 9px;
    border-radius: 14px;
    color: var(--pm-accent-deep);
    background: var(--pm-accent-soft);
    font-size: 11px;
    font-weight: 700;
}

.pm-detail-card h1 {
    margin: 17px 0 7px;
    font-size: clamp(27px, 3.2vw, 39px);
    line-height: 1.22;
    letter-spacing: -.03em;
}

.pm-detail-card__subtitle {
    margin: 0;
    color: var(--pm-muted);
    font-size: 15px;
}

.pm-detail-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 27px 0 23px;
    padding: 20px;
    border-radius: 17px;
    color: var(--pm-accent-deep);
    background: var(--pm-accent-soft);
}

.pm-detail-price span {
    font-weight: 700;
}

.pm-detail-price b {
    margin-right: 6px;
    font-size: 35px;
    line-height: 1;
}

.pm-detail-price small {
    color: var(--pm-muted);
}

.pm-detail-notes {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.pm-detail-notes div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
}

.pm-detail-notes dt {
    font-weight: 700;
}

.pm-detail-notes dt i {
    margin-right: 5px;
    color: var(--pm-accent);
}

.pm-detail-notes dd {
    margin: 0;
    color: var(--pm-muted);
}

.pm-redeem-button {
    display: grid;
    width: 100%;
    min-height: 68px;
    padding: 10px 20px;
    border: 0;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(90deg, var(--pm-accent), var(--pm-accent-deep));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--pm-accent) 24%, transparent);
    cursor: pointer;
}

.pm-redeem-button span {
    font-size: 19px;
    font-weight: 800;
}

.pm-redeem-button small {
    opacity: .75;
    font-size: 11px;
}

.pm-redeem-button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(.65);
    opacity: .58;
}

.pm-detail-card__notice {
    margin: 15px 0 0;
    color: var(--pm-muted);
    font-size: 12px;
    text-align: center;
}

.pm-detail-card__notice i {
    margin-right: 5px;
    color: var(--pm-accent);
}

.pm-detail-content {
    grid-column: 1 / -1;
    padding: 28px 32px;
}

.pm-detail-content p {
    margin: 18px 0 0;
    color: #566175;
    line-height: 1.9;
}

.pm-page-heading {
    min-height: 128px;
    padding: 24px 28px;
    border-radius: 22px;
    color: var(--pm-hero-text);
    background: linear-gradient(118deg, var(--pm-hero-start), var(--pm-hero-end));
}

.pm-page-heading > div:last-child {
    text-align: right;
}

.pm-page-heading > div:last-child b,
.pm-page-heading > div:last-child span {
    display: block;
}

.pm-page-heading > div:last-child b {
    font-size: 28px;
}

.pm-user-orders {
    display: grid;
    gap: 12px;
}

.pm-user-orders > a {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 15px;
    min-height: 106px;
    padding: 17px;
    border: 1px solid var(--pm-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(28, 38, 58, .04);
}

.pm-order-cover {
    display: grid;
    width: 70px;
    height: 70px;
    overflow: hidden;
    place-items: center;
    border-radius: 15px;
    color: var(--pm-accent);
    background: var(--pm-accent-soft);
    font-size: 28px;
}

.pm-order-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-user-order__copy strong,
.pm-user-order__copy small,
.pm-user-order__copy em {
    display: block;
}

.pm-user-order__copy strong {
    font-size: 16px;
}

.pm-user-order__copy small {
    margin: 2px 0 5px;
    overflow: hidden;
    color: var(--pm-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-user-order__copy em {
    color: var(--pm-accent-deep);
    font-style: normal;
    font-weight: 800;
}

.pm-order-state {
    display: inline-flex;
    width: max-content;
    min-height: 28px;
    align-items: center;
    padding: 2px 10px;
    border-radius: 16px;
    color: #b66321;
    background: #fff0df;
    font-size: 11px;
}

.pm-order-state.is-20 { color: #0f835f; background: #e4f7ef; }
.pm-order-state.is-30 { color: #8d5360; background: #f7e9ec; }

.pm-order-detail-page {
    max-width: 850px;
}

.pm-order-detail {
    padding: 30px;
}

.pm-order-detail > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--pm-line);
}

.pm-order-detail h1,
.pm-order-detail header p {
    margin: 0;
}

.pm-order-detail h1 {
    margin-top: 3px;
    font-size: 28px;
}

.pm-order-detail header p {
    color: var(--pm-muted);
}

.pm-order-detail__goods {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 0;
}

.pm-order-detail__goods small,
.pm-order-detail__goods strong,
.pm-order-detail__goods p {
    display: block;
    margin: 0;
}

.pm-order-detail__goods small,
.pm-order-detail__goods p {
    color: var(--pm-muted);
}

.pm-order-detail__goods strong {
    color: var(--pm-accent-deep);
    font-size: 22px;
}

.pm-order-detail dl {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.pm-order-detail dl div {
    padding: 15px 17px;
    border-radius: 13px;
    background: #f7f8fa;
}

.pm-order-detail dt {
    margin-bottom: 4px;
    color: var(--pm-muted);
    font-size: 11px;
}

.pm-order-detail dd {
    margin: 0;
    word-break: break-all;
}

.pm-order-detail > a,
.pm-state > a {
    display: inline-grid;
    min-width: 138px;
    min-height: 44px;
    padding: 0 18px;
    place-items: center;
    border-radius: 23px;
    color: #fff;
    background: var(--pm-accent);
    font-weight: 700;
}

.pm-state {
    display: grid;
    min-height: calc(100vh - var(--pm-topbar-height) - 90px);
    padding: 50px 20px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.pm-state--inside {
    min-height: 350px;
    margin-top: 15px;
    border: 1px dashed #dbe0e8;
    border-radius: 22px;
    background: rgba(255, 255, 255, .7);
}

.pm-state > span {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 24px;
    color: var(--pm-accent);
    background: var(--pm-accent-soft);
    font-size: 37px;
}

.pm-state h1,
.pm-state h2,
.pm-state p {
    margin: 0;
}

.pm-state h1,
.pm-state h2 {
    font-size: 25px;
}

.pm-state p {
    max-width: 480px;
    margin: 7px 0 20px;
    color: var(--pm-muted);
}

.pm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--pm-line);
    color: var(--pm-muted);
}

.pm-footer a {
    color: var(--pm-accent-deep);
    font-weight: 700;
}

.pm-footer i {
    margin-left: 5px;
}

.pm-redeem-dialog,
.pm-success-dialog {
    width: min(490px, calc(100vw - 28px));
    max-width: none;
    max-height: calc(100vh - 30px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    color: var(--pm-text);
    background: #fff;
    box-shadow: 0 30px 90px rgba(21, 29, 45, .28);
}

.pm-redeem-dialog::backdrop,
.pm-success-dialog::backdrop {
    background: rgba(18, 25, 38, .52);
    backdrop-filter: blur(3px);
}

.pm-redeem-dialog form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100vh - 30px);
}

.pm-redeem-dialog header,
.pm-redeem-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 18px 20px;
}

.pm-redeem-dialog header {
    border-bottom: 1px solid var(--pm-line);
}

.pm-redeem-dialog header span {
    color: var(--pm-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.pm-redeem-dialog h2 {
    margin: 1px 0 0;
    font-size: 20px;
}

.pm-redeem-dialog header button,
.pm-redeem-dialog footer > button:first-child {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pm-redeem-dialog header button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--pm-muted);
    background: #f2f4f7;
    font-size: 20px;
}

.pm-redeem-dialog__body {
    display: grid;
    gap: 15px;
    padding: 20px;
    overflow-y: auto;
}

.pm-redeem-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    padding: 17px;
    border-radius: 15px;
    color: var(--pm-accent-deep);
    background: var(--pm-accent-soft);
}

.pm-redeem-summary span {
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.pm-redeem-summary b {
    margin-left: 5px;
}

.pm-redeem-summary small {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: var(--pm-muted);
}

.pm-redeem-dialog__body label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.pm-redeem-dialog input,
.pm-redeem-dialog textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dfe3ea;
    border-radius: 11px;
    color: var(--pm-text);
    background: #fff;
    resize: vertical;
}

.pm-redeem-dialog input:focus,
.pm-redeem-dialog textarea:focus {
    border-color: var(--pm-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pm-accent) 12%, transparent);
    outline: 0;
}

.pm-redeem-dialog footer {
    border-top: 1px solid var(--pm-line);
}

.pm-redeem-dialog footer > button:first-child {
    min-width: 92px;
    min-height: 48px;
    color: var(--pm-muted);
}

.pm-redeem-dialog footer > button:last-child {
    display: grid;
    flex: 1;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--pm-accent);
    cursor: pointer;
}

.pm-redeem-dialog footer button span {
    font-weight: 800;
}

.pm-redeem-dialog footer button small {
    opacity: .76;
    font-size: 10px;
}

.pm-redeem-dialog button:disabled {
    cursor: wait;
    opacity: .6;
}

.pm-success-dialog > div {
    display: grid;
    min-height: 430px;
    padding: 38px 30px 30px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.pm-success-dialog > div > span {
    display: grid;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--pm-success);
    box-shadow: 0 12px 26px rgba(18, 147, 107, .22);
    font-size: 44px;
}

.pm-success-dialog small {
    color: var(--pm-success);
    font-weight: 800;
    letter-spacing: .08em;
}

.pm-success-dialog h2,
.pm-success-dialog p {
    margin: 0;
}

.pm-success-dialog h2 {
    margin-top: 5px;
    font-size: 28px;
}

.pm-success-dialog p {
    margin-top: 8px;
    color: var(--pm-muted);
}

.pm-success-dialog > div > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    width: 100%;
    margin-top: 26px;
}

.pm-success-dialog a,
.pm-success-dialog button {
    display: grid;
    min-height: 50px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
}

.pm-success-dialog a {
    color: #fff;
    background: var(--pm-accent);
    font-weight: 800;
}

.pm-success-dialog button {
    color: var(--pm-text);
    background: #f1f3f6;
}

.pm-toast {
    position: fixed;
    z-index: 300;
    right: 18px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    max-width: min(380px, calc(100vw - 36px));
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    background: #202735;
    box-shadow: 0 14px 34px rgba(19, 26, 39, .25);
}

.pm-toast.is-error {
    background: #b73742;
}

@media (hover: hover) {
    .pm-topbar__back:hover,
    .pm-order-link:hover { background: #f6f7f9; }
    .pm-goods-card:hover { border-color: color-mix(in srgb, var(--pm-accent) 35%, var(--pm-line)); box-shadow: 0 18px 42px rgba(28, 38, 58, .11); transform: translateY(-3px); }
    .pm-goods-card:hover img { transform: scale(1.035); }
}

@media (max-width: 960px) {
    .pm-goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pm-detail-layout { grid-template-columns: 1fr 1fr; }
    .pm-detail-media { min-height: 430px; }
}

@media (max-width: 720px) {
    :root { --pm-topbar-height: 62px; }
    .pm-topbar__inner { grid-template-columns: 48px minmax(0, 1fr) auto; width: calc(100% - 24px); }
    .pm-topbar__back { width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; }
    .pm-topbar__back span,
    .pm-brand small,
    .pm-credit-pill,
    .pm-order-link span { display: none; }
    .pm-brand { justify-self: center; }
    .pm-brand > span { display: none; }
    .pm-brand strong { max-width: 190px; font-size: 17px; }
    .pm-topbar__actions { gap: 2px; }
    .pm-order-link { width: 44px; padding: 0; justify-content: center; }
    .pm-topbar__login { min-width: 58px; height: 38px; }
    .pm-shell { width: calc(100% - 24px); padding-top: 14px; }
    .pm-hero { grid-template-columns: minmax(0, 1fr) 122px; min-height: 238px; border-radius: 22px; }
    .pm-hero__copy { align-self: stretch; padding: 25px 0 22px 24px; }
    .pm-hero h1 { max-width: 360px; margin-top: 13px; font-size: clamp(27px, 8vw, 38px); }
    .pm-hero__copy > p { display: -webkit-box; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .pm-hero__actions { margin-top: 17px; }
    .pm-hero__actions > div,
    .pm-hero__actions > a { min-height: 50px; padding: 7px 13px; border-radius: 13px; }
    .pm-hero__actions > div { min-width: 112px; }
    .pm-hero__actions strong { font-size: 17px; }
    .pm-hero__visual > div { right: -26px; width: 132px; height: 116px; border-width: 5px; border-radius: 22px; }
    .pm-hero__visual > div::before,
    .pm-hero__visual > div::after { top: -13px; width: 29px; height: 18px; border-width: 4px; }
    .pm-hero__visual > div::before { left: 21px; }
    .pm-hero__visual > div::after { right: 21px; }
    .pm-hero__visual > div > i { font-size: 48px; }
    .pm-hero__visual > div span { display: none; }
    .pm-coin { width: 36px; height: 36px; border-width: 3px; font-size: 17px; }
    .pm-coin--one { top: 28px; left: -4px; }
    .pm-coin--two { right: 1px; bottom: 21px; }
    .pm-categories { margin: 15px 0; }
    .pm-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .pm-goods-card { border-radius: 15px; }
    .pm-goods-card__body { padding: 12px; }
    .pm-goods-card h3 { min-height: 42px; font-size: 14px; }
    .pm-goods-card footer b { font-size: 18px; }
    .pm-goods-card footer { gap: 8px; }
    .pm-goods-card__stock { flex-basis: 84px; min-width: 66px; }
    .pm-goods-section > header { align-items: flex-start; }
    .pm-goods-section h2 { font-size: 22px; }
    .pm-goods-section > header p { font-size: 11px; }
    .pm-detail-layout { grid-template-columns: 1fr; gap: 12px; }
    .pm-detail-media { min-height: auto; aspect-ratio: 4 / 3; border-radius: 20px; }
    .pm-detail-card { padding: 23px 20px; border-radius: 20px; }
    .pm-detail-card h1 { font-size: 27px; }
    .pm-detail-price { margin: 21px 0 18px; }
    .pm-detail-notes div { grid-template-columns: 1fr; gap: 2px; }
    .pm-detail-content { padding: 22px 20px; border-radius: 20px; }
    .pm-page-heading { min-height: 112px; padding: 20px; border-radius: 19px; }
    .pm-page-heading h1 { font-size: 24px; }
    .pm-page-heading p { font-size: 12px; }
    .pm-user-orders > a { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 11px; padding: 13px; }
    .pm-user-orders > a > i { display: none; }
    .pm-order-cover { width: 58px; height: 58px; border-radius: 13px; }
    .pm-user-order__copy strong { font-size: 14px; }
    .pm-order-detail { padding: 21px 18px; border-radius: 20px; }
    .pm-order-detail h1 { font-size: 22px; }
    .pm-footer { width: calc(100% - 30px); min-height: 72px; font-size: 12px; }
}

@media (max-width: 390px) {
    .pm-hero { grid-template-columns: minmax(0, 1fr) 96px; }
    .pm-hero__copy { padding-left: 18px; }
    .pm-hero__copy > span { font-size: 10px; }
    .pm-hero h1 { font-size: 26px; }
    .pm-hero__actions > a { display: none; }
    .pm-goods-card__media span { top: 7px; left: 7px; }
    .pm-detail-price { display: grid; }
    .pm-success-dialog > div > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pm-front *,
    .pm-front *::before,
    .pm-front *::after { scroll-behavior: auto; transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
}
