/* =====================================================
   果果家 KOKOYA · 購物網前端 樣式 v2 (2026-05-10)
   採用優化後的視覺設計：米白底 + 暖橘 + 葉飾插圖
   ===================================================== */

:root {
  --cream: #fff8ec;
  --cream-strong: #fff1dd;
  --paper: #fffdf8;
  --paper-2: #fff1e5;
  --ink: #3c2314;
  --ink-soft: #6e4a35;
  --ink-3: #8b6f55;
  --muted: #b8a689;
  --orange: #ef6a1e;
  --orange-deep: #ce4b12;
  --orange-soft: #fff1e5;
  --leaf: #728e2e;
  --leaf-deep: #5a7322;
  --tomato: #c9522c;
  --line: #f0cfad;
  --shadow: 0 24px 60px rgba(106, 60, 25, 0.12);
  --soft-shadow: 0 12px 34px rgba(106, 60, 25, 0.11);
  --shadow-sm: 0 6px 16px rgba(106, 60, 25, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --r-pill: 999px;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --rounded: "Zen Maru Gothic", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

  --fruit-enhance: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 18%, rgba(248, 221, 177, 0.62), transparent 13rem),
    radial-gradient(circle at 93% 0%, rgba(239, 155, 58, 0.14), transparent 20rem),
    linear-gradient(180deg, #fffaf1 0%, #fff7ea 46%, #fffaf4 100%);
  font-family: var(--rounded);
  min-width: 320px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* 防手機橫向滾動 */
}
input, select, textarea, button {
  font-size: 16px;                /* iOS Safari 防止 input focus 縮放 */
  font-family: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(239, 106, 30, 0.32) 1.4px, transparent 1.6px),
    radial-gradient(circle, rgba(114, 142, 46, 0.18) 1px, transparent 1.3px);
  background-position: 8px 30px, 30px 14px;
  background-size: 88px 88px, 120px 120px;
  opacity: 0.24;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: 0.04em;
  margin: 0 0 .4em;
  font-weight: 900;
  color: var(--ink);
}

:where(a, button):focus-visible {
  outline: 3px solid rgba(239, 106, 30, 0.72);
  outline-offset: 4px;
}

/* ============= Layout shells ============= */
.site-canvas {
  width: min(100%, 1440px);
  margin: 0 auto;
  position: relative;
  padding-top: 86px;
}

.container {
  width: min(86vw, 1235px);
  margin: 0 auto;
}

/* ============= Header ============= */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  width: min(100%, 1440px);
  min-height: 86px;
  margin: 0 auto;
  padding-inline: max(24px, calc((100% - 1235px) / 2));
  background: rgba(255, 248, 236, .94);
  border-bottom: 1px solid rgba(215, 151, 89, .18);
  box-shadow: 0 10px 28px rgba(106, 60, 25, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  line-height: 1.1;
  color: var(--ink);
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  /* 把 PNG logo 內建的白底用 multiply 混合掉 → 透明效果（深色 logo 在淺底背景下完美） */
  mix-blend-mode: multiply;
}

.brand .name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .08em;
}

.brand .en {
  display: block;
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .14em;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.45vw, 24px);
  min-width: 0;
  font-weight: 900;
  font-family: var(--serif);
  letter-spacing: 0.04em;
  font-size: clamp(.86rem, .96vw, 1rem);
}

.nav-links a {
  position: relative;
  padding: 14px 0;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transition: left .22s ease, right .22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { left: 0; right: 0; }

.auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.auth-slot .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  background: var(--paper);
  color: var(--orange);
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  font-family: var(--rounded);
  transition: all .18s;
}
.auth-slot .login-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

.auth-slot .user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9rem;
  font-weight: 700;
  position: relative;
}
.auth-slot .user-chip img,
.auth-slot .user-chip .avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  background: var(--orange-soft);
  font-size: .9rem;
}
.auth-slot .user-chip .uname {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.auth-slot .user-menu-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 4px;
  font-size: .75rem;
}
.auth-slot .user-menu {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 160px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-slot .user-menu a,
.auth-slot .user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-slot .user-menu a:hover,
.auth-slot .user-menu button:hover {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.05em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}

.header-cta {
  position: relative;
  min-width: 142px;
  padding: 13px 22px 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff8131, var(--orange));
  box-shadow: 0 14px 28px rgba(239, 106, 30, 0.26);
  border: 0;
}

.header-cta svg,
.cart-button svg { width: 22px; fill: currentColor; }

.header-cta:hover,
.btn:hover { transform: translateY(-2px); }

