/* ==========================================================================
   petpet.com.hk — Warm Editorial Premium
   One committed aesthetic: cream canvas, ink serif display, coral accent,
   sage support. Generous whitespace, soft shadows, real photography.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@600;700&display=swap');

:root {
  --cream: #FDF8F3;
  --cream-2: #F6ECE1;
  --cream-3: #EFE2D4;
  --paper: #FFFFFF;
  --ink: #1B1917;
  --ink-70: #4A423B;
  --ink-45: #857A70;
  --coral: #FF6B4A;
  --coral-dk: #E24E2C;
  --coral-soft: #FFE7E0;
  --sage: #6E9E86;
  --sage-soft: #E4F0EA;
  --gold: #C79A3A;
  --line: rgba(27, 25, 23, .10);
  --line-2: rgba(27, 25, 23, .06);

  --shadow-s: 0 1px 2px rgba(27,25,23,.05), 0 4px 14px rgba(27,25,23,.05);
  --shadow-m: 0 2px 6px rgba(27,25,23,.06), 0 14px 40px rgba(27,25,23,.09);
  --shadow-l: 0 8px 24px rgba(27,25,23,.09), 0 32px 80px rgba(27,25,23,.13);

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 40px;

  --display: 'Fraunces', 'Noto Serif TC', Georgia, serif;
  --sans: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --nav-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 2.5px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--coral); color: #fff; }

/* --------------------------------------------------------------- type --- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1.5px; background: var(--coral); display: block;
}

.sub { color: var(--ink-45); font-size: 1.06rem; max-width: min(100%, 56ch); }
.lead { font-size: 1.16rem; color: var(--ink-70); max-width: min(100%, 60ch); }

.ic { flex: none; vertical-align: -.15em; }

/* ------------------------------------------------------------ layout --- */
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 130px) 0; }
.center { text-align: center; }
.center .sub, .center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------- nav --- */
header.pp {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 26px;
  padding: 0 clamp(18px, 4vw, 44px);
  background: rgba(253, 248, 243, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
header.pp.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(27,25,23,.05);
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-s); }
.bname { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; }
.bname .dot { color: var(--ink-45); font-weight: 400; font-size: .78em; }

nav.nav { display: flex; gap: 4px; margin-left: auto; }
nav.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-70);
  transition: color .25s var(--ease), background .25s var(--ease);
}
nav.nav a:hover { color: var(--ink); background: rgba(27,25,23,.05); }
nav.nav a.active { color: var(--coral); background: var(--coral-soft); }

.langsw { display: flex; gap: 2px; padding: 3px; background: rgba(27,25,23,.055); border-radius: 999px; flex: none; }
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--ink-45);
  transition: all .25s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-s); }

.navtoggle { display: none; border: 0; background: transparent; cursor: pointer; color: var(--ink); padding: 8px; }

/* sound toggle */
.soundbtn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-70);
  cursor: pointer; box-shadow: var(--shadow-s);
  transition: all .25s var(--ease);
}
.soundbtn:hover { color: var(--coral); border-color: var(--coral); transform: translateY(-1px); }
.soundbtn.on { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ------------------------------------------------------------ buttons --- */
.btn, .btn-ghost, .btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 30px;
  border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: .97rem; font-weight: 600; letter-spacing: .005em;
  cursor: pointer; text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(255,107,74,.32); }
