/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; }

:root {
  --green-900: #23361f;
  --green-800: #2f4a2a;
  --green-700: #3d6134;
  --green-600: #86946c;
  --green-500: #6b9b4f;
  --green-400: #8fbf6c;
  --green-300: #b9dc9a;
  --cream-50: #ffffff;
  --cream-100: #f5f0e0;
  --cream-200: #ece2c8;
  --orange-500: #dcc295;
  --orange-600: #dd6416;
  --gold-500: #e3ac3d;
  --text: #33402d;
  --muted: #6f7a63;
  --border: #e3ddc8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 20px rgba(60, 80, 40, 0.08);
  --shadow-md: 0 10px 30px rgba(60, 80, 40, 0.12);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 16px rgba(77,122,63,.3); }
.btn-primary:hover { background: var(--green-700); }
.btn-accent { background: var(--orange-500); color: #fff; box-shadow: 0 6px 16px rgba(238,125,46,.35); }
.btn-accent:hover { background: var(--orange-600); }
.btn-outline { background: #fff; color: var(--green-700); border: 1.5px solid var(--green-500); }
.btn-outline:hover { background: var(--green-50, #f2f8ec); }
.btn-ghost { color: var(--muted); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.icon-cart { width: 18px; height: 18px; flex-shrink: 0; }
.icon-inline { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; margin-right: 2px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--green-300), var(--green-600));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.logo-text { line-height: 1.2; }
.logo-text .zh { display: block; font-weight: 800; font-size: 16px; color: var(--green-800); letter-spacing: .5px; }
.logo-text .en { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.logo-img { height: 44px; width: auto; display: block; }
.footer-logo-img { height: 52px; width: auto; display: block; }

.main-nav { display: flex; gap: 44px; }
.main-nav a { font-size: 15px; font-weight: 400; color: #5f5449; position: relative; padding: 6px 0; }
.main-nav a.active,
.main-nav a:hover { color: var(--green-500); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange-500); border-radius: 2px;
}

.header-icons { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.icon-btn { position: relative; width: 22px; height: 22px; color: #5f5449; display: flex; align-items: center; justify-content: center; }
.icon-btn.active { color: var(--orange-500); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -9px; right: -11px; background: #86946c; color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green-600); }
.breadcrumb .sep { color: #c9c2a8; }
.breadcrumb .current { color: var(--green-700); font-weight: 600; }

/* ===== Section heading ===== */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading-tight { margin-bottom: 4px; }
.section-heading .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 4px; font-weight: 800; color: var(--green-500);
  text-transform: uppercase; margin-bottom: 6px;
}
.section-heading h2 { font-size: 26px; color: var(--green-800); font-weight: 800; letter-spacing: 1px; }
.section-heading p { color: var(--muted); margin-top: 8px; font-size: 14px; }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.bg-cream { background: var(--cream-100); }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.badge-hot { background: #fde3d2; color: var(--orange-600); }
.badge-season { background: #eaf3e0; color: var(--green-700); }
.badge-free { background: #e4f1ff; color: #2b6cb0; }
.badge-soft { background: var(--cream-200); color: var(--green-700); }
.badge-outline { border: 1px solid var(--green-400); color: var(--green-700); background: #fff; }

/* ===== Placeholder product art ===== */
.ph-img {
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: var(--radius-md);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 55%), var(--g, linear-gradient(135deg, #cfe6b0, #7fae5a));
}
.ph-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 85%, rgba(0,0,0,.08), transparent 60%);
}
.ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph-img .emoji { font-size: var(--fs, 64px); filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); position: relative; z-index: 1; }
.ph-img.g-green { --g: linear-gradient(135deg, #d7ecb9, #6b9b4f); }
.ph-img.g-orange { --g: linear-gradient(135deg, #ffd9a8, #ee7d2e); }
.ph-img.g-cream { --g: linear-gradient(135deg, #fbf3df, #e3c98a); }
.ph-img.g-blue { --g: linear-gradient(135deg, #d7e9f7, #7fb0d8); }
.ph-img.g-pink { --g: linear-gradient(135deg, #ffe3e3, #e88a8a); }

/* ===== Hero carousel (home) ===== */
.hero { position: relative; padding: 28px 0 8px; }

.hero-card {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, #eef8df 0%, #dcefc0 55%, #cbe6ab 100%);
  border-radius: 36px; overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-slide { display: none; position: relative; z-index: 1; min-height: 440px; }
.hero-slide.active { display: flex; align-items: center; animation: heroFadeIn .5s ease; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .ph-img { position: absolute; inset: 0; border-radius: 0; --fs: 130px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 40%, rgba(255,255,255,0) 66%);
}

.hero-copy { position: relative; z-index: 2; max-width: 480px; padding: 46px 24px 46px 56px; }
.hero-copy .badge { margin-bottom: 16px; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.hero-title { font-size: 22px; font-weight: 800; color: var(--green-900); margin-bottom: 2px; }
.hero-degree-row { display: flex; align-items: flex-start; gap: 10px; }
.hero-degree { font-size: 72px; font-weight: 900; color: #86946c; line-height: 1; display: flex; align-items: flex-start; gap: 4px; }
.hero-degree sup { font-size: 32px; margin-top: 4px; }
.hero-degree-decor { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; }
.hero-degree-decor span { height: 3px; border-radius: 2px; background: #86946c; transform: rotate(-22deg); }
.hero-degree-decor span:nth-child(1) { width: 22px; }
.hero-degree-decor span:nth-child(2) { width: 16px; }
.hero-degree-decor span:nth-child(3) { width: 10px; }
.hero-sub { color: var(--muted); font-size: 15px; margin: 12px 0 18px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; }

.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 18px 0 6px; position: relative; z-index: 1; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: #cfd8c2; cursor: pointer; transition: width .2s, background .2s; }
.hero-dots span.active { background: var(--green-600); width: 20px; border-radius: 4px; }

/* ===== Gift cards (home) ===== */
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.gift-card {
  border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 16px;
  background: var(--card-bg, var(--cream-100));
}
.gift-card.c1 { --card-bg: linear-gradient(160deg, #f2f6e4, #e4edd0); }
.gift-card.c2 { --card-bg: linear-gradient(160deg, #fdf1de, #fbe1bd); }
.gift-card.c3 { --card-bg: linear-gradient(160deg, #eef4e8, #d9e8cb); }
.gift-card .kicker { font-size: 13px; font-weight: 700; color: var(--orange-600); }
.gift-card h3 { font-size: 22px; font-weight: 800; color: var(--green-800); }
.gift-card p { font-size: 13px; color: var(--muted); }
.gift-card .ph-img { aspect-ratio: 16/11; --fs: 56px; }

.gift-card.photo-full { position: relative; overflow: hidden; padding: 0; min-height: 380px; justify-content: flex-end; }
.gift-card.photo-full .gift-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gift-card.photo-full .gift-card-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,30,15,0) 35%, rgba(15,25,10,.78) 100%);
}
.gift-card.photo-full .gift-card-body { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.gift-card.photo-full .kicker { color: #ffd9a8; }
.gift-card.photo-full h3 { color: #fff; margin-top: -8px; }
.gift-card.photo-full p { color: rgba(255,255,255,.85); margin-top: -8px; }

.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sub-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; display: flex; align-items: center; gap: 16px;
}
.sub-card .ph-img { width: 84px; height: 84px; flex-shrink: 0; --fs: 34px; border-radius: var(--radius-sm); }
.sub-card h4 { font-size: 15px; font-weight: 800; color: var(--green-800); margin-bottom: 4px; }
.sub-card p { font-size: 12px; color: var(--muted); }
.sub-card .arrow { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-200); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== Origin video banner ===== */
.origin-video-banner {
  position: relative; overflow: hidden; color: #fff;
  min-height: 460px; display: flex; align-items: center;
  background: var(--green-900);
}
.origin-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.origin-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20,30,15,.88) 0%, rgba(20,30,15,.6) 45%, rgba(20,30,15,.2) 100%);
}
.origin-video-banner .container { position: relative; z-index: 2; }
.origin-copy { padding: 46px 0; }
.origin-copy .tag { font-size: 13px; letter-spacing: 6px; color: var(--green-300); font-weight: 800; margin-bottom: 10px; }
.origin-copy h2 { font-size: 30px; font-weight: 900; margin-bottom: 16px; line-height: 1.3; }
.origin-copy p { color: #d7e5cc; font-size: 14px; margin-bottom: 22px; max-width: 380px; }
.origin-pill {
  position: absolute; top: 24px; right: 24px; z-index: 2; background: #fff; color: var(--green-800);
  border-radius: 50%; width: 108px; height: 108px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; font-size: 11px; font-weight: 800; box-shadow: var(--shadow-md); line-height: 1.4;
}
.origin-pill span:first-child { font-size: 18px; }

/* ===== Products intro (home) ===== */
.products-intro { display: grid; grid-template-columns: 0.7fr 1.6fr; gap: 26px; align-items: center; }
.products-intro .ph-img.hero-melon { aspect-ratio: 1/1; --fs: 130px; border-radius: var(--radius-lg); background: none; }
.products-intro .ph-img.hero-melon::after { display: none; }
.products-intro .ph-img.hero-melon img { object-fit: contain; }
.products-thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.products-thumb-grid figure { background: none; border: none; padding: 0; text-align: center; }
.products-thumb-grid .ph-img { aspect-ratio: 4/3; --fs: 34px; margin-bottom: 10px; border-radius: var(--radius-md); }
.products-thumb-grid figcaption b { display: block; font-size: 13px; color: var(--green-800); }
.products-thumb-grid figcaption span { font-size: 11px; color: var(--muted); }

/* ===== News carousel ===== */
.news-carousel { display: flex; align-items: center; gap: 12px; }
.news-grid {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.news-grid::-webkit-scrollbar { display: none; }
.news-card {
  flex: 0 0 calc((100% - 3 * 20px) / 4); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card .ph-img { aspect-ratio: 4/3; --fs: 40px; border-radius: 0; }
.carousel-btn {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--border); color: var(--green-700); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: background .15s, box-shadow .15s;
}
.carousel-btn:hover { background: var(--green-50, #f2f8ec); box-shadow: var(--shadow); }
.news-card .news-body { padding: 16px; }
.news-card .date { font-size: 12px; color: var(--orange-600); font-weight: 700; margin-bottom: 6px; }
.news-card h4 { font-size: 14px; color: var(--green-800); margin-bottom: 6px; }
.news-card p { font-size: 12px; color: var(--muted); }

/* ===== Product grid (shared) ===== */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Related products marquee (continuous auto-scroll) ===== */
.related-marquee { overflow: hidden; width: 100%; container-type: inline-size; }
.related-marquee .product-grid.carousel-track {
  display: flex; gap: 18px; width: max-content;
  animation: relatedMarquee 34s linear infinite;
}
.related-marquee:hover .product-grid.carousel-track { animation-play-state: paused; }
.related-marquee .product-grid.carousel-track .product-card { width: calc((100cqw - 4 * 18px) / 5); flex-shrink: 0; }
@keyframes relatedMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card .ph-img { aspect-ratio: 1/1; --fs: 46px; border-radius: 0; }
.product-card .fav-btn {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 2; color: var(--muted);
}
.product-card .fav-btn:hover { color: var(--orange-500); }
.product-card .card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-card .card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h4 { font-size: 14px; font-weight: 700; color: var(--green-800); }
.product-card .spec { font-size: 11px; color: var(--muted); }
.product-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.product-card .price { font-size: 16px; font-weight: 800; color: var(--orange-600); }
.product-card .price .old { font-size: 12px; color: #b3ac96; text-decoration: line-through; font-weight: 500; margin-left: 4px; }
.add-cart-btn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--green-600); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s;
}
.add-cart-btn:hover { background: var(--green-700); }

/* ===== Team banner ===== */
.team-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; text-align: left; padding: 60px;
  min-height: 400px; display: flex; align-items: center; justify-content: flex-start;
}
.team-banner .ph-img { position: absolute; inset: 0; border-radius: 0; --fs: 0; z-index: 0; }
.team-banner .team-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.75) 40%, rgba(255,255,255,0) 70%);
}
.team-banner .team-copy { position: relative; z-index: 2; max-width: 460px; }
.team-banner h2 { font-size: 26px; font-weight: 900; color: var(--green-800); margin: 6px 0 10px; }
.team-banner p { color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--cream-100); border-top: 1px solid var(--border); padding: 56px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-about p { font-size: 13px; color: var(--muted); margin: 14px 0 16px; max-width: 240px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--green-700); }
.footer-social a:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.footer-social svg { width: 16px; height: 16px; }
.footer-social a.social-line:hover { background: #fff; border-color: var(--border); }
.footer-col h5 { font-size: 14px; color: var(--green-800); margin-bottom: 14px; font-weight: 800; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); }
.footer-col ul li a:hover { color: var(--green-600); }
.footer-contact h5 { font-size: 14px; color: var(--green-800); margin-bottom: 14px; font-weight: 800; }
.footer-contact p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px;
}

/* ===== Trust strip ===== */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-strip .item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green-800); }
.trust-strip .icon-circle { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-200); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* ===== Product detail page ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 30px 0 50px; }
.gallery-main { aspect-ratio: 1/1; --fs: 130px; margin-bottom: 14px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery-thumbs .ph-img { aspect-ratio: 1/1; --fs: 26px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs .ph-img.active { border-color: var(--green-500); }

.pd-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pd-title-row h1 { font-size: 24px; font-weight: 800; color: var(--green-900); }
.pd-tagline { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pd-price .now { font-size: 30px; font-weight: 900; color: var(--orange-600); }
.pd-price .was { font-size: 16px; color: #b3ac96; text-decoration: line-through; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.stars { color: var(--gold-500); letter-spacing: 1px; }

.pd-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pd-features .feat { text-align: center; font-size: 12px; color: var(--green-800); font-weight: 700; }
.pd-features .feat .ic { font-size: 22px; display: block; margin-bottom: 6px; }
.pd-features .feat .ic svg { width: 22px; height: 22px; }
.pd-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }

.option-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.option-row .label { font-size: 13px; color: var(--muted); width: 70px; flex-shrink: 0; }
.option-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-choice {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted);
}
.pill-choice.selected { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 34px; height: 34px; font-size: 16px; color: var(--green-700); }
.qty-stepper button:hover { background: var(--cream-100); }
.qty-stepper input { width: 42px; text-align: center; border: none; font-weight: 700; }

.pd-actions { display: flex; gap: 12px; margin: 22px 0 16px; }
.pd-actions .btn { flex: 1; }
.pd-links { display: flex; gap: 24px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pd-links span { display: inline-flex; align-items: center; gap: 6px; }
.free-shipping-note {
  background: var(--cream-100); border: 1px dashed var(--green-400); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 12.5px; color: var(--green-700); font-weight: 700; text-align: center;
}

/* ===== Tabs ===== */
.tab-bar { display: flex; gap: 34px; border-bottom: 1.5px solid var(--border); margin-bottom: 34px; }
.tab-bar button { padding: 14px 2px; font-weight: 700; color: var(--muted); position: relative; font-size: 15px; }
.tab-bar button.active { color: var(--green-700); }
.tab-bar button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2.5px; background: var(--green-600); border-radius: 2px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.feature-photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.feature-photo img { width: 100%; height: auto; display: block; }

.spec-tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 10px; }
.spec-card, .tips-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.spec-card h4, .tips-card h4 { font-size: 16px; color: var(--green-800); font-weight: 800; margin-bottom: 16px; }
.spec-table tr td { padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--cream-200); }
.spec-table tr td:first-child { color: var(--muted); width: 90px; }
.spec-table tr td:last-child { color: var(--text); font-weight: 600; }
.tip-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.tip-item .ic { font-size: 20px; }
.tip-item .ic svg { width: 20px; height: 20px; }
.tip-item b { display: block; font-size: 13.5px; color: var(--green-800); }
.tip-item span { font-size: 12px; color: var(--muted); }

.reviews-grid { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.review-card { background: #fff; border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 18px 4px; }
.review-card:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-300); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--green-800); font-size: 13px; }
.review-name { font-size: 13px; font-weight: 700; color: var(--green-800); }
.review-time { font-size: 11px; color: var(--muted); margin-left: auto; }
.review-card p { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ===== Cart page ===== */
.cart-hero {
  background: linear-gradient(180deg, #eef6e2, var(--cream-50)); position: relative; overflow: hidden;
  min-height: 300px; display: flex; align-items: center;
}
.cart-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.92) 0%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.15) 100%);
}
.cart-hero-inner { text-align: center; position: relative; z-index: 2; width: 100%; }
.cart-hero h1 { font-size: 26px; color: var(--green-900); font-weight: 900; margin-bottom: 8px; }
.cart-hero p { color: var(--muted); font-size: 14px; }

@media (min-width: 981px) {
  .cart-hero-scrim {
    background: linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.7) 40%, rgba(255,255,255,0) 68%);
  }
  .cart-hero-inner { text-align: center; max-width: 480px; margin-left: 25%; transform: translateX(-50%); }
  .cart-hero h1 { font-size: 40px; margin-bottom: 12px; }
  .cart-hero p { font-size: 16px; }
}
.cart-hero .float-melon { position: absolute; --fs: 70px; width: 130px; height: 130px; border-radius: 50%; opacity: .9; }
.cart-hero .float-melon.left { left: 4%; top: 10%; }
.cart-hero .float-melon.right { right: 4%; top: 4%; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px 0 10px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.step span { white-space: nowrap; }
.step .dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.step.active .dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.step.active span { color: var(--green-700); }
.step-line { width: 70px; height: 2px; background: var(--border); margin-bottom: 22px; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: flex-start; padding: 20px 0 50px; }
.cart-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 24px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12.5px; color: var(--muted); padding: 16px 6px; border-bottom: 1px solid var(--border); font-weight: 700; }
.cart-table td { padding: 18px 6px; border-bottom: 1px solid var(--cream-200); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-info .ph-img { width: 74px; height: 74px; flex-shrink: 0; --fs: 30px; }
.cart-item-info h4 { font-size: 14px; color: var(--green-800); margin-bottom: 4px; }
.cart-remove { color: #c2ab8f; }
.cart-remove:hover { color: var(--orange-600); }
.cart-actions-row { display: flex; justify-content: space-between; padding: 16px 6px 8px; font-size: 13px; }
.cart-actions-row a { color: var(--muted); font-weight: 700; }
.cart-actions-row a:hover { color: var(--green-700); }

.coupon-box, .shipping-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; margin-top: 20px; }
.coupon-box h4, .shipping-box h4 { font-size: 15px; color: var(--green-800); font-weight: 800; margin-bottom: 14px; }
.coupon-input-row { display: flex; gap: 10px; margin-bottom: 16px; }
.coupon-input-row input { flex: 1; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 13px; }
.coupon-avail { display: flex; align-items: center; justify-content: space-between; background: var(--cream-100); border-radius: var(--radius-sm); padding: 12px 16px; gap: 10px; }
.coupon-avail b { display: block; font-size: 13px; color: var(--green-800); }
.coupon-avail span { font-size: 11px; color: var(--muted); }
.shipping-box ul li { font-size: 13px; color: var(--muted); margin-bottom: 10px; padding-left: 18px; position: relative; }
.shipping-box ul li::before { content: "•"; position: absolute; left: 2px; color: var(--green-500); }

.summary-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.summary-box h4 { font-size: 16px; font-weight: 800; color: var(--green-800); margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.summary-row.discount { color: var(--orange-600); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--border); margin-bottom: 6px; }
.summary-total b { font-size: 22px; color: var(--orange-600); }
.summary-save { font-size: 12px; color: var(--green-600); margin-bottom: 18px; }
.member-box { margin-top: 18px; background: var(--cream-100); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.member-box p { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.summary-trust { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.summary-trust div { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }

/* ===== Shop page ===== */
.shop-hero {
  position: relative; overflow: hidden; background: linear-gradient(135deg, #eef8df 0%, #dcefc0 55%, #cbe6ab 100%);
  border-radius: var(--radius-lg); min-height: 260px; display: flex; align-items: center; margin-top: 18px;
}
.shop-hero h1 { font-size: 36px; font-weight: 900; color: var(--green-900); margin: 8px 0; }
.shop-hero p { color: var(--muted); font-size: 14px; max-width: 460px; }

@media (min-width: 981px) {
  .shop-hero { border-radius: 36px; min-height: 440px; }
}

.cat-tabs { display: none; gap: 10px; flex-wrap: wrap; padding: 26px 0; }
.cat-tabs button { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 13.5px; font-weight: 700; color: var(--muted); background: #fff; }
.cat-tabs button.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; padding-bottom: 60px; margin-top: 40px; }
.filter-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 18px; }
.filter-box h5 { font-size: 14px; color: var(--green-800); font-weight: 800; margin-bottom: 14px; }
.filter-list li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 7px 0; cursor: pointer; }
.filter-list li:hover { color: var(--green-700); }
.filter-list li.active { color: var(--green-700); font-weight: 700; }
.filter-list input[type=checkbox] { margin-right: 8px; accent-color: var(--green-600); }
.filter-list .count { color: #b3ac96; font-size: 12px; }
.price-range { padding: 6px 4px 0; }
.price-range input[type=range] { width: 100%; accent-color: var(--green-600); }
.price-range .labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.promo-box { background: #86946c; color: #fff; border-radius: var(--radius-md); padding: 20px; text-align: center; margin-bottom: 18px; }
.promo-box p { font-size: 13px; margin: 8px 0 14px; opacity: .9; }
.help-box { background: var(--cream-100); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.help-box p { font-size: 12.5px; color: var(--muted); margin: 8px 0 14px; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.shop-toolbar .count { font-size: 13.5px; color: var(--muted); }
.shop-toolbar .count b { color: var(--green-800); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.toolbar-right select { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); }
.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.view-toggle button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.view-toggle button.active { background: var(--green-600); color: #fff; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; }
.pagination button { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--muted); }
.pagination button.active { background: var(--green-600); color: #fff; }
.pagination button:hover:not(.active) { background: var(--cream-100); }
.per-page { font-size: 13px; color: var(--muted); margin-left: 14px; }
.per-page select { border: 1.5px solid var(--border); border-radius: 999px; padding: 6px 12px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ph-img { width: 120px; height: 120px; margin: 0 auto 20px; --fs: 46px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .product-detail, .products-intro, .cart-layout, .shop-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-about { grid-column: 1 / -1; }
  .hero-slide { min-height: 380px; }
  .origin-video-banner { min-height: 380px; }
  .hero-copy { padding: 32px 24px; max-width: 100%; }
  .gift-grid, .sub-grid, .reviews-grid, .products-thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  #shop-grid { grid-template-columns: repeat(2, 1fr); }
  .view-toggle { display: none; }
  .related-marquee .product-grid.carousel-track .product-card { width: calc((100cqw - 2 * 18px) / 3); }
  .pd-features, .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-tips-grid { grid-template-columns: 1fr; }
  .news-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 640px) {
  .news-card { flex-basis: 85%; }
  #news .section-heading { flex-wrap: nowrap; gap: 10px; }
  #news .section-heading h2 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #news .section-heading .btn-sm { flex-shrink: 0; padding: 8px 12px; font-size: 12px; }
  .related-marquee .product-grid.carousel-track .product-card { width: calc((100cqw - 18px) / 2); }
  .tab-bar { gap: 20px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-bar button { white-space: nowrap; flex-shrink: 0; }
  .cart-table-wrap { padding: 6px 14px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 16px 0; border-bottom: 1px solid var(--cream-200); }
  .cart-table tr:last-child { border-bottom: none; }
  .cart-table td { border-bottom: none; padding: 6px 0; }
  .cart-table td[data-label="商品資訊"] .cart-item-info { align-items: flex-start; }
  .cart-table td:not([data-label="商品資訊"]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cart-table td:not([data-label="商品資訊"])::before {
    content: attr(data-label); font-size: 12.5px; color: var(--muted); font-weight: 700; flex-shrink: 0;
  }
  .summary-box { position: static; }
}

@media (max-width: 640px) {
  .hero-slide[data-slide="0"] .hero-media img { object-position: 75% center; }
  .gift-grid { grid-template-columns: 1fr; }
  .team-banner .ph-img img { object-position: 80% center; }
  .team-banner { align-items: flex-end; padding-bottom: 32px; }
  .team-banner .team-scrim {
    background: linear-gradient(180deg, rgba(220,194,149,0) 0%, rgba(220,194,149,.75) 84%, rgba(220,194,149,.97) 100%);
  }
  .team-banner .eyebrow { margin-bottom: 2px; }
  .team-banner h2 { margin: 2px 0 4px; }
  .team-banner p { color: #fff; }
  .stepper { gap: 6px; }
  .step { font-size: 11.5px; gap: 7px; }
  .step .dot { width: 30px; height: 30px; }
  .step-line { width: 30px; margin-bottom: 20px; }
}