.header-cta .badge-cnt {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--leaf-deep);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-cta .badge-cnt:empty { display: none; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(239, 106, 30, 0.24);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.site-header.header-collapsed {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px;
  padding-inline: 20px;
}

.site-header.header-collapsed .brand {
  min-width: 0;
  overflow: hidden;
}

.site-header.header-collapsed .brand img {
  width: 52px;
  height: 52px;
}

.site-header.header-collapsed .brand .name {
  font-size: 1.02rem;
}

.site-header.header-collapsed .brand .en {
  font-size: .66rem;
}

.site-header.header-collapsed .auth-slot .user-chip .uname {
  display: none;
}

.site-header.header-collapsed .menu-toggle {
  display: block;
  order: 4;
}

.site-header.header-collapsed .auth-slot {
  order: 2;
}

.site-header.header-collapsed .header-cta {
  order: 3;
  min-width: 0;
  padding: 11px 14px;
  font-size: .9rem;
}

.site-header.header-collapsed .nav-links {
  position: absolute;
  top: calc(100% + 14px);
  left: 20px;
  right: 20px;
  display: none;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
  padding: 12px;
  border: 1px solid rgba(215,151,89,.32);
  border-radius: 20px;
  background: rgba(255,253,248,.98);
  box-shadow: var(--shadow);
  z-index: 30;
}

.site-header.header-collapsed.is-open .nav-links,
.site-header.header-collapsed .nav-links.open {
  display: grid;
}

.site-header.header-collapsed .nav-links a {
  padding: 13px 12px;
  border-radius: 14px;
}

.site-header.header-collapsed .nav-links a:hover {
  background: var(--orange-soft);
}

.site-header.header-collapsed .nav-links a::after {
  display: none;
}

@media (max-width: 1320px) {
  .site-header {
    gap: 18px;
    padding-inline: 18px;
  }
  .brand img {
    width: 52px;
    height: 52px;
  }
  .brand .name {
    font-size: 1.02rem;
  }
  .nav-links {
    gap: 12px;
    font-size: .9rem;
  }
  .auth-slot .user-chip .uname {
    display: none;
  }
  .header-cta {
    min-width: 118px;
    padding: 12px 18px 13px;
  }
}

/* ============= Hero ============= */
.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: 420px;
  margin: -6px auto 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,248,236,.96) 0%, rgba(255,248,236,.72) 42%, rgba(255,248,236,.12) 78%, rgba(255,248,236,0) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #fff8ec;
  background-image: url("../assets/hero-fruits-optimized.jpg");
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.02);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,246,226,.68) 0%, rgba(255,246,226,.34) 34%, rgba(255,246,226,0) 54%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(660px, 86vw);
  margin-left: clamp(28px, 8.5vw, 124px);
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: .09em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.18rem, 3.35vw, 2.95rem);
  line-height: 1.48;
  letter-spacing: .08em;
  color: var(--ink);
  text-shadow: 0 3px 0 rgba(255,255,255,.88);
}

.mobile-break { display: none; }

.hero-text {
  max-width: 560px;
  margin: 12px 0 0;
  color: #5e3c27;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 700;
  line-height: 1.78;
  letter-spacing: .07em;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.btn {
  min-width: 158px;
  padding: 13px 29px;
  border: 1.5px solid var(--orange);
  font-family: var(--rounded);
}

.btn::after {
  content: "›";
  font-size: 1.7rem;
  line-height: 0;
  transform: translateY(-1px);
}

.btn.primary,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff8434, var(--orange));
  box-shadow: 0 16px 26px rgba(239, 106, 30, 0.24);
}

.btn.outline,
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
}

.btn.plain {
  border-color: var(--line);
  color: var(--ink-soft);
  background: var(--paper);
}
.btn.plain::after { content: ""; }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ============= Trust panel ============= */
.trust-panel {
  position: relative;
  z-index: 4;
  width: min(86vw, 1235px);
  margin: -15px auto 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(215,151,89,.28);
  border-radius: 18px;
  background: rgba(255,253,248,.93);
  box-shadow: var(--soft-shadow);
}

.trust-panel article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 65px;
  padding: 14px 24px;
  position: relative;
  z-index: 2;
}

.trust-panel article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  border-left: 1px dashed #e7b487;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--orange);
  flex-shrink: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffaf2, #fff0dc);
  border: 1px solid rgba(215,151,89,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(106,60,25,.08);
}

.trust-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.trust-panel h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: .08em;
}

.trust-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .91rem;
  font-weight: 700;
}

.blog-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-preview-card .product-info p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============= Section ============= */
.section {
  position: relative;
  width: min(86vw, 1235px);
  margin: 36px auto 0;
}