.btn:hover { background: var(--coral-dk); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,107,74,.4); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn.sm, .btn-ghost.sm { padding: 10px 20px; font-size: .87rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* --------------------------------------------------------------- hero --- */
.hero-cinema {
  position: relative;
  min-height: min(94vh, 860px);
  display: grid; align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-cinema video, .hero-cinema .hero-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-cinema::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(20,14,10,.82) 0%, rgba(20,14,10,.55) 42%, rgba(20,14,10,.12) 72%),
    linear-gradient(to top, rgba(20,14,10,.6), transparent 45%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding: 120px 0 96px;
  color: #fff;
}
.hero-inner .eyebrow { color: #FFC9B8; }
.hero-inner .eyebrow::before { background: #FFC9B8; }
.hero-inner h1 { color: #fff; max-width: min(100%, 15ch); text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-inner h1 em { font-style: italic; color: #FFB39D; }
.hero-inner .lead { color: rgba(255,255,255,.86); max-width: min(100%, 46ch); font-size: 1.18rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-inner .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.hero-inner .btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #fff; }

.hero-scroll {
  position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: scrollpulse 2.2s var(--ease) infinite;
}
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

.hero-stats {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 62px);
  margin-top: 46px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats .hs-n { font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: #fff; line-height: 1; }
.hero-stats .hs-l { font-size: .82rem; color: rgba(255,255,255,.66); margin-top: 6px; }

/* ------------------------------------------------------------- trust --- */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line-2); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); }
.trust-item {
  background: var(--paper);
  display: flex; align-items: center; gap: 12px;
  padding: 26px clamp(14px, 2.4vw, 30px);
  font-size: .92rem; font-weight: 500; color: var(--ink-70);
}
.trust-item .ic { color: var(--coral); }
.trust-item b { display: block; color: var(--ink); font-weight: 600; font-size: .97rem; }
.trust-item span { font-size: .8rem; color: var(--ink-45); }

/* --------------------------------------------------------- categories --- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.cat-tile {
  position: relative; display: block;
  border-radius: var(--r-l); overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.cat-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
.cat-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.cat-tile:hover .cat-img-wrap img { transform: scale(1.07); }
.cat-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,14,10,.55), transparent 55%);
}
.cat-badge {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--coral);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-s);
}
.cat-tile .cardin { padding: 20px 22px 24px; }
.cat-name { font-family: var(--display); font-size: 1.28rem; font-weight: 600; }
.cat-en { font-size: .82rem; color: var(--ink-45); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.cat-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .87rem; font-weight: 600; color: var(--coral); }
.cat-go .ic { transition: transform .35s var(--ease-out); }
.cat-tile:hover .cat-go .ic { transform: translateX(5px); }

/* ------------------------------------------------------------- cards --- */
.card { background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-s); border: 1px solid var(--line-2); }
.cardin { padding: 22px; }

/* --------------------------------------------------- care / split band --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.split-media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-l); aspect-ratio: 4/3; background: var(--cream-2);
}
.split-media video, .split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .play-tag {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  font-size: .78rem; font-weight: 600; color: var(--ink);
}
.band-cream { background: var(--cream-2); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .sub, .band-ink .lead { color: rgba(253,248,243,.7); }
.band-ink .eyebrow { color: #FFB39D; }
.band-ink .eyebrow::before { background: #FFB39D; }

.tick-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; color: var(--ink-70); }
.tick-list .ic { color: var(--sage); margin-top: 4px; }
.band-ink .tick-list li { color: rgba(253,248,243,.82); }

/* ------------------------------------------------------------- breeds --- */
.breed-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.breed {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  aspect-ratio: 3/4; box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.breed:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-l); }
.breed img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.breed:hover img { transform: scale(1.08); }
.breed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,10,.68), transparent 52%); }
.breed-name { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 15px; color: #fff; }
.breed-name b { font-family: var(--display); font-size: 1.06rem; font-weight: 600; display: block; }
.breed-name span { font-size: .74rem; opacity: .74; letter-spacing: .05em; }

/* ------------------------------------------------------------- steps --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 30px); counter-reset: s; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-size: 2.6rem; font-weight: 600;
  color: var(--coral); opacity: .28; display: block; line-height: 1; margin-bottom: 12px;
}
.step::after { content: ''; position: absolute; top: 0; left: 0; right: 14px; height: 2px; background: var(--line); border-radius: 2px; }
.step h3 { font-size: 1.14rem; margin-bottom: .35em; }
.step p { font-size: .93rem; color: var(--ink-45); margin: 0; }

/* --------------------------------------------------------- providers --- */
.provider-card {
  display: grid; grid-template-columns: 108px 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-l); box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .3s;
  margin-bottom: 16px;
}
.provider-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line); }
.pc-photo { position: relative; }
.pc-photo img { width: 108px; height: 108px; border-radius: 24px; object-fit: cover; background: var(--cream-2); }
.pc-name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: .87rem; color: var(--ink-45); }
.pc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pc-districts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.dpill { font-size: .74rem; padding: 4px 11px; border-radius: 999px; background: var(--cream-2); color: var(--ink-70); }
.pc-right { text-align: right; display: grid; gap: 10px; justify-items: end; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--cream-2); color: var(--ink-70);
}
.badge.licensed { background: var(--sage-soft); color: #3F6B55; }
.badge.top { background: #FFF3D6; color: #8A6414; }
.badge.verified { background: var(--coral-soft); color: var(--coral-dk); }

.stars { color: var(--gold); font-size: .9rem; letter-spacing: .06em; white-space: nowrap; }
.pricepill { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--display); font-size: 1.34rem; font-weight: 600; color: var(--ink); }
.pricepill small { font-family: var(--sans); font-size: .72rem; font-weight: 500; color: var(--ink-45); }

/* -------------------------------------------------------- toolbars --- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 18px; margin-bottom: 26px;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 999px; box-shadow: var(--shadow-s);
}
.toolbar .tl-label { font-size: .8rem; color: var(--ink-45); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-right: 4px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  background: transparent; color: var(--ink-70); border: 1px solid var(--line);
  transition: all .25s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------------------------------------------------------- pill picks --- */
.pickgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pick {
  position: relative; display: grid; place-items: center; gap: 10px;
  padding: 26px 18px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-m); text-align: center;
  transition: all .3s var(--ease-out);
}
.pick:hover { border-color: var(--coral); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .ic { color: var(--coral); }
.pick b { font-size: 1rem; font-weight: 600; }
.pick span { font-size: .8rem; color: var(--ink-45); }
.pick.on { border-color: var(--coral); background: var(--coral-soft); box-shadow: 0 6px 20px rgba(255,107,74,.18); }

/* -------------------------------------------------------------- form --- */
label.fld { display: block; margin-bottom: 20px; }
label.fld > .lb { display: block; font-size: .83rem; font-weight: 600; color: var(--ink-70); margin-bottom: 8px; letter-spacing: .02em; }
input[type=text], input[type=date], input[type=time], input[type=number],
input[type=password], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--sans); font-size: .97rem; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-s);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,74,.13); }
textarea { min-height: 96px; resize: vertical; }

