/* ==========================================================================
   DoggyWalker 犬行犬意 — 前台樣式
   Design tokens 可由後台「系統設定 > 品牌色彩」覆寫（layout 內輸出 :root）
   ========================================================================== */
:root {
  --cream: #FFF8ED;
  --beige: #F4E6CF;
  --mustard: #E7B64D;
  --coral: #E9827D;
  --brown: #3F3028;
  --sage: #9AB8A1;
  --surface: #FFFFFF;
  --line: #E9DCC8;

  --mustard-dark: #C9952B;
  --mustard-soft: #FBEFD2;
  --coral-dark: #C85D58;
  --coral-soft: #FCE6E3;
  --sage-dark: #5E8468;
  --sage-soft: #E5EFE7;
  --text: var(--brown);
  --muted: #7A685B;
  --danger: #B9433D;
  --success: #3F7A4E;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(63, 48, 40, .06), 0 1px 3px rgba(63, 48, 40, .05);
  --shadow: 0 6px 20px rgba(63, 48, 40, .08);
  --shadow-lg: 0 14px 40px rgba(63, 48, 40, .12);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 76px;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Comic Sans MS", "Chalkboard SE", "Bradley Hand", cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--coral-dark); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; letter-spacing: .01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--mustard-dark); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 40px; padding-bottom: 40px; }
.section--tight { padding-top: 24px; padding-bottom: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; }
.section-title .icon { color: var(--mustard); width: 1.3em; height: 1.3em; }
.section-sub { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 88px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .grid { gap: 20px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--mustard); --btn-fg: var(--brown); --btn-bd: var(--mustard);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { --btn-bg: var(--mustard); --btn-bd: var(--mustard); }
.btn--primary:hover { --btn-bg: #EDBF5C; }
.btn--outline { --btn-bg: var(--surface); --btn-fg: var(--brown); --btn-bd: var(--brown); }
.btn--ghost { --btn-bg: transparent; --btn-bd: var(--line); }
.btn--coral { --btn-bg: var(--coral); --btn-bd: var(--coral); --btn-fg: #fff; }
.btn--dark { --btn-bg: var(--brown); --btn-bd: var(--brown); --btn-fg: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--brown); border: 2px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: var(--radius-pill); font-size: .9rem; }
.link-arrow:hover { border-color: var(--mustard); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; line-height: 1.7; background: var(--beige); color: var(--brown); }
.badge--coral { background: var(--coral); color: #fff; }
.badge--mustard { background: var(--mustard); color: var(--brown); }
.badge--sage { background: var(--sage-soft); color: var(--sage-dark); }
.badge--line { background: var(--surface); border: 1px solid var(--line); }
.badge--muted { background: #eee6da; color: var(--muted); }

/* ---------- Announcement + Header ---------- */
.announcement { background: var(--mustard); color: var(--brown); font-size: .875rem; font-weight: 700; text-align: center; padding: 6px var(--gutter); }
.announcement a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
@media (max-width: 399px) { .header-action[data-mobile-only] { display: none; } .site-header__inner { gap: 8px; } }
@media (min-width: 400px) and (max-width: 1023px) { .brand img { height: 54px; } }
.main-nav { display: none; }
.header-search { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-action { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 12px; text-decoration: none; color: var(--brown); background: none; border: 0; cursor: pointer; font-size: .7rem; line-height: 1.1; }
.header-action .icon { width: 24px; height: 24px; }
.header-action:hover { background: var(--cream); color: var(--brown); }
.header-action__label { display: none; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.cart-count[data-count="0"] { display: none; }
@media (min-width: 1024px) {
  :root { --header-h: 96px; }
  .site-header .container { max-width: 1440px; }
  .brand img { height: 66px; }
  .main-nav { display: flex; gap: 2px; margin-left: 12px; }
  .main-nav a { padding: 9px 11px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
  .main-nav a:hover, .main-nav a[aria-current] { background: var(--mustard-soft); color: var(--brown); }
  .header-search { display: none; margin-left: auto; position: relative; }
  .header-search input { width: 200px; height: 42px; padding: 0 44px 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--cream); }
  .header-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
  .header-actions { margin-left: 8px; }
  .header-action { min-width: 52px; height: 52px; }
  .header-action__label { display: block; margin-top: 2px; }
  .menu-toggle { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .header-actions { margin-left: auto; }
  .header-action[data-mobile-only] { display: inline-flex !important; }
}
@media (min-width: 1280px) {
  :root { --header-h: 108px; }
  .brand img { height: 80px; }
  .main-nav { gap: 4px; margin-left: 20px; }
  .main-nav a { padding: 10px 15px; font-size: 1.1rem; }
}
@media (min-width: 1440px) {
  .header-search { display: flex; }
  .header-search input { width: 160px; height: 46px; font-size: 1rem; }
  .header-search button { top: 6px; }
}
@media (min-width: 1600px) { .header-search input { width: 187px; } }

/* Mobile drawer */
/* 右側滑出選單 */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; transition: visibility 0s linear .32s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(40, 30, 24, .45); opacity: 0; transition: opacity .32s ease; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--surface); padding: 16px; overflow-y: auto; box-shadow: var(--shadow-lg); border-radius: 20px 0 0 20px; transform: translateX(100%); transition: transform .32s cubic-bezier(.22, .8, .3, 1); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer nav a { opacity: 0; transform: translateX(16px); transition: opacity .25s ease, transform .25s ease; }
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer.is-open nav a:nth-child(1) { transition-delay: .08s; } .drawer.is-open nav a:nth-child(2) { transition-delay: .11s; }
.drawer.is-open nav a:nth-child(3) { transition-delay: .14s; } .drawer.is-open nav a:nth-child(4) { transition-delay: .17s; }
.drawer.is-open nav a:nth-child(5) { transition-delay: .2s; } .drawer.is-open nav a:nth-child(6) { transition-delay: .23s; }
.drawer.is-open nav a:nth-child(7) { transition-delay: .26s; } .drawer.is-open nav a:nth-child(8) { transition-delay: .29s; }
.drawer.is-open nav a:nth-child(9) { transition-delay: .32s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__head img { height: 44px; width: auto; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.drawer form { display: flex; gap: 8px; margin: 8px 0 12px; }
.drawer form input { flex: 1; min-width: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 12px 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "›"; color: #b9a896; margin-right: 2px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current] { color: var(--brown); font-weight: 700; }

/* ---------- Flash / Toast ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 12px; left: 12px; z-index: 120; display: grid; gap: 8px; pointer-events: none; }
@media (min-width: 640px) { .flash-stack { left: auto; width: 380px; } }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); border-left: 5px solid var(--sage); animation: toast-in .25s ease; }
.toast--error { border-left-color: var(--danger); }
.toast--success { border-left-color: var(--success); }
.toast__close { margin-left: auto; background: none; border: 0; cursor: pointer; padding: 2px; color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--mustard-soft); border: 1px solid #f1d899; font-size: .95rem; }
.notice .icon { color: var(--mustard-dark); margin-top: 3px; }
.notice--info { background: var(--sage-soft); border-color: #cfe0d3; }
.notice--info .icon { color: var(--sage-dark); }
.notice--warn { background: var(--coral-soft); border-color: #f3c6c1; }
.notice--warn .icon { color: var(--coral-dark); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.card__body { padding: 16px; }
.panel { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 20px; }
.panel--cream { background: #FFFCF6; }
@media (min-width: 768px) { .panel { padding: 28px; } }

/* Product card */
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; height: 100%; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__media { position: relative; aspect-ratio: 1; background: var(--beige); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__title { font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.45; }
.product-card__title a { text-decoration: none; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card__desc { font-size: .85rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.product-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-card__stock { font-size: .78rem; font-weight: 700; }
.is-out { color: var(--danger); }
.is-low { color: var(--coral-dark); }

/* Price */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.price__now { font-size: 1.2rem; font-weight: 800; color: var(--coral-dark); }
.price__from { font-size: .8rem; color: var(--coral-dark); font-weight: 700; }
.price__was { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.price__member { font-size: .78rem; font-weight: 700; color: var(--sage-dark); background: var(--sage-soft); border-radius: var(--radius-pill); padding: 1px 8px; text-decoration: none; position: relative; z-index: 2; }
.price--lg .price__now { font-size: 2rem; }

/* Stars */
.stars { display: inline-flex; gap: 1px; color: #e3d6c4; font-size: .95rem; line-height: 1; }
.star.is-full { color: var(--mustard); }
.star.is-half { background: linear-gradient(90deg, var(--mustard) 50%, #e3d6c4 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-meta { font-size: .8rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #FFF3DC 0%, var(--cream) 100%); overflow: hidden; }
.hero__inner { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 32px; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-hand); color: var(--coral-dark); font-size: 1.15rem; margin-bottom: 4px; }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); margin-bottom: 12px; }
.hero h1 .accent { color: var(--mustard-dark); }
.hero__lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 20px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__bubble { position: absolute; right: 12px; bottom: 12px; background: var(--mustard); color: var(--brown); border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; padding: 16px 18px; font-family: var(--font-hand); font-weight: 700; line-height: 1.4; transform: rotate(-6deg); box-shadow: var(--shadow); font-size: .95rem; max-width: 170px; text-align: center; }
.hero__logo { width: 120px; margin-bottom: 8px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: .88rem; font-weight: 700; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--sage-dark); }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr 1.1fr; padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .hero__bubble { right: 20px; bottom: 20px; font-size: 1.05rem; max-width: 200px; padding: 20px 22px; }
  .hero__logo { width: 140px; }
}

/* Page hero (sub pages) */
.page-hero { background: linear-gradient(180deg, #FFF3DC 0%, var(--cream) 100%); padding: 8px 0 24px; }
.page-hero__inner { display: grid; gap: 16px; align-items: center; }
.page-hero h1 { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.page-hero h1 .icon { color: var(--mustard); width: 1.1em; height: 1.1em; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .page-hero__inner.has-media { grid-template-columns: 1.1fr 1fr; } .page-hero { padding-bottom: 40px; } }

/* ---------- Condition cards ---------- */
.condition-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .condition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .condition-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.condition-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.condition-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--brown); }
.condition-card__head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 10px; }
.condition-card__icon { width: 48px; height: 48px; flex: none; color: var(--coral); }
.condition-card__title { font-weight: 800; font-size: 1.125rem; line-height: 1.35; margin: 0 0 2px; }
.condition-card__sub { font-size: .9rem; color: var(--muted); line-height: 1.45; margin: 0; }
.condition-card__media { aspect-ratio: 4 / 3; margin-top: auto; background: var(--beige); position: relative; }
.condition-card__media img { width: 100%; height: 100%; object-fit: cover; }
.condition-card__go { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--mustard); display: grid; place-items: center; box-shadow: var(--shadow-sm); }

/* ---------- Featured pads ---------- */
.featured { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.featured__head { padding: 20px 20px 0; }
.featured__grid { display: grid; gap: 16px; padding: 20px; }
@media (min-width: 900px) { .featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .featured__head { padding: 28px 28px 0; } .featured__grid { padding: 28px; } }
.featured-item { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: var(--cream); border-radius: var(--radius); }
.featured-item__media { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: #fff; }
.featured-item__media img { width: 100%; height: 100%; object-fit: contain; }
.featured-item > div { padding: 0 4px 4px; }
.featured-item h3 { margin: 0 0 4px; }
.featured-item ul { list-style: none; padding: 0; margin: 8px 0 12px; font-size: .9rem; }
.featured-item li { display: flex; gap: 6px; align-items: flex-start; }
.featured-item li .icon { color: var(--sage-dark); margin-top: 4px; }

/* Category cards */
.category-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--brown); transition: box-shadow .2s, transform .2s; }
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--brown); }
.category-card__media { display: block; aspect-ratio: 16 / 10; background: var(--beige); overflow: hidden; }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover .category-card__media img { transform: scale(1.04); }
.category-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.category-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-card h3 { margin: 0; font-size: 1.1rem; }
.category-card__desc { font-size: .86rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--mustard-dark); }
.category-card:hover .category-card__more { color: var(--coral-dark); }
@media (max-width: 559px) { .category-card__body { padding: 12px; } .category-card h3 { font-size: 1rem; } .category-card__head { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* Bundle */
.bundle-card { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--mustard-soft), #fff); border: 1px dashed var(--mustard); }
.bundle-card__products { display: flex; gap: 8px; flex-wrap: wrap; }
.bundle-card__products a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 12px 4px 4px; text-decoration: none; font-size: .85rem; }
.bundle-card__products img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* Brand band */
.brand-band { background: linear-gradient(90deg, var(--mustard-soft), #FFF3DC 60%, var(--sage-soft)); border-radius: var(--radius-lg); overflow: hidden; display: grid; gap: 0; }
.brand-band__copy { padding: 24px 20px; }
.brand-band__copy h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
.brand-band__values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.brand-band__value { text-align: center; font-size: .82rem; }
.brand-band__value .icon-wrap { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 0 auto 6px; color: var(--mustard-dark); box-shadow: var(--shadow-sm); }
.brand-band__value strong { display: block; font-size: .95rem; }
.brand-band__media { min-height: 220px; position: relative; }
.brand-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.hand { font-family: var(--font-hand); color: var(--brown); }
@media (min-width: 900px) { .brand-band { grid-template-columns: 1.2fr 1fr; } .brand-band__copy { padding: 36px; } }

/* Review cards */
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); height: 100%; position: relative; }
.review-card__head { display: flex; align-items: center; gap: 10px; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--mustard-soft); color: var(--mustard-dark); display: grid; place-items: center; flex: none; overflow: hidden; }
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__meta { font-size: .8rem; color: var(--muted); }
.review-card h3 { font-size: 1rem; margin: 0; }
.review-card h3 a { text-decoration: none; }
.review-card h3 a::after { content: ""; position: absolute; inset: 0; }
.review-card p { margin: 0; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__photo { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.review-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.review-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }

/* FAQ accordion */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 16px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--mustard-soft); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; background: var(--mustard); }
.faq-item__answer { padding: 0 16px 16px; color: #5b4a3f; }
.faq-item__answer p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .faq-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Article cards */
.article-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; position: relative; height: 100%; }
.article-card:hover { box-shadow: var(--shadow); }
.article-card__media { aspect-ratio: 16 / 10; background: var(--beige); position: relative; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__media .badge { position: absolute; top: 10px; left: 10px; }
.article-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card h3 { margin: 0; font-size: 1.05rem; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.article-card__meta { margin-top: auto; font-size: .8rem; color: var(--muted); }

/* CTA band */
.cta-band { display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: var(--brown); color: #fff; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #eadfd2; }
.cta-band .btn--outline { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: #fff; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 32px 40px; } }

/* ---------- Products listing ---------- */
.listing { display: grid; gap: 20px; }
@media (min-width: 1024px) { .listing { grid-template-columns: 250px 1fr; align-items: start; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters h2 { font-size: 1.05rem; margin: 0 0 8px; }
.filters__group + .filters__group { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.filters__cats { list-style: none; padding: 0; margin: 0; }
.filters__cats a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none; font-size: .93rem; }
.filters__cats a[aria-current] { background: var(--mustard-soft); font-weight: 800; box-shadow: inset 3px 0 0 var(--mustard); }
.filters__cats ul { list-style: none; padding-left: 12px; margin: 0; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--mustard-dark); }
.filters-toggle { display: inline-flex; }
@media (max-width: 1023px) {
  .filters[data-collapsible] { display: none; }
  .filters[data-collapsible].is-open { display: block; }
}
@media (min-width: 1024px) { .filters-toggle { display: none; } .filters { position: sticky; top: calc(var(--header-h) + 16px); } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar__count { font-size: .9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-size: .82rem; text-decoration: none; }
.chip:hover { border-color: var(--coral); }
.product-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; }
.pagination [aria-current] { background: var(--mustard); border-color: var(--mustard); }
.pagination .is-disabled { opacity: .4; }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty > .icon { width: 56px; height: 56px; color: var(--mustard); margin: 0 auto 10px; }
.empty h2 { font-size: 1.25rem; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
.pdp > *, .listing > *, .checkout-layout > *, .article-layout > * { min-width: 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__thumb { flex: none; width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface); cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--mustard-dark); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30, 22, 18, .9); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--radius); background: #fff; }
.lightbox button { position: absolute; top: 14px; right: 14px; }
@media (min-width: 900px) { .pdp__info { position: sticky; top: calc(var(--header-h) + 16px); } }
.pdp__brand { font-size: .85rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.pdp h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: 2px 0 8px; }
.pdp__short { color: #5b4a3f; }
.pdp__rating { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 6px; }
.pdp__price { padding: 14px 16px; background: var(--cream); border-radius: var(--radius); margin: 12px 0 16px; }
.option-group { border: 0; padding: 0; margin: 0 0 14px; }
.option-group legend { font-weight: 800; margin-bottom: 6px; font-size: .95rem; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-list input { position: absolute; opacity: 0; pointer-events: none; }
.option-list label { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 700; font-size: .92rem; }
.option-list input:checked + label { border-color: var(--mustard-dark); background: var(--mustard-soft); box-shadow: inset 0 0 0 1px var(--mustard-dark); }
.option-list input:focus-visible + label { outline: 3px solid var(--mustard-dark); outline-offset: 2px; }
.option-list input:disabled + label { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--cream); }
.qty input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button, .qty--sm input { height: 36px; } .qty--sm button { width: 34px; } .qty--sm input { width: 40px; }
.pdp__buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pdp__stock { font-size: .9rem; font-weight: 700; }
.pdp__perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.perk { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; line-height: 1.4; }
.perk .icon { color: var(--mustard-dark); width: 24px; height: 24px; }
.pdp-tabs { display: grid; gap: 16px; margin-top: 32px; }
.pdp-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
@media (min-width: 768px) { .pdp-section { padding: 28px; } }
.pdp-section h2 { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.pdp-section h2 .icon { color: var(--mustard); }
.prose { line-height: 1.85; }
.prose img { border-radius: var(--radius); margin: 16px auto; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose table, .table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .92rem; margin: 12px 0; }
.prose th, .prose td, .table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th, .table th { background: var(--cream); font-weight: 800; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--mustard); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; transform: translateY(110%); transition: transform .25s; box-shadow: 0 -6px 20px rgba(63,48,40,.08); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy .btn { flex: 1; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Article ---------- */
.article-layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .article-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 20px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .92rem; }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; }
.toc .lvl-3 { margin-left: 12px; font-size: .88rem; }
.mini-product { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.mini-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.mini-product strong { display: block; font-size: .9rem; line-height: 1.4; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: span 2; } }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-weight: 700; font-size: .92rem; }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #dccbb4; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea, .textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--mustard-dark); box-shadow: 0 0 0 3px rgba(231, 182, 77, .25); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 700; margin: 0; }
.field-error::before { content: "⚠ "; }
.field-hint { font-size: .82rem; color: var(--muted); margin: 0; }
.check-row { display: block; position: relative; padding-left: 28px; font-size: .93rem; line-height: 1.7; }
.check-row input { position: absolute; left: 0; top: 4px; margin: 0; width: 18px; height: 18px; accent-color: var(--mustard-dark); }

/* Choice cards (shipping/payment) */
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .choice-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s; }
.choice label strong { display: flex; align-items: center; gap: 8px; }
.choice label .icon { color: var(--mustard-dark); }
.choice label small { color: var(--muted); }
.choice input:checked + label { border-color: var(--mustard-dark); background: var(--mustard-soft); }
.choice input:checked + label::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--mustard-dark); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.choice input:focus-visible + label { outline: 3px solid var(--mustard-dark); outline-offset: 2px; }

/* ---------- Cart & checkout ---------- */
.steps { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 16px 0 8px; font-size: .88rem; font-weight: 700; }
.steps li { list-style: none; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.steps li + li::before { content: ""; width: 24px; height: 2px; background: var(--line); margin-right: 6px; }
.steps .num { width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; }
.steps [aria-current] { color: var(--brown); }
.steps [aria-current] .num, .steps .is-done .num { background: var(--coral); }
.checkout-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--beige); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 800; text-decoration: none; line-height: 1.4; }
.cart-line__opts { font-size: .82rem; color: var(--muted); }
.cart-line__row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-line__price { font-weight: 800; color: var(--coral-dark); }
.cart-line__remove { background: none; border: 0; color: var(--muted); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; padding: 6px; }
.cart-line__remove:hover { color: var(--danger); }
.summary .panel { padding: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.summary-row--discount { color: var(--sage-dark); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 2px dashed var(--line); font-weight: 800; }
.summary-total strong { font-size: 1.7rem; color: var(--coral-dark); }
.freeship { margin: 12px 0; padding: 12px; background: var(--sage-soft); border-radius: 12px; font-size: .88rem; }
.freeship__bar { height: 8px; background: #fff; border-radius: 8px; overflow: hidden; margin-top: 8px; }
.freeship__bar span { display: block; height: 100%; background: var(--mustard); border-radius: 8px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; }
.co-section { margin-bottom: 16px; }
.co-section__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.co-section__num { width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: .95rem; flex: none; }
[hidden] { display: none !important; }

/* Order status */
.status-hero { text-align: center; padding: 32px 20px; }
.status-hero .icon { width: 64px; height: 64px; margin: 0 auto 12px; }
.status-hero--ok .icon { color: var(--success); }
.status-hero--warn .icon { color: var(--mustard-dark); }
.status-hero--fail .icon { color: var(--danger); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 16px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--mustard); }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-weight: 800; font-size: .82rem; background: var(--beige); }
.status-badge--pending_payment, .status-badge--payment_failed { background: var(--coral-soft); color: var(--coral-dark); }
.status-badge--paid, .status-badge--processing { background: var(--mustard-soft); color: #8a6213; }
.status-badge--shipped, .status-badge--completed { background: var(--sage-soft); color: var(--sage-dark); }
.status-badge--cancelled, .status-badge--refunded { background: #eee6da; color: var(--muted); }

/* Account */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; text-decoration: none; font-weight: 700; border-radius: 12px 12px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { border-bottom-color: var(--mustard-dark); background: var(--surface); }
.order-table { width: 100%; font-size: .92rem; }
.order-table th, .order-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.order-table th { font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) {
  .order-table thead { display: none; }
  .order-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .order-table td { border: 0; padding: 2px 0; }
}
.auth-wrap { max-width: 460px; margin: 24px auto 40px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; background: linear-gradient(180deg, var(--cream), #F5EBDA); border-top: 1px solid var(--line); padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .92rem; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .site-footer .container { max-width: 1440px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "brand guide about" "contact contact news"; }
  .footer-grid > :nth-child(1) { grid-area: brand; } .footer-grid > :nth-child(2) { grid-area: guide; }
  .footer-grid > :nth-child(3) { grid-area: about; } .footer-grid > :nth-child(4) { grid-area: contact; }
  .footer-grid > :nth-child(5) { grid-area: news; }
  .footer-contact li span, .footer-contact li a { white-space: nowrap; }
}
@media (min-width: 1280px) {
  .footer-grid { grid-template-columns: 1.6fr .75fr .7fr minmax(380px, 1.8fr) minmax(200px, .75fr); grid-template-areas: "brand guide about contact news"; }
}
.footer-brand img { width: 280px; max-width: 100%; height: auto; margin-bottom: 10px; }
.footer-col h2 { font-size: 1rem; margin-bottom: 8px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 4px 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--coral-dark); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--mustard-dark); }
.social { display: flex; flex-wrap: nowrap; gap: 7px; margin-top: 10px; }
.social .icon { width: 24px; height: 24px; }
.social a { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brown); color: #fff; display: grid; place-items: center; }
.social a:hover { background: var(--coral); color: #fff; }
.newsletter { display: flex; gap: 6px; margin-top: 8px; }
.newsletter input { flex: 1; min-width: 0; min-height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--line); padding: 0 16px; background: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.footer-bottom .hand { color: var(--brown); }

/* Floating contact */
.float-contact { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 55; display: grid; gap: 8px; }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff; }
.float-contact .is-line { background: #06C755; }
.float-contact .is-phone { background: var(--brown); }
.float-contact .icon { width: 34px; height: 34px; }
body.has-sticky-buy .float-contact { bottom: 90px; }

/* Safety note */
.safety-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: .9rem; color: #5b4a3f; }
.safety-note .icon { color: var(--coral); margin-top: 3px; }

/* Misc */
.divider-paw { display: flex; align-items: center; gap: 10px; color: var(--mustard); margin: 8px 0; }
.divider-paw::before, .divider-paw::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.media-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.media-strip img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 768px) { .media-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.error-page { text-align: center; padding: 56px 0; }
.error-page .code { font-size: 4.5rem; font-weight: 900; color: var(--mustard); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .float-contact, .announcement, .sticky-buy { display: none !important; }
  body { background: #fff; }
}
@media (min-width: 1024px) { .header-action[data-mobile-only] { display: none; } }
@media (max-width: 559px) { .grid-3 { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }

/* 聯絡我們 */
.contact-cards { display: grid; gap: 14px; margin-bottom: 24px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: 1fr 1fr; } .contact-card--line { grid-column: span 2; } }
@media (min-width: 1100px) { .contact-cards { grid-template-columns: 1fr 1.2fr 1.5fr; } .contact-card--line { grid-column: auto; } }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--brown); transition: box-shadow .2s, transform .2s; }
a.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--brown); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--mustard-soft); color: var(--mustard-dark); display: grid; place-items: center; margin-bottom: 6px; }
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card__label { font-size: .85rem; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.contact-card__value { font-size: 1.2rem; line-height: 1.45; }
.contact-card__hint { font-size: .82rem; color: var(--muted); }
.contact-card--line { flex-direction: row; align-items: center; gap: 18px; background: linear-gradient(135deg, #fff, var(--sage-soft)); }
.contact-card--line .contact-card__label .icon { color: #06C755; }
.contact-card__qr { width: 132px; height: 132px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.contact-card__btn { --btn-bg: #06C755; --btn-bd: #06C755; --btn-fg: #fff; margin-top: 10px; align-self: flex-start; }
.contact-card--line > div { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 420px) { .contact-card--line { flex-direction: column; text-align: center; } .contact-card--line > div { align-items: center; } .contact-card__btn { align-self: center; } }
.contact-form { max-width: 880px; margin: 0 auto; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 圓形容器內的圖示比例統一（圓形大小不變，圖示約佔 55–60%） */
.brand-band__value .icon-wrap .icon { width: 30px; height: 30px; }
.review-card__avatar .icon { width: 26px; height: 26px; }
.contact-card__icon .icon { width: 26px; height: 26px; }
.btn--icon .icon { width: 24px; height: 24px; }
.btn--sm .icon { width: 20px; height: 20px; }
.condition-card__go .icon { width: 22px; height: 22px; }
.header-search button .icon { width: 20px; height: 20px; }
/* 頁尾版權列：手機版公司名稱換到第二行，電腦版維持一行 */
.fb-br { display: none; }
@media (max-width: 767px) { .fb-br { display: inline; } .fb-sep { display: none; } }
/* 版權列：統編與政策連結不顯示底線 */
.footer-bottom a, .footer-bottom a[href^="tel"], .footer-bottom a[x-apple-data-detectors] { text-decoration: none !important; color: inherit; }
.footer-bottom a:hover { color: var(--coral-dark); }
/* 全站連結不顯示底線；內文中的文字連結以品牌珊瑚色區分，滑鼠靠近時加深 */
a, a:hover, a:focus { text-decoration: none; }
.prose a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .muted a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .field-hint a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .check-row a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .notice a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .small a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .page-hero p a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .safety-note a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .status-hero a:not(.btn):not(.link-arrow):not(.chip):not(.badge), .kv a:not(.btn):not(.link-arrow):not(.chip):not(.badge) { color: var(--coral-dark); font-weight: 600; }
.prose a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .muted a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .field-hint a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .check-row a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .notice a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .small a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .page-hero p a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .safety-note a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .status-hero a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover, .kv a:not(.btn):not(.link-arrow):not(.chip):not(.badge):hover { color: var(--brown); }
/* 密碼顯示切換（小眼睛） */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 48px !important; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted, #7A685B); cursor: pointer; border-radius: 50%; padding: 0; }
.pw-toggle:hover { color: var(--coral-dark); }
.pw-toggle:focus-visible { outline: 2px solid var(--mustard); outline-offset: 1px; }
input::-ms-reveal, input::-ms-clear { display: none; }
/* 情境頁「重點整理」（直接回答，利於精選摘要與 AI 引用） */
.cond-summary { border-left: 5px solid var(--mustard); background: #fff; }
.cond-summary .prose ol { margin: 8px 0 4px; padding-left: 1.4em; }
.cond-summary .prose li { margin: 6px 0; }
.cond-updated { margin: 10px 0 0; }
/* 手機版情境卡維持原本的字級與圖示大小（加大只套用在平板與電腦） */
@media (max-width: 560px) {
  .condition-card__head { gap: 10px; }
  .condition-card__icon { width: 40px; height: 40px; }
  .condition-card__title { font-size: 1rem; }
  .condition-card__sub { font-size: .8rem; }
}
