/* =========================================================
   MORI 森屿选物 · 用户下单页
   ========================================================= */

:root {
  --paper: #f6f3ee;
  --paper-soft: #fbf9f5;
  --paper-deep: #e9e1d6;
  --card: #fffdfa;
  --ink: #25232b;
  --ink-soft: #4e4a50;
  --muted: #908b83;
  --muted-light: #b3ada4;
  --line: rgba(38, 34, 30, 0.1);
  --line-soft: rgba(38, 34, 30, 0.06);
  --accent: #6554f2;
  --accent-deep: #503fe2;
  --wechat: #06bd63;
  --wechat-deep: #05a957;
  --danger: #d74b5e;
  --font-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Iowan Old Style", Georgia, serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --shadow-soft: 0 24px 80px rgba(54, 44, 32, 0.11);
  --shadow-card: 0 8px 30px rgba(50, 40, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(203, 183, 157, 0.3), transparent 28%),
    radial-gradient(circle at 4% 46%, rgba(194, 210, 195, 0.24), transparent 27%),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  color: #fff;
  background: #2a2830;
}

:focus-visible {
  outline: 3px solid rgba(101, 84, 242, 0.3);
  outline-offset: 3px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

/* ---------- boot / loading ---------- */
.shop-boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.boot-brand {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: italic;
}

.boot-shimmer {
  width: 96px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(40, 36, 31, 0.1);
}

.boot-shimmer::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: var(--ink);
  animation: shimmer 1.1s ease-in-out infinite;
}

@keyframes shimmer {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: #e9e4dc;
  animation: skeletonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes skeletonPulse {
  to { opacity: 0.5; }
}

/* ---------- header ---------- */
.shop-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shop-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 44px 19px;
}

.shop-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #f9f6ef;
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  box-shadow: 0 7px 18px rgba(33, 29, 25, 0.15);
}

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

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7e7971;
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-trust .trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5fae84;
  box-shadow: 0 0 0 4px rgba(95, 174, 132, 0.11);
}

.announcement {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 44px 9px;
  color: #999187;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ---------- main product ---------- */
.shop-main {
  width: 100%;
  flex: 1;
  max-width: 1232px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  align-items: start;
  gap: 58px;
  margin: 0 auto;
  padding: 15px 44px 56px;
}

.product-gallery {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.product-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.03;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.55), transparent 35%),
    var(--paper-deep);
  box-shadow: 0 26px 60px rgba(62, 48, 32, 0.13);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-visual:hover img {
  transform: scale(1.015);
}

.visual-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  color: #fff;
  background: rgba(35, 31, 27, 0.5);
  font-size: 9px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(9px);
}

.visual-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a5e0be;
}

.visual-caption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 17px;
  color: rgba(48, 40, 32, 0.4);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.21em;
  writing-mode: vertical-rl;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--paper-deep);
  opacity: 0.64;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

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

.gallery-thumb.active {
  border-color: rgba(37, 33, 27, 0.55);
  opacity: 1;
}

.gallery-thumb:hover {
  opacity: 1;
}

.product-copy {
  min-width: 0;
  padding-top: 24px;
}

.product-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #8e867b;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-eyebrow .type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(57, 49, 39, 0.1);
  border-radius: 5px;
  color: #7b7267;
  background: rgba(255, 253, 249, 0.55);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-title {
  margin-top: 15px;
  color: #28252b;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 39px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.product-subtitle {
  max-width: 470px;
  margin-top: 11px;
  color: #8c857c;
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: 0.015em;
}

.product-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  color: #9a938a;
  font-size: 9.5px;
}

.product-social .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #bbb4aa;
}

.product-social b {
  color: #756d63;
  font-weight: 600;
}

.product-price-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.product-price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #29262c;
  line-height: 1;
}

