.shop-page[hidden],
#root[hidden] {
  display: none !important;
}

.shop-page {
  --shop-paper: #fafaf7;
  --shop-ink: #283029;
  --shop-muted: #687067;
  --shop-line: #dce1da;
  --shop-sage: #557052;
  --shop-pale: #edf1e7;
  min-height: 100vh;
  background: var(--shop-paper);
  color: var(--shop-ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.shop-page * {
  box-sizing: border-box;
}

.shop-page button {
  font: inherit;
}

.shop-topbar {
  height: 104px;
  padding: 0 5.5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--shop-line);
}

.shop-brand,
.shop-back {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.shop-brand {
  justify-self: start;
  padding: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: 28px;
  letter-spacing: .12em;
}

.shop-topbar > span {
  color: var(--shop-sage);
  font-size: 14px;
  letter-spacing: .18em;
}

.shop-back {
  min-height: 44px;
  justify-self: end;
  padding: 10px 0 7px;
  border-bottom: 1px solid var(--shop-sage);
  color: var(--shop-sage);
  font-size: 13px;
}

.shop-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.shop-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(60px, 9vw, 140px);
  border-bottom: 1px solid var(--shop-line);
}

.shop-hero > div > p,
.shop-list > header > div > p {
  margin: 0 0 16px;
  color: var(--shop-sage);
  font-size: 12px;
  letter-spacing: .16em;
}

.shop-hero > div > p,
.shop-list > header > div > p {
  display: none;
}

.shop-hero h1 {
  max-width: 12em;
  margin: 0;
  font-family: "Sanliang Display", "Songti SC", STSong, serif;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.shop-hero > p,
.shop-list > header > p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 14px;
  line-height: 1.95;
}

.shop-list {
  padding: 70px 0 0;
}

.shop-list > header {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  padding-bottom: 38px;
}

.shop-list h2,
.shop-principles h2 {
  margin: 0;
  font-family: "Sanliang Display", "Songti SC", STSong, serif;
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 500;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--shop-line);
  border-bottom: 1px solid var(--shop-line);
}

.shop-product {
  min-height: 390px;
  padding: 34px clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--shop-line);
}

.shop-product:last-child {
  border-right: 0;
}

.shop-product-image { position:relative; aspect-ratio:4/3; margin:-10px 0 25px; overflow:hidden; background:var(--shop-pale); }
.shop-product-image.is-gallery { touch-action:pan-y; }
.shop-product-image img { width:100%; height:100%; display:block; object-fit:cover; user-select:none; transition:opacity 160ms ease-out; }
.shop-product-image.is-loading img { opacity:.68; }
.shop-gallery-control { position:absolute;top:50%;width:44px;height:44px;padding:0;display:grid;place-items:center;transform:translateY(-50%);border:1px solid rgba(255,255,255,.78);border-radius:50%;background:rgba(250,250,247,.76);backdrop-filter:blur(10px);color:var(--shop-ink);cursor:pointer; }
.shop-gallery-control.is-previous { left:10px; }
.shop-gallery-control.is-next { right:10px; }
.shop-gallery-control svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
.shop-gallery-control:focus-visible,
.shop-product-image.is-gallery:focus-visible { outline:2px solid var(--shop-sage);outline-offset:3px; }
.shop-gallery-count { position:absolute;right:10px;bottom:10px;min-width:44px;padding:6px 9px;border:1px solid rgba(255,255,255,.72);background:rgba(250,250,247,.82);backdrop-filter:blur(8px);color:var(--shop-ink);font-size:11px;line-height:1;text-align:center;letter-spacing:.04em; }

@media (hover:hover) and (pointer:fine) {
  .shop-gallery-control { opacity:.72;transition:opacity 140ms ease-out,background-color 140ms ease-out; }
  .shop-product-image:hover .shop-gallery-control,
  .shop-gallery-control:focus-visible { opacity:1;background:rgba(250,250,247,.92); }
}