.section-anchor {
  position: absolute;
  top: -110px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 0 18px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: .18em;
}

.section-title.compact { margin-top: 6px; }

.title-leaf {
  width: 42px;
  height: auto;
  transform: rotate(-18deg);
}

.title-leaf.mirrored { transform: scaleX(-1) rotate(-18deg); }

/* ============= Products grid ============= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 0 4px 6px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(215,151,89,.27);
  border-radius: 17px;
  background: rgba(255,253,248,.95);
  box-shadow: var(--soft-shadow);
  transition: transform .24s ease, box-shadow .24s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(106,60,25,.16);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
}

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

.product-image .product-bg {
  position: absolute;
  inset: 4px;
  background-repeat: no-repeat;
  border-radius: 10px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 68%, rgba(0,0,0,.88) 80%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 68%, rgba(0,0,0,.88) 80%, transparent 100%);
}
.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 22px rgba(255,248,236,.78);
}
.product-image .emoji-fallback {
  font-size: 4rem;
  filter: drop-shadow(0 8px 12px rgba(91,53,25,.14));
}

.product-image .badge {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8940, var(--orange));
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 20px rgba(239,106,30,.23);
}
.product-image .badge.sold {
  background: #888;
  box-shadow: none;
}
.product-image .badge.low {
  background: linear-gradient(135deg, #f5a13c, var(--leaf));
}

.product-info {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.product-info p {
  margin: 0 0 12px;
  min-height: 20px;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 700;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-bottom strong {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .03em;
}

.product-bottom .price-display {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 4px;
  line-height: 1.15;
}

.product-bottom .price-display--bundle {
  gap: 2px 6px;
}

.product-bottom .price-pack {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
}

.product-bottom .price-amount {
  color: var(--orange);
}

.product-bottom strong small {
  font-size: .72rem;
  margin-right: 2px;
  font-weight: 700;
}

.product-bottom strong .unit {
  font-size: .72rem;
  color: var(--ink-soft);
  margin-left: 4px;
  font-weight: 600;
}

.product-bottom strong .from {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream-strong);
  padding: 1px 6px;
  border-radius: 999px;
  margin-right: 4px;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* 售完狀態 */
.product-card.is-out {
  cursor: pointer;
}
.product-card.is-out .cart-button {
  border-color: var(--muted);
  color: var(--muted);
  background: var(--paper);
  cursor: not-allowed;
}
.product-card.is-out:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

/* Modal 售完狀態 */
.modal.is-out::before {
  content: "😢 此商品暫時售完，無法加入購物車";
  display: block;
  background: linear-gradient(135deg, #f5d3a8, #f0c08f);
  color: var(--ink);
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.product-bottom .no-price {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.cart-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  background: #fffaf2;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.cart-button:hover,
.cart-button.is-added {
  color: #fff;
  background: var(--orange);
  transform: rotate(-7deg) scale(1.07);
}

.cart-button:disabled {
  border-color: var(--muted);
  color: var(--muted);
  background: var(--paper);
  cursor: not-allowed;
  transform: none;
}

.skeleton {
  background: linear-gradient(90deg, #f3e2c8 0%, #faecd0 50%, #f3e2c8 100%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 載入錯誤 */
.load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 30px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.load-error .ico { font-size: 3rem; margin-bottom: 12px; }
.load-error .title { font-size: 1.1rem; font-weight: 700; color: var(--orange-deep); margin-bottom: 4px; }
.load-error code { background: var(--orange-soft); padding: 2px 6px; border-radius: 4px; font-size: .85em; }

/* ============= Seasonal ============= */
.seasonal-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.seasonal-list a {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 4px 20px 4px 8px;
  border: 1px solid rgba(215,151,89,.42);
  border-radius: 17px;
  background: rgba(255,253,248,.84);
  box-shadow: 0 12px 30px rgba(106,60,25,.07);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.seasonal-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(239,106,30,.6);
  box-shadow: 0 18px 34px rgba(106,60,25,.12);
}

.seasonal-list a.is-active {
  background: linear-gradient(135deg, #fff1e0, #ffe4ca);
  border-color: var(--orange);
}

.seasonal-list b {
  color: var(--orange-deep);
  font-size: 1.6rem;
  font-weight: 900;
}

.fruit-thumb {
  width: 92px;
  height: 72px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(91,53,25,.14));
}
.fruit-thumb-emoji {
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  background: var(--orange-soft);
  border-radius: 12px;
  filter: none;
}

/* ============= Story banner ============= */
.story-banner {
  position: relative;
  z-index: 2;
  width: min(86vw, 980px);
  min-height: auto;
  margin: 32px auto 32px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 18px;
  padding: 34px clamp(22px, 5vw, 58px);
  border: 1px solid rgba(215,151,89,.28);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,248,236,.88), rgba(255,253,248,.96)),
    radial-gradient(circle at 10% 50%, rgba(238,141,46,.12), transparent 15rem);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.story-banner h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: .08em;
}

.story-banner p {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.story-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 22px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange-deep);
  background: rgba(255,253,248,.8);
  font-weight: 900;
}

.basket-doodle,
.farm-doodle {
  display: flex;
  min-height: 82px;
  align-items: center;
}
.basket-doodle { justify-content: flex-start; }
.farm-doodle { justify-content: flex-end; }

.basket-doodle img,
.farm-doodle img {
  display: block;
  width: min(100%, 225px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(91,53,25,.1));
}

.farm-doodle img { width: min(100%, 238px); }

/* ============= About page ============= */
.about-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.about-hero {
  padding: clamp(38px, 7vw, 82px) clamp(22px, 6vw, 70px);
  border: 1px solid rgba(215,151,89,.26);
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(255,250,240,.98) 0%, rgba(255,246,226,.9) 48%, rgba(255,246,226,.52) 100%),
    url("../assets/hero-fruits-optimized.jpg") right center / auto 100% no-repeat;
  box-shadow: var(--soft-shadow);
}

.about-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: .04em;
}

