/* 商品详情 PDP — 对齐 aion2-kinah-detail.html（头尾用 marketplace 壳） */

/* -------------------------------------------------------------------------- */
/* Tokens + page shell                                                         */
/* -------------------------------------------------------------------------- */

.pdp {
    --pdp-line: var(--color-border, #e5e7eb);
    --pdp-muted: var(--color-muted-foreground, #6b7280);
    --pdp-ink: var(--color-foreground, #111214);
    --pdp-ink-2: var(--color-ink-2, #3c4043);
    --pdp-bg: var(--color-background, #f6f7f9);
    --pdp-brand: var(--color-brand, #e23a2e);
    --pdp-brand-dark: var(--color-brand-dark, #c22f24);
}

.pdp-band {
    background: linear-gradient(180deg, var(--color-brand-soft, #fff2ef) 0%, color-mix(in srgb, var(--color-brand-soft, #fff4f2) 40%, var(--color-card, #fff)) 190px, var(--pdp-bg) 420px);
    padding-bottom: 3.25rem;
}

.pdp-wrap {
    width: 100%;
    max-width: var(--max-width-mall, 1440px);
    margin-inline: auto;
    padding-inline: var(--spacing-gutter, 1.25rem);
}

.pdp-title {
    margin: 0;
    padding: 1.625rem 0 1.25rem;
    font-size: clamp(1rem, 0.8rem + 1.6vw, 2.125rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: var(--pdp-ink);
}

.pdp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24.5rem;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.625rem;
}

/* -------------------------------------------------------------------------- */
/* Spec / description card                                                     */
/* -------------------------------------------------------------------------- */

.pdp-card {
    background: var(--color-card, #fff);
    border-radius: 1rem;
    padding: 1.75rem;
}

.pdp-card > h2 {
    margin: 0 0 1.375rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink-2, #4b5058);
}

.pdp-card > h2 em {
    font-style: normal;
    font-size: 1.125rem;
    color: var(--pdp-muted);
}

.pdp-spec {
    display: flex;
    flex-direction: column;
}

.pdp-spec-row {
    display: grid;
    grid-template-columns: 11.875rem 1fr;
    gap: 1.125rem;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--pdp-line);
}

.pdp-spec-row:last-child {
    border-bottom: 0;
    padding-bottom: 0.25rem;
}

.pdp-spec-k {
    color: var(--pdp-muted);
    font-size: 0.9375rem;
}

.pdp-spec-k::after {
    content: " :";
    color: var(--color-footer-muted, #c4c8ce);
}

.pdp-spec-v {
    min-width: 0;
    font-size: 0.9375rem;
    color: var(--pdp-ink);
}

.pdp-spec-v strong {
    font-weight: 600;
}

.pdp-details {
    max-height: 30rem;
    overflow-y: auto;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--pdp-ink-2);
    scrollbar-width: thin;
    scrollbar-color: var(--pdp-brand) var(--color-muted, #edeef1);
}

.pdp-details p {
    margin: 0;
}

.pdp-details-html {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pdp-details-html p {
    margin: 0;
}

.pdp-gallery {
    display: grid;
    gap: 0.75rem;
}

.pdp-gallery-item {
    display: block;
    overflow: hidden;
    border: 1px solid var(--pdp-line);
    border-radius: 0.625rem;
    background: var(--color-muted, #f7f8fa);
}

.pdp-gallery-item img {
    display: block;
    width: auto;
    object-fit: cover;
}

.pdp-details::-webkit-scrollbar {
    width: 6px;
}

.pdp-details::-webkit-scrollbar-track {
    background: var(--color-muted, #edeef1);
    border-radius: 3px;
}

.pdp-details::-webkit-scrollbar-thumb {
    background: var(--pdp-brand);
    border-radius: 3px;
}

/* -------------------------------------------------------------------------- */
/* Buy panel                                                                   */
/* -------------------------------------------------------------------------- */

.pdp-buy-col {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    position: sticky;
    top: 7rem;
    /* View 滚回购买区时避开固定头栏（与 sticky top 一致） */
    scroll-margin-top: 7rem;
}

.pdp-buy {
    background: var(--color-card, #fff);
    border: 1px solid color-mix(in srgb, var(--color-brand, #e23a2e) 22%, var(--color-card, #fff));
    border-radius: 1rem;
    padding: 1.5rem;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.pdp-buy.is-flash {
    border-color: var(--pdp-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand, #e23a2e) 16%, transparent);
}

.pdp-uprice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
}

.pdp-uprice span:first-child {
    color: var(--pdp-muted);
}

.pdp-uprice b {
    font-weight: 600;
    color: var(--pdp-ink);
}

.pdp-qty {
    display: flex;
    align-items: center;
    height: 3rem;
    background: var(--color-card, #fff);
    border: 1px solid var(--pdp-line);
    border-radius: 0.625rem;
    overflow: hidden;
}

.pdp-qty button {
    width: 2.75rem;
    height: 100%;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    color: var(--pdp-muted);
    cursor: pointer;
}

.pdp-qty button:hover:not([disabled]) {
    background: var(--color-muted, #f2f3f5);
    color: var(--pdp-ink);
}

.pdp-qty input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    text-align: center;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
}

.pdp-qu {
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    color: var(--pdp-muted);
    font-weight: 600;
}

.pdp-qty-hint {
    margin: 0.5rem 0.125rem 0;
    font-size: 0.78125rem;
    color: var(--pdp-muted);
}

.pdp-qty-hint.is-warn {
    color: var(--pdp-brand);
}

.pdp-kv {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--color-brand, #e23a2e) 18%, var(--color-card, #fff));
}

.pdp-kv-k {
    font-size: 1rem;
    font-weight: 700;
}

.pdp-kv-v {
    font-size: 0.8125rem;
    color: var(--pdp-muted);
}

.pdp-kv-v b {
    font-size: 1.4375rem;
    font-weight: 700;
    color: var(--pdp-brand);
    letter-spacing: -0.025em;
    margin-right: 0.1875rem;
}

.pdp-kv-sm {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: 0;
    font-size: 0.8125rem;
    color: var(--pdp-muted);
}

.pdp-kv-sm .pdp-kv-k {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--pdp-muted);
}

.pdp-kv-sm .pdp-kv-v b {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pdp-ink-2);
    margin-right: 0.125rem;
}

.pdp-btn-buy,
.pdp-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 3.125rem;
    margin-top: 0.875rem;
    border-radius: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
}

.pdp-btn-buy {
    border: 0;
    background: var(--pdp-brand);
    color: var(--color-brand-foreground, #fff);
}

.pdp-btn-buy:hover {
    background: var(--pdp-brand-dark);
}

.pdp-btn-cart {
    border: 1px solid var(--pdp-line);
    background: var(--color-card, #fff);
    color: var(--pdp-ink);
}

.pdp-btn-cart:hover {
    background: var(--color-muted, #f7f8fa);
    border-color: var(--color-border, #c9cdd4);
}

.pdp-btn-cart:disabled,
.pdp-bb-cart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/* Trade protection                                                            */
/* -------------------------------------------------------------------------- */

.pdp-trade-protect {
    margin-top: 0.875rem;
    padding: 0.875rem;
    border: 1px solid #bfe5d2;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f1fbf6, #f8fcfa);
    color: #125f40;
}

.pdp-tp-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.pdp-tp-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    background: #daf3e6;
    color: #15805c;
    display: grid;
    place-items: center;
}

.pdp-tp-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.pdp-tp-title {
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.25;
    color: #125f40;
}

.pdp-tp-points {
    list-style: none;
    display: grid;
    gap: 0.375rem;
    margin: 0.75rem 0 0;
    padding: 0;
}

.pdp-tp-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.4375rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #356450;
}

.pdp-tp-points svg {
    flex: 0 0 auto;
    width: 0.875rem;
    height: 0.875rem;
    margin-top: 0.125rem;
    color: #22a06b;
}

.pdp-tp-link {
    display: inline;
    color: #6b7280;
    font: inherit;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.pdp-tp-link:hover {
    color: var(--pdp-brand);
}

/* -------------------------------------------------------------------------- */
/* Seller card                                                                 */
/* -------------------------------------------------------------------------- */

.pdp-seller {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
    background: var(--color-card, #fff);
    border-radius: 1rem;
    padding: 1.25rem 1.375rem;
}

.pdp-av {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    object-fit: cover;
    background: var(--color-muted, #eef0f3);
    flex: 0 0 auto;
    box-shadow: 0 0 10px rgb(0 0 0 / 28%);
    border: 1px solid #fff;
}

.pdp-s-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

.pdp-s-name-row {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    max-width: 100%;
}

.pdp-s-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pdp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pdp-s-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.375rem;
    margin: 0.1875rem 0 0.0625rem;
}

.pdp-s-lvl {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0.0625rem 0.5rem 0.0625rem 0.375rem;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.pdp-s-lvl svg {
    width: 0.8125rem;
    height: 0.8125rem;
    flex: 0 0 auto;
    color: #3b82f6;
}

.pdp-s-lvl b {
    font-weight: 800;
}

.pdp-s-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.3125rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #6b7280;
}

.pdp-s-status::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.14);
}

.pdp-s-status.is-online {
    color: #15805c;
}

.pdp-s-status.is-online::before {
    background: #22a06b;
    box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.14);
}

.pdp-s-status.is-offline {
    color: #6b7280;
}

.pdp-s-stats {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--pdp-line);
    padding-top: 0.875rem;
}

.pdp-sm-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
    padding-inline: 0.75rem;
}

.pdp-sm-cell:first-child {
    padding-left: 0;
}

.pdp-sm-cell:last-child {
    padding-right: 0;
}

.pdp-sm-cell + .pdp-sm-cell {
    border-left: 1px solid var(--pdp-line);
}

.pdp-sm-k {
    font-size: 0.75rem;
    color: var(--pdp-muted);
    white-space: nowrap;
}

.pdp-sm-v {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pdp-ink);
    line-height: 1.35;
    white-space: nowrap;
}

.pdp-sm-sub {
    font-size: 0.75rem;
    color: var(--pdp-muted);
    white-space: nowrap;
}

.pdp-sm-sub.is-good {
    color: #15805c;
    font-weight: 600;
}

.pdp-kyc-ico {
    position: relative;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.0625rem;
    height: 1.0625rem;
    color: #2563eb;
    cursor: help;
    outline: 0;
}

.pdp-kyc-ico.is-off {
    color: #b6bbc3;
}

.pdp-kyc-ico svg {
    width: 100%;
    height: 100%;
}

.pdp-kyc-tip {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    background: var(--pdp-ink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.22);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.pdp-kyc-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: var(--pdp-ink);
}

.pdp-kyc-tip b {
    font-weight: 800;
    color: #93b8ff;
}

.pdp-kyc-ico.is-off .pdp-kyc-tip b {
    color: #c4c8ce;
}

.pdp-kyc-ico:hover .pdp-kyc-tip,
.pdp-kyc-ico:focus .pdp-kyc-tip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.pdp-kyc-ico:focus-visible {
    outline: 2px solid var(--pdp-brand);
    outline-offset: 2px;
    border-radius: 3px;
}

.pdp-chat {
    flex: 1 1 100%;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    height: 2.5rem;
    padding: 0 0.875rem;
    border-radius: 0.625rem;
    border: 1px solid #bfe5d2;
    background: #effaf4;
    color: #0e6b44;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pdp-chat:hover {
    border-color: #9fd6bb;
    background: #e2f5eb;
}

/* -------------------------------------------------------------------------- */
/* Other sellers                                                               */
/* -------------------------------------------------------------------------- */

.pdp-osel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pdp-line);
}

.pdp-osel-head h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink-2, #4b5058);
}

.pdp-osort {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    flex: 0 1 auto;
    min-width: 0;
}

.pdp-oonline {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--pdp-line);
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pdp-ink-2);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pdp-oonline:hover {
    border-color: #c9cdd4;
}

.pdp-oonline input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.pdp-oonline-sw {
    position: relative;
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1rem;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 0.18s ease;
}

.pdp-oonline-sw::after {
    content: "";
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease;
}

.pdp-oonline input:checked + .pdp-oonline-sw {
    background: #22a06b;
}

.pdp-oonline input:checked + .pdp-oonline-sw::after {
    transform: translateX(0.75rem);
}

.pdp-oonline input:focus-visible + .pdp-oonline-sw {
    outline: 2px solid var(--pdp-brand);
    outline-offset: 2px;
}

.pdp-oonline:has(input:checked) {
    border-color: #bfe5d2;
    background: #f1faf5;
    color: #15805c;
}

.pdp-oonline:has(input:disabled) {
    opacity: 0.65;
    cursor: not-allowed;
}

.pdp-osort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 auto;
    min-width: 0;
}

.pdp-osort-k {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pdp-muted);
    white-space: nowrap;
}

.pdp-osort-ctl {
    min-width: 9.5rem;
    position: relative;
    z-index: 5;
}

.pdp-osort-select.select {
    width: 100%;
    overflow: visible;
}

.pdp-osort-select .select-btn {
    min-height: 2.25rem;
    font-size: 0.875rem;
}

/* 触发器较窄，菜单按文案撑开，避免 Price / Delivery 被 ellipsis 截断 */
.pdp-osort-select .select-menu {
    width: max-content;
    min-width: 100%;
    max-width: min(22rem, calc(100vw - 2rem));
    right: 0;
    left: auto;
}

.pdp-osort-select .select-label {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

/* 5 列：卖家 | 在线 | Delivery&Stock | 单价 | View */
.pdp-srow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.875rem 1rem;
    padding: clamp(0.875rem, 1.8vw, 1.125rem) 0.75rem;
    border-top: 1px solid var(--pdp-line);
}

.pdp-srow:nth-child(even) {
    background: #f7f8fa;
}

.pdp-srow:hover {
    background: #f0f2f5;
}

.pdp-srow:first-of-type {
    margin-top: 0.875rem;
}

.pdp-srow > * {
    flex: 1 1 min(100%, 6rem);
    min-width: 0;
}

.pdp-s-id {
    flex: 2 1 min(100%, 13.5rem);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.pdp-srow .pdp-av {
    width: 2.5rem;
    height: 2.5rem;
    box-shadow: 0 0 6px rgb(0 0 0 / 22%);
}

.pdp-srow .pdp-s-info {
    flex: 1 1 auto;
}

.pdp-srow .pdp-s-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.pdp-srow .pdp-kyc-ico {
    width: 0.9375rem;
    height: 0.9375rem;
}

.pdp-s-rate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.375rem;
    font-size: 0.75rem;
    color: var(--pdp-ink-2);
    margin: 0.125rem 0;
}

.pdp-s-rate svg {
    width: 0.8125rem;
    height: 0.8125rem;
    color: #2fa36b;
    flex: 0 0 auto;
}

.pdp-s-cnt {
    color: var(--pdp-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.pdp-s-status-cell {
    flex: 1 1 min(100%, 4.5rem);
    align-self: center;
}

.pdp-srow .pdp-s-status {
    margin-top: 0.125rem;
}

.pdp-cell-offer {
    flex: 3 1 min(100%, 20.5rem);
}

.pdp-method-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.25rem 0 0.375rem;
}

.pdp-method-chip {
    display: inline-block;
    max-width: 100%;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    background: var(--color-muted, #f1f3f5);
    color: var(--pdp-ink-2);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
}

.pdp-srow:nth-child(even) .pdp-method-chip,
.pdp-srow:hover .pdp-method-chip {
    background: #e6e8ec;
}

.pdp-offer {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.75rem;
}

.pdp-offer li {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    color: var(--pdp-ink-2);
    line-height: 1.35;
    white-space: nowrap;
}

.pdp-offer svg {
    flex: 0 0 auto;
    width: 0.9375rem;
    height: 0.9375rem;
    color: var(--pdp-muted);
}

.pdp-offer b {
    font-weight: 700;
    color: var(--pdp-ink);
}

.pdp-cell-k {
    display: block;
    font-size: 0.75rem;
    color: var(--pdp-muted);
}

.pdp-cell-v {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    color: var(--pdp-ink);
}

.pdp-cell-price {
    flex: 1.2 1 min(100%, 7.5rem);
}

.pdp-cell-price .pdp-cell-v {
    font-weight: 700;
    color: var(--pdp-brand);
}

.pdp-unit {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pdp-muted);
}

.pdp-s-pick {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-self: center;
    margin-left: auto;
}

.pdp-btn-pick {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 2.25rem;
    padding: 0 0.875rem;
    border: 1px solid var(--pdp-brand);
    border-radius: 0.5rem;
    background: var(--color-card, #fff);
    color: var(--pdp-brand);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.pdp-btn-pick svg {
    flex: 0 0 auto;
}

.pdp-btn-pick:hover {
    background: var(--color-brand-soft, #fff2ef);
}

.pdp-osel-more {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.25rem;
}

.pdp-btn-more {
    min-width: 10rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid var(--pdp-line);
    border-radius: 0.625rem;
    background: var(--color-card, #fff);
    color: var(--pdp-ink);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.pdp-btn-more .pdp-more-n {
    margin-left: 0.25rem;
    font-weight: 500;
    color: var(--pdp-muted);
}

.pdp-btn-more:hover:not(:disabled) {
    border-color: var(--pdp-brand);
    color: var(--pdp-brand);
}

.pdp-btn-more:hover:not(:disabled) .pdp-more-n {
    color: inherit;
}

.pdp-btn-more:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* -------------------------------------------------------------------------- */
/* Mobile sticky buy bar                                                       */
/* -------------------------------------------------------------------------- */

.pdp-buybar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: var(--color-card, #fff);
    border-top: 1px solid var(--pdp-line);
    box-shadow: 0 -6px 22px color-mix(in srgb, var(--color-foreground, #111214) 12%, transparent);
    padding: 0.625rem 0.875rem calc(0.625rem + env(safe-area-inset-bottom));
    align-items: center;
    gap: 0.625rem;
}

.pdp-bb-qty {
    display: flex;
    align-items: center;
    height: 2.75rem;
    border: 1px solid var(--pdp-line);
    border-radius: 0.5625rem;
    flex: 0 0 auto;
}

.pdp-bb-qty button {
    width: 2.125rem;
    height: 100%;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    color: var(--pdp-muted);
    padding: 0;
    cursor: pointer;
}

.pdp-bb-qty input {
    width: 2rem;
    border: 0;
    outline: 0;
    text-align: center;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    background: transparent;
}

.pdp-bb-u {
    padding-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pdp-muted);
}

.pdp-bb-tot {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.pdp-bb-k {
    font-size: 0.6875rem;
    color: var(--pdp-muted);
}

.pdp-bb-v {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pdp-brand);
    white-space: nowrap;
}

.pdp-bb-cart {
    flex: 0 0 auto;
    width: 2.875rem;
    height: 2.875rem;
    border: 1px solid var(--pdp-line);
    border-radius: 0.625rem;
    background: var(--color-card, #fff);
    color: var(--pdp-ink);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.pdp-bb-cart:hover {
    background: var(--color-muted, #f7f8fa);
    border-color: var(--color-border, #c9cdd4);
}

.pdp-bb-buy {
    flex: 1 1 auto;
    height: 2.875rem;
    border: 0;
    border-radius: 0.625rem;
    background: var(--pdp-brand);
    color: var(--color-brand-foreground, #fff);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.pdp-bb-buy:hover {
    background: var(--pdp-brand-dark);
}

/* qty / buybar 共用：数字输入去 spinner、步进禁用态 */
.pdp-qty input,
.pdp-bb-qty input {
    -moz-appearance: textfield;
}

.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button,
.pdp-bb-qty input::-webkit-outer-spin-button,
.pdp-bb-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdp-qty button[disabled],
.pdp-bb-qty button[disabled] {
    opacity: 0.35;
}

.pdp-qty button[disabled] {
    cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .pdp-srow {
        gap: 0.75rem;
    }
}

@media (max-width: 1080px) {
    .pdp-grid {
        display: block;
    }

    .pdp-buy-col {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 900px) {
    .pdp-buybar {
        display: flex;
    }

    .pdp {
        padding-bottom: 0;
    }

    .pdp-btn-buy {
        display: none;
    }

    .pdp-band {
        padding-bottom: 2rem;
    }

    .pdp-card,
    .pdp-buy {
        padding: 1.25rem;
    }

    .pdp-spec-row {
        grid-template-columns: 1fr;
        gap: 0.375rem;
        padding: 0.9375rem 0.125rem;
    }

    .pdp-spec-k::after {
        content: "";
    }

    .pdp-osel-head h2 {
        font-size: 1.25rem;
    }

    .pdp-osort {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pdp-oonline {
        padding: 0 0.625rem;
    }

    .pdp-osort-control {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .pdp-osort-ctl {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .pdp-srow {
        gap: 0.875rem 1rem;
        align-items: start;
        padding: 1.25rem 0.125rem;
    }

    .pdp-s-id,
    .pdp-cell-offer {
        flex: 1 1 100%;
    }

    .pdp-s-status-cell {
        flex: 1 1 auto;
        align-self: center;
    }

    .pdp-cell-price {
        flex: 0 0 auto;
        margin-left: 0;
        align-self: center;
        text-align: left;
    }

    .pdp-cell-price .pdp-cell-k {
        display: none;
    }

    .pdp-s-pick {
        flex: 0 0 auto;
        margin-left: auto;
        align-self: center;
    }

    .pdp-btn-pick {
        width: auto;
        min-width: 5.5rem;
        max-width: 7rem;
        height: 2.5rem;
        padding-inline: 0.875rem;
        justify-content: center;
    }

    .pdp-sm-cell {
        padding-inline: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdp * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