.product-price .currency {
  margin-top: 7px;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.product-price .amount {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.product-price .fraction {
  margin-top: 12px;
  color: #71695f;
  font-family: Georgia, serif;
  font-size: 15px;
}

.price-note {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
  line-height: 1.65;
}

.price-note strong {
  display: block;
  color: #897e71;
  font-weight: 500;
}

.option-block {
  margin-top: 22px;
}

.option-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.option-label {
  color: #787168;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.option-value-note {
  color: #a29a90;
  font-size: 9px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.variant-option {
  position: relative;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(43, 37, 31, 0.13);
  border-radius: 8px;
  color: #665f56;
  background: rgba(255, 253, 249, 0.55);
  font-size: 10.5px;
  transition: all 0.16s ease;
}

.variant-option:hover {
  border-color: rgba(43, 37, 31, 0.35);
  background: #fffdfa;
}

.variant-option.active {
  color: #fffdf8;
  border-color: #29262d;
  background: #29262d;
  box-shadow: 0 4px 10px rgba(36, 31, 27, 0.12);
}

.variant-option:disabled {
  overflow: hidden;
  color: #b9b2a8;
  border-color: rgba(43, 37, 31, 0.08);
  background: rgba(244, 241, 235, 0.7);
  cursor: not-allowed;
}

.variant-option:disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5%;
  width: 110%;
  height: 1px;
  background: rgba(140, 131, 121, 0.24);
  transform: rotate(-8deg);
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.quantity-label {
  color: #787168;
  font-size: 10px;
}

.quantity-label span {
  display: block;
  margin-top: 3px;
  color: #a29a90;
  font-size: 8.5px;
}

.quantity-control {
  display: inline-flex;
  height: 36px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(43, 37, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.62);
}

.quantity-control button {
  width: 34px;
  display: grid;
  place-items: center;
  color: #766f65;
  font-size: 15px;
}

.quantity-control button:hover:not(:disabled) {
  background: rgba(71, 62, 51, 0.06);
}

.quantity-control button:disabled {
  color: #c9c2b8;
  cursor: not-allowed;
}

.quantity-control input {
  width: 40px;
  border: 0;
  border-right: 1px solid rgba(43, 37, 31, 0.08);
  border-left: 1px solid rgba(43, 37, 31, 0.08);
  color: #403a32;
  background: transparent;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 13px;
}

.quantity-control input:focus {
  outline: none;
}

.purchase-actions {
  margin-top: 21px;
}

.buy-button {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-radius: 13px;
  color: #fdfbf7;
  background: #29262d;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.04em;
  box-shadow: 0 13px 25px rgba(38, 33, 29, 0.17);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.buy-button:hover {
  background: #151318;
  box-shadow: 0 16px 30px rgba(38, 33, 29, 0.23);
  transform: translateY(-1px);
}

.buy-button:active {
  transform: translateY(0);
}

.buy-button::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -35%;
  width: 45%;
  height: 300%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(22deg);
  transition: left 0.5s ease;
}

.buy-button:hover::after {
  left: 115%;
}

.buy-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.buy-button .buy-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buy-button .wx-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--wechat);
}

.buy-button .wx-mark .icon {
  width: 15px;
  height: 15px;
}

.buy-button .buy-total {
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 0;
}

.buy-button.external {
  color: #fffdf8;
  background: var(--accent);
  box-shadow: 0 13px 25px rgba(89, 72, 229, 0.2);
}

.buy-button.external:hover {
  background: var(--accent-deep);
}

.buy-button.external .wx-mark {
  background: rgba(255, 255, 255, 0.18);
}

.purchase-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  color: #a59d93;
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.purchase-note .icon {
  width: 11px;
  height: 11px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 19px;
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.service-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8d867c;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.service-item .icon {
  width: 13px;
  height: 13px;
  color: #a69b8b;
}

.detail-block {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 0 5px;
  color: #8b8378;
  text-align: left;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.detail-toggle .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.detail-toggle.open .icon {
  transform: rotate(180deg);
}

.detail-content {
  padding: 10px 0 2px;
  color: #81796e;
  font-size: 10.5px;
  line-height: 1.95;
  white-space: pre-wrap;
  letter-spacing: 0.015em;
}

.stock-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #b07d58;
  font-size: 9px;
}

.mobile-buybar {
  display: none;
}

/* ---------- footer ---------- */
.shop-footer {
  width: 100%;
  max-width: 1232px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 22px 44px 38px;
  border-top: 1px solid rgba(56, 49, 40, 0.08);
  color: #a29a8f;
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.footer-brand .mini-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b9b1a6;
}

.footer-service {
  color: #948c81;
}

.footer-secure {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-secure .icon {
  width: 11px;
  height: 11px;
}

/* ---------- overlays & checkout ---------- */
.shop-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(31, 27, 23, 0.38);
  backdrop-filter: blur(5px);
  animation: overlayIn 0.2s ease both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.checkout-card {
  width: min(100%, 482px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 23px;
  background: #fffdfa;
  box-shadow: 0 32px 90px rgba(35, 27, 20, 0.24);
  animation: cardIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  scrollbar-width: thin;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}

.checkout-head h2 {
  color: #2c282e;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.checkout-head p {
  margin-top: 4px;
  color: #9f978c;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.checkout-close {
  width: 31px;
  height: 31px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin: -4px -4px 0 0;
  border-radius: 50%;
  color: #948b80;
  background: rgba(50, 42, 32, 0.045);
}

.checkout-close:hover {
  color: var(--ink);
  background: rgba(50, 42, 32, 0.09);
}

.checkout-close .icon {
  width: 15px;
  height: 15px;
}

.checkout-body {
  padding: 18px 24px 22px;
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid rgba(54, 45, 34, 0.07);
  border-radius: 12px;
  background: #faf7f1;
}

.checkout-product img {
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
}

.checkout-product-info {
  min-width: 0;
  flex: 1;
}

.checkout-product-info strong {
  display: block;
  overflow: hidden;
  color: #4f4840;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-product-info span {
  display: block;
  margin-top: 3px;
  color: #a29a90;
  font-size: 8.5px;
}

.checkout-product-price {
  color: #433b32;
  font-family: Georgia, serif;
  font-size: 13px;
  white-space: nowrap;
}

.checkout-form {
  margin-top: 19px;
}

.checkout-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: #70685d;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.checkout-section-label .icon {
  width: 13px;
  height: 13px;
  color: #a3998d;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field label {
  color: #8d857a;
  font-size: 9px;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(53, 44, 34, 0.11);
  border-radius: 9px;
  color: #403a33;
  background: #fffdfa;
  font-size: 11.5px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
  color: #bdb5aa;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: rgba(87, 71, 238, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(101, 84, 242, 0.08);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.checkout-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(179, 150, 97, 0.18);
  border-radius: 8px;
  color: #a08c6d;
  background: #fffbf4;
  font-size: 8.5px;
  line-height: 1.65;
}

.checkout-tip .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.checkout-totals {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(54, 45, 34, 0.1);
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  color: #9b9389;
  font-size: 9.5px;
}

.checkout-total-row.grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(54, 45, 34, 0.08);
  color: #433c34;
  font-size: 11px;
  font-weight: 550;
}

.checkout-total-row.grand strong {
  color: #262229;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.checkout-total-row .free {
  color: #5a9b79;
}

.pay-button {
  display: flex;
  width: 100%;
  height: 51px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #0dc56a, #06ad5d);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 22px rgba(6, 173, 93, 0.19);
  transition: all 0.18s ease;
}

.pay-button:hover {
  background: linear-gradient(135deg, #08b962, #059f54);
  box-shadow: 0 13px 26px rgba(6, 173, 93, 0.24);
  transform: translateY(-1px);
}

.pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pay-button .icon {
  width: 17px;
  height: 17px;
}

.checkout-policy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  color: #aea69b;
  font-size: 8px;
  text-align: center;
}

.checkout-policy .icon {
  width: 10px;
  height: 10px;
}

/* ---------- WeChat mock payment ---------- */
.pay-card {
  width: min(100%, 390px);
  overflow: hidden;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(24, 30, 25, 0.23);
  animation: cardIn 0.23s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pay-card-top {
  padding: 28px 27px 23px;
  text-align: center;
}

.wechat-logo {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 15px;
  color: #fff;
  background: var(--wechat);
  box-shadow: 0 10px 24px rgba(6, 189, 99, 0.22);
}

.wechat-logo .icon {
  width: 29px;
  height: 29px;
}

.pay-card .pay-app-name {
  color: #2b332d;
  font-size: 12px;
  font-weight: 600;
}

.pay-card .pay-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #a28d56;
  background: #fff9e8;
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.pay-card .pay-amount {
  margin-top: 17px;
  color: #1d211e;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pay-card .pay-amount span {
  margin-right: 3px;
  font-size: 19px;
  font-weight: 400;
}

.pay-card .pay-subject {
  margin-top: 7px;
  color: #9a9e97;
  font-size: 9px;
}

.pay-card-divider {
  height: 1px;
  margin: 0 27px;
  background: #f0f3ef;
}

.pay-card-details {
  padding: 14px 27px 18px;
}

.pay-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
  color: #a4a9a1;
  font-size: 9px;
}

.pay-detail-row span:last-child {
  color: #636a62;
}

.pay-card-actions {
  padding: 0 27px 26px;
}

.mock-pay-btn {
  width: 100%;
  height: 46px;
  border-radius: 9px;
  color: #fff;
  background: var(--wechat);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.18s ease;
}

.mock-pay-btn:hover {
  background: var(--wechat-deep);
}

.mock-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mock-cancel {
  width: 100%;
  padding: 12px 0 0;
  color: #9b9d99;
  font-size: 9.5px;
}

.mock-cancel:hover {
  color: #666c65;
}

.mock-notice {
  padding: 9px 12px;
  border-radius: 0;
  color: #a28d56;
  background: #fffbef;
  font-size: 8px;
  line-height: 1.55;
  text-align: center;
}

/* ---------- success & order pages ---------- */
.result-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 22px 40px;
}

.result-header {
  max-width: 980px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 0 4px 22px;
}

.result-header .brand-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.result-header .brand-logo {
  width: 31px;
  height: 31px;
  font-size: 16px;
}

.result-header .brand-text strong {
  font-size: 12px;
}

.result-header .brand-text span {
  font-size: 8px;
}

.result-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a49c91;
  font-size: 8.5px;
}

