:root {
  --mala-ink: #18211d;
  --mala-muted: #637068;
  --mala-green: #1f5a3c;
  --mala-green-dark: #173f2d;
  --mala-orange: #c96d2d;
  --mala-paper: #f6f3ed;
  --mala-surface: #fffdf9;
  --mala-line: #ded8cc;
  --mala-white: #fff;
}

* { box-sizing: border-box; }

html { color-scheme: light; background: var(--mala-paper); }

body {
  margin: 0;
  color: var(--mala-ink);
  background:
    radial-gradient(circle at 12% 8%, rgb(201 109 45 / 9%), transparent 28rem),
    var(--mala-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.mala-simple-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--mala-line);
  background: rgb(255 253 249 / 94%);
}

.mala-simple-header > span {
  color: var(--mala-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.mala-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mala-green-dark);
  text-decoration: none;
}

.mala-brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--mala-white);
  background: var(--mala-green);
  font-weight: 800;
}

.mala-brand strong { font-size: 1.05rem; }

.mala-order-main {
  display: grid;
  min-height: calc(100vh - 126px);
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.mala-order-card {
  display: grid;
  width: min(100%, 1050px);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  overflow: hidden;
  border: 1px solid var(--mala-line);
  border-radius: 18px;
  background: var(--mala-surface);
  box-shadow: 0 22px 54px rgb(24 33 29 / 10%);
}

.mala-product-visual {
  min-height: 590px;
  background: #d7ded7;
}

.mala-product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mala-order-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.mala-eyebrow {
  margin: 0 0 6px;
  color: var(--mala-orange);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.mala-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 2px;
  color: var(--mala-green-dark);
}

.mala-price strong {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1;
}

.mala-price span { font-weight: 800; }

.mala-shipping-lead {
  margin: 0 0 20px;
  color: var(--mala-muted);
  font-size: 1.03rem;
  font-weight: 700;
}

.mala-order-facts {
  display: grid;
  margin: 0 0 22px;
  border-top: 1px solid var(--mala-line);
}

.mala-order-facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--mala-line);
}

.mala-order-facts dt {
  color: var(--mala-muted);
  font-size: 0.9rem;
}

.mala-order-facts dd {
  margin: 0;
  font-weight: 750;
}

.mala-primary-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  color: var(--mala-white);
  background: var(--mala-green);
  box-shadow: 0 10px 24px rgb(31 90 60 / 18%);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.mala-primary-action:hover { background: var(--mala-green-dark); }

.mala-primary-action:focus-visible,
.mala-guide-link:focus-visible,
.mala-brand:focus-visible {
  outline: 3px solid #e4a253;
  outline-offset: 3px;
}

.mala-confirmation-note {
  margin: 14px 0 7px;
  color: var(--mala-muted);
  font-size: 0.91rem;
}

.mala-guide-link {
  align-self: flex-start;
  color: var(--mala-green-dark);
  font-size: 0.9rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

.mala-order-footer {
  min-height: 64px;
  padding: 20px;
  color: #dbe5df;
  background: var(--mala-green-dark);
  font-size: 0.9rem;
  text-align: center;
}

.mala-story-main {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 84px) clamp(20px, 5vw, 54px);
}

.mala-story-main article {
  padding: clamp(26px, 6vw, 64px);
  border: 1px solid var(--mala-line);
  border-radius: 16px;
  background: var(--mala-surface);
}

.mala-story-main h1 { max-width: 14ch; }

.mala-story-main h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
}

.mala-story-main p { color: #39473f; }

.mala-story-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--mala-green-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .mala-order-main {
    display: block;
    min-height: 0;
    padding: 12px;
  }

  .mala-order-card {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .mala-product-visual { min-height: 0; }

  .mala-product-visual img {
    height: clamp(170px, 48vw, 205px);
    object-position: center 54%;
  }

  .mala-order-copy { padding: 18px 16px 20px; }

  h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8.2vw, 2.2rem);
  }

  .mala-price { margin-top: 10px; }
  .mala-price strong { font-size: 2.8rem; }
  .mala-shipping-lead { margin-bottom: 12px; }
  .mala-order-facts { margin-bottom: 14px; }

  .mala-order-facts div {
    grid-template-columns: 7.5rem 1fr;
    gap: 8px;
    padding: 7px 0;
  }

  .mala-primary-action { width: 100%; }
  .mala-confirmation-note { margin-top: 10px; }
  .mala-order-footer { min-height: 56px; padding: 17px 12px; }
}

@media (max-width: 370px) {
  .mala-simple-header { min-height: 56px; padding: 8px 12px; }
  .mala-simple-header > span { font-size: 0.82rem; }
  .mala-brand span { width: 36px; height: 36px; }
  .mala-order-main { padding: 8px; }
  .mala-product-visual img { height: 160px; }
  .mala-order-copy { padding: 14px 13px 16px; }
  .mala-shipping-lead { font-size: 0.96rem; }
  .mala-order-facts div { font-size: 0.9rem; }
  .mala-primary-action { min-height: 50px; }
}