.about-hero p:last-child,
.about-story p,
.about-promise p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.9;
  font-weight: 700;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  margin-top: 30px;
}

.about-story,
.about-values article,
.about-promise {
  border: 1px solid rgba(215,151,89,.24);
  border-radius: 18px;
  background: rgba(255,253,248,.84);
  box-shadow: 0 18px 38px rgba(106,60,25,.08);
}

.about-story {
  padding: 30px;
}

.about-story h2,
.about-promise h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

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

.about-values article {
  padding: 22px;
}

.about-values span {
  color: var(--orange);
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: .08em;
}

.about-values h3 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
}

.about-values p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  font-weight: 700;
}

.about-promise {
  margin-top: 28px;
  padding: 34px;
  text-align: center;
}

.about-promise p {
  margin-inline: auto;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* ============= Footer ============= */
.site-footer {
  width: min(86vw, 1235px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr 280px;
  gap: 34px;
  align-items: start;
  padding: 24px 0;
}

.footer-brand {
  padding-right: 30px;
  border-right: 1px solid rgba(215,151,89,.3);
}

.footer-logo { width: 180px; }

.footer-tagline {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 600;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: .96rem;
  font-weight: 900;
}

.site-footer a:not(.brand):not(.social-icons a) {
  display: block;
  margin: 5px 0;
  color: var(--ink-soft);
  font-size: .87rem;
  font-weight: 800;
}

.site-footer a:not(.brand):not(.social-icons a):hover { color: var(--orange-deep); }

.footer-social {
  padding-left: 34px;
  border-left: 1px solid rgba(215,151,89,.3);
}

.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 11px 0 14px;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 10px;
  color: #fff;
  background: #1877F2;        /* Facebook 藍 */
  font-weight: 900;
  font-size: .95rem;
  transition: transform .15s ease;
}
.social-icons a:hover { transform: translateY(-2px) scale(1.05); }

.social-icons a:nth-child(2) {
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #4f5bd5);
}

.social-icons a:nth-child(3) {
  width: 44px;
  background: #06C755;        /* LINE 綠 */
  font-size: .7rem;
}

.footer-social p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 700;
}

.footer-qr {
  width: 92px;
  margin-top: 8px;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 6px;
  background: #fff;
}

.copy {
  width: min(86vw, 1235px);
  margin: 0 auto;
  padding: 10px 0 26px;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}

.back-top {
  position: fixed;
  right: clamp(18px, 4vw, 56px);
  bottom: 30px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: #a96d2a;
  box-shadow: 0 12px 30px rgba(78,42,14,.2);
  font-weight: 900;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ============= Cart drawer ============= */
.cart-mask,
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(60, 35, 20, .42);
  z-index: 50;
  backdrop-filter: blur(2px);
}
.cart-mask.show,
.modal-mask.show { display: block; }