/* ----------------------------------------------------------- summary --- */
.summary { background: var(--cream-2); border-radius: var(--r-m); padding: 24px; border: 1px solid var(--line-2); }
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .95rem; color: var(--ink-70); }
.summary .row.total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px;
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--ink);
}

/* ------------------------------------------------------------- shop --- */
.prod-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-l); box-shadow: var(--shadow-s);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.prod-img { aspect-ratio: 1/1; background: var(--cream-2); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-name { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.prod-note { font-size: .82rem; color: var(--ink-45); flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* -------------------------------------------------------------- blog --- */
.post-card {
  display: block; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow-s);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.post-img { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.post-card:hover .post-img img { transform: scale(1.06); }
.post-body { padding: 22px 22px 26px; }
.post-kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.post-title { font-family: var(--display); font-size: 1.32rem; font-weight: 600; margin: 8px 0 8px; line-height: 1.25; }
.post-ex { font-size: .92rem; color: var(--ink-45); }
.article { max-width: min(100%, 72ch); margin-inline: auto; font-size: 1.06rem; line-height: 1.85; color: var(--ink-70); }
.article h2 { font-size: 1.6rem; margin-top: 1.8em; }

/* --------------------------------------------------------------- map --- */
.map-shell {
  border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow-m); border: 1px solid var(--line-2);
  height: min(70vh, 620px); background: var(--cream-2);
}
#map, #gmap { width: 100%; height: 100%; }
.map-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: .87rem; color: var(--ink-45); }
.map-legend i { width: 12px; height: 12px; border-radius: 999px; display: inline-block; margin-right: 7px; vertical-align: -1px; }

/* ------------------------------------------------------------ tables --- */
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
  text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-45); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
table.data tr:hover td { background: var(--cream); }
.table-scroll { overflow-x: auto; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 24px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--shadow-s); }
.kpi .k-l { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); font-weight: 600; }
.kpi .k-v { font-family: var(--display); font-size: 2rem; font-weight: 600; margin-top: 8px; }
.kpi.accent .k-v { color: var(--coral); }
.kpi.sage .k-v { color: var(--sage); }

