:root {
  color-scheme: light;
  --ink: #38394e;
  --plum: #505078;
  --pink: #efd2d8;
  --cream: #fff9ef;
  --paper: #fffdf8;
  --mint: #dfeae0;
  --blue: #b4bfd6;
  --line: #d9d4c9;
  --muted: #626271;
  --serif: "DM Serif Text", Georgia, "Songti SC", serif;
  --sans:
    "DM Sans", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #5d5c95;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.65rem, 6.7vw, 6.7rem);
}
h2 {
  font-size: clamp(2rem, 3.9vw, 3.75rem);
}
h3 {
  font-size: 1.65rem;
}
.wrap {
  max-width: 87rem;
  margin: auto;
  padding: 0 clamp(1rem, 4.6vw, 4.5rem);
}
footer,
.sectionhead,
.row,
.actions,
.filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--plum);
  font: italic 700 clamp(1.35rem, 2.4vw, 2.15rem) / 1 var(--serif);
  letter-spacing: -0.065em;
}
nav a,
footer a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover,
footer a:hover {
  text-decoration: underline;
}
.languages {
  display: flex;
  padding: 3px;
  border: 1px solid #bbb5c4;
  border-radius: 20px;
  background: var(--paper);
}
.languages button {
  border: 0;
  border-radius: 20px;
  background: none;
  font-weight: 700;
  font-size: 0.83rem;
  min-height: 32px;
  padding: 0.3rem 0.63rem;
}
.languages [aria-pressed="true"] {
  background: var(--plum);
  color: white;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--paper);
  padding: 0.8rem;
  z-index: 2;
}
.skip:focus {
  top: 1rem;
}
.actions,
.filters,
.row {
  flex-wrap: wrap;
}
.btn,
.chip,
.select,
.input,
.close {
  border: 1px solid #bdb9c0;
  border-radius: 11px;
  background: var(--paper);
  text-decoration: none;
}
.btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.1rem;
  font-size: 0.94rem;
  font-weight: 650;
  cursor: pointer;
}
.btn.primary {
  background: var(--plum);
  color: white;
  border-color: var(--plum);
}
.btn:hover,
.chip:hover {
  border-color: var(--plum);
  box-shadow: 0 2px 0 #57567c30;
}
.btn.primary:hover {
  background: #3c3e62;
}
.btn.soft {
  background: #f9edf0;
  border-color: #d3b1bd;
}
.textlink {
  font-weight: 650;
  font-size: 0.93rem;
}
.benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1rem, 5vw, 6rem);
  padding: 0.76rem 0.5rem;
  color: var(--plum);
  font-size: 0.89rem;
  border-bottom: 1px solid var(--line);
}
.benefits i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.55em;
  vertical-align: 3px;
  transform: rotate(45deg);
  background: #a2aeca;
}
.section {
  padding: clamp(2rem, 4vw, 4.2rem) 0 0;
  scroll-margin-top: 0.5rem;
}
.sectionhead {
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.count,
.hint,
.muted,
small {
  color: var(--muted);
}
.hint,
small {
  font-size: 0.9rem;
}
.filters {
  margin: 1.25rem 0;
  gap: 0.5rem;
}
.chip {
  padding: 0.48rem 0.87rem;
  border-radius: 24px;
  font-size: 0.9rem;
}
.chip[aria-pressed="true"] {
  color: white;
  background: var(--plum);
  border-color: var(--plum);
}
.select,
.input {
  padding: 0.62rem 0.76rem;
  width: 100%;
  min-height: 43px;
  background: white;
  border-color: #aaa7ad;
}
.filters label {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.filters select {
  width: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.8rem);
}
.card {
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}
.cover {
  position: relative;
  background: #f2e9e1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cover img,
.gallery-main img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.25s;
}
.card:hover .cover img {
  transform: scale(1.025);
}
.badge {
  display: inline-block;
  white-space: nowrap;
  padding: 0.19rem 0.55rem;
  border: 1px solid #a9baae;
  background: #e2eee4;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #304e3f;
}
.badge.sold {
  border-color: #c7bdc4;
  color: #61535e;
  background: #f3e9ee;
}
.cover .badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
}
.cardmeta {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: baseline;
  margin: 0.6rem 0 0.1rem;
}
.cardmeta h3 {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}
.price {
  color: var(--plum);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.empty,
.panel,
.receipt,
.loading {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(1.15rem, 2.5vw, 2.6rem);
}
.empty {
  border-style: dashed;
  text-align: center;
  background: #fbf8ef;
}
.empty h3 {
  color: var(--plum);
}
.empty p,
.panel p,
.receipt p {
  margin: 0.55rem 0;
}
.empty .actions {
  justify-content: center;
  margin-top: 1rem;
}
.strip {
  background: #edf2e9;
  border: 1px solid #cbd6c9;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  margin: clamp(1.6rem, 4vw, 3.4rem) 0;
}
.strip h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}
.strip p {
  margin: 0.25rem 0 0;
}
.strip .btn {
  flex-shrink: 0;
}
.sample-empty {
  padding: 1rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 2.4rem;
  padding: 1.3rem 0 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer .row {
  gap: 0.9rem;
}
.trail {
  display: inline-block;
  margin: 0.5rem 0 1.2rem;
  color: var(--plum);
  font-size: 0.95rem;
}
.detail,
.checkoutgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(1.35rem, 4vw, 4rem);
}
.detail h1,
.checkout h1,
.receipt h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}
.detailhead .price {
  font-size: 1.5rem;
}
.detailhead h1 {
  margin: 0.55rem 0;
}
.group {
  margin: 1rem 0;
}
.group h3,
.fieldset-title,
.minihead {
  font: 700 1rem/1.45 var(--sans);
  letter-spacing: 0;
}
.group p,
.facts dd {
  white-space: pre-line;
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  margin: 0;
}
.facts dt,
.facts dd {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  overflow-wrap: anywhere;
}
.facts dt {
  color: var(--muted);
}
.gallery-main {
  width: 100%;
  border-radius: 15px;
  padding: 0;
  border: 1px solid var(--line);
  background: #eee9e2;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-main img {
  object-fit: contain;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
}
.thumbs button {
  width: 58px;
  height: 50px;
  padding: 2px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
}
.thumbs button[aria-pressed="true"] {
  border: 2px solid var(--plum);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.detail .actions {
  margin: 0.85rem 0;
}
.samples {
  margin-top: 1rem;
}
.checkout {
  max-width: 66rem;
  margin: auto;
}
.checkoutgrid {
  margin-top: 1.2rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
}
.checkoutgrid aside {
  position: sticky;
  top: 1rem;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 600;
}
.field.full {
  grid-column: 1/-1;
}
fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0 0 1.3rem;
}
legend {
  padding: 0;
  margin: 0 0 0.6rem;
}
.option {
  display: flex;
  align-items: start;
  gap: 0.6rem;
  padding: 0.68rem 0.8rem;
  margin: 0.45rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}