.result-secure .icon {
  width: 12px;
  height: 12px;
}

.result-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 620px);
  margin: 16px auto 0;
  padding: 45px 42px 32px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow-soft);
  text-align: center;
  backdrop-filter: blur(10px);
}

.result-card::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: 440px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 199, 160, 0.17), transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.result-card.refunded::before {
  background: radial-gradient(circle, rgba(207, 142, 150, 0.14), transparent 65%);
}

.result-icon {
  position: relative;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: #3f9c73;
  box-shadow: 0 0 0 10px rgba(63, 156, 115, 0.08), 0 13px 28px rgba(51, 115, 86, 0.19);
  animation: successPop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}

.result-icon.pending {
  color: #9a7c4e;
  background: #f8f0e2;
  box-shadow: 0 0 0 10px rgba(184, 151, 95, 0.07);
}

.result-icon.refunded {
  background: #c1848d;
  box-shadow: 0 0 0 10px rgba(193, 132, 141, 0.08);
}

.result-icon .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

@keyframes successPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.result-eyebrow {
  margin-bottom: 8px;
  color: #9c9488;
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.result-title {
  color: #2b2830;
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.result-subtitle {
  max-width: 400px;
  margin: 9px auto 0;
  color: #91897f;
  font-size: 10.5px;
  line-height: 1.8;
}

.result-amount {
  margin-top: 24px;
  color: #29252c;
  font-family: Georgia, serif;
  font-size: 45px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.result-amount span {
  margin-right: 4px;
  font-size: 21px;
  font-weight: 400;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: #9e968b;
  font-size: 8.5px;
}

.result-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-meta .icon {
  width: 11px;
  height: 11px;
}

.result-meta .meta-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c6beb3;
}

.result-divider {
  height: 1px;
  margin: 26px 0 20px;
  background: rgba(49, 41, 32, 0.08);
}

.result-product {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.result-product img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.result-product-info {
  min-width: 0;
  flex: 1;
}

.result-product-info strong {
  display: block;
  overflow: hidden;
  color: #4e473f;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-product-info span {
  display: block;
  margin-top: 3px;
  color: #a49c91;
  font-size: 8.5px;
}

.result-product-price {
  color: #4e473f;
  font-family: Georgia, serif;
  font-size: 13px;
}

.delivery-box {
  margin-top: 19px;
  padding: 15px;
  border: 1px solid rgba(68, 55, 39, 0.08);
  border-radius: 11px;
  background: #faf7f1;
  text-align: left;
}

.delivery-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: #746b60;
  font-size: 9px;
  font-weight: 550;
}

.copy-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8e8170;
  font-size: 8px;
}

.copy-text-btn:hover {
  color: #554b3f;
}

.copy-text-btn .icon {
  width: 10px;
  height: 10px;
}

.delivery-content {
  color: #756b5f;
  font-size: 10px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.delivery-note {
  color: #9e9488;
  font-size: 9px;
  line-height: 1.7;
}

.tracking-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #756b5f;
  font-size: 9.5px;
}

.tracking-line strong {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 23px;
}

.result-btn {
  display: flex;
  height: 43px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(49, 41, 32, 0.11);
  border-radius: 9px;
  color: #6f665b;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.16s ease;
}

.result-btn:hover {
  border-color: rgba(49, 41, 32, 0.25);
  background: rgba(255, 255, 255, 0.6);
}

.result-btn.primary {
  color: #fffdf8;
  border-color: #2b2830;
  background: #2b2830;
}

.result-btn.primary:hover {
  border-color: #151318;
  background: #151318;
}

.result-btn .icon {
  width: 13px;
  height: 13px;
}

.result-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid rgba(49, 41, 32, 0.07);
  color: #aaa298;
  font-size: 8.5px;
}