.modal-mask {
  z-index: 70;
  align-items: center;
  justify-content: center;
}
.modal-mask.show {
  display: flex;
  padding: 24px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 96vw);
  height: 100vh;
  background: var(--paper);
  box-shadow: -16px 0 50px rgba(74,40,18,.18);
  z-index: 60;
  transform: translateX(110%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.show { transform: translateX(0); }

.cart-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-h h3 { margin: 0; font-size: 1.2rem; font-family: var(--serif); }
.cart-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  color: var(--ink-soft);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 14px 8px;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.cart-item .ph {
  width: 56px;
  height: 56px;
  background: var(--orange-soft);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  overflow: hidden;
}
.cart-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { min-width: 0; }
.cart-item .info .nm { font-weight: 800; font-size: .94rem; }
.cart-item .info .pr { font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }
.cart-item .qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item .qty-box button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
}
.cart-item .qty-box .n { min-width: 28px; text-align: center; font-weight: 900; }
.cart-item .rm {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
}
.cart-item .rm:hover { color: var(--tomato); }

.cart-foot {
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-weight: 800;
}
.cart-total .amt {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--orange-deep);
}

/* ============= Modal ============= */
.modal {
  background: var(--paper);
  border-radius: 22px;
  padding: 28px 28px 24px;
  width: min(560px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-family: var(--serif);
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  font-size: 1rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(239,106,30,.55);
  border-color: var(--orange);
}
.field textarea { min-height: 80px; resize: vertical; }

/* 結帳明細 */
.checkout-summary {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--cream-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.checkout-summary .sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: .95rem;
  color: var(--ink);
  font-weight: 700;
}
.checkout-summary .sum-row.total {
  border-top: 1px dashed var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 900;
  font-size: 1.1rem;
}
.checkout-summary .sum-row.total .amt {
  font-family: var(--serif);
  color: var(--orange-deep);
  font-size: 1.4rem;
}
.checkout-summary .sum-note {
  margin-top: 4px;
  font-size: .76rem;
  color: var(--muted);
  font-weight: 600;
}

/* 訪客提示 banner */
.guest-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: -4px 0 14px;
  background: linear-gradient(135deg, #FFF6E6, #FBE0C2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .88rem;
  color: var(--ink);
}
.guest-hint > span:first-child { font-size: 1.4rem; }
.guest-hint > div { flex: 1; min-width: 0; }
.guest-hint b { color: var(--orange-deep); }

/* 取貨方式 下拉 + 說明 */
.ship-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.ship-select:focus {
  outline: 2px solid rgba(239,106,30,.55);
  border-color: var(--orange);
}
.ship-desc {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--cream-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--ink);
}
.ship-desc b { color: var(--orange-deep); }

/* 取貨方式 radio cards（舊版保留，不再使用） */
.ship-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ship-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: all .15s;
}
.ship-opt:hover { border-color: var(--orange); background: var(--orange-soft); }
.ship-opt.is-selected {
  border-color: var(--orange);
  background: var(--cream-strong);
  box-shadow: 0 6px 14px rgba(239,106,30,.12);
}
.ship-opt input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  margin: 0;
}
.ship-opt input[type="radio"]:checked { border-color: var(--orange); }
.ship-opt input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--orange);
}
.ship-opt .info { flex: 1; min-width: 0; }
.ship-opt .lbl {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ship-opt .sub {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 2px;
  font-weight: 700;
}
.carrier-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d6e4ff;
  color: #1a4ba8;
  font-size: .72rem;
  font-weight: 800;
}

.payment-info {
  background: var(--cream-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.payment-info .ttl {
  font-family: var(--serif);
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--orange-deep);
}
.payment-info .row {
  display: flex;
  align-items: baseline;
  padding: 4px 0;
  gap: 10px;
  font-size: .9rem;
  flex-wrap: wrap;          /* 手機螢幕窄不會跑出去 */
}
.payment-info .row .lbl {
  min-width: 60px;
  color: var(--ink-soft);
  font-weight: 700;
}
.payment-info .row .val { font-weight: 800; }
.payment-info .row .val.copy {
  cursor: pointer;
  color: var(--orange-deep);
  text-decoration: underline dotted;
}

.success-block {
  text-align: center;
  padding: 6px 0;
}
.success-block .big {
  font-size: 4rem;
  margin-bottom: 6px;
}
.success-block .order-no {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--orange-deep);
  background: var(--cream-strong);
  border: 1px dashed var(--orange);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 6px 0;
  display: inline-block;
  letter-spacing: .15em;
}

/* ============= Tier picker ============= */
.tier-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tier-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all .15s;
}
.tier-thumbs img:hover { border-color: var(--orange); }
.tier-thumbs img.is-active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(239,106,30,.25);
}