/* ------------------------------------------------------ testimonials --- */
.quote-card {
  padding: 30px; border-radius: var(--r-l);
  background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-s);
  display: flex; flex-direction: column; gap: 16px;
}
.quote-card .ic.q { color: var(--coral); opacity: .3; }
.quote-card p { font-size: 1.04rem; color: var(--ink-70); font-style: italic; margin: 0; flex: 1; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-who img { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; }
.quote-who b { font-size: .93rem; }
.quote-who span { font-size: .78rem; color: var(--ink-45); display: block; }

/* ---------------------------------------------------------- CTA band --- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--coral) 0%, #FF9270 100%);
  color: #fff; padding: clamp(44px, 6vw, 78px);
  text-align: center;
  box-shadow: 0 24px 70px rgba(255,107,74,.28);
}
.cta-band h2 { color: #fff; }
.cta-band .sub { color: rgba(255,255,255,.9); }
.cta-band .btn { background: #fff; color: var(--coral-dk); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }
.cta-band .paw-bg {
  position: absolute; inset: 0; opacity: .09; z-index: 0;
  background-image: radial-gradient(circle at 15% 30%, #fff 2px, transparent 2px),
                    radial-gradient(circle at 65% 70%, #fff 3px, transparent 3px);
  background-size: 90px 90px, 130px 130px;
}
.cta-band > * { position: relative; z-index: 1; }

/* ------------------------------------------------------------- gate --- */
main.gate { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--ink); }
main.gate .card { width: min(420px, 100%); padding: 44px 38px; text-align: center; border-radius: var(--r-l); box-shadow: var(--shadow-l); border: 0; }
main.gate h1 { font-size: 2rem; margin-bottom: .2em; }
main.gate .sub { margin-bottom: 24px; }

