/* 盈康 — layout mirroring Suntory HK Wellness Online structure (brand: 盈康 only) */
:root {
  --orange: #E87722;
  --orange-dk: #d46a1a;
  --orange-lt: #f0933d;
  --nav-text: #8B5A2B;
  --ink: #333;
  --muted: #656565;
  --line: #e6e5e4;
  --paper: #fff;
  --blue-icon: #7eb8d4;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 15px;
}
a { color: var(--orange); text-underline-offset: 0.12em; }
a:hover { color: var(--orange-dk); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }

/* ===== 1. Top utility row ===== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0.75rem 1rem 0.55rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink);
}
.brand img { height: 48px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-weight: 900; font-size: 1.35rem; color: var(--orange);
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.72rem; color: #5a7a9a; font-weight: 700; margin-top: 2px;
}
.topbar-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem;
}
.top-actions {
  display: flex; align-items: center; gap: 0.4rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--orange); color: #fff !important; text-decoration: none;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.28rem 0.75rem; border-radius: 4px;
  border: none; cursor: pointer; font-family: inherit;
}
.pill:hover { background: var(--orange-dk); color: #fff !important; }
.pill .ico { font-size: 0.85rem; line-height: 1; }
.search-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--orange); font-size: 1.15rem; padding: 0.15rem 0.35rem;
  line-height: 1;
}
.search-btn:hover { color: var(--orange-dk); }
.wa-box {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--orange); color: #fff !important; text-decoration: none;
  font-weight: 800; font-size: 1.05rem;
  padding: 0.45rem 1rem; border-radius: 4px;
  min-width: 200px; justify-content: center;
}
.wa-box:hover { background: var(--orange-dk); color: #fff !important; }
.wa-box .wa-ico { font-size: 1.1rem; }

/* ===== 2. White main nav ===== */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 0.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
}
.nav a {
  color: var(--nav-text); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 0.7rem 1.15rem; display: inline-block;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--orange); border-bottom-color: var(--orange);
}

/* ===== 3. Orange announcement ribbon ===== */
.announce {
  background: var(--orange); color: #fff;
  text-align: center; font-weight: 700; font-size: 0.92rem;
  padding: 0.55rem 1rem; letter-spacing: 0.04em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 800; font-size: 0.95rem;
  text-decoration: none; border-radius: 3px; padding: 0.75rem 1.3rem;
  border: 2px solid transparent; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dk); color: #fff; border-color: var(--orange-dk); }
