:root {
  --ink: #24312c;
  --muted: #66746d;
  --green: #536f60;
  --pale: #edf2ee;
  --line: #e3e9e5;
  --paper: #fbfcfa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    system-ui, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
.top {
  height: 76px;
  padding: 0 max(calc((100vw - 1120px) / 2), 24px);
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.hamb {
  border: 0;
  background: transparent;
  font-size: 24px;
  color: var(--green);
  cursor: pointer;
  padding: 6px;
}
.brand {
  font-weight: 750;
  font-size: 18px;
  letter-spacing: 0.05em;
}
.desktop {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}
.drawer {
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: white;
  padding: 30px 28px;
  transform: translateX(-105%);
  transition: transform 0.24s;
  box-shadow: 12px 0 40px #1a38261c;
  overflow: auto;
}
.drawer.open {
  transform: none;
}
.drawer > a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.close {
  float: right;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}
.shade {
  position: fixed;
  inset: 0;
  background: #13221c77;
  z-index: 19;
  display: none;
}
.shade.show {
  display: block;
}
.local {
  margin-top: 30px;
  padding: 20px;
  background: var(--pale);
  border-radius: 16px;
}
.local p {
  font-size: 14px;
  color: var(--muted);
}
.local-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.local-actions > a {
  display: inline-block;
}
.local-actions > .button-secondary {
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  font-weight: 700;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 8px;
}
.hero,
.page-intro {
  max-width: 1120px;
  margin: auto;
  padding: 96px 24px 84px;
}
.hero {
  padding-top: 112px;
  padding-bottom: 110px;
  background: radial-gradient(ellipse at 85% 35%, #e5eee7 0, transparent 42%);
}
h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.22;
  letter-spacing: -0.04em;
  margin: 12px 0 20px;
}
h2 {
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 14px;
}
.hero > p:not(.eyebrow),
.page-intro > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
}
.button small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
}
.section {
  max-width: 1120px;
  padding: 26px 24px 54px;
  margin: auto;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title > a,
.text-link {
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.featured-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1280px;
  padding: 0 24px;
  margin: auto;
}
.product {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}
.product-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #fff;
}
.product-carousel { position: absolute; inset: 12px; }
.carousel-image { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.carousel-image.is-active { opacity: 1; }
.carousel-dots { position: absolute; z-index: 1; bottom: 7px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c6d0ca; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--green); }
.admin-image-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-image-preview img { width: 64px; height: 64px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .carousel-image { transition: none; } }
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.placeholder {
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f8faf8;
  color: #7c9587;
}
.placeholder > span {
  font-size: 40px;
}
.placeholder small {
  font-size: 12px;
}
.product-info {
  padding: 16px;
}
.tag {
  font-size: 11px;
  color: var(--green);
  background: var(--pale);
  padding: 4px 9px;
  border-radius: 99px;
}
.product h3 {
  font-size: 16px;
  margin: 12px 0 5px;
}
.product p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  min-height: 44px;
}
.product-info > small {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.text-link {
  display: block;
  margin-top: 14px;
}
.news-list {
  border-top: 1px solid var(--line);
}
.page-news-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.news-item {
  padding: 18px 3px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-item > span:last-child {
  color: var(--green);
  font-size: 13px;
}
.notice {
  background: #edf2ee;
  color: #4f695a;
  text-align: center;
  padding: 8px 15px;
  font-size: 13px;
}
.page-intro {
  padding-top: 68px;
  padding-bottom: 42px;
}
.filters {
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: 0 24px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 13px;
  background: #fff;
  color: var(--muted);
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.chip.small {
  font-size: 12px;
  padding: 6px 12px;
}
.section-title h2.small {
  font-size: 1.35rem;
}
.product-grid {
  max-width: 1120px;
  padding: 0 24px;
  margin: auto;
}
.price-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.cta,
.contact,
.delivery-note {
  max-width: 1072px;
  margin: 55px auto;
  padding: 30px;
  background: var(--pale);
  border-radius: 18px;
}
.cta p,
.contact p,
.delivery-note p {
  color: var(--muted);
}
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 100px;
  min-height: 55vh;
}
.article h1 {
  font-size: 42px;
}
.article p {
  color: var(--muted);
  white-space: pre-line;
}
.form {
  max-width: 700px;
  margin: 20px auto 80px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.form label,
.admin-form label,
.admin-row label {
  display: block;
  font-weight: 650;
  margin: 14px 0;
  font-size: 14px;
}
.form input,
.form select,
.form textarea,
.admin-form input:not([type="checkbox"]),
.admin-form textarea,
.admin-form select,
.admin-row input:not([type="checkbox"]),
.admin-row textarea,
.admin-row select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #d6dfd9;
  border-radius: 9px;
  background: #fff;
}
.form .muted,
.muted {
  font-size: 12px;
  color: var(--muted);
}
.turnstile {
  border: 1px dashed #aab9af;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}
.success {
  max-width: 700px;
  margin: 80px auto;
  text-align: center;
  padding: 40px;
}
.faq {
  max-width: 850px;
  margin: 0 auto 90px;
  padding: 0 24px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.faq details p {
  color: var(--muted);
  margin-bottom: 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer strong {
  color: var(--ink);
}
footer small {
  font-size: 11px;
}
.admin-head {
  padding: 16px 24px;
  background: #25352d;
  color: white;
  display: flex;
  justify-content: space-between;
}
.admin-nav {
  display: flex;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.admin {
  max-width: 1050px;
  margin: auto;
  padding: 30px 24px;
}
.admin h1 {
  font-size: 34px;
}
.admin-form,
.admin-row,
.delivery-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
  background: white;
}
.admin-form h2,
.admin-row b {
  font-size: 18px;
}
.admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.danger {
  border: 1px solid #c77;
  background: white;
  color: #a33;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
}
.admin-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.admin-cards a {
  padding: 22px;
  background: var(--pale);
  border-radius: 14px;
  font-weight: 700;
}
.locked {
  overflow: hidden;
}
@media (max-width: 780px) {
  .desktop {
    display: none;
  }
  .top {
    height: 66px;
    padding: 0 18px;
  }
  .hero {
    padding: 75px 24px 80px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .featured-products {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 24px 10px;
    scrollbar-width: thin;
  }
  .featured-products > .product {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
  .product-info {
    padding: 13px;
  }
  .product h3 {
    font-size: 14px;
  }
  .product p {
    font-size: 12px;
  }
  .section-title {
    align-items: start;
  }
  .page-intro {
    padding: 54px 24px 32px;
  }
  .cta,
  .contact,
  .delivery-note {
    margin: 35px 20px;
    padding: 23px;
  }
  .admin-list {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    gap: 13px;
    font-size: 13px;
  }
  .admin {
    padding: 24px 16px;
  }
}
@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .product-grid {
    padding: 0 16px;
  }
  .chip {
    padding: 6px 10px;
    font-size: 12px;
  }
}