.shop-product > span {
  color: var(--shop-sage);
  font-size: 11px;
  letter-spacing: .12em;
}

.shop-product h3 {
  margin: 24px 0 0;
  font-family: "Songti SC", STSong, serif;
  font-size: 30px;
  font-weight: 400;
}

.shop-product > p,
.shop-product details p {
  color: var(--shop-muted);
  font-size: 13px;
  line-height: 1.85;
}

.shop-product .shop-product-price {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--shop-ink);
  font-family: "Songti SC", STSong, serif;
  font-size: 18px;
}

.shop-product > p {
  min-height: 72px;
  margin: 16px 0 0;
}

.shop-product details {
  padding: 16px 0;
  border-top: 1px solid var(--shop-line);
}

.shop-product summary {
  color: var(--shop-sage);
  font-size: 12px;
  cursor: pointer;
}

.shop-product details p {
  margin: 13px 0 0;
}

.shop-product details p:empty{display:none}
.shop-detail-media{margin-top:20px;padding-top:16px;border-top:1px solid var(--shop-line)}
.shop-detail-media h4{margin:0 0 11px;color:var(--shop-ink);font-size:11px;font-weight:560}
.shop-detail-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shop-detail-gallery.is-description{grid-template-columns:1fr}
.shop-detail-image{aspect-ratio:4/3;margin:0;overflow:hidden;background:var(--shop-pale)}
.shop-detail-image.is-detail{aspect-ratio:auto;min-height:150px}
.shop-detail-image img{width:100%;height:100%;min-height:inherit;display:block;object-fit:cover}
.shop-detail-gallery.is-description img{height:auto;max-height:520px;object-fit:contain;background:#fff}

.shop-product > button {
  min-height: 48px;
  margin-top: auto;
  border: 1px solid var(--shop-sage);
  background: transparent;
  color: var(--shop-sage);
  cursor: pointer;
}

.shop-product > button[aria-pressed="true"] {
  background: var(--shop-pale);
}

.shop-principles {
  padding: 68px 0 44px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  border-bottom: 1px solid var(--shop-line);
}

.shop-principles > div {
  border-top: 1px solid var(--shop-line);
}

.shop-principles p {
  min-height: 78px;
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-principles strong {
  font-size: 14px;
  font-weight: 600;
}

.shop-principles span {
  color: var(--shop-muted);
  font-size: 13px;
  line-height: 1.75;
}

.shop-status {
  min-height: 24px;
  margin: 22px 0 0;
  color: var(--shop-sage);
  font-size: 12px;
}

@media (max-width: 760px) {
  .shop-topbar {
    height: 68px;
    padding: 0 18px;
    grid-template-columns: 1fr auto;
  }

  .shop-topbar > span {
    display: none;
  }

  .shop-brand {
    font-size: 23px;
  }

  .shop-main {
    width: calc(100% - 36px);
    padding-bottom: 48px;
  }

  .shop-hero,
  .shop-list > header,
  .shop-principles {
    display: block;
  }

  .shop-hero {
    min-height: 0;
    padding: 52px 0 42px;
  }

  .shop-hero h1 {
    font-size: 43px;
    overflow-wrap: anywhere;
  }

  .shop-hero > p,
  .shop-list > header > p {
    margin-top: 28px;
  }

  .shop-list {
    padding-top: 48px;
  }

  .shop-products {
    grid-template-columns: 1fr;
  }

  .shop-product,
  .shop-product:last-child {
    min-height: 0;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--shop-line);
  }

  .shop-product > p {
    min-height: 0;
  }

  .shop-product > button {
    width: 100%;
    margin-top: 24px;
  }

  .shop-principles {
    padding-top: 52px;
  }

  .shop-principles > div {
    margin-top: 28px;
  }

  .shop-principles p {
    display: block;
  }

  .shop-principles span {
    display: block;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-page * {
    scroll-behavior: auto !important;
  }
}
