:root {
    --ink: #171412;
    --muted: #6f6a66;
    --line: #e8e0d8;
    --paper: #fffaf4;
    --surface: #ffffff;
    --ruby: #8c1d2c;
    --emerald: #0f6b55;
    --sapphire: #174b7a;
    --gold: #c79b45;
    --charcoal: #221f1d;
    --shadow: 0 18px 45px rgba(35, 25, 18, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: #fff;
    padding: .6rem .9rem;
    z-index: 10;
}

.skip-link:focus {
    top: 1rem;
}

.topbar {
    background: rgba(255, 250, 244, .95);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
}

.topbar__inner,
.main-nav__inner,
.section,
.footer__inner,
.footer__bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar__inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand img {
    width: 210px;
    height: auto;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.topbar__welcome {
    color: var(--muted);
    font-size: .9rem;
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

[x-cloak] {
    display: none !important;
}

.main-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 84px;
    z-index: 39;
}

.main-nav__inner {
    display: flex;
    gap: 2rem;
    min-height: 50px;
    align-items: center;
}

.main-nav a,
.nav-item > a {
    color: var(--muted);
    font-size: .95rem;
}

.main-nav a:hover,
.nav-item:hover > a,
.nav-item:focus-within > a,
.main-nav a.is-active,
.nav-item.is-active > a,
.text-link {
    color: var(--ruby);
}

.main-nav a.is-active,
.nav-item.is-active > a {
    font-weight: 700;
}

.main-nav__inner > a,
.nav-item > a {
    position: relative;
}

.main-nav__inner > a.is-active::after,
.nav-item.is-active > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
    height: 2px;
    background: var(--ruby);
}

.nav-item {
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.nav-submenu {
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    width: 180px;
    display: grid;
    gap: .1rem;
    padding: .45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 30;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu a {
    padding: .62rem .75rem;
    border-radius: 6px;
}

.nav-submenu a:hover {
    background: var(--paper);
}

.nav-submenu a.is-active {
    background: var(--paper);
    color: var(--ruby);
    font-weight: 700;
}

.button {
    border: 1px solid var(--ink);
    border-radius: 6px;
    padding: .72rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.button--dark {
    background: var(--ink);
    color: #fff;
}

.button--ghost {
    background: transparent;
}

.button--light {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.button--full {
    width: 100%;
}

.cart-link {
    gap: .45rem;
}

.cart-link span {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ruby);
    color: #fff;
    font-size: .78rem;
    line-height: 1;
}

.cart-link.is-active {
    border-color: var(--ruby);
    color: var(--ruby);
}

.login-link__mobile {
    display: none;
}

.member-menu {
    position: relative;
}

.member-menu__button {
    gap: .35rem;
}

.member-menu__button::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.member-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% - 1px);
    min-width: 150px;
    display: grid;
    gap: .15rem;
    padding: .45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
    z-index: 45;
}

.member-menu:hover .member-menu__dropdown,
.member-menu:focus-within .member-menu__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.member-menu__dropdown a {
    color: var(--muted);
    display: block;
    padding: .62rem .75rem;
    border-radius: 6px;
    white-space: nowrap;
}

.member-menu__dropdown a:hover,
.member-menu__dropdown a:focus {
    background: var(--paper);
    color: var(--ruby);
}

.mobile-member-links {
    display: none;
}

.icon-button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    display: inline-grid;
    place-content: center;
    gap: 5px;
}

.icon-button span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    display: block;
}

.mobile-only {
    display: none;
}

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 16, 12, .82), rgba(20, 16, 12, .34), rgba(20, 16, 12, .08));
}

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

.hero__content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5rem 0 6rem;
}

.hero__content span,
.eyebrow,
.section__heading span,
.page-banner__content span {
    color: var(--gold);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: 0;
    font-weight: 700;
}

.hero h1 {
    max-width: 860px;
    margin: .6rem 0 1rem;
    font-size: clamp(2.1rem, 3.2vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero p {
    max-width: 560px;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.12rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.hero__actions .button--dark {
    border-color: rgba(255, 255, 255, .92);
    box-shadow: 0 0 0 1px rgba(199, 155, 69, .85), 0 12px 28px rgba(0, 0, 0, .22);
}

.section {
    padding: 72px 0;
}

.section--intro {
    padding-top: 84px;
}

.section--dark {
    background: var(--charcoal);
    color: #fff;
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.section__heading {
    margin-bottom: 1.5rem;
}

.section__heading h2,
.live-board h2,
.contact-panel h2,
.admin-main h2,
.article h1 {
    margin: .25rem 0 0;
    font-size: clamp(1.55rem, 2.35vw, 2.25rem);
    line-height: 1.2;
}

.section__heading--row,
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.section__actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.auction-grid,
.news-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.auction-card,
.news-card,
.contact-form,
.contact-panel,
.admin-card,
.bid-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auction-card {
    overflow: hidden;
}

.auction-card__image,
.news-card__image,
.product-gallery__main,
.product-gallery__thumbs button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.auction-card__image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f0ec;
}

.auction-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .35s ease;
}

.auction-card:hover .auction-card__image img {
    opacity: .94;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover img {
    transform: scale(1.04);
}

.auction-card__status {
    position: absolute;
    left: .85rem;
    top: .85rem;
    background: rgba(255, 250, 244, .92);
    border-radius: 999px;
    padding: .25rem .7rem;
    color: var(--ruby);
    font-size: .82rem;
    font-weight: 700;
}

.auction-card__body,
.news-card__body {
    padding: 1rem;
}

.auction-card__lot {
    margin: 0 0 .35rem;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 700;
}

.auction-card__identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    margin-bottom: .35rem;
}

.auction-card__identity .auction-card__lot {
    margin: 0;
}

.auction-card__session {
    max-width: 100%;
    padding: .2rem .6rem;
    border: 1px solid #d9b55f;
    border-radius: 999px;
    background: #fff1c9;
    color: #49320d;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.auction-home-empty {
    grid-column: 1 / -1;
    padding: 2rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.auction-home-empty[hidden] {
    display: none;
}

.auction-card h2,
.news-card h2 {
    margin: 0 0 .9rem;
    font-size: 1.2rem;
    line-height: 1.35;
}

.auction-card__title-link {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    transition: color .18s ease, text-decoration-color .18s ease;
}

.auction-card__title-link:hover {
    color: var(--ruby);
    text-decoration: underline;
    text-decoration-color: rgba(140, 29, 44, .38);
}

.auction-card__title-link:focus-visible {
    border-radius: 3px;
    box-shadow: 0 0 0 3px rgba(199, 155, 69, .22);
    outline: 1px solid var(--gold);
    outline-offset: 3px;
}

.auction-card__meta,
.detail-list {
    display: grid;
    gap: .65rem;
    margin: 0 0 1rem;
}

.auction-card__meta div,
.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: .55rem;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    font-weight: 700;
}

.live-board {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 2rem;
    align-items: center;
}

.live-board p {
    color: rgba(255, 255, 255, .72);
}

.bid-table,
.history-list,
.admin-list {
    display: grid;
    gap: .75rem;
}

.bid-table div,
.history-list div,
.admin-list div {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
}

.history-list div,
.admin-list div {
    background: #fff;
    border-color: var(--line);
}

em {
    color: var(--muted);
    font-style: normal;
    font-size: .88rem;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: #fff;
}

.category-strip a {
    padding: 1.2rem .8rem;
    text-align: center;
    border-right: 1px solid var(--line);
    color: var(--sapphire);
    font-weight: 700;
}

.category-strip a:last-child {
    border-right: 0;
}

.category-strip--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.listing-grid {
    margin-top: 1.5rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin-top: 2rem;
}

.pagination a {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .75rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
}

.pagination a:hover,
.pagination a.is-current {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.pagination__control {
    min-width: 72px;
}

.news-card {
    overflow: hidden;
}

.news-card__image {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    display: block;
}

.news-card time,
.article time {
    color: var(--emerald);
    font-weight: 700;
    font-size: .88rem;
}

.news-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.page-banner {
    min-height: 340px;
    position: relative;
    display: flex;
    align-items: end;
    background-image: var(--banner-image);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 12, 10, .78), rgba(15, 12, 10, .24));
}

.page-banner__content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.page-banner h1 {
    margin: .4rem 0 .5rem;
    font-size: clamp(1.9rem, 3.8vw, 3.2rem);
    line-height: 1.12;
}

.page-banner p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: .9rem;
    align-items: end;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.auction-status-tabs {
    display: inline-flex;
    gap: .45rem;
    margin: 0 0 1rem;
    padding: .3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
}

.auction-status-tab {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    min-height: 42px;
    padding: .55rem 1rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.auction-status-tab:hover {
    transform: translateY(-1px);
}

.auction-status-tab span {
    display: inline-grid;
    place-items: center;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .07);
    font-size: .75rem;
}

.auction-status-tab.is-active {
    background: var(--ink);
    color: #fff;
}

.auction-status-tab.is-active span {
    background: rgba(240, 207, 138, .2);
    color: #f0cf8a;
}

label {
    display: grid;
    gap: .35rem;
    color: var(--muted);
    font-size: .9rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: .72rem .8rem;
}

.product-detail,
.contact-layout,
.login-layout,
.two-column,
.cart-layout,
.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 1.5rem;
    align-items: start;
}