.tier-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: all .15s ease;
}
.tier-opt:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.tier-opt input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.tier-opt input[type="radio"]:checked {
  border-color: var(--orange);
}
.tier-opt input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--orange);
}
.tier-opt.is-selected {
  border-color: var(--orange);
  background: var(--cream-strong);
  box-shadow: 0 6px 14px rgba(239,106,30,.12);
}
.tier-opt .info { flex: 1; min-width: 0; }
.tier-opt .lbl {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: .04em;
}
.tier-opt .sub {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 2px;
  font-weight: 700;
}
.tier-opt .price {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--orange-deep);
  font-size: 1.05rem;
  white-space: nowrap;
}
.tier-opt .price small { font-size: .7rem; font-weight: 700; margin-right: 2px; }
.tier-opt .badge-cheap {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8940, var(--orange));
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  vertical-align: middle;
}

.qty-step {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
}
.qty-step:hover { border-color: var(--orange); color: var(--orange); }

/* ============= Toast ============= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 50px);
  background: rgba(60,35,20,.92);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.err { background: #b04025; }

/* ============= My Orders / Blog 共用 ============= */
.page-header {
  text-align: center;
  padding: 50px 22px 30px;
  background:
    radial-gradient(circle at 20% 30%, rgba(232,162,102,.12), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(168,184,158,.12), transparent 60%);
}
.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  letter-spacing: .15em;
}
.page-header .lead {
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: .12em;
  font-weight: 700;
}

/* ============= Catalog pages ============= */
.catalog-shell {
  width: min(92vw, 1140px);
  margin: 28px auto 80px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 20px;
}

.catalog-search {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-search input {
  height: 34px;
  border: 1px solid rgba(106,60,25,.28);
  border-radius: 8px;
  background: #fff;
  padding: 2px 10px;
  color: var(--ink);
}

.catalog-search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.catalog-search svg {
  width: 20px;
  fill: currentColor;
}

.catalog-sidebar h1 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: .08em;
}

.catalog-cats {
  display: grid;
  gap: 12px;
}

.catalog-cats button {
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.catalog-cats button b {
  color: #aaa;
  font-weight: 500;
}

.catalog-cats button.active span,
.catalog-cats button:hover span {
  color: var(--orange-deep);
}

.catalog-topbar {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.catalog-breadcrumb {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-weight: 800;
  color: var(--ink);
}

.catalog-breadcrumb span + span {
  color: #c7c7c7;
  font-weight: 500;
}

.catalog-controls {
  display: flex;
  gap: 30px;
  align-items: center;
}

.catalog-controls label {
  min-width: 140px;
  display: grid;
  gap: 2px;
}

.catalog-controls label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.catalog-controls select {
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  border-radius: 0;
  background: transparent;
  height: 32px;
  color: var(--ink);
}

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

.catalog-card {
  text-align: center;
  min-width: 0;
}

.catalog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 0;
  background: #f7f1e8;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.catalog-photo {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: var(--fruit-enhance);
}

.catalog-emoji {
  font-size: 4rem;
}

.catalog-card-body {
  padding-top: 10px;
}

.catalog-card h2 {
  font-family: var(--rounded);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0 0 2px;
}

.catalog-card p {
  display: none;
}

.catalog-card-foot {
  min-height: 56px;
  display: grid;
  place-items: center;
  gap: 7px;
}

.catalog-price {
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
}

.catalog-no-price {
  color: #999;
  font-size: .9rem;
}

.catalog-add {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--orange-deep);
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: .16s ease;
  cursor: pointer;
}

.catalog-card:hover .catalog-add,
.catalog-add:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.catalog-add:disabled {
  width: auto;
  padding: 0 8px;
  color: #aaa;
  opacity: 1;
  cursor: not-allowed;
}

.catalog-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(255,255,255,.9);
  color: var(--orange-deep);
  font-size: .74rem;
  font-weight: 800;
}

.catalog-badge.sold {
  color: #777;
}

.catalog-card.is-out .catalog-image {
  opacity: .55;
}