.result-support .icon {
  width: 12px;
  height: 12px;
}

.result-foot {
  width: min(100%, 620px);
  margin: 18px auto 0;
  color: #b0a89d;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-align: center;
}

.result-foot .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 7px;
  border-radius: 50%;
  background: #cbc4ba;
  vertical-align: 2px;
}

/* pending pay */
.pending-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

/* ---------- error state ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
}

.error-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 35px;
  color: #7e766b;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.error-card {
  width: min(100%, 420px);
  padding: 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 23px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow-card);
}

.error-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border-radius: 15px;
  color: #a88d73;
  background: #f7f1e8;
}

.error-mark .icon {
  width: 23px;
  height: 23px;
}

.error-card h1 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.error-card p {
  margin-top: 8px;
  color: #9b9287;
  font-size: 10px;
  line-height: 1.8;
}

.error-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 9px 15px;
  border: 1px solid rgba(49, 41, 32, 0.13);
  border-radius: 8px;
  color: #5f564b;
  font-size: 9.5px;
}

/* ---------- toasts ---------- */
.shop-toast-root {
  position: fixed;
  z-index: 300;
  top: 20px;
  left: 50%;
  display: flex;
  width: min(92vw, 380px);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.shop-toast {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(35, 32, 28, 0.9);
  box-shadow: 0 10px 30px rgba(34, 28, 22, 0.18);
  font-size: 10px;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  animation: toastIn 0.24s ease both;
}

.shop-toast.error {
  background: rgba(137, 53, 63, 0.94);
}

.shop-toast.leaving {
  animation: toastOut 0.2s ease both;
}

.shop-toast .icon {
  width: 13px;
  height: 13px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-5px); }
}