.option:has(:checked) {
  border-color: #8684a6;
  background: #f3f2f8;
}
.option input {
  accent-color: var(--plum);
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.option strong {
  display: block;
}
.option small {
  display: block;
}
.money {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.85rem;
  margin: 0.9rem 0;
}
.money dt,
.money dd {
  margin: 0;
}
.money dd {
  text-align: right;
}
.money .total {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.note {
  padding: 0.75rem 1rem;
  color: #504458;
  background: #f8eaf0;
  border-left: 3px solid #c38da4;
  border-radius: 0 7px 7px 0;
  margin: 0.65rem 0;
}
.receipt {
  max-width: 46rem;
  margin: 1.2rem auto;
}
.ref {
  font-size: 1.14rem;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}
.error {
  color: #8a3548;
  font-weight: 600;
}
.field-error {
  margin: 0.5rem 0;
}
.fine {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0.45rem 0;
}
.payblock {
  background: #f4f3ed;
  border: 1px solid #d4d6c9;
  border-radius: 9px;
  padding: 1rem;
  margin: 0.65rem 0;
  overflow-wrap: anywhere;
}
.receipt .actions,
.checkout .actions {
  margin: 0.85rem 0;
}
.no-photo {
  display: grid;
  place-items: center;
  background: #eeeadf;
  aspect-ratio: 4/3;
  font-size: 0.9rem;
  color: var(--muted);
}
.summaryimg {
  width: 100%;
  max-height: 12rem;
  object-fit: contain;
  background: #f2eee6;
  border-radius: 9px;
  margin-bottom: 0.6rem;
}
.loading {
  margin: 1rem 0;
}
.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.close {
  min-width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.modal-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}
dialog {
  width: min(31rem, calc(100% - 1.5rem));
  max-height: 92dvh;
  border: 1px solid #b8b0ba;
  border-radius: 18px;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 70px #27253c44;
}
dialog::backdrop {
  background: #2d2a3f88;
}
dialog p {
  margin: 0.55rem 0;
}
dialog .actions {
  margin-top: 0.8rem;
}
dialog.zoom {
  width: min(65rem, 95%);
}
dialog.zoom img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}
dialog .qr {
  display: block;
  margin: 0.5rem auto;
  width: min(100%, 20rem);
  height: auto;
  object-fit: contain;
  background: white;
}
#notice {
  position: fixed;
  z-index: 10;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--plum);
  color: white;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  max-width: 95%;
  text-align: center;
  pointer-events: none;
}
#notice:empty {
  display: none;
}
.resume {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0.7rem 0;
  padding: 0.65rem 1rem;
  background: #edf1e8;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.resume a {
  font-weight: 650;
}
@media (max-width: 790px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail,
  .checkoutgrid {
    grid-template-columns: 1fr;
  }
  .checkoutgrid aside {
    position: static;
    grid-row: 1;
  }
  .summaryimg {
    display: none;
  }
  .benefits {
    gap: 0.9rem;
    justify-content: space-evenly;
  }
  .btn {
    min-height: 44px;
  }
  .filters label {
    margin-left: 0;
  }
}
@media (max-width: 535px) {
  .wrap {
    padding: 0 0.85rem;
  }
  .benefits {
    font-size: 0.77rem;
    gap: 0.25rem;
  }
  .benefits i {
    display: none;
  }
  .benefits span + span {
    padding-left: 0.5rem;
    border-left: 1px solid var(--line);
  }
  .section {
    padding-top: 1.7rem;
  }
  .sectionhead h2 {
    font-size: 2rem;
  }
  .filters {
    gap: 0.35rem;
    align-items: start;
  }
  .filters label {
    font-size: 0.8rem;
    width: 100%;
    margin-top: 0.25rem;
  }
  .filters label select {
    min-height: 36px;
  }
  .chip {
    padding: 0.38rem 0.72rem;
    font-size: 0.84rem;
  }
  .grid {
    gap: 0.9rem 0.6rem;
  }
  .cardmeta {
    display: block;
  }
  .cardmeta .price {
    display: block;
    font-size: 0.93rem;
  }
  .card .hint {
    font-size: 0.76rem;
  }
  .strip {
    align-items: start;
    flex-direction: column;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .benefits span {
    line-height: 1.25;
  }
  .actions {
    gap: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}
#content:focus {
  outline: 0;
}
.detail-gallery {
  min-width: 0;
}
.receipt .refline {
  margin: 1rem 0;
}
.person-note {
  margin: 0 0 0.75rem;
}
.brand-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.brand-form .input {
  width: 11rem;
}
.catalog-more {
  margin-top: 1rem;
  text-align: center;
}
@media (max-width: 535px) {
  .brand-form {
    width: 100%;
    margin: 0;
  }
  .filters .brand-form label {
    width: auto;
  }
  .brand-form .input {
    width: min(12rem, 47vw);
  }
}
.transfer-report {
  margin: 0.95rem 0;
}
.transfer-report summary {
  color: var(--plum);
  font-weight: 650;
  cursor: pointer;
}
.transfer-report .field {
  margin: 0.65rem 0;
}
