:root {
  color-scheme: light;
  --paper: #fffaf0;
  --cream: #fff0d9;
  --canvas: #efe5d2;
  --ink: #342716;
  --muted: #695742;
  --orange: #a73a11;
  --orange-deep: #862d0c;
  --green: #344821;
  --line: #e7d5ba;
  --shop-width: 480px;
  --body-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --heading-font: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --number-font: "Inter", Arial, sans-serif;
  --button-art: url("assets/citrus-button.webp");
  --cream-button: linear-gradient(105deg, #fff9e8 39%, #ffebcbd1);
  --green-button: linear-gradient(105deg, #f1f1e2 42%, #e6e9d7dc);
  --orange-button: linear-gradient(105deg, #98360fd9 26%, #a13a134d);
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; }

.shop {
  width: min(100%, var(--shop-width));
  margin-inline: auto;
  background: var(--paper);
  min-height: 100dvh;
  box-shadow: 0 0 70px #4f321319;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
}

.shop main { flex: 1; display: flex; flex-direction: column; }

.details-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.package-action, .button, .close-dialog {
  background-image: var(--button-color), var(--button-art);
  background-size: cover;
  background-position: right center;
  box-shadow: inset 0 1px #ffffff64, 0 2px 0 #4f32131c;
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}

@media (hover: hover) {
  :is(.package-action, .button, .close-dialog):hover { filter: brightness(1.055); }
}

:is(.package-action, .button, .close-dialog):active {
  filter: brightness(.94);
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px #4f321337;
}

.action-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: #49331012;
  font: 700 15px/1 var(--number-font);
}

.button-primary .action-icon, .value .action-icon { background: #fff3d428; }
.phone-icon { font-family: "Noto Sans Symbols 2", var(--body-font); }
.chat-icon::before, .chat-icon::after, .copy-icon::before, .copy-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 8px;
  border: 1px solid currentColor;
}
.chat-icon::before { top: 6px; left: 5px; border-radius: 5px 5px 5px 1px; }
.chat-icon::after {
  bottom: 6px;
  right: 4px;
  border-radius: 5px 5px 1px;
  background: #ae542b;
}
.copy-icon::before, .copy-icon::after { width: 8px; height: 10px; border-radius: 2px; }
.copy-icon::before { top: 5px; left: 6px; }
.copy-icon::after { bottom: 5px; right: 6px; background: #ae542b; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  aspect-ratio: 7 / 3;
  background: #fff0d5 url("assets/juicy-video-poster.webp") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
  pointer-events: none;
}

.hero-video-toggle {
  position: absolute;
  right: 7px;
  bottom: 2px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  color: #fffaf0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px #342716, 0 1px 5px #342716;
}

.hero-copy { padding: 14px 0 14px clamp(14px, 4.5vw, 23px); }
.hero-origin {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #3c4c26;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-origin::before {
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  margin-top: 8px;
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: clamp(28px, 8.4vw, 43px);
  letter-spacing: .025em;
  line-height: 1.13;
  color: #402811;
}

.hero h1 span {
  display: block;
  color: var(--orange-deep);
  font-size: .72em;
  margin-top: 3px;
}

.hero-note { margin-top: 7px; font-size: 12px; font-weight: 600; line-height: 1.55; }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 6px 10px;
  background: var(--green);
  color: #fff7e7;
  list-style: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.benefits li + li { border-inline-start: 1px solid #fff7e756; }
.orchard-backdrop {
  display: flex;
  flex: 1;
  flex-direction: column;
  background: var(--paper) url("assets/package-orchard.webp") center / 100% 100% no-repeat;
}

.packages { margin-block: 0 auto; padding: clamp(8px, 2dvh, 17px) clamp(12px, 3.7vw, 20px) 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.section-header h2 { font-size: clamp(19px, 5.2vw, 25px); white-space: nowrap; }
h2 { font-family: var(--heading-font); font-size: 25px; font-weight: 900; line-height: 1.25; }
.shipping-label {
  color: var(--green);
  background: #e9ecd9;
  border-radius: 20px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.section-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.package-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdf7;
  padding: 8px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.package-card.value { border-color: #e7b77c; background: #fff0db; }

.package-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 5px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.package-card strong {
  font-family: var(--number-font);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.package-card small { font-family: var(--body-font); margin-left: 2px; font-size: 12px; }
.package-note { margin-top: 3px; color: var(--muted); font-size: 12px; }
.package-quantity {
  margin: 6px 0 0;
  padding: 3px;
  border-radius: 8px;
  background: #f4d6a633;
  text-align: center;
}
.package-photo {
  display: grid;
  place-items: center;
  height: clamp(70px, 17dvh, 151px);
}

.package-fruit {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.package-photo-trial .package-fruit {
  height: 86%;
  align-self: end;
}

.package-quantity figcaption { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.package-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-inline: 9px;
  border-radius: 8px;
  background: var(--paper);
}
.quantity-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.details-link { flex-shrink: 0; }
.price {
  color: var(--orange);
  font: 800 clamp(28px, 5.5dvh, 39px)/1 var(--number-font);
  letter-spacing: -.055em;
  margin: 6px 0;
}
.price span { font-size: .49em; margin-right: 3px; }

.package-action {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  gap: 4px;
  border: 1px solid #e4c799;
  border-radius: 9px;
  padding: 0 6px;
  margin-top: auto;
  background-color: #fff0d5;
  --button-color: var(--cream-button);
  color: var(--orange-deep);
  font-size: 17px;
  font-weight: 800;
}

.value .package-action {
  background-color: var(--orange-deep);
  --button-color: var(--orange-button);
  border-color: #8c300d;
  color: #fffaf1;
}
.orchard-image {
  height: 145px;
  border-radius: 11px;
  margin: 12px 0;
  background: var(--cream) url("assets/orchard.webp") center 56% / cover no-repeat;
}

.details-dialog h3 { font-family: var(--heading-font); font-size: 19px; }
.details-dialog [hidden] { display: none; }

.order-bar {
  display: grid;
  border-top: 1px solid var(--line);
  padding: 7px clamp(12px, 3.7vw, 20px) calc(8px + env(safe-area-inset-bottom));
}

.order-bar .button { font-size: 18px; }

@media (max-height: 680px) {
  .package-photo { height: clamp(54px, 12dvh, 82px); }
  .package-card { padding: 6px; }
  .package-meta { margin-top: 3px; }
  .hero-copy { padding-block: 10px; }
  .benefits { font-size: 12px; }
  .order-bar { padding-block: 5px calc(5px + env(safe-area-inset-bottom)); }
}

.button {
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.button-outline {
  border-color: #b9c0a5;
  color: var(--green);
  background-color: #f6f5e8;
  --button-color: var(--green-button);
}
.button-primary {
  border-color: #8c300d;
  background-color: var(--orange-deep);
  --button-color: var(--orange-button);
  color: #fffaf1;
}

.order-dialog {
  width: min(calc(100% - 32px), 416px);
  max-height: calc(100dvh - 32px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 52px #3b24183d;
}

.order-dialog::backdrop { background: #2e200b8f; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; }
.close-dialog {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e4c799;
  border-radius: 50%;
  --button-color: var(--cream-button);
  color: var(--orange-deep);
  font: 400 23px/1 var(--number-font);
}
.order-selection { margin-top: 6px; color: var(--orange); font-size: 15px; font-weight: 800; }
.dialog-note { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 6px 0 14px; }
.order-dialog label { font-size: 13px; color: var(--muted); }
.order-dialog input {
  display: block;
  width: 100%;
  margin: 5px 0 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fffdf7;
  font: 800 20px var(--number-font);
  letter-spacing: .05em;
}
.dialog-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.copy-status { min-height: 1.6em; margin-top: 8px; color: var(--green); font-size: 13px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  :is(.package-action, .button, .close-dialog) { transition: none; }
}
