:root {
  --forest: #008549;
  --forest-deep: #006b3c;
  --cream: #f4f6ee;
  --cream-soft: #f8f8f2;
  --gold: #d3ab6e;
  --soft-green: #83bb94;
  --line: #e6e2cf;
  --ink: #171b16;
  --white: #fff;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --page-gutter: clamp(24px, 6vw, 120px);
  --content: 1440px;
  --header-height: clamp(84px, 6.25vw, 160px);
  /* Float controls: artboard @2560 ≈73/151/184; cap LINE at 64 for mid viewports */
  --yilan-float-line: max(52px, min(2.5vw, 64px));
  --yilan-float-gap: calc(var(--yilan-float-line) * 184 / 73);
  --yilan-float-top-h: calc(var(--yilan-float-line) * 151 / 73);
  --yilan-float-top-w: calc(var(--yilan-float-line) * 31 / 73);
  --yilan-float-bottom: max(24px, min(4.609375vw, 104px));
  --yilan-float-right: max(20px, min(6.9140625vw, 155px));
  --yilan-type-meta: 14px;
  --yilan-type-card-title: 16px;
  --yilan-type-card-body: 13px;
  --yilan-type-body: 14px;
  --yilan-type-section-h2: 20px;
  --yilan-lh-card-body: 1.5263157895;
  --yilan-lh-body: 1.5789473684;
  --yilan-lh-detail-body: 1.6;
  --yilan-home-cta-width: max(150px, min(7.5vw, 192px));
  --yilan-home-cta-height: max(36px, min(1.5234375vw, 39px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

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

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

:focus-visible {
  outline: none;
  outline-offset: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--forest-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  background: #00000021;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

/* Sticky / solid header: original forest green */
.site-header[data-scrolled],
body:not(.home) .site-header {
  position: fixed;
  background: var(--forest);
  box-shadow: 0 5px 24px rgba(0, 78, 43, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.page-template-page-about .site-header:not([data-scrolled]),
body.page-template-page-contact .site-header:not([data-scrolled]),
body.post-type-archive-product .site-header:not([data-scrolled]),
body.blog .site-header:not([data-scrolled]),
body.single-post .site-header:not([data-scrolled]),
body.category .site-header:not([data-scrolled]),
body.tax-product_cat .site-header:not([data-scrolled]) {
  position: absolute;
  background: #00000021;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/*
 * Transparent header chrome: nav matches homepage (white + shadow).
 * Icons use base .site-action (white, no text-shadow) like home.
 */
.home .site-header:not([data-scrolled]) .site-nav a,
.home .site-header:not([data-scrolled]) .site-nav .current-menu-item > a,
body.page-template-page-about .site-header:not([data-scrolled]) .site-nav a,
body.page-template-page-about .site-header:not([data-scrolled]) .site-nav .current-menu-item > a,
body.page-template-page-contact .site-header:not([data-scrolled]) .site-nav a,
body.page-template-page-contact .site-header:not([data-scrolled]) .site-nav .current-menu-item > a,
body.post-type-archive-product .site-header:not([data-scrolled]) .site-nav a,
body.post-type-archive-product .site-header:not([data-scrolled]) .site-nav .current-menu-item > a,
body.blog .site-header:not([data-scrolled]) .site-nav a,
body.blog .site-header:not([data-scrolled]) .site-nav .current-menu-item > a,
body.single-post .site-header:not([data-scrolled]) .site-nav a,
body.single-post .site-header:not([data-scrolled]) .site-nav .current-menu-item > a,
body.category .site-header:not([data-scrolled]) .site-nav a,
body.category .site-header:not([data-scrolled]) .site-nav .current-menu-item > a,
body.tax-product_cat .site-header:not([data-scrolled]) .site-nav a,
body.tax-product_cat .site-header:not([data-scrolled]) .site-nav .current-menu-item > a {
  color: var(--white);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.45);
}

.home .site-header:not([data-scrolled]) .site-nav a:hover,
.home .site-header:not([data-scrolled]) .site-nav a:focus-visible,
body.page-template-page-about .site-header:not([data-scrolled]) .site-nav a:hover,
body.page-template-page-about .site-header:not([data-scrolled]) .site-nav a:focus-visible,
body.page-template-page-contact .site-header:not([data-scrolled]) .site-nav a:hover,
body.page-template-page-contact .site-header:not([data-scrolled]) .site-nav a:focus-visible,
body.post-type-archive-product .site-header:not([data-scrolled]) .site-nav a:hover,
body.post-type-archive-product .site-header:not([data-scrolled]) .site-nav a:focus-visible,
body.blog .site-header:not([data-scrolled]) .site-nav a:hover,
body.blog .site-header:not([data-scrolled]) .site-nav a:focus-visible,
body.single-post .site-header:not([data-scrolled]) .site-nav a:hover,
body.single-post .site-header:not([data-scrolled]) .site-nav a:focus-visible,
body.category .site-header:not([data-scrolled]) .site-nav a:hover,
body.category .site-header:not([data-scrolled]) .site-nav a:focus-visible,
body.tax-product_cat .site-header:not([data-scrolled]) .site-nav a:hover,
body.tax-product_cat .site-header:not([data-scrolled]) .site-nav a:focus-visible {
  color: #005f34;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, clamp(210px, 18.164vw, 465px)) 1fr auto;
  align-items: center;
  width: min(100% - (var(--page-gutter) * 2), 2000px);
  min-height: var(--header-height);
  margin-right: 0;
  margin-left: max(var(--page-gutter), calc((100vw - 1960px) / 2));
  gap: clamp(24px, 3vw, 52px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: min(100%, clamp(210px, 18.164vw, 465px));
}

.site-brand img {
  width: 100%;
}

.site-nav {
  justify-self: end;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: clamp(6px, 0.46875vw, 12px) 0;
  color: var(--white);
  font-size: clamp(14px, 1.1vw, 21px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.45);
}

/*
 * Solid green sticky header: keep white + same shadow as transparent.
 * Current page also stays white — no active green.
 */
.site-header[data-scrolled] .site-nav a,
.site-header[data-scrolled] .site-nav .current-menu-item > a,
.site-header[data-scrolled] .site-nav a:hover,
.site-header[data-scrolled] .site-nav a:focus-visible {
  color: var(--white);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

/* No hover underline (說明: hover 不用底線). */
.site-nav a::after {
  content: none;
  display: none;
}

.site-actions {
  display: flex;
  align-items: center;
  /* Artboard 16px @2560; scale down so icons stay proportional to nav at mid widths */
  gap: clamp(12px, 0.83333333vw, 20px);
}

.site-action {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--white);
  place-items: center;
}

.site-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.site-action svg circle:first-child {
  fill: currentColor;
  stroke: none;
}

/* Asset: 切圖 1.首頁/SVG/首頁3.svg — silhouette via mask + currentColor */
.site-action__icon--account {
  display: block;
  width: 21px;
  height: 21px;
  background-color: currentColor;
  -webkit-mask: url("../images/icon-account.svg") center / contain no-repeat;
  mask: url("../images/icon-account.svg") center / contain no-repeat;
}

.site-action__count {
  position: absolute;
  top: -11px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.nav-toggle {
  display: none;
}

.site-main {
  overflow: visible;
}

.section-shell {
  position: relative;
  padding: clamp(92px, 9vw, 170px) var(--page-gutter);
}

.section-title {
  position: relative;
  width: max-content;
  margin: 0 auto clamp(70px, 7vw, 130px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.section-title span {
  color: var(--forest);
}

.section-title::after {
  position: absolute;
  top: 60%;
  left: calc(100% + 16px);
  width: clamp(80px, 10vw, 180px);
  height: 42px;
  background: url("../images/dots-gold.svg") center / contain no-repeat;
  content: "";
  transform: translateY(-50%);
}

.section-title--light {
  color: var(--white);
  margin-bottom: clamp(88px, 8vw, 150px);
}

.section-title--light span {
  color: #b7d9c2;
}

.section-title--light::after {
  top: calc(100% + 10px);
  left: 50%;
  width: clamp(120px, 12vw, 220px);
  height: 36px;
  background-image: url("../images/dots-green.svg");
  transform: translateX(-50%);
}

.section-title--art {
  width: 300px;
  height: 80px;
  font-size: 0;
  line-height: 0;
}

.section-title--art::after {
  display: none;
}

.section-title__art {
  width: 300px;
  max-width: none;
  height: 80px;
}

.home-hero {
  position: relative;
  /* The delivered hero art is 2560×1400; preserving its ratio prevents clipping. */
  height: clamp(560px, 54.6875vw, 1400px);
  background: #8f9a3a;
  isolation: isolate;
  overflow: hidden;
}

.home-hero__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: none;
}

.home-hero__wave {
  display: none;
}

.home-hero__dots {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.home-hero__dots--green-left {
  bottom: 10%;
  left: 4%;
  width: clamp(60px, 5.5vw, 120px);
}

.home-hero__dots--gold-mid {
  bottom: 22%;
  left: 24%;
  width: clamp(70px, 7vw, 140px);
}

.home-hero__dots--green-mid {
  bottom: 8%;
  left: 42%;
  width: clamp(55px, 5.5vw, 110px);
}

.home-hero__copy {
  position: absolute;
  z-index: 2;
  /* Calibrated vs 1.首頁-第2頁.png @2560×1260 */
  top: clamp(130px, 8vw, 205px);
  right: clamp(19%, 23.5vw, 27%);
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 0.75vw, 16px);
  color: var(--white);
  /* Soft dark halo matching design (bright field legibility) */
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.45),
    1px 2px 3px rgba(15, 20, 5, 0.4),
    2px 3px 10px rgba(20, 25, 8, 0.38),
    0 0 14px rgba(0, 0, 0, 0.22);
}

.home-hero__lead,
.home-hero__sub {
  max-width: 1.35em;
  margin: 0;
  font-size: clamp(11px, 0.64vw, 16px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.9;
  writing-mode: vertical-rl;
}

.home-hero__copy h1 {
  display: flex;
  max-height: 9.6em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 2.7vw, 70px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.32;
  flex-direction: row-reverse;
  gap: 0.06em;
}

.home-hero__copy h1 span {
  writing-mode: vertical-rl;
}

.home-hero__crop {
  position: absolute;
  z-index: 3;
  height: auto;
  pointer-events: none;
  user-select: none;
  animation: crop-float 6.5s ease-in-out infinite;
}

/*
 * Crop coordinates refined vs 1.首頁-第2頁.png @2560×1260.
 * Percentages relative to .home-hero; negative bottom clips into the wave.
 */
.home-hero__crop--seed {
  bottom: 14%;
  left: 3.5%;
  width: 13.2%;
  max-width: 338px;
  animation: crop-float-seed 6.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.home-hero__crop--seed-alt {
  bottom: 37%;
  left: 10.5%;
  width: 7.3%;
  max-width: 187px;
  animation: crop-float-seed 6.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.home-hero__crop--onion {
  bottom: -3%;
  left: 12%;
  width: 13.8%;
  max-width: 353px;
  animation-delay: 0.8s;
}

.home-hero__crop--kumquat {
  bottom: -2%;
  left: 47%;
  width: 14.2%;
  max-width: 364px;
  animation-delay: 1.4s;
}

.home-hero__crop--rice {
  right: 12.5%;
  bottom: 0;
  left: auto;
  width: 13.8%;
  max-width: 353px;
  animation-delay: 1s;
}

.home-hero__crop--bee {
  left: 81.5%;
  right: auto;
  bottom: 35%;
  width: 7.3%;
  max-width: 187px;
  animation: bee-float 5s ease-in-out infinite;
}

@keyframes bee-float {
  50% { transform: translate3d(-18px, -14px, 0) rotate(-5deg); }
}

@keyframes crop-float {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes crop-float-seed {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes crop-float-onion-mobile {
  0%,
  100% { transform: rotate(45deg); }
  50% { transform: rotate(45deg) translate3d(0, -10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__crop,
  .home-hero__crop--bee,
  .home-fields__bee {
    animation: none !important;
  }

  .home-product__image img {
    transition: opacity 160ms ease;
  }
}

.home-products {
  min-height: 780px;
  padding-bottom: clamp(220px, 18vw, 380px);
  overflow: visible;
  background: var(--cream);
}

.home-products__wave {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -2px;
  left: 0;
  display: block;
  width: 100%;
  /* 2560×423: +33px top pad restores REF right crest (clipped in original 390 webp) */
  height: clamp(238px, 16.52vw, 423px);
  pointer-events: none;
  user-select: none;
}

.home-products__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  width: min(100%, 1400px);
  margin: 0 auto;
  gap: clamp(34px, 7vw, 150px);
}

.home-product {
  text-align: center;
}

.home-product a {
  display: block;
}

.home-product__image {
  position: relative;
  display: grid;
  min-height: clamp(280px, 32vw, 560px);
  place-items: end center;
}

.home-product__image img {
  grid-area: 1 / 1;
  width: auto;
  max-height: clamp(280px, 31vw, 540px);
  margin: auto;
  filter: none;
  transition: opacity 320ms ease;
}

.home-product__image-hover {
  opacity: 0;
  pointer-events: none;
}

.home-product a:hover .home-product__image-default,
.home-product a:focus-visible .home-product__image-default {
  opacity: 0;
}

.home-product a:hover .home-product__image-hover,
.home-product a:focus-visible .home-product__image-hover {
  opacity: 1;
}

.home-product h3 {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 31px);
  letter-spacing: 0.08em;
}

.home-news {
  z-index: 1;
  margin-top: 0;
  padding-bottom: clamp(330px, 19.5vw, 510px);
  background: var(--forest);
  color: var(--white);
}

.home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1360px);
  margin: 0 auto;
  gap: clamp(16px, 1.6vw, 28px);
}

.news-card {
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}

.news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.news-card__image {
  position: relative;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
}

.news-card__category {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  min-height: 28px;
  padding: 4px 12px;
  background: var(--soft-green);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  align-items: center;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.news-card a:hover .news-card__image img {
  transform: scale(1.035);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 270px;
  padding: clamp(20px, 1.9vw, 32px) clamp(20px, 1.9vw, 34px) clamp(24px, 2.2vw, 38px);
}

.news-card time {
  color: #9a9e96;
  font-size: var(--yilan-type-meta);
  font-weight: 500;
}

.news-card h3 {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: var(--yilan-type-card-title);
  line-height: 1.45;
}

.news-card p {
  margin: 0;
  color: #4d514c;
  font-size: var(--yilan-type-card-body);
  line-height: var(--yilan-lh-card-body);
}

.news-card__body > span {
  display: block;
  flex-shrink: 0;
  margin-top: auto;
  color: var(--forest);
  font-family: var(--serif);
  text-align: right;
  line-height: 1.2;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  min-height: 52px;
  margin-top: 34px;
  padding-left: 34px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  justify-content: space-between;
}

.pill-link span {
  display: grid;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--cream);
  color: var(--forest);
  place-items: center;
}

.pill-link--light {
  margin: 72px auto 0;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--forest);
}

.pill-link--light span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.home-news > .pill-link {
  display: flex;
  width: max-content;
}

.home-news__more img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-fields {
  position: relative;
  z-index: 3;
  height: clamp(400px, 37.5vw, 960px);
  overflow: visible;
}

.home-fields__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-fields__image {
  position: absolute;
  top: -18%;
  right: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 136%;
  object-fit: cover;
  object-position: center 35%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.home-fields__bee {
  position: absolute;
  z-index: 4;
  right: 17%;
  bottom: max(-2.5vw, -40px);
  width: clamp(96px, 7.5vw, 192px);
  pointer-events: none;
  animation: bee-float 5.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.home-farmers {
  position: relative;
  z-index: 1;
  background: var(--cream);
  overflow: visible;
}

.home-farmers__content {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  width: min(100%, 1500px);
  margin: 0 auto;
  gap: clamp(55px, 8vw, 150px);
}

.home-farmers__copy h3 {
  display: grid;
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 40px);
  line-height: 1.7;
  gap: 0.15em;
}

.home-farmers__copy h3 span {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.home-farmers__copy h3 span::after {
  position: absolute;
  right: 0;
  bottom: 0.12em;
  left: 0;
  border-bottom: 1px solid rgba(90, 96, 88, 0.7);
  content: "";
}

.home-farmers__copy p {
  max-width: 610px;
  color: #4f554f;
  font-size: var(--yilan-type-body);
  line-height: var(--yilan-lh-body);
}

.home-farmers__image {
  position: relative;
  z-index: 2;
  overflow: visible;
  border-radius: 0;
  /* Green offset plate is baked into farmer.webp — do not add box-shadow. */
  box-shadow: none;
}

.home-farmers__image img:not(.home-farmers__dots-left) {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
}

.home-farmers__dots-left {
  display: none;
}

.home-partners {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(900px, 58.5vw, 1500px);
  padding-top: 0;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 40% 28% at 12% 18%, rgba(0, 133, 73, 0.06), transparent 70%),
    radial-gradient(ellipse 36% 24% at 88% 22%, rgba(196, 154, 74, 0.08), transparent 70%),
    var(--white);
  flex-direction: column;
  justify-content: center;
}

.home-partners h2 {
  margin: 0 0 clamp(48px, 4.5vw, 90px);
  font-family: var(--serif);
  font-size: clamp(26px, 1.7vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.home-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1500px);
  margin: 0 auto;
  gap: 48px 72px;
}

.home-partners__grid a {
  display: grid;
  min-height: 82px;
  place-items: center;
}

.home-partners__grid img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-partners__grid a:hover img {
  opacity: 0.75;
  transform: translateY(-3px);
}

.home-services {
  min-height: clamp(1800px, 121vw, 3100px);
  padding-bottom: clamp(80px, 6vw, 140px);
  background: var(--cream) url("../images/service-bg.webp") top center / 100% auto no-repeat;
}

.service-list {
  display: grid;
  width: min(100%, 1540px);
  margin: 0 auto;
  gap: 32px;
}

.service-item {
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
}

.service-item summary {
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  cursor: pointer;
  list-style: none;
}

.service-item summary::-webkit-details-marker {
  display: none;
}

.service-item__image {
  overflow: hidden;
  /* Design cut 首頁48–52 SVG: soft right wave (top ~88% → bottom 100%), not a center chevron */
  clip-path: polygon(
    0% 0%,
    88.14% 0%,
    87.96% 4.17%,
    87.88% 8.33%,
    87.91% 12.5%,
    88.01% 16.67%,
    88.19% 20.83%,
    88.73% 25%,
    89.52% 29.17%,
    90.34% 33.33%,
    91.19% 37.5%,
    92.06% 41.67%,
    92.93% 45.83%,
    93.8% 50%,
    94.62% 54.17%,
    95.44% 58.33%,
    96.21% 62.5%,
    96.93% 66.67%,
    97.57% 70.83%,
    98.16% 75%,
    98.64% 79.17%,
    99.08% 83.33%,
    99.41% 87.5%,
    99.69% 91.67%,
    99.87% 95.83%,
    100% 100%,
    0% 100%
  );
}

.service-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item__summary {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 65px 105px 55px 60px;
  justify-content: center;
}

.service-item__summary h3 {
  margin: 0 0 22px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 36px);
}

.service-item__summary h3 span {
  margin-right: 14px;
  font-style: italic;
}

.service-item__summary p {
  margin: 0;
  color: #414641;
  font-size: var(--yilan-type-body);
  line-height: var(--yilan-lh-body);
}

.service-item__toggle {
  position: absolute;
  top: 50%;
  right: 38px;
  width: 66px;
  height: 66px;
  border: 2px solid var(--forest);
  border-radius: 50%;
  transform: translateY(-50%);
}

.service-item__toggle::before,
.service-item__toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--forest);
  content: "";
  transform: translate(-50%, -50%);
}

.service-item__toggle::before {
  width: 22px;
  height: 22px;
  border-right: 3px solid var(--forest);
  border-bottom: 3px solid var(--forest);
  background: transparent;
  transform: translate(-50%, -65%) rotate(45deg);
}

.service-item__toggle::after {
  display: none;
}

.service-item[open] .service-item__toggle {
  background: var(--forest);
}

.service-item[open] .service-item__toggle::before {
  border-color: var(--white);
  transform: translate(-50%, -35%) rotate(225deg);
}

.service-item[open] .service-item__toggle::after {
  display: none;
}

.home-services__dots {
  display: block;
  /* 首頁63.png @2006×643 — green seed scatter under last service image */
  width: min(508px, 46vw);
  height: auto;
  /* Center under last service card image (46% column of centered list) */
  margin: 48px 0 0
    calc(
      max(0px, (100% - min(100%, 1540px)) / 2) +
        (min(100%, 1540px) * 0.46 - min(508px, 46vw)) / 2
    );
}

.home-farmers__more {
  display: block;
  width: 200px;
  height: 41px;
}

.home-services__contact {
  display: block;
  /* Match .service-item__detail .pill-link below @1181 (min-height 41px) */
  width: 200px;
  height: 41px;
}

.home-farmers__more img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-services__contact img {
  display: block;
  width: 100%;
  height: 100%;
}

.service-item__detail {
  position: relative;
  display: block;
  /* Match REF: copy starts near card left (under image), CTA at far right */
  margin: 36px 0 28px;
  padding: 0 220px 0 56px;
  border: none;
  background: transparent;
  isolation: isolate;
}

.service-item__detail::after {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 160px;
  width: min(240px, 28%);
  height: 70%;
  background: url("../images/dots-gold.svg") right center / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
  content: "";
}

.service-item__detail:has(.service-item__detail-image)::after {
  display: none;
}

.service-item__detail-image {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  margin: 0 0 36px;
  overflow: hidden;
  border-radius: 20px;
}

.service-item__detail-image img {
  display: block;
  width: 100%;
  height: auto;
}

.service-item__detail > p {
  position: relative;
  z-index: 1;
  /* REF Desktop 01: ~72px between blocks @2560 */
  margin: 0 0 48px;
  color: #414641;
  font-size: 16px;
  line-height: 1.85;
}

.service-item__detail > p:last-of-type {
  margin-bottom: 0;
}

.service-item__detail strong {
  color: #2a302b;
  font-weight: 700;
}

/* REF: label on own line, body wraps below (fixture <br> after strong) */

.service-item__detail .pill-link {
  position: absolute;
  z-index: 1;
  right: 38px;
  bottom: 0;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
  min-height: 41px;
  margin: 0;
  padding: 2px 3px 2px 22px;
  font-size: 16px;
}

.service-item__detail .pill-link span {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border-width: 0;
  background: var(--white);
}

.floating-line {
  position: fixed;
  z-index: 90;
  right: var(--yilan-float-right);
  bottom: var(--yilan-float-bottom);
  display: grid;
  width: var(--yilan-float-line);
  height: var(--yilan-float-line);
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  place-items: center;
}

.floating-line img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Mark from 首頁57 polyline; label uses site --serif (Noto Serif TC), not GenYoMin in SVG */
.back-to-top {
  position: fixed;
  z-index: 80;
  right: calc(var(--yilan-float-right) + (var(--yilan-float-line) - var(--yilan-float-top-w)) / 2);
  bottom: calc(var(--yilan-float-bottom) + var(--yilan-float-line) + var(--yilan-float-gap));
  display: block;
  width: var(--yilan-float-top-w);
  height: var(--yilan-float-top-h);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.9));
}

.back-to-top__inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  gap: 0.2em;
}

.back-to-top__mark {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  aspect-ratio: 10 / 151;
}

.back-to-top__label {
  display: block;
  align-self: flex-end;
  margin-bottom: 2%;
  color: #008549;
  font-family: var(--serif);
  font-size: calc(var(--yilan-float-line) * 16 / 73);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.site-footer {
  background: var(--forest);
  color: var(--white);
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1.25fr;
  width: min(100% - (var(--page-gutter) * 2), 1760px);
  min-height: 444px;
  margin: 0 auto;
  padding: 65px 0 70px;
  gap: 50px;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__brand-mark {
  position: relative;
  display: block;
  overflow: hidden;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

.site-footer__brand-mark img {
  position: absolute;
  top: 0;
  left: -14px;
  width: 460px;
  max-width: none;
  height: auto;
  filter: none;
}

.site-footer__brand-name {
  /* REF 1.首頁-第2頁: black fill + thin white outline (~2px @2560) */
  color: #111;
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  -webkit-text-stroke: 0;
  paint-order: normal;
  /* Outward-only outline (text-stroke eats into fill and looks too thick) */
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    -1px 0 0 #fff,
    1px 0 0 #fff,
    0 -1px 0 #fff,
    0 1px 0 #fff;
  white-space: nowrap;
}

.site-footer__block {
  font-size: 14px;
  /* Light — matches 1.首頁-2 / 第2頁 body stroke; Regular(400) reads too heavy vs artboard */
  font-weight: 300;
  line-height: 1.75;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.site-footer__block p {
  margin: 4px 0;
  font-weight: 300;
}

.site-footer__block strong {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}

.site-footer__block strong:first-child {
  margin-top: 0;
}

.site-footer__block a {
  color: inherit;
  font-weight: 300;
  text-decoration: none;
}

.site-footer__value {
  font-weight: 300;
  font-synthesis: none;
}

.site-footer__block a.site-footer__value {
  font-weight: 300;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.site-footer__social a {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.site-footer__social img {
  display: block;
  width: 100%;
  height: 100%;
  filter: none;
}

.site-footer__block p.site-footer__policies {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  width: fit-content;
  margin-top: 22px !important;
  padding-bottom: 2px;
  border-bottom: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
}

.site-footer__policies a,
.site-footer__policies span {
  color: #fff;
  font-weight: 300;
  text-decoration: none;
}

.site-footer__copyright {
  position: absolute;
  right: 0;
  bottom: 25px;
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  opacity: 0.85;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
}

.content-shell {
  min-height: 70vh;
  padding: calc(var(--header-height) + 90px) var(--page-gutter) 120px;
}

body:not(.yilan-dq-woo-chrome) .entry-content,
body:not(.yilan-dq-woo-chrome) .archive-heading,
body:not(.yilan-dq-woo-chrome) .post-grid,
body:not(.yilan-dq-woo-chrome) .navigation.pagination {
  width: min(100%, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.entry-content > h1 {
  margin: 0 0 clamp(20px, 1.5625vw, 30px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 1.875vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.archive-heading h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.3;
}

.entry-content h2 {
  margin: clamp(28px, 2.08333333vw, 40px) 0 clamp(14px, 1.04166667vw, 20px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 1.45833333vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.entry-content p {
  margin: 0 0 1em;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.98958333vw, 19px);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.entry-content--single {
  max-width: 980px;
}

.entry-meta {
  color: var(--forest);
  font-weight: 700;
}

.entry-hero {
  width: 100%;
  margin: 50px 0;
}

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

.post-card {
  background: var(--white);
}

.post-card img {
  aspect-ratio: 1.45 / 1;
  width: 100%;
  object-fit: cover;
}

.post-card h2,
.post-card p {
  padding-right: 24px;
  padding-left: 24px;
}

.post-card h2 {
  font-family: var(--serif);
}

/* About page */
/* About page */
/* About page */
.about-page {
  position: relative;
  --about-bg: #f3f4ec;
  background: var(--about-bg);
}

.about-hero {
  margin: 0;
  line-height: 0;
}

.about-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(100vh, 1080px);
  object-fit: cover;
  object-position: center 40%;
}

.about-anchor-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0 var(--page-gutter);
  gap: clamp(48px, 10vw, 188px);
}

.about-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  width: clamp(120px, 7.6vw, 146px);
  height: clamp(34px, 2.03vw, 39px);
  padding: 0 10px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(14px, 0.89vw, 17px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.about-section {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 30px);
}

.about-side-mark {
  display: none;
  position: absolute;
  top: 120px;
  right: clamp(12px, 2vw, 36px);
  z-index: 2;
  color: rgba(0, 133, 73, 0.28);
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.35em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.about-side-mark--light {
  color: rgba(255, 255, 255, 0.35);
}

.about-introduction,
.about-organization,
.about-partners {
  width: 100%;
  margin: 0;
}

.about-introduction {
  padding-top: 40px;
}

.about-green-panel {
  position: relative;
  overflow: visible;
  width: min(74.21875vw, 1425px);
  max-width: calc(100% - 48px);
  margin-right: auto;
  margin-left: auto;
  background: var(--forest);
  color: var(--white);
  text-align: center;
}

.about-green-panel--intro {
  z-index: 1;
  min-height: 0;
  padding: 100px 24px 290px;
  border-radius: 0;
}

.about-green-panel h1,
.about-green-panel h2,
.about-partners-intro > h2,
.about-certificates > h2,
.about-partners-table-title,
.about-leaders-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 1.7vw, 30px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.55;
}

.about-intro-copy,
.about-org-copy,
.about-partners-copy,
.about-produce-copy {
  width: min(72%, 680px);
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(16px, 1.2vw, 22.5px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.about-gm-note {
  width: min(100%, 41.3vw, 795px);
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(14px, 0.9vw, 17px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.about-intro-copy {
  margin-top: 28px;
  margin-bottom: 0;
}

.about-intro-copy p,
.about-produce-copy p,
.about-org-copy,
.about-gm-note,
.about-partners-copy {
  margin: 0;
}

.about-intro-seal {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(180px, 14vw);
  margin: 0;
  transform: translate(-50%, -30%);
}

.about-intro-seal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.about-intro-media {
  position: relative;
  z-index: 2;
  width: min(74.21875%, 1425px); /* 1425 / 1920 */
  margin: -150px auto 0;
  line-height: 0;
  overflow: visible;
  background: transparent;
}

.about-intro-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(84px, 8.5vw, 154px);
  background: linear-gradient(to bottom, rgba(243, 244, 236, 0), var(--about-bg) 78%);
  pointer-events: none;
}

.about-intro-rice {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

.about-produce-block {
  margin-top: 0;
  padding: 0 0 56px;
  background: var(--about-bg);
  text-align: center;
}

.about-produce-title {
  margin: 0 auto 46px;
  font-family: var(--serif);
  font-size: clamp(26px, 1.7vw, 30px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: #000;
}

.about-produce {
  display: block;
  width: min(70.9375%, 1362px); /* side margin ~279 @ 1920 */
  margin: 0 auto;
  padding: 0;
}

.about-produce-copy {
  width: min(70.9375vw, 1022px);
  max-width: calc(100% - 48px);
  margin: 36px auto 0;
  color: var(--ink);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-align: left;
}

.about-produce-copy p {
  margin: 0;
}

.about-produce-copy p + p {
  margin-top: 0;
}

.about-organization {
  background: var(--about-bg);
}

.about-green-panel--leaders {
  overflow: hidden;
  padding: 72px var(--page-gutter) 275px;
  border-radius: 0;
}

.about-green-panel--leaders::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  /* 關於本會12.svg wave (flipped), viewBox 1900×342 */
  height: auto;
  aspect-ratio: 1900 / 342;
  background: url("../images/about-leaders-wave.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.about-green-panel--leaders > * {
  position: relative;
  z-index: 1;
}

.about-green-panel--leaders::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 120px;
  left: clamp(54px, 4.5vw, 86px);
  width: 260px;
  height: 84px;
  background: url("../images/about-wave-dots.webp") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  pointer-events: none;
}

.about-org-copy {
  width: min(100%, 900px);
  margin-top: 24px;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.about-leaders-title {
  margin-top: 36px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 820px);
  margin: 24px auto 0;
  padding: 22px 20px 16px;
  border-radius: 4px;
  background: #f3f1ea;
  gap: 20px;
}

.people-grid--image {
  display: block;
  width: min(100%, 41.3vw, 795px);
  margin: 24px auto 0;
  padding: 0;
  background: transparent;
}

.people-grid--image img {
  width: 100%;
  height: auto;
}

.person-card {
  color: var(--ink);
  text-align: center;
}

.person-card img {
  display: block;
  width: 100%;
  height: 270px;
  max-height: none;
  background: #fff;
  object-fit: cover;
  object-position: center top;
}

.person-card__caption {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.person-card__caption span {
  margin-right: 0.35em;
}

.about-gm-note {
  margin: 24px auto 0;
}

.about-diagram,
.about-partners-intro,
.about-partners-map,
.about-partners-table,
.about-certs-lead {
  width: min(74.21875vw, 1425px);
  max-width: calc(100% - 48px);
  margin-right: auto;
  margin-left: auto;
  background: #fff;
  text-align: center;
}

.about-diagram {
  margin-top: -1px;
  padding: 48px clamp(30px, 7vw, 150px) 0;
}

.about-diagram img {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.about-partners-intro {
  margin-top: 0;
  padding: 48px clamp(30px, 7vw, 150px) 0;
}

.about-partners-map {
  margin-top: 0;
  padding: 32px clamp(30px, 7vw, 150px) 0;
}

.about-partners-table {
  margin-top: 0;
  padding: 40px clamp(30px, 7vw, 150px) 0;
}

.about-partners {
  padding: 0;
  background: var(--about-bg);
  text-align: center;
}

.about-partners-intro .about-partners-copy {
  width: 100%;
  max-width: none;
  margin-top: 20px;
  text-align: center;
  color: var(--ink);
}

.about-partners-copy__place {
  color: var(--forest);
}

.about-map {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  height: auto;
}

.about-partners-table-title {
  margin: 0 0 22px;
}

.about-partners-table .partner-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: clip;
}

.partner-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border: 2px solid #1a1a1a;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  font-size: 14px;
  table-layout: fixed;
}

.partner-table th,
.partner-table td {
  padding: 12px 14px;
  border: 1px solid #1a1a1a;
  vertical-align: middle;
}

.partner-table thead th {
  background: var(--soft-green);
  color: #1a1a1a;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.partner-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.partner-table tbody td:nth-child(2) {
  text-align: left;
}

.partner-table__fax {
  white-space: pre-line;
}

/* Column ratios from 關於本會10.svg (table width 1039.61) */
.partner-table thead th:nth-child(1),
.partner-table tbody th {
  width: 19.49%;
}

.partner-table thead th:nth-child(2),
.partner-table tbody td:nth-child(2) {
  width: 43.76%;
}

.partner-table thead th:nth-child(3),
.partner-table tbody td:nth-child(3) {
  width: 18.58%;
}

.partner-table thead th:nth-child(4),
.partner-table tbody td:nth-child(4) {
  width: 18.14%;
}

.partner-table tbody tr:nth-child(even) {
  background: var(--white);
}

.about-certs-lead {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: end;
  align-items: end;
  min-height: 104px;
  margin-top: 0;
  padding: 0 clamp(30px, 7vw, 150px) 16px;
  overflow: visible;
  line-height: 0;
  /* Keep white spacer above certificates, but leave the -48px overlap
     transparent so the certificates wave is not clipped by a flat edge. */
  background: linear-gradient(
    to bottom,
    #fff 0%,
    #fff calc(100% - 48px),
    transparent calc(100% - 48px)
  );
}

.about-certs-lead__dots {
  display: block;
  width: min(18.75vw, 270px);
  height: auto;
  margin: 0 clamp(48px, 4.1vw, 72px) 4px 0;
  transform: translateY(90px);
}

.about-certificates {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(74.21875vw, 1425px);
  max-width: calc(100% - 48px);
  margin-top: -48px;
  margin-bottom: 68px;
  margin-right: auto;
  margin-left: auto;
  padding: 196px var(--page-gutter) 72px;
  border-radius: 0;
  background: var(--forest);
  color: var(--white);
  text-align: center;
}

.about-certificates::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  /* 關於本會12.svg top wave, viewBox 1900×340 — matches ref 2.關於本會-1.jpg */
  height: auto;
  aspect-ratio: 1900 / 340;
  background: url("../images/about-certificates-wave.svg") center top / 100% 100% no-repeat;
  pointer-events: none;
}

.about-certificates > :not(.about-side-mark) {
  position: relative;
  z-index: 1;
}

.about-certificates > .about-side-mark {
  position: absolute;
  z-index: 2;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1280px);
  margin: 40px auto 0;
  gap: clamp(24px, 3vw, 40px);
}

/* Fixed 242px image slot so titles share one baseline across aspect ratios. */
.certificate-card > a {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 242px;
}

.certificate-card img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin: 0 auto;
  background: var(--white);
  object-fit: contain;
}

.certificate-card h3 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.certificate-card__body,
.certificate-card p {
  width: min(100%, 280px);
  margin: 0 auto;
  color: #d9e9df;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.7;
  letter-spacing: 0;
  /* normal: wpautop emits <br>\n; pre-line would double the breaks */
  white-space: normal;
}

.news-page,
.news-single-page {
  background: #f3f4ec;
}

.news-archive-hero {
  position: relative;
  /* REF @1920: hero+wave band ends ≈ y990 before cream title pad. */
  height: min(990px, 51.5625vw);
  overflow: hidden;
  background: #1a2218;
}

.news-archive-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.news-archive-hero__wave,
img.news-archive-hero__wave {
  position: absolute;
  z-index: 1;
  /* 最新消息2.svg artboard pad 72.79 before 2560 art — shift, don't rescale. */
  right: auto;
  bottom: -1px;
  left: calc(-72.79 / 2560 * 100%);
  display: block;
  width: calc(2632.79 / 2560 * 100%);
  max-width: none !important;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.news-archive-section > h1 {
  /* REF: title centered over card column only (mid ≈ 742 @1920), not full viewport. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 316px);
  width: min(1268px, 66.04166667vw);
  margin: 0 auto 40px;
  gap: clamp(48px, 6.25vw, 120px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 1.40625vw, 27px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

.news-archive-layout,
.news-article-layout {
  display: grid;
  /* REF @1920: cards 326–1158 + gap 120 + sidebar 1278–1594 = 1268; side margins 326 (17%). */
  grid-template-columns: minmax(0, 1fr) minmax(280px, 316px);
  width: min(1268px, 66.04166667vw);
  margin: 0 auto;
  gap: clamp(48px, 6.25vw, 120px);
  align-items: start;
}

.news-archive-section {
  /* REF @1920: hero ends ≈990, H1 ink ≈1194 → ~200px pad before title. */
  padding-top: 200px;
  padding-right: 0;
  padding-bottom: 72px;
  padding-left: 0;
  /* Match news-hero-wave.svg cream (#f3f4ec) so the wave seam disappears. */
  background: #f3f4ec;
}

.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* REF @1920: card ≈ 263 wide, col gap ≈ 23. */
  gap: 32px 23px;
}

.archive-news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.archive-news-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.archive-news-card h2,
.archive-news-card h3 {
  margin: 8px 0 12px;
  padding: 0 24px;
  font-family: var(--serif);
  font-size: var(--yilan-type-card-title);
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.4em);
}

.archive-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* REF @1920：日期 padL ≈ 20–24；綠標籤貼齊卡片右緣。 */
  margin: 12px 0 0;
  padding: 0 0 0 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--yilan-type-meta);
  line-height: 1.2;
}

.archive-news-card__meta time {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  color: var(--ink);
}

.archive-news-card__md {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.archive-news-card__year {
  font-size: 0.86em;
  font-weight: 400;
  color: #5c635c;
}

.archive-news-card__tag,
.archive-news-card__meta span.archive-news-card__tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: var(--forest);
  color: var(--white);
  font-size: clamp(10px, 0.625vw, 12px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.archive-news-card__image {
  overflow: hidden;
  margin: 0;
  background: #111;
}

.archive-news-card__image img,
.archive-news-card__placeholder {
  display: block;
  /* REF @1920 card image ≈ 263 × 243. */
  aspect-ratio: 263 / 243;
  width: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.archive-news-card__placeholder {
  background: #000;
}

.archive-news-card a:hover .archive-news-card__image img {
  transform: scale(1.035);
}

.news-filter {
  align-self: start;
}

.news-filter form {
  display: none;
}

.news-filter > a {
  display: block;
  padding: 10px 2px;
  border-bottom: 1px solid #b9bdb6;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(13px, 0.78125vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-decoration: none;
}

.news-filter > a.is-active {
  border-bottom-color: #b9bdb6;
  background-image: linear-gradient(var(--forest), var(--forest));
  background-repeat: no-repeat;
  background-position: left bottom;
  /* REF: green accent ≈ 1/3 of 316px sidebar. */
  background-size: 105px 2px;
  color: var(--forest);
  font-weight: 700;
}

.news-filter > a:hover {
  color: var(--forest);
}

.news-page .navigation.pagination {
  margin-top: 44px;
  text-align: center;
}

.news-page .navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(15px, 0.9375vw, 18px);
  color: var(--forest);
}

.news-page .navigation.pagination .page-numbers {
  color: var(--forest);
  text-decoration: none;
}

.news-page .navigation.pagination .page-numbers.current {
  color: var(--forest);
  font-weight: 700;
}

.news-page .navigation.pagination .page-numbers:hover {
  font-weight: 700;
}

@media (max-width: 1599px) {
  .news-archive-section > h1,
  .news-article-section > h1,
  .news-archive-layout,
  .news-article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(36px, 4vw, 80px);
  }
}

@media (max-width: 720px) {
  .news-archive-section > h1,
  .news-article-section > h1,
  .news-archive-layout,
  .news-article-layout,
  .news-article {
    width: min(100% - 40px, 1268px);
  }

  .news-article-section > h1,
  .news-archive-section > h1,
  .news-archive-layout,
  .news-article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related-news-grid {
    width: min(100% - 40px, 1116px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-archive-hero {
    height: min(520px, 72vw);
  }

  .news-archive-section {
    padding-top: 72px;
  }
}

/* Single article @1920: white band after hero; page title mid ≈742; layout shell 326–1594. */
.news-article-section {
  padding-top: 200px;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  background: #fff;
}

.news-article-section > h1 {
  /* Same shell as archive H1: centered over main column, not full viewport. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 316px);
  width: min(1268px, 66.04166667vw);
  margin: 0 auto 40px;
  gap: clamp(48px, 6.25vw, 120px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 1.40625vw, 27px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

.news-article {
  width: min(1268px, 66.04166667vw);
  margin: 0 auto;
  padding: 0 0 100px;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 0 28px;
  color: #6f746d;
  font-family: var(--sans);
  font-size: var(--yilan-type-meta);
  line-height: 1.4;
  white-space: nowrap;
  gap: 10px;
}

.news-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.news-breadcrumb a:hover,
.news-breadcrumb a:focus-visible {
  color: var(--forest);
}

.news-breadcrumb [aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-article-layout {
  width: 100%;
}

.news-article__title {
  margin: 0 0 40px;
  color: var(--ink);
  font-family: var(--serif);
  /* REF @1920: two-line title optical size ≈ 48–54. */
  font-size: clamp(30px, 2.8125vw, 54px);
  font-weight: 700;
  line-height: 1.45;
}

.news-article__hero {
  margin: 0;
}

.news-article__hero img {
  display: block;
  width: 100%;
  height: auto;
  /* REF @1920: featured ≈ 835 × 355 (ends ≈1855). */
  max-height: min(355px, 18.48958333vw);
  object-fit: cover;
  object-position: center;
}

.news-article__content {
  margin-top: 40px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.9;
}

.news-article__content p {
  margin: 0 0 1.35em;
}

.news-article__content img {
  display: block;
  margin: 35px auto;
}

.news-article__content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  /* REF @1920: two-up gap ≈ 37px within 835px main column. */
  gap: clamp(20px, 1.92708333vw, 37px);
  margin: 35px 0;
}

.news-article__content .wp-block-columns figure,
.news-article__content .wp-block-columns img {
  width: 100%;
  margin: 0;
}

/* Related @1920: cream #f3f4ec; cards 401–1517 (1116) = 1268 shell inset ≈75px; gap 23. */
.related-news {
  padding: 45px 0 70px;
  background: #f3f4ec;
}

.related-news > h2 {
  margin: 0 0 40px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 1.5625vw, 30px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1116px, 58.125vw);
  margin: 0 auto;
  gap: 23px;
}

.shop-page {
  /* Match news-hero-wave.svg cream (#f3f4ec) so the wave seam disappears. */
  background: #f3f4ec;
}

.shop-archive-hero {
  position: relative;
  /* REF @1920: photo+wave settles to flat cream ≈ y1060 (wave SVG bottom-aligned). */
  height: min(1060px, 55.20833333vw);
  overflow: hidden;
  background: #1a2218;
}

.shop-archive-hero__slide {
  margin: 0;
  height: 100%;
}

.shop-archive-hero__track {
  height: 100%;
}

.shop-archive-hero__slide[hidden] {
  display: none;
}

.shop-archive-hero__slide > a {
  display: block;
  height: 100%;
}

.shop-archive-hero__photo,
.shop-archive-hero img.shop-archive-hero__photo,
.shop-archive-hero .shop-archive-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias lower so kumquat board meets the wave like REF. */
  object-position: center 58%;
}

.shop-archive-hero__wave,
img.shop-archive-hero__wave {
  position: absolute;
  z-index: 1;
  /* Same 最新消息2 artboard pad shift as news hero wave. */
  right: auto;
  bottom: -1px;
  left: calc(-72.79 / 2560 * 100%);
  display: block;
  width: calc(2632.79 / 2560 * 100%);
  max-width: none !important;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.shop-archive-hero__controls {
  position: absolute;
  z-index: 3;
  right: max(var(--page-gutter), calc((100vw - 2000px) / 2));
  bottom: min(160px, 8.333vw);
  display: flex;
  opacity: 0;
  transition: opacity 180ms ease;
  gap: 8px;
}

.shop-archive-hero:hover .shop-archive-hero__controls,
.shop-archive-hero__controls:focus-within {
  opacity: 1;
}

.shop-archive-hero__controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(0, 53, 29, 0.76);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  place-items: center;
}

.home-promotion-dialog {
  position: relative;
  width: min(calc(100% - 40px), 780px);
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: 0 24px 80px rgba(0, 53, 29, 0.3);
}

.home-promotion-dialog::backdrop {
  background: rgba(0, 36, 19, 0.66);
}

.home-promotion-dialog__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  place-items: center;
}

.home-promotion-dialog__media,
.home-promotion-dialog__media img {
  display: block;
  width: 100%;
}

.home-promotion-dialog__media img {
  max-height: min(80vh, 720px);
  object-fit: cover;
}

.shop-archive-section > h1 {
  /* REF: title centered over product column only (mid ≈ 742 @1920), not full viewport. */
  display: grid;
  /* REF @1920: products 832 + gap 120 + sidebar 316; scale all three with vw. */
  grid-template-columns: minmax(0, 1fr) min(316px, 16.45833333vw);
  width: min(1268px, 66.04166667vw);
  margin: 0 auto 54px;
  gap: min(120px, 6.25vw);
  font-family: var(--serif);
  font-size: clamp(18px, 1.09375vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.shop-archive-section {
  /* REF @1920: hero+wave ≈1060, H1 ink ≈1195 → ~130px pad before title. */
  padding-top: min(130px, 6.77083333vw);
  padding-bottom: 72px;
  padding-right: 0;
  padding-left: 0;
  background: #f3f4ec;
}

.shop-archive-layout {
  display: grid;
  /* REF @1920: products 326–1158 + gap 120 + sidebar 1278–1594 = 1268; side margins 326 (17%). */
  grid-template-columns: minmax(0, 1fr) min(316px, 16.45833333vw);
  width: min(1268px, 66.04166667vw);
  margin: 0 auto;
  gap: min(120px, 6.25vw);
  align-items: start;
}

@media (max-width: 720px) {
  .shop-archive-section > h1,
  .shop-archive-layout {
    width: min(100% - 40px, 1268px);
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .shop-archive-section {
    padding-top: 72px;
  }
}

.shop-products ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  /* REF @1920: panel ≈ 263²; col gap ≈ 23; row gap ≈ 40. */
  gap: min(40px, 2.08333333vw) min(23px, 1.19791667vw);
}

.shop-products ul.products::before,
.shop-products ul.products::after {
  display: none;
}

/* Beat WooCommerce layout.css `.columns-N li.product { width: …% }` (0,4,2). */
body.woocommerce .shop-products ul.products li.product,
body.woocommerce-page .shop-products ul.products li.product {
  position: relative;
  float: none;
  clear: none;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.shop-products ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-products ul.products li.product a img,
.shop-products ul.products li.product img {
  /* REF @1920 first card gray panel ≈ 263 × 263. */
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0 0 24px;
  border-radius: 10px;
  background: #dddddd;
  object-fit: contain;
}

.shop-products ul.products li.product .onsale {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  left: auto;
  display: grid;
  width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #d3ab6e;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  place-items: center;
}

.shop-products ul.products li.product .woocommerce-loop-product__title {
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(14px, 0.9375vw, 18px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.shop-products ul.products li.product .product-loop-excerpt {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(11px, 0.73vw, 14px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.shop-products ul.products li.product .price {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.shop-products ul.products li.product .price .amount,
.shop-products ul.products li.product .price ins,
.shop-products ul.products li.product .price bdi {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.shop-products ul.products li.product .price del {
  display: none;
}

.shop-products ul.products li.product .price ins {
  text-decoration: none;
}

.shop-products ul.products li.product .button {
  display: none;
}

.shop-products .woocommerce-pagination {
  /* REF: ~66px from last price line to pagination glyphs. */
  margin-top: 66px;
  text-align: center;
}

body.woocommerce .shop-products .woocommerce-pagination ul.page-numbers,
body.woocommerce-page .shop-products .woocommerce-pagination ul.page-numbers {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
  list-style: none;
  gap: 20px;
}

body.woocommerce .shop-products .woocommerce-pagination ul.page-numbers::before,
body.woocommerce .shop-products .woocommerce-pagination ul.page-numbers::after,
body.woocommerce-page .shop-products .woocommerce-pagination ul.page-numbers::before,
body.woocommerce-page .shop-products .woocommerce-pagination ul.page-numbers::after {
  display: none;
}

body.woocommerce .shop-products .woocommerce-pagination ul.page-numbers li,
body.woocommerce-page .shop-products .woocommerce-pagination ul.page-numbers li {
  float: none;
  margin: 0;
  border: 0;
}

body.woocommerce .shop-products .woocommerce-pagination .page-numbers,
body.woocommerce-page .shop-products .woocommerce-pagination .page-numbers {
  display: inline-block;
  float: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--forest) !important;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

body.woocommerce .shop-products .woocommerce-pagination .page-numbers.current,
body.woocommerce-page .shop-products .woocommerce-pagination .page-numbers.current,
body.woocommerce .shop-products .woocommerce-pagination a.page-numbers:hover,
body.woocommerce-page .shop-products .woocommerce-pagination a.page-numbers:hover {
  background: transparent !important;
  color: var(--forest) !important;
  font-weight: 700;
}

.shop-filter {
  align-self: start;
}

.shop-filter form {
  display: grid;
  grid-template-columns: 1fr 40px;
  margin-bottom: 22px;
  border: 1px solid #575756;
  background: var(--white);
}

.shop-filter input {
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.shop-filter input::placeholder {
  color: #9aa09a;
}

.shop-filter button {
  display: grid;
  border: 0;
  background: transparent;
  color: #575756;
  cursor: pointer;
  place-items: center;
}

.shop-filter > a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid #c5c8c2;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-decoration: none;
}

.shop-filter > a.is-active {
  border-bottom-color: #c5c8c2;
  background-image: linear-gradient(var(--forest), var(--forest));
  background-repeat: no-repeat;
  background-position: left bottom;
  /* REF @1920: green accent under 宜蘭嚴選 ≈ 119px. */
  background-size: min(119px, 6.19791667vw) 2px;
  color: var(--forest);
  font-weight: 700;
}

.shop-filter > a:hover {
  color: var(--forest);
}

/* Side Cart (XOO) — empty state copy on dark panel */
.xoo-wsc-empty-cart .xoo-wsc-emp-txt {
  color: #ffffff;
}

body.woocommerce-cart:not(.yilan-dq-woo-chrome) #primary,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) #primary,
body.woocommerce-account:not(.yilan-dq-woo-chrome) #primary,
body.woocommerce-cart:not(.yilan-dq-woo-chrome) .content-shell,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .content-shell,
body.woocommerce-account:not(.yilan-dq-woo-chrome) .content-shell {
  width: min(100% - (var(--page-gutter) * 2), 1178px);
  min-height: 70vh;
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(48px, 5vw, 90px)) 0 clamp(80px, 8vw, 130px);
}

/*
 * Single product (一般商品) — REF 3.鮮饗宜蘭線上購-4 @1920
 * Content 300–1609 ≈ 1310px; side margins ≈ 305 (15.9%). Scale with vw, no --page-gutter fill.
 */
body.single-product #primary {
  width: min(1310px, 68.22916667vw);
  min-height: 70vh;
  margin: 0 auto;
  /* REF: related cream ends flush into footer — no extra cream band below related. */
  padding: calc(var(--header-height) + clamp(48px, 5.46875vw, 105px)) 0 0;
}

body.single-product .woocommerce-breadcrumb {
  display: none;
}

body.single-product div.product {
  display: grid;
  /* Gallery ~703 + column-gap 105 + summary ~502. Row gap must be 0:
     otherwise a cream strip appears between tabs and related (body --cream). */
  grid-template-columns: minmax(0, 703fr) minmax(0, 502fr);
  column-gap: clamp(24px, 5.46875vw, 105px);
  row-gap: 0;
  align-items: start;
}

body.woocommerce-cart:not(.yilan-dq-woo-chrome) .content-shell,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .content-shell,
body.woocommerce-account:not(.yilan-dq-woo-chrome) .content-shell {
  width: min(100% - (var(--page-gutter) * 2), 1178px);
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

body.woocommerce-cart:not(.yilan-dq-woo-chrome),
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) {
  background: var(--cream-soft);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .content-shell {
  width: min(100% - (var(--page-gutter) * 2), 1178px);
  min-height: 0;
  margin: 0 auto;
  padding-top: calc(var(--header-height) + clamp(48px, 5vw, 90px));
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(32px, 3vw, 52px) clamp(24px, 3vw, 55px) clamp(40px, 4vw, 56px);
  border: 1px solid #c5c9c1;
  background: var(--white);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .entry-content > h1,
body.woocommerce-cart:not(.yilan-dq-woo-chrome) .entry-content > h1 {
  margin: 0 0 clamp(24px, 2.5vw, 40px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Classic WooCommerce cart / checkout (woomp shortcode stack) */
body.woocommerce-cart:not(.yilan-dq-woo-chrome) .entry-content > .woocommerce,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .entry-content > .woocommerce,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .cart-shortcode .woocommerce {
  max-width: none !important;
}

body.woocommerce-cart:not(.yilan-dq-woo-chrome) table.shop_table,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce-cart-form table.shop_table {
  border: 1px solid var(--line);
  border-collapse: collapse;
}

body.woocommerce-cart:not(.yilan-dq-woo-chrome) table.shop_table th,
body.woocommerce-cart:not(.yilan-dq-woo-chrome) table.shop_table td,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce-cart-form table.shop_table th,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce-cart-form table.shop_table td {
  padding: 14px 16px;
  border-color: var(--line);
}

body.woocommerce-cart:not(.yilan-dq-woo-chrome) .cart_totals,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .cart_totals {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

body.woocommerce-cart:not(.yilan-dq-woo-chrome) .cart_totals h2,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) #order_review_heading {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) form.checkout.woocommerce-checkout {
  margin-top: 0;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) #customer_details h3,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce-billing-fields h3,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce-shipping-fields h3,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce-additional-fields h3 {
  margin: 24px 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce form .form-row input.input-text,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce form .form-row textarea,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .woocommerce form .form-row select,
body.woocommerce-cart:not(.yilan-dq-woo-chrome) .woocommerce form .form-row input.input-text {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c8cec5;
  border-radius: 0;
  background: var(--white);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) #payment {
  background: var(--cream-soft);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) #payment ul.payment_methods {
  border-bottom-color: var(--line);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wp-block-woocommerce-checkout {
  width: 100%;
  margin: 0;
  padding: 52px 55px 56px;
  border: 1px solid #c5c9c1;
  background: var(--white);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-sidebar-layout {
  gap: 48px;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-checkout__main,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-checkout__sidebar {
  padding: 0;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-checkout__main {
  width: calc(60% - 24px);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-checkout__sidebar {
  width: calc(40% - 24px);
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-checkout-step {
  margin-bottom: 28px;
  padding: 0;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-checkout-step__heading {
  margin-bottom: 14px;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-checkout-step__title,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-text-input,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-combobox {
  margin-top: 10px;
}

body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-text-input input,
body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-combobox .wc-block-components-combobox-control input {
  min-height: 48px;
}

body.woocommerce-account:not(.logged-in) {
  background: var(--cream-soft);
}

body.woocommerce-account:not(.logged-in) .content-shell {
  display: flex;
  width: min(100% - (var(--page-gutter) * 2), 1178px);
  min-height: 70vh;
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(40px, 4vw, 72px)) var(--page-gutter) clamp(64px, 6vw, 96px);
  justify-content: center;
  align-items: center;
}

body.woocommerce-account:not(.logged-in) .entry-content {
  width: min(100%, 700px);
  min-height: 0;
  margin: 0 auto;
  padding: 80px 118px 72px;
  border: 1px solid #d0d0d0;
  background: var(--white);
  box-shadow: none;
}

body.woocommerce-account:not(.logged-in) .entry-content > h1 {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
}

.yilan-account-auth h2 {
  margin: 0 0 32px;
  color: #727272;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
}

.yilan-account-auth .form-row {
  position: relative;
  margin: 0;
}

.yilan-account-auth form.login,
.yilan-account-auth form.register {
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce .yilan-account-auth form .form-row.woocommerce-form-row--wide,
.yilan-account-auth .woocommerce-form-row--wide {
  position: relative;
  margin: 0 0 19px !important;
  padding: 0 !important;
}

.yilan-account-auth label:not(.woocommerce-form-login__rememberme) {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 12px;
  right: 12px;
  display: block;
  width: auto;
  margin: 0;
  color: #525850;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.yilan-account-auth .required {
  margin-left: 2px;
  color: #b32d2e !important;
  font-weight: 400;
  border: 0 !important;
  text-decoration: none !important;
}

.yilan-account-auth .password-input {
  display: block;
  width: 100%;
}

.yilan-account-auth .show-password-input {
  display: none !important;
}

/* Beat WooCommerce `.woocommerce form .form-row .input-text` specificity */
.woocommerce .yilan-account-auth form .form-row input.input-text,
.yilan-account-auth input.input-text {
  width: 100%;
  min-height: 56px;
  height: 56px;
  margin: 0;
  padding: 24px 12px 6px;
  border: 1px solid #c8cec5;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  box-sizing: border-box;
}

.woocommerce .yilan-account-auth form .form-row .password-input {
  display: block;
  width: 100%;
}

.woocommerce .yilan-account-auth form .form-row .password-input input.input-text {
  padding-right: 12px;
}

.yilan-account-auth input.input-text::placeholder,
.yilan-account-auth input.input-text::-webkit-input-placeholder {
  color: #c4c4c4;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  opacity: 1;
}

.yilan-account-auth input.input-text::-moz-placeholder {
  color: #c4c4c4;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  opacity: 1;
}

.yilan-account-auth__actions {
  display: grid;
  gap: 18px;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

.yilan-account-auth__actions::before,
.yilan-account-auth__actions::after {
  display: none !important;
}

.yilan-account-auth__actions label {
  justify-self: start;
  color: #8f8f8f;
  font-size: 12px;
}

.yilan-account-auth button.button,
.yilan-account-auth .button {
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #dcdcdc;
  color: #000000;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.yilan-account-auth button.button:hover,
.yilan-account-auth button.button:focus-visible {
  background: var(--forest);
  color: var(--white);
}

.yilan-account-auth .lost_password,
.yilan-account-auth__switch {
  margin: 14px 0 0;
  color: #9a9a9a;
  font-size: 12px;
  text-align: center;
}

.yilan-account-auth .lost_password a,
.yilan-account-auth__switch a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.yilan-account-auth__switch a {
  color: #595959;
  font-weight: 600;
  text-decoration: none;
}

.yilan-account-auth .woocommerce-privacy-policy-text {
  margin: 0 0 19px;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
}

.yilan-account-auth .woocommerce-privacy-policy-text a {
  color: #595959;
  font-weight: 600;
  text-decoration: none;
}

.yilan-account-auth .woocommerce-privacy-policy-text a:hover,
.yilan-account-auth .woocommerce-privacy-policy-text a:focus-visible {
  color: var(--forest);
}

.woocommerce .yilan-account-auth form.register .form-row:not(.woocommerce-form-row--wide) {
  margin: 0 !important;
  padding: 0 !important;
}

.yilan-account-auth__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 24px 0 16px;
  color: #9a9a9a;
  font-size: 12px;
  gap: 12px;
}

.yilan-account-auth__divider::before,
.yilan-account-auth__divider::after {
  height: 1px;
  background: #c8c8c8;
  content: "";
}

.yilan-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 1px solid #c6ccc4;
  background: var(--white);
  color: #535a53;
  font-size: 16px;
  gap: 12px;
}

.yilan-google-login__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.yilan-google-login__label {
  color: #535a53;
  font-size: 16px;
  font-weight: 400;
}

.yilan-google-login:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.yilan-account-auth__pending {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
}

body.woocommerce-account.logged-in:not(.yilan-dq-woo-chrome) .woocommerce {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
}

body.woocommerce-account.logged-in:not(.yilan-dq-woo-chrome) .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

body.woocommerce-account.logged-in:not(.yilan-dq-woo-chrome) .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}

body.woocommerce-account.logged-in:not(.yilan-dq-woo-chrome) .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account.logged-in:not(.yilan-dq-woo-chrome) .woocommerce-MyAccount-navigation a:hover {
  color: var(--forest);
  font-weight: 700;
}

/* Block / shop buttons on Yilan pages — do not force on hybrid DQ Woo pages */
body:not(.yilan-dq-woo-chrome) .wc-block-cart__submit-button,
body:not(.yilan-dq-woo-chrome) .wc-block-components-checkout-place-order-button,
body:not(.yilan-dq-woo-chrome) .woocommerce a.button,
body:not(.yilan-dq-woo-chrome) .woocommerce button.button,
body:not(.yilan-dq-woo-chrome) .woocommerce input.button {
  min-height: 48px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
}

.woocommerce .yilan-account-auth button.button {
  min-height: 40px;
  height: 40px;
  background: #dcdcdc;
  color: #000000;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border-radius: 0;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
  float: none;
  width: auto;
  margin-bottom: clamp(48px, 4.1667vw, 80px);
}

body.single-product div.product .woocommerce-product-gallery {
  /* REF: thumbs 143 + gap 10 + main 551 = 704 */
  --yilan-thumb: min(143px, 7.44791667vw);
  --yilan-thumb-gap: min(8px, 0.41666667vw);
  --yilan-gallery-gap: min(10px, 0.52083333vw);
  --yilan-main-w: min(551px, 28.69791667vw);
  --yilan-main-h: min(734px, 38.22916667vw);
  position: relative;
  min-height: var(--yilan-main-h);
  padding-left: calc(var(--yilan-thumb) + var(--yilan-gallery-gap));
}

/* Single uploaded image, no gallery thumbs:
 * keep thumb-column inset (padding-left) so main x matches multi-image PDPs,
 * but do NOT paint the gallery background across the empty thumb slot.
 * WC skips FlexSlider (no .flex-viewport) — still lock 551×734 on the main panel only. */
body.single-product div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
  width: var(--yilan-main-w);
  height: var(--yilan-main-h);
  margin: 0;
  background: #dddddd;
}

body.single-product div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image,
body.single-product div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image > a,
body.single-product div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image img:not(.zoomImg) {
  display: block;
  width: var(--yilan-main-w) !important;
  height: var(--yilan-main-h) !important;
  margin: 0;
}

body.single-product div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image img:not(.zoomImg) {
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

body.single-product div.product .woocommerce-product-gallery .flex-viewport {
  width: var(--yilan-main-w) !important;
  height: var(--yilan-main-h) !important;
  background: #dddddd;
}

body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image > a,
body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img:not(.zoomImg) {
  height: var(--yilan-main-h) !important;
}

body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img:not(.zoomImg) {
  width: 100%;
  /* Featured/gallery assets are padded to 551:734 so the panel fills with no
     #ddd letterbox; zoom tracking stays correct (unlike cover on square assets). */
  object-fit: contain;
  object-position: center center;
}

/* jquery.zoom .zoomImg must keep its intrinsic/inline size — do not inherit
   the main-image height / object-fit / width:100% rules (causes white/grey letterbox).
   Idle opacity:0 / visibility:hidden layers still occlude the base <img> — use display. */
body.single-product div.product .woocommerce-product-gallery__image img.zoomImg {
  display: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  object-fit: fill;
  pointer-events: none;
}

body.single-product div.product .woocommerce-product-gallery__image:hover img.zoomImg,
body.single-product div.product .woocommerce-product-gallery__image img.zoomImg[style*="opacity: 1"] {
  display: block !important;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: var(--yilan-thumb);
  width: var(--yilan-thumb);
  margin: 0;
  padding: 0;
  gap: var(--yilan-thumb-gap);
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none;
  width: var(--yilan-thumb);
  height: min(151px, 7.86458333vw);
  margin: 0;
  list-style: none;
  background: #dddddd;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  background: #dddddd;
  object-fit: contain;
  opacity: 1;
}

body.single-product div.product .woocommerce-product-gallery__trigger {
  display: none;
}

body.single-product div.product .summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  column-gap: min(10px, 0.52083333vw);
}

body.single-product div.product .summary > * {
  grid-column: 1 / -1;
}

body.single-product div.product .product_title {
  order: 1;
  max-width: 7.6em;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 1.875vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

body.single-product div.product .summary .woocommerce-product-details__short-description {
  order: 2;
  margin: clamp(18px, 1.5625vw, 30px) 0 0;
}

body.single-product div.product .summary .yilan-product-spec {
  margin: 0 0 clamp(16px, 1.30208333vw, 25px);
  color: #6a7069;
  font-family: var(--sans);
  font-size: clamp(15px, 0.98958333vw, 19px);
  font-weight: 400;
  line-height: 1.4;
}

body.single-product div.product .summary .woocommerce-product-details__short-description > p:not(.yilan-product-spec) {
  margin: 0 0 clamp(18px, 1.45833333vw, 28px);
  padding-bottom: clamp(18px, 1.45833333vw, 28px);
  border-bottom: 1px solid #c8cec5;
  color: #6a7069;
  font-family: var(--sans);
  font-size: clamp(14px, 0.88541667vw, 17px);
  font-weight: 400;
  line-height: 1.75;
}

body.single-product div.product .summary .yilan-product-note {
  margin-top: 0;
  margin-bottom: clamp(18px, 1.5625vw, 30px);
  padding: clamp(14px, 0.9375vw, 18px) clamp(16px, 1.04166667vw, 20px);
  min-height: 0;
  border: 1px solid #d5d9d2;
  border-left: 4px solid var(--forest);
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(14px, 0.88541667vw, 17px);
  font-weight: 700;
  line-height: 1.6;
}

body.single-product div.product > .onsale,
body.single-product div.product .summary .onsale,
body.single-product div.product .woocommerce-product-gallery .onsale {
  display: none !important;
}

body.single-product div.product .summary .price {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 18px;
  margin: clamp(16px, 1.35416667vw, 26px) 0 clamp(14px, 1.04166667vw, 20px);
  color: var(--forest);
  font-family: var(--sans);
  font-size: clamp(26px, 1.77083333vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

body.single-product div.product .summary .price ins {
  order: 1;
  text-decoration: none;
}

body.single-product div.product .summary .price del {
  order: 2;
  margin: 0;
  color: #8a9088;
  font-size: clamp(15px, 0.9375vw, 18px);
  font-weight: 400;
}

body.single-product div.product .summary .stock.in-stock {
  display: none;
}

body.single-product div.product form.cart {
  display: contents;
}

/* Variable product: keep variation controls in summary flow (title → desc → variations → qty → price → buttons). */
body.single-product div.product form.variations_form.cart > table.variations {
  order: 3;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 clamp(12px, 0.9375vw, 18px);
  border: 0;
  border-collapse: collapse;
}

body.single-product div.product form.variations_form.cart > table.variations tr {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body.single-product div.product form.variations_form.cart > table.variations th,
body.single-product div.product form.variations_form.cart > table.variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  vertical-align: top;
}

body.single-product div.product form.variations_form.cart > table.variations th.label label {
  color: #6a7069;
  font-family: var(--sans);
  font-size: clamp(14px, 0.88541667vw, 17px);
  font-weight: 500;
  line-height: 1.4;
}

body.single-product div.product form.variations_form.cart > table.variations td.value select {
  width: 100%;
  min-height: clamp(44px, 2.5vw, 48px);
  padding: 0 12px;
  border: 1px solid #a8aea4;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.9375vw, 18px);
  font-weight: 400;
  line-height: 1.2;
}

body.single-product div.product form.variations_form.cart > table.variations td.value .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: #6a7069;
  font-size: clamp(13px, 0.83333333vw, 16px);
  text-decoration: underline;
}

body.single-product div.product form.variations_form.cart > .single_variation_wrap,
body.single-product div.product form.variations_form.cart .woocommerce-variation-add-to-cart {
  display: contents;
}

body.single-product div.product form.variations_form.cart .woocommerce-variation {
  order: 3;
  grid-column: 1 / -1;
}

body.single-product div.product form.variations_form.cart .woocommerce-variation:empty {
  display: none;
}

body.single-product div.product form.cart .quantity {
  order: 3;
  grid-column: 1 / -1;
  display: inline-grid;
  grid-template-columns: 44px minmax(48px, 1fr) 44px;
  align-items: center;
  float: none;
  width: min(248px, 100%);
  max-width: 100%;
  margin: 0 0 clamp(12px, 0.9375vw, 18px);
  border: 1px solid #a8aea4;
  background: transparent;
}

body.single-product div.product form.cart .quantity .yilan-qty-btn {
  display: grid;
  width: 44px;
  height: clamp(44px, 2.5vw, 48px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6a7069;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}

body.single-product div.product form.cart .quantity .yilan-qty-plus {
  color: var(--forest);
}

body.single-product div.product form.cart .quantity .qty {
  width: 100%;
  min-height: clamp(44px, 2.5vw, 48px);
  height: clamp(44px, 2.5vw, 48px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.04166667vw, 20px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

body.single-product div.product form.cart .quantity .qty::-webkit-outer-spin-button,
body.single-product div.product form.cart .quantity .qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.single-product div.product form.cart .single_add_to_cart_button.button,
body.single-product div.product form.cart .yilan-buy-now.button {
  order: 5;
  grid-column: auto;
  float: none;
  width: 100%;
  min-height: clamp(44px, 2.60416667vw, 50px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--white);
  font-family: var(--sans);
  font-size: clamp(15px, 0.9375vw, 18px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

body.single-product div.product form.cart .single_add_to_cart_button.button {
  background: var(--soft-green);
}

body.single-product div.product form.cart .yilan-buy-now.button {
  background: #008549;
}

body.single-product div.product .summary .product_meta {
  order: 6;
  display: none;
}

body.single-product div.product .summary .yilan-alcohol-notice {
  order: 5;
  display: none;
}

body.single-product div.product .woocommerce-product-gallery__image img:not(.zoomImg) {
  /* Plate color lives on .flex-viewport; avoid painting a solid fill over the bitmap. */
  background: transparent;
  object-fit: contain;
  object-position: center center;
}

body.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  clear: both;
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  /* Top padding sits on page cream; white starts at the tab baseline / panel. */
  padding-top: clamp(36px, 3.125vw, 60px);
  background: transparent;
}

/* Beat WC `.woocommerce div.product .woocommerce-tabs ul.tabs { margin: 0 0 1.618em }`
   which left a cream strip (#f4f6ee) above the Tabs-panel. */
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(200px, 19.0625vw, 366px);
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none;
  text-align: center;
  background: transparent;
}

/* Kill WooCommerce decorative ::before; draw shared gray baseline with ::after. */
body.single-product .woocommerce-tabs ul.tabs::before {
  display: none !important;
  content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs::after {
  /* REF @1920: gray baseline ≈ 310–1609 (1300px), not full viewport. */
  position: absolute;
  z-index: 0;
  right: auto;
  bottom: 0;
  left: 50%;
  display: block !important;
  width: min(1300px, 67.70833333vw);
  height: 1px;
  background: #c8cec5;
  transform: translateX(-50%);
  content: "" !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  position: relative;
  z-index: 1;
  float: none !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0 0 14px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 1.04166667vw, 20px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ink);
}

body.single-product .woocommerce-tabs ul.tabs li.active::before {
  display: none !important;
  box-shadow: none !important;
  content: none !important;
}

/* REF: green bar sits on the gray baseline and extends beyond the label (~±48 @1920). */
body.single-product .woocommerce-tabs ul.tabs li.active::after {
  position: absolute;
  z-index: 2;
  top: auto;
  right: -2.5vw;
  bottom: 0;
  left: -2.5vw;
  width: auto;
  height: 5px;
  border: 0;
  background: var(--forest);
  box-shadow: none !important;
  content: "";
}

@media (max-width: 720px) {
  body.single-product .woocommerce-tabs ul.tabs li.active::after {
    right: -12px;
    left: -12px;
  }
}

body.single-product.woocommerce div.product .woocommerce-tabs .panel {
  width: 100%;
  max-width: none;
  float: none;
  margin: 0 !important;
  /* Bottom padding = white band above related (REF ~white then cream related). */
  padding: clamp(36px, 3.64583333vw, 70px) 0 clamp(56px, 5.20833333vw, 100px);
  border: 0;
  /* REF: area below tabs is white full-bleed; shipping artwork brings its own cream. */
  background: var(--white);
  text-align: center;
}

body.single-product .woocommerce-tabs .panel > figure,
body.single-product .woocommerce-tabs .panel > figure img {
  /* REF shipping guide panel ≈ 810 @1920 */
  display: block;
  width: min(810px, 42.1875vw);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  height: auto;
}

body.single-product .woocommerce-tabs .panel > h2 {
  display: none;
}

/* 商品描述：段落區塊置中於 section */
body.single-product .woocommerce-tabs .panel > p {
  width: min(810px, 42.1875vw);
  max-width: calc(100% - 48px);
  margin: 0 auto;
  color: #555c54;
  font-family: var(--sans);
  font-size: clamp(15px, 0.9375vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}

body.single-product .related.products {
  grid-column: 1 / -1;
  clear: both;
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  /* REF @1920 related cream ≈ 488px: pt 40 / title / gap 40 / cards / pb ≈ 30. */
  padding: clamp(28px, 2.08333333vw, 40px) 0 clamp(18px, 1.25vw, 24px);
  background: var(--cream);
}

body.single-product .related.products > h2 {
  margin: 0 0 clamp(26px, 1.875vw, 36px);
  color: var(--ink);
  font-family: var(--serif);
  /* REF title ink ≈ 20px @1920 */
  font-size: clamp(18px, 1.14583333vw, 22px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
}

body.single-product .related.products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1118px, 58.22916667vw);
  margin: 0 auto;
  padding: 0;
  gap: clamp(16px, 1.19791667vw, 23px);
  list-style: none;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
  display: none;
}

body.woocommerce.single-product .related.products ul.products li.product,
body.woocommerce-page.single-product .related.products ul.products li.product {
  position: relative;
  float: none;
  width: 100%;
  margin: 0;
  text-align: center;
}

body.single-product .related.products ul.products li.product a img,
body.single-product .related.products ul.products li.product img {
  aspect-ratio: 1 / 1;
  width: 100%;
  /* REF: image → title ≈ 25px */
  margin: 0 0 clamp(18px, 1.30208333vw, 25px);
  border-radius: 0;
  background: #dddddd;
  object-fit: contain;
}

body.single-product .related.products ul.products li.product .onsale {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  left: auto;
  display: grid;
  width: min(44px, 2.29166667vw);
  min-height: min(44px, 2.29166667vw);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8a05c;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(11px, 0.67708333vw, 13px);
  font-weight: 500;
  line-height: 1;
  place-items: center;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 clamp(6px, 0.41666667vw, 8px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(14px, 0.9375vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.single-product .related.products ul.products li.product .product-loop-excerpt {
  margin: 0 0 clamp(6px, 0.41666667vw, 8px);
  overflow: hidden;
  color: #6a7069;
  font-family: var(--sans);
  font-size: clamp(12px, 0.72916667vw, 14px);
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.single-product .related.products ul.products li.product .price {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(14px, 0.88541667vw, 17px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

body.single-product .related.products ul.products li.product .price del {
  display: none;
}

body.single-product .related.products ul.products li.product .price ins {
  text-decoration: none;
}

body.single-product .related.products ul.products li.product .button {
  display: none;
}

/*
 * Contact page — REF `5.聯絡我們-1.png` @1920 (source 10667×7875 → 1920×1417).
 * Card: x649–1269 (w621), y218–1004 (h787); side margins ≈649 (33.8%).
 * Do not use --page-gutter to stretch the card on narrow desktop.
 */
.contact-page {
  position: relative;
  min-height: 0;
  padding:
    calc(var(--header-height) + min(98px, 5.10416667vw))
    min(24px, 2vw)
    /* REF cream below card → footer ≈ 75–79px @1920. */
    min(79px, 4.11458333vw);
  background: #f4f5ee;
  isolation: isolate;
}

.contact-page__wave {
  position: absolute;
  image-rendering: auto;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  /* REF: 资源68 + solid top @1920 → 1920×487 (curve bottoms match mockup). */
  height: min(487px, 25.36458333vw);
  max-width: none;
  pointer-events: none;
  user-select: none;
  object-fit: fill;
  object-position: top center;
}

.contact-page::before {
  display: none;
}

.contact-stage {
  display: flex;
  justify-content: center;
}

.contact-form-card {
  position: relative;
  /* REF @1920: card x649–1269 ≈ w621; side pad ≈82 (content ≈456). */
  width: min(621px, 32.34375vw);
  padding:
    min(34px, 1.77083333vw)
    min(82px, 4.27083333vw)
    min(32px, 1.66666667vw);
  border: 1px solid #d0d5cc;
  border-radius: min(16px, 0.83333333vw);
  background: var(--white);
  box-shadow: 0 4px 10px rgba(40, 50, 40, 0.14);
}

.contact-form-card__title {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0 0 min(24px, 1.25vw);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 1.7vw, 30px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-align: center;
}

.contact-form-card__title-text {
  position: relative;
  z-index: 1;
}

.contact-form-card__dots {
  position: absolute;
  z-index: 0;
  /* Scale with title: REF cluster ≈ 124px under 24px title (5.17em). */
  top: 55%;
  left: 50%;
  width: 5.17em;
  height: auto;
  max-width: none;
  pointer-events: none;
  transform: translateX(calc(-10% + 0.35em));
}

.contact-form {
  display: grid;
  /* REF label→next-label ≈67px @1920: 11 + 5 + 32 + 16. */
  gap: min(16px, 0.83333333vw);
}

.form-field {
  position: relative;
  display: grid;
  gap: min(5px, 0.26041667vw);
}

.form-field label,
.form-captcha > label {
  padding-left: min(12px, 0.625vw);
  color: #6a6f68;
  font-size: var(--yilan-type-card-body);
  font-weight: 400;
  line-height: var(--yilan-lh-card-body);
}

.form-field label span,
.form-captcha label span {
  margin-left: 1px;
  color: #e11d2e;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-captcha input {
  width: 100%;
  min-height: var(--yilan-home-cta-height);
  padding: min(4px, 0.20833333vw) min(10px, 0.52083333vw);
  border: 1px solid #c9cec6;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--yilan-type-body);
  font-weight: 400;
  line-height: var(--yilan-lh-body);
}

.form-field textarea {
  width: 100%;
  min-height: 80px;
  height: 80px;
  padding: min(4px, 0.20833333vw) min(10px, 0.52083333vw);
  border: 1px solid #c9cec6;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--yilan-type-body);
  font-weight: 400;
  line-height: var(--yilan-lh-body);
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.form-captcha input::placeholder {
  color: #c0c5bc;
  opacity: 1;
  font-weight: 400;
}

.form-field select {
  appearance: none;
  color: var(--ink);
  font-weight: 400;
  /* Thin chevron like REF (not filled triangle). */
  background-image:
    linear-gradient(45deg, transparent 50%, #8a9088 50%),
    linear-gradient(135deg, #8a9088 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 1px),
    calc(100% - 10px) calc(50% - 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.form-field select:required:invalid {
  color: #b0b6ad;
}

.form-field select option {
  color: var(--ink);
}

.form-field--route {
  gap: 0;
}

.form-field--route label {
  margin-bottom: min(4px, 0.20833333vw);
}

.form-field--route.is-open select {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.contact-route-menu {
  display: none;
  margin: 0;
  padding: min(4px, 0.20833333vw) min(10px, 0.52083333vw) min(6px, 0.3125vw);
  list-style: none;
  border: 1px solid #c9cec6;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  background: var(--white);
  color: #afafaf;
  font-size: var(--yilan-type-card-body);
  font-weight: 400;
  line-height: var(--yilan-lh-card-body);
}

.form-field--route.is-open .contact-route-menu {
  display: block;
}

.contact-route-menu li + li {
  margin-top: 0;
}

.contact-route-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-route-menu button:hover,
.contact-route-menu button:focus-visible {
  color: var(--forest-deep);
}

.form-field--honeypot {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

.contact-form__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(12px, 0.625vw, 16px);
  margin-top: 0;
}

.form-captcha {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: clamp(8px, 0.5vw, 12px);
  justify-items: start;
}

.form-captcha__row {
  display: grid;
  grid-template-columns: 135px auto;
  gap: min(8px, 0.41666667vw);
  width: auto;
  max-width: 100%;
}

.form-captcha__row input {
  width: 135px;
  max-width: 100%;
}

.form-captcha__refresh {
  box-sizing: border-box;
  width: 55px;
  min-width: 55px;
  min-height: var(--yilan-home-cta-height);
  padding: 0;
  border: 1px solid #c9cec6;
  border-radius: 3px;
  background: #ecefeb;
  color: #4f554d;
  font-size: var(--yilan-type-card-body);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.form-captcha__refresh:hover,
.form-captcha__refresh:focus-visible {
  background: #e2e7e0;
}

.form-captcha__challenge {
  display: grid;
  /* REF 挑戰圖／輸入欄寬約 135px。 */
  width: 135px;
  min-height: 56px;
  border: 1px solid #c9cec6;
  background: #fbfff8;
  place-items: center;
  overflow: hidden;
}

.form-captcha__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 135px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  margin: min(2px, 0.10416667vw) 0 min(4px, 0.20833333vw);
  color: #8a9088;
  font-size: var(--yilan-type-card-body);
  line-height: var(--yilan-lh-card-body);
  gap: 5px;
}

.privacy-consent input {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.privacy-consent a {
  margin-left: 2px;
  color: var(--forest-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Homepage artboard parity: 1.首頁-第2頁.png is 2560px wide. */
@media (min-width: 1181px) {
  /*
   * Header chrome only (does not change --page-gutter / page sections):
   * REF @2560 → left 300 (11.72vw), content 2000 (78.125vw), right 260 (10.16vw).
   */
  .site-header__inner {
    grid-template-columns: minmax(0, min(18.1640625vw, 465px)) 1fr auto;
    width: min(78.125vw, 2000px);
    margin-left: min(11.71875vw, 300px);
    margin-right: 0;
    gap: min(2.03125vw, 52px);
  }

  .site-brand {
    width: min(18.1640625vw, 465px);
  }

  .site-nav__list {
    /* Artboard: 70px @2560 — keeps nav group right-edge aligned with REF */
    gap: min(2.734375vw, 70px);
  }

  .site-nav a {
    font-size: min(0.865234375vw, 22.15px);
    font-weight: 400;
    letter-spacing: 0.105em;
  }

  .site-actions {
    gap: min(0.83333333vw, 20px);
  }

  .site-action {
    width: 24px;
    height: 24px;
  }

  .site-action svg,
  .site-action__icon--account {
    width: 24px;
    height: 24px;
  }

  .home-hero__crop {
    max-width: none;
    /* Keep float motion from base rules (parity layout coords only). */
  }

  .home-hero__crop--seed,
  .home-hero__crop--seed-alt {
    animation: crop-float-seed 6.5s ease-in-out infinite;
  }

  .home-hero__crop--onion,
  .home-hero__crop--kumquat,
  .home-hero__crop--rice {
    animation: crop-float 6.5s ease-in-out infinite;
  }

  .home-hero__crop--bee {
    animation: bee-float 5s ease-in-out infinite;
  }

  .home-hero__copy {
    top: min(7.4609375vw, 191px);
    right: min(21.587828125vw, 552.6484px);
    gap: min(0.703125vw, 18px);
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.45),
      1px 2px 3px rgba(15, 20, 5, 0.4),
      2px 3px 12px rgba(20, 25, 8, 0.4),
      0 0 16px rgba(0, 0, 0, 0.24);
  }

  .home-hero__lead,
  .home-hero__sub {
    max-width: 1em;
    margin: 0;
    font-size: min(0.859375vw, 22px);
    letter-spacing: 0.101em;
    line-height: 1;
  }

  .home-hero__copy h1 {
    gap: min(0.78125vw, 20px);
    margin-left: min(1.875vw, 48px);
    font-size: min(3.125vw, 80px);
    letter-spacing: 0.1em;
    line-height: 1;
  }

  .home-hero__crop--seed {
    bottom: min(11.796875vw, 302px);
    left: min(7.578125vw, 194px);
    width: min(10.546875vw, 270px);
    animation-delay: 0.2s;
  }

  .home-hero__crop--seed-alt {
    bottom: min(23.75vw, 608px);
    left: min(18.75vw, 480px);
    width: min(4.375vw, 112px);
    animation-delay: 0.5s;
  }

  .home-hero__crop--onion {
    bottom: min(1.25vw, 32px);
    left: min(18.1640625vw, 465px);
    width: min(15.15625vw, 388px);
    animation-delay: 0.8s;
  }

  .home-hero__crop--kumquat {
    bottom: min(1.7578125vw, 45px);
    left: min(45.234375vw, 1158px);
    width: min(17.0703125vw, 437px);
    animation-delay: 1.4s;
  }

  .home-hero__crop--rice {
    right: min(8.671875vw, 222px);
    bottom: min(1.875vw, 48px);
    width: min(16.5625vw, 424px);
    animation-delay: 1s;
  }

  .home-hero__crop--bee {
    right: auto;
    bottom: min(20.859375vw, 534px);
    left: min(83.5546875vw, 2139px);
    width: min(9.4921875vw, 243px);
  }

  body.home .section-title {
    margin-bottom: min(5.859375vw, 150px);
    font-size: min(1.2109375vw, 31px);
  }

  body.home .section-title::after {
    left: calc(100% + min(0.625vw, 16px));
    width: min(3.515625vw, 90px);
    height: min(1.640625vw, 42px);
  }

  body.home .section-title--light {
    margin-bottom: min(5.078125vw, 130px);
  }

  body.home .section-title--light::after {
    top: calc(100% + min(0.390625vw, 10px));
    left: 50%;
    width: min(4.296875vw, 110px);
  }

  .home-products {
    height: min(56.640625vw, 1450px);
    min-height: 0;
    padding: min(7.8125vw, 200px) 0 0;
  }

  .home-products__grid {
    width: min(65.625vw, 1680px);
    gap: min(2.34375vw, 60px);
  }

  body.home .home-products > .section-title {
    margin-bottom: min(4.296875vw, 110px);
    transform: translateY(min(1.1328125vw, 29px));
  }

  .home-product__image {
    min-height: min(21.875vw, 560px);
  }

  .home-product__image img {
    width: auto;
    max-width: none;
    height: min(21.484375vw, 550px);
    max-height: none;
  }

  .home-product:nth-child(1) .home-product__image img {
    transform: translate(min(0.29296875vw, 7.5px), min(0.1171875vw, 3px));
  }

  .home-product:nth-child(2) .home-product__image img {
    transform: translate(max(-0.29296875vw, -7.5px), min(0.1171875vw, 3px));
  }

  .home-product:nth-child(3) .home-product__image img {
    transform: translate(max(-0.29296875vw, -7.5px), min(0.078125vw, 2px));
  }

  .home-product h3 {
    margin-top: min(1.8359375vw, 47px);
    font-size: min(1.19140625vw, 30.5px);
  }

  .home-products__wave {
    height: min(16.5234375vw, 423px);
  }

  .home-news {
    /* REF: card→more 104px + more 40px + more→fields 200px; live cards sit ~60px higher than full artboard map */
    height: min(59.765625vw, 1530px);
    padding: min(7.421875vw, 190px) 0 0;
  }

  .home-news__grid {
    width: min(73.59375vw, 1884px);
    gap: min(1.40625vw, 36px);
    transform: translateY(min(0.546875vw, 14px));
  }

  body.home .home-news > .section-title {
    margin-bottom: min(3.515625vw, 90px);
    transform: translateY(min(0.8984375vw, 23px));
  }

  .news-card__image {
    height: min(17.6953125vw, 453px);
    aspect-ratio: auto;
    flex: 0 0 auto;
  }

  .news-card {
    height: min(29.296875vw, 750px);
  }

  .news-card time {
    font-size: var(--yilan-type-meta);
    font-weight: 400;
  }

  .news-card h3 {
    margin: min(0.9375vw, 24px) 0 min(0.1171875vw, 3px);
    font-size: var(--yilan-type-card-title);
  }

  .news-card p {
    margin: 0;
    font-size: var(--yilan-type-card-body);
    line-height: var(--yilan-lh-card-body);
  }

  .news-card__category {
    top: min(1.2109375vw, 31px);
    left: 0;
    width: min(5.078125vw, 130px);
    height: min(1.171875vw, 30px);
    min-height: 0;
    padding: 0;
    font-size: min(0.78125vw, 20px);
    justify-content: center;
  }

  .news-card__body {
    min-height: 0;
    flex: 0 0 min(11.6015625vw, 297px);
    /* REF 2560: body pad ~38/42/37 */
    padding: min(1.484375vw, 38px) min(1.640625vw, 42px) min(1.4453125vw, 37px);
  }

  .news-card__body > span {
    font-size: min(0.78125vw, 20px);
    line-height: 1.2;
  }

  .home-news > .home-news__more {
    position: absolute;
    top: auto;
    /* REF 2560: 200px solid green below button before fields */
    bottom: min(7.8125vw, 200px);
    left: min(46.09375vw, 1180px);
    width: var(--yilan-home-cta-width);
    min-width: 0;
    height: var(--yilan-home-cta-height);
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .home-fields {
    height: min(37.5vw, 960px);
  }

  .home-fields__image {
    height: 136%;
    object-position: center top;
  }

  .home-fields__bee {
    /* REF 2560: ~192×191, right 700, overhang 67 into farmers */
    right: min(27.34375vw, 700px);
    bottom: max(-2.6171875vw, -67px);
    width: min(7.5vw, 192px);
  }

  .home-farmers {
    /* REF cream band through farmer image; wave+dots live on partners */
    height: min(calc(40.8984375vw + 50px), 1097px);
    padding: min(6.015625vw, 154px) 0 0;
  }

  body.home .home-farmers .section-title {
    margin-bottom: min(5.3125vw, 136px);
  }

  .home-farmers__content {
    grid-template-columns: min(21.09375vw, 540px) min(42.578125vw, 1090px);
    width: min(75.1953125vw, 1925px);
    margin-right: 0;
    margin-left: min(13.1640625vw, 337px);
    gap: min(11.5234375vw, 295px);
  }

  .home-farmers__copy {
    position: relative;
    align-self: start;
    margin-top: min(4.1796875vw, 107px);
  }

  .home-farmers > .section-title {
    transform: translateY(min(1.1328125vw, 29px));
  }

  .home-farmers__copy h3 {
    font-size: min(1.171875vw, 30px);
    letter-spacing: min(0.0703125vw, 1.8px);
    line-height: min(2.34375vw, 60px);
    gap: 0;
  }

  .home-farmers__copy h3 span {
    width: min(19.21875vw, 492px);
    padding-left: min(0.390625vw, 10px);
  }

  .home-farmers__copy p {
    width: min(25vw, 640px);
    max-width: none;
    font-size: var(--yilan-type-body);
    line-height: var(--yilan-lh-body);
  }

  .home-farmers__more {
    /* REF 2560: ~199×39 @ left≈338, top≈399 below heading */
    position: absolute;
    top: min(15.5859375vw, 399px);
    left: 0;
    width: var(--yilan-home-cta-width);
    height: var(--yilan-home-cta-height);
  }

  .home-farmers__image {
    position: relative;
    z-index: 2;
    box-shadow: none;
  }

  /* Left dots only — sit higher over farmer green plate (REF red box) */
  .home-farmers__dots-left {
    display: block;
    position: absolute;
    z-index: 3;
    left: max(-16.0546875vw, -411px);
    bottom: min(3.125vw, 80px);
    width: min(21.875vw, 560px);
    height: auto;
    pointer-events: none;
  }

  .home-partners {
    position: relative;
    z-index: 1;
    min-height: 0;
    height: min(56.25vw, 1440px);
    margin-top: 0;
    padding: min(24.21875vw, 620px) 0 0;
    background: var(--white) url("../images/home-farmers-wave.webp") top center / 100% auto no-repeat;
    justify-content: flex-start;
  }

  .home-partners h2 {
    margin-bottom: min(4.2578125vw, 109px);
    font-size: clamp(26px, 1.7vw, 30px);
  }

  .home-partners__grid {
    grid-template-columns: repeat(4, min(15.9375vw, 408px));
    width: min(73.125vw, 1872px);
    margin-right: 0;
    margin-left: min(13.3984375vw, 343px);
    gap: min(2.578125vw, 66px) min(3.125vw, 80px);
  }

  .home-partners__grid a {
    min-height: min(4.453125vw, 114px);
  }

  .home-partners__grid img {
    max-height: min(4.453125vw, 114px);
  }

  .home-services {
    /* Grow with accordion open state — fixed height caused detail to hit footer */
    height: auto;
    min-height: min(125vw, 3200px);
    padding: min(4.6875vw, 120px) 0 min(10vw, 256px);
    background:
      url("../images/service-bottom.webp") center min(90.3515625vw, 2313px) / 100% auto no-repeat,
      url("../images/service-bg.webp") top center / 100% auto no-repeat,
      linear-gradient(var(--cream), var(--cream)) center min(56.25vw, 1440px) / 100% min(51.2890625vw, 1313px) no-repeat,
      var(--white);
  }

  body.home .home-services .section-title {
    margin-bottom: min(4.296875vw, 110px);
    transform: translateY(min(0.8984375vw, 23px));
  }

  .service-list {
    width: min(73.4375vw, 1880px);
    margin-right: 0;
    margin-left: min(12.5vw, 320px);
    gap: min(1.953125vw, 50px);
  }

  .service-item summary {
    grid-template-columns: 48% 52%;
    height: min(17.5vw, 448px);
    min-height: 0;
    border-radius: min(1.09375vw, 28px);
  }

  .service-item__summary {
    /* right pad clears toggle: right(87)+size(100)+gap(~97) ≈284 @2560 */
    padding: min(4.21875vw, 108px) min(11.09375vw, 284px) min(2.1484375vw, 55px) min(3.046875vw, 78px);
    justify-content: flex-start;
  }

  .service-item__summary h3 {
    margin-bottom: min(1.09375vw, 28px);
    font-size: min(1.171875vw, 30px);
    transform: translate(min(0.15625vw, 4px), max(-0.234375vw, -6px));
  }

  .service-item__summary h3 span {
    margin-right: min(1.875vw, 48px);
  }

  .service-item__summary p {
    font-size: var(--yilan-type-body);
    line-height: var(--yilan-lh-body);
  }

  .service-item__detail {
    margin: min(1.953125vw, 50px) 0 min(1.5625vw, 40px);
    /* REF: text ≈7% from card left; CTA right ≈45–80 from card edge */
    padding: 0 max(220px, min(11vw, 280px)) 0 min(5.3515625vw, 137px);
  }

  .service-item__detail::after {
    right: min(8.5vw, 220px);
    width: min(14vw, 360px);
  }

  .service-item__detail-image {
    width: min(48.4375vw, 620px);
    margin-bottom: min(1.953125vw, 50px);
    border-radius: min(0.9375vw, 24px);
  }

  .service-item__detail > p {
    margin-bottom: min(2.8125vw, 72px);
    font-size: var(--yilan-type-body);
    line-height: var(--yilan-lh-detail-body);
  }

  .service-item__detail .pill-link {
    /* REF CTA ≈192×39 @2560; text↔circle gap ≈1 character */
    right: min(3.125vw, 80px);
    bottom: 0;
    gap: max(14px, min(0.78125vw, 20px));
    min-height: max(36px, min(1.5234375vw, 39px));
    padding: min(0.078125vw, 2px) min(0.1171875vw, 3px) min(0.078125vw, 2px) min(0.9765625vw, 25px);
    font-size: max(15px, min(0.78125vw, 20px));
  }

  .service-item__detail .pill-link span {
    width: max(32px, min(1.3671875vw, 35px));
    height: max(32px, min(1.3671875vw, 35px));
  }

  .service-item__toggle {
    /* REF 2560: ~100×100 circle, right≈87 from card edge, vertically centered */
    top: 50%;
    right: min(3.3984375vw, 87px);
    width: min(3.90625vw, 100px);
    height: min(3.90625vw, 100px);
    border-width: min(0.1171875vw, 3px);
    transform: translateY(-50%);
  }

  .service-item__toggle::before {
    width: min(1.09375vw, 28px);
    height: min(1.09375vw, 28px);
    border-right-width: min(0.1171875vw, 3px);
    border-bottom-width: min(0.1171875vw, 3px);
  }

  .home-services__dots {
    position: static;
    display: block;
    top: auto;
    left: auto;
    /* Center under last service image (48% of service-list) @2560 */
    width: min(18.7890625vw, 481px);
    height: auto;
    margin: min(2.34375vw, 60px) 0 0
      calc(
        min(12.5vw, 320px) +
          (min(73.4375vw, 1880px) * 0.48 - min(18.7890625vw, 481px)) / 2
      );
  }

  .home-services__contact {
    position: static;
    display: block;
    top: auto;
    left: auto;
    width: var(--yilan-home-cta-width);
    height: var(--yilan-home-cta-height);
    margin: min(1.953125vw, 50px) auto 0;
  }

  .site-footer {
    height: min(17.34375vw, 444px);
    background: #00913a;
  }

  .site-footer__inner {
    display: block;
    width: min(76.5625vw, 1960px);
    min-height: min(17.34375vw, 444px);
    margin-right: 0;
    margin-left: min(11.71875vw, 300px);
    padding: 0;
  }

  .site-footer__brand {
    position: absolute;
    top: min(1.2890625vw, 33px);
    left: 0;
    display: flex;
    align-items: center;
    gap: min(0.9765625vw, 25px);
    height: min(5.9375vw, 152px);
  }

  .site-footer__brand-mark {
    position: relative;
    display: block;
    overflow: hidden;
    width: min(5.9375vw, 152px);
    height: min(5.9375vw, 152px);
    flex: 0 0 auto;
  }

  .site-footer__brand-mark img {
    position: absolute;
    top: 0;
    left: max(-0.927734375vw, -23.75px);
    width: min(30.927734375vw, 791.75px);
    max-width: none;
    height: auto;
    filter: none;
  }

  .site-footer__brand-name {
    color: #111;
    font-family: var(--sans);
    font-size: min(2.171875vw, 55.6px);
    font-weight: 700;
    letter-spacing: min(0.078125vw, 2px);
    line-height: 1;
    -webkit-text-stroke: 0;
    /* ~1.5px outward white outline @2560 (was 3px, too heavy) */
    text-shadow:
      -1.5px -1.5px 0 #fff,
      1.5px -1.5px 0 #fff,
      -1.5px 1.5px 0 #fff,
      1.5px 1.5px 0 #fff,
      -1.5px 0 0 #fff,
      1.5px 0 0 #fff,
      0 -1.5px 0 #fff,
      0 1.5px 0 #fff;
    transform: translateY(max(-0.1171875vw, -3px));
    white-space: nowrap;
  }

  .site-footer__block {
    position: absolute;
    top: min(2.96875vw, 76px);
    width: auto;
    color: #f2f0ec;
    font-size: min(0.7421875vw, 19px);
    font-weight: 300;
    line-height: min(1.328125vw, 34px);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }

  .site-footer__block:nth-of-type(2) {
    left: min(22.96875vw, 588px);
  }

  .site-footer__block:nth-of-type(3) {
    left: min(43.3203125vw, 1109px);
    font-size: min(0.7421875vw, 19px);
  }

  .site-footer__block p {
    margin: 0;
    font-weight: 300;
  }

  .site-footer__block strong {
    margin-top: min(0.9375vw, 24px);
    font-weight: 700;
  }

  .site-footer__block strong:first-child {
    margin-top: 0;
  }

  .site-footer__social {
    position: absolute;
    top: min(0.234375vw, 6px);
    left: min(25.5078125vw, 653px);
    gap: min(1.2890625vw, 33px);
    margin: 0;
  }

  .site-footer__social a {
    /* REF ≈64–65 @2560; SVG already includes white circle */
    width: min(2.5390625vw, 65px);
    height: min(2.5390625vw, 65px);
    background: transparent;
  }

  .site-footer__social img {
    width: 100%;
    height: 100%;
  }

  /* Specificity must beat base `.site-footer__block p.site-footer__policies`.
   * REF: policies share the same row as last hours line + copyright (midY ≈355–357 @2560).
   * Block top is 76px; policies top 267 → footer y ≈343 (aligned with copyright). */
  .site-footer__block p.site-footer__policies {
    position: absolute;
    top: min(10.4296875vw, 267px);
    left: max(-0.078125vw, -2px);
    display: inline-flex;
    align-items: baseline;
    gap: min(0.4296875vw, 11px);
    width: fit-content;
    margin: 0 !important;
    padding-bottom: max(0.078125vw, 2px);
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: min(0.78125vw, 20px);
    font-weight: 300;
    line-height: 1.2;
    text-decoration: none;
  }

  .site-footer__policies a,
  .site-footer__policies span {
    color: #fff;
    font-size: inherit;
    font-weight: 300;
    text-decoration: none;
  }

  .site-footer__block a {
    font-weight: 300;
    text-decoration: none;
  }

  .site-footer__block a.site-footer__value,
  .site-footer__value {
    font-weight: 300;
  }

  .site-footer__copyright {
    right: min(1.3671875vw, 35px);
    bottom: min(2.8515625vw, 73px);
    font-size: min(0.60546875vw, 15.5px);
    font-weight: 300;
  }
}

/* Match home CTA pill footprint (service-contact / farmer-more / news-more). */
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: end;
  width: var(--yilan-home-cta-width);
  height: var(--yilan-home-cta-height);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.form-submit__art {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.form-submit:hover {
  filter: brightness(0.92);
}

.form-notice {
  margin: 0 0 28px;
  padding: 13px 17px;
  border-left: 4px solid var(--forest);
  background: #eef8f1;
  font-size: var(--yilan-type-body);
  line-height: var(--yilan-lh-body);
}

.form-notice--error {
  border-color: #b32d2e;
  background: #fff0f0;
}

.form-notice--warning {
  border-color: #bd7b00;
  background: #fff8e5;
}

.yilan-alcohol-notice {
  margin: 24px 0;
  padding: 24px;
  border: 2px solid #b32d2e;
  background: #fff7f6;
}

.yilan-alcohol-notice strong {
  color: #b32d2e;
  font-size: 1.2em;
}

@media (max-width: 1180px) {
  :root {
    --header-height: 84px;
  }

  .site-header {
    padding-inline: var(--page-gutter);
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
    max-width: 1560px;
    margin-left: 0;
    margin-right: 0;
  }

  .site-brand {
    width: 270px;
  }

  .news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-archive-layout,
  .news-archive-section > h1,
  .news-article-section > h1,
  .news-article-layout,
  .shop-archive-layout,
  .shop-archive-section > h1 {
    grid-template-columns: 1fr;
  }

  .news-filter,
  .shop-filter {
    order: -1;
  }

  .shop-archive-section {
    min-height: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    gap: 12px;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 28px;
    height: 2px;
    background: currentColor;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .nav-toggle__bars::before { top: -8px; }
  .nav-toggle__bars::after { top: 8px; }

  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    padding: 24px;
    background: var(--forest);
    box-shadow: 0 14px 30px rgba(0, 53, 29, 0.22);
    justify-self: stretch;
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px;
    font-size: 17px;
  }

  .home-hero__copy {
    right: 12%;
  }

  .service-item summary {
    min-height: 270px;
  }

  .service-item__summary {
    padding: 45px 90px 45px 45px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .home-news {
    padding-bottom: clamp(72px, 12vw, 140px);
  }

  .news-card__body {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 20px;
    --header-height: 74px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  body {
    font-size: 16px;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: clamp(4px, 1.5vw, 10px);
  }

  .site-brand {
    width: auto;
    max-width: min(42vw, 210px);
    min-width: 0;
  }

  .nav-toggle__label {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
  }

  .nav-toggle,
  .site-action {
    width: clamp(40px, 12.3vw, 48px);
    min-width: clamp(40px, 12.3vw, 48px);
    min-height: 44px;
  }

  .nav-toggle {
    justify-content: center;
    padding: 10px;
  }

  .site-action svg,
  .site-action__icon--account {
    width: clamp(24px, 7.2vw, 28px);
    height: clamp(24px, 7.2vw, 28px);
  }

  .site-actions {
    gap: clamp(2px, 1vw, 7px);
    flex-shrink: 0;
  }

  .site-nav {
    right: 0;
    left: 0;
    width: 100%;
    padding: 24px var(--page-gutter);
    border-radius: 0;
  }

  /* Scaled hit area: badge tracks icon top-right inside the button */
  .site-action--cart .site-action__count {
    top: clamp(5px, 1.8vw, 7px);
    right: clamp(5px, 2.3vw, 9px);
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 9px;
  }

  body.single-product #primary {
    width: min(100% - 40px, 1310px);
    margin-right: auto;
    margin-left: auto;
    padding-top: calc(var(--header-height) + 55px);
  }

  body.single-product div.product {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary {
    margin-bottom: 0;
  }

  body.single-product div.product .woocommerce-product-gallery {
    min-height: 0;
    padding-left: 0;
  }

  body.single-product div.product .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
    height: auto !important;
  }

  body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
  body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
  body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image > a,
  body.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img:not(.zoomImg) {
    height: auto !important;
  }

  body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 10px;
  }

  body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    width: auto;
    height: auto;
  }

  body.single-product div.product form.cart .quantity {
    width: min(248px, 100%);
  }

  body.single-product div.product form.cart .quantity label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.single-product div.product .summary {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 12px;
  }

  body.single-product div.product form.cart .single_add_to_cart_button.button,
  body.single-product div.product form.cart .yilan-buy-now.button {
    min-height: 50px;
    padding: 12px 8px;
    line-height: 1.2;
  }

  body.single-product .woocommerce-tabs,
  body.single-product .related.products {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-top: 45px;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    gap: 40px;
  }

  body.single-product .woocommerce-tabs .panel > figure,
  body.single-product .woocommerce-tabs .panel > figure img {
    width: min(100% - 32px, 810px);
  }

  body.single-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 32px, 1118px);
  }

  body.woocommerce-account:not(.logged-in) .entry-content {
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 40px 22px;
  }

  body.woocommerce-account.logged-in:not(.yilan-dq-woo-chrome) .woocommerce {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .content-shell {
    padding-top: calc(var(--header-height) + 55px);
  }

  body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .entry-content {
    width: calc(100% - 40px);
    margin-right: auto;
    margin-left: auto;
  }

  body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wp-block-woocommerce-checkout {
    padding: 28px 20px 34px;
  }

  body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-components-sidebar-layout {
    display: block;
  }

  body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-checkout__main,
  body.woocommerce-checkout:not(.yilan-dq-woo-chrome) .wc-block-checkout__sidebar {
    width: 100%;
  }

  .site-action {
    height: 44px;
  }

  .home-news > .home-news__more {
    display: block;
    width: 200px;
    height: 41px;
    min-width: 0;
    min-height: 0;
    margin: 32px auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-news > .home-news__more img {
    display: block;
    width: 200px;
    height: 41px;
    max-width: 100%;
    object-fit: contain;
  }

  .home-news.section-shell {
    padding-bottom: 48px;
  }

  .home-news {
    padding-bottom: 32px;
  }

  .news-card__body {
    min-height: 0;
    padding-bottom: 20px;
  }

  .news-card__body > span {
    margin-top: 14px;
  }

  .home-hero {
    height: clamp(560px, 120vw, 760px);
  }

  .home-hero__background {
    object-position: 38% top;
  }

  .home-hero__copy {
    top: 120px;
    right: 10%;
    gap: 12px;
  }

  .home-hero__copy h1 {
    font-size: 42px;
  }

  .home-hero__lead,
  .home-hero__sub {
    display: none;
  }

  .home-hero__crop {
    width: 70px;
  }

  .home-hero__crop--seed { bottom: 12%; left: 3%; width: 78px; max-width: none; }
  .home-hero__crop--seed-alt { bottom: 34%; left: 14%; width: 50px; max-width: none; }
  .home-hero__crop--onion {
    bottom: 5%;
    left: 12%;
    width: 100px;
    max-width: none;
    transform: rotate(45deg);
    transform-origin: 55% 90%;
    animation: crop-float-onion-mobile 6.5s ease-in-out infinite;
    animation-delay: 0.8s;
  }
  .home-hero__crop--kumquat { bottom: -1%; left: 42%; width: 92px; max-width: none; }
  .home-hero__crop--rice { right: 8%; bottom: 0; width: 100px; max-width: none; }
  .home-hero__crop--bee { left: auto; right: 6%; bottom: 30%; width: 50px; max-width: none; }

  .section-title {
    margin-bottom: 55px;
  }

  .home-products__grid,
  .home-news__grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .home-products {
    padding-bottom: 180px;
  }

  .home-product__image {
    min-height: 300px;
  }

  .home-product__image img {
    max-height: 300px;
  }

  .home-news__grid {
    width: min(100%, 460px);
  }

  .home-fields {
    height: 360px;
  }

  .home-farmers__content {
    grid-template-columns: 1fr;
  }

  .home-farmers__image {
    box-shadow: none;
  }

  .home-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .home-partners,
  .home-services {
    min-height: 0;
  }

  .home-partners {
    padding-bottom: clamp(56px, 14vw, 80px);
  }

  .home-partners h2 {
    margin-top: clamp(56px, 14vw, 80px);
  }

  .service-item summary {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .service-item__image {
    aspect-ratio: 1.75 / 1;
    clip-path: none;
  }

  .service-item__summary {
    min-height: 220px;
    padding: 32px 76px 32px 28px;
  }

  .service-item__toggle {
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .service-item__detail {
    margin: 24px 0;
    padding: 0 28px 52px;
  }

  .service-item__detail::after {
    display: none;
  }

  .service-item__detail-image {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 16px;
  }

  .service-item__detail > p {
    font-size: 16px;
    line-height: 1.7;
  }

  .service-item__detail .pill-link {
    right: 28px;
    bottom: 0;
    gap: 12px;
    min-height: 40px;
    padding: 2px 3px 2px 20px;
    font-size: 15px;
  }

  .service-item__detail .pill-link span {
    width: 34px;
    height: 34px;
  }

  :root {
    --yilan-float-line: 56px;
    --yilan-float-right: 16px;
    --yilan-float-bottom: 20px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding-bottom: 90px;
    gap: 24px;
  }

  .site-footer__brand-mark {
    width: 72px;
    height: 72px;
  }

  .site-footer__brand-mark img {
    left: -11px;
    width: 375px;
  }

  .site-footer__brand-name {
    font-size: 28px;
  }

  .site-footer__copyright {
    right: auto;
    bottom: 30px;
    left: 0;
  }

  .about-anchor-nav {
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 12px 20px;
  }

  .about-anchor-nav a {
    width: auto;
    min-width: 108px;
    height: 34px;
    padding: 0 18px;
    font-size: 14px;
  }

  .about-introduction,
  .about-organization,
  .about-partners,
  .about-green-panel,
  .about-certificates {
    width: 100%;
    max-width: none;
  }

  .about-introduction {
    padding-top: 35px;
  }

  .about-green-panel--intro {
    padding-top: 55px;
    border-radius: 0 0 28px 28px;
  }

  .about-green-panel--leaders {
    padding-top: 55px;
    padding-bottom: clamp(110px, 30vw, 150px);
    border-radius: 0;
    overflow: visible;
  }

  .about-green-panel--leaders::before {
    border-radius: 0;
  }

  .about-green-panel--leaders::after {
    bottom: clamp(56px, 16vw, 96px);
    left: clamp(16px, 6vw, 56px);
    width: min(34vw, 168px);
    height: auto;
    aspect-ratio: 508 / 167.49;
  }

  .people-grid,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .about-partners {
    overflow-x: clip;
  }

  .about-partners-table {
    box-sizing: border-box;
    overflow-x: clip;
    max-width: 100%;
    padding-right: clamp(10px, 3vw, 16px);
    padding-left: clamp(10px, 3vw, 16px);
  }

  .about-partners-table .partner-table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    overflow-x: clip;
  }

  .partner-table {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    font-size: clamp(10px, 2.85vw, 12px);
    line-height: 1.45;
  }

  .partner-table th,
  .partner-table td {
    padding: clamp(6px, 1.8vw, 8px) clamp(2px, 0.8vw, 4px);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .partner-table thead th {
    padding-block: clamp(8px, 2.2vw, 11px);
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.35;
    white-space: normal;
  }

  .partner-table tbody th {
    white-space: normal;
    font-size: clamp(10px, 2.75vw, 11px);
  }

  .partner-table__name-suffix {
    display: block;
  }

  .partner-table tbody td:nth-child(2) {
    font-size: clamp(9.5px, 2.65vw, 11px);
    line-height: 1.4;
  }

  .partner-table tbody td:nth-child(3),
  .partner-table tbody td:nth-child(4) {
    font-size: clamp(9px, 2.5vw, 10.5px);
    letter-spacing: -0.02em;
    line-height: 1.35;
    word-break: break-all;
  }

  .about-diagram,
  .about-partners-intro,
  .about-partners-map,
  .about-partners-table,
  .about-partners,
  .about-certificates {
    padding: 70px 20px;
  }

  .about-diagram,
  .about-partners-intro,
  .about-partners-map,
  .about-partners-table,
  .about-certs-lead {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .about-diagram {
    padding-bottom: 0;
  }

  .about-partners-intro {
    padding-top: 48px;
    padding-bottom: 0;
  }

  .about-partners-map {
    padding-top: 24px;
    padding-bottom: 0;
  }

  .about-partners-table {
    padding-top: 32px;
    padding-bottom: 0;
  }

  .about-certs-lead {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 0;
    padding: clamp(14px, 4vw, 24px) clamp(10px, 3vw, 20px) clamp(18px, 5vw, 28px);
    overflow: visible;
    background: linear-gradient(
      to bottom,
      #fff 0%,
      #fff calc(100% - 48px),
      transparent calc(100% - 48px)
    );
  }

  .about-partners {
    padding: 0;
  }

  .about-certificates {
    margin-top: -48px;
    margin-bottom: 0;
    padding-top: 132px;
    padding-bottom: 56px;
    border-radius: 0;
  }

  .about-certs-lead__dots {
    position: relative;
    z-index: 3;
    width: min(34vw, 168px);
    margin: clamp(10px, 3vw, 18px) clamp(16px, 6vw, 56px) clamp(-24px, -6vw, -16px) 0;
    transform: none;
  }

  .about-intro-media {
    width: min(92%, 1425px);
    margin: -100px auto 0;
  }

  .about-green-panel--intro {
    padding-bottom: 180px;
  }

  .about-intro-seal {
    width: min(140px, 28vw);
  }

  .about-produce-block {
    margin-top: 0;
    padding: 56px 16px 48px;
  }

  .about-produce-title {
    margin-bottom: 28px;
  }

  .about-produce {
    width: min(94%, 1362px);
  }

  .about-intro-rice {
    max-height: none;
  }

  .about-side-mark {
    display: none;
  }

  .people-grid,
  .people-grid--image,
  .about-gm-note {
    width: min(100%, 320px);
  }

  .about-gm-note {
    white-space: normal;
  }

  .about-map,
  .partner-table-wrap {
    width: 100%;
  }

  .about-partners-map .about-map {
    width: 100%;
  }

  .news-archive-layout,
  .news-archive-section > h1,
  .news-article-section > h1,
  .news-article-layout {
    grid-template-columns: 1fr;
  }

  .news-article__content .wp-block-columns {
    grid-template-columns: 1fr;
  }

  .shop-archive-layout,
  .shop-archive-section > h1 {
    grid-template-columns: 1fr;
  }

  .news-filter,
  .shop-filter {
    order: -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 12px;
  }

  .shop-filter form {
    flex: 0 0 100%;
    width: 100%;
  }

  .news-filter > a,
  .shop-filter > a {
    display: inline-block;
    margin-right: 0;
    padding: 10px 2px;
    border-bottom-color: #b9bdb6;
    font-size: clamp(13px, 0.78125vw, 15px);
  }

  .news-filter > a.is-active,
  .shop-filter > a.is-active {
    border-bottom-color: #b9bdb6;
    background-size: 105px 2px;
  }

  .news-archive-grid,
  .related-news-grid {
    grid-template-columns: 1fr;
  }

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

  .news-breadcrumb {
    margin-bottom: 40px;
  }

  .contact-page {
    min-height: 0;
    padding: calc(var(--header-height) + 36px) 18px 72px;
  }

  .contact-page__wave {
    height: min(220px, 55vw);
  }

  .contact-form-card {
    width: min(100%, 621px);
    padding: 28px 18px 24px;
    border-radius: 14px;
  }

  .contact-form-card__title {
    margin-bottom: 22px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea,
  .form-captcha input {
    padding: 8px 10px;
  }

  .form-field select {
    padding-right: 28px;
  }

  .contact-form__footer {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 20px;
  }

  .form-captcha {
    gap: 10px;
  }

  .form-captcha__row {
    width: auto;
    max-width: 100%;
    grid-template-columns: 135px auto;
    gap: 8px;
    margin-bottom: 4px;
  }

  .form-captcha__row input {
    width: 135px;
  }

  .form-captcha__challenge {
    width: 135px;
    margin-top: 2px;
  }

  .form-submit {
    width: min(var(--yilan-home-cta-width), 100%);
    height: var(--yilan-home-cta-height);
    max-width: 100%;
    min-height: 0;
    justify-self: center;
    margin-top: 8px;
  }

  .form-submit__art {
    width: 100%;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
