:root {
  --leaf: #315f32;
  --leaf-dark: #2a1a0e;
  --citrus: #ba7b2f;
  --berry: #8a3f26;
  --cream: #fbf7ec;
  --mint: #edf4e5;
  --ink: #25190f;
  --muted: #6d655b;
  --line: rgba(24, 35, 28, .14);
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(18, 38, 27, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffdf8;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 248, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(22, 42, 29, .08);
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(49, 95, 50, .22);
  background: var(--cream);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #2b3a30;
  font-size: 15px;
}

.main-nav a {
  white-space: nowrap;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--leaf);
}

.icon-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  padding: clamp(90px, 12vw, 160px) clamp(18px, 5vw, 64px) clamp(50px, 7vw, 84px);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1610832958506-aa56368176cf?auto=format&fit=crop&w=2200&q=84");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 22, 15, .76), rgba(10, 22, 15, .36) 54%, rgba(10, 22, 15, .16)),
    linear-gradient(0deg, rgba(10, 22, 15, .42), transparent 45%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--berry);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd777;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 116px);
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.primary {
  color: var(--white);
  background: var(--leaf);
  box-shadow: 0 14px 28px rgba(37, 99, 63, .22);
}

.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
}

.line-friend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--white);
  background: #06c755;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(6, 199, 85, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.line-friend:hover {
  transform: translateY(-2px);
}

.line-friend svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.wide-line {
  width: 100%;
  margin-top: 12px;
}

.outline {
  color: var(--leaf);
  border-color: rgba(37, 99, 63, .28);
  background: var(--white);
}

.small {
  min-height: 42px;
  width: 100%;
  margin-top: auto;
  padding: 10px 14px;
}

.wide {
  width: 100%;
}

.hero-panel {
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.hero-panel > img {
  width: 86px;
  height: 86px;
  margin-bottom: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
}

.hero-panel span,
.hero-panel dt {
  color: rgba(255, 255, 255, .74);
}

.hero-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.hero-panel dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.hero-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-panel dd {
  margin: 0;
  font-weight: 800;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 64px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.split-section h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

.intro-band {
  background: linear-gradient(180deg, var(--cream), var(--mint));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.steps article {
  padding: 24px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid svg {
  width: 28px;
  height: 28px;
  color: var(--leaf);
}

.feature-grid h3,
.steps h3,
.product-card h3,
.order-box h3 {
  margin: 12px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.feature-grid p,
.steps p,
.product-card p,
.split-section p,
.order-head p {
  margin: 0;
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: start;
}

.shop-layout .section-head {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

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

.product-card {
  display: grid;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 35, 28, .06);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.tag {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--leaf-dark);
  background: #dff1c8;
  font-size: 12px;
  font-weight: 800;
}

.product-card strong {
  display: block;
  margin: 14px 0 12px;
  color: var(--berry);
  font-size: 18px;
}

.order-box {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: var(--leaf-dark);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-head svg {
  width: 34px;
  height: 34px;
  color: #ffd777;
}

.order-head h3 {
  margin: 0;
}

.order-head p {
  color: rgba(255, 255, 255, .68);
}

.order-list {
  display: grid;
  gap: 10px;
  min-height: 86px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.order-note {
  margin: 22px 0;
  color: rgba(255, 255, 255, .72);
}

.order-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.order-list .empty {
  color: rgba(255, 255, 255, .66);
}

.remove-item {
  border: 0;
  color: #ffd777;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 18px;
}

.process-band {
  background: #f4fbf7;
}

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

.steps span {
  color: var(--citrus);
  font-size: 34px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.split-section > div {
  max-width: 620px;
}

.split-section p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 18px;
}

.split-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: clamp(12px, 3vw, 30px);
  background: var(--cream);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: var(--leaf-dark);
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .7);
}

.site-footer a {
  color: #ffd777;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .order-box {
    position: static;
  }
}

@media (max-width: 820px) {
  .icon-button {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 92vh;
  }

  .hero-panel {
    max-width: 460px;
  }

  .shop-grid,
  .steps,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section img {
    order: -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 210px;
  }

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

  .hero-actions,
  .gift-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