.product-mobile-heading {
    display: none;
}

.product-gallery__main {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f0ec;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery__video {
    width: 100%;
    max-width: none;
}

.product-gallery__spec {
    margin-top: 1rem;
}

.product-gallery__spec h2 {
    margin: 0 0 .75rem;
    font-size: 1.25rem;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-top: .75rem;
}

.product-gallery__thumbs button {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f0ec;
}

.product-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bid-panel,
.contact-form,
.contact-panel {
    padding: 1.25rem;
}

.cart-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.cart-main {
    display: grid;
    gap: 1.25rem;
}

.cart-panel,
.cart-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.cart-summary {
    position: sticky;
    top: 152px;
}

.cart-summary h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.cart-feedback {
    grid-column: 1 / -1;
    padding: .8rem 1rem;
    border: 1px solid rgba(15, 107, 85, .22);
    border-radius: 8px;
    background: rgba(15, 107, 85, .08);
    color: var(--emerald);
    font-weight: 700;
}

.cart-summary__total {
    margin-top: .35rem;
    padding-top: .85rem !important;
    border-top: 2px solid var(--ink) !important;
}

.cart-summary__total dt,
.cart-summary__total dd {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.collection-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.collection-actions form {
    margin: 0;
}

.line-negotiation-dialog {
    width: min(440px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(199, 155, 69, .45);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

.line-negotiation-dialog::backdrop {
    background: rgba(18, 15, 13, .72);
    backdrop-filter: blur(3px);
}

.line-negotiation-dialog__content {
    position: relative;
    display: grid;
    justify-items: center;
    gap: .8rem;
    padding: 1.5rem;
    text-align: center;
}

.line-negotiation-dialog__content h2,
.line-negotiation-dialog__content p {
    margin: 0;
}

.line-negotiation-dialog__content > img {
    width: min(250px, 78vw);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.line-negotiation-dialog__product {
    color: var(--muted);
    font-size: .88rem;
}

.line-negotiation-dialog__close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.cart-list {
    display: grid;
    gap: .85rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.cart-item img {
    width: 108px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: contain;
    background: #f3f0ec;
}

.cart-item__image-link {
    display: block;
    width: 108px;
    line-height: 0;
}

.cart-item__title-link {
    color: inherit;
    text-decoration-color: rgba(140, 29, 44, .35);
    text-underline-offset: .2em;
}

.cart-item__title-link:hover {
    color: var(--ruby);
}

.cart-item h3 {
    margin: .1rem 0 .25rem;
    font-size: 1.08rem;
}

.cart-item p {
    margin: 0;
    color: var(--muted);
}

.cart-item strong {
    white-space: nowrap;
}

.cart-item > div {
    min-width: 0;
}

.cart-certificate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem .7rem;
    margin-top: .6rem;
    max-width: 100%;
}

.cart-certificate label {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: .38rem .65rem;
    border: 1px solid #d9b55f;
    border-radius: 8px;
    background: #fff8e7;
    color: #49320d;
    font-size: .88rem;
    cursor: pointer;
}

.cart-certificate label span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cart-certificate input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    accent-color: #8a5737;
    flex: 0 0 auto;
}

.cart-certificate__status {
    color: var(--muted);
    font-size: .82rem;
}

.cart-certificate__status.is-error {
    color: #a52b30;
}

.cart-certificate button {
    min-height: 36px;
    padding: .3rem .65rem;
    border: 1px solid #b18c4a;
    border-radius: 7px;
    background: #fff;
    color: #49320d;
    cursor: pointer;
}

.cart-certificate:has(input:checked) label {
    background: #fff0c5;
    border-color: #b18c4a;
}

.cart-lock,
.cart-remove {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: .45rem .7rem;
    white-space: nowrap;
}

.cart-lock {
    background: var(--paper);
    color: var(--muted);
}

.cart-remove {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ruby);
    cursor: pointer;
}

.cart-remove:hover {
    border-color: var(--ruby);
}

.cart-empty {
    margin: 1rem 0 0;
    color: var(--muted);
}

.bid-panel h1 {
    margin: .25rem 0 .75rem;
    font-size: clamp(1.55rem, 2.45vw, 2.25rem);
    line-height: 1.15;
}

.bid-panel__history {
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.bid-panel__history-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    margin-bottom: .75rem;
}

.bid-panel__history h2 {
    margin: 0;
    font-size: 1.12rem;
}

.bid-panel__history-heading .server-countdown {
    flex: 0 1 min(300px, 100%);
    margin: 0;
    padding: .55rem;
}

.bid-panel__history-heading .server-countdown__label,
.bid-panel__history-heading .server-countdown p {
    display: none;
}

.bid-panel__history-heading .server-countdown__time {
    gap: .3rem;
}

.bid-panel__history-heading .server-countdown__time span {
    min-height: 40px;
}

.bid-panel__history-heading .server-countdown__time strong {
    font-size: .98rem;
}

.bid-panel p {
    color: var(--muted);
}

.line-qr {
    width: min(260px, 100%);
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .45rem;
    margin: 1.25rem 0 .9rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.line-qr span {
    min-width: 0;
    border-radius: 3px;
    background: var(--ink);
}

.line-qr span:nth-child(2),
.line-qr span:nth-child(4),
.line-qr span:nth-child(6),
.line-qr span:nth-child(8),
.line-qr span:nth-child(12),
.line-qr span:nth-child(14),
.line-qr span:nth-child(18),
.line-qr span:nth-child(20),
.line-qr span:nth-child(22),
.line-qr span:nth-child(24) {
    background: transparent;
}

.line-qr__note {
    margin: 0;
    color: var(--muted);
}

.bid-form,
.contact-form,
.settings-form {
    display: grid;
    gap: .9rem;
}

.server-countdown {
    display: grid;
    gap: .65rem;
    margin: 1rem 0;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf4;
}

.server-countdown__label {
    color: var(--muted);
    font-size: .88rem;
}

.server-countdown__time {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}

.server-countdown__time span {
    display: grid;
    place-items: center;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.server-countdown__time strong {
    font-size: 1.35rem;
    line-height: 1;
}

.server-countdown__time em {
    font-size: .78rem;
}

.server-countdown--compact {
    padding: .75rem;
}

.server-countdown--compact .server-countdown__time {
    gap: .35rem;
}

.server-countdown--compact .server-countdown__time span {
    min-height: 48px;
}

.server-countdown--compact .server-countdown__time strong {
    font-size: 1.08rem;
}

.server-countdown p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}

.server-countdown.is-closed .server-countdown__time strong,
.server-countdown.is-closed p {
    color: var(--ruby);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

.login-intro {
    padding: 1.25rem 0;
}

.login-intro h1 {
    margin: .35rem 0 .75rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.login-intro p {
    max-width: 520px;
    color: var(--muted);
}

.login-benefits {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
}

.login-benefits div {
    display: grid;
    gap: .15rem;
    padding: .9rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.login-benefits span,
.form-note {
    color: var(--muted);
}

.login-form h2 {
    margin: 0;
}

.google-signin-button {
    position: relative;
    width: min(100%, 280px);
    min-height: 44px;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .62rem 1.25rem .62rem 3.15rem;
    border: 1px solid #747775;
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .12);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.google-signin-button:hover {
    border-color: #c5c9ce;
    background: #f8faff;
    color: #202124;
    box-shadow: 0 3px 10px rgba(60, 64, 67, .16);
    transform: translateY(-1px);
}

.google-signin-button:focus-visible {
    outline: 3px solid rgba(66, 133, 244, .28);
    outline-offset: 2px;
}

.google-signin-button__icon {
    position: absolute;
    left: 1.05rem;
    width: 20px;
    height: 20px;
}

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
    color: var(--muted);
    font-size: .88rem;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.form-row,
.checkbox-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.checkbox-label {
    justify-content: flex-start;
    color: var(--muted);
}

.checkbox-label input {
    width: auto;
}

.form-note {
    margin: 0;
    font-size: .86rem;
}

.form-message {
    min-height: 1.5rem;
    margin: 0;
    color: var(--emerald);
    font-weight: 700;
}

.spec-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
}

.spec-table th,
.spec-table td,
.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: .85rem;
    text-align: left;
}

.spec-table th,
.admin-table th {
    color: var(--muted);
    font-weight: 700;
    width: 32%;
}

.article {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.article__header {
    margin-bottom: 1.5rem;
}

.article__header p,
.article__body p {
    color: var(--muted);
}

.article__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--gold);
    background: #fff;
}

.admin-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
    grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
    background: var(--charcoal);
    color: #fff;
    border-radius: 8px;
    padding: 1rem;
    display: grid;
    gap: .4rem;
}

.admin-sidebar h1 {
    font-size: 1.15rem;
    margin: 0 0 .75rem;
}

.admin-sidebar a {
    padding: .72rem .85rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, .82);
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.admin-main {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.metric-grid div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem;
}

.metric-grid span {
    color: var(--muted);
}

.metric-grid strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.admin-card {
    padding: 1.25rem;
}

.admin-toolbar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.footer {
    background: #191715;
    color: rgba(255, 255, 255, .78);
    padding-top: 48px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
}

.footer__logo {
    width: 180px;
    padding: 0;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.footer h2 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 .8rem;
}

.footer a {
    display: block;
    margin-bottom: .45rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 36px;
    padding: 18px 0;
    font-size: .86rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: rgba(0, 0, 0, .86);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__dialog {
    width: min(1800px, 100%);
    max-height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: .75rem;
}

.lightbox__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.lightbox__close {
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 6px;
    padding: .5rem .8rem;
    cursor: pointer;
}

.lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }

.lightbox__nav[hidden] {
    display: none;
}

.lightbox img {
    width: 100%;
    height: min(84vh, 1100px);
    min-height: 0;
    object-fit: contain;
    background: transparent;
}

.lightbox p {
    color: #fff;
    margin: 0;
}

.media-section {
    padding-top: 0;
}

.media-section__inner {
    width: min(680px, 100%);
}

.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    box-shadow: var(--shadow);
}

.video-embed--compact {
    max-width: 680px;
}

.video-description {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.video-description h3 {
    margin: 0 0 .45rem;
    font-size: 1.05rem;
}

.video-description p {
    margin: 0;
    color: var(--muted);
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 920px) {
    html.mobile-nav-open,
    html.mobile-nav-open body {
        overflow: hidden;
    }

    .mobile-only {
        display: inline-grid;
    }

    .topbar__actions .text-link,
    .topbar__actions > .button {
        display: none;
    }

    .topbar__actions .cart-link {
        display: inline-flex;
        padding-inline: .75rem;
    }

    .topbar__actions .login-link {
        display: inline-flex;
        padding-inline: .75rem;
    }

    .topbar__actions .member-menu {
        display: block;
    }

    .member-menu__button {
        min-width: 44px;
        padding-inline: .72rem;
    }

    .member-menu__dropdown {
        right: auto;
        left: 50%;
        top: calc(100% - 1px);
        transform: translateX(-50%) translateY(8px);
        min-width: 132px;
    }

    .member-menu:hover .member-menu__dropdown,
    .member-menu:focus-within .member-menu__dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .member-menu__dropdown a {
        padding: .68rem .75rem;
    }

    .login-link__desktop {
        display: none;
    }

    .login-link__mobile {
        display: inline;
    }

    .topbar__welcome {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 84px;
        z-index: 39;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 18px 45px rgba(35, 25, 18, .16);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav__inner {
        flex-direction: column;
        align-items: stretch;
        min-height: 100%;
        padding: .75rem 0 max(1.25rem, env(safe-area-inset-bottom));
        gap: .2rem;
    }

    .main-nav a {
        padding: .75rem;
    }

    .nav-item {
        display: grid;
        min-height: auto;
    }

    .nav-item > a {
        padding: .75rem;
    }

    .main-nav__inner > a.is-active::after,
    .nav-item.is-active > a::after {
        display: none;
    }

    .main-nav a.is-active,
    .nav-item.is-active > a {
        background: var(--paper);
        border-radius: 6px;
    }

    .nav-submenu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 6px;
        margin: 0 0 .4rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-member-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: -1;
        gap: .15rem;
        margin-bottom: .55rem;
        padding: .5rem;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .mobile-member-links__title {
        grid-column: 1 / -1;
        color: var(--muted);
        font-size: .85rem;
        font-weight: 700;
        padding: .35rem .75rem;
    }

    .mobile-member-links a {
        padding: .68rem .75rem;
        border-radius: 6px;
    }

    .mobile-member-links a.is-active {
        background: var(--paper);
        color: var(--ruby);
        font-weight: 700;
    }

    .auction-grid,
    .news-grid,
    .metric-grid,
    .footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-board,
    .product-detail,
    .contact-layout,
    .login-layout,
    .two-column,
    .cart-layout,
    .admin-layout,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .product-mobile-heading {
        display: block;
        margin-bottom: 1rem;
    }

    .product-mobile-heading h1 {
        margin: .25rem 0 0;
        font-size: clamp(1.8rem, 7vw, 2.35rem);
        line-height: 1.15;
    }

    .product-desktop-heading {
        display: none;
    }

    .category-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-strip--four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .topbar__inner {
        min-height: 72px;
        gap: .5rem;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand img {
        width: 125px;
    }

    .topbar__actions {
        flex: 0 0 auto;
        gap: .4rem;
    }

    .topbar__actions .member-menu,
    .topbar__actions .logout-link {
        display: none;
    }

    .topbar__actions .login-link,
    .topbar__actions .cart-link,
    .member-menu__button {
        min-width: 0;
        min-height: 40px;
        padding: .48rem .58rem;
        font-size: .86rem;
        white-space: nowrap;
        word-break: keep-all;
        writing-mode: horizontal-tb;
    }

    .topbar__actions .cart-link {
        gap: .35rem;
    }

    .icon-button {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .main-nav {
        top: 72px;
    }

    .hero {
        min-height: 560px;
    }

    .section {
        padding: 48px 0;
    }

    .auction-grid,
    .news-grid,
    .metric-grid,
    .footer__inner,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .category-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .bid-table div,
    .history-list div,
    .admin-list div,
    .cart-item {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .cart-item img {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .cart-item__image-link {
        width: 100%;
    }

    .cart-certificate {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-certificate button {
        justify-self: start;
    }

    .cart-lock,
    .cart-remove {
        width: 100%;
        margin-top: .6rem;
    }

    .section__heading--row,
    .admin-toolbar,
    .footer__bottom {
        align-items: start;
        flex-direction: column;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox__stage {
        width: 100%;
    }

    .lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 1.55rem;
    }
}

/* 即時拍賣互動層 */
.auction-live {
    position: sticky;
    top: 152px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.auction-live.is-ending {
    border-color: rgba(140, 29, 44, .55);
    box-shadow: 0 18px 48px rgba(140, 29, 44, .16);
}

.auction-livebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .2rem 0 1rem;
    padding: .55rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fbfaf8;
    font-size: .78rem;
}

.auction-connection {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.auction-connection i,
.auction-card__status i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(199, 155, 69, .14);
}

.auction-connection[data-state="online"] {
    color: var(--emerald);
}

.auction-connection[data-state="online"] i,
.auction-card:not(.is-closed) .auction-card__status i {
    background: #25a47b;
    box-shadow: 0 0 0 4px rgba(37, 164, 123, .14);
    animation: auction-live-pulse 1.8s ease-out infinite;
}

.auction-connection[data-state="offline"] {
    color: var(--ruby);
}

.auction-connection[data-state="offline"] i,
.auction-card.is-closed .auction-card__status i {
    background: var(--ruby);
    box-shadow: 0 0 0 4px rgba(140, 29, 44, .12);
    animation: none;
}

.auction-connection[data-state="closed"] {
    color: var(--muted);
}

.auction-connection[data-state="closed"] i {
    background: var(--muted);
    box-shadow: 0 0 0 4px rgba(111, 106, 102, .12);
    animation: none;
}

.auction-last-sync {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-notices:empty {
    display: none;
}

.auction-notice,
.bid-form__message.is-success,
.bid-form__message.is-error {
    border-radius: 7px;
    padding: .7rem .8rem;
    font-size: .88rem;
}

.auction-notice {
    margin-bottom: .8rem;
}

.auction-notice.is-success,
.bid-form__message.is-success {
    border: 1px solid rgba(15, 107, 85, .2);
    background: rgba(15, 107, 85, .08);
    color: var(--emerald);
}

.auction-notice.is-error,
.bid-form__message.is-error {
    border: 1px solid rgba(140, 29, 44, .2);
    background: rgba(140, 29, 44, .08);
    color: var(--ruby);
}

.auction-result {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(140, 29, 44, .25);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(140, 29, 44, .08), rgba(199, 155, 69, .12));
}

.auction-result[hidden],
.auction-result [hidden] {
    display: none !important;
}

.auction-result.is-winner {
    border-color: rgba(15, 107, 85, .32);
    background: linear-gradient(135deg, rgba(15, 107, 85, .09), rgba(199, 155, 69, .15));
}

.auction-result > span {
    color: var(--ruby);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.auction-result.is-winner > span {
    color: var(--emerald);
}

.auction-result h2,
.auction-result p {
    margin: 0;
}

.auction-result h2 {
    font-size: 1.15rem;
}

.auction-result p {
    color: var(--muted);
    font-size: .9rem;
}

.auction-price-board {
    display: grid;
    gap: .35rem;
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #171412, #332b25);
    color: #fff;
    box-shadow: 0 14px 30px rgba(23, 20, 18, .18);
}

.auction-price-board > span {
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    font-weight: 700;
}

.auction-price-board > strong {
    display: block;
    color: #f0cf8a;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1.15;
    transform-origin: left center;
}

.auction-price-board > strong.is-changing,
[data-auction-card-bid].is-changing {
    animation: auction-price-change .85s ease;
}

.auction-price-board > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
}

.auction-history {
    max-height: 240px;
    overflow-y: auto;
    padding-right: .2rem;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.history-list .auction-history__item,
.history-list .auction-history__empty {
    min-width: 0;
    padding: .72rem .8rem;
    border-color: var(--line);
    background: #fff;
}

.history-list .auction-history__item.is-mine {
    border-color: rgba(15, 107, 85, .25);
    background: rgba(15, 107, 85, .055);
}

.history-list .auction-history__item.is-mine > span {
    color: var(--emerald);
    font-weight: 800;
}

.history-list .auction-history__item.is-new {
    animation: auction-new-bid .85s ease;
}

.history-list .auction-history__empty {
    display: block;
    color: var(--muted);
    text-align: center;
}

.bid-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bid-input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(199, 155, 69, .15);
}

.bid-input-wrap:has(input[aria-invalid="true"]) {
    border-color: var(--ruby);
    box-shadow: 0 0 0 3px rgba(140, 29, 44, .1);
}

.bid-input-wrap > span {
    padding-left: .85rem;
    color: var(--muted);
    font-weight: 800;
}

.bid-input-wrap input {
    border: 0;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    outline: 0;
}

.bid-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.bid-presets button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.bid-presets button:hover,
.bid-presets button:focus-visible {
    border-color: var(--gold);
    background: #fffaf1;
    color: var(--ink);
}

.bid-form__hint,
.bid-form__message {
    margin: 0;
    font-size: .8rem;
}

.bid-form__hint {
    color: var(--muted);
}

.bid-form__message {
    min-height: 1.3rem;
}

.bid-submit {
    gap: .55rem;
}

.bid-submit i {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
}

.bid-submit.is-loading i {
    display: inline-block;
    animation: auction-spin .7s linear infinite;
}

.button:disabled,
.bid-presets button:disabled,
.bid-input-wrap input:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
    box-shadow: none;
}

.bid-form-guest {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9f8f6;
    text-align: center;
}

.bid-form-guest p {
    margin: 0;
    font-size: .92rem;
}

.product-gallery__main {
    margin-top: 1rem;
}

.product-gallery__main:first-child {
    margin-top: 0;
}

.auction-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.auction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(35, 25, 18, .16);
}

.auction-card.is-ending {
    border-color: rgba(140, 29, 44, .42);
}

.auction-card.is-closed .auction-card__image img {
    filter: saturate(.55);
}

.auction-card__status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.auction-card__activity {
    margin: -.45rem 0 .75rem;
    color: var(--muted);
    font-size: .78rem;
}

.server-countdown.is-urgent {
    border-color: rgba(140, 29, 44, .42);
    background: rgba(140, 29, 44, .055);
    animation: auction-urgent-glow 1.25s ease-in-out infinite alternate;
}

.server-countdown.is-urgent [data-countdown-seconds],
.server-countdown.is-urgent [data-countdown-label] {
    color: var(--ruby);
}

.server-countdown.is-clock-offline [data-countdown-label]::after {
    content: " · 等待校時";
}

.auction-toast-region {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 100;
    width: min(390px, calc(100vw - 2rem));
    display: grid;
    gap: .65rem;
    pointer-events: none;
}

.auction-toast {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    padding: .85rem .9rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(27, 24, 22, .96);
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(16px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}

.auction-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.auction-toast > i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(199, 155, 69, .18);
}

.auction-toast.is-success > i,
.auction-toast.is-winner > i {
    background: #45c99e;
}

.auction-toast.is-error > i,
.auction-toast.is-closed > i {
    background: #dd6b79;
}

.auction-toast > span {
    min-width: 0;
    font-size: .9rem;
}

.auction-toast > button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    font-size: 1.25rem;
}

.auction-floating-status {
    position: fixed;
    left: 50%;
    top: 144px;
    z-index: 38;
    width: min(620px, calc(100vw - 2rem));
    display: grid;
    grid-template-columns: minmax(160px, .85fr) minmax(300px, 1.4fr);
    gap: 1rem;
    align-items: center;
    padding: .65rem .8rem;
    border: 1px solid rgba(199, 155, 69, .4);
    border-radius: 12px;
    background: rgba(25, 22, 20, .72);
    color: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    backdrop-filter: blur(4px) saturate(115%);
    pointer-events: none;
    transform: translateX(-50%);
    animation: auction-floating-enter .22s ease;
}

.auction-floating-status[hidden] {
    display: none !important;
}

.auction-floating-status__price {
    display: grid;
    min-width: 0;
}

.auction-floating-status__price > span {
    color: rgba(255, 255, 255, .66);
    font-size: .72rem;
}

.auction-floating-status__price > strong {
    overflow: hidden;
    color: #f0cf8a;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-floating-status__leader {
    overflow: hidden;
    margin-top: .12rem;
    color: rgba(255, 255, 255, .7);
    font-size: .7rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-floating-status .server-countdown {
    gap: .28rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.auction-floating-status .server-countdown__label {
    color: rgba(255, 255, 255, .66);
    font-size: .7rem;
}

.auction-floating-status .server-countdown__time {
    gap: .3rem;
}

.auction-floating-status .server-countdown__time span {
    min-height: 38px;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.auction-floating-status .server-countdown__time strong {
    font-size: .92rem;
}

.auction-floating-status .server-countdown__time em {
    color: rgba(255, 255, 255, .58);
    font-size: .65rem;
}

.auction-floating-status .server-countdown.is-urgent .server-countdown__time strong,
.auction-floating-status .server-countdown.is-urgent .server-countdown__time em,
.auction-floating-status .server-countdown.is-urgent [data-countdown-label] {
    color: #ffd86b;
    text-shadow: 0 0 14px rgba(255, 216, 107, .24);
}

.auction-floating-status .server-countdown.is-urgent .server-countdown__time span {
    border-color: rgba(255, 216, 107, .44);
    background: rgba(255, 216, 107, .1);
}

.auction-floating-status .server-countdown > p {
    display: none;
}

.auction-confetti {
    position: fixed;
    inset: 0;
    z-index: 110;
    overflow: hidden;
    pointer-events: none;
}

.auction-confetti i {
    position: absolute;
    left: var(--x);
    top: -24px;
    width: 9px;
    height: 18px;
    border-radius: 2px;
    background: var(--gold);
    animation: auction-confetti-fall var(--duration) var(--delay) cubic-bezier(.2, .7, .3, 1) forwards;
}

.auction-confetti i[style*="--color-index: 1"] { background: var(--ruby); }
.auction-confetti i[style*="--color-index: 2"] { background: var(--emerald); }
.auction-confetti i[style*="--color-index: 3"] { background: var(--sapphire); }

@keyframes auction-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 164, 123, .32); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(37, 164, 123, 0); }
}

@keyframes auction-price-change {
    0% { color: inherit; transform: scale(1); }
    35% { color: #f2c45f; transform: scale(1.07); }
    100% { transform: scale(1); }
}

@keyframes auction-new-bid {
    0% { opacity: 0; transform: translateY(-12px); background: rgba(199, 155, 69, .3); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes auction-urgent-glow {
    from { box-shadow: 0 0 0 rgba(140, 29, 44, 0); }
    to { box-shadow: 0 0 0 3px rgba(140, 29, 44, .09); }
}

@keyframes auction-spin {
    to { transform: rotate(360deg); }
}

@keyframes auction-confetti-fall {
    0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(-40px, 105vh, 0) rotate(var(--rotation)); }
}

@keyframes auction-floating-enter {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 920px) {
    .auction-live {
        position: static;
    }
}

@media (max-width: 620px) {
    .auction-livebar,
    .auction-price-board > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .auction-last-sync {
        width: 100%;
    }

    .history-list .auction-history__item {
        grid-template-columns: 1fr auto;
        gap: .2rem .75rem;
    }

    .history-list .auction-history__item em {
        grid-column: 1 / -1;
    }

    .auction-toast-region {
        right: 1rem;
        left: 1rem;
        width: auto;
    }

    .auction-floating-status {
        top: 82px;
        width: calc(100vw - 1rem);
        grid-template-columns: minmax(112px, .8fr) minmax(0, 1.55fr);
        gap: .55rem;
        padding: .55rem .6rem;
        border-radius: 10px;
    }

    .auction-floating-status__price > strong {
        font-size: .96rem;
    }

    .auction-floating-status .server-countdown__time span {
        min-height: 34px;
    }

    .auction-floating-status .server-countdown__time strong {
        font-size: .78rem;
    }

    .auction-floating-status .server-countdown__time em {
        font-size: .58rem;
    }
}

@media (max-width: 380px) {
    .brand img {
        width: 108px;
    }

    .topbar__actions {
        gap: .25rem;
    }

    .topbar__actions .login-link,
    .topbar__actions .cart-link {
        padding-inline: .42rem;
        font-size: .8rem;
    }

    .icon-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auction-card,
    .auction-card img,
    .auction-toast,
    .button {
        transition-duration: .01ms !important;
    }

    .auction-connection i,
    .auction-card__status i,
    .server-countdown.is-urgent,
    .auction-price-board > strong.is-changing,
    [data-auction-card-bid].is-changing,
    .auction-history__item.is-new {
        animation: none !important;
    }

    .auction-floating-status {
        animation: none !important;
    }
}

/* Legal, policy and FAQ pages */
.legal-template-notice,
.legal-callout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(199, 155, 69, .42);
    border-radius: 10px;
    background: #fffaf0;
}

.legal-template-notice strong,
.legal-callout strong {
    color: var(--ruby);
}

.legal-template-notice p,
.legal-callout p {
    margin: 0;
    color: var(--muted);
}

.legal-overview {
    display: grid;
    gap: 2.2rem;
}

.legal-overview__heading {
    max-width: 720px;
    margin: .5rem auto 0;
    text-align: center;
}

.legal-overview__heading p {
    margin-bottom: 0;
    color: var(--muted);
}

.legal-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.legal-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(35, 25, 18, .07);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.legal-card:hover {
    border-color: rgba(199, 155, 69, .72);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.legal-card > span,
.legal-contact-strip span,
.legal-document__header span,
.faq-group__heading p {
    color: var(--gold);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.legal-card h2 {
    margin: .75rem 0 .65rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.legal-card p {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.legal-card strong {
    margin-top: auto;
    color: var(--ruby);
    font-size: .9rem;
}

.legal-card--featured {
    border-color: #312d29;
    background: linear-gradient(145deg, #171412, #312b27);
    color: #fff;
}

.legal-card--featured p {
    color: rgba(255, 255, 255, .72);
}

.legal-card--featured strong {
    color: #f0cf8a;
}

.legal-contact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 1.75rem;
    border-radius: 10px;
    background: #eee6dd;
}

.legal-contact-strip h2 {
    margin: .15rem 0 0;
}

.legal-shell {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 154px;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(35, 25, 18, .07);
}

.legal-nav p {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--charcoal);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
}

.legal-nav a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: .55rem;
    align-items: center;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
    transition: background .18s ease, color .18s ease;
}

.legal-nav a:last-child {
    border-bottom: 0;
}

.legal-nav a span {
    color: var(--gold);
    font-size: .7rem;
    font-weight: 800;
}

.legal-nav a:hover,
.legal-nav a.is-active {
    background: #fff8ee;
    color: var(--ruby);
}

.legal-nav a.is-active {
    font-weight: 800;
    box-shadow: inset 3px 0 var(--ruby);
}

.legal-document {
    min-width: 0;
    padding: clamp(1.35rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.legal-document__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.legal-document__header h1 {
    margin: .3rem 0 0;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.2;
}

.legal-document__header > p {
    flex: 0 0 auto;
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.legal-document > .legal-template-notice,
.legal-document > .legal-callout {
    margin-bottom: .5rem;
}

.legal-section {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.65rem 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 170px;
}

.legal-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-section > span,
.faq-group__heading > span {
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
}

.legal-section h2 {
    margin: -.25rem 0 .65rem;
    font-size: 1.15rem;
}

.legal-section p {
    margin: 0;
    color: #504b47;
}

.legal-section .text-link {
    display: inline-block;
    margin-top: .75rem;
    font-weight: 800;
}

.faq-group {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.faq-group:first-of-type {
    padding-top: 0;
}

.faq-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.faq-group__heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.faq-group__heading p,
.faq-group__heading h2 {
    margin: 0;
}

.faq-group__heading h2 {
    font-size: 1.35rem;
}

.faq-list {
    display: grid;
    gap: .65rem;
}

.faq-list details {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
}

.faq-list details[open] {
    border-color: rgba(199, 155, 69, .58);
    background: #fffaf1;
}

.faq-list summary {
    position: relative;
    padding: 1rem 3rem 1rem 1rem;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    color: var(--ruby);
    font-size: 1.35rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details > div {
    padding: 0 1rem 1rem;
    color: var(--muted);
}

.faq-list details > div p {
    margin: 0;
}

.faq-list .text-link {
    display: inline-block;
    margin-top: .65rem;
    font-weight: 800;
}

@media (max-width: 920px) {
    .legal-shell {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        grid-template-columns: repeat(5, minmax(150px, 1fr));
        overflow-x: auto;
        box-shadow: none;
        scrollbar-width: thin;
    }

    .legal-nav p {
        display: none;
    }

    .legal-nav a {
        border-right: 1px solid var(--line);
        border-bottom: 0;
        white-space: nowrap;
    }

    .legal-nav a.is-active {
        box-shadow: inset 0 -3px var(--ruby);
    }
}

@media (max-width: 620px) {
    .legal-template-notice,
    .legal-callout {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .legal-card-grid {
        grid-template-columns: 1fr;
    }

    .legal-card {
        min-height: 220px;
        padding: 1.35rem;
    }

    .legal-contact-strip,
    .legal-document__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-contact-strip .button {
        width: 100%;
    }

    .legal-shell {
        width: 100%;
        gap: 1rem;
        padding-top: 28px;
    }

    .legal-nav,
    .legal-document {
        border-radius: 0;
    }

    .legal-nav {
        border-right: 0;
        border-left: 0;
    }

    .legal-document {
        border-right: 0;
        border-left: 0;
        box-shadow: none;
    }

    .legal-section,
    .faq-group__heading {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: .65rem;
    }
}

@media print {
    .topbar,
    .main-nav,
    .footer,
    .page-banner,
    .legal-nav {
        display: none !important;
    }

    .legal-shell {
        display: block;
        width: 100%;
        padding: 0;
    }

    .legal-document {
        border: 0;
        box-shadow: none;
    }
}

/* Auction listing filters */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.filter-bar.auction-filter {
    display: block;
    padding: 1.25rem;
    border-color: #dfd4c9;
    box-shadow: 0 12px 30px rgba(35, 25, 18, .07);
}

.auction-filter__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.auction-filter__heading span {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auction-filter__heading h2 {
    margin: .15rem 0 0;
    font-size: 1.35rem;
}

.auction-filter__heading p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    text-align: right;
}

.auction-filter__fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    align-items: end;
}

.auction-filter__fields label > span:not(.sr-only),
.auction-filter__price legend {
    color: #544e49;
    font-size: .82rem;
    font-weight: 800;
}

.auction-filter__fields input,
.auction-filter__fields select {
    min-height: 46px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auction-filter__fields input:focus,
.auction-filter__fields select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(199, 155, 69, .13);
    outline: 0;
}

.auction-filter__price {
    min-width: 0;
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
}

.auction-filter__price legend {
    grid-column: 1 / -1;
    margin-bottom: .35rem;
    padding: 0;
}

.auction-filter__price i {
    color: var(--muted);
    font-style: normal;
}

.auction-filter__actions {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
}

.auction-filter__actions .button {
    width: 100%;
}

.auction-filter__errors {
    display: grid;
    gap: .25rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(140, 29, 44, .3);
    border-radius: 7px;
    background: rgba(140, 29, 44, .06);
    color: var(--ruby);
}

.auction-filter__errors p {
    margin: 0;
    font-size: .86rem;
}

.auction-filter-results {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin: -.35rem 0 1.3rem;
}

.auction-filter-results > p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.auction-filter-results > p strong {
    margin-right: .2rem;
    color: var(--ink);
    font-size: 1.2rem;
}

.auction-active-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.auction-active-filters > span,
.auction-active-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .76rem;
}

.auction-active-filters > span {
    color: var(--muted);
}

.auction-active-filters a {
    gap: .35rem;
    border: 1px solid #e2d4c5;
    background: #fff8ee;
    color: #5f4735;
    transition: border-color .18s ease, background .18s ease;
}

.auction-active-filters a:hover {
    border-color: var(--gold);
    background: #fff;
}

.auction-active-filters b {
    color: var(--ruby);
    font-size: 1rem;
    line-height: 1;
}

.auction-filter-empty {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    padding: clamp(2.5rem, 8vw, 5rem) 1.25rem;
    border: 1px dashed #d8c9ba;
    border-radius: 10px;
    background: rgba(255, 255, 255, .62);
    text-align: center;
}

.auction-filter-empty > span {
    color: var(--gold);
    font-size: 2.8rem;
    line-height: 1;
}

.auction-filter-empty h2 {
    margin: .75rem 0 .25rem;
    font-size: 1.35rem;
}

.auction-filter-empty p {
    margin: 0 0 1rem;
    color: var(--muted);
}

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

@media (max-width: 620px) {
    .auction-status-tabs {
        width: 100%;
    }

    .auction-status-tab {
        flex: 1 1 50%;
        justify-content: center;
    }

    .auction-filter__heading {
        display: block;
    }

    .auction-filter__heading p {
        margin-top: .45rem;
        text-align: left;
    }

    .auction-filter__fields {
        grid-template-columns: 1fr;
    }

    .auction-filter__price,
    .auction-filter__actions {
        grid-column: span 1;
    }

    .auction-filter-results {
        align-items: flex-start;
        flex-direction: column;
    }

    .auction-active-filters {
        justify-content: flex-start;
    }
}

/* Loose-stone category showcase */
.stone-category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.stone-category-heading > div > span,
.stone-listing-heading > div > span {
    color: var(--gold);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stone-category-heading h2,
.stone-listing-heading h2 {
    margin: .18rem 0 0;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.stone-category-heading p {
    margin: .4rem 0 0;
    color: var(--muted);
}

.stone-category-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 44px;
    padding: .5rem .55rem .5rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.stone-category-all strong {
    min-width: 30px;
    min-height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0 .45rem;
    border-radius: 999px;
    background: #eee7df;
    color: var(--ink);
    font-size: .75rem;
}

.stone-category-all:hover,
.stone-category-all.is-active {
    border-color: var(--gold);
    color: var(--ruby);
    box-shadow: 0 8px 20px rgba(35, 25, 18, .08);
}

.stone-category-all.is-active strong {
    background: var(--ink);
    color: #f0cf8a;
}

.stone-category-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.stone-category-card {
    --gem-dark: #174b7a;
    --gem-main: #2f78b7;
    --gem-light: #a8d8ff;
    --gem-tint: #eef6fc;
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 260px;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid #e3d9cf;
    border-radius: 12px;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .92), transparent 34%),
        linear-gradient(145deg, #fff 18%, var(--gem-tint));
    box-shadow: 0 12px 28px rgba(35, 25, 18, .07);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.stone-category-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -38px;
    top: -46px;
    width: 145px;
    height: 145px;
    border: 1px solid color-mix(in srgb, var(--gem-main) 18%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--gem-main) 7%, transparent);
}

.stone-category-card:hover {
    border-color: color-mix(in srgb, var(--gem-main) 46%, #d8cec3);
    box-shadow: 0 20px 42px rgba(35, 25, 18, .13);
    transform: translateY(-4px);
}

.stone-category-card.is-active {
    border-color: var(--gem-main);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gem-main) 18%, transparent), 0 18px 40px rgba(35, 25, 18, .12);
}

.stone-category-card.is-active::after {
    content: "目前分類";
    position: absolute;
    right: .75rem;
    top: .75rem;
    padding: .22rem .52rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gem-dark) 88%, transparent);
    color: #fff;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.stone-category-card--ruby {
    --gem-dark: #791528;
    --gem-main: #b32643;
    --gem-light: #ffb6c2;
    --gem-tint: #fff1f3;
}

.stone-category-card--emerald {
    --gem-dark: #07583f;
    --gem-main: #0c8b63;
    --gem-light: #a1efd2;
    --gem-tint: #edf9f4;
}

.stone-category-card--spinel {
    --gem-dark: #71305f;
    --gem-main: #b45191;
    --gem-light: #f1badf;
    --gem-tint: #fbf0f8;
}

.stone-category-card__visual {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border: 1px solid color-mix(in srgb, var(--gem-main) 22%, transparent);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 0 22px rgba(255, 255, 255, .9);
}

.stone-category-card__visual i {
    position: relative;
    width: 46px;
    height: 51px;
    display: block;
    clip-path: polygon(50% 0, 84% 17%, 100% 48%, 72% 88%, 50% 100%, 28% 88%, 0 48%, 16% 17%);
    background:
        linear-gradient(145deg, transparent 28%, rgba(255, 255, 255, .48) 29% 38%, transparent 39%),
        linear-gradient(35deg, var(--gem-dark), var(--gem-main) 46%, var(--gem-light));
    filter: drop-shadow(0 8px 7px color-mix(in srgb, var(--gem-dark) 30%, transparent));
    transform: rotate(-3deg);
    transition: transform .3s ease, filter .3s ease;
}

.stone-category-card__visual i::after {
    content: "";
    position: absolute;
    inset: 8px 11px 14px;
    border: 1px solid rgba(255, 255, 255, .48);
    clip-path: polygon(50% 0, 100% 45%, 72% 100%, 28% 100%, 0 45%);
}

.stone-category-card:hover .stone-category-card__visual i {
    filter: drop-shadow(0 10px 9px color-mix(in srgb, var(--gem-dark) 40%, transparent));
    transform: rotate(3deg) scale(1.06);
}

.stone-category-card__content {
    min-width: 0;
    display: grid;
}

.stone-category-card__content small {
    color: var(--gem-dark);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stone-category-card__content strong {
    margin-top: .12rem;
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1.25;
}

.stone-category-card__content > span {
    margin-top: .32rem;
    color: var(--muted);
    font-size: .78rem;
}

.stone-category-card__count {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--muted);
    font-size: .75rem;
}

.stone-category-card__count b {
    color: var(--gem-dark);
    font-size: 1rem;
}

.stone-listing-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--line);
}

.stone-listing-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
}

.stone-listing-grid {
    margin-top: 1.25rem;
}

.stone-listing-empty {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    padding: clamp(2.5rem, 8vw, 5rem) 1.25rem;
    border: 1px dashed #d8c9ba;
    border-radius: 12px;
    background: rgba(255, 255, 255, .62);
    text-align: center;
}

.stone-listing-empty > span {
    color: var(--gold);
    font-size: 3rem;
    line-height: 1;
}

.stone-listing-empty h2 {
    margin: .75rem 0 .25rem;
    font-size: 1.35rem;
}

.stone-listing-empty p {
    margin: 0 0 1rem;
    color: var(--muted);
}

@media (max-width: 920px) {
    .stone-category-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stone-category-card {
        min-height: 230px;
    }
}

@media (max-width: 620px) {
    .stone-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stone-category-all {
        align-self: stretch;
        justify-content: space-between;
    }

    .stone-category-showcase {
        gap: .65rem;
    }

    .stone-category-card {
        min-height: 205px;
        padding: 1rem;
    }

    .stone-category-card__visual {
        width: 60px;
        height: 60px;
        margin-bottom: .75rem;
    }

    .stone-category-card__visual i {
        width: 38px;
        height: 43px;
    }

    .stone-category-card__content strong {
        font-size: 1.08rem;
    }

    .stone-category-card__content > span {
        display: none;
    }

    .stone-category-card.is-active::after {
        content: "已選";
    }

    .stone-listing-heading {
        margin-top: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stone-category-card,
    .stone-category-card__visual i,
    .stone-category-all {
        transition-duration: .01ms !important;
    }
}

/* Scalable category browser for larger gemstone collections */
.stone-category-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
}

.stone-category-search {
    position: relative;
    width: min(420px, 100%);
}

.stone-category-search i {
    position: absolute;
    z-index: 1;
    left: 1rem;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 2px solid #8b8179;
    border-radius: 50%;
    pointer-events: none;
    transform: translateY(-58%);
}

.stone-category-search i::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: #8b8179;
    transform: rotate(45deg);
}

.stone-category-search input {
    min-height: 44px;
    padding-left: 2.7rem;
    border-radius: 999px;
    background: #fff;
}

.stone-category-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(199, 155, 69, .13);
    outline: 0;
}

.stone-category-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 42px;
    padding: .5rem .55rem .5rem .9rem;
    border: 1px solid #d9cbbb;
    border-radius: 999px;
    background: #fff8ee;
    color: #5f4735;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 800;
}

.stone-category-toggle b {
    min-width: 28px;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--ink);
    color: #f0cf8a;
    font-size: .7rem;
}

.stone-category-toggle:hover {
    border-color: var(--gold);
    background: #fff;
}

.stone-category-showcase {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}

.stone-category-card {
    min-height: 205px;
    padding: 1rem;
}

.stone-category-card__visual {
    width: 58px;
    height: 58px;
    margin-bottom: .7rem;
}

.stone-category-card__visual i {
    width: 37px;
    height: 42px;
}

.stone-category-card__content strong {
    font-size: 1.08rem;
}

.stone-category-card__content > span {
    font-size: .72rem;
}

.stone-category-card__count {
    padding-top: .7rem;
}

.stone-category-card--theme-0 {
    --gem-dark: #174b7a;
    --gem-main: #2f78b7;
    --gem-light: #a8d8ff;
    --gem-tint: #eef6fc;
}

.stone-category-card--theme-1 {
    --gem-dark: #791528;
    --gem-main: #b32643;
    --gem-light: #ffb6c2;
    --gem-tint: #fff1f3;
}

.stone-category-card--theme-2 {
    --gem-dark: #07583f;
    --gem-main: #0c8b63;
    --gem-light: #a1efd2;
    --gem-tint: #edf9f4;
}

.stone-category-card--theme-3 {
    --gem-dark: #71305f;
    --gem-main: #b45191;
    --gem-light: #f1badf;
    --gem-tint: #fbf0f8;
}

.stone-category-card--theme-4 {
    --gem-dark: #8b5b08;
    --gem-main: #d39724;
    --gem-light: #ffe4a0;
    --gem-tint: #fff8e8;
}

.stone-category-card--theme-5 {
    --gem-dark: #17646d;
    --gem-main: #35a8b5;
    --gem-light: #b4eef1;
    --gem-tint: #eefafb;
}

.stone-category-card--theme-6 {
    --gem-dark: #49347d;
    --gem-main: #7660bd;
    --gem-light: #d6caff;
    --gem-tint: #f4f1fd;
}

.stone-category-card--theme-7 {
    --gem-dark: #8a452f;
    --gem-main: #c87455;
    --gem-light: #f5c6b5;
    --gem-tint: #fdf3ef;
}

.stone-category-no-results {
    margin: 0;
    padding: 2rem 1rem;
    border: 1px dashed #d8c9ba;
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1100px) {
    .stone-category-showcase {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .stone-category-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .stone-category-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .stone-category-search {
        width: 100%;
    }

    .stone-category-toggle {
        justify-content: space-between;
    }

    .stone-category-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stone-category-card {
        min-height: 175px;
    }
}

/* Compact loose-stone category selector */
.stone-category-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 28px rgba(35, 25, 18, .05);
}

.stone-category-filter__heading {
    display: grid;
    gap: .12rem;
}

.stone-category-filter__heading span {
    color: var(--gold);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.stone-category-filter__heading label {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.stone-category-filter__control {
    position: relative;
    width: min(440px, 100%);
}

.stone-category-filter__control select {
    width: 100%;
    min-height: 48px;
    appearance: none;
    padding: .7rem 3rem .7rem 1rem;
    border: 1px solid #d8cec3;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.stone-category-filter__control select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(199, 155, 69, .13);
    outline: 0;
}

.stone-category-filter__control > span {
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #6f6258;
    border-bottom: 2px solid #6f6258;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.stone-category-filter + .stone-listing-heading {
    margin-top: 1.75rem;
}

@media (max-width: 620px) {
    .stone-category-filter {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
        padding: .9rem;
    }

    .stone-category-filter__control {
        width: 100%;
    }
}

/* Member winning and purchase records */
.member-history-page {
    display: grid;
    gap: 1.25rem;
}

.member-history-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.member-history-summary > div {
    display: grid;
    gap: .2rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(35, 25, 18, .05);
}

.member-history-summary span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.member-history-summary strong {
    color: var(--ink);
    font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.member-history-list {
    display: grid;
    gap: .85rem;
}

.member-history-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.1rem;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 25, 18, .045);
}

.member-history-card__image {
    display: block;
    width: 118px;
    line-height: 0;
}

.member-history-card__image img {
    width: 118px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    object-fit: contain;
    background: #f3f0ec;
}

.member-history-card__code {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.member-history-card__content h2 {
    margin: .18rem 0 .4rem;
    font-size: 1.12rem;
}

.member-history-card__content h2 a {
    color: inherit;
}

.member-history-card__content h2 a:hover {
    color: var(--ruby);
}

.member-history-card__content p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.member-history-card__amount {
    min-width: 150px;
    display: grid;
    justify-items: end;
    gap: .22rem;
    text-align: right;
}

.member-history-card__amount small {
    margin-top: .3rem;
    color: var(--muted);
}

.member-history-card__amount strong {
    color: var(--ink);
    font-size: 1.08rem;
    white-space: nowrap;
}

.member-history-status {
    display: inline-flex;
    padding: .3rem .62rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}

.member-history-status.is-won {
    background: rgba(15, 107, 85, .1);
    color: #0f6b55;
}

.member-history-status.is-pending {
    background: rgba(199, 155, 69, .15);
    color: #765513;
}

.member-history-empty {
    display: grid;
    justify-items: center;
    padding: clamp(2.5rem, 8vw, 5rem) 1.25rem;
    border: 1px dashed #d8c9ba;
    border-radius: 10px;
    background: rgba(255, 255, 255, .62);
    text-align: center;
}

.member-history-empty > span {
    color: var(--gold);
    font-size: 2.8rem;
    line-height: 1;
}

.member-history-empty h2 {
    margin: .75rem 0 .25rem;
    font-size: 1.35rem;
}

.member-history-empty p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.member-history-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .member-history-summary {
        grid-template-columns: 1fr;
    }

    .member-history-card {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
    }

    .member-history-card__image,
    .member-history-card__image img {
        width: 88px;
    }

    .member-history-card__amount {
        grid-column: 1 / -1;
        min-width: 0;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
        padding-top: .75rem;
        border-top: 1px solid var(--line);
        text-align: left;
    }

    .member-history-card__amount small {
        margin: 0;
        justify-self: end;
    }

    .member-history-card__amount strong {
        justify-self: end;
    }

    .member-history-actions .button {
        width: 100%;
    }
}

/* One-of-one product availability and checkout */
.cart-feedback.is-error {
    border-color: rgba(140, 29, 44, .25);
    background: rgba(140, 29, 44, .08);
    color: var(--ruby);
}

.cart-feedback p {
    margin: 0;
}

.cart-feedback p + p {
    margin-top: .35rem;
}

.cart-stock-note {
    margin: -.25rem 0 1rem;
    color: var(--muted);
    font-size: .84rem;
}

.cart-item.is-unavailable,
.checkout-item.is-unavailable {
    border-color: rgba(140, 29, 44, .22);
    background: rgba(140, 29, 44, .045);
}

.cart-item.is-unavailable img {
    filter: grayscale(.7);
    opacity: .68;
}

.cart-item .cart-item__unavailable {
    color: var(--ruby);
    font-weight: 700;
}

.cart-item .cart-item__unavailable.is-waiting {
    color: #765513;
}

.cart-wait-countdown,
.product-reservation-countdown {
    display: block;
    margin-top: .2rem;
    color: var(--ruby);
    font-size: .8rem;
    font-weight: 800;
}

.product-reservation-countdown {
    color: #ffe28a;
}

.cart-wait-notification {
    width: fit-content;
    margin-top: .5rem;
    padding: .35rem .6rem;
    border: 1px solid rgba(118, 85, 19, .28);
    border-radius: 999px;
    background: rgba(199, 155, 69, .1);
    color: #765513;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
}

.cart-wait-notification:disabled {
    cursor: default;
    opacity: .72;
}

.cart-waiting-note {
    margin: 0 0 .85rem;
    padding: .75rem;
    border-radius: 7px;
    background: rgba(199, 155, 69, .1);
    color: #765513;
    font-size: .82rem;
    font-weight: 700;
}

.cart-availability-region {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 12000;
    width: min(390px, calc(100vw - 2rem));
    display: grid;
    gap: .65rem;
}

.cart-availability-toast {
    padding: 1rem;
    border: 1px solid rgba(199, 155, 69, .5);
    border-radius: 12px;
    background: rgba(30, 27, 24, .96);
    color: #fff;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .3);
    animation: cart-availability-enter .28s ease-out both;
}

.cart-availability-toast > strong {
    color: #ffe28a;
    font-size: 1rem;
}

.cart-availability-toast p {
    margin: .35rem 0 .8rem;
    color: rgba(255, 255, 255, .78);
    font-size: .84rem;
    line-height: 1.7;
}

.cart-availability-toast > div {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.cart-availability-toast .button {
    min-height: 38px;
    padding: .55rem .75rem;
}

.cart-availability-toast button:not(.button) {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .68);
    cursor: pointer;
    font-size: .78rem;
}

@keyframes cart-availability-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-blocked {
    margin: 0 0 .85rem;
    padding: .75rem;
    border-radius: 7px;
    background: rgba(140, 29, 44, .08);
    color: var(--ruby);
    font-size: .82rem;
    font-weight: 700;
}

.product-sale-status {
    width: fit-content;
    margin: .65rem auto 0;
    padding: .35rem .75rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(140, 29, 44, .72);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.product-sale-status.is-reserved {
    border-color: rgba(255, 220, 125, .5);
    background: rgba(118, 85, 19, .72);
    color: #ffe28a;
}

.collection-actions__error {
    grid-column: 1 / -1;
    margin: 0;
    padding: .65rem .75rem;
    border-radius: 7px;
    background: rgba(140, 29, 44, .08);
    color: var(--ruby);
    font-size: .82rem;
    font-weight: 700;
}

.product-sale-status.is-sold,
.auction-card.is-sold .auction-card__status,
.collection-actions .product-sold-button:disabled {
    border: 1px solid rgba(255, 224, 111, .65);
    background: rgba(72, 72, 72, .76);
    color: #ffe06f;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 900;
    line-height: 1.45;
    padding: .45rem .95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

/* Auction status badges retain yellow text with their original sizes and normal weight. */
[data-auction-card] .auction-card__status,
.auction-result > span[data-auction-result-badge] {
    border: 1px solid rgba(255, 224, 111, .65);
    border-radius: 999px;
    background: rgba(72, 72, 72, .76);
    color: #ffe06f;
    font-weight: 400;
    line-height: 1.45;
    padding: .25rem .7rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

[data-auction-card] .auction-card__status {
    font-size: .82rem;
}

.auction-result > span[data-auction-result-badge] {
    font-size: .76rem;
}

[data-auction-card].is-closed .auction-card__status i {
    background: #ffe06f;
    box-shadow: 0 0 0 4px rgba(255, 224, 111, .15);
}

.server-countdown.is-closed [data-countdown-label] {
    width: fit-content;
    padding: .25rem .6rem;
    border-radius: 6px;
    background: rgba(72, 72, 72, .76);
    color: #ffe06f;
    font-size: .86rem;
    font-weight: 400;
}

.member-suspended-notice {
    padding: 1rem;
    border: 1px solid rgba(140, 29, 44, .3);
    border-radius: 10px;
    background: #fff4e0;
    color: #543d19;
    font-size: 1rem;
    font-weight: 700;
}

.collection-actions .product-sold-button:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.auction-card.is-sold .auction-card__image img {
    filter: saturate(.55);
}

.auction-card.is-reserved .auction-card__image img {
    filter: saturate(.72);
}

.auction-card.is-reserved .auction-card__status {
    background: rgba(118, 85, 19, .92);
    color: #ffe28a;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 1.5rem;
}

.checkout-main,
.checkout-items {
    display: grid;
    gap: 1rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.checkout-item > div {
    display: grid;
    gap: .15rem;
}

.checkout-item small,
.checkout-item em {
    color: var(--muted);
    font-size: .76rem;
    font-style: normal;
}

.checkout-item.is-unavailable em {
    color: var(--ruby);
}

.checkout-item > span {
    font-weight: 800;
    white-space: nowrap;
}

.checkout-rule-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(199, 155, 69, .34);
    border-radius: 8px;
    background: rgba(199, 155, 69, .08);
}

.checkout-rule-card h2 {
    margin: 0 0 .45rem;
    font-size: 1rem;
}

.checkout-rule-card p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.8;
}

.checkout-terms {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: start;
    margin: 0 0 .85rem;
    color: var(--muted);
    cursor: pointer;
    font-size: .8rem;
    line-height: 1.65;
}

.checkout-terms input {
    width: 18px;
    height: 18px;
    margin-top: .18rem;
    accent-color: var(--ruby);
}

.checkout-terms a {
    margin: 0 .16rem;
    color: var(--ruby);
    text-decoration: underline;
}

.member-history-summary--orders {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-order-list,
.member-order-card__items {
    display: grid;
    gap: 1rem;
}

.member-order-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 25, 18, .045);
}

.member-order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 241, 235, .55);
}

.member-order-card__header span,
.member-order-line span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.member-order-card__header h2 {
    margin: .12rem 0;
    font-size: 1rem;
}

.member-order-card__header p {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.member-order-card__total {
    display: grid;
    justify-items: end;
    gap: .15rem;
}

.member-order-card__total small {
    margin-top: .25rem;
    color: var(--muted);
}

.member-history-status.is-cancelled {
    background: rgba(140, 29, 44, .1);
    color: var(--ruby);
}

.member-history-status.is-paid {
    background: rgba(15, 107, 85, .1);
    color: #0f6b55;
}

.member-order-reservation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.15rem;
    border-bottom: 1px solid rgba(199, 155, 69, .3);
    background: rgba(199, 155, 69, .09);
}

.member-order-reservation strong {
    color: #765513;
}

.member-order-reservation p {
    margin: .18rem 0 .32rem;
    color: var(--muted);
    font-size: .8rem;
}

.member-order-reservation [data-reservation-countdown] {
    color: var(--ruby);
    font-size: .86rem;
    font-weight: 800;
}

.member-order-reservation form {
    flex: 0 0 auto;
    margin: 0;
}

.member-order-state-note {
    margin: 0;
    padding: .7rem 1.15rem;
    border-bottom: 1px solid var(--line);
    background: rgba(102, 92, 84, .06);
    color: var(--muted);
    font-size: .8rem;
}

.member-order-state-note.is-expired {
    background: rgba(140, 29, 44, .055);
    color: var(--ruby);
}

.member-order-card__items {
    padding: 1rem 1.15rem;
}

.member-order-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
}

.member-order-line + .member-order-line {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.member-order-line__image,
.member-order-line__image img {
    width: 72px;
}

.member-order-line__image {
    display: block;
    line-height: 0;
}

.member-order-line__image img {
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    object-fit: contain;
    background: #f3f0ec;
}

.member-order-line h3 {
    margin: .12rem 0 0;
    font-size: .98rem;
}

.member-order-line h3 a {
    color: inherit;
}

.member-order-line > strong {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout .cart-summary {
        position: static;
    }
}

@media (max-width: 700px) {
    .member-history-summary--orders {
        grid-template-columns: 1fr;
    }

    .member-order-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-order-reservation {
        align-items: stretch;
        flex-direction: column;
    }

    .member-order-reservation .button {
        width: 100%;
    }

    .member-order-card__total {
        width: 100%;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
        padding-top: .75rem;
        border-top: 1px solid var(--line);
    }

    .member-order-card__total small,
    .member-order-card__total strong {
        justify-self: end;
    }

    .member-order-line {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .member-order-line__image,
    .member-order-line__image img {
        width: 60px;
    }

    .member-order-line > strong {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .checkout-item {
        align-items: flex-start;
        flex-direction: column;
    }
}