/* ----------------------------------------------------------- footer --- */
footer.pp {
  margin-top: clamp(60px, 8vw, 110px);
  background: var(--ink); color: rgba(253,248,243,.62);
  padding: clamp(48px, 6vw, 76px) clamp(20px, 5vw, 60px) 34px;
}
.foot-grid {
  width: min(1200px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-grid h4 { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 16px; font-weight: 600; font-family: var(--sans); }
.foot-grid a { display: block; padding: 5px 0; font-size: .92rem; color: rgba(253,248,243,.7); transition: color .25s; }
.foot-grid a:hover { color: #fff; }
.foot-brand .bname { color: #fff; font-size: 1.4rem; }
.foot-brand p { font-size: .9rem; margin-top: 12px; max-width: min(100%, 34ch); }

.foot-aga {
  width: min(1200px, 100%); margin: 26px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.aga-lockup { display: flex; align-items: center; gap: 16px; }
.aga-lockup .pw { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.aga-logo { height: 108px; width: auto; display: block; }
.aga-tag { font-size: .84rem; color: #E8C97A; letter-spacing: .02em; }
.foot-legal { font-size: .8rem; color: rgba(255,255,255,.4); }
.foot-legal a { color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: #E8C97A; }

/* ------------------------------------------------------------- chat --- */
#pp-chat-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  width: 58px; height: 58px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--coral); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(255,107,74,.42);
  transition: transform .35s var(--ease-out), background .25s;
}
#pp-chat-btn:hover { transform: scale(1.07) translateY(-2px); background: var(--coral-dk); }

/* ------------------------------------------------------------ motion --- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

.tilt { transform-style: preserve-3d; will-change: transform; }

/* ------------------------------------------------------- responsive --- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .breed-rail { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  nav.nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; padding: 12px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    transform: translateY(-130%); transition: transform .4s var(--ease-out);
  }
  nav.nav.open { transform: none; }
  nav.nav a { padding: 14px; border-radius: var(--r-s); }
  .navtoggle { display: grid; place-items: center; margin-left: auto; }
  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .provider-card { grid-template-columns: 76px 1fr; }
  .pc-photo img { width: 76px; height: 76px; border-radius: 18px; }
  .pc-right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .hero-inner { padding: 92px 0 76px; }
}
@media (max-width: 560px) {
  .grid-4, .steps, .kpi-grid, .foot-grid { grid-template-columns: 1fr; }
  .breed-rail { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  /* keep the whole header on one line at phone width */
  header.pp { gap: 8px; padding: 0 14px; max-width: 100vw; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .hero-cinema { min-height: 82vh; }
  .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
  .bname { font-size: 1.06rem; }
  .bname .dot { display: none; }
  .navtoggle { padding: 4px; }
  .soundbtn { width: 32px; height: 32px; }
  .langsw { padding: 2px; }
  .lang-btn { padding: 5px 7px; font-size: .72rem; }
  .hero-inner .lead { font-size: 1.02rem; }
  .hero-stats { gap: 20px 26px; }
  .hero-stats .hs-n { font-size: 1.6rem; }
  .cta-band { border-radius: var(--r-l); }
  .cart-row { grid-template-columns: 44px 1fr auto; }
  .cart-thumb { width: 44px; height: 44px; }
  .cart-line { grid-column: 2 / -1; text-align: right; }
  .methods-grid { grid-template-columns: 1fr; }
  .pp-modal { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-cinema video { display: none; }
}

/* ==========================================================================
   Components: shop cart + checkout overlay, payment methods, gateway,
   receipt, chat widget. Same tokens as the rest of the system.
   ========================================================================== */

/* ------------------------------------------------------- sticky cart --- */
.cart-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 940; display: flex; align-items: center; gap: 18px;
  padding: 12px 12px 12px 24px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 14px 44px rgba(27,25,23,.34);
  max-width: calc(100% - 32px);
}
.cart-bar[hidden] { display: none; }
.cart-bar-info { display: flex; align-items: center; gap: 6px; font-size: .93rem; white-space: nowrap; }
.cart-bar-info b { color: #fff; }
.cart-bar.bump { animation: cartbump .45s var(--ease-out); }
@keyframes cartbump { 0%{transform:translateX(-50%) scale(1)} 40%{transform:translateX(-50%) scale(1.05)} 100%{transform:translateX(-50%) scale(1)} }

.qty-stepper .chip { display: grid; place-items: center; font-size: 1.05rem; line-height: 1; }
.qval { font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- overlay --- */
.pp-overlay {
  position: fixed; inset: 0; z-index: 960;
  background: rgba(20,14,10,.55); backdrop-filter: blur(6px);
  display: none; place-items: center; padding: 20px;
}
.pp-overlay.open { display: grid; }
.pp-modal {
  position: relative; width: min(560px, 100%);
  max-height: min(86vh, 760px); overflow-y: auto;
  background: var(--cream); border-radius: var(--r-l);
  padding: 32px; box-shadow: var(--shadow-l);
  animation: modalin .4s var(--ease-out);
}
@keyframes modalin { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.pp-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(27,25,23,.06); color: var(--ink-70); font-size: 1.2rem; line-height: 1;
}
.pp-x:hover { background: rgba(27,25,23,.12); }
.pp-head { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin-bottom: 20px; }
.pp-empty { color: var(--ink-45); text-align: center; padding: 34px 0; }
.pp-row { display: flex; gap: 12px; }
.pp-row > * { flex: 1; }
.pp-field { margin-bottom: 16px; }
.pp-field label, .gw-field label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink-70); margin-bottom: 7px;
}
.pp-in, .cardin {
  width: 100%; padding: 13px 15px; font-family: var(--sans); font-size: .96rem;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-s);
}
.pp-in:focus, .cardin:focus { outline: 0; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,74,.13); }
.pp-btn {
  width: 100%; padding: 15px 24px; margin-top: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--coral); color: #fff; font-weight: 600; font-size: .97rem;
  box-shadow: 0 6px 18px rgba(255,107,74,.32);
  transition: background .25s var(--ease), transform .25s var(--ease-out);
}
.pp-btn:hover { background: var(--coral-dk); transform: translateY(-2px); }
.pp-btn[disabled] { opacity: .45; pointer-events: none; }
.pp-cancel {
  display: block; width: 100%; margin-top: 12px; padding: 12px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-45); font-size: .88rem;
}
.pp-cancel:hover { color: var(--ink); }
.pp-err { color: var(--coral-dk); font-size: .86rem; margin-top: 8px; }
.pp-min { font-size: .88rem; margin: 14px 0 6px; }
.pp-min.ok { color: var(--sage); }
.pp-min.warn { color: var(--coral-dk); }
.pp-demo {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-dk);
}

.cart-row {
  display: grid; grid-template-columns: 52px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.cart-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--cream-2); }
.cart-nm { font-size: .94rem; font-weight: 500; }
.cart-nm small { display: block; color: var(--ink-45); font-weight: 400; font-size: .8rem; }
.cart-qs { display: flex; align-items: center; gap: 8px; }
.cart-qs button {
  width: 28px; height: 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.cart-qs button:hover { border-color: var(--ink); }
.cart-line { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
}

/* --------------------------------------------------- payment methods --- */
.methods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.method-card {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-m);
  transition: all .28s var(--ease-out);
}
.method-card:hover { border-color: var(--coral); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.method-card.on { border-color: var(--coral); background: var(--coral-soft); }
.method-icon {
  display: flex; align-items: center; gap: 5px; flex: none;
  min-width: 44px; height: 30px;
  font-size: 1.15rem; font-weight: 700; color: var(--ink-70);
}
.method-icon.has-logo { min-width: 54px; }
.method-logo { height: 22px; width: auto; object-fit: contain; }
.method-name { font-size: .93rem; font-weight: 600; }
.method-check { margin-left: auto; color: var(--sage); }
.choose { font-size: .88rem; color: var(--ink-45); margin: 4px 0 0; }
.meta { font-size: .87rem; color: var(--ink-45); }
.meta b { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------- gateway --- */
.gw-card { max-width: 470px; margin: 0 auto; padding: 30px; }
.gw-head {
  display: flex; align-items: center; gap: 9px;
  font-size: .85rem; color: var(--ink-45); font-weight: 600;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 20px;
}
.gw-lock { color: var(--sage); }
.gw-method { font-size: .88rem; color: var(--ink-45); }
.gw-amount { font-family: var(--display); font-size: 2.4rem; font-weight: 600; margin: 4px 0 22px; }
.gw-field { margin-bottom: 14px; }
.gw-pay { width: 100%; margin-top: 10px; }
.gw-scan { font-size: .88rem; color: var(--ink-45); text-align: center; }
.gw-secure { font-size: .78rem; color: var(--ink-45); text-align: center; margin-top: 16px; }
.qr-fake {
  width: 190px; height: 190px; margin: 6px auto 16px; border-radius: var(--r-m);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(0deg, var(--ink) 0 7px, var(--paper) 7px 14px);
  background-blend-mode: multiply;
  border: 10px solid var(--paper); box-shadow: var(--shadow-s);
}

.pp-proc { text-align: center; padding: 26px 0 6px; }
.pp-proc[hidden] { display: none; }
.pp-proc-h { font-weight: 600; margin: 14px 0 16px; }
.pp-spinner {
  width: 40px; height: 40px; margin: 0 auto; border-radius: 999px;
  border: 3px solid var(--cream-3); border-top-color: var(--coral);
  animation: ppspin .9s linear infinite;
}
@keyframes ppspin { to { transform: rotate(360deg); } }
.pp-bar { height: 5px; border-radius: 999px; background: var(--cream-3); overflow: hidden; }
.pp-fill { height: 100%; width: 0; background: var(--coral); animation: ppfill 2.2s var(--ease) forwards; }
@keyframes ppfill { to { width: 100%; } }

/* -------------------------------------------------------- receipt --- */
.ok {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--sage);
  margin-bottom: 6px;
}
.receipt-card { max-width: 560px; margin: 0 auto; padding: 34px; }
.receipt-tbl { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .93rem; }
.receipt-tbl td { padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-70); }
.receipt-tbl td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
.receipt-total td {
  border-bottom: 0; border-top: 1px solid var(--line); padding-top: 16px;
  font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.shop-page { padding: 0; }

/* ----------------------------------------------------------- chat --- */
#pp-chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 950;
  width: min(340px, calc(100vw - 44px)); max-height: 60vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-l); box-shadow: var(--shadow-l);
}