.btn-outline { background: #fff; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: #fff7ef; color: var(--orange-dk); }
.btn-dark { background: #444; color: #fff; border-color: #444; }
.btn-dark:hover { background: #222; color: #fff; }
.btn-faq {
  background: #fff; color: #5a8fb0; border: 2px solid #7eb8d4;
  border-radius: 999px; padding: 0.55rem 1.6rem; font-weight: 700;
  text-decoration: none; display: inline-block;
}
.btn-faq:hover { background: #f0f7fb; color: #3a6f90; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0; }

/* ===== 4. Hero carousel ===== */
.carousel {
  position: relative; overflow: hidden; background: #f5f5f5;
}
.carousel-track { display: flex; transition: transform .45s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img {
  width: 100%; height: auto; aspect-ratio: 1440/400; object-fit: cover;
}
.carousel-slide .hero-css {
  width: 100%; aspect-ratio: 1440/400;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; text-align: center; color: #fff;
}
.hero-css h2 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 900; }
.hero-css p { margin: 0; font-size: clamp(0.9rem, 2vw, 1.15rem); opacity: 0.95; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(120,120,120,.45); cursor: pointer; padding: 0;
}
.carousel-dots button.on { background: var(--orange); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.28); color: #fff; border: 0;
  width: 36px; height: 48px; cursor: pointer; font-size: 1.2rem; z-index: 2;
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* ===== 5. Promo strip ===== */
.promo-strip {
  max-width: var(--max); margin: 1.2rem auto 0.4rem; padding: 0 1rem;
}
.promo-row {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 0.75rem;
}
@media (min-width: 700px) {
  .promo-row.two { grid-template-columns: 1fr 1fr; }
}
.promo-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 4px; overflow: hidden; min-height: 120px;
  position: relative;
}
.promo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/6; }
.promo-card .promo-inner {
  padding: 1.4rem 1.3rem; color: #fff; min-height: 120px;
  display: flex; flex-direction: column; justify-content: center;
}
.promo-card.full .promo-inner { min-height: 110px; }
.promo-card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 900; color: #fff; }
.promo-card p { margin: 0; font-size: 0.88rem; opacity: 0.95; color: #fff; }
.promo-a { background: linear-gradient(135deg, #e87722, #f0a050); }
.promo-b { background: linear-gradient(135deg, #5a9fd4, #7ec8e8); }
.promo-c { background: linear-gradient(135deg, #6b8f3a, #a8c96a); }

/* ===== 6. Product overview cards (homepage 商品一覽) ===== */
.section { padding: 1.5rem 0; }
.banner-product {
  width: 100%; display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: space-between; padding: 0.8rem 0 1.5rem;
}
.banner-product-title {
  font-size: 24px; color: #444; text-align: center;
  margin: 10px auto 18px; width: 100%; font-weight: 900;
}
.home-card {
  width: 48%; margin: 6px auto; display: block;
  border: 1px solid var(--line); border-radius: 3px; background: #fff;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.home-card:hover {
  border-color: var(--orange); box-shadow: 0 4px 14px rgba(232,119,34,.15); color: inherit;
}
.home-card-img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: linear-gradient(160deg, #fff5eb, #f0f7fb 60%, #fafafa);
  padding: 0.6rem;
}
.home-card-body { text-align: center; padding: 0.5rem 0.6rem 0.9rem; }
.home-card-name {
  color: var(--orange); font-weight: 900; font-size: 0.95rem;
  margin: 0.3rem 0 0.45rem; min-height: 2.6em;
  display: flex; align-items: center; justify-content: center;
}
.home-card-tags {
  display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; margin-bottom: 0.5rem;
}
.home-card-tags span {
  display: inline-block; background: #e8f4fa; color: #3a7a9a;
  font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px;
}
.home-card-blurb {
  font-size: 0.78rem; color: #555; line-height: 1.45;
  padding-top: 0.45rem; border-top: 1px solid #eee; margin-top: 0.2rem;
  min-height: 2.8em;
}
@media (min-width: 768px) {
  .home-card { width: 24%; margin: 4px auto; }
  .home-card-name { font-size: 1rem; }
}

/* legacy product block (PDP related) */
.banner-product-block {
  width: 48%; margin: 6px auto; display: block;
  border: 2px solid var(--line); border-radius: 3px; background: #fff;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.banner-product-block:hover {
  border-color: var(--orange); box-shadow: 0 4px 14px rgba(232,119,34,.15); color: inherit;
}
.product-img { width: 100%; background: #fafafa; }
.product-img img { width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0 auto; }
.product-text { text-align: center; }
.product-title {
  display: flex; min-height: 56px; font-size: 16px; padding: 12px 8px 0;
  margin: 0; font-weight: 900; align-items: center; justify-content: center;
  color: var(--orange);
}
.product-content {
  font-size: 14px; color: #4e4e4e; font-weight: 700;
  padding: 10px 8px 16px; min-height: 72px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.product-price {
  font-size: 15px; font-weight: 900; color: var(--orange);
  padding: 0 8px 14px;
}
@media (min-width: 768px) {
  .banner-product-block { width: 24%; margin: 4px auto; }
}

/* ===== 7. Trust badge box ===== */
.trust-box {
  max-width: var(--max); margin: 0.5rem auto 1.5rem; padding: 0 1rem;
}
.trust-box-inner {
  border: 2px solid #7eb8d4; border-radius: 4px;
  padding: 1.2rem 1.4rem 1.3rem; position: relative; background: #fff;
  text-align: center;
}
.trust-box-title {
  display: inline-block; background: #fff; color: var(--orange);
  font-weight: 900; font-size: 1.15rem; padding: 0 0.8rem;
  position: relative; margin-top: -0.3rem; margin-bottom: 0.8rem;
}
.trust-checks {
  list-style: none; padding: 0; margin: 0; text-align: left;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.trust-checks li {
  padding: 0.35rem 0; font-size: 0.95rem; color: #444;
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.trust-checks li::before {
  content: "✓"; color: var(--orange); font-weight: 900; flex-shrink: 0;
}

/* ===== 8. Latest news ===== */
.news-section {
  max-width: var(--max); margin: 0 auto 1.8rem; padding: 0 1rem;
}
.news-header {
  background: var(--orange); color: #fff; font-weight: 900;
  padding: 0.55rem 1rem; font-size: 1.05rem;
}
.news-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-top: none;
}
.news-list li {
  display: flex; gap: 1rem; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.news-list li:last-child { border-bottom: none; }
.news-date { color: var(--muted); font-weight: 700; white-space: nowrap; min-width: 6.5em; }
.news-list a { color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--orange); }

/* ===== 9. Service icons ===== */
.service-icons {
  max-width: var(--max); margin: 0 auto 1.5rem; padding: 0 1rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  text-align: center;
}
@media (min-width: 700px) {
  .service-icons { grid-template-columns: repeat(3, 1fr); }
}
.service-item .svc-ico {
  width: 64px; height: 64px; margin: 0 auto 0.7rem;
  color: var(--blue-icon); stroke: var(--blue-icon); fill: none;
}
.service-item h4 {
  margin: 0 0 0.4rem; font-size: 1rem; color: #444; font-weight: 800;
}
.service-item p {
  margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}
.faq-cta { text-align: center; margin: 0.5rem 0 2rem; }

/* ===== 10. Contact duplex ===== */
.footer-upper {
  background: #fff; border-top: 1px solid var(--line); padding: 1.6rem 0 1.2rem;
}
.footer-phones {
  display: grid; grid-template-columns: 1fr; gap: 1rem; justify-items: center;
}
@media (min-width: 700px) { .footer-phones { grid-template-columns: 1fr 1fr; } }
.phone-box {
  display: flex; align-items: center; gap: 0.85rem;
  border: 2px solid var(--orange); border-radius: 6px;
  padding: 0.95rem 1.3rem; text-decoration: none; color: inherit;
  min-width: min(100%, 360px); background: #fff;
}
.phone-box .icon { font-size: 1.7rem; color: var(--blue-icon); }
.phone-box .label { font-size: 0.95rem; text-decoration: underline; color: #444; }
.phone-box .num { font-size: 1.45rem; font-weight: 900; color: var(--orange); line-height: 1.2; }

/* ===== 11. Footer ===== */
.pay-logos {
  display: flex; justify-content: center; align-items: center; gap: 1.2rem;
  padding: 1rem 0 0.6rem; flex-wrap: wrap;
}
.pay-logos span {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #ddd; border-radius: 4px; padding: 0.25rem 0.7rem;
  font-size: 0.72rem; font-weight: 800; color: #666; background: #fff;
  letter-spacing: 0.02em;
}
.footer-orange {
  background: var(--orange); color: #fff; text-align: center;
  padding: 0.75rem 1rem;
}
.footer-orange a {
  color: #fff; text-decoration: none; margin: 0 0.75rem; font-size: 0.88rem; font-weight: 700;
}
.footer-orange a:hover { text-decoration: underline; color: #fff; }
.footer-legal-area {
  background: #fff; text-align: center; padding: 1rem 1rem 2.2rem;
  font-size: 0.78rem; color: #888; line-height: 1.65;
}
.back-top {
  position: fixed; right: 14px; bottom: 18px; z-index: 60;
  width: 36px; height: 36px; background: #9a9a9a; color: #fff;
  border: none; border-radius: 2px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.back-top:hover { background: #777; color: #fff; }

/* ===== Products listing page ===== */
.catalog-layout {
  max-width: var(--max); margin: 0 auto; padding: 1rem 1rem 2rem;
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
}
@media (min-width: 860px) {
  .catalog-layout { grid-template-columns: 200px 1fr; gap: 1.6rem; }
}
.catalog-sidebar { font-size: 0.9rem; }
.side-search {
  display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  margin-bottom: 1rem;
}
.side-search input {
  flex: 1; border: 0; padding: 0.5rem 0.65rem; font-family: inherit; font-size: 0.88rem;
  outline: none;
}
.side-search button {
  background: var(--orange); color: #fff; border: 0; padding: 0 0.7rem; cursor: pointer;
}
.side-cat-title {
  font-weight: 900; color: #444; margin: 0 0 0.5rem; font-size: 1rem;
  padding-bottom: 0.35rem; border-bottom: 2px solid var(--orange); display: inline-block;
}
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-bottom: 1px solid #f0f0f0; }
.side-cats a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0; text-decoration: none; color: #555; font-size: 0.88rem;
}
.side-cats a:hover, .side-cats a.is-on { color: var(--orange); font-weight: 700; }
.side-cats .cnt { color: #999; font-size: 0.8rem; }

.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem; margin-bottom: 1rem;
}
.crumb { font-size: 0.88rem; color: var(--muted); margin: 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--orange); }
.catalog-title {
  font-size: 1.35rem; font-weight: 900; color: #444; margin: 0 0 0.8rem;
}
.sort-ui {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}
.sort-ui select {
  font-family: inherit; font-size: 0.82rem; padding: 0.3rem 0.5rem;
  border: 1px solid var(--line); border-radius: 3px; color: #555; background: #fff;
}
.plist {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}
@media (min-width: 600px) { .plist { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .plist { grid-template-columns: repeat(4, 1fr); } }
.plist-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid transparent; border-radius: 3px; padding: 0.3rem;
  transition: border-color .12s, box-shadow .12s;
}
.plist-card:hover {
  border-color: var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.06); color: inherit;
}
.plist-img-wrap {
  position: relative; background: #fafafa; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.plist-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 0.4rem; }
.plist-badge {
  position: absolute; top: 6px; left: 0;
  background: #3cb371; color: #fff; font-size: 0.68rem; font-weight: 800;
  padding: 0.2rem 0.45rem; border-radius: 0 3px 3px 0;
}
.plist-badge.blue { background: #4a90c8; }
.plist-name {
  font-size: 0.88rem; font-weight: 700; color: #444; margin: 0.5rem 0 0.25rem;
  min-height: 2.6em; line-height: 1.35;
}
.plist-size { font-size: 0.78rem; color: #888; margin: 0 0 0.25rem; }
.plist-price {
  font-size: 1rem; font-weight: 900; color: var(--orange); margin: 0;
}
.plist-price .was {
  font-size: 0.8rem; color: #aaa; text-decoration: line-through; font-weight: 500; margin-right: 0.35rem;
}

/* ===== PDP ===== */
.pdp {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
  padding: 0.5rem 0 1.5rem;
}
@media (min-width: 760px) {
  .pdp { grid-template-columns: minmax(260px, 480px) 1fr; gap: 2rem; align-items: start; }
}
.gallery .main {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  border: 1px solid var(--line); background: #fafafa;
}
.gallery .thumbs { display: flex; gap: 0.45rem; margin-top: 0.55rem; flex-wrap: wrap; }
.gallery .thumbs img {
  width: 64px; height: 64px; object-fit: contain;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.pdp h1 { font-size: clamp(1.35rem, 3vw, 1.75rem); color: #333; margin: 0 0 0.5rem; }
.price-row { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; margin: 0.8rem 0; }
.price-now { font-size: 1.6rem; font-weight: 900; color: var(--orange); }
.price-was { font-size: 0.95rem; color: #999; text-decoration: line-through; }
.sold { font-size: 0.85rem; color: #888; }
.stock { display: inline-block; background: #fff3e6; color: var(--orange); font-weight: 800; font-size: 0.85rem; padding: 0.25rem 0.6rem; border-radius: 3px; }
.block { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.block h2 {
  font-size: 1.15rem; color: var(--muted); margin: 0 0 0.8rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.block ul { margin: 0.2rem 0 0.5rem; padding-left: 1.15rem; }
.block li { margin: 0.35rem 0; }
.ing-notes { list-style: none; padding: 0; margin: 0; }
.ing-notes li {
  padding: 0.7rem 0.85rem; margin: 0.4rem 0;
  background: #fffaf5; border-left: 3px solid var(--orange);
}

/* About / misc */
.about-hero {
  background: linear-gradient(120deg, #fff7ef, #fff); padding: 2.2rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.about-hero h1 { color: #7E410A; margin: 0 0 0.6rem; }
.proof-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 1rem 0;
}
@media (min-width: 640px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
.proof-card {
  border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.1rem; background: #fff;
}
.proof-card h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.filters a {
  text-decoration: none; font-size: 0.85rem; font-weight: 700;
  padding: 0.35rem 0.75rem; border: 1px solid var(--line); color: var(--muted); border-radius: 3px;
}
.filters a:hover, .filters a.is-on { color: #fff; background: var(--orange); border-color: var(--orange); }

/* Search overlay shell */
.search-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 100; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.search-overlay.open { display: flex; }
.search-panel {
  background: #fff; padding: 1.2rem; border-radius: 6px; width: min(92vw, 420px);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.search-panel input {
  width: 100%; padding: 0.65rem 0.8rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--orange); border-radius: 4px; outline: none;
}
.search-panel .hint { font-size: 0.8rem; color: #888; margin-top: 0.5rem; }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .wa-box { font-size: 0.92rem; min-width: 0; padding: 0.4rem 0.75rem; }
  .pill { font-size: 0.72rem; padding: 0.25rem 0.55rem; }
  .nav a { padding: 0.6rem 0.7rem; font-size: 0.85rem; }
}