.catalog-pager {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.catalog-pager button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

.catalog-pager button:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.catalog-empty,
.catalog-loading {
  grid-column: 1 / -1;
  padding: 70px 0;
  text-align: center;
  color: #777;
}

.catalog-tier-modal {
  max-width: 440px;
}

.catalog-tier-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.catalog-tier-desc {
  margin: -4px 0 12px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.catalog-qty-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-qty-row label {
  flex: 1;
  margin: 0;
}

.catalog-qty-row input {
  width: 64px;
  text-align: center;
  padding: 8px;
}

.catalog-tier-total {
  text-align: right;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--orange-deep);
  margin: 8px 0 12px;
  font-weight: 900;
}

.catalog-modal-actions {
  display: flex;
  gap: 10px;
}

.catalog-modal-actions .btn:first-child {
  flex: 1;
}

.catalog-modal-actions .btn:last-child {
  flex: 1.4;
}

/* ============= RWD ============= */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    padding-inline: 24px;
  }
  .nav-links { gap: 22px; }
  .hero { background-position: 55vw center; }
  .section, .trust-panel, .story-banner, .site-footer, .copy {
    width: min(92vw, 1235px);
  }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .seasonal-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .story-banner { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 170px 1fr; }
  .footer-social { grid-column: 2; padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .site-canvas { padding-top: 74px; }

  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    min-height: 74px;
  }
  .menu-toggle { display: block; order: 4; }
  .auth-slot { order: 2; }
  .header-cta { min-width: 0; padding: 11px 14px; font-size: .9rem; order: 3; }
  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(215,151,89,.32);
    border-radius: 20px;
    background: rgba(255,253,248,.98);
    box-shadow: var(--shadow);
    z-index: 30;
  }
  .site-header.is-open .nav-links,
  .nav-links.open { display: grid; }
  .nav-links a { padding: 13px 12px; border-radius: 14px; }
  .nav-links a:hover { background: var(--orange-soft); }
  .nav-links a::after { display: none; }

  .hero {
    min-height: 640px;
    align-items: start;
    padding-top: 20px;
    background: linear-gradient(180deg, rgba(255,248,236,.98) 0%, rgba(255,248,236,.9) 36%, rgba(255,248,236,.22) 100%);
  }
  .hero::before { background-position: 66% bottom; background-size: auto 58%; }
  .hero-copy { margin-inline: auto; }
  .hero h1 { letter-spacing: .08em; overflow-wrap: anywhere; }
  .trust-panel {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .trust-panel article {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    justify-content: stretch;
    gap: 14px;
    min-height: 88px;
    padding: 16px 18px;
  }
  .trust-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }
  .trust-icon img {
    width: 48px;
    height: 48px;
  }
  .trust-panel article + article::before {
    top: 0; left: 24px; right: 24px; bottom: auto;
    width: auto; height: 1px;
    border-left: 0; border-top: 1px dashed #e7b487;
  }

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

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

  .story-banner { grid-template-columns: 1fr; padding: 22px; }
  .basket-doodle, .farm-doodle { display: none; }
  .about-content,
  .about-values { grid-template-columns: 1fr; }
  .about-hero { background-size: auto 58%; background-position: 64% bottom; padding-bottom: 250px; }

  .catalog-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 18px;
  }
  .catalog-sidebar { position: static; }
  .catalog-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }
  .catalog-topbar {
    flex-direction: column;
    margin-bottom: 24px;
  }
  .catalog-controls {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
  .catalog-controls label {
    min-width: 0;
    flex: 1;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 18px;
  }
  .catalog-add {
    opacity: 1;
    transform: none;
  }

  .site-footer { grid-template-columns: 1fr; padding-bottom: 78px; }
  .footer-brand, .footer-social { padding: 0; border: 0; }
  .footer-links { grid-template-columns: repeat(2, minmax(120px,1fr)); }
}