/* ------------------------------------------------------ chat widget --- */
#pp-chat-panel {
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .32s var(--ease-out), transform .32s var(--ease-out), visibility .32s;
}
#pp-chat-panel.pp-open { opacity: 1; visibility: visible; transform: none; }

#pp-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: .96rem; flex: none;
}
#pp-chat-header button {
  border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  width: 26px; height: 26px; border-radius: 999px; font-size: 1rem; line-height: 1;
}
#pp-chat-header button:hover { background: rgba(255,255,255,.26); }

#pp-chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--cream); min-height: 160px;
}
.pp-msg {
  max-width: 84%; padding: 11px 14px; border-radius: 16px;
  font-size: .89rem; line-height: 1.55; white-space: pre-line;
}
.pp-msg-bot { background: var(--paper); border: 1px solid var(--line-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.pp-msg-user { background: var(--coral); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }

#pp-chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px;
  border-top: 1px solid var(--line-2); background: var(--paper); flex: none;
}
.pp-chip {
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  font-size: .8rem; color: var(--ink-70);
  transition: all .22s var(--ease);
}
.pp-chip:hover { border-color: var(--coral); color: var(--coral); }

#pp-chat-input {
  display: flex; gap: 8px; padding: 12px 16px 16px;
  background: var(--paper); flex: none;
}
#pp-chat-input input {
  flex: 1; padding: 11px 14px; font-size: .89rem; font-family: var(--sans);
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream);
}
#pp-chat-input input:focus { outline: 0; border-color: var(--coral); }
#pp-chat-input button {
  padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--coral); color: #fff; font-size: .85rem; font-weight: 600;
}
#pp-chat-input button:hover { background: var(--coral-dk); }

/* ── WhatsApp 客戶服務捷徑（每頁右下角）─────────────────────────────── */
/* 靠左下角 —— chat 掣同佢彈出嘅面板都喺右下角（#pp-chat-btn / #pp-chat-panel），
   放左邊兩者永遠唔會疊，唔使靠 JS 開關。 */
.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none;
  font-size: .9rem; font-weight: 600; line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.wa-fab:focus-visible { outline: 3px solid #0b5; outline-offset: 3px; }
/* 手機淨係留個圖示，唔好遮住內容 */
@media (max-width: 640px) {
  .wa-fab { padding: 14px; left: 14px; bottom: 14px; }
  .wa-fab-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
  .wa-fab:hover { transform: none; }
}