/* ---------- spinner ---------- */
.inline-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-dark {
  border-color: rgba(40, 34, 27, 0.15);
  border-top-color: #3d352b;
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .shop-main {
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    gap: 38px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .shop-header,
  .announcement,
  .shop-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .product-copy {
    padding-top: 12px;
  }

  .product-title {
    font-size: 32px;
  }
}

@media (max-width: 920px) {
  .shop-main {
    grid-template-columns: 1fr;
    max-width: 660px;
    gap: 19px;
    padding: 4px 24px 50px;
  }

  .product-gallery {
    position: static;
  }

  .product-visual {
    aspect-ratio: 1 / 0.93;
    border-radius: 22px;
  }

  .product-copy {
    padding-top: 10px;
  }

  .product-price-area {
    margin-top: 20px;
    padding-bottom: 19px;
  }

  .shop-header {
    max-width: 700px;
    padding: 18px 24px 8px;
  }

  .announcement {
    max-width: 700px;
    padding: 0 24px 7px;
    text-align: left;
  }

  .shop-footer {
    max-width: 700px;
    padding: 19px 24px 105px;
  }

  .product-title {
    font-size: 32px;
  }

  .mobile-buybar {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(47, 39, 31, 0.09);
    background: rgba(250, 247, 242, 0.92);
    box-shadow: 0 -10px 35px rgba(54, 43, 30, 0.06);
    backdrop-filter: blur(16px);
  }

  .mobile-buybar-price {
    min-width: 0;
    flex: 1;
  }

  .mobile-buybar-price span {
    display: block;
    color: #9f978b;
    font-size: 8px;
  }

  .mobile-buybar-price strong {
    display: block;
    margin-top: 2px;
    color: #2a272e;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .mobile-buybar-price strong small {
    margin-right: 2px;
    font-size: 11px;
    font-weight: 400;
  }

  .mobile-buybar .buy-button {
    width: auto;
    min-width: 165px;
    height: 46px;
    padding: 0 17px;
    border-radius: 11px;
    font-size: 11px;
    box-shadow: 0 8px 20px rgba(37, 32, 28, 0.16);
  }

  .mobile-buybar .buy-button .buy-total {
    font-size: 13px;
  }

  .mobile-buybar .buy-button .wx-mark {
    width: 21px;
    height: 21px;
  }

  .mobile-buybar .buy-button .wx-mark .icon {
    width: 13px;
    height: 13px;
  }

  .desktop-purchase {
    display: none;
  }

  .service-list {
    margin-top: 17px;
  }

  .result-page {
    padding: 18px 17px 34px;
  }

  .result-header {
    max-width: 660px;
    padding: 0 3px 17px;
  }
}

@media (max-width: 620px) {
  .shop-header {
    padding: 15px 17px 7px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .brand-text span {
    font-size: 8px;
  }

  .header-trust {
    font-size: 8.5px;
  }

  .announcement {
    overflow: hidden;
    padding: 0 17px 6px;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop-main {
    padding: 2px 0 40px;
    gap: 15px;
  }

  .product-gallery {
    padding: 0 14px;
  }

  .product-visual {
    aspect-ratio: 1 / 0.96;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(62, 48, 32, 0.1);
  }

  .visual-badge {
    top: 12px;
    left: 12px;
    height: 24px;
    padding: 0 8px;
    font-size: 8px;
  }

  .visual-caption {
    right: 14px;
    bottom: 12px;
    font-size: 7px;
  }

  .gallery-thumbs {
    padding: 0;
    margin-top: 8px;
  }

  .gallery-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
  }

  .product-copy {
    padding: 4px 20px 0;
  }

  .product-eyebrow {
    font-size: 8px;
  }

  .product-title {
    margin-top: 11px;
    font-size: 26px;
    line-height: 1.42;
  }

  .product-subtitle {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.8;
  }

  .product-social {
    margin-top: 11px;
    font-size: 9px;
  }

  .product-price-area {
    margin-top: 18px;
    padding-bottom: 17px;
  }

  .product-price .amount {
    font-size: 37px;
  }

  .product-price .currency {
    margin-top: 5px;
    font-size: 15px;
  }

  .price-note {
    font-size: 8px;
  }

  .option-block {
    margin-top: 18px;
  }

  .variant-option {
    min-height: 37px;
    padding: 0 12px;
    font-size: 10px;
  }

  .quantity-row {
    margin-top: 17px;
    padding: 13px 0;
  }

  .quantity-control {
    height: 34px;
  }

  .quantity-control button {
    width: 32px;
  }

  .quantity-control input {
    width: 36px;
  }

  .desktop-purchase {
    display: none;
  }

  .service-list {
    gap: 7px 14px;
    margin-top: 15px;
    padding-top: 15px;
  }

  .service-item {
    font-size: 8.5px;
  }

  .detail-block {
    margin-top: 14px;
  }

  .detail-toggle {
    padding-top: 14px;
    font-size: 9px;
  }

  .shop-footer {
    display: block;
    padding: 17px 20px 100px;
    text-align: center;
  }

  .shop-footer > * {
    justify-content: center;
  }

  .shop-footer .footer-brand {
    margin-bottom: 7px;
  }

  .shop-footer .footer-service,
  .shop-footer .footer-secure {
    margin-top: 5px;
    font-size: 8px;
  }

  .mobile-buybar {
    gap: 10px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  }

  .mobile-buybar .buy-button {
    min-width: 0;
    flex: 0 1 61%;
    padding: 0 13px;
  }

  .mobile-buybar .buy-button .buy-left {
    gap: 7px;
  }

  .shop-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .checkout-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    animation: sheetIn 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes sheetIn {
    from { transform: translateY(40px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
  }

  .checkout-head {
    padding: 20px 19px 0;
  }

  .checkout-head h2 {
    font-size: 20px;
  }

  .checkout-body {
    padding: 15px 19px calc(21px + env(safe-area-inset-bottom));
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .pay-card {
    width: calc(100% - 28px);
    margin-bottom: calc(14px + env(safe-area-inset-bottom));
    border-radius: 17px;
  }

  .shop-overlay.pay-overlay {
    align-items: center;
    justify-content: center;
    padding: 14px;
  }

  .result-page {
    padding: 15px 14px 30px;
  }

  .result-header {
    padding: 1px 2px 13px;
  }

  .result-card {
    margin-top: 8px;
    padding: 33px 20px 24px;
    border-radius: 21px;
  }

  .result-icon {
    width: 57px;
    height: 57px;
    margin-bottom: 16px;
  }

  .result-icon .icon {
    width: 27px;
    height: 27px;
  }

  .result-title {
    font-size: 25px;
  }

  .result-subtitle {
    font-size: 9.5px;
  }

  .result-amount {
    margin-top: 18px;
    font-size: 38px;
  }

  .result-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 8px;
  }

  .result-divider {
    margin: 20px 0 16px;
  }

  .result-product img {
    width: 51px;
    height: 51px;
  }

  .result-actions {
    flex-direction: column;
    margin-top: 19px;
  }

  .result-btn {
    height: 42px;
    flex: none;
  }

  .result-btn.primary {
    order: -1;
  }

  .result-support {
    margin-top: 16px;
    font-size: 8px;
  }

  .error-card {
    padding: 31px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