@media (max-width: 560px) {
  .site-canvas { padding-top: 64px; }

  .site-header {
    width: 100%;
    display: block;
    min-height: 64px;
    gap: 10px;
    padding: 8px 12px;
  }
  .brand {
    width: max-content;
    max-width: calc(100% - 168px);
  }
  .brand img { width: 48px; height: 48px; }
  .brand .name { font-size: 1.05rem; }
  .brand .en { font-size: .68rem; }
  .header-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));   /* iPhone home indicator 安全區 */
    z-index: 25;
    padding: 15px;
    min-width: 0;
    box-shadow: 0 18px 40px rgba(239,106,30,.45);
  }
  /* 內容底部留空避免被固定 CTA 蓋到 */
  main { padding-bottom: 90px; }
  /* 購物車按鈕變大、login 縮成圖示 */
  .auth-slot {
    position: absolute;
    top: 9px;
    right: 98px;
    z-index: 12;
  }
  .auth-slot .login-btn {
    position: static;
    padding: 9px 12px;
    font-size: .82rem;
  }
  .auth-slot .login-btn span,
  .auth-slot .user-chip .uname { display: none; }
  .auth-slot .user-chip { padding: 4px 8px 4px 4px; }
  .menu-toggle {
    position: absolute;
    top: 9px;
    right: 40px;
    order: 3;
    justify-self: end;
    width: 46px;
    height: 46px;
  }
  /* 手機上的點擊熱區 */
  .cart-item .qty-box button { width: 32px; height: 32px; font-size: 1.1rem; }
  .qty-step { width: 40px; height: 40px; }
  .hero {
    min-height: 590px;
    margin-top: 0;
    padding-top: 8px;
  }
  .hero::before { background-size: auto 48%; background-position: 62% bottom; }
  .hero-copy { width: calc(100% - 34px); }
  .eyebrow {
    margin-bottom: 8px;
    max-width: 21rem;
    letter-spacing: .03em;
    line-height: 1.55;
  }
  .hero-actions { gap: 10px; flex-direction: column; align-items: stretch; }
  .btn { min-width: 0; width: min(100%, 228px); padding: 13px 16px; }
  .hero h1 { font-size: clamp(2rem, 10.2vw, 2.48rem); line-height: 1.36; letter-spacing: .04em; }
  .mobile-break { display: inline; }
  .hero-text { max-width: 21rem; font-size: .94rem; line-height: 1.75; letter-spacing: .01em; }
  .section, .trust-panel, .story-banner, .site-footer, .copy {
    width: calc(100% - 24px);
  }
  .trust-panel {
    border-radius: 18px;
    margin-top: -10px;
    margin-bottom: 42px;
  }
  .trust-panel h2 {
    font-size: 1.04rem;
    line-height: 1.25;
  }
  .trust-panel p {
    font-size: .88rem;
    line-height: 1.45;
  }
  .story-banner {
    padding: 24px 18px;
    margin-top: 24px;
    margin-bottom: 34px;
  }
  .story-banner h2 {
    max-width: 12em;
    margin: 0 auto 10px;
    font-size: clamp(1.34rem, 6.3vw, 1.62rem);
    line-height: 1.38;
    letter-spacing: .04em;
    text-wrap: balance;
  }
  .story-banner p {
    max-width: 19em;
    margin: 0 auto;
    font-size: .96rem;
    line-height: 1.7;
    letter-spacing: .03em;
    text-wrap: balance;
  }
  .about-shell {
    width: calc(100% - 24px);
    padding-top: 22px;
  }
  .about-hero {
    padding: 30px 20px 220px;
    background-size: auto 42%;
    background-position: 54% bottom;
  }
  .about-story,
  .about-values article,
  .about-promise {
    padding: 22px;
  }
  .about-actions .btn {
    width: 100%;
  }
  .section-title { gap: 12px; }
  .section-title h2 { letter-spacing: .1em; }

  .product-grid { grid-template-columns: 1fr; }
  .catalog-shell { width: min(92vw, 420px); }
  .catalog-cats { grid-template-columns: 1fr; }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }
  .catalog-card h2 { font-size: .92rem; }
  .catalog-controls { flex-direction: column; }
  .catalog-controls label { width: 100%; }
  .blog-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .blog-preview-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: stretch;
    min-height: 126px;
  }
  .blog-preview-card .product-image {
    min-height: 126px;
    aspect-ratio: auto;
    border-radius: 16px 0 0 16px;
  }
  .blog-preview-card .product-image img,
  .blog-preview-card .product-image .emoji-fallback {
    height: 100%;
  }
  .blog-preview-card .product-info {
    padding: 14px 14px 12px;
  }
  .blog-preview-card .product-info h3 {
    font-size: 1rem;
    line-height: 1.38;
    margin-bottom: 6px;
    letter-spacing: .03em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-preview-card .product-info p {
    font-size: .82rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }
  .blog-preview-card .product-bottom {
    margin-top: 8px;
  }

  .seasonal-list { grid-template-columns: 1fr; gap: 10px; }

  .site-footer {
    gap: 18px;
    padding-top: 18px;
  }
  .footer-logo {
    width: 142px;
  }
  .footer-tagline {
    margin-top: 8px;
    font-size: .78rem;
    line-height: 1.55;
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .footer-links > div {
    min-height: 0;
    padding: 12px 12px 10px;
    border: 1px solid rgba(215,151,89,.28);
    border-radius: 16px;
    background: rgba(255,253,248,.72);
  }
  .site-footer h3 {
    margin-bottom: 8px;
    font-size: .9rem;
    letter-spacing: .04em;
  }
  .site-footer a:not(.brand):not(.social-icons a) {
    display: inline-flex;
    align-items: center;
    margin: 0 6px 7px 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,241,229,.74);
    border: 1px solid rgba(215,151,89,.24);
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .footer-social {
    text-align: left;
  }
  .social-icons {
    gap: 10px;
    margin: 8px 0 10px;
  }
  .social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .social-icons a:nth-child(3) {
    width: 52px;
  }

  .cart-drawer { width: 100vw; }

  .modal { padding: 22px 20px; }
  .page-header h1 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
