:root {
  --ivory: #f7f1e8;
  --soft-white: #fffdf8;
  --paper: #fbf8f2;
  --mist: #aab9a7;
  --mist-deep: #6f806f;
  --wood: #9a7657;
  --wood-deep: #5c4334;
  --ink: #3e332b;
  --muted: #75695f;
  --line: #e7ddd0;
  --shadow: 0 20px 60px rgba(92, 67, 52, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 18px 6vw;
  border-bottom: 1px solid rgba(231, 221, 208, 0.78);
  background: rgba(247, 241, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wood-deep);
}

.brand-logo {
  width: 132px;
  height: auto;
  mix-blend-mode: multiply;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(170, 185, 167, 0.2);
  color: var(--wood-deep);
}

.order-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.order-hero {
  max-width: 760px;
  padding: 20px 0 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mist-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.order-hero h1 {
  margin: 0 0 16px;
  color: var(--wood-deep);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.06;
}

.order-hero p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.order-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.order-products,
.order-customer,
.order-summary {
  border: 1px solid rgba(231, 221, 208, 0.88);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.order-products,
.order-customer {
  padding: 28px;
}

.order-summary {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.order-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.order-section-heading p {
  margin: 0;
  color: var(--mist-deep);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-section-heading h2 {
  margin: 0;
  color: var(--wood-deep);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0;
}

.order-product-list {
  display: grid;
  gap: 14px;
}

.order-product-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) minmax(250px, 0.9fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(231, 221, 208, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 252, 0.72);
  padding: 14px;
}

.order-product-card picture,
.order-product-card img {
  width: 176px;
}

.order-product-card img {
  aspect-ratio: 1.22;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper);
}

.order-product-copy h3 {
  margin: 0 0 6px;
  color: var(--wood-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.order-product-copy p,
.order-product-copy span {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-product-copy span {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.9rem;
}

.variant-list {
  display: grid;
  gap: 10px;
}

.variant-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 78px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.variant-option span,
.variant-option strong,
.variant-option small {
  display: block;
}

.variant-option strong {
  color: var(--wood-deep);
  font-size: 0.95rem;
}

.variant-option small {
  color: var(--muted);
  font-size: 0.82rem;
}

.variant-option em {
  color: var(--wood-deep);
  font-style: normal;
  font-weight: 800;
}

.order-page label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.order-page input,
.order-page select,
.order-page textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.order-page input,
.order-page select {
  min-height: 46px;
  padding: 0 13px;
}

.order-page textarea {
  resize: vertical;
  padding: 12px 13px;
}

.order-page input:focus,
.order-page select:focus,
.order-page textarea:focus {
  border-color: var(--wood);
  box-shadow: 0 0 0 4px rgba(154, 118, 87, 0.14);
}

.order-page input:disabled {
  background: rgba(231, 221, 208, 0.32);
  color: var(--muted);
}

.quantity {
  max-width: 96px;
  text-align: center;
}

.summary-lines {
  display: grid;
  gap: 14px;
}

.summary-lines > div:not(.free-shipping-note) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-lines span {
  color: var(--muted);
}

.summary-lines strong {
  font-size: 1.04rem;
}

.free-shipping-note {
  border-radius: 6px;
  background: rgba(170, 185, 167, 0.18);
  color: var(--mist-deep);
  padding: 11px 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 18px;
}

.total strong {
  color: var(--wood-deep);
  font-size: 1.65rem;
}

.summary-selected {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-selected p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.summary-selected strong {
  flex: 0 0 auto;
  color: var(--wood-deep);
}

.empty-cart {
  display: block !important;
  border-radius: 6px;
  background: rgba(170, 185, 167, 0.12);
  padding: 10px 12px;
}

.copy-order-button,
.submit-area button {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: var(--wood-deep);
  color: #fffdf8;
  cursor: pointer;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease;
}

.copy-order-button {
  width: 100%;
  margin-top: 18px;
}

.copy-order-button:hover,
.submit-area button:hover {
  background: var(--mist-deep);
  transform: translateY(-1px);
}

.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--mist-deep);
  color: var(--soft-white);
  font-weight: 800;
}

.line-button.full {
  width: 100%;
  margin-top: 10px;
}

.summary-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.order-customer {
  grid-column: 1 / -1;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-grid label {
  display: grid;
  gap: 8px;
}

.wide {
  grid-column: 1 / -1;
}

.same-recipient-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(170, 185, 167, 0.12);
}

.same-recipient-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--mist-deep);
}

.same-recipient-option span {
  color: var(--wood-deep);
  font-weight: 800;
}

.field-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.submit-area {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 4px;
}

#formMessage {
  margin: 0;
  color: var(--wood-deep);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .order-product-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .order-product-card picture,
  .order-product-card img {
    width: 132px;
  }

  .variant-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .order-page {
    width: min(100% - 22px, 640px);
    padding-top: 32px;
  }

  .order-shell {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: 2;
  }

  .order-customer {
    order: 3;
  }

  .submit-area {
    order: 4;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    padding: 14px 20px;
  }

  .brand-logo {
    width: 112px;
  }

  .brand-sub {
    font-size: 0.78rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.85rem;
  }
}

@media (max-width: 620px) {
  .order-products,
  .order-customer,
  .order-summary {
    padding: 20px;
  }

  .order-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .order-product-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .order-product-card picture,
  .order-product-card img {
    width: 116px;
  }

  .variant-option {
    grid-template-columns: 1fr auto;
  }

  .variant-option input {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .submit-area {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-area button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    padding-left: 20px;
    padding-right: 20px;
  }
}
