/* ==========================================================================
   Otterly — shop-first storefront
   Cream / ivory surfaces, teal primary, illustrated brand lockup.
   ========================================================================== */

:root {
  --bg: #fbf7f0;
  --bg-deep: #f6f0e6;
  --surface: #fffcf7;
  --surface-strong: #ffffff;
  --ink: #2e2822;
  --ink-soft: #4a423a;
  --muted: #5c534a;
  --teal: #4a8d8a;
  --teal-dark: #3a7573;
  --teal-deep: #2f5f5d;
  --teal-pale: #e6f2ef;
  --teal-wash: rgba(74, 141, 138, 0.1);
  --warm: #a94f38;
  --warm-pale: #f5e5dc;
  --green: #3f6b52;
  --green-pale: #e5f0e5;
  --line: rgba(46, 40, 34, 0.12);
  --line-strong: rgba(46, 40, 34, 0.22);
  --error: #9d3e2c;
  --error-bg: #faece6;
  --shadow-sm: 0 4px 16px rgba(46, 40, 34, 0.05);
  --shadow: 0 18px 44px rgba(46, 40, 34, 0.08);
  --shadow-lg: 0 30px 80px rgba(46, 40, 34, 0.16);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --container: 1180px;
  --header-h: 74px;
  --font-display: "Bricolage Grotesque", "Noto Sans TC", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body: "DM Sans", "Noto Sans TC", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-brand: "Fraunces", Georgia, "Noto Serif TC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--teal);
  color: var(--surface-strong);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  min-width: 0;
  margin-bottom: 24px;
  overflow: visible;
}

.section-head > div {
  min-width: 0;
}

.section-head h2 {
  overflow: visible;
  font-size: clamp(32px, 3.4vw, 44px);
  text-overflow: clip;
}

/* The display face uses negative tracking; keep a small optical inset on the
   hot title row so the first glyph's ink can never be clipped by the viewport
   or by a rounded section container. Copy itself is untouched. */
.hot-section .section-head {
  padding-left: 2px;
  overflow: visible;
}

.hot-section .section-head h2 {
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
}

.section-sub {
  max-width: 370px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 13.5px;
  font-weight: 600;
  transition: gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  gap: 12px;
  color: var(--teal);
}

.text-link svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--teal);
  color: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(74, 141, 138, 0.22);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 14px 30px rgba(56, 86, 88, 0.26);
}

.btn-light {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.btn-light:hover {
  background: var(--teal-pale);
  color: var(--teal-deep);
}

.btn-outline {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 15px;
}

.btn-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
}

.btn.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 253, 248, 0.4);
  border-top-color: var(--surface-strong);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Announcement bar + header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--teal-deep);
  color: rgba(251, 247, 240, 0.92);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 33px;
  padding-top: 6px;
  padding-bottom: 6px;
  text-align: center;
}

.topbar-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.38);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(251, 247, 240, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 247, 240, 0.96);
  box-shadow: 0 10px 30px rgba(46, 40, 34, 0.07);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

/* Official illustrated lockup — transparent PNG on the cream surface. */
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  flex: none;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.wordmark:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.wordmark:active {
  transform: translateY(0);
}

.wordmark:focus-visible {
  outline-offset: 6px;
}

.wordmark img {
  width: auto;
  height: 56px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
}

.lang-btn {
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn[aria-pressed="true"] {
  background: var(--teal);
  color: var(--surface-strong);
}

/* One-tap phone language cycle control (繁 / EN / 簡). Hidden on desktop and
   tablet; the phone rules at the end of this file show it in the date row or
   the under-header row, while the header keeps its three desktop pills. */
.lang-cycle {
  display: none;
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cart-btn:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.cart-btn svg {
  width: 19px;
  height: 19px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--surface-strong);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-box span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(46, 40, 34, 0.12);
  padding: 8px 28px 24px;
}

.mobile-nav {
  display: grid;
  gap: 0;
  padding: 0;
}

.mobile-nav a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav .mobile-shop-link {
  display: inline-flex;
  font-family: var(--font-body);
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--surface-strong);
  font-size: 14px;
  font-weight: 600;
  justify-self: start;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 96px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 62px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 0.7fr 1.1fr;
  gap: 48px;
}

.footer-brand .wordmark img {
  height: 48px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-vertical {
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col nav,
.footer-contact {
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.footer-col nav a,
.footer-contact a,
.footer-contact span {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col nav a:hover,
.footer-contact a:hover {
  color: var(--teal-dark);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-contact-note {
  flex-basis: 100%;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.back-top:hover {
  color: var(--teal-dark);
}

.back-top svg {
  width: 14px;
  height: 14px;
}

.footer-disclaimer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.footer-disclaimer p + p {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Home — intro, featured banner
   -------------------------------------------------------------------------- */

.home-main {
  /* Body already clips accidental horizontal overflow. Avoid clipping the
     home scroll container itself: negative display tracking on the hot title
     can paint its first glyph a hair outside the line box. */
  overflow: visible;
}

.home-hero {
  padding-top: 46px;
}

.today-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.today-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}

.home-intro h1 {
  font-size: clamp(46px, 6.2vw, 82px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.home-intro h1 .accent {
  color: var(--teal);
}

.home-lede {
  max-width: 310px;
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.feature-banner {
  position: relative;
  display: block;
  isolation: isolate;
  min-height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0c0b;
  color: #fbf7f0;
  box-shadow: var(--shadow-lg);
}

.feature-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transition: transform 0.9s var(--ease);
}

.feature-banner:hover .feature-art {
  transform: scale(1.025);
}

.feature-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 280px at 80% 50%, rgba(218, 20, 32, 0.25), transparent 72%),
    linear-gradient(90deg, #0d0c0b 0%, #0d0c0b 30%, rgba(13, 12, 11, 0.9) 46%, rgba(13, 12, 11, 0.12) 78%, rgba(13, 12, 11, 0) 100%);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  max-width: 560px;
  padding: 58px 56px;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid rgba(251, 247, 240, 0.22);
  border-radius: 999px;
  color: rgba(251, 247, 240, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0473b;
  box-shadow: 0 0 10px rgba(224, 71, 59, 0.8);
}

.feature-title {
  font-size: clamp(40px, 4.7vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  word-spacing: 0.06em;
  color: #fbf6ea;
}

.feature-sub {
  max-width: 390px;
  margin-top: 14px;
  color: rgba(251, 247, 240, 0.68);
  font-size: 15.5px;
  line-height: 1.65;
}

.feature-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.feature-price {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-price > span:last-child {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(251, 247, 240, 0.55);
}

.feature-pending {
  color: rgba(251, 247, 240, 0.5);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.feature-cta {
  align-self: flex-start;
  margin-top: 26px;
  min-height: 50px;
  padding: 13px 28px;
}

/* --------------------------------------------------------------------------
   Home — quick picks
   -------------------------------------------------------------------------- */

/* t156u: later home blocks share the early-section rhythm (login 30px,
   search 38px). Old 76-92px later paddings opened huge empty bands. */
.hot-section {
  padding-top: 36px;
}

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

.quick-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card:hover {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(74, 141, 138, 0.48);
  box-shadow: var(--shadow-sm);
}

.quick-rank {
  align-self: flex-start;
  padding-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.quick-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: var(--logo-bg, #ffffff);
  overflow: hidden;
}

.quick-logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.quick-card:hover .quick-logo img {
  transform: scale(1.1);
}

.quick-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.quick-body strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-body span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-arrow {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-arrow svg {
  width: 16px;
  height: 16px;
}

.quick-card:hover .quick-arrow {
  transform: translateX(3px);
  color: var(--teal-dark);
}

/* --------------------------------------------------------------------------
   Home — catalogue
   -------------------------------------------------------------------------- */

.catalog-section {
  padding-top: 36px;
}

.catalog-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-pill {
  min-height: 34px;
  padding: 7px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(74, 141, 138, 0.42);
  box-shadow: var(--shadow);
}

/* The logo well is deliberately shorter and wider than it is tall so the
   product introduction, not the mark, carries the card. */
.catalog-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1.9 / 1;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--logo-bg, #ffffff);
  overflow: hidden;
}

.catalog-art img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.catalog-card:hover .catalog-art img {
  transform: scale(1.08);
}

.catalog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 0 9px;
}

.catalog-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
}

.catalog-cat {
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.catalog-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.catalog-blurb {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  min-height: 52px;
}

.catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 0 9px;
}

.catalog-price {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-price small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 600;
}

.catalog-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.catalog-card:hover .catalog-link svg {
  transform: translateX(2px);
}

.catalog-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11.5px;
}

.catalog-note::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   Home — flow panel
   -------------------------------------------------------------------------- */

.flow-section {
  padding-top: 36px;
}

.flow-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 48px;
  align-items: center;
  padding: 52px;
  border-radius: var(--radius-lg);
  background: var(--teal-deep);
  color: var(--bg);
}

.flow-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 238, 234, 0.13), transparent 68%);
  pointer-events: none;
}

.flow-panel .eyebrow {
  color: rgba(231, 238, 234, 0.65);
}

.flow-panel h2 {
  max-width: 280px;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.08;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.flow-step {
  padding-top: 18px;
  border-top: 1px solid rgba(251, 247, 240, 0.2);
}

.flow-step-num {
  display: block;
  margin-bottom: 18px;
  color: rgba(231, 238, 234, 0.5);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.flow-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flow-step p {
  margin-top: 7px;
  color: rgba(251, 247, 240, 0.62);
  font-size: 12.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Home — about + faq
   -------------------------------------------------------------------------- */

.about-section {
  padding-top: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.about-copy h2 {
  max-width: 460px;
  font-size: clamp(34px, 3.7vw, 48px);
}

.about-copy p {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
}

.about-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.about-points svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.about-actions {
  margin-top: 30px;
}

.about-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(231, 238, 234, 0.15);
  box-shadow: 0 0 0 42px rgba(231, 238, 234, 0.04), 0 0 0 90px rgba(231, 238, 234, 0.025);
  pointer-events: none;
}

.about-card-kicker {
  color: rgba(251, 247, 240, 0.5);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-card-title {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.about-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.about-card-meta span {
  padding: 5px 11px;
  border: 1px solid rgba(251, 247, 240, 0.18);
  border-radius: 999px;
  color: rgba(251, 247, 240, 0.7);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.faq-section {
  padding-top: 36px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.faq-intro h2 {
  max-width: 330px;
  font-size: clamp(34px, 3.7vw, 48px);
}

.faq-intro > p {
  max-width: 300px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-intro .text-link {
  margin-top: 24px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 21px 2px;
  border: 0;
  background: none;
  text-align: left;
}

.faq-trigger > span:first-child {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 19px;
  height: 19px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.3px;
  border-radius: 2px;
  background: var(--ink-soft);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  background: var(--teal);
  border-color: var(--teal);
}

.faq-trigger[aria-expanded="true"] .faq-icon::before,
.faq-trigger[aria-expanded="true"] .faq-icon::after {
  background: var(--surface-strong);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  max-width: 680px;
  padding: 0 34px 22px 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Product detail page
   -------------------------------------------------------------------------- */

.pdp-main {
  padding-top: 26px;
}

.pdp-breadcrumb {
  margin-bottom: 22px;
}

.pdp-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.pdp-breadcrumb a:hover {
  color: var(--teal-dark);
}

.pdp-breadcrumb svg {
  width: 14px;
  height: 14px;
}

.pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}

.pdp-media {
  min-width: 0;
}

.pdp-media-card {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 4%;
  border: 1px solid rgba(46, 40, 34, 0.08);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(46, 40, 34, 0.09);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pdp-media-card img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.pdp-media-card:hover {
  transform: scale(1.008);
  box-shadow: 0 30px 80px rgba(46, 40, 34, 0.12);
}

.pdp-media-card:hover img {
  transform: scale(1.045);
}

.pdp-media-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.pdp-media-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdp-media-note svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.pdp-info {
  min-width: 0;
  padding-top: 8px;
}

.pdp-title {
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  word-spacing: 0.04em;
}

.pdp-subtitle {
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  margin-bottom: 11px;
}

.plan-label {
  color: var(--muted);
  font-size: 12.5px;
}

.limited-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--warm-pale);
  color: var(--warm);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.limited-tag svg {
  width: 12px;
  height: 12px;
}

.plan-list {
  display: grid;
  gap: 9px;
}

.plan-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 21px;
  border: 1.5px solid transparent;
  border-radius: 15px;
  background: var(--surface-strong);
  box-shadow: 0 1px 2px rgba(46, 40, 34, 0.035);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.plan-card:hover {
  border-color: rgba(74, 141, 138, 0.34);
}

.plan-card.is-selected,
.plan-card:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-pale);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.plan-card:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.plan-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.plan-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.plan-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Owner-defined per-plan tags; PDP plan cards only. */
.plan-tags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
}

/* starter: soft beige / cream pill, brown text (入門體驗). */
.plan-badge--starter,
.plan-badge--entry {
  background: #e5ddcf;
  color: #5a5248;
}

/* hot: solid terracotta / rust pill, light cream text (熱銷 TOP 1). */
.plan-badge--hot {
  background: #9e543e;
  color: #fff8f0;
}

/* stable: muted taupe / olive-gray pill, brown text (穩定首選).
   Deliberately not the old teal .plan-badge--stable look. */
.plan-badge--stable {
  background: #a9a38e;
  color: #3e362a;
}

/* sand: warmer pale sand / wheat pill, brown text (精選推薦). */
.plan-badge--sand {
  background: #ddc9a8;
  color: #4a4034;
}

/* cocoa: deep cocoa / umber-brown pill, cream text (店主推薦). */
.plan-badge--cocoa {
  background: #5f3f32;
  color: #fff8f0;
}

.plan-save {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}

.plan-save--none {
  color: var(--muted);
  font-weight: 400;
}

.plan-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-was {
  color: #a29685;
  font-size: 11px;
  text-decoration: line-through;
}

.plan-card.is-selected .plan-price,
.plan-card:has(input:checked) .plan-price {
  color: var(--teal-dark);
}

.plan-pending {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  letter-spacing: 0.02em;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.pdp-price {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.pdp-was {
  color: #a99b89;
  font-size: 19px;
  text-decoration: line-through;
}

.pdp-actions {
  display: flex;
  align-items: stretch;
  gap: 11px;
  margin-top: 20px;
}

.pdp-add {
  flex: 1;
  min-height: 58px;
  font-size: 15.5px;
}

.pdp-add svg {
  width: 19px;
  height: 19px;
}

.pdp-share {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pdp-share:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-1px);
}

.pdp-share svg {
  width: 19px;
  height: 19px;
}

.pdp-terms {
  margin-top: 13px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.pdp-detail-wrap {
  padding-top: 64px;
}

.pdp-details {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.pdp-details > h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.pdp-intro {
  max-width: 900px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.feature-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 28px;
}

.feature-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 30px;
  border-radius: 23px;
}

.feature-tile--ink {
  background: #241812;
  color: var(--bg);
}

.feature-tile--teal {
  background: var(--teal-pale);
  color: var(--ink);
}

.feature-tile-icon {
  position: absolute;
  top: 26px;
  left: 30px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: #e6a08e;
}

.feature-tile--teal .feature-tile-icon {
  color: var(--teal-dark);
}

.feature-tile-icon svg {
  width: 18px;
  height: 18px;
}

.feature-tile h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.feature-tile p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin-top: 9px;
  color: rgba(251, 247, 240, 0.62);
  font-size: 12.5px;
  line-height: 1.7;
}

.feature-tile--teal p {
  color: var(--muted);
}

.feature-tile::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(251, 247, 240, 0.1);
  box-shadow: 0 0 0 36px rgba(251, 247, 240, 0.025);
}

.feature-tile--teal::after {
  border-color: rgba(74, 141, 138, 0.13);
  box-shadow: 0 0 0 36px rgba(74, 141, 138, 0.035);
}

.delivery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.delivery-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.delivery-status svg {
  width: 19px;
  height: 19px;
  color: var(--green);
}

.delivery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.delivery-chips span {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pdp-category {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.pdp-category a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdp-why {
  padding-top: 68px;
}

.pdp-why > h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.4vw, 40px);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 15px;
  align-items: stretch;
}

.why-grid.is-single {
  grid-template-columns: 1fr;
}

.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.usp-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.usp-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.usp-icon svg {
  width: 17px;
  height: 17px;
}

.usp-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.usp-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.buy-flow-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--bg);
}

.buy-flow-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.buy-flow-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.buy-flow-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(251, 247, 240, 0.12);
}

.buy-flow-list li:first-child {
  border-top: 0;
}

.buy-flow-num {
  color: rgba(231, 238, 234, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.buy-flow-list strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.buy-flow-list p {
  margin-top: 4px;
  color: rgba(251, 247, 240, 0.55);
  font-size: 11px;
  line-height: 1.6;
}

.pdp-related {
  padding-top: 68px;
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.related-head h2 {
  font-size: clamp(28px, 3.2vw, 36px);
}

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

.related-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(74, 141, 138, 0.4);
  box-shadow: var(--shadow-sm);
}

.related-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1.65 / 1;
  border-radius: 15px;
  background: var(--logo-bg, #ffffff);
  overflow: hidden;
}

.related-art img {
  width: 78%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.related-card:hover .related-art img {
  transform: scale(1.09);
}

.related-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 14px 6px 0;
}

.related-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.related-price {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.related-price span {
  font-size: 9.5px;
}

.related-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 6px 0;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 10.5px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.related-card:hover .related-link {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.related-link svg {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(30, 20, 14, 0.44);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-overlay.is-visible {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 151;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  background: var(--surface-strong);
  box-shadow: -24px 0 70px rgba(35, 23, 15, 0.18);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease);
}

.cart-drawer.is-open {
  transform: none;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 26px 16px;
}

.cart-head h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.cart-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cart-close:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.cart-close svg {
  width: 15px;
  height: 15px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 26px 12px;
}

.cart-items.is-empty {
  display: flex;
}

.cart-item {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:first-child {
  border-top: 1px solid var(--line);
}

.cart-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 15px;
  background: var(--logo-bg, #ffffff);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  padding-right: 30px;
}

.cart-item-title {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.cart-item-variant {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-top: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: var(--teal-pale);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
}

.cart-item-price {
  align-self: flex-end;
  padding-bottom: 3px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-remove {
  position: absolute;
  top: 14px;
  right: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-remove:hover {
  background: var(--error-bg);
  color: var(--error);
}

.cart-remove svg {
  width: 14px;
  height: 14px;
}

.cart-foot {
  flex: none;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.cart-total-row span {
  color: var(--muted);
  font-size: 13px;
}

.cart-total-row strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cart-checkout {
  min-height: 52px;
  font-size: 15px;
}

.cart-utilities {
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.cart-utilities > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-util-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-util-link + .cart-util-link {
  margin-top: 6px;
}

.cart-util-link:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.cart-util-link svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.cart-util-link .chevron {
  width: 13px;
  height: 13px;
  margin-left: auto;
}

.cart-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.cart-empty-icon svg {
  width: 24px;
  height: 24px;
}

.cart-empty h3 {
  font-size: 19px;
}

.cart-empty p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.cart-empty .btn {
  margin-top: 20px;
}

.cart-demo-note {
  margin-top: 11px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout-main {
  padding-top: 44px;
  padding-bottom: 90px;
}

.checkout-page .site-footer {
  margin-top: 0;
}

.checkout-heading {
  font-size: clamp(44px, 5.2vw, 64px);
  letter-spacing: -0.05em;
}

.checkout-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 12.5px;
}

.checkout-note svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  gap: 24px;
  align-items: start;
}

.checkout-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}

.card-title h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.req {
  color: var(--warm);
  margin-left: 2px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  padding: 13px 15px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a99c8c;
}

.field input.has-icon {
  padding-left: 42px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface-strong);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error .phone-group {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  margin-top: 6px;
  color: var(--error);
  font-size: 11.5px;
}

.field-hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.phone-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-right: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.phone-group input {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-left: 13px;
}

.phone-group input:focus {
  box-shadow: none;
  background: transparent;
}

.phone-group:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.pay-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pay-tile:hover {
  border-color: var(--line-strong);
}

.pay-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pay-tile:has(input:checked),
.pay-tile.is-selected {
  border-color: var(--teal);
  background: var(--teal-pale);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 70px;
  height: 42px;
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 2px rgba(46, 40, 34, 0.04);
}

.pay-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pay-icon-fallback {
  display: block;
  line-height: 1;
}

.pay-tile[data-pay="payme"] .pay-icon {
  color: #a44a63;
}

.pay-tile[data-pay="fps"] .pay-icon {
  color: #2f6c8c;
}

.pay-tile[data-pay="alipay"] .pay-icon {
  color: #2c5a9a;
}

.pay-tile[data-pay="bank"] .pay-icon {
  color: var(--ink-soft);
}

.pay-name {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.pay-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  margin-left: auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pay-check svg {
  width: 10px;
  height: 10px;
}

@media (max-width: 560px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

.pay-tile:has(input:checked) .pay-check,
.pay-tile.is-selected .pay-check {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--surface-strong);
}

.pay-note {
  margin-top: 13px;
  color: var(--muted);
  font-size: 10.5px;
}

.order-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.order-summary h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.summary-items {
  margin-top: 6px;
}

.summary-item {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  padding: 7px;
  border-radius: 13px;
  background: var(--logo-bg, #ffffff);
}

.summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-item-info {
  flex: 1;
  min-width: 0;
}

.summary-item-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.summary-item-variant {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.summary-item .qty-stepper {
  height: 25px;
  margin-top: 6px;
}

.summary-item .qty-btn {
  width: 23px;
  height: 24px;
  font-size: 12px;
}

.summary-item .qty-value {
  min-width: 18px;
  font-size: 10.5px;
}

.summary-item-price {
  align-self: flex-start;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.summary-totals {
  padding-top: 13px;
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.summary-total span {
  font-size: 13px;
  font-weight: 500;
}

.summary-total strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.summary-pending {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9.5px;
  text-align: right;
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.terms-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.terms-box {
  display: block;
  flex: none;
  margin-top: 1px;
  cursor: pointer;
}

.checkbox-ui {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.checkbox-ui svg {
  width: 10px;
  height: 10px;
}

.terms-input:checked + .terms-box .checkbox-ui {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--surface-strong);
}

.terms-input:focus-visible + .terms-box .checkbox-ui {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.terms-copy {
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.terms-copy label {
  cursor: pointer;
}

.terms-copy button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-copy button:hover {
  color: var(--teal-dark);
}

.confirm-btn {
  min-height: 52px;
  margin-top: 16px;
  font-size: 14.5px;
}

.confirm-btn:disabled {
  background: #d8d1c5;
  color: #8f8475;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.confirm-hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.form-status {
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(157, 62, 44, 0.18);
  border-radius: 9px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 11.5px;
  line-height: 1.5;
}

.summary-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.summary-trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.summary-trust svg {
  width: 12px;
  height: 12px;
  color: var(--teal);
}

.checkout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 84px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  text-align: center;
}

.checkout-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.checkout-empty-icon svg {
  width: 27px;
  height: 27px;
}

.checkout-empty h2 {
  font-size: 27px;
}

.checkout-empty p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.checkout-empty .btn {
  margin-top: 24px;
}

/* Payment + success steps */

.pay-step,
.success-step {
  scroll-margin-top: calc(var(--header-h) + 24px);
  max-width: 880px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.pay-step-head {
  text-align: center;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--warm-pale);
  color: var(--warm);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pay-step-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.6vw, 40px);
}

.pay-step-head > p {
  max-width: 520px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.pay-step-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 32px;
}

.qr-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
}

.qr-code {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
}

.qr-code svg {
  width: 100%;
  height: 100%;
}

.qr-code img,
.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.qr-empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.qr-brand {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.pay-amount-label {
  color: var(--muted);
  font-size: 11px;
}

.pay-amount {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pay-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 17px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.pay-ref strong {
  color: var(--ink);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.pay-ref-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pay-ref-copy {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 9.5px;
  letter-spacing: 0;
}

.pay-ref-copy:disabled {
  cursor: default;
  opacity: 0.55;
}

.pay-instructions {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.pay-demo-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--warm-pale);
  color: var(--warm);
  font-size: 10.5px;
  line-height: 1.6;
}

.pay-method-name {
  margin-top: 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pay-account {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.pay-account > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 11.5px;
}

.pay-account span {
  color: var(--muted);
}

.pay-account strong {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

/* Right-hand value + 複製識別碼 cluster, mirroring .pay-ref-value. */
.pay-account-value,
.topup-account-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.pay-account-value strong,
.topup-account-value strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.pay-account > div.has-copy,
.topup-account > div.has-copy {
  align-items: center;
  flex-wrap: wrap;
}

.pay-account-copy {
  flex: none;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 9.5px;
  letter-spacing: 0;
  white-space: nowrap;
}

.pay-note--warn {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--error);
  background: var(--error-bg);
}

.pay-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.pay-actions .btn {
  min-height: 52px;
}

.pay-actions .btn-primary {
  flex: 1;
}

.success-step {
  max-width: 720px;
  text-align: center;
  padding: 50px 42px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

.success-step h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.6vw, 42px);
}

.success-body {
  max-width: 480px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.success-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.success-details > div {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.success-details dt {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.success-details dd {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.success-demo {
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

.success-actions {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Legal dialog + toast
   -------------------------------------------------------------------------- */

.legal-dialog {
  width: min(540px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.legal-dialog::backdrop {
  background: rgba(30, 20, 14, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.legal-dialog-inner {
  position: relative;
  padding: 30px;
}

.legal-dialog h2 {
  padding-right: 30px;
  font-size: 23px;
}

.legal-dialog p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.legal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.legal-close svg {
  width: 13px;
  height: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 250;
  max-width: calc(100% - 40px);
  padding: 11px 19px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 901px) {
  .pdp-media {
    position: sticky;
    top: calc(var(--header-h) + 26px);
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 21px;
  }

  .nav-wrap {
    gap: 18px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Tablet cards go horizontal: a modest square logo well, with the
     introduction and price reading across the rest of the card. */
  .catalog-card {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 18px;
    padding: 14px;
  }

  .catalog-art {
    grid-row: 1 / 3;
    align-self: center;
    width: 156px;
    height: 156px;
    aspect-ratio: auto;
    margin-bottom: 0;
  }

  .catalog-body {
    padding: 0;
  }

  .catalog-blurb {
    min-height: 0;
  }

  .catalog-foot {
    grid-column: 2;
    margin-top: 10px;
    padding: 0;
  }

  .pdp-top {
    gap: 40px;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: grid;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 18px;
  }

  .flow-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .flow-panel h2 {
    max-width: 420px;
  }

  .about-grid,
  .faq-layout {
    gap: 42px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .buy-flow-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .buy-flow-list li {
    display: block;
    padding: 0;
    border-top: 0;
  }

  .buy-flow-num {
    display: block;
    margin-bottom: 8px;
  }
}

@media (max-width: 900px) {
  .pdp-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pdp-media-card {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .pdp-info {
    padding-top: 0;
  }

  .pdp-title {
    font-size: clamp(36px, 7vw, 52px);
  }

  .pdp-details {
    padding: 32px;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .checkout-left {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* pt210u: phones show the three trust lines stacked, not a clipped row. */
  .topbar-inner {
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding-block: 8px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.06em;
  }

  .topbar-inner .topbar-sep {
    display: none;
  }

  .topbar-independent {
    display: inline;
  }

  .nav-wrap {
    min-height: 66px;
    gap: 10px;
  }

  .wordmark img {
    height: 46px;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-btn {
    min-width: 30px;
    height: 44px;
    padding: 0 5px;
    font-size: 10.5px;
  }

  .cart-btn,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-actions {
    gap: 7px;
  }

  .mobile-menu {
    padding: 6px 20px 20px;
  }

  .home-hero {
    padding-top: 32px;
  }

  .home-intro {
    display: block;
    margin-bottom: 22px;
  }

  .home-intro h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .home-lede {
    max-width: 310px;
    margin-top: 12px;
    padding-bottom: 0;
    font-size: 13.5px;
  }

  .feature-banner {
    min-height: 510px;
    border-radius: 25px;
  }

  .feature-art {
    width: 124%;
    left: -4%;
    right: auto;
    top: 0;
    height: auto;
    object-position: center;
    opacity: 0.86;
  }

  .feature-shade {
    background:
      radial-gradient(220px 180px at 72% 25%, rgba(218, 20, 32, 0.2), transparent 76%),
      linear-gradient(180deg, rgba(13, 12, 11, 0.02) 0%, rgba(13, 12, 11, 0.24) 30%, rgba(13, 12, 11, 0.9) 62%, #0d0c0b 100%);
  }

  .feature-copy {
    justify-content: flex-end;
    min-height: 510px;
    padding: 28px 24px 30px;
  }

  .feature-kicker {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .feature-title {
    font-size: clamp(34px, 10.4vw, 44px);
  }

  .feature-sub {
    max-width: 300px;
    margin-top: 9px;
    font-size: 13.5px;
  }

  .feature-meta {
    margin-top: 18px;
  }

  .feature-price {
    font-size: 22px;
  }

  .feature-cta {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
  }

  .hot-section {
    padding-top: 30px;
  }

  .section-head {
    display: block;
    margin-bottom: 18px;
  }

  .section-sub {
    max-width: 100%;
    margin-top: 9px;
    padding-bottom: 0;
    font-size: 13px;
  }

  .section-head h2 {
    font-size: 31px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .quick-card {
    gap: 10px;
    padding: 11px;
    border-radius: 15px;
  }

  .quick-rank {
    display: none;
  }

  .quick-logo {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .quick-body strong {
    font-size: 13.5px;
  }

  .quick-body span {
    font-size: 10px;
  }

  .quick-arrow {
    display: none;
  }

  .catalog-section {
    padding-top: 30px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .catalog-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 12px 14px 14px 12px;
    border-radius: 20px;
  }

  .catalog-art {
    grid-row: 1 / 3;
    align-self: center;
    width: 104px;
    height: 104px;
    aspect-ratio: auto;
    margin-bottom: 0;
    border-radius: 13px;
  }

  .catalog-body {
    gap: 5px;
    padding: 2px 0 0;
  }

  .catalog-name {
    font-size: 19px;
  }

  .catalog-blurb {
    font-size: 13.5px;
    line-height: 1.65;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .catalog-foot {
    margin-top: 10px;
    padding: 0;
  }

  .catalog-price {
    font-size: 12.5px;
  }

  .catalog-cat {
    font-size: 9.5px;
  }

  .flow-section,
  .about-section,
  .faq-section {
    padding-top: 30px;
  }

  .flow-panel {
    padding: 30px 24px;
    border-radius: 25px;
  }

  .flow-panel h2 {
    font-size: 30px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid rgba(251, 247, 240, 0.16);
  }

  .flow-step-num {
    flex: none;
    width: 20px;
    margin: 2px 0 0;
  }

  .flow-step h3 {
    font-size: 17px;
  }

  .flow-step p {
    margin-top: 3px;
    font-size: 11.5px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-copy h2 {
    font-size: 35px;
  }

  .about-copy p {
    margin-top: 14px;
    font-size: 13.5px;
  }

  .about-card {
    min-height: 250px;
    padding: 28px;
    border-radius: 25px;
  }

  .about-card-title {
    margin-top: 22px;
    font-size: 31px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-intro h2 {
    font-size: 35px;
  }

  .faq-intro > p {
    max-width: 100%;
  }

  .faq-trigger > span:first-child {
    font-size: 15.5px;
  }

  .site-footer {
    /* pt210u: close the empty cream band before the footer on phones. */
    margin-top: 24px;
    padding-top: 42px;
  }

  .footer-grid {
    /* pt217u: 選購 | 支援 | 聯絡 stay side by side on phones; the brand
       keeps the full-width row above them. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 360px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .pdp-main {
    padding-top: 18px;
  }

  .pdp-breadcrumb {
    margin-bottom: 15px;
  }

  .pdp-media-card {
    border-radius: 28px;
    padding: 7%;
  }

  .pdp-subtitle {
    margin-top: 10px;
    font-size: 14.5px;
  }

  .plan-head {
    margin-top: 28px;
  }

  .plan-card {
    padding: 15px 16px;
    gap: 10px;
  }

  .plan-name {
    font-size: 17px;
  }

  .plan-price {
    font-size: 17px;
  }

  .plan-badge {
    font-size: 9px;
  }

  .pdp-price-row {
    margin-top: 26px;
    gap: 10px;
  }

  .pdp-price {
    font-size: 44px;
  }

  .pdp-was {
    font-size: 17px;
  }

  .pdp-actions {
    margin-top: 17px;
  }

  .pdp-add {
    min-height: 54px;
  }

  .pdp-share {
    width: 54px;
    height: 54px;
  }

  .pdp-detail-wrap {
    padding-top: 44px;
  }

  .pdp-details {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .pdp-intro {
    font-size: 13px;
  }

  .feature-tiles {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 20px;
  }

  .feature-tile {
    min-height: 195px;
    padding: 24px;
    border-radius: 19px;
  }

  .feature-tile-icon {
    top: 22px;
    left: 24px;
  }

  .feature-tile h3 {
    font-size: 19px;
  }

  .feature-tile p {
    font-size: 11.5px;
  }

  .delivery-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    padding: 14px 16px;
  }

  .pdp-why {
    padding-top: 46px;
  }

  .usp-grid {
    /* pt217u: four short benefit tiles read better as a 2x2 block than as
       a tall full-width stack. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .usp-card {
    padding: 20px;
  }

  .usp-icon {
    margin-bottom: 14px;
  }

  .buy-flow-card {
    padding: 23px;
  }

  .buy-flow-list {
    display: block;
  }

  .buy-flow-list li {
    display: grid;
    padding: 13px 0;
    border-top: 1px solid rgba(251, 247, 240, 0.12);
  }

  .pdp-related {
    padding-top: 46px;
  }

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

  .related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 9px 13px 9px 9px;
    border-radius: 17px;
  }

  .related-art {
    aspect-ratio: 1 / 1;
    grid-row: auto;
    border-radius: 12px;
  }

  .related-body {
    padding: 0;
  }

  .related-name {
    font-size: 15.5px;
  }

  .related-foot {
    padding: 0;
  }

  .related-link {
    padding: 7px 11px;
  }

  .checkout-main {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .checkout-heading {
    font-size: 43px;
  }

  .checkout-note {
    margin: 13px 0 18px;
    padding: 11px 13px;
    font-size: 11.5px;
  }

  .checkout-grid {
    gap: 16px;
  }

  .checkout-card {
    padding: 21px 18px;
    border-radius: 19px;
  }

  .card-title {
    margin-bottom: 18px;
  }

  .card-title h2 {
    font-size: 19px;
  }

  .field input,
  .field textarea {
    font-size: 16px;
  }

  .pay-grid {
    gap: 8px;
  }

  .pay-tile {
    min-height: 58px;
    padding: 10px;
    gap: 8px;
  }

  .pay-icon {
    width: 58px;
    height: 38px;
    padding: 4px 6px;
  }

  .pay-name {
    font-size: 11.5px;
  }

  .pay-check {
    display: none;
  }

  .order-summary {
    padding: 21px 18px;
    border-radius: 19px;
  }

  .pay-step,
  .success-step {
    padding: 28px 18px;
    border-radius: 22px;
  }

  .pay-step-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 24px;
  }

  .qr-card {
    max-width: 270px;
    margin: 0 auto;
  }

  .pay-actions {
    flex-direction: column;
    gap: 9px;
    margin-top: 22px;
  }

  .pay-actions .btn {
    width: 100%;
  }

  .success-step {
    padding: 36px 20px;
  }

  .success-details {
    /* pt217u: short label/value tiles fit two per row on phones. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .legal-dialog-inner {
    padding: 24px;
  }

  .cart-head {
    padding: 20px 20px 13px;
  }

  .cart-items {
    padding: 4px 20px 10px;
  }

  .cart-foot {
    padding: 14px 20px 20px;
  }
}

@media (max-width: 420px) {
  .topbar-inner {
    /* Three stacked trust lines: keep them tight rather than 7px apart. */
    gap: 2px;
  }

  .nav-actions {
    gap: 5px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-body span {
    white-space: normal;
  }

  .plan-save {
    font-size: 10px;
  }

  .plan-name-row {
    gap: 5px;
  }

  .plan-badge {
    padding: 2px 6px;
  }

  .footer-grid {
    /* pt217u: do not collapse back to one tall column on small phones. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 9px;
  }
}

@media (max-width: 360px) {
  .nav-wrap {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }

  .wordmark img {
    height: 40px;
  }

  .lang-btn {
    min-width: 26px;
    height: 44px;
    padding: 0 4px;
    font-size: 10px;
  }

  .cart-btn,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-actions {
    gap: 4px;
  }
}

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

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Keep the footer balanced when section switches hide columns. */
@media (min-width: 701px) {
  .footer-grid[data-footer-cols="1"] {
    grid-template-columns: 1fr;
  }

  .footer-grid[data-footer-cols="2"] {
    grid-template-columns: 1.4fr 1fr;
  }

  .footer-grid[data-footer-cols="3"] {
    grid-template-columns: 1.4fr 0.7fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Home — monthly bestsellers (ranked TOP list)
   -------------------------------------------------------------------------- */

.monthly-section {
  padding-top: 36px;
}

.monthly-panel {
  position: relative;
  padding: 34px 36px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(231, 238, 234, 0.9) 0%, rgba(231, 238, 234, 0) 56%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.monthly-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.monthly-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.monthly-heading h2 {
  font-size: clamp(36px, 4.2vw, 54px);
}

.monthly-top {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.monthly-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.monthly-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.monthly-link:hover {
  color: var(--teal);
}

.monthly-link:hover svg {
  transform: translateX(3px);
}

.monthly-list {
  display: grid;
  gap: 10px;
}

.monthly-item {
  min-width: 0;
}

.monthly-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 13px 20px 13px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.monthly-row:hover {
  transform: translateY(-2px) scale(1.006);
  border-color: rgba(74, 141, 138, 0.45);
  box-shadow: var(--shadow-sm);
}

.monthly-rank {
  flex: none;
  width: 36px;
  text-align: center;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.monthly-item:nth-child(4n + 1) .monthly-rank {
  color: #a95a38;
}

.monthly-item:nth-child(4n + 2) .monthly-rank {
  color: var(--teal);
}

.monthly-item:nth-child(4n + 3) .monthly-rank {
  color: #73618f;
}

.monthly-item:nth-child(4n + 4) .monthly-rank {
  color: var(--green);
}

.monthly-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 17px;
  background: var(--logo-bg, #ffffff);
}

.monthly-logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.monthly-row:hover .monthly-logo img {
  transform: scale(1.1);
}

.monthly-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-arrow {
  margin-left: 0;
  flex: none;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.monthly-arrow svg {
  width: 18px;
  height: 18px;
}

.monthly-row:hover .monthly-arrow {
  transform: translateX(3px);
  color: var(--teal-dark);
}

/* --------------------------------------------------------------------------
   Home — wishlist / request list
   -------------------------------------------------------------------------- */

.wishlist-section {
  padding-top: 36px;
}

.wishlist-panel {
  position: relative;
  padding: 40px 36px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(231, 238, 234, 0.95) 0%, rgba(231, 238, 234, 0) 58%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.wishlist-intro {
  position: relative;
  padding-left: 20px;
  margin-bottom: 26px;
}

.wishlist-intro::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 5px;
  height: 44px;
  border-radius: 999px;
  background: var(--teal);
}

.wishlist-intro .eyebrow {
  margin-bottom: 10px;
}

.wishlist-intro h2 {
  font-size: clamp(32px, 3.8vw, 46px);
}

.wishlist-sub {
  max-width: 640px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.wishlist-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.wishlist-card h3 {
  font-size: 21px;
}

.wishlist-card-hint {
  max-width: 430px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.wishlist-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.wishlist-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wishlist-input::placeholder {
  color: #a69380;
}

.wishlist-input:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface-strong);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.wishlist-submit {
  flex: none;
  min-height: 48px;
  padding: 11px 24px;
}

.wishlist-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.wishlist-feedback.is-success {
  color: var(--green);
}

.wishlist-feedback.is-info {
  color: var(--teal-dark);
}

.wishlist-chips-card {
  background: linear-gradient(180deg, rgba(231, 238, 234, 0.6), var(--surface-strong) 55%);
}

.wishlist-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  margin-top: 18px;
}

.wishlist-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wishlist-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.wishlist-empty {
  grid-column: 1 / -1;
  padding: 10px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .monthly-panel,
  .wishlist-panel {
    padding: 28px 24px;
    border-radius: var(--radius);
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .monthly-section,
  .wishlist-section {
    padding-top: 30px;
  }

  .monthly-panel,
  .wishlist-panel {
    padding: 24px 20px;
  }

  .monthly-head {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .monthly-link {
    margin-top: 0;
    align-self: flex-start;
  }

  .monthly-row {
    gap: 12px;
    padding: 11px 14px;
    border-radius: 16px;
  }

  .monthly-rank {
    width: 24px;
    font-size: 22px;
  }

  .monthly-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .monthly-name {
    font-size: 17px;
  }

  .monthly-arrow {
    display: none;
  }

  .wishlist-intro {
    padding-left: 16px;
    margin-bottom: 20px;
  }

  .wishlist-intro::before {
    height: 36px;
  }

  .wishlist-sub {
    font-size: 13.5px;
  }

  .wishlist-card {
    padding: 20px;
  }

  .wishlist-form {
    flex-direction: column;
  }

  .wishlist-submit {
    width: 100%;
  }
}

@media (max-width: 420px) {
  /* pt217u: 其他用戶想要的 stays 2-up on small phones instead of one tall
     column of full-width pills. */
  .wishlist-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .monthly-name {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   Digital fulfillment modal (卡密 / 填寫帳密)
   -------------------------------------------------------------------------- */

.fulfillment-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.fulfillment-dialog::backdrop {
  background: rgba(30, 20, 14, 0.52);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.fulfillment-dialog-inner {
  position: relative;
  max-height: calc(100vh - 40px);
  padding: 30px;
  overflow-y: auto;
}

.fulfillment-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.fulfillment-close svg {
  width: 13px;
  height: 13px;
}

.fulfillment-kicker {
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.fulfillment-dialog h2 {
  margin-top: 5px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.fulfillment-intro {
  max-width: 600px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.fulfillment-order-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
}

.fulfillment-order-line strong {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.fulfillment-body {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.fulfillment-item {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(74, 141, 138, 0.08), transparent 15rem),
    var(--surface);
}

.fulfillment-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.fulfillment-item-head h3 {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fulfillment-item-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.fulfillment-mode-pill {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.fulfillment-note {
  margin-top: 11px;
  padding: 9px 11px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--teal-wash);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-line;
}

.fulfillment-delivery {
  margin-top: 12px;
}

.fulfillment-code-list {
  display: grid;
  gap: 9px;
}

.fulfillment-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "value copy";
  gap: 4px 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px dashed var(--teal);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(74, 141, 138, 0.1), rgba(74, 141, 138, 0.02)),
    #ffffff;
}

.fulfillment-code-label {
  grid-area: label;
  color: var(--teal-dark);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fulfillment-code-value {
  grid-area: value;
  min-width: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(15px, 2.8vw, 22px);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: all;
}

.fulfillment-copy {
  grid-area: copy;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.fulfillment-copy:hover {
  background: var(--teal-dark);
}

.fulfillment-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.fulfillment-empty {
  padding: 14px 15px;
  border: 1px solid rgba(169, 79, 56, 0.32);
  border-radius: 12px;
  background: var(--warm-pale);
}

.fulfillment-empty strong {
  display: block;
  color: var(--warm);
  font-size: 12.5px;
}

.fulfillment-empty p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.65;
}

.fulfillment-account-form {
  display: grid;
  gap: 10px;
}

.fulfillment-account-intro {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.fulfillment-field {
  display: grid;
  gap: 5px;
}

.fulfillment-field label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fulfillment-field input,
.fulfillment-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.fulfillment-field textarea {
  resize: vertical;
}

.fulfillment-field input:focus,
.fulfillment-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.fulfillment-error {
  color: var(--error);
  font-size: 10.5px;
  font-weight: 700;
}

.fulfillment-privacy {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.fulfillment-account-form .btn {
  justify-self: start;
  min-height: 42px;
  padding: 9px 20px;
  font-size: 11.5px;
}

.fulfillment-account-success {
  padding: 15px 16px;
  border: 1px solid rgba(63, 107, 82, 0.28);
  border-radius: 12px;
  background: var(--green-pale);
}

.fulfillment-account-success strong {
  display: block;
  color: var(--green);
  font-size: 12.5px;
}

.fulfillment-account-success p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.fulfillment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .fulfillment-dialog {
    width: calc(100% - 18px);
    max-height: calc(100vh - 18px);
  }

  .fulfillment-dialog-inner {
    max-height: calc(100vh - 18px);
    padding: 22px 18px;
  }

  .fulfillment-item {
    padding: 14px;
  }

  .fulfillment-code-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "value"
      "copy";
  }

  .fulfillment-copy {
    justify-self: start;
    margin-top: 4px;
  }
}

/* --------------------------------------------------------------------------
   Product not-found state
   -------------------------------------------------------------------------- */

.product-not-found .pdp-breadcrumb,
.product-not-found .pdp-top,
.product-not-found .pdp-detail-wrap,
.product-not-found .pdp-why,
.product-not-found .pdp-related {
  display: none !important;
}

.pdp-not-found {
  max-width: 760px;
  margin: 46px auto 70px;
  padding: 58px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(74, 141, 138, 0.12), transparent 18rem),
    var(--surface-strong);
  box-shadow: var(--shadow);
  text-align: center;
}

.pdp-not-found-kicker {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.pdp-not-found h1 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.pdp-not-found > p:not(.pdp-not-found-kicker) {
  max-width: 460px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.pdp-not-found .btn {
  margin-top: 24px;
}

@media (max-width: 560px) {
  .pdp-not-found {
    margin: 24px auto 50px;
    padding: 40px 22px;
  }
}

/* --------------------------------------------------------------------------
   Storefront first-paint gate
   Customer pages carry `content-pending` on <html> until the public
   /api/shop-content read applies, fails or times out. The neutral loader is
   the only thing painted meanwhile, so built-in defaults never flash before
   the owner's saved content.
   -------------------------------------------------------------------------- */

html.content-pending body {
  visibility: hidden !important;
}

html.content-pending .otterly-loader,
html.content-pending .otterly-loader[hidden] {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
   Otterly branded loader
   A cream/teal otter ripple intro for first paint and natural waits.
   -------------------------------------------------------------------------- */

.otterly-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(74, 141, 138, 0.1), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(169, 79, 56, 0.06), transparent 52%),
    var(--bg);
  transition: opacity 0.42s var(--ease), visibility 0.42s var(--ease);
}

.otterly-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.otterly-loader-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.otterly-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-bottom: 4px;
}

.otterly-loader-mark img {
  position: relative;
  z-index: 2;
  width: 78px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(46, 40, 34, 0.14));
  animation: otterlyBreath 2.1s ease-in-out infinite;
}

.otterly-loader-ring {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(74, 141, 138, 0.34);
  border-radius: 50%;
  opacity: 0;
  animation: otterlyRipple 2.4s var(--ease) infinite;
}

.otterly-loader-ring:nth-child(2) {
  animation-delay: 0.55s;
}

.otterly-loader-ring:nth-child(3) {
  animation-delay: 1.1s;
}

.otterly-loader-word {
  margin: 0;
  color: var(--teal-deep);
  font-family: var(--font-brand);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.otterly-loader-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.otterly-loader-bar {
  position: relative;
  display: block;
  width: 128px;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(74, 141, 138, 0.16);
}

.otterly-loader-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: otterlyBar 1.35s var(--ease) infinite;
}

@keyframes otterlyRipple {
  0% { opacity: 0; transform: scale(0.62); }
  18% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes otterlyBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

@keyframes otterlyBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

/* Inline branded wait mark (payment confirmation, order polling). */
.brand-loader {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  position: relative;
}

.brand-loader img {
  position: relative;
  z-index: 2;
  width: 38px;
  height: auto;
  animation: otterlyBreath 2.1s ease-in-out infinite;
}

.brand-loader .otterly-loader-ring {
  inset: 2px;
}

.brand-loader--sm {
  width: 36px;
  height: 36px;
}

.brand-loader--sm img {
  width: 22px;
}

/* Replace the old generic ring with a small cream/teal otter-dot wave. */
.btn-spinner {
  display: none;
  width: 20px;
  height: 6px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle 2.6px at 3px 3px, currentColor 98%, transparent 100%),
    radial-gradient(circle 2.6px at 10px 3px, currentColor 98%, transparent 100%),
    radial-gradient(circle 2.6px at 17px 3px, currentColor 98%, transparent 100%);
  animation: otterlyDots 1.05s ease-in-out infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes otterlyDots {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* Server-offline note for static catalogue use. */
.server-banner {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 9px 18px;
  background: var(--teal-deep);
  color: rgba(251, 247, 240, 0.95);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.server-banner p {
  margin: 0;
}

.server-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 141, 138, 0.22);
}

.server-banner-retry {
  padding: 3px 12px;
  border: 1px solid rgba(251, 247, 240, 0.45);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.server-banner-retry:hover {
  background: rgba(251, 247, 240, 0.12);
}

/* Account entry in the public nav (never links to admin.html). */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-account:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal-deep);
}

.nav-account svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .mobile-nav .nav-account-mobile {
    display: flex;
  }
}

/* pt211u: keep the account entry hidden on tablet only; phones show it in
   the header row again (see the phone-header block at the end of this file). */
@media (max-width: 900px) and (min-width: 761px) {
  .nav-account {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otterly-loader-mark img,
  .otterly-loader-ring,
  .otterly-loader-bar span,
  .brand-loader img,
  .btn-spinner {
    animation: none !important;
  }

  .otterly-loader-ring {
    opacity: 0.4;
  }
}

/* --------------------------------------------------------------------------
   Checkout auth, order waiting, confirmed delivery
   -------------------------------------------------------------------------- */

.checkout-auth-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--teal-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.checkout-auth-user {
  color: var(--teal-deep);
  font-weight: 600;
}

.pay-ref-note {
  max-width: 330px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.order-wait {
  max-width: 780px;
  text-align: left;
  padding: 42px;
}

.order-wait-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.order-wait-head h2 {
  margin-top: 6px;
  font-size: clamp(28px, 3.4vw, 38px);
}

.order-wait-head .brand-loader {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
}

.order-wait-head .brand-loader img {
  width: 48px;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--warm-pale);
  color: var(--warm);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: otterlyDots 1.4s ease-in-out infinite;
}

.order-status-pill.is-confirmed {
  background: var(--green-pale);
  color: var(--green);
}

.order-status-pill.is-confirmed::before {
  animation: none;
}

.order-status-pill.is-rejected {
  background: var(--warm-pale);
  color: var(--error);
}

.order-status-pill.is-rejected::before {
  animation: none;
}

.order-status-pill.is-cancelled {
  background: var(--bg-deep);
  color: var(--muted);
}

.order-status-pill.is-cancelled::before {
  animation: none;
}

.order-wait .success-body {
  max-width: 620px;
  margin: 16px 0 0;
  text-align: left;
}

.order-remark-card {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px dashed rgba(74, 141, 138, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(74, 141, 138, 0.1), rgba(74, 141, 138, 0.02)),
    #ffffff;
}

.order-remark-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.order-remark-head > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.order-no {
  color: var(--teal-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.06em;
  user-select: all;
}

.order-copy {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.order-copy:hover {
  background: var(--teal-dark);
}

.order-remark-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.order-wait .success-details {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.order-poll-note {
  margin-top: 20px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 10.5px;
  line-height: 1.6;
}

.order-contact-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.order-wait .success-actions,
.order-rejected .success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.order-confirmed {
  max-width: 820px;
  text-align: left;
  padding: 32px;
}

.order-delivery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.order-delivery-kicker {
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.order-delivery-head h2 {
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 34px);
}

.order-delivery-number {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.order-delivery-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.order-delivery-shell .fulfillment-body {
  margin-top: 22px;
}

.order-delivery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.order-delivery-foot strong {
  color: var(--ink);
}

.order-delivery-link {
  color: var(--teal-deep);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-rejected {
  max-width: 680px;
}

.order-rejected .success-icon.is-rejected {
  background: var(--warm-pale);
  color: var(--error);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.order-no-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
}

.order-no-line strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* Auth dialog used by checkout. */
.auth-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-dialog::backdrop {
  background: rgba(30, 20, 14, 0.52);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.auth-dialog-inner {
  position: relative;
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.auth-close svg {
  width: 13px;
  height: 13px;
}

.auth-kicker {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.auth-dialog h2 {
  margin-top: 5px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: clamp(21px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.auth-tab {
  padding: 7px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--teal);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.auth-field {
  display: grid;
  gap: 5px;
}

.auth-field span {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.auth-error {
  color: var(--error);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-form .btn {
  justify-self: stretch;
  margin-top: 2px;
}

/* Checkout email verification dialog (InfinityOne-style structure, Otterly teal). */
.verify-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.verify-dialog::backdrop {
  background: rgba(30, 20, 14, 0.52);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.verify-dialog-inner {
  position: relative;
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
}

.verify-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.verify-close svg {
  width: 13px;
  height: 13px;
}

.verify-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
}

.verify-icon svg {
  width: 25px;
  height: 25px;
}

.verify-dialog h2 {
  margin: 0;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.verify-instruction {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.verify-instruction strong {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.verify-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid var(--teal);
  border-radius: 12px;
  background: #ffffff;
  color: var(--teal-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.verify-send:hover {
  background: var(--teal-wash);
  border-color: var(--teal-dark);
}

.verify-send:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.verify-send:disabled {
  cursor: default;
  opacity: 0.62;
}

.verify-send svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.verify-status {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}

.verify-status.is-error {
  background: var(--error-bg);
  color: var(--error);
}

.verify-code-form {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.verify-label {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
}

.verify-code-input {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-align: center;
}

.verify-code-input::placeholder {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.verify-code-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.verify-error {
  margin: 2px 0 0;
}

.verify-code-form .btn {
  margin-top: 5px;
}

.verify-code-form .btn:disabled,
.verify-password-form .btn:disabled {
  cursor: default;
  opacity: 0.55;
}

.verify-help-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.verify-help {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.verify-help svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--teal-dark);
  flex: none;
}

.verify-help strong {
  color: var(--ink-soft);
}

.verify-help a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verify-foot {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.verify-foot button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.verify-foot button:hover {
  color: var(--teal-deep);
}

.verify-password-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.verify-password-form .auth-hint {
  margin: -4px 0 0;
}

.verify-password-form .btn {
  margin-top: 4px;
}

.verify-password-form .auth-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

@media (max-width: 480px) {
  .verify-dialog-inner {
    padding: 24px 20px;
  }

  .verify-code-input {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .order-wait {
    padding: 26px 20px;
  }

  .order-wait-head {
    align-items: flex-start;
  }

  .order-wait-head .brand-loader {
    width: 58px;
    height: 58px;
  }

  .order-wait-head .brand-loader img {
    width: 36px;
  }

  .order-confirmed {
    padding: 22px 16px;
  }

  .order-delivery-head {
    flex-direction: column;
  }

  .order-remark-head {
    align-items: flex-start;
  }

  .order-no {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Account page
   -------------------------------------------------------------------------- */

.account-main {
  padding-top: 46px;
  padding-bottom: 90px;
}

.account-hero {
  max-width: 720px;
  padding-bottom: 28px;
}

.account-kicker {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.account-hero h1 {
  margin-top: 6px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.account-lede {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.account-status {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 12px;
}

.account-status.is-error {
  background: var(--warm-pale);
  color: var(--error);
}

.account-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 20px;
  align-items: start;
}

.account-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.account-card-kicker {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.account-card h2 {
  margin-top: 4px;
  font-size: 26px;
}

.account-field {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}

.account-field span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.account-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
}

.account-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.account-hint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.account-form-error {
  margin-top: 12px;
  color: var(--error);
  font-size: 11.5px;
  font-weight: 700;
}

.account-card .btn {
  margin-top: 18px;
}

.account-auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.account-auth-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.account-auth-toggle:hover {
  color: var(--teal-deep);
}

.account-auth-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.account-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.account-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.account-userbar p {
  color: var(--muted);
  font-size: 12px;
}

.account-userbar strong {
  color: var(--ink);
}

.account-logout,
.account-refresh {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.account-logout:hover,
.account-refresh:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.account-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 14px;
}

.account-orders-head h2 {
  font-size: 26px;
}

.account-orders {
  display: grid;
  gap: 16px;
}

.account-order {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.account-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.account-order-head h3 {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.account-order-head time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.account-order-total {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 22px;
}

.account-order-items {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.account-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  background: var(--surface);
  font-size: 11.5px;
}

.account-order-item div {
  display: grid;
}

.account-order-item div strong {
  font-size: 12.5px;
}

.account-order-item div span {
  color: var(--muted);
  font-size: 10px;
}

.account-order-item > span {
  color: var(--muted);
  font-size: 10.5px;
}

.account-order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.account-order-meta > div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.account-order-meta .is-wide {
  grid-column: 1 / -1;
}

.account-order-meta dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-order-meta dd {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-order-wait,
.account-order-rejected,
.account-order-cancelled {
  margin-top: 15px;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--teal-pale);
}

.account-order-rejected {
  background: var(--warm-pale);
}

.account-order-wait.is-unpaid {
  border: 1px solid rgba(74, 141, 138, 0.22);
  background: var(--surface);
}

.account-order-cancelled {
  background: var(--bg-deep);
}

.account-order-wait > strong,
.account-order-rejected > strong,
.account-order-cancelled > strong {
  display: block;
  color: var(--teal-deep);
  font-size: 12.5px;
}

.account-order-rejected > strong {
  color: var(--error);
}

.account-order-cancelled > strong {
  color: var(--muted);
}

.account-order-wait > p,
.account-order-rejected > p,
.account-order-cancelled > p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.65;
}

.account-order-cancelled > time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.account-cancel-hint {
  margin-top: 10px !important;
}

.account-order-cancel {
  margin-top: 12px;
  min-height: 38px;
  padding: 7px 16px;
  font-size: 11px;
}

.account-order-remark {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px dashed rgba(74, 141, 138, 0.5);
  border-radius: 9px;
  background: #ffffff;
}

.account-order-remark span {
  color: var(--muted);
  font-size: 10px;
}

.account-order-remark strong {
  color: var(--teal-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
  user-select: all;
}

.account-order-remark button {
  min-height: 27px;
  padding: 3px 10px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

.account-order-hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.account-order-delivery {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.account-empty {
  padding: 42px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.account-empty h3 {
  font-size: 21px;
}

.account-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.account-empty .btn {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .account-auth-grid {
    grid-template-columns: 1fr;
  }

  .account-order {
    padding: 16px;
  }

  .account-order-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-order-item > span {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Member pricing, checkout offers and account wallet
   -------------------------------------------------------------------------- */

.price-original {
  color: var(--muted);
  font-size: 0.92em;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-member {
  color: var(--teal-dark);
  font-weight: 600;
}

.feature-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-price-original {
  color: rgba(251, 247, 240, 0.62);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: line-through;
}

.feature-price-member {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.quick-prices,
.catalog-price-pair,
.monthly-prices {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: normal;
}

.quick-prices .price-original,
.quick-prices .price-member {
  font-size: 10.5px;
  line-height: 1.45;
}

.catalog-price-pair .price-original,
.catalog-price-pair .price-member {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.catalog-price-pair .price-original {
  color: var(--muted);
}

/* The whole price stack is one flush-right block at the row's right edge.
   Both lines end on the same right edge; the two HK$ amounts share the same
   tabular face and size so their digits stack cleanly. */
.monthly-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  gap: 2px;
  width: max-content;
  min-width: 0;
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.monthly-prices .price-guest {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* The member line is a label sitting immediately to the left of its amount,
   with the amount ending on the same right edge as the guest price. */
.monthly-prices .price-member {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  color: var(--teal);
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.monthly-prices .price-member-label {
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.monthly-prices .price-member-amount {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.monthly-prices .price-original,
.monthly-prices .price-member {
  font-size: 11.5px;
  white-space: nowrap;
}

.plan-original {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.plan-original > span {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-member {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--teal-dark);
  font-size: 11px;
}

.plan-member strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.pdp-price-label {
  align-self: flex-end;
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.pdp-member-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px;
  border: 1px solid rgba(74, 141, 138, 0.22);
  border-radius: 16px;
  background: var(--green-pale, #e8f0e3);
}

.pdp-member-label {
  color: var(--teal-dark);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pdp-member-price strong {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.related-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.related-price .price-original,
.related-price .price-member {
  font-size: 11.5px;
}

.cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.cart-item-price .cart-price-original {
  color: var(--muted);
  font-size: 11px;
  text-decoration: line-through;
}

.cart-item-price strong {
  font-size: 14px;
}

.cart-item-price em {
  color: var(--teal-dark);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
}

.cart-total-row.is-original {
  margin-bottom: 4px;
  opacity: 0.72;
}

.cart-total-row.is-original strong {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
}

.cart-total-row.is-member strong {
  color: var(--teal-dark);
}

.summary-price-pair {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 5px;
}

.summary-price-pair .price-original,
.summary-price-pair .price-member {
  font-size: 10.5px;
  line-height: 1.4;
}

.summary-discount-line span:last-child {
  color: var(--teal-dark);
  font-weight: 600;
}

.summary-price-badge {
  margin: 7px 0 0;
  color: var(--teal-dark);
  font-size: 10.5px;
  font-weight: 600;
  text-align: right;
}

.summary-price-badge.is-guest {
  color: var(--muted);
}

.promo-member-note,
.promo-guest-note {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--green-pale, #e8f0e3);
  color: var(--teal-dark);
  font-size: 12px;
  line-height: 1.55;
}

.promo-guest-note {
  margin-bottom: 0;
  background: var(--bg-deep, #f6f0e6);
  color: var(--muted);
}

.promo-controls {
  display: grid;
  gap: 15px;
}

.promo-select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.promo-apply-row {
  display: flex;
  gap: 8px;
}

.promo-apply-row input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-transform: uppercase;
}

.promo-apply-btn {
  flex: none;
  min-height: 46px;
  padding: 0 17px;
}

.promo-message {
  margin: 7px 0 0;
  color: var(--teal-dark);
  font-size: 11.5px;
}

.promo-message.is-error {
  color: var(--error, #a5362f);
}

.promo-redeem-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-deep, #f6f0e6);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.promo-redeem-note a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-applied {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--teal-dark);
  font-size: 11.5px;
  font-weight: 600;
}

.promo-remove {
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  cursor: pointer;
}

.promo-wallet-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.promo-wallet-row input {
  margin-top: 2px;
}

.promo-wallet-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.promo-wallet-row small {
  color: var(--muted);
  font-size: 10.5px;
}

.order-breakdown {
  margin: 16px 0 0;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.order-breakdown-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding: 3px 0;
  color: var(--muted);
  font-size: 11.5px;
}

.order-breakdown-row strong {
  color: var(--ink);
  font-weight: 600;
}

.order-breakdown-row.is-total {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
}

.order-breakdown-row.is-total strong {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 17px;
}

.account-redeem-form {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  flex-wrap: wrap;
}

.account-redeem-form .account-field {
  flex: 1;
  min-width: 240px;
  margin: 0;
}

.account-redeem-form .btn {
  flex: none;
  min-height: 47px;
}

.account-program {
  margin: 26px 0 8px;
}

.account-redeem {
  margin: 0 0 26px;
}

.account-redeem-card h2 {
  margin: 2px 0 9px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.account-redeem-form {
  margin-top: 13px;
}

.account-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.account-program-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.account-program-card h3 {
  margin: 2px 0 9px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.account-program-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.account-invite-code-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.account-invite-label {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.account-invite-code {
  padding: 7px 12px;
  border: 1px dashed rgba(74, 141, 138, 0.45);
  border-radius: 10px;
  background: var(--bg-deep, #f6f0e6);
  color: var(--teal-dark);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.13em;
}

.account-mini-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  padding: 5px 12px;
  cursor: pointer;
}

.account-invite-count {
  margin: 10px 0 0;
  color: var(--teal-dark);
  font-size: 11.5px;
  font-weight: 600;
}

.account-wallet-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(74, 141, 138, 0.1), transparent 42%),
    var(--surface-strong);
}

.account-wallet-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.account-wallet-id {
  min-width: 0;
}

.account-wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.account-wallet-balance strong {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.account-wallet-benefits {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(74, 141, 138, 0.16);
  border-radius: 13px;
  background: rgba(74, 141, 138, 0.07);
  list-style: none;
}

.account-wallet-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}

.account-wallet-benefits svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--teal);
}

.account-wallet-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  color: var(--muted) !important;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
}

.account-wallet-note svg {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.account-wallet-history {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.account-wallet-history-title {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-wallet-row,
.account-cashback-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  color: var(--muted);
  font-size: 11px;
}

.account-wallet-row strong.is-plus,
.account-cashback-row strong {
  color: var(--green);
}

.account-wallet-row strong.is-minus {
  color: var(--muted);
}

.account-coupon-list,
.account-cashback-list {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.account-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-deep, #f6f0e6);
}

.account-coupon > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.account-coupon strong {
  font-size: 12px;
}

.account-coupon span,
.account-coupon small {
  color: var(--muted);
  font-size: 10.5px;
}

.account-coupon-status {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-pale, #e8f0e3);
  color: var(--teal-dark) !important;
  font-size: 9.5px !important;
  font-weight: 600;
}

.account-coupon.is-used,
.account-coupon.is-expired,
.account-coupon.is-disabled {
  opacity: 0.58;
}

.account-order-breakdown {
  margin: 10px 0 14px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-deep, #f6f0e6);
}

.account-order-breakdown > span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-order-breakdown dl {
  margin: 6px 0 0;
}

.account-order-breakdown dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  font-size: 11px;
}

.account-order-breakdown dt {
  color: var(--muted);
}

.account-order-breakdown dd {
  margin: 0;
  font-weight: 600;
}

.account-order-breakdown .is-paid dd {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 15px;
}

.order-guest-pill {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-deep, #f6f0e6);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .account-program-grid {
    grid-template-columns: 1fr;
  }

  .account-redeem-form {
    align-items: stretch;
  }

  .account-redeem-form .btn {
    width: 100%;
  }

  .monthly-prices {
    min-width: 0;
  }

  .promo-apply-row {
    flex-direction: column;
  }

  .promo-apply-btn {
    width: 100%;
  }
}

.cart-member-note {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.feature-price > .feature-price-member {
  color: inherit;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-price > .feature-price-original {
  color: rgba(251, 247, 240, 0.62);
}

.quick-body .quick-prices {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: normal;
}

.quick-body .quick-prices .price-original,
.quick-body .quick-prices .price-member {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  white-space: nowrap;
}

.quick-body .quick-prices .price-member {
  color: var(--teal-dark);
  font-weight: 600;
}

/* ==========================================================================
   Header icon row, login-entry card, catalogue search and member top-up
   ========================================================================== */

.nav-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.55);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-icon-btn:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-icon-btn svg {
  width: 19px;
  height: 19px;
}

.nav-account {
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
}

.nav-account svg {
  width: 19px;
  height: 19px;
}

/* Login-entry card --------------------------------------------------------- */

.login-card-section {
  padding-top: 30px;
}

.login-entry-card {
  width: 100%;
  margin: 0;
  padding: clamp(34px, 4vw, 54px) clamp(26px, 4vw, 54px) clamp(28px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  text-align: center;
}

.login-entry-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.6vw, 30px);
  text-align: center;
}

.login-entry-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(68px, 8vw, 92px);
  height: clamp(68px, 8vw, 92px);
  border-radius: 50%;
  border: 1px solid rgba(74, 141, 138, 0.2);
  background: var(--teal-pale);
  color: var(--teal);
}

.login-entry-icon svg {
  width: clamp(31px, 3.6vw, 42px);
  height: clamp(31px, 3.6vw, 42px);
}

.login-entry-copy {
  min-width: 0;
  text-align: center;
}

.login-entry-kicker {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.login-entry-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.login-entry-copy p:not(.login-entry-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(13.5px, 1.2vw, 16px);
  line-height: 1.65;
}

.login-entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 430px);
  min-height: 60px;
  margin: 30px auto 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
}

.login-entry-foot {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.login-entry-foot a {
  margin-left: 4px;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-entry-card.is-member .login-entry-icon {
  background: var(--teal);
  color: var(--surface-strong);
}

/* Product search ----------------------------------------------------------- */

.search-section {
  padding-top: 38px;
}

.search-panel {
  padding: 34px 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 200px at 12% 0%, rgba(74, 141, 138, 0.08), transparent 70%),
    var(--surface);
}

.search-head {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.search-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.search-lede {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 860px);
  margin: 24px auto 0;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.search-form:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-wash);
}

.search-form-icon {
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--muted);
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: #9b8875;
}

.search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-submit {
  flex: none;
  min-height: 42px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--surface-strong);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-submit:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.search-status {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 18px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.search-chip:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.search-chip-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--logo-bg, #ffffff);
}

.search-chip-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.35s var(--ease);
}

.search-chip:hover .search-chip-logo img {
  transform: scale(1.1);
}

.search-no-results {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: start center;
  padding: 9vh 20px 30px;
  overflow-y: auto;
  background: rgba(47, 74, 76, 0.42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.search-overlay.is-open {
  opacity: 1;
}

.search-dialog {
  position: relative;
  width: min(100%, 900px);
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  transition: transform 0.28s var(--ease);
}

.search-overlay.is-open .search-dialog {
  transform: translateY(0);
}

.search-dialog-kicker {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.search-dialog h2 {
  margin: 0;
  padding-right: 46px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
}

.search-close svg {
  width: 17px;
  height: 17px;
}

.search-form--overlay {
  margin-top: 22px;
}

/* Member top-up ------------------------------------------------------------ */

.topup-section {
  padding-top: 40px;
}

.topup-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: 32px;
  padding: 38px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(255, 255, 255, 0.09), transparent 65%),
    var(--teal-deep);
  color: #fbf7f0;
  box-shadow: var(--shadow);
}

.topup-intro h2 {
  margin: 7px 0 0;
  color: #fbf7f0;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 39px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.topup-intro .eyebrow {
  color: #c8d8d2;
}

.topup-lede {
  margin: 12px 0 0;
  color: rgba(248, 243, 231, 0.76);
  font-size: 13.5px;
  line-height: 1.7;
}

.topup-member-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(248, 243, 231, 0.18);
  color: rgba(248, 243, 231, 0.66);
  font-size: 11px;
  line-height: 1.6;
}

.topup-member-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.topup-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-content: start;
}

.topup-plan {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 21px 20px;
  border: 1px solid rgba(46, 40, 34, 0.1);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(20, 33, 33, 0.16);
}

.topup-plan-kicker {
  color: var(--teal);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.topup-plan-head h3 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.topup-plan-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topup-plan-main span,
.topup-plan-credit span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.topup-plan-main strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.topup-plan-bonus strong {
  color: var(--teal);
}

.topup-plan-credit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.topup-plan-credit strong {
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.topup-plan-btn {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border-radius: 999px;
  font-size: 13px;
}

.topup-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.topup-panel .topup-empty {
  color: rgba(248, 243, 231, 0.7);
}

/* Account page top-up */
.account-topup {
  margin-bottom: 26px;
}

.account-topup-card {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.account-topup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.account-topup-head h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 31px);
  letter-spacing: -0.035em;
}

.account-topup-head p:not(.account-card-kicker):not(.account-topup-balance) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.account-topup-balance {
  flex: none;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid rgba(74, 141, 138, 0.2);
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.account-topup .topup-plans {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.account-topup .topup-plan {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: none;
}

/* Dedicated wallet top-up screen (topup.html) */
.topup-page-main {
  padding-top: 38px;
  padding-bottom: 78px;
}

.topup-page-hero {
  max-width: 760px;
  padding-bottom: 22px;
}

.topup-page-hero h1 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.topup-page-back-row {
  margin-top: 14px;
}

.topup-page-panel {
  max-width: 1040px;
  margin-bottom: 0;
}

.topup-page-panel .account-topup-head {
  align-items: flex-end;
}

.topup-page-panel .account-topup-head h2 {
  font-size: clamp(22px, 2.4vw, 27px);
}

@media (max-width: 640px) {
  .topup-page-main {
    padding-top: 26px;
    padding-bottom: 56px;
  }

  .topup-page-hero {
    padding-bottom: 18px;
  }

  .topup-page-hero h1 {
    font-size: 30px;
  }

  .topup-page-panel .account-topup-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .topup-page-panel .account-topup-head {
    display: block;
    margin-bottom: 16px;
  }

  .topup-page-panel .account-topup-balance {
    display: inline-block;
    margin-top: 10px;
  }
}

.topup-payment {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  overflow: hidden;
}

.topup-payment-inner {
  padding: 24px;
}

.topup-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.topup-payment-head h3 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.topup-payment-plan {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topup-payment-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: start;
  gap: 24px;
  padding: 20px 0;
}

.topup-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.topup-pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topup-pay-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 5px 15px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.topup-pay-logo {
  display: block;
  flex: none;
  width: 21px;
  height: 21px;
  max-width: 62px;
  object-fit: contain;
}

.topup-pay-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topup-pay-tile.is-selected {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal-deep);
}

.topup-account {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.topup-account > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 12px;
}

.topup-account span {
  color: var(--muted);
}

.topup-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.topup-qr {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
}

.topup-qr svg,
.topup-qr img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.topup-qr-brand {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.topup-pay-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--teal-pale);
}

.topup-pay-summary p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.topup-pay-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.topup-pay-summary strong {
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.topup-order-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.topup-order-copy {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 9px;
  letter-spacing: 0;
}

.topup-pay-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.topup-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.topup-pending,
.topup-success,
.topup-rejected {
  text-align: center;
}

.topup-pending h3,
.topup-success h3,
.topup-rejected h3 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.topup-pending p,
.topup-success p,
.topup-rejected p {
  max-width: 620px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.topup-pending-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--teal-wash);
  animation: topup-pulse 1.6s ease-in-out infinite;
}

@keyframes topup-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.55; }
}

.topup-success-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--surface-strong);
  font-size: 24px;
  font-weight: 700;
}

.topup-pending .topup-pay-summary,
.topup-success .topup-pay-summary {
  margin-top: 16px;
  text-align: left;
}

.topup-pending .topup-payment-actions,
.topup-success .topup-payment-actions,
.topup-rejected .topup-payment-actions {
  justify-content: center;
}

/* Account order list / admin hints for top-up */
.order-topup-pill {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.account-order-topup {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 141, 138, 0.22);
  border-radius: var(--radius-sm);
  background: var(--teal-pale);
}

.account-order-topup strong {
  display: block;
  color: var(--teal-deep);
  font-size: 13px;
}

.account-order-topup p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.account-order-topup .account-hint {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .nav-icon-btn,
  .nav-account,
  .cart-btn {
    width: 37px;
    height: 37px;
  }

  .topup-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 24px;
  }

  .topup-payment-body {
    grid-template-columns: 1fr;
  }

  .topup-qr-card {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .login-entry-card {
    padding: 26px 20px 24px;
  }

  .login-entry-copy h2 {
    font-size: clamp(25px, 6.4vw, 32px);
  }

  .login-entry-btn {
    width: 100%;
    min-height: 54px;
    font-size: 15.5px;
  }

  .login-entry-head {
    align-items: center;
    gap: 14px;
  }

  .login-entry-icon {
    width: 54px;
    height: 54px;
  }

  .login-entry-icon svg {
    width: 25px;
    height: 25px;
  }

  .search-panel {
    padding: 24px 18px 22px;
  }

  .search-form {
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border-radius: 24px;
  }

  .search-input {
    font-size: 14px;
  }

  .search-submit {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .search-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .search-overlay {
    padding: 18px 12px 24px;
  }

  .search-dialog {
    padding: 24px 18px 22px;
  }

  .account-topup-card {
    padding: 22px 18px;
  }

  .account-topup-head {
    display: block;
  }

  .account-topup-balance {
    display: inline-block;
    margin-top: 12px;
  }

  .topup-payment-inner {
    padding: 18px;
  }

  .topup-payment-head {
    display: block;
  }

  .topup-payment-head .demo-pill {
    display: inline-block;
    margin-top: 10px;
  }
}

@media (max-width: 420px) {
  .nav-icon-btn,
  .nav-account,
  .cart-btn,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }
}

.header-search-slot {
  display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
  .quick-card:hover,
  .catalog-card:hover,
  .related-card:hover,
  .monthly-row:hover,
  .pdp-media-card:hover,
  .search-chip:hover .search-chip-logo img,
  .quick-card:hover .quick-logo img,
  .catalog-card:hover .catalog-art img,
  .related-card:hover .related-art img,
  .monthly-row:hover .monthly-logo img,
  .pdp-media-card:hover img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Course-corrected price typography
   Guest/shop price = large calm primary (heading brown). 會員價 = small quiet
   teal invitation. Official 原價 keeps a thin, centred strike-through.
   -------------------------------------------------------------------------- */
.price-guest {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.price-member {
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.price-official {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.price-official-amount,
.plan-official-amount {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(92, 83, 74, 0.6);
}

.price-save {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(74, 141, 138, 0.1);
  color: var(--teal-dark);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
}

.plan-right {
  gap: 1px;
}

.plan-guest {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan-member {
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 500;
  gap: 4px;
}

.plan-member strong {
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.plan-official-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.plan-official {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.plan-save,
.plan-official-row .plan-save {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(74, 141, 138, 0.1);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.pdp-member-price {
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pdp-member-label {
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pdp-member-price strong {
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.feature-price-now {
  color: inherit;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.feature-price-member {
  color: #9ed3cf;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.quick-prices .price-guest {
  font-size: 12.5px;
}

.quick-prices .price-member {
  color: var(--teal);
  font-size: 10.5px;
}

.catalog-price-pair .price-guest {
  font-size: 17px;
}

.catalog-price-pair .price-member {
  color: var(--teal);
  font-size: 11px;
}

.monthly-prices .price-guest {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.monthly-prices .price-member {
  color: var(--teal);
  font-size: 10.5px;
}

.related-price .price-guest {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.related-price .price-member {
  color: var(--teal);
  font-size: 10.5px;
}

/* Member wallet / transfer choice and payment screenshot */
.pay-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pay-mode-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-mode-tile input {
  margin-top: 3px;
  accent-color: var(--teal);
}

.pay-mode-tile.is-selected {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.pay-mode-tile.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pay-mode-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pay-mode-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.pay-mode-copy small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.pay-mode-hint {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-size: 11px;
  line-height: 1.6;
}

.pay-upload,
.topup-upload {
  margin-top: 20px;
  padding: 14px;
  border: 1px dashed rgba(74, 141, 138, 0.42);
  border-radius: 12px;
  background: var(--surface);
}

.pay-upload-label,
.topup-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.pay-upload-label input,
.topup-upload-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pay-upload-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 700;
}

.pay-upload-label strong,
.topup-upload-label .topup-upload-title {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.pay-upload-label small,
.topup-upload-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.pay-upload-status,
.topup-upload-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pay-upload-status.is-ok,
.topup-upload-status.is-ok {
  color: var(--teal-dark);
}

.pay-upload-status.is-error,
.topup-upload-status.is-error {
  color: var(--error);
}

.pay-upload-preview,
.topup-upload-preview {
  display: block;
  max-width: 190px;
  max-height: 130px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .pay-mode {
    grid-template-columns: 1fr;
  }

  .plan-guest {
    font-size: 23px;
  }
}

.feature-price > .feature-price-now {
  color: inherit;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.feature-price > .feature-price-member {
  color: #9ed3cf;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.feature-price > span.feature-price-member {
  color: #9ed3cf;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Cart drawer uses the same guest-large / member-small typography */
.cart-item-price .cart-price-guest {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-item-price .cart-price-member {
  color: var(--teal);
  font-size: 10px;
  font-weight: 500;
  font-style: normal;
}

.summary-price-pair .price-guest {
  font-size: 13px;
}

.summary-price-pair .price-member {
  color: var(--teal);
  font-size: 10px;
}

/* ==========================================================================
   Unified logo tiles + plan category tabs
   ========================================================================== */

/* Every product logo sits on the same light field. The colour is owner
   editable per product and defaults to white / near-white. */
.quick-logo,
.catalog-art,
.related-art,
.monthly-logo,
.search-chip-logo,
.cart-thumb,
.summary-thumb {
  background: var(--logo-bg, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(46, 40, 34, 0.055);
}

.pdp-media-card {
  background: var(--logo-bg, #ffffff);
}

/* InfinityOne-style interaction (horizontal tabs above the plan cards),
   recreated in Otterly teal. The tab row is hidden entirely when a product
   has no categories. */
.plan-category-tabs {
  display: flex;
  align-items: stretch;
  gap: 5px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(46, 40, 34, 0.035);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.plan-category-tabs::-webkit-scrollbar {
  display: none;
}

.plan-category-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-category-tab:hover {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.65);
}

.plan-category-tab.is-active {
  border-color: rgba(74, 141, 138, 0.42);
  background: var(--surface-strong);
  color: var(--teal-dark);
  box-shadow: 0 2px 8px rgba(46, 40, 34, 0.06), inset 0 -2px 0 var(--teal);
}

.plan-category-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.plan-category-empty {
  margin: 0;
  padding: 24px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .plan-category-tabs {
    border-radius: 13px;
  }

  .plan-category-tab {
    padding: 8px 13px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Fully unified white product media + optically centred logos
   The media image is always the product's logo asset (never a hero/banner
   photograph). The whole media field uses the owner's Logo 底色, default white.

   The crops are square, so `width/height: 100%` made them overflow the wider
   wells: the square was top-aligned and its bottom was clipped, which is what
   made the marks look optically low. The image is now absolutely framed inside
   the well with a CSS inset, so it always fits on both axes with white breathing
   room. The asymmetric inset (a little less above than below) gives the tiny
   optical lift that makes the mark read centred. No colours/assets change. */
.quick-logo img,
.catalog-art img,
.related-art img,
.monthly-logo img,
.search-chip-logo img,
.cart-thumb img,
.summary-thumb img,
.pdp-media-card img,
.page-block-product-media img {
  position: absolute;
  top: 6%;
  left: 7%;
  width: 86%;
  height: 86%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: transparent;
}

.quick-logo,
.catalog-art,
.related-art,
.monthly-logo,
.search-chip-logo,
.cart-thumb,
.summary-thumb,
.pdp-media-card,
.page-block-product-media {
  position: relative;
  background: var(--logo-bg, #ffffff);
  overflow: hidden;
}

.cart-thumb,
.summary-thumb {
  padding: 0;
}

.pdp-media-card {
  padding: 2%;
}

.quick-card:hover .quick-logo img { transform: scale(1.22); }
.catalog-card:hover .catalog-art img { transform: scale(1.12); }
.related-card:hover .related-art img { transform: scale(1.18); }
.monthly-row:hover .monthly-logo img { transform: scale(1.2); }
.search-chip:hover .search-chip-logo img { transform: scale(1.18); }
.pdp-media-card:hover img { transform: scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  .quick-card:hover .quick-logo img,
  .catalog-card:hover .catalog-art img,
  .related-card:hover .related-art img,
  .monthly-row:hover .monthly-logo img,
  .search-chip:hover .search-chip-logo img,
  .pdp-media-card:hover img,
  .page-block-product:hover .page-block-product-media img {
    transform: none;
  }
}

/* ==========================================================================
   Plan-card + top-up alignment (approved mockup alignment)
   ========================================================================== */
.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  min-height: 84px;
  padding: 16px 20px;
}

.plan-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.plan-name-row {
  align-items: center;
  min-height: 23px;
}

.plan-name {
  line-height: 1.2;
}

.plan-official-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 18px;
}

.plan-official {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.2;
}

.plan-official-amount {
  font-variant-numeric: tabular-nums;
}

.plan-save,
.plan-official-row .plan-save {
  line-height: 1.5;
  white-space: nowrap;
}

.plan-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.plan-guest {
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-member {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
}

.plan-member strong {
  font-variant-numeric: tabular-nums;
}

/* Home catalogue price pair: official left / guest large / member quiet. */
.catalog-price-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 7px;
}

.price-official {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.price-official-amount {
  font-variant-numeric: tabular-nums;
}

.price-guest,
.price-member {
  font-variant-numeric: tabular-nums;
}

/* Flexible page blocks */
.page-block {
  padding-top: 34px;
  padding-bottom: 34px;
}

.page-block-inner {
  width: 100%;
}

.page-block--text .page-block-inner {
  max-width: 820px;
}

.page-block--text .page-block-inner.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-block-text {
  margin: 0;
  color: var(--body);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.85;
  white-space: pre-line;
}

.page-block-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  overflow: hidden;
}

.page-block-figure img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.page-block-heading {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.page-block-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.page-block-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s var(--ease), border-color 0.22s ease, box-shadow 0.28s ease;
}

.page-block-product:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 141, 138, 0.42);
  box-shadow: var(--shadow-sm);
}

.page-block-product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1.24 / 1;
  margin-bottom: 11px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(46, 40, 34, 0.055);
}

.page-block-product-media img {
  padding: 0;
  transition: transform 0.35s var(--ease);
}

.page-block-product:hover .page-block-product-media img {
  transform: scale(1.16);
}

.page-block-product-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 6px;
}

.page-block-product-body > strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.page-block-official {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.page-block-official-amount {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(92, 83, 74, 0.6);
  font-variant-numeric: tabular-nums;
}

.page-block-save {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(74, 141, 138, 0.1);
  color: var(--teal-dark);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
}

.page-block-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.page-block-price .price-guest {
  font-size: 19px;
}

.page-block-price .price-member {
  font-size: 10.5px;
}

.page-block-product-arrow {
  margin-top: auto;
  padding: 8px 6px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.page-block-product:hover .page-block-product-arrow {
  color: var(--teal-dark);
}

.page-block-removed {
  display: none !important;
}

@media (max-width: 640px) {
  .quick-logo {
    width: 62px;
    height: 62px;
  }

  .monthly-logo {
    width: 64px;
    height: 64px;
  }

  .plan-card {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 14px 15px;
    column-gap: 12px;
  }

  .plan-guest {
    font-size: 24px;
  }

  .page-block {
    padding-top: 26px;
    padding-bottom: 26px;
  }
}

/* Top-up cards: equal rows, aligned labels and amounts across the grid. */
.topup-plans {
  grid-auto-rows: 1fr;
  align-items: stretch;
  align-content: stretch;
}

.topup-plan {
  min-height: 248px;
  justify-content: flex-start;
}

.topup-plan-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 52px;
}

.topup-plan-head h3 {
  line-height: 1.25;
}

.topup-plan-main {
  align-items: end;
}

.topup-plan-main > div {
  min-width: 0;
}

.topup-plan-main strong,
.topup-plan-credit strong {
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
}

.topup-plan-credit {
  min-height: 30px;
  align-items: baseline;
}

.topup-plan-credit strong {
  text-align: right;
}

.topup-plan-btn {
  margin-top: auto;
}

.account-topup .topup-plans {
  grid-auto-rows: 1fr;
}

@media (max-width: 720px) {
  .topup-plan {
    min-height: 0;
  }

  .topup-plan-head {
    min-height: 0;
  }
}

/* Payment method fee + manual USDT at checkout / top-up */
.pay-fee {
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--warm-pale);
  color: var(--warm);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pay-fee-breakdown {
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.pay-fee-breakdown p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.pay-fee-breakdown strong {
  color: var(--ink);
  font-size: 11.5px;
}

.pay-usdt {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 141, 138, 0.35);
  border-radius: 10px;
  background: var(--teal-pale);
}

.pay-usdt p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

.pay-usdt span {
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 600;
}

.pay-usdt strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.topup-pay-fee {
  margin-left: 5px;
  color: var(--warm);
  font-size: 10px;
  font-weight: 700;
}

.topup-crypto-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--warm-pale);
  color: var(--warm);
  font-size: 11px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Dedicated login / register pages (Otterly palette only)
   -------------------------------------------------------------------------- */

.auth-main {
  padding-top: 36px;
  padding-bottom: 72px;
}

.auth-hero {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 18px;
  text-align: center;
}

.auth-kicker {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-hero h1 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.auth-subtitle {
  margin: 8px auto 0;
  max-width: 440px;
  color: var(--muted);
  font-size: clamp(12.5px, 1.15vw, 14px);
  line-height: 1.65;
}

.auth-back-row {
  margin-top: 11px;
}

/* Continuous rule under the whole control (chevron + label). Never put
   text-decoration on the inline-flex anchor: it can underline pieces only. */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 1px 4px;
  border-bottom: 1px solid currentColor;
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.auth-back-chevron {
  display: inline-flex;
  flex: none;
}

.auth-back-chevron svg {
  width: 13px;
  height: 13px;
}

.auth-back:hover {
  color: var(--teal-deep);
}

.auth-card-section {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.auth-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(46, 40, 34, 0.06);
  text-align: left;
}

.auth-form {
  display: grid;
  gap: 11px;
}

.auth-field {
  display: grid;
  gap: 5px;
}

.auth-field > span {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.auth-req {
  margin-left: 3px;
  color: var(--warm);
  font-weight: 800;
}

.auth-hint {
  margin-top: -4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.auth-error {
  margin: 0;
  color: var(--error);
  font-size: 11.5px;
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.auth-foot {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.auth-foot a {
  margin-left: 4px;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   My orders / history tabs
   -------------------------------------------------------------------------- */

.account-orders-tabs {
  display: inline-flex;
  gap: 5px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-deep);
}

.account-orders-tab {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.account-orders-tab:hover {
  color: var(--teal-deep);
}

.account-orders-tab.is-active,
.account-orders-tab[aria-selected="true"] {
  background: var(--surface-strong);
  color: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}

.account-orders-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .auth-main {
    padding-top: 26px;
    padding-bottom: 56px;
  }

  .auth-hero {
    max-width: 100%;
    padding-bottom: 16px;
  }

  .auth-hero h1 {
    font-size: 28px;
  }

  .auth-subtitle {
    max-width: 320px;
    font-size: 12.5px;
  }

  .auth-back {
    font-size: 12px;
  }

  .auth-card-section {
    max-width: 100%;
  }

  .auth-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .auth-form {
    gap: 10px;
  }

  .auth-field input {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
  }

  .auth-submit {
    min-height: 48px;
  }

  .monthly-prices {
    min-width: 0;
    gap: 1px;
  }

  .monthly-prices .price-guest,
  .monthly-prices .price-member-amount {
    font-size: 13.5px;
  }

  .monthly-prices .price-member,
  .monthly-prices .price-member-label {
    font-size: 9.5px;
  }

  .account-orders-tab {
    padding: 7px 14px;
  }
}

/* --------------------------------------------------------------------------
   Customer-facing sold-out notice (one shared phrase, calm type)
   -------------------------------------------------------------------------- */
.soldout-note {
  display: inline-block;
  color: var(--warm);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.catalog-body .catalog-soldout {
  margin-top: -2px;
}

.quick-body .quick-soldout {
  color: var(--warm);
  font-size: 10.5px;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.monthly-name-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.monthly-soldout {
  margin-top: 1px;
  color: var(--warm);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.search-chip .search-chip-soldout {
  max-width: 170px;
  color: var(--warm);
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
}

.feature-soldout {
  margin-top: 10px;
  color: rgba(247, 204, 186, 0.96);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pdp-soldout {
  display: block;
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(169, 79, 56, 0.22);
  border-radius: 12px;
  background: var(--warm-pale);
  color: var(--warm);
  font-size: 13px;
  font-weight: 600;
}

.plan-soldout {
  margin-top: 4px;
  color: var(--warm);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}

.related-soldout {
  margin-top: 2px;
  font-size: 10.5px;
}

.page-block-soldout {
  margin-top: 2px;
}

.cart-item .cart-item-soldout {
  margin: 4px 0 0;
}

.cart-soldout-note {
  display: block;
  margin: 0 0 11px;
  padding: 9px 12px;
  border: 1px solid rgba(169, 79, 56, 0.22);
  border-radius: 10px;
  background: var(--warm-pale);
}

.cart-checkout.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.summary-item-soldout {
  margin: 2px 0 0;
}

.summary-soldout {
  display: block;
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(169, 79, 56, 0.22);
  border-radius: 10px;
  background: var(--warm-pale);
}

/* --------------------------------------------------------------------------
   pt149u / pt150u — wallet top-up entry, collapsible account orders,
   validity, waiting page polish and credential delivery
   -------------------------------------------------------------------------- */

.account-wallet-topup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 7px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #4A8D8A;
  border-radius: 999px;
  background: #4A8D8A;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(74, 141, 138, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.account-wallet-topup:hover {
  background: #3A7573;
  border-color: #3A7573;
  box-shadow: 0 10px 22px rgba(58, 117, 115, 0.28);
  transform: translateY(-1px);
}

.account-wallet-topup:focus-visible {
  outline: 3px solid rgba(74, 141, 138, 0.32);
  outline-offset: 3px;
}

.account-wallet-topup svg {
  width: 16px;
  height: 16px;
}

.account-topup.is-wallet-opening {
  animation: accountWalletGlow 1.8s ease;
}

@keyframes accountWalletGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 141, 138, 0); }
  35% { box-shadow: 0 0 0 6px rgba(74, 141, 138, 0.16); }
}

.account-orders {
  gap: 10px;
}

.account-order {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #FFFCF7;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-order[open] {
  border-color: rgba(74, 141, 138, 0.38);
  box-shadow: 0 10px 26px rgba(46, 40, 34, 0.07);
}

.account-order-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.account-order-summary::-webkit-details-marker {
  display: none;
}

.account-order-summary:focus-visible {
  outline: 3px solid rgba(74, 141, 138, 0.28);
  outline-offset: -3px;
  border-radius: 12px;
}

.account-order[open] > .account-order-summary {
  border-bottom: 1px solid #E7DCCB;
  background: #FBF7F0;
}

.account-order-number {
  flex: 0 0 auto;
  color: #2E2822;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.account-order-product {
  flex: 1 1 140px;
  min-width: 0;
  overflow: hidden;
  color: #5C534A;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-summary .order-status-pill {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.account-order-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 0 2px 4px 0;
  border-right: 1.7px solid #4A8D8A;
  border-bottom: 1.7px solid #4A8D8A;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.account-order[open] .account-order-chevron {
  margin-bottom: 0;
  transform: rotate(-135deg);
}

.account-order-body {
  padding: 12px 16px 16px;
  background: #FFFCF7;
}

.account-order-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.account-order-date {
  color: #8A7F72;
  font-size: 10px;
}

.account-order-body .account-order-total {
  color: #2E2822;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.account-order-body .account-order-items {
  margin-top: 0;
  border-radius: 10px;
}

.account-order-body .account-order-item {
  padding: 7px 10px;
  font-size: 11px;
}

.account-order-body .account-order-item div strong {
  font-size: 11.5px;
}

.account-order-body .account-order-meta {
  gap: 7px;
  margin-top: 9px;
}

.account-order-body .account-order-meta > div {
  padding: 6px 9px;
  border-radius: 8px;
  background: #FBF7F0;
}

.account-order-body .account-order-meta dt {
  font-size: 8px;
}

.account-order-body .account-order-meta dd {
  font-size: 10.5px;
}

.account-order-validity {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(74, 141, 138, 0.22);
  border-radius: 10px;
  background: #FBF7F0;
}

.account-order-validity.is-pending {
  border-style: dashed;
  background: #FFFCF7;
}

.account-order-validity-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.account-order-validity-head strong {
  color: #3A7573;
  font-size: 11.5px;
  font-weight: 700;
}

.account-order-validity-head > span {
  color: #8A7F72;
  font-size: 9.5px;
}

.account-order-validity > p {
  margin: 5px 0 0;
  color: #5C534A;
  font-size: 10.5px;
  line-height: 1.55;
}

.account-order-validity-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(74, 141, 138, 0.22);
  color: #5C534A;
  font-size: 10.5px;
}

.account-order-validity-product {
  min-width: 0;
  color: #2E2822;
  font-weight: 700;
}

.account-order-validity-label {
  color: #8A7F72;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.account-order-validity-row strong {
  color: #3A7573;
  font-size: 11px;
}

.account-order-validity-total {
  margin-left: auto;
  color: #8A7F72;
  font-size: 9px;
}

.account-order-breakdown-toggle {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #E7DCCB;
}

.account-order-breakdown-toggle > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3A7573;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.account-order-breakdown-toggle > summary::-webkit-details-marker {
  display: none;
}

.account-order-breakdown-toggle > summary::before {
  content: "＋";
  font-size: 11px;
  line-height: 1;
}

.account-order-breakdown-toggle[open] > summary::before {
  content: "−";
}

.account-order-body .account-order-breakdown {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #E7DCCB;
  border-radius: 9px;
  background: #FBF7F0;
}

.account-order-body .account-order-wait,
.account-order-body .account-order-rejected {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 10px;
}

.account-order-body .account-order-wait > p,
.account-order-body .account-order-rejected > p {
  font-size: 10px;
}

.account-order-body .account-order-delivery {
  margin-top: 12px;
  padding-top: 12px;
}

/* Waiting page */
.order-wait {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(74, 141, 138, 0.1), rgba(74, 141, 138, 0) 55%),
    #FFFCF7;
}

.order-wait-hero {
  padding-bottom: 4px;
}

.order-wait-kicker {
  margin-bottom: 8px;
  color: #4A8D8A;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.order-wait-head h2 {
  color: #2E2822;
}

.order-wait-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.order-wait-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #E7DCCB;
  border-radius: 12px;
  background: #FBF7F0;
  color: #8A7F72;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}

.order-wait-step-dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F6F0E6;
  color: #8A7F72;
  font-size: 10px;
  font-weight: 800;
}

.order-wait-steps li.is-done {
  border-color: rgba(74, 141, 138, 0.28);
  background: #F6F0E6;
  color: #3A7573;
}

.order-wait-steps li.is-done .order-wait-step-dot {
  background: #4A8D8A;
  color: #FFFFFF;
}

.order-wait-steps li.is-active {
  border-color: #4A8D8A;
  background: #FFFFFF;
  color: #2E2822;
  box-shadow: 0 0 0 3px rgba(74, 141, 138, 0.12);
}

.order-wait-steps li.is-active .order-wait-step-dot {
  background: #4A8D8A;
  color: #FFFFFF;
  animation: orderWaitPulse 1.6s ease-in-out infinite;
}

.order-wait-live {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #F6F0E6;
  color: #3A7573;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.55;
}

.order-wait-pulse {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4A8D8A;
  box-shadow: 0 0 0 4px rgba(74, 141, 138, 0.14);
  animation: orderWaitPulse 1.6s ease-in-out infinite;
}

@keyframes orderWaitPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.78); }
}

.order-wait .order-remark-card {
  background:
    linear-gradient(135deg, rgba(74, 141, 138, 0.08), rgba(74, 141, 138, 0.01)),
    #FFFFFF;
}

/* Credential delivery */
.fulfillment-code-card.is-credential {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "label"
    "credential"
    "copyall";
}

.fulfillment-credential {
  grid-area: credential;
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.fulfillment-credential-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #E7DCCB;
  border-radius: 9px;
  background: #FBF7F0;
}

.fulfillment-credential-row > span {
  color: #8A7F72;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.fulfillment-credential-row > strong {
  min-width: 0;
  color: #2E2822;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(13px, 2.4vw, 17px);
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}

.fulfillment-copy-all {
  grid-area: copyall;
  justify-self: start;
  margin-top: 5px;
}

.fulfillment-validity {
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #FBF7F0;
  color: #5C534A;
  font-size: 10.5px;
}

.fulfillment-validity > span {
  color: #8A7F72;
  font-size: 9.5px;
}

.fulfillment-validity strong {
  color: #3A7573;
}

.fulfillment-validity.is-pending {
  border: 1px dashed rgba(74, 141, 138, 0.32);
  background: #FFFCF7;
  color: #3A7573;
}

.fulfillment-account-success {
  position: relative;
  padding: 20px 20px 17px;
  border: 1px solid rgba(74, 141, 138, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(74, 141, 138, 0.12), rgba(74, 141, 138, 0) 58%),
    #FBF7F0;
}

.fulfillment-account-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #4A8D8A;
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 700;
}

.fulfillment-account-kicker {
  margin: 0 0 2px;
  color: #4A8D8A;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.fulfillment-account-success > strong {
  color: #2E2822;
  font-size: 21px;
  line-height: 1.3;
}

.fulfillment-account-received {
  color: #5C534A;
  font-size: 11px;
}

.fulfillment-account-received strong {
  color: #3A7573;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .account-order-summary {
    gap: 6px 10px;
    padding: 11px 13px;
  }

  .account-order-number {
    font-size: 11.5px;
  }

  .account-order-product {
    flex-basis: 100%;
    order: 3;
    white-space: normal;
  }

  .account-order-summary .order-status-pill {
    margin-left: auto;
  }

  .account-wallet-top {
    align-items: center;
    gap: 10px;
  }

  .account-wallet-topup {
    padding: 9px 16px;
  }

  .account-wallet-balance strong {
    font-size: 29px;
  }

  .order-wait-steps {
    grid-template-columns: 1fr;
  }

  .fulfillment-credential-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .fulfillment-credential-row .fulfillment-copy {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.order-confirmed.is-key-jump {
  animation: orderConfirmedIn 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes orderConfirmedIn {
  from { opacity: 0.55; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Mobile refinement — customer storefront (pt153u)
   Purpose-built phone metrics: compact header, composed hero, comfortable
   tap targets, and single-column stacking without changing desktop layout.
   ========================================================================== */

@media (max-width: 760px) {
  .site-header .nav-wrap {
    min-height: 62px;
  }

  .wordmark img {
    height: 44px;
  }

  .nav-icon-btn,
  .nav-account {
    width: 44px;
    height: 44px;
  }

  .cart-btn,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-actions {
    gap: 5px;
  }

  /* Home ---------------------------------------------------------------- */
  body[data-page="home"] .home-hero {
    padding-top: 26px;
  }

  body[data-page="home"] .today-line {
    margin-bottom: 13px;
    font-size: 10.5px;
  }

  body[data-page="home"] .home-intro {
    margin-bottom: 18px;
  }

  body[data-page="home"] .home-intro h1 {
    font-size: clamp(38px, 10.4vw, 46px);
    line-height: 1;
  }

  body[data-page="home"] .home-lede {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
  }

  body[data-page="home"] .feature-banner {
    min-height: 430px;
    border-radius: 22px;
  }

  body[data-page="home"] .feature-copy {
    min-height: 430px;
    padding: 24px 20px 22px;
  }

  body[data-page="home"] .feature-kicker {
    margin-bottom: 12px;
  }

  body[data-page="home"] .feature-title {
    font-size: clamp(30px, 8.8vw, 38px);
  }

  body[data-page="home"] .feature-sub {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  body[data-page="home"] .feature-meta {
    margin-top: 14px;
  }

  body[data-page="home"] .feature-cta {
    min-height: 46px;
    margin-top: 16px;
  }

  body[data-page="home"] .hot-section {
    padding-top: 30px;
  }

  body[data-page="home"] .section-head {
    margin-bottom: 15px;
  }

  body[data-page="home"] .section-head h2 {
    font-size: 27px;
  }

  body[data-page="home"] .section-sub {
    font-size: 12.5px;
  }

  body[data-page="home"] .catalog-section {
    padding-top: 30px;
  }

  body[data-page="home"] .search-panel {
    padding: 20px 16px;
    border-radius: 18px;
  }

  body[data-page="home"] .search-submit {
    min-height: 44px;
  }

  body[data-page="home"] .filter-pill {
    min-height: 40px;
  }

  body[data-page="home"] .login-entry-card {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  body[data-page="home"] .monthly-panel,
  body[data-page="home"] .wishlist-panel {
    padding: 20px 16px;
    border-radius: 20px;
  }

  /* Product ------------------------------------------------------------- */
  body[data-page="product"] .pdp-top {
    gap: 26px;
  }

  body[data-page="product"] .pdp-media {
    max-width: 300px;
    margin-inline: auto;
  }

  body[data-page="product"] .pdp-title {
    font-size: 30px;
    letter-spacing: -0.035em;
    line-height: 1.12;
  }

  body[data-page="product"] .plan-list {
    gap: 8px;
  }

  body[data-page="product"] .pdp-add {
    min-height: 50px;
  }

  body[data-page="product"] .pdp-actions {
    gap: 8px;
  }

  body[data-page="product"] .pdp-detail-wrap {
    padding-top: 34px;
  }

  body[data-page="product"] .buy-flow-card {
    padding: 20px;
  }

  body[data-page="product"] .related-link {
    min-height: 40px;
  }

  /* Checkout ------------------------------------------------------------ */
  body[data-page="checkout"] .checkout-main {
    padding-top: 22px;
    padding-bottom: 52px;
  }

  body[data-page="checkout"] .checkout-heading {
    font-size: 34px;
    line-height: 1;
  }

  body[data-page="checkout"] .checkout-note {
    margin: 10px 0 16px;
    padding: 10px 12px;
  }

  body[data-page="checkout"] .checkout-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body[data-page="checkout"] .card-title {
    margin-bottom: 15px;
  }

  body[data-page="checkout"] .card-title h2 {
    font-size: 18px;
  }

  body[data-page="checkout"] .order-summary {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body[data-page="checkout"] .qty-stepper {
    height: 38px;
    margin-top: 7px;
  }

  body[data-page="checkout"] .qty-btn {
    width: 37px;
    height: 37px;
    font-size: 16px;
  }

  body[data-page="checkout"] .qty-value {
    min-width: 26px;
    font-size: 12.5px;
  }

  body[data-page="checkout"] .pay-tile {
    min-height: 64px;
  }

  body[data-page="checkout"] .pay-name {
    font-size: 12.5px;
  }

  /* Account ------------------------------------------------------------- */
  body[data-page="account"] .account-main {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  body[data-page="account"] .account-hero {
    max-width: 100%;
    padding-bottom: 18px;
  }

  body[data-page="account"] .account-hero h1 {
    font-size: clamp(30px, 7.6vw, 34px);
    line-height: 1.08;
  }

  body[data-page="account"] .account-lede {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.65;
  }

  body[data-page="account"] .account-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body[data-page="account"] .account-card h2 {
    font-size: 22px;
  }

  body[data-page="account"] .account-program-grid {
    gap: 14px;
    margin-bottom: 14px;
  }

  body[data-page="account"] .account-program-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body[data-page="account"] .account-program-card h3 {
    font-size: 18px;
  }

  body[data-page="account"] .account-topup {
    margin-bottom: 20px;
  }

  body[data-page="account"] .account-topup-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  body[data-page="account"] .account-topup-head {
    margin-bottom: 16px;
  }

  body[data-page="account"] .account-topup-head h2 {
    font-size: 24px;
  }

  body[data-page="account"] .account-topup-head p:not(.account-card-kicker):not(.account-topup-balance) {
    font-size: 12.5px;
  }

  body[data-page="account"] .account-userbar {
    padding: 12px 14px;
  }

  body[data-page="account"] .account-logout,
  body[data-page="account"] .account-refresh {
    min-height: 40px;
    font-size: 11.5px;
  }

  body[data-page="account"] .account-mini-btn {
    min-height: 38px;
  }

  body[data-page="account"] .account-orders-head {
    margin: 24px 0 12px;
  }

  body[data-page="account"] .account-orders-head h2 {
    font-size: 22px;
  }

  body[data-page="account"] .account-orders-tab {
    min-height: 40px;
    padding: 8px 14px;
  }

  body[data-page="account"] .account-order {
    padding: 16px 14px;
  }

  body[data-page="account"] .account-redeem {
    margin-bottom: 20px;
  }
}

@media (max-width: 420px) {
  body[data-page="home"] .feature-banner,
  body[data-page="home"] .feature-copy {
    min-height: 414px;
  }

  body[data-page="home"] .feature-title {
    font-size: 31px;
  }

  body[data-page="home"] .section-head h2 {
    font-size: 25px;
  }

  body[data-page="product"] .pdp-media {
    max-width: 280px;
  }

  body[data-page="product"] .pdp-title {
    font-size: 28px;
  }
}

/* ==========================================================================
   Mobile layout pass — customer storefront (t186u)
   Phone widths ~320–430px. Extends the pt153u refinement above: larger tap
   targets, a readable type scale, full-width forms, and sticky primary CTAs.
   All rules are max-width only, so tablet/desktop layout is unchanged.
   ========================================================================== */

@media (max-width: 760px) {
  /* Header: 44px controls and a compact sticky bar. ----------------------- */
  .site-header .nav-wrap {
    min-height: 64px;
    gap: 8px;
  }

  .nav-icon-btn,
  .nav-account,
  .cart-btn,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-account {
    min-height: 44px;
  }

  .nav-actions {
    gap: 4px;
  }

  .wordmark img {
    height: 42px;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 2px;
  }

  .mobile-nav .mobile-shop-link {
    min-height: 46px;
    margin-top: 12px;
    padding: 12px 20px;
  }

  /* Readable phone type scale. ------------------------------------------- */
  .home-lede,
  .feature-sub,
  .section-sub,
  .checkout-note,
  .account-lede,
  .topup-lede,
  .auth-subtitle {
    font-size: 14px;
    line-height: 1.65;
  }

  .field-hint,
  .pay-note,
  .confirm-hint,
  .promo-message,
  .promo-member-note,
  .promo-guest-note,
  .auth-hint,
  .pdp-terms,
  .summary-trust,
  .account-card-kicker,
  .account-orders-hint {
    font-size: 12px;
    line-height: 1.55;
  }

  .pdp-subtitle {
    font-size: 15.5px;
    line-height: 1.65;
  }

  .checkout-heading {
    font-size: 38px;
    line-height: 1.02;
  }

  /* 44px tap targets for chips, tabs, steppers and secondary CTAs. ------- */
  .filter-pill {
    min-height: 44px;
    padding: 0 16px;
  }

  .plan-category-tab {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 13px;
  }

  .plan-card {
    min-height: 64px;
  }

  .related-link,
  .account-orders-tab,
  .account-mini-btn,
  .account-logout,
  .account-refresh,
  .auth-tab {
    min-height: 44px;
  }

  .related-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
  }

  .account-orders-tab {
    padding: 10px 16px;
  }

  .account-mini-btn {
    padding: 10px 14px;
  }

  .auth-tab {
    padding: 10px 18px;
  }

  .qty-stepper {
    height: 44px;
  }

  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .qty-value {
    min-width: 30px;
    font-size: 14px;
  }

  /* Forms: full width, comfortable height, 16px to avoid iOS zoom. ------ */
  .checkout-card,
  .order-summary,
  .account-card,
  .account-program-card,
  .account-topup-card,
  .auth-card,
  .topup-page-panel,
  .topup-plan {
    max-width: 100%;
    min-width: 0;
  }

  .field input,
  .field textarea,
  .field select,
  .auth-field input,
  .auth-field textarea,
  .promo-select,
  .search-input,
  .phone-group input {
    width: 100%;
    font-size: 16px;
  }

  .checkout-card .field input,
  .checkout-card .field select,
  .checkout-card .field textarea {
    min-height: 48px;
  }

  .checkout-card .field textarea {
    min-height: 92px;
  }

  /* Checkout: the auth link wraps cleanly instead of squeezing the note. */
  .checkout-note {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 7px;
  }

  .checkout-note svg {
    margin-top: 3px;
  }

  .checkout-auth-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    white-space: nowrap;
  }

  /* Guards against long owner copy / plan names pushing the page wide. */
  .pdp-info,
  .pdp-title,
  .plan-name,
  .plan-name-row,
  .pay-name,
  .summary-item,
  .summary-item-name,
  .account-order,
  .account-order-head,
  .topup-plan-head,
  .checkout-note,
  .footer-brand p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* PDP: solid add-to-cart that pins below the header once scrolled to. -- */
  body[data-page="product"] .pdp-actions {
    position: sticky;
    top: calc(64px + 8px + env(safe-area-inset-top));
    bottom: auto;
    z-index: 45;
    margin: 16px -6px 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.97);
    box-shadow: 0 12px 32px rgba(46, 40, 34, 0.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  body[data-page="product"] .pdp-add {
    min-height: 48px;
  }

  body[data-page="product"] .pdp-share {
    width: 48px;
    height: 48px;
  }

  /* Checkout: the summary (and its full-width submit) leads the page on
     phones, so the primary CTA is reachable without a floating overlay. */
  body[data-page="checkout"] .confirm-btn {
    min-height: 52px;
    box-shadow: 0 10px 26px rgba(46, 40, 34, 0.12);
  }
}

@media (max-width: 430px) {
  /* Top bar swallows less vertical space on narrow phones. */
  .topbar-inner {
    padding-block: 5px;
  }

  .site-header .nav-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .wordmark img {
    height: 40px;
  }
}

@media (max-width: 360px) {
  /* Keep all four header controls at 44px even at 320px. */
  .wordmark img {
    height: 36px;
  }

  .nav-icon-btn,
  .cart-btn,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-actions {
    gap: 3px;
  }

  .checkout-heading {
    font-size: 34px;
  }

  .pdp-title {
    font-size: 27px;
  }

  body[data-page="product"] .pdp-actions {
    margin-inline: -4px;
    padding: 6px;
  }

  body[data-page="product"] .pdp-add {
    min-height: 46px;
    font-size: 14.5px;
  }

  body[data-page="product"] .pdp-share {
    width: 46px;
    height: 46px;
  }
}

/* Sticky CTAs need a non-scrolling body: `clip` keeps horizontal overflow
   contained without turning <body> into the scroll container. */
@supports (overflow-x: clip) {
  @media (max-width: 760px) {
    body {
      overflow-x: clip;
    }
  }
}

@media (max-width: 760px) {
  .phone-group input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

/* Slightly larger supporting labels so phone text never reads as fine print. */
@media (max-width: 760px) {
  .field > label,
  .field-label,
  .auth-field > span {
    font-size: 13.5px;
  }

  .summary-line {
    font-size: 13px;
  }

  .summary-item-title {
    font-size: 13.5px;
  }

  .summary-item-variant,
  .summary-price-badge,
  .pay-amount-label,
  .pdp-member-label {
    font-size: 12px;
  }

  .catalog-price-pair .price-member,
  .quick-prices .price-member,
  .related-price .price-member,
  .summary-price-pair .price-member {
    font-size: 11.5px;
  }

  .catalog-cat {
    font-size: 10.5px;
  }

  .catalog-link {
    font-size: 12px;
  }

  .catalog-price small,
  .feature-kicker {
    font-size: 11px;
  }

  .topup-plan-kicker {
    font-size: 10px;
  }

  .topup-plan-main span,
  .topup-plan-credit span {
    font-size: 11.5px;
  }

  .terms-copy,
  .order-poll-note,
  .order-contact-note,
  .pay-ref-note,
  .pay-demo-note,
  .promo-redeem-note {
    font-size: 12px;
    line-height: 1.55;
  }
}

/* Keep the one-column checkout track from being widened by a child's
   min-content (wallet/promo rows can be wider than a 320px phone). */
@media (max-width: 760px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-left,
  .pay-mode,
  .pay-mode-tile,
  .pay-mode-copy,
  .promo-controls,
  .promo-coupon-field,
  .summary-item-main,
  .terms-copy {
    min-width: 0;
  }

  .checkout-card,
  .order-summary {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .phone-prefix {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Specificity fixes for controls that have page-scoped comfort overrides. */
@media (max-width: 760px) {
  body[data-page="home"] .filter-pill {
    min-height: 44px;
    padding: 0 16px;
  }

  body[data-page="checkout"] .qty-stepper,
  .summary-item .qty-stepper {
    height: 44px;
  }

  body[data-page="checkout"] .qty-btn,
  .summary-item .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* Account controls inherit page-scoped comfort sizes; raise them to 44px. */
@media (max-width: 760px) {
  body[data-page="account"] .account-orders-tab {
    min-height: 44px;
    padding: 10px 16px;
  }

  body[data-page="account"] .account-mini-btn {
    min-height: 44px;
    padding: 10px 14px;
  }

  body[data-page="account"] .account-logout,
  body[data-page="account"] .account-refresh {
    min-height: 44px;
  }
}

/* ==========================================================================
   Mobile card proportion pass — t188u–t195u
   Both references, phone-only (max-width: 760px). GoingBus 上车 catalog is
   the primary pattern for product tiles: one compact horizontal row per card,
   a 56x56 logo on the left, a one-line title/blurb, and a single price + CTA
   footer. InfinityOne contributes the tight type/clamping only, not its 2-up
   grid. 今日精選 is a 200–230px overlay card; the PDP logo plate is ~108px.
   The numbers below are the fallbacks for the owner-tunable mobile-layout
   variables saved in the admin overlay; the 1/2-column switch is at the end
   of this file. The t186u phone layout pass above (44px targets, type scale,
   sticky PDP add-to-cart) is untouched, as are all tablet/desktop rules.
   ========================================================================== */

@media (max-width: 760px) {
  /* 1. Product tiles — 產品一覽, PDP related, page-block products. -------- */
  .catalog-grid,
  .related-grid,
  .page-block-product-grid {
    grid-template-columns: repeat(var(--mobile-catalog-columns, 2), minmax(0, 1fr));
    gap: 14px;
  }

  /* GoingBus-style catalog row: logo left, copy right, footer under. The
     logo size, card height and inner padding are owner-tunable phone values,
     with the shipped t195u numbers as fallbacks. */
  .catalog-card {
    display: grid;
    grid-template-columns: var(--mobile-logo-size, 56px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: space-between;
    column-gap: 12px;
    row-gap: 7px;
    align-items: start;
    min-height: var(--mobile-card-min-height, 132px);
    padding: var(--mobile-card-padding, 13px)
      calc(var(--mobile-card-padding, 13px) + 1px)
      calc(var(--mobile-card-padding, 13px) - 1px);
    border-radius: 18px;
  }

  .catalog-art {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    width: var(--mobile-logo-size, 56px);
    height: var(--mobile-logo-size, 56px);
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 12px;
  }

  .catalog-art img {
    width: 88%;
    height: 88%;
  }

  .catalog-body {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 0;
  }

  /* One tight category line; longer labels clip with an ellipsis. */
  .catalog-cats {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .catalog-cat {
    display: inline;
    margin-right: 6px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
    line-height: 1.2;
    white-space: nowrap;
  }

  .catalog-name {
    display: block;
    overflow: hidden;
    font-size: 19px;
    letter-spacing: -0.025em;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-blurb {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.4;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  /* Single footer row: dashed divider, visible prices, compact visual CTA. */
  .catalog-foot {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-top: 0;
    padding: 7px 0 0;
    border-top: 1px dashed var(--line-strong);
  }

  .catalog-price {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    white-space: normal;
  }

  .catalog-price-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    line-height: 1.15;
  }

  .catalog-price-pair .price-official {
    flex: 1 1 100%;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-price-pair .price-save {
    padding: 0 4px;
    font-size: 8.5px;
    line-height: 1.35;
  }

  .catalog-price-pair .price-guest {
    font-size: 17px;
    line-height: 1.1;
  }

  .catalog-price-pair .price-member {
    font-size: 10.5px;
    line-height: 1.2;
    white-space: normal;
  }

  .catalog-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--teal);
    color: #fffcf7;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  .catalog-link svg {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
  }

  /* Related products: same short 1-up row, logo left, CTA in the row. ---- */
  .related-card {
    display: grid;
    grid-template-columns: var(--mobile-logo-size, 56px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: calc(var(--mobile-card-padding, 13px) - 3px)
      calc(var(--mobile-card-padding, 13px) - 1px);
    border-radius: 16px;
  }

  .related-art {
    width: var(--mobile-logo-size, 56px);
    height: var(--mobile-logo-size, 56px);
    aspect-ratio: 1 / 1;
    grid-row: auto;
    margin: 0;
    border-radius: 11px;
  }

  .related-art img {
    width: 88%;
    height: 88%;
  }

  .related-body {
    flex: 0 1 auto;
    gap: 2px;
    min-width: 0;
    padding: 0;
  }

  .related-name {
    display: block;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .related-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin-top: 1px;
    line-height: 1.2;
  }

  .related-price .price-guest {
    font-size: 16px;
    line-height: 1.1;
  }

  .related-price .price-member {
    font-size: 10px;
    line-height: 1.2;
  }

  .related-foot {
    padding: 0;
  }

  .related-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }

  body[data-page="product"] .related-link {
    min-height: 30px;
    padding: 0 9px;
  }

  .related-link svg {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
  }

  /* Owner page-block product tiles use the same horizontal row. ---------- */
  .page-block-product {
    display: grid;
    grid-template-columns: var(--mobile-logo-size, 56px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    min-height: 0;
    padding: calc(var(--mobile-card-padding, 13px) - 1px)
      calc(var(--mobile-card-padding, 13px) + 1px);
    border-radius: 16px;
  }

  .page-block-product-media {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    width: var(--mobile-logo-size, 56px);
    height: var(--mobile-logo-size, 56px);
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 11px;
  }

  .page-block-product-body {
    grid-column: 2;
    grid-row: 1;
    gap: 2px;
    min-width: 0;
    padding: 0;
  }

  .page-block-product-body > strong {
    display: block;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-block-official {
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .page-block-save {
    padding: 0 4px;
    font-size: 8.5px;
  }

  .page-block-price {
    gap: 0 6px;
    min-width: 0;
  }

  .page-block-price .price-guest {
    font-size: 16px;
    line-height: 1.1;
  }

  .page-block-price .price-member {
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
  }

  .page-block-product-arrow {
    display: none;
  }

  /* 2. 今日精選 — a 200–230px overlay card, not a half-screen poster. ----- */
  body[data-page="home"] .feature-banner,
  .feature-banner {
    min-height: var(--mobile-feature-min-height, 210px);
    border-radius: 18px;
  }

  body[data-page="home"] .feature-copy,
  .feature-copy {
    justify-content: flex-end;
    min-height: var(--mobile-feature-min-height, 210px);
    max-width: 100%;
    padding: 12px 14px 14px;
  }

  /* The banner art carries the product wordmark. `contain` keeps the whole
     lockup inside the short phone card instead of cropping its right edge. */
  .feature-art {
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    object-fit: contain;
    object-position: center top;
    opacity: 1;
  }

  body[data-page="home"] .feature-kicker,
  .feature-kicker {
    margin-bottom: 6px;
    padding: 3px 8px;
    font-size: 8.5px;
  }

  body[data-page="home"] .feature-title,
  .feature-title {
    font-size: clamp(21px, 6.2vw, 24px);
    line-height: 1.04;
  }

  body[data-page="home"] .feature-sub,
  .feature-sub {
    display: -webkit-box;
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-page="home"] .feature-meta,
  .feature-meta {
    gap: 6px;
    margin-top: 6px;
  }

  .feature-price-original {
    font-size: 9.5px;
    line-height: 1.2;
  }

  .feature-price-now {
    font-size: 18px;
    line-height: 1.05;
  }

  .feature-price-member {
    font-size: 9.5px;
    line-height: 1.2;
  }

  .feature-pending {
    font-size: 9px;
    line-height: 1.2;
  }

  body[data-page="home"] .feature-cta,
  .feature-cta {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 8px 14px;
    font-size: 12px;
  }

  /* 3. PDP — GoingBus's 93px plan-sheet logo, not a 225–300px poster. --- */
  body[data-page="product"] .pdp-media {
    max-width: var(--mobile-pdp-media-max, 108px);
    margin-inline: auto;
  }

  body[data-page="product"] .pdp-media-card {
    border-radius: 20px;
  }

  body[data-page="product"] .pdp-media-note {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px 8px;
    margin-top: 10px;
    padding: 0;
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
  }
}

@media (max-width: 430px) {
  /* Keep the phone art and title inside the card on small phones. */
  body[data-page="home"] .feature-art,
  .feature-art {
    object-fit: contain;
    object-position: center top;
  }

  body[data-page="home"] .feature-title,
  .feature-title {
    max-width: 100%;
    font-size: 22px;
  }

  .catalog-name,
  .page-block-product-body > strong {
    font-size: 18px;
  }

  .catalog-price-pair .price-guest,
  .related-price .price-guest,
  .page-block-price .price-guest {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .catalog-grid,
  .related-grid,
  .page-block-product-grid {
    gap: 12px;
  }

  .catalog-card,
  .related-card,
  .page-block-product {
    border-radius: 14px;
  }

  .catalog-card {
    column-gap: 10px;
  }

  body[data-page="home"] .feature-art,
  .feature-art {
    object-fit: contain;
    object-position: center top;
  }

  body[data-page="home"] .feature-title,
  .feature-title {
    max-width: 100%;
    font-size: 21px;
  }
}

/* ==========================================================================
   Mobile product-grid column option — t196u
   The owner can switch 產品一覽 / related / page-block product grids between
   1 and 2 columns from admin.html. Two columns keeps the same short-card
   rhythm: the logo moves above the title inside a half-width tile, the blurb
   is hidden, and prices stay visible. Phone-only; desktop/tablet untouched.
   ========================================================================== */

@media (max-width: 760px) {
  html[data-mobile-cols="2"] .catalog-grid,
  html[data-mobile-cols="2"] .related-grid,
  html[data-mobile-cols="2"] .page-block-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  html[data-mobile-cols="2"] .catalog-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-content: start;
    column-gap: 0;
    row-gap: 5px;
    min-height: var(--mobile-card-min-height, 132px);
    padding: var(--mobile-card-padding, 13px) 11px;
    border-radius: 15px;
  }

  html[data-mobile-cols="2"] .catalog-art {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: var(--mobile-logo-size, 56px);
    height: var(--mobile-logo-size, 56px);
    margin: 0 auto;
  }

  html[data-mobile-cols="2"] .catalog-body {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    gap: 1px;
    text-align: left;
  }

  html[data-mobile-cols="2"] .catalog-cats,
  html[data-mobile-cols="2"] .catalog-blurb {
    display: none;
  }

  html[data-mobile-cols="2"] .catalog-name {
    font-size: 14px;
    line-height: 1.25;
  }

  /* Keep the shop's original-price line, just compact it for the half tile. */
  html[data-mobile-cols="2"] .page-block-official {
    max-width: 100%;
    overflow: hidden;
    font-size: 8.5px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-mobile-cols="2"] .catalog-foot {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    padding-top: 5px;
  }

  html[data-mobile-cols="2"] .catalog-price-pair .price-guest,
  html[data-mobile-cols="2"] .related-price .price-guest,
  html[data-mobile-cols="2"] .page-block-price .price-guest {
    font-size: 15px;
  }

  html[data-mobile-cols="2"] .catalog-price-pair .price-member,
  html[data-mobile-cols="2"] .related-price .price-member,
  html[data-mobile-cols="2"] .page-block-price .price-member {
    font-size: 9.5px;
  }

  html[data-mobile-cols="2"] .catalog-price-pair .price-official {
    font-size: 8.5px;
  }

  html[data-mobile-cols="2"] .catalog-link {
    display: none;
  }

  html[data-mobile-cols="2"] .related-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 5px;
    padding: var(--mobile-card-padding, 13px) 11px;
    border-radius: 15px;
  }

  html[data-mobile-cols="2"] .related-art {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: var(--mobile-logo-size, 56px);
    height: var(--mobile-logo-size, 56px);
    margin: 0 auto;
  }

  html[data-mobile-cols="2"] .related-body {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  html[data-mobile-cols="2"] .related-name {
    font-size: 14px;
    line-height: 1.25;
  }

  html[data-mobile-cols="2"] .related-foot {
    display: none;
  }

  html[data-mobile-cols="2"] .page-block-product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 5px;
    padding: var(--mobile-card-padding, 13px) 11px;
    border-radius: 15px;
  }

  html[data-mobile-cols="2"] .page-block-product-media {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: var(--mobile-logo-size, 56px);
    height: var(--mobile-logo-size, 56px);
    margin: 0 auto;
  }

  html[data-mobile-cols="2"] .page-block-product-body {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  html[data-mobile-cols="2"] .page-block-product-body > strong {
    font-size: 14px;
    line-height: 1.25;
  }
}

/* ==========================================================================
   pt210u / pt211u — phone header row
   The account entry lives in the header again (desktop/tablet untouched).
   Compact gaps keep search + account + language + bag + menu inside 320px.
   The three-line mobile topbar is set in the <=760 header block above.
   ========================================================================== */

@media (max-width: 760px) {
  .site-header .nav-account {
    display: inline-flex;
  }

  .site-header .nav-wrap {
    gap: 6px;
  }

  .site-header .nav-actions {
    gap: 3px;
  }

  .site-header .lang-switch {
    gap: 0;
    padding: 1px;
  }

  .site-header .lang-btn {
    min-width: 26px;
    height: 44px;
    padding: 0 4px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .site-header .nav-wrap {
    gap: 4px;
  }

  .site-header .nav-actions {
    gap: 2px;
  }

  .site-header .wordmark img {
    height: 34px;
  }

  .site-header .lang-btn {
    min-width: 24px;
    height: 44px;
    padding: 0 3px;
    font-size: 9.5px;
  }
}

/* ==========================================================================
   pt213u — phone tap targets
   Every customer-facing control named in the owner note is at least 44px
   tall/wide on phones. Desktop and tablet rules above are untouched.
   ========================================================================== */

@media (max-width: 760px) {
  .site-header .nav-icon-btn,
  .site-header .nav-account,
  .site-header .cart-btn,
  .site-header .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .site-header .nav-account {
    display: inline-flex;
    min-height: 44px;
  }

  /* The language pill keeps its existing three-btn pattern, but each button
     now spans the full 44px tap height. */
  .site-header .lang-btn {
    min-width: 26px;
    height: 44px;
    padding: 0 4px;
  }

  .cart-close,
  .search-close,
  .legal-close,
  .auth-close,
  .verify-close,
  .fulfillment-close {
    width: 44px;
    height: 44px;
  }

  .cart-close svg,
  .search-close svg,
  .legal-close svg,
  .auth-close svg,
  .verify-close svg,
  .fulfillment-close svg {
    width: 18px;
    height: 18px;
  }

  .search-submit {
    min-height: 44px;
  }

  .cart-remove {
    top: 6px;
    right: 0;
    width: 44px;
    height: 44px;
  }

  .cart-remove svg {
    width: 17px;
    height: 17px;
  }

  .cart-item-info {
    padding-right: 46px;
  }

  .fulfillment-copy,
  .order-copy,
  .topup-order-copy,
  .account-order-remark button,
  .account-order-cancel,
  .fulfillment-account-form .btn {
    min-height: 44px;
  }

  .promo-remove {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 11.5px;
  }

  /* Keep the enlarged close buttons clear of dialog headings. */
  .legal-dialog h2,
  .auth-dialog h2,
  .verify-dialog h2 {
    padding-right: 46px;
  }

  .fulfillment-dialog h2 {
    padding-right: 54px;
  }
}

@media (max-width: 360px) {
  .site-header .nav-wrap {
    padding-left: 8px;
    padding-right: 8px;
    gap: 2px;
  }

  .site-header .wordmark img {
    height: 32px;
  }

  .site-header .nav-actions {
    gap: 2px;
  }

  .site-header .nav-icon-btn,
  .site-header .nav-account,
  .site-header .cart-btn,
  .site-header .nav-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  /* The 320px header cannot fit four 44px circles plus the language pill
     beside the wordmark. Keep the compact 40px chrome but give every icon a
     44x44 tap area. */
  .site-header .nav-icon-btn::after,
  .site-header .nav-account::after,
  .site-header .cart-btn::after,
  .site-header .nav-toggle::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
  }

  .site-header .lang-btn {
    min-width: 24px;
    height: 44px;
    padding: 0 3px;
    font-size: 9px;
  }
}

/* ==========================================================================
   pt217u — confirmed phone polish (customer shop)
   Owner answers: footer 選購/支援/聯絡 in three side-by-side columns; hide
   the teal trust bar on phones only; and keep long short-item lists
   multi-column. Phone-only (max-width: 760px), so desktop and tablet rules
   above are untouched.
   ========================================================================== */

@media (max-width: 760px) {
  /* The three-line announcement bar is desktop/tablet only now. The markup
     and the admin「頂欄」section toggle are unchanged. */
  .topbar {
    display: none;
  }

  /* Footer: brand row above, then 選購 | 支援 | 聯絡 side by side. */
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col h2 {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .footer-col nav,
  .footer-contact {
    gap: 8px;
    font-size: 11.5px;
  }

  /* Contact lines wrap inside their narrow column instead of clipping. */
  .footer-col nav a,
  .footer-contact a,
  .footer-contact span,
  .footer-brand p {
    overflow-wrap: anywhere;
  }

  .footer-contact li {
    align-items: flex-start;
    gap: 4px;
  }

  .footer-demo-badge {
    flex: none;
    padding: 1px 5px;
    font-size: 8px;
  }

  .footer-contact-note {
    font-size: 10px;
  }

  /* 其他用戶想要的 — keep at least two columns of chips on phones. */
  .wishlist-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wishlist-chip {
    gap: 7px;
    padding: 10px 11px;
    font-size: 12.5px;
  }

  /* Short benefit tiles and order-meta tiles: two per row. */
  .usp-card {
    min-width: 0;
    padding: 16px 14px;
    border-radius: 16px;
  }

  .usp-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
  }

  .usp-card h3 {
    font-size: 15px;
    line-height: 1.25;
  }

  .account-order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Order-wait status facts are short label/value tiles too. */
  .order-wait .success-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    gap: 22px 9px;
  }

  .footer-col h2 {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }

  .footer-col nav,
  .footer-contact {
    gap: 7px;
    font-size: 11px;
  }

  .footer-contact-note {
    font-size: 9.5px;
  }

  .wishlist-chips {
    gap: 7px;
  }

  .wishlist-chip {
    gap: 6px;
    padding: 9px;
    font-size: 11.5px;
  }

  .wishlist-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 2px var(--teal-wash);
  }

  .usp-card {
    padding: 14px 12px;
  }

  .usp-card h3 {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .footer-grid {
    gap: 20px 7px;
  }

  .footer-col h2 {
    font-size: 9px;
  }

  .footer-col nav,
  .footer-contact {
    font-size: 10.5px;
  }

  .wishlist-chip {
    gap: 5px;
    padding: 8px;
    font-size: 11px;
  }
}

/* ==========================================================================
   Language control (phones only) — one tap-to-cycle button
   The phone header no longer carries any language control: it holds search,
   account, cart and menu only, with no gap left behind. The single button's
   label is the next language (繁 / EN / 簡) and one tap advances
   繁中 → 英文 → 簡中. The homepage places it on the right of the date row;
   every other customer page puts it right-aligned at the top of main.
   Desktop/tablet (min-width: 761px) keeps the existing three header pills
   untouched and hides this phone control.
   ========================================================================== */

.mobile-lang-row {
  display: none;
}

@media (max-width: 760px) {
  /* Remove the whole language control from the phone header — both the three
     desktop pills and any old header cycle button. Hiding the wrapper means
     nav-actions leaves no empty gap where the control used to sit. */
  .site-header .lang-switch,
  .site-header .lang-switch .lang-btn,
  .site-header .lang-switch .lang-cycle {
    display: none;
  }

  /* Single compact cycle control: current language is teal-filled and the
     ~44px square keeps the target comfortable on phones. */
  .today-line .lang-cycle,
  .mobile-lang-row .lang-cycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: var(--surface-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .today-line .lang-cycle:hover,
  .mobile-lang-row .lang-cycle:hover {
    background: var(--teal-dark);
  }

  .today-line .lang-cycle:active,
  .mobile-lang-row .lang-cycle:active {
    transform: scale(0.95);
  }

  .today-line .lang-cycle:focus-visible,
  .mobile-lang-row .lang-cycle:focus-visible {
    outline: 2px solid var(--teal-dark);
    outline-offset: 2px;
  }

  /* All customer pages except the homepage: slim right-aligned row at the
     start of main, just below the sticky header. */
  .mobile-lang-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
  }

  /* Homepage: date stays left, the cycle button sits right on the same row.
     If a narrow phone runs out of room the button wraps to its own line and
     remains right-aligned instead of colliding with the date. */
  .today-line {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .today-line .lang-cycle {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  /* Reassert: no language control returns to the header; the single cycle
     button stays visible in its date-row / under-header placement. */
  .site-header .lang-switch,
  .site-header .lang-switch .lang-btn,
  .site-header .lang-switch .lang-cycle {
    display: none;
  }

  .today-line .lang-cycle,
  .mobile-lang-row .lang-cycle {
    display: inline-flex;
  }

  .mobile-lang-row {
    display: flex;
  }
}

@media (max-width: 360px) {
  /* 320–360px: the date row may wrap, but the control never collapses. */
  .site-header .lang-switch,
  .site-header .lang-switch .lang-btn,
  .site-header .lang-switch .lang-cycle {
    display: none;
  }

  .today-line .lang-cycle,
  .mobile-lang-row .lang-cycle {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .mobile-lang-row {
    display: flex;
  }
}

/* ==========================================================================
   pt225u — homepage card shrink (phones only)
   Owner confirmed that 首頁會員卡 and 本月熱銷卡 are ~20% too tall, then asked
   for another ~10% height cut. Catalogue heights are now 0.72x the original
   phone value (0.8 x 0.9); the monthly row is 0.9x the already-shrunk fixed px.
   The catalogue cards scale the saved --mobile-* variables, so an owner-tuned
   layout also lands at 72% instead of only the shipped 132/13/56 fallbacks.
   Only height-related values changed — type, horizontal padding and gaps stay
   put. No transform scaling (which would leave an empty gap), and
   desktop/tablet rules stay untouched because this whole block lives inside
   max-width: 760px.
   ========================================================================== */

@media (max-width: 760px) {
  /* 首頁會員卡 — one-column phone tile (logo left, copy right). */
  body[data-page="home"] .catalog-card {
    grid-template-columns: calc(var(--mobile-logo-size, 56px) * 0.72) minmax(0, 1fr);
    min-height: calc(var(--mobile-card-min-height, 132px) * 0.72);
    padding: calc(var(--mobile-card-padding, 13px) * 0.72)
      calc(var(--mobile-card-padding, 13px) + 1px);
    row-gap: 5.6px;
    column-gap: 10px;
  }

  body[data-page="home"] .catalog-card .catalog-art {
    width: calc(var(--mobile-logo-size, 56px) * 0.72);
    height: calc(var(--mobile-logo-size, 56px) * 0.72);
  }

  body[data-page="home"] .catalog-card .catalog-body {
    gap: 1.6px;
  }

  body[data-page="home"] .catalog-card .catalog-cat {
    font-size: 7.6px;
  }

  body[data-page="home"] .catalog-card .catalog-name {
    font-size: 15.2px;
  }

  body[data-page="home"] .catalog-card .catalog-blurb {
    font-size: 9.2px;
  }

  body[data-page="home"] .catalog-card .catalog-foot {
    padding-top: 5.6px;
  }

  body[data-page="home"] .catalog-card .catalog-price-pair .price-official {
    font-size: 7.2px;
  }

  body[data-page="home"] .catalog-card .catalog-price-pair .price-save {
    font-size: 6.8px;
  }

  body[data-page="home"] .catalog-card .catalog-price-pair .price-guest {
    font-size: 13.6px;
  }

  body[data-page="home"] .catalog-card .catalog-price-pair .price-member {
    font-size: 8.4px;
  }

  /* 首頁會員卡 — shipped 2-up phone tile (logo above the title). */
  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(var(--mobile-card-min-height, 132px) * 0.72);
    padding: calc(var(--mobile-card-padding, 13px) * 0.72) 9px;
    row-gap: 4px;
    column-gap: 0;
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-art {
    width: calc(var(--mobile-logo-size, 56px) * 0.72);
    height: calc(var(--mobile-logo-size, 56px) * 0.72);
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-body {
    gap: 1px;
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-name {
    font-size: 11.2px;
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-foot {
    padding-top: 4px;
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-price-pair .price-official,
  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-price-pair .price-save {
    font-size: 6.8px;
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-price-pair .price-guest {
    font-size: 12px;
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-price-pair .price-member {
    font-size: 7.6px;
  }

  /* 本月熱銷 — fixed phone sizes, not the mobileLayout variables. */
  body[data-page="home"] .monthly-row {
    gap: 9.6px;
    padding: 7.92px 12px;
  }

  body[data-page="home"] .monthly-row .monthly-logo {
    width: 40.5px;
    height: 40.5px;
  }

  body[data-page="home"] .monthly-row .monthly-rank {
    width: 19px;
    font-size: 17.6px;
  }

  body[data-page="home"] .monthly-row .monthly-name {
    font-size: 13.6px;
  }

  body[data-page="home"] .monthly-row .monthly-prices .price-guest,
  body[data-page="home"] .monthly-row .monthly-prices .price-member-amount {
    font-size: 12px;
  }

  body[data-page="home"] .monthly-row .monthly-prices .price-member-label {
    font-size: 8.4px;
  }
}

@media (max-width: 640px) {
  /* The pre-existing 13.5px / 9.5px phone price stack becomes 10.8 / 7.6. */
  body[data-page="home"] .monthly-row .monthly-prices .price-guest,
  body[data-page="home"] .monthly-row .monthly-prices .price-member-amount {
    font-size: 10.8px;
  }

  body[data-page="home"] .monthly-row .monthly-prices .price-member-label {
    font-size: 7.6px;
  }
}

@media (max-width: 430px) {
  /* Reassert after the earlier 430px catalogue type rules. The 2-column
     selectors above are more specific, so they keep their own 72% scale. */
  body[data-page="home"] .catalog-card .catalog-name {
    font-size: 14.4px;
  }

  body[data-page="home"] .catalog-card .catalog-price-pair .price-guest {
    font-size: 12.8px;
  }
}

@media (max-width: 420px) {
  /* The earlier 420px rule sets 16px; the shrunk phone name is 12.8px. */
  body[data-page="home"] .monthly-row .monthly-name {
    font-size: 12.8px;
  }
}

@media (max-width: 360px) {
  /* Reassert at 320–360px, where the earlier phone block restyles the same
     catalogue cards (border-radius / column-gap). */
  body[data-page="home"] .catalog-card {
    grid-template-columns: calc(var(--mobile-logo-size, 56px) * 0.72) minmax(0, 1fr);
    min-height: calc(var(--mobile-card-min-height, 132px) * 0.72);
    padding: calc(var(--mobile-card-padding, 13px) * 0.72)
      calc(var(--mobile-card-padding, 13px) + 1px);
    row-gap: 5.6px;
    column-gap: 10px;
  }

  body[data-page="home"] .catalog-card .catalog-art,
  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card .catalog-art {
    width: calc(var(--mobile-logo-size, 56px) * 0.72);
    height: calc(var(--mobile-logo-size, 56px) * 0.72);
  }

  html[data-mobile-cols="2"] body[data-page="home"] .catalog-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(var(--mobile-card-min-height, 132px) * 0.72);
    padding: calc(var(--mobile-card-padding, 13px) * 0.72) 9px;
    row-gap: 4px;
    column-gap: 0;
  }

  body[data-page="home"] .monthly-row {
    gap: 9.6px;
    padding: 7.92px 12px;
  }

  body[data-page="home"] .monthly-row .monthly-logo {
    width: 40.5px;
    height: 40.5px;
  }

  body[data-page="home"] .monthly-row .monthly-rank {
    width: 19px;
    font-size: 17.6px;
  }

  body[data-page="home"] .monthly-row .monthly-name {
    font-size: 12.8px;
  }
}

/* ==========================================================================
   Mobile about + checkout refinement (owner-confirmed)
   Phone-only (max-width: 760px). The homepage 關於我們 copy side and dark
   「付款後自動交付」 card are tightened into one composed, content-hugging
   stack, and every checkout card is shortened. Desktop/tablet rules above
   are untouched: at 761–900px the tablet summary-first order (-1) stays as
   shipped; only phones put the summary + confirm at the bottom of the form.
   ========================================================================== */

@media (max-width: 760px) {
  /* Home — 關於我們: compact copy stack, card hugs kicker + title + pills. */
  .about-section {
    padding-top: 24px;
  }

  .about-grid {
    gap: 16px;
  }

  .about-copy .eyebrow {
    margin-bottom: 8px;
  }

  .about-copy h2 {
    font-size: 27px;
    line-height: 1.1;
  }

  .about-copy p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.68;
  }

  .about-copy p + p {
    margin-top: 6px;
  }

  .about-points {
    margin-top: 14px;
    gap: 8px 14px;
  }

  .about-points li {
    gap: 6px;
    font-size: 12px;
  }

  .about-actions {
    margin-top: 16px;
  }

  .about-card {
    min-height: 0;
    padding: 17px 18px 18px;
    border-radius: 19px;
    justify-content: flex-start;
  }

  .about-card-title {
    margin-top: 9px;
    max-width: 240px;
    font-size: 21px;
    line-height: 1.12;
  }

  .about-card-meta {
    margin-top: 10px;
    gap: 6px;
  }

  .about-card-meta span {
    padding: 4px 9px;
    font-size: 9.5px;
  }

  /* Decorative rings: shorter, lower and quieter so they do not dominate
     the short phone card or leave a tall empty poster below the pills. */
  .about-card::after {
    right: -54px;
    bottom: -94px;
    width: 176px;
    height: 176px;
    box-shadow: 0 0 0 24px rgba(231, 238, 234, 0.04),
      0 0 0 50px rgba(231, 238, 234, 0.025);
  }

  /* Checkout — phone page shell and guest note. */
  body[data-page="checkout"] .checkout-main {
    padding-top: 16px;
    padding-bottom: 44px;
  }

  body[data-page="checkout"] .checkout-heading {
    font-size: 32px;
    line-height: 1;
  }

  /* The guest note becomes one compact block: icon pinned left, copy and the
     登入／註冊 action flow inline instead of a tall 44px link on its own row. */
  body[data-page="checkout"] .checkout-note {
    position: relative;
    display: block;
    min-height: 0;
    margin: 8px 0 12px;
    padding: 8px 11px 8px 31px;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  body[data-page="checkout"] .checkout-note > svg {
    position: absolute;
    top: 9px;
    left: 11px;
    width: 15px;
    height: 15px;
    margin: 0;
  }

  body[data-page="checkout"] .checkout-auth-link {
    position: relative;
    display: inline;
    min-height: 0;
    margin-left: 4px;
    padding: 0;
    line-height: inherit;
    vertical-align: baseline;
  }

  /* Keep a comfortable tap area around the inline action without restoring
     the tall row the owner asked to remove. */
  body[data-page="checkout"] .checkout-auth-link::after {
    content: "";
    position: absolute;
    inset: -10px -8px;
  }

  body[data-page="checkout"] .checkout-grid {
    gap: 13px;
  }

  body[data-page="checkout"] .checkout-left {
    order: 1;
    gap: 12px;
  }

  /* Phones: left column first, 訂單總計 + 確認結帳 last. This overrides only
     the <=900px order:-1 above; 761–900px keeps its tablet summary-first. */
  body[data-page="checkout"] .order-summary {
    order: 2;
    position: static;
    top: auto;
    padding: 15px 14px;
    border-radius: 16px;
  }

  body[data-page="checkout"] .checkout-card {
    padding: 15px 14px;
    border-radius: 16px;
  }

  body[data-page="checkout"] .card-title {
    margin-bottom: 12px;
    gap: 8px;
  }

  body[data-page="checkout"] .card-title h2 {
    font-size: 17px;
  }

  body[data-page="checkout"] .step-num {
    width: 25px;
    height: 25px;
    font-size: 10.5px;
  }

  body[data-page="checkout"] .field {
    margin-bottom: 13px;
  }

  body[data-page="checkout"] .field > label,
  body[data-page="checkout"] .field-label {
    margin-bottom: 5px;
  }

  /* Inputs keep 16px to avoid iOS zoom and a 44px tap floor. */
  body[data-page="checkout"] .field input,
  body[data-page="checkout"] .field select,
  body[data-page="checkout"] .field textarea {
    padding: 11px 13px;
    font-size: 16px;
    min-height: 44px;
  }

  body[data-page="checkout"] .field input.has-icon {
    padding-left: 40px;
  }

  body[data-page="checkout"] .phone-group input {
    padding-left: 12px;
  }

  body[data-page="checkout"] .checkout-card .field textarea {
    min-height: 76px;
    height: 76px;
  }

  body[data-page="checkout"] .field-hint {
    margin-top: 5px;
  }

  body[data-page="checkout"] .pay-grid {
    gap: 7px;
  }

  body[data-page="checkout"] .pay-tile {
    min-height: 52px;
    padding: 7px 9px;
    gap: 7px;
  }

  body[data-page="checkout"] .pay-icon {
    width: 50px;
    height: 32px;
    padding: 3px 5px;
  }

  body[data-page="checkout"] .pay-name {
    font-size: 12px;
  }

  body[data-page="checkout"] .pay-note {
    margin-top: 9px;
  }

  body[data-page="checkout"] .promo-member-note,
  body[data-page="checkout"] .promo-guest-note {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  body[data-page="checkout"] .promo-guest-note {
    margin-bottom: 0;
  }

  body[data-page="checkout"] .promo-controls {
    gap: 11px;
  }

  /* Order summary internals. */
  body[data-page="checkout"] .order-summary h2 {
    font-size: 18px;
  }

  body[data-page="checkout"] .summary-items {
    margin-top: 4px;
  }

  body[data-page="checkout"] .summary-item {
    gap: 9px;
    padding: 9px 0;
  }

  body[data-page="checkout"] .summary-thumb {
    width: 52px;
    height: 52px;
    padding: 6px;
    border-radius: 11px;
  }

  body[data-page="checkout"] .summary-item-title {
    font-size: 12.5px;
  }

  body[data-page="checkout"] .summary-item-variant {
    font-size: 10.5px;
  }

  body[data-page="checkout"] .summary-item .qty-stepper {
    margin-top: 3px;
  }

  body[data-page="checkout"] .summary-totals {
    padding-top: 9px;
  }

  body[data-page="checkout"] .summary-line {
    margin-bottom: 5px;
    font-size: 12.5px;
  }

  body[data-page="checkout"] .summary-total {
    margin-top: 6px;
    padding-top: 9px;
  }

  body[data-page="checkout"] .summary-total strong {
    font-size: 22px;
  }

  body[data-page="checkout"] .summary-pending {
    margin-top: 4px;
  }

  body[data-page="checkout"] .summary-price-badge {
    margin-top: 5px;
  }

  body[data-page="checkout"] .terms-row {
    margin-top: 10px;
    gap: 7px;
  }

  body[data-page="checkout"] .terms-copy {
    font-size: 11px;
    line-height: 1.55;
  }

  body[data-page="checkout"] .confirm-btn {
    min-height: 48px;
    margin-top: 11px;
  }

  body[data-page="checkout"] .confirm-hint {
    margin-top: 5px;
  }

  body[data-page="checkout"] .summary-trust {
    margin-top: 8px;
    padding-top: 8px;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  /* Reassert the short-card proportions on narrower phones. */
  .about-copy h2 {
    font-size: 26px;
  }

  .about-card {
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .about-card-title {
    margin-top: 8px;
    font-size: 20.5px;
  }

  body[data-page="checkout"] .checkout-main {
    padding-top: 14px;
  }

  body[data-page="checkout"] .checkout-heading {
    font-size: 30px;
  }

  body[data-page="checkout"] .checkout-card,
  body[data-page="checkout"] .order-summary {
    padding: 14px 13px;
    border-radius: 15px;
  }

  body[data-page="checkout"] .checkout-note {
    padding: 8px 10px 8px 30px;
  }

  body[data-page="checkout"] .summary-thumb {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 360px) {
  /* 320–360px: hold the compact card height instead of letting it balloon. */
  .about-copy h2 {
    font-size: 25px;
  }

  .about-card {
    min-height: 0;
    padding: 15px;
  }

  .about-card-title {
    font-size: 20px;
  }

  body[data-page="checkout"] .checkout-heading {
    font-size: 29px;
  }

  body[data-page="checkout"] .checkout-card,
  body[data-page="checkout"] .order-summary {
    padding: 13px 12px;
  }

  body[data-page="checkout"] .card-title h2 {
    font-size: 16px;
  }

  body[data-page="checkout"] .pay-icon {
    width: 46px;
    height: 30px;
  }

  body[data-page="checkout"] .summary-thumb {
    width: 44px;
    height: 44px;
  }
}
