/* =============================================================
   PeptiCore — Design System
   Editorial + scientific + premium (not pure Apple-minimal)
   ============================================================= */

:root {
  /* palette */
  --bg: #FAF8F4;        /* matched exactly to hero.jpg corners — zero visible edge */
  --bg-alt: #F3EFE8;
  --bg-dark: #0F1011;
  --ink: #111113;
  --ink-2: #2A2A2D;
  --muted: #6E6E74;
  --muted-2: #A3A3A8;
  --line: rgba(15,16,17,0.08);
  --line-2: rgba(15,16,17,0.14);
  --accent: #2E5339;       /* deep apothecary green */
  --accent-soft: #E6EDE7;
  --forest: var(--accent);  /* shared SEO-page action and link token */
  --bronze: #9A7B4F;
  --bronze-soft: #EFE7DA;
  --wa: #25D366;
  --wa-ink: #128C7E;

  /* type */
  --serif: "Fraunces", "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-s: cubic-bezier(0.32, 0.72, 0, 1);

  /* layout */
  --nav-h: 64px;
  --page-max: 1280px;
  --detail-max: 920px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* ===== Membership, points, and admin ===== */
.nav-account-btn {
  min-height: 36px;
  border: 1px solid rgba(30, 35, 32, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #1e2520;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  font: 600 12px/1 Inter, sans-serif;
  box-shadow: 0 10px 28px rgba(24, 28, 24, 0.05);
  cursor: pointer;
}

.nav-account-btn b {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  background: #2f6845;
  color: #fff;
  font: 700 11px/1 Inter, sans-serif;
}

.nav-account-btn b[hidden] {
  display: none !important;
}

.member-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(16, 18, 16, 0.42);
  backdrop-filter: blur(18px);
}

body[data-member="open"] .member-overlay { display: flex; }

.member-box {
  width: min(920px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid rgba(35, 38, 34, 0.12);
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 36px 90px rgba(10, 12, 10, 0.24);
}

.member-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid rgba(25, 28, 25, 0.08);
}

.member-kicker,
.member-card-k,
.member-balance-k,
.admin-kicker {
  font: 600 11px/1.3 "JetBrains Mono", monospace;
  color: rgba(32, 40, 35, 0.48);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.member-head h2,
.member-auth-copy h3,
.admin-head h1 {
  margin: 8px 0 0;
  font-family: Fraunces, serif;
  font-weight: 500;
  color: #111512;
}

.member-head h2 { font-size: clamp(28px, 4vw, 44px); }

.member-close {
  border: 1px solid rgba(30, 35, 32, 0.12);
  border-radius: 999px;
  background: #fff;
  min-width: 50px;
  height: 34px;
  padding: 0 12px;
  color: rgba(20, 24, 20, 0.62);
  font: 600 11px/1 Inter, sans-serif;
  cursor: pointer;
}

.member-body {
  max-height: calc(min(780px, 100vh - 40px) - 96px);
  overflow: auto;
  padding: 28px 30px 32px;
}

.member-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.member-auth-copy,
.member-auth-card,
.member-balance-card,
.member-invite-card,
.member-list-card,
.admin-card {
  border: 1px solid rgba(28, 32, 28, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 40px rgba(26, 28, 24, 0.05);
}

.member-auth-copy { padding: 28px; }
.member-auth-card { padding: 20px; }

.member-auth-copy h3 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
}

.member-auth-copy p {
  margin: 18px 0 0;
  color: rgba(20, 24, 22, 0.66);
  line-height: 1.75;
}

.member-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.member-rule-grid span {
  border-top: 1px solid rgba(25, 28, 25, 0.08);
  padding-top: 12px;
  color: rgba(20, 24, 22, 0.62);
  font-size: 13px;
}

.member-rule-grid b {
  display: block;
  color: #2f6845;
  font: 600 25px/1 Fraunces, serif;
}

.member-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid rgba(28, 32, 28, 0.08);
  border-radius: 999px;
  background: rgba(245, 243, 236, 0.8);
}

.member-tabs button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(20, 24, 20, 0.55);
  font: 700 13px/1 Inter, sans-serif;
  cursor: pointer;
}

.member-tabs button.is-active {
  background: #fff;
  color: #152017;
  box-shadow: 0 10px 24px rgba(20, 24, 20, 0.06);
}

.member-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.member-form label,
.admin-settings label {
  display: grid;
  gap: 8px;
  color: rgba(20, 24, 20, 0.62);
  font: 600 12px/1.2 Inter, sans-serif;
}

.member-form input,
.member-copy-input,
.admin-settings input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(28, 32, 28, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 0 13px;
  color: #141814;
  font: 500 14px/1.2 Inter, sans-serif;
  outline: none;
}

.member-form input:focus,
.member-copy-input:focus,
.admin-settings input:focus {
  border-color: rgba(47, 104, 69, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 104, 69, 0.1);
}

.member-primary,
.member-secondary,
.member-cart-title button {
  min-height: 44px;
  border: 1px solid rgba(28, 32, 28, 0.1);
  border-radius: 999px;
  padding: 0 18px;
  font: 700 14px/1 Inter, sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-primary {
  background: #2ad36f;
  border-color: #2ad36f;
  color: #fff;
  box-shadow: 0 15px 34px rgba(42, 211, 111, 0.18);
}

.member-secondary,
.member-cart-title button {
  background: #fff;
  color: #2d5f40;
}

.member-form-note {
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(47, 104, 69, 0.08);
  color: #2d5f40;
  font-size: 13px;
}

.member-form-note-error,
.member-service-note {
  background: rgba(164, 92, 44, 0.1);
  color: #8a4e27;
}

.member-service-note {
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.member-service-note h3 {
  margin: 0 0 8px;
  font: 600 20px/1.2 Fraunces, serif;
  color: #1a1d19;
}

.member-service-note p { margin: 0; line-height: 1.65; }

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

.member-balance-card,
.member-invite-card,
.member-list-card { padding: 22px; }

.member-balance-v {
  margin-top: 12px;
  font: 600 clamp(54px, 9vw, 92px)/0.9 Fraunces, serif;
  color: #2f6845;
}

.member-balance-card p {
  margin: 16px 0 0;
  color: rgba(20, 24, 22, 0.62);
  line-height: 1.55;
}

.member-invite-code {
  margin: 12px 0;
  font: 600 34px/1 Fraunces, serif;
  color: #141814;
}

.member-copy-input {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.member-invite-card .member-secondary { margin-top: 12px; width: 100%; }

.member-list-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.member-list-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(25, 28, 25, 0.07);
}

.member-list-card li span { color: #1b201d; }
.member-list-card li b { color: #2f6845; }
.member-list-card li small {
  grid-column: 1 / -1;
  color: rgba(20, 24, 22, 0.48);
  font-size: 12px;
}

.member-actions-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.member-cart-panel {
  margin-top: 14px;
  border: 1px solid rgba(35, 38, 34, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(250,249,245,0.9));
  padding: 16px;
}

.member-cart-title,
.member-cart-rows > div,
.member-cart-points-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-cart-title {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 32, 28, 0.08);
  color: #151a16;
  font-weight: 700;
}

.member-cart-title b {
  color: #2f6845;
  font-size: 12px;
}

.member-cart-rows {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.member-cart-rows > div {
  color: rgba(20, 24, 22, 0.6);
  font-size: 14px;
}

.member-cart-rows b {
  color: #121612;
  font-size: 15px;
}

.member-cart-points-row input {
  width: 82px;
  height: 34px;
  border: 1px solid rgba(28, 32, 28, 0.12);
  border-radius: 10px;
  padding: 0 8px;
  text-align: right;
  background: #fff;
}

.member-cart-points-row small {
  min-width: 46px;
  color: #2f6845;
  text-align: right;
}

.member-cart-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 32, 28, 0.1);
}

.member-cart-total b { font-size: 20px; }

.member-cart-note {
  margin: 12px 0 0;
  color: rgba(20, 24, 22, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

.admin-shell {
  padding-top: calc(var(--nav-h, 74px) + 48px);
  padding-bottom: 80px;
}

.admin-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.admin-head h1 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.95;
}

.admin-head p {
  margin: 0;
  color: rgba(20, 24, 22, 0.62);
  font-size: 17px;
  line-height: 1.7;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary > div {
  border: 1px solid rgba(28, 32, 28, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.admin-summary b {
  display: block;
  font: 600 38px/1 Fraunces, serif;
}

.admin-summary span {
  display: block;
  margin-top: 6px;
  color: rgba(20, 24, 22, 0.52);
  font: 600 11px/1.2 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-card {
  padding: 20px;
  overflow: hidden;
}

.admin-card h2 {
  margin: 0 0 16px;
  font: 500 28px/1 Fraunces, serif;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-card th,
.admin-card td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(28, 32, 28, 0.08);
  text-align: left;
  font-size: 13px;
}

.admin-card th {
  color: rgba(20, 24, 22, 0.5);
  font: 700 11px/1.2 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-error {
  grid-column: 1 / -1;
  color: #8a4e27;
}

@media (max-width: 900px) {
  .member-auth-shell,
  .member-dashboard,
  .admin-summary,
  .admin-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-account-btn {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .nav-account-btn span {
    font-size: 0;
  }

  .nav-account-btn span::before {
    content: "Me";
    font-size: 12px;
  }

  .nav-account-btn b {
    position: absolute;
    transform: translate(17px, -16px);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
  }

  .member-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .member-box {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 24px 24px 0 0;
  }

  .member-head {
    padding: 22px 20px 16px;
  }

  .member-body {
    padding: 22px 20px max(28px, env(safe-area-inset-bottom));
  }

  .member-auth-copy,
  .member-auth-card,
  .member-balance-card,
  .member-profile-card,
  .member-invite-card,
  .member-list-card,
  .admin-card {
    border-radius: 16px;
  }

  .member-profile-form {
    grid-template-columns: 1fr;
  }

  .member-actions-row {
    justify-content: stretch;
  }

  .member-actions-row > * {
    flex: 1 1 100%;
  }

  .admin-shell {
    padding-top: calc(var(--nav-h, 76px) + 28px);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* selection */
::selection { background: var(--ink); color: var(--bg); }

/* subtle page grain */
body::before{
  content:"";
  position: fixed; inset:0;
  background-image: radial-gradient(rgba(15,16,17,0.028) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,248,244,0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}
.nav-inner {
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-menu { justify-self: start; }
.nav-right { justify-self: end; }
.nav-menu {
  width: 40px; height: 40px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: 10px;
}
.nav-menu span {
  display:block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .28s var(--ease), opacity .18s var(--ease);
  transform-origin: center;
}
.nav-menu:hover { background: rgba(15,16,17,0.04); }
body[data-side="open"] .nav-menu span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
body[data-side="open"] .nav-menu span:nth-child(2){ opacity: 0; }
body[data-side="open"] .nav-menu span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.nav-brand {
  display: inline-flex; align-items: center; gap: 0;
  justify-self: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1;
}
.nav-brand .brand-mark { display: none; } /* logo removed per request */
.brand-mark { width: 22px; height: 22px; color: var(--ink); }
.brand-word { line-height: 1; }

.nav-right { display: inline-flex; gap: 10px; align-items: center; }
.nav-search-btn,
.nav-cart-btn {
  height: 36px;
  padding: 0 12px 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,0.5);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.nav-search-btn:hover,
.nav-cart-btn:hover { color: var(--ink); border-color: var(--line-2); background: #fff; }
.nav-search-btn kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-2);
  background: #fff;
}
.nav-cart-btn b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}
.nav-cart-btn[data-count="0"] b { display: none; }
.nav-wa {
  height: 36px;
  padding: 0 14px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(37,211,102,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: var(--wa-ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 28px -22px rgba(18,140,126,0.6);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.nav-wa:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(37,211,102,0.38);
  color: var(--wa);
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .nav-inner { padding: 0 16px; }
  .nav-search-btn span, .nav-search-btn kbd, .nav-cart-btn span { display: none; }
  .nav-search-btn, .nav-cart-btn { padding: 0; width: 36px; justify-content: center; }
  .nav-wa span { display: none; }
  .nav-wa { padding: 0; width: 36px; justify-content: center; }
}

@media (max-width: 820px) {
  .nav-inner {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px;
  }

	  .nav-menu,
	  .nav-search-btn,
	  .nav-cart-btn,
	  .nav-house-btn,
	  .nav-wa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

	  .nav-menu { left: 16px; }
	  .nav-search-btn { left: 64px; }
	  .nav-house-btn { display: none; }
	  .nav-cart-btn { right: 64px; }
	  .nav-wa { right: 16px; }
  .nav-cart-btn b {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }

  .nav-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
  }

  .nav-right { display: contents; }

	  .nav-search-btn span,
	  .nav-search-btn kbd,
	  .nav-cart-btn span,
	  .nav-house-btn span,
  .nav-wa span {
    display: none;
  }

  .nav-house-btn svg {
    display: block;
  }
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(15,16,17,0.22);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
  z-index: 70;
}
body[data-side="open"] .backdrop { opacity: 1; pointer-events: auto; }
body[data-side="open"] { overflow: hidden; }

.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 340px; max-width: 86vw;
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .36s var(--ease-s);
  z-index: 80;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + 8px);
}
body[data-side="open"] .sidebar { transform: none; }

.side-head { position: relative; padding: 16px 28px 22px; border-bottom: 1px solid var(--line); }
.side-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.side-close:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: #fff;
}
.side-kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.side-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.side-sub { color: var(--muted); font-size: 13px; }

.side-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.side-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 14px 28px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.side-item:hover { background: var(--bg-alt); }
.side-item[aria-current="true"] {
  background: var(--bg-alt);
  border-left-color: var(--accent);
  font-weight: 600;
}
.side-item .side-item-label {
  font-size: 15px; letter-spacing: -0.005em;
}
.side-item .side-item-count {
  font-family: var(--mono);
  font-size: 12px; color: var(--muted-2);
}

.side-foot { padding: 18px 28px 24px; border-top: 1px solid var(--line); }
.side-disclaimer {
  font-size: 11.5px; color: var(--muted);
  line-height: 1.55;
}
.side-disclaimer strong { color: var(--ink-2); font-weight: 600; }

/* =============================================================
   SEARCH
   ============================================================= */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(15,16,17,0.38);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 0;
}
body[data-search="open"] .search-overlay { opacity: 1; pointer-events: auto; }
.search-box {
  width: 100%; max-width: 640px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(15,16,17,0.4);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform .24s var(--ease);
}
body[data-search="open"] .search-box { transform: none; }
.search-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search-head input {
  border: 0; outline: 0; background: none;
  font-size: 17px; font-family: var(--sans); color: var(--ink);
  padding: 4px 0;
}
.search-close {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted);
}
.search-results { max-height: 60vh; overflow-y: auto; padding: 6px 0; }
.search-empty { padding: 28px 18px; color: var(--muted); font-size: 13px; text-align: center; }
.search-empty-rich {
  padding: 18px;
  text-align: left;
}
.search-empty-kicker {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.search-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.search-quick-link {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(250,248,244,0.62);
  color: var(--ink-2);
}
.search-quick-link:hover {
  border-color: var(--line-2);
  background: rgba(250,248,244,0.92);
}
.search-quick-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-quick-link b {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
}
.search-result {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 14px;
  padding: 12px 18px;
  cursor: pointer;
  border-top: 1px solid var(--line);
}
.search-result:first-of-type { border-top: 0; }
.search-result:hover { background: var(--bg-alt); }
.search-result-mark {
  width: 36px; height: 36px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.search-result-title { font-weight: 500; letter-spacing: -0.01em; }
.search-result-meta { font-size: 12px; color: var(--muted); }
.search-result-price { font-family: var(--mono); color: var(--ink); font-weight: 500; font-size: 13px; }

/* =============================================================
   CART
   ============================================================= */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(15,16,17,0.34);
  backdrop-filter: blur(6px);
  z-index: 101;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 0;
}
body[data-cart="open"] .cart-overlay { opacity: 1; pointer-events: auto; }
.cart-box {
  width: 100%; max-width: 560px;
  background: #fff;
  border: 1px solid rgba(15,16,17,0.08);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(15,16,17,0.38);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform .24s var(--ease);
}
body[data-cart="open"] .cart-box { transform: none; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
}
.cart-kicker {
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.cart-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cart-close {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted);
}
.cart-body {
  max-height: 48vh;
  overflow-y: auto;
  padding: 8px 0;
}
.cart-empty {
  padding: 28px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.cart-item:first-child { border-top: 0; }
.cart-item-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cart-item-meta {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.cart-remove {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.cart-remove:hover {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--bg-alt);
}
.cart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(250,248,244,0.68);
}
.cart-min-note {
  width: 100%;
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
}
.cart-min-note[hidden] { display: none; }
.cart-clear,
.cart-send {
  height: 38px;
  padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.cart-clear {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.cart-clear:disabled {
  opacity: 0.45;
  cursor: default;
}
.cart-send {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 26px -18px rgba(18,140,126,0.9);
}
.cart-send[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.cart-send:hover { background: var(--wa-ink); }

/* COA viewer */
.coa-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(15,16,17,0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  overscroll-behavior: contain;
}
body[data-coa="open"] .coa-overlay {
  opacity: 1;
  pointer-events: auto;
}
body[data-scroll-locked="true"] {
  overflow: hidden;
}
html[data-scroll-locked="true"] {
  overflow: hidden;
}
.coa-box {
  width: min(100%, 980px);
  max-height: min(88vh, 920px);
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 18px;
  box-shadow: 0 34px 100px -48px rgba(0,0,0,0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(10px);
  transition: transform .24s var(--ease);
}
body[data-coa="open"] .coa-box { transform: none; }
.coa-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
}
.coa-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.coa-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 8px;
}
.coa-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.coa-close {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.coa-close:hover { color: var(--ink); border-color: var(--line-2); }
.coa-body {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 22px;
  display: grid;
  gap: 18px;
  min-height: 0;
  align-content: start;
  grid-auto-rows: max-content;
}
.coa-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.coa-card figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.coa-toggle {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.coa-index,
.coa-toggle-state {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.coa-toggle strong {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coa-toggle-state {
  color: var(--accent);
  font-weight: 700;
}
.coa-card.is-open .coa-toggle-state {
  color: var(--muted);
}
.coa-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  min-width: max-content;
}
.coa-card figcaption a {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.coa-card figcaption a[download] {
  color: var(--muted);
}
.coa-preview-wrap {
  background: #f8f8f6;
}
.coa-preview-wrap[hidden] {
  display: none;
}
.coa-image-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: #f8f8f6;
  display: block;
  cursor: zoom-in;
}
.coa-img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #f8f8f6;
}
.coa-preview-missing {
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
  background: #f8f8f6;
}
.coa-pdf {
  width: 100%;
  height: min(72vh, 820px);
  min-height: 560px;
  border: 0;
  display: block;
  background: #f8f8f6;
}
.coa-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  background: rgba(12,13,13,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity .2s var(--ease);
}
body[data-coa-zoom="open"] .coa-zoom-overlay {
  opacity: 1;
  pointer-events: auto;
}
.coa-zoom-panel {
  position: relative;
  width: min(100%, 1120px);
  max-height: min(92vh, 1040px);
  display: grid;
  gap: 10px;
}
.coa-zoom-img {
  width: 100%;
  max-height: calc(92vh - 54px);
  object-fit: contain;
  display: block;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 90px -42px rgba(0,0,0,0.72);
}
.coa-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  font-weight: 700;
}
.coa-zoom-caption {
  color: rgba(255,255,255,0.84);
  font-size: 12px;
  text-align: center;
}

/* =============================================================
   MAIN
   ============================================================= */
.view {
  position: relative; z-index: 1;
  padding-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
}

/* entry animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.fade-in { animation: fadeUp .6s var(--ease) both; }
.fade-in-d1 { animation-delay: .06s; }
.fade-in-d2 { animation-delay: .12s; }
.fade-in-d3 { animation-delay: .18s; }
.fade-in-d4 { animation-delay: .24s; }
.fade-in-d5 { animation-delay: .3s; }

/* shared container */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 680px) { .wrap { padding: 0 16px; } }

/* =============================================================
   HERO (home) — two-column editorial + portrait plate
   ============================================================= */
.hero {
  padding: 88px 0 72px;
  position: relative;
}
@media (max-width: 1320px) {
  .hero.wrap {
    padding-left: 28px;
    padding-right: 28px;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  grid-template-areas:
    "title vial"
    "body  vial";
  column-gap: clamp(48px, 7vw, 120px);
  row-gap: 32px;
  align-items: center;
}
.hero-title-block { grid-area: title; min-width: 0; align-self: end; max-width: 720px; }
.hero-body-block  { grid-area: body;  min-width: 0; max-width: 560px; align-self: start; }
.hero-portrait    { grid-area: vial; }

/* ---- portrait plate ---- */
.hero-portrait {
  margin: 0;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: min(36vw, 440px);
  display: flex;
  flex-direction: column;
}
.hero-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;        /* locks the shape — no distortion, no edges */
  isolation: isolate;
}
/* the image itself — cover crops, never letterbox, never stretch.
   background baked into the image matches page #FAF8F4 exactly (Δ=0),
   so no blend-mode tricks needed — full fidelity rendering. */
.hero-portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.hero-portrait-frame[data-img="loaded"] .hero-portrait-img { opacity: 1; }
.hero-portrait-frame[data-img="missing"] .hero-portrait-fallback { display: flex; }

/* fallback SVG centered — only shown when image missing, has its own
   cream gradient since there is no frame bg anymore */
.hero-portrait-fallback {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(154,123,79,0.14), transparent 60%),
    linear-gradient(160deg, #F6F3EA 0%, #E8DFCA 100%);
  border-radius: 3px;
}
.hero-portrait-fallback svg { width: 62%; height: auto; }

.hero-portrait-vignette { display: none; }

.hero-portrait-cap {
  margin-top: 18px;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* tablet / mid: same 2-col area layout, slightly tighter */
@media (max-width: 920px) {
  .hero-grid { column-gap: 18px; row-gap: 32px; }
  .hero-portrait { max-width: 320px; justify-self: start; }
}
/* phones: 2-row grid — title+vial (equal halves), body full-width below.
   buttons centered, whitespace uniform. */
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;   /* equal halves */
    grid-template-areas:
      "title vial"
      "body  body";
    column-gap: 18px;
    row-gap: 28px;
    align-items: end;
  }
  .hero-title-block { align-self: end; max-width: none; }
  .hero-body-block { max-width: none; text-align: center; }
  .hero-portrait { max-width: none; justify-self: center; width: 100%; }
  .hero-portrait-frame { aspect-ratio: 4 / 5; }
  .hero-portrait-cap { display: none; }
  /* title sized to fit the 1fr column */
  .hero-title {
    font-size: 34px !important;
    line-height: 1;
    letter-spacing: -0.025em;
    margin-bottom: 0;
  }
  .hero-kicker { margin-bottom: 16px; font-size: 10px; letter-spacing: 0.12em; }
  .hero-sub {
    font-size: 14.5px; line-height: 1.55;
    max-width: 480px;
    margin: 0 auto 26px;
  }
  /* buttons: centered row */
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .btn-wa, .btn-ghost {
    height: 44px; padding: 0 18px; font-size: 13.5px;
    white-space: nowrap;
  }
}
/* smaller phones ≤420 */
@media (max-width: 420px) {
  .hero-title { font-size: 30px !important; }
  .hero-kicker { font-size: 9.5px; }
}
/* very narrow 360 or below */
@media (max-width: 360px) {
  .hero-title { font-size: 26px !important; }
  .btn-wa, .btn-ghost { height: 42px; padding: 0 14px; font-size: 12.5px; }
}
.hero-kicker {
  display: block;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  font-weight: 500;
}
.hero-kicker::before { display: none; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 8.4vw, 122px);
  line-height: 0.94;
  letter-spacing: -0.038em;
  margin: 0 0 34px;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero-sub {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 44px;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px; height: 52px;
  background: var(--wa);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { background: var(--wa-ink); transform: translateY(-1px); box-shadow: 0 14px 30px -6px rgba(37,211,102,0.45); }
.btn-wa svg { width: 17px; height: 17px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px; height: 52px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-ghost svg { width: 14px; height: 14px; }

/* hero facts — quiet horizontal bar */
.hero-facts {
  margin-top: 84px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.hero-fact {
  display: flex; flex-direction: column;
  gap: 6px;
}
.hero-fact-v {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-fact-v sup {
  font-family: var(--sans);
  font-size: 42%;
  font-weight: 400;
  color: var(--muted);
  margin-left: 1px;
  top: -0.8em;
  position: relative;
}
.hero-fact-k {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 760px) {
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 72px; padding-top: 28px; }
  .hero-fact-v { font-size: 30px; }
}

/* =============================================================
   MOBILE POPULAR SERIES
   ============================================================= */
.home-popular {
  display: none;
}
@media (max-width: 760px) {
  .home-popular {
    display: block;
    padding-top: 2px;
    padding-bottom: 34px;
  }
  .home-popular-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }
  .home-popular-kicker {
    margin-bottom: 5px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .home-popular-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1;
    font-weight: 420;
    letter-spacing: -0.02em;
  }
  .home-popular-head a {
    flex: 0 0 auto;
    padding-bottom: 2px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
  }
  .home-popular-track {
    display: flex;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .home-popular-track::-webkit-scrollbar {
    display: none;
  }
  .home-popular-card {
    flex: 0 0 142px;
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.62);
    box-shadow: 0 14px 34px -30px rgba(15,16,17,0.36);
  }
  .home-popular-img {
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid var(--line);
    background: rgba(246,243,234,0.75);
  }
  .home-popular-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .home-popular-body {
    min-height: 74px;
    padding: 11px 11px 12px;
  }
  .home-popular-body h3 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.08;
    font-weight: 420;
    letter-spacing: -0.018em;
  }
  .home-popular-body p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.25;
  }
}

/* =============================================================
   CATEGORY INDEX (home)
   ============================================================= */
.section {
  padding: 160px 0 80px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 8px;
}
.section-head-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  max-width: 780px;
}
.section-head-title em { color: var(--accent); font-style: italic; font-weight: 300; }
.section-kicker {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.section-head-meta {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .section { padding: 96px 0 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* =============================================================
   CATEGORY GRID — one consistent style, quiet
   ============================================================= */
.cat-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--bg);
  display: flex; flex-direction: column;
  min-height: 240px;
  color: inherit;
  transition: background .3s var(--ease);
}
.cat-card:hover { background: var(--bg-alt); }
.cat-card-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 40px;
}
.cat-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.cat-card-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  font-weight: 300;
  flex: 1;
}
.cat-card-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--muted);
}
.cat-card-count {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.cat-card-arrow {
  width: 13px; height: 13px;
  color: var(--ink);
  transition: transform .25s var(--ease);
}
.cat-card:hover .cat-card-arrow { transform: translateX(4px); }

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 200px; padding: 28px 22px 24px; }
  .cat-card-idx { margin-bottom: 24px; }
}

/* =============================================================
   HERO DECO + KICKER REFINEMENT
   ============================================================= */
.hero { position: relative; }
.hero-deco {
  position: absolute;
  right: -120px; top: 20px;
  width: 620px; height: 620px;
  pointer-events: none;
  opacity: .9;
  z-index: 0;
}
.hero-deco svg { width: 100%; height: 100%; }
.hero-grid { position: relative; z-index: 1; }
.hero-lead { max-width: 720px; }

.hero-kicker-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0;
  margin-right: 12px;
  opacity: .8;
}
.hero-kicker-link {
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-transform: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(46,83,57,0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color .25s var(--ease), color .25s var(--ease);
}
.hero-kicker-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.hero-kicker::before { display: none; }

.hero-sub em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-stat-num sup { font-family: var(--sans); font-size: 40%; font-weight: 400; margin-left: 2px; top: -1em; position: relative; color: var(--muted); }

/* =============================================================
   SECTION HEADER — refined hierarchy
   ============================================================= */
.section-head-title em { color: var(--accent); font-style: italic; font-weight: 300; }

/* =============================================================
   THE STANDARD — quiet, single column, deep
   ============================================================= */
.standard {
  margin-top: 0;
  padding: 160px 0 140px;
  background: var(--bg-dark);
  color: #F1EEE6;
  position: relative;
  overflow: hidden;
}
.standard-inner {
  position: relative; z-index: 1;
  max-width: 920px;
}
.standard-kicker {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(241,238,230,0.45);
  margin-bottom: 56px;
  text-transform: uppercase;
  font-weight: 500;
}
.standard-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 0 0 72px;
  color: #F6F3EA;
}
.standard-quote em {
  font-style: italic;
  color: #D4B98F;
  font-weight: 300;
}

.standard-signature {
  display: flex; flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid rgba(241,238,230,0.14);
}
.standard-sig-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.005em;
  color: rgba(241,238,230,0.7);
  font-weight: 300;
}
.standard-sig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 36px;
  border: 1px solid rgba(241,238,230,0.22);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #F6F3EA;
  background: transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.standard-sig-link svg { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.standard-sig-link:hover { background: rgba(241,238,230,0.06); border-color: rgba(212,185,143,0.6); }
.standard-sig-link:hover svg { transform: translateX(3px); }

@media (max-width: 760px) {
  .standard { padding: 96px 0 88px; }
  .standard-kicker { margin-bottom: 36px; }
  .standard-quote { margin-bottom: 48px; }
  .standard-signature { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 28px; }
}

/* =============================================================
   FEATURED SERIES — text-led, quiet
   ============================================================= */
.featured { padding: 160px 0 120px; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 56px;
}
.feat-series {
  position: relative;
  background: var(--bg);
  padding: 44px 40px 40px;
  display: flex; flex-direction: column;
  color: inherit;
  transition: background .35s var(--ease);
}
.feat-series:hover { background: var(--bg-alt); }
.feat-series-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 56px;
}
.feat-series-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
  font-weight: 500;
}
.feat-series-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.05;
}
.feat-series-lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0 0 20px;
  font-weight: 300;
}
.feat-series-lede em { color: var(--accent); font-weight: 300; }
.feat-series-body-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  flex: 1;
}
.feat-series-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.feat-series-price {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
}
.feat-series-price small {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  margin-right: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feat-series-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
}
.feat-series-cta svg {
  width: 11px; height: 11px;
  transition: transform .25s var(--ease);
}
.feat-series:hover .feat-series-cta svg { transform: translateX(4px); }

@media (max-width: 920px) {
  .feat-grid { grid-template-columns: 1fr; gap: 1px; }
}
@media (max-width: 640px) {
  .featured { padding: 96px 0 40px; }
  .feat-series { padding: 32px 22px 32px; }
  .feat-series-num { margin-bottom: 28px; }
  .feat-series-name { font-size: 26px; }
  .feat-series-lede { font-size: 16px; }
}

/* =============================================================
   FIELD GUIDE — editorial chapter list
   ============================================================= */
.guide { padding: 88px 0 40px; }
.guide-list {
  margin-top: 40px;
  border-top: 1px solid var(--line-2);
}
.guide-row {
  display: grid;
  grid-template-columns: 56px 1fr auto 28px;
  gap: 32px;
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.guide-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, transparent, var(--bg-alt) 40%, transparent);
}
.guide-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.guide-main { min-width: 0; }
.guide-label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.guide-lede {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: -0.005em;
}
.guide-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.guide-arrow {
  width: 16px; height: 16px;
  color: var(--muted-2);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.guide-row:hover .guide-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
@media (max-width: 700px) {
  .guide-row {
    grid-template-columns: 40px 1fr auto;
    gap: 16px;
    padding: 22px 2px;
  }
  .guide-arrow { display: none; }
  .guide-label { font-size: 22px; }
  .guide-lede { font-size: 14px; }
  .guide-meta { font-size: 10.5px; }
}

/* =============================================================
   CLOSING CTA
   ============================================================= */
.closing {
  padding: 112px 0 96px;
  background: var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.closing-inner { max-width: 860px; margin: 0 auto; }
.closing-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--bronze);
  margin-bottom: 24px;
}
.closing-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.closing-title em { color: var(--accent); font-style: italic; font-weight: 300; }
.closing-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 auto 36px;
  max-width: 620px;
}
.closing-body em { color: var(--accent); font-style: italic; }
.closing-cta { margin: 0 auto; }
@media (max-width: 640px) {
  .closing { padding: 72px 0 64px; }
  .closing-body { font-size: 14.5px; }
}

/* =============================================================
   CATEGORY CARD — decorative layer + refinement
   ============================================================= */
.cat-card { color: inherit; }
.cat-card-deco {
  position: absolute;
  right: 20px; top: 20px;
  width: 120px; height: 120px;
  color: var(--accent);
  pointer-events: none;
  transition: transform .55s var(--ease), opacity .4s var(--ease);
  opacity: 1;
}
.cat-card-deco svg { width: 100%; height: 100%; }
.cat-card:hover .cat-card-deco { transform: translate(-8px, 8px) rotate(-4deg); }
.cat-card.feat-1 .cat-card-deco { color: #D4B98F; opacity: 0.9; }
@media (max-width: 760px) {
  .cat-card-deco { width: 86px; height: 86px; right: 14px; top: 14px; }
}

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   DETAIL PAGE UPGRADES
   ============================================================= */
.detail-img-wrap { position: relative; }
.detail-img-deco {
  position: absolute; inset: 0;
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.detail-img-deco svg { width: 100%; height: 100%; }
.detail-vial, .detail-vial-label, .detail-vial-mini { z-index: 2; }

.detail-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.detail-sub em { font-style: italic; font-weight: 400; color: var(--ink); }

/* MECHANISM block */
.detail-about {
  margin-top: 48px;
  padding: 40px 44px;
  background: rgba(255,255,255,0.42);
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}
.detail-about-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--bronze);
  padding-top: 6px;
}
.detail-about-body {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  font-weight: 300;
}
@media (max-width: 760px) {
  .detail-about {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 22px;
  }
  .detail-about-body { font-size: 16.5px; }
}

.detail-sku-title em { color: var(--accent); font-style: italic; font-weight: 300; }

/* SPEC grid */
.spec-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.spec-cell {
  padding: 20px 22px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-cell:nth-child(4n) { border-right: 0; }
.spec-cell:nth-last-child(-n+4) { border-bottom: 0; }
.spec-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.spec-v {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 860px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { border-right: 1px solid var(--line) !important; }
  .spec-cell:nth-child(2n) { border-right: 0 !important; }
  .spec-cell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 440px) {
  .spec-cell { padding: 16px 18px 18px; }
  .spec-v { font-size: 14.5px; }
}

/* RELATED */
.related { margin-top: 56px; }
.related-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.related-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--bronze);
}
.related-all {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.related-all svg {
  width: 11px; height: 11px;
  transition: transform .25s var(--ease);
}
.related-all:hover svg { transform: translateX(3px); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.related-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.related-media {
  position: relative;
  background: #F5F1E9;
  overflow: hidden;
}
.related-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}
.related-vial {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  height: 68%;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(230,237,231,0.94) 65%);
  border: 1px solid rgba(15,16,17,0.14);
  border-radius: 6px 6px 5px 5px;
  box-shadow: 0 4px 8px -4px rgba(15,16,17,0.2);
}
.related-vial::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14%;
  background: linear-gradient(180deg, #3A3A3D, #1e1e20);
  border-radius: 6px 6px 0 0;
}
.related-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 10px;
  padding: 1px 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}
.related-body {
  padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: center;
}
.related-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  line-height: 1.2;
}
.related-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* COMPLIANCE */
.compliance {
  margin-top: 40px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: center;
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.compliance-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 500;
}
.compliance-body {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.compliance-body strong { color: var(--ink-2); font-weight: 600; }

/* =============================================================
   CATEGORY PAGE
   ============================================================= */
.page-head {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.page-crumb {
  font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.page-crumb a { color: var(--ink); }
.page-crumb svg { width: 10px; height: 10px; color: var(--muted-2); }

.page-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 8vw, 72px);
  letter-spacing: -0.03em; line-height: 1.02;
  margin: 0 0 14px;
}
.page-sub {
  color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 560px;
  margin: 0;
}
.page-side {
  display: flex; flex-direction: column; gap: 14px;
}
.search-input-wrap {
  position: relative;
}
.search-input-wrap input {
  width: 100%; height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.search-input-wrap input:focus { outline: 0; border-color: var(--ink); }
.search-input-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted);
}
.page-side-meta {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted);
  padding: 0 4px;
}
.page-side-meta b { color: var(--ink); font-weight: 600; font-family: var(--mono); }

@media (max-width: 860px) {
  .page-head { grid-template-columns: 1fr; gap: 24px; }
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px 0 80px;
}
.series-card {
  background: rgba(255,255,255,0.64);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
  display: flex; flex-direction: column;
}
.series-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 14px 34px -24px rgba(15,16,17,0.24); }
.series-card-img {
  position: relative;
  aspect-ratio: 1/1;
  background: #F5F1E9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.series-card-img::before {
  display: none;
}
.series-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.08);
  transition: transform .32s var(--ease), filter .32s var(--ease);
}
.series-card:hover .series-card-photo {
  transform: scale(1.12);
  filter: saturate(1.02) contrast(1.01);
}
.series-card-vial {
  position: relative;
  width: 42%;
  height: 66%;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(234,240,235,0.9) 62%, rgba(255,255,255,0.72) 100%);
  border: 1px solid rgba(15,16,17,0.11);
  border-radius: 12px 12px 10px 10px;
  display: flex; flex-direction: column;
  box-shadow: inset 0 -12px 22px rgba(15,16,17,0.03), 0 7px 16px -12px rgba(15,16,17,0.2);
  overflow: hidden;
}
.series-card-vial::before {
  content:""; height: 14%;
  background: linear-gradient(180deg, #343437, #242426);
  border-bottom: 1px solid rgba(15,16,17,0.16);
}
.series-card-vial::after {
  content:""; flex: 1;
  background:
    linear-gradient(180deg, transparent 28%, rgba(255,255,255,0.55) 30%, transparent 34%),
    linear-gradient(180deg, transparent 50%, rgba(46,83,57,0.08) 80%);
}
.series-card-initial {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 5px 12px -10px rgba(15,16,17,0.28);
  z-index: 2;
  letter-spacing: 0.02em;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.series-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.series-card-name {
  font-family: var(--serif); font-weight: 400;
  font-size: 20px; letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.series-card-meta { font-size: 12.5px; color: var(--muted); margin-bottom: auto; }
.series-card-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.series-card-price {
  font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink);
}
.series-card-price small { color: var(--muted); font-family: var(--sans); font-weight: 400; font-size: 10.5px; margin-right: 3px; letter-spacing: 0.08em; text-transform: uppercase; }
.series-card-cta {
  font-size: 12.5px; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.series-card-cta svg { width: 12px; height: 12px; transition: transform .22s var(--ease); }
.series-card:hover .series-card-cta svg { transform: translateX(3px); }

.empty-note {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.research-section {
  margin-top: -28px;
  padding: 0 0 96px;
}
.research-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.research-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -24px rgba(15,16,17,0.36);
}
.research-mark svg { width: 20px; height: 20px; }
.research-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
}
.research-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.research-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}
.research-sub {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.research-card {
  min-height: 210px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.62)),
    radial-gradient(circle at 16% 0%, rgba(46,83,57,0.05), transparent 42%);
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.research-card-badge {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(46,83,57,0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.research-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 18px 38px -28px rgba(15,16,17,0.34);
}
.research-card-source {
  font-size: 11px;
  line-height: 1.35;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.research-card-title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 650;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.research-card-meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.research-card-authors {
  margin: 10px 0 16px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
  font-style: italic;
}
.research-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
}
.research-card-link svg {
  width: 12px;
  height: 12px;
  transition: transform .22s var(--ease);
}
.research-card:hover .research-card-link svg { transform: translate(2px, -2px); }

.detail .research-section {
  margin-top: 44px;
  padding-bottom: 12px;
}
.detail .research-head {
  padding-top: 36px;
}
.detail .research-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail .research-card {
  min-height: 196px;
}

@media (max-width: 1180px) {
  .research-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail .research-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .research-section {
    margin-top: -22px;
    padding-bottom: 72px;
  }
  .research-head {
    gap: 12px;
    margin-bottom: 18px;
    padding-top: 26px;
  }
  .research-mark {
    width: 36px;
    height: 36px;
  }
  .research-mark svg {
    width: 18px;
    height: 18px;
  }
  .research-kicker { font-size: 10px; }
  .research-title { font-size: 28px; }
  .research-sub { font-size: 12.5px; }
  .research-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .research-card {
    min-height: 176px;
    padding: 18px 18px 16px;
  }
  .detail .research-section {
    margin-top: 32px;
    padding-bottom: 6px;
  }
  .detail .research-head {
    padding-top: 28px;
  }
  .research-card-source { margin-bottom: 10px; }
  .research-card-title { font-size: 14px; margin-bottom: 12px; }
}

/* =============================================================
   SERIES DETAIL PAGE
   ============================================================= */
.detail {
  max-width: var(--detail-max);
  margin: 0 auto;
  padding: 48px 28px 96px;
}
.detail-back {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 28px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.detail-back:hover { color: var(--ink); background: rgba(15,16,17,0.04); }
.detail-back svg { width: 12px; height: 12px; }

.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 12px 0 40px;
  border-bottom: 1px solid var(--line);
}
.detail-img-wrap {
  aspect-ratio: 1/1;
  max-width: 420px;
  width: 100%;
  position: relative;
  background: #F5F1E9;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.detail-img-wrap::before {
  display: none;
}
.detail-product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.detail-vial {
  position: relative;
  width: 42%;
  height: 70%;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(234,240,235,0.9) 65%);
  border: 1px solid rgba(15,16,17,0.12);
  border-radius: 14px 14px 12px 12px;
  box-shadow: 0 16px 32px -22px rgba(15,16,17,0.26), inset 0 -16px 26px rgba(15,16,17,0.035);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.detail-vial::before {
  content:""; height: 14%;
  background: linear-gradient(180deg, #343437, #232325);
}
.detail-vial::after {
  content:""; flex: 1;
  background:
    linear-gradient(180deg, transparent 25%, rgba(255,255,255,0.5) 28%, transparent 32%),
    linear-gradient(180deg, transparent 45%, rgba(46,83,57,0.1) 85%);
}
.detail-vial-label {
  position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 10px 5px;
  border-radius: 4px;
  font-family: var(--serif); font-size: 13px;
  z-index: 2;
  max-width: 85%;
  text-align: center;
  box-shadow: 0 5px 12px -10px rgba(15,16,17,0.28);
  letter-spacing: 0.01em;
}
.detail-vial-mini {
  position: absolute; bottom: 48%; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono); font-size: 9px;
  color: var(--accent); letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-head { display: flex; flex-direction: column; justify-content: center; }
.detail-kicker {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 10px;
}
.detail-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em; line-height: 1.02;
  margin: 0 0 14px;
}
.detail-sub { color: var(--muted); font-size: 15px; margin: 0 0 24px; max-width: 420px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.detail-coa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(46,83,57,0.2);
  background: rgba(46,83,57,0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.detail-coa-btn:hover {
  transform: translateY(-1px);
  background: rgba(46,83,57,0.12);
  border-color: rgba(46,83,57,0.28);
}
.detail-coa-btn svg {
  width: 16px;
  height: 16px;
}
.badge {
  font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-2);
}
.badge.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.badge.bronze { background: var(--bronze-soft); border-color: transparent; color: var(--bronze); font-weight: 600; }

@media (max-width: 780px) {
  .detail-top { grid-template-columns: 1fr; gap: 32px; }
  .detail-img-wrap { max-width: 320px; margin: 0 auto; }
}

/* SKU table */
.detail-sku {
  margin-top: 44px;
}
.detail-sku-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.detail-sku-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; letter-spacing: -0.02em;
  margin: 0;
}
.detail-sku-meta { font-size: 12px; color: var(--muted); font-family: var(--mono); }

.sku-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sku-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.sku-row:first-child { border-top: 0; }
.sku-row:hover { background: var(--bg-alt); }
.sku-code {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.sku-spec {
  font-size: 15px; color: var(--ink); letter-spacing: -0.005em;
}
.sku-price {
  font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--ink);
  min-width: 72px; text-align: right;
}
.sku-price small {
  font-family: var(--sans); font-size: 10px; color: var(--muted); font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-bottom: -2px;
}
.sku-cart {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; min-width: 62px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 13px; font-weight: 600;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.sku-cart:hover {
  border-color: rgba(46,83,57,0.24);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.sku-cart.is-added {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.sku-order {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  background: var(--wa);
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.sku-order:hover { background: var(--wa-ink); transform: translateY(-1px); }
.sku-order svg { width: 13px; height: 13px; }

@media (max-width: 640px) {
  .sku-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
  }
  .sku-code { grid-column: 1 / 2; grid-row: 1; }
  .sku-price { grid-column: 2; grid-row: 1; text-align: right; font-size: 16px; min-width: 0; }
  .sku-spec { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .sku-cart,
  .sku-order { grid-row: 3; justify-content: center; width: 100%; }
  .sku-cart { grid-column: 1; }
  .sku-order { grid-column: 2; }
}

.detail-foot {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-foot-card {
  padding: 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.detail-foot-title { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.detail-foot-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 640px) { .detail-foot { grid-template-columns: 1fr; } }

/* =============================================================
   FOOTER
   ============================================================= */
.foot {
  margin-top: 80px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  position: relative; z-index: 1;
}
.foot-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
}
.foot-brand { max-width: 360px; }
.foot-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px; color: #fff;
  margin-bottom: 16px;
}
.foot-logo .brand-mark { color: #fff; }
.foot-line { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.55); }
.foot-kicker {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); font-weight: 600;
  margin-bottom: 16px;
}
.foot ul li { margin-bottom: 9px; font-size: 13.5px; }
.foot ul li a { color: rgba(255,255,255,0.75); transition: color .18s var(--ease); }
.foot ul li a:hover { color: #fff; }
.foot-base {
  max-width: var(--page-max);
  margin: 56px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
@media (max-width: 920px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-brand { grid-column: 1 / -1; max-width: none; }
  .foot-base { flex-direction: column; gap: 10px; }
}
@media (max-width: 560px) {
  .foot-inner { grid-template-columns: 1fr; }
}

/* =============================================================
   NAV — House button (desktop only)
   ============================================================= */
.nav-house-btn {
  height: 36px;
  padding: 0 14px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.nav-house-btn svg { display: none; }
.nav-house-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (max-width: 820px) {
  .nav-house-btn {
    background: rgba(255,255,255,0.5);
    font-family: var(--sans);
  }

  .nav-house-btn svg {
    display: block;
  }

  .nav-house-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--ink);
    border-color: var(--line-2);
  }
}

/* =============================================================
   THE HOUSE — full-screen editorial modal
   ============================================================= */
.house-overlay {
  position: fixed; inset: 0;
  background: rgba(15,16,17,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  opacity: 0; pointer-events: none;
  transition: opacity .36s var(--ease);
  overflow-y: auto;
  padding: 32px;
}
.house-overlay {
  scrollbar-width: none;
}
.house-overlay::-webkit-scrollbar {
  display: none;
}
body[data-house="open"] .house-overlay { opacity: 1; pointer-events: auto; }
body[data-house="open"] { overflow: hidden; }

.house-panel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.6);
  transform: translateY(24px) scale(0.98);
  transition: transform .5s var(--ease);
}
body[data-house="open"] .house-panel { transform: none; }

.house-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(15,16,17,0.04);
  color: var(--ink);
  z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .3s var(--ease);
  border: 1px solid transparent;
}
.house-close:hover {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(90deg);
}

.house-scroll {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.house-scroll::-webkit-scrollbar {
  display: none;
}

/* ---- COVER (photo hero) ---- */
.house-cover {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 100px 64px 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(46,83,57,0.08), transparent 60%),
    linear-gradient(180deg, #1c1e21 0%, #0F1011 100%);
  color: #F6F3EA;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.house-cover-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .6s var(--ease);
  z-index: 0;
}
.house-cover-img.is-loaded { opacity: 0.88; }
.house-cover-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,17,0.55) 0%, rgba(15,16,17,0.15) 40%, rgba(15,16,17,0.78) 100%),
    linear-gradient(90deg, rgba(15,16,17,0.3) 0%, rgba(15,16,17,0.0) 50%, rgba(15,16,17,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}
.house-cover-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.house-cover-inner .house-crest { color: #D4B98F; opacity: 1; }
.house-cover-inner .house-hero-kicker { color: rgba(212,185,143,0.9); }
.house-cover-inner .house-hero-title { color: #F6F3EA; }
.house-cover-inner .house-hero-mark {
  background: linear-gradient(180deg, #F6F3EA 0%, #D4B98F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.house-cover-inner .house-hero-zh { color: rgba(241,238,230,0.65); }
.house-cover-inner .house-hero-sub { color: rgba(241,238,230,0.8); }
.house-cover-addr {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(241,238,230,0.15);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241,238,230,0.55);
}

/* ---- fallback state (no image file found) ---- */
.house-img[data-fallback="true"] {
  background:
    radial-gradient(circle at 30% 40%, rgba(154,123,79,0.25), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(46,83,57,0.3), transparent 55%),
    linear-gradient(135deg, #2a2c30 0%, #1a1b1d 100%);
  opacity: 1;
}
.house-img[data-fallback="true"]::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.house-cover-img[data-fallback="true"] { opacity: 1; }

/* ---- HERO (unused now, kept for back-compat) ---- */
.house-hero {
  padding: 120px 64px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at center top, rgba(46,83,57,0.05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.house-crest {
  width: 78px; height: 78px;
  color: var(--accent);
  margin: 0 auto 28px;
  opacity: 0.85;
}
.house-crest svg { width: 100%; height: 100%; }
.house-hero-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.house-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 150px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0 0 12px;
  color: var(--ink);
}
.house-hero-mark {
  display: inline-block;
  background: linear-gradient(180deg, var(--ink) 0%, #3a3a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 6px;
}
.house-hero-zh {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin: 0 0 26px;
  font-weight: 300;
}
.house-hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

/* ---- LEDE ---- */
.house-lede-section {
  padding: 28px 64px 88px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.house-lede-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.house-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.house-lede em {
  font-style: italic;
  color: var(--accent);
}
.house-lede strong {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ---- SECTION SHARED ---- */
.house-section {
  padding: 96px 64px;
  max-width: 1120px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.house-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.house-section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.house-section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 16px;
}
.house-section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.house-section-lede {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* ---- DOCTRINE — 6 tenets ---- */
.tenet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tenet {
  padding: 32px 30px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background .3s var(--ease);
}
.tenet:hover { background: var(--bg-alt); }
.tenet-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bronze);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.tenet-label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.tenet-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
}

/* ---- CAMPUS aerial shot ---- */
.house-campus {
  margin: 0;
  padding: 0 64px 96px;
  max-width: 1120px;
  margin: 0 auto;
}
.house-campus-img {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1c1e21;
  box-shadow: 0 28px 60px -30px rgba(15,16,17,0.35);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.house-campus-img.is-loaded { opacity: 1; }
.house-campus-img[data-fallback="true"] { opacity: 1; }
.house-campus-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding: 0 4px;
  border-top: 0;
  gap: 20px;
  flex-wrap: wrap;
}
.cap-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}
.cap-v {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

/* ---- FACILITIES — 4 cells ---- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.facility {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.facility:hover { transform: translateY(-3px); border-color: var(--line-2); }
.facility-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1c1e21;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  transform: scale(1);
}
.facility-photo.is-loaded { opacity: 1; }
.facility-photo[data-fallback="true"] { opacity: 1; }
.facility:hover .facility-photo { transform: scale(1.035); }
.facility-body-wrap {
  padding: 28px 30px 32px;
}
.facility-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.facility-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.facility-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---- FACTSHEET ---- */
.factsheet {
  max-width: 760px;
  margin: 0 auto;
  display: block;
  border-top: 1px solid var(--line-2);
}
.factsheet-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.factsheet-row dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.factsheet-row dd {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.factsheet-zh {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---- CLOSING MOTTO ---- */
.house-motto-section {
  padding: 96px 64px 108px;
  text-align: center;
  background: var(--bg-dark);
  color: #F1EEE6;
  position: relative;
  overflow: hidden;
}
.house-motto-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(154,123,79,0.16), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(46,83,57,0.22), transparent 55%);
  pointer-events: none;
}
.house-motto-line {
  width: 56px; height: 1px;
  background: #D4B98F;
  margin: 0 auto 36px;
  opacity: 0.7;
}
.house-motto {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  color: #F6F3EA;
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.house-motto em {
  font-style: italic;
  color: #D4B98F;
  font-weight: 300;
}
.house-motto-zh {
  font-family: var(--serif);
  font-size: 17px;
  color: rgba(241,238,230,0.62);
  letter-spacing: 0.26em;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.house-motto-sign {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(241,238,230,0.45);
  text-transform: uppercase;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.house-ctas {
  display: inline-flex;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.house-close-cta {
  background: transparent;
  border-color: rgba(241,238,230,0.3);
  color: #F1EEE6;
}
.house-close-cta:hover {
  background: rgba(241,238,230,0.08);
  border-color: rgba(241,238,230,0.6);
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .house-overlay { padding: 0; }
  .house-panel { border-radius: 0; min-height: 100vh; }
  .house-scroll {
    max-height: 100vh;
    max-height: 100svh;
  }
  .house-close { top: 14px; right: 14px; width: 40px; height: 40px; }

  .house-hero { padding: 80px 22px 56px; }
  .house-crest { width: 62px; height: 62px; margin-bottom: 22px; }
  .house-hero-sub { font-size: 16px; }
  .house-hero-zh { font-size: 15px; }

  /* cover */
  .house-cover {
    min-height: 460px;
    padding: 72px 22px 48px;
  }
  .house-cover-addr { font-size: 10px; letter-spacing: 0.15em; margin-top: 22px; padding-top: 18px; }

  /* campus */
  .house-campus { padding: 0 22px 64px; }
  .house-campus-img { border-radius: 12px; aspect-ratio: 16 / 10; }
  .house-campus-cap { flex-direction: column; gap: 4px; }

  /* facility photos */
  .facility-photo { aspect-ratio: 5 / 3; }
  .facility-body-wrap { padding: 22px 22px 26px; }

  .house-lede-section { padding: 28px 22px 56px; }
  .house-lede { font-size: 19px; }

  .house-section { padding: 64px 22px; }
  .house-section-head { margin-bottom: 36px; }

  .tenet-grid { grid-template-columns: 1fr; border-left: 0; }
  .tenet { padding: 24px 20px 26px; }
  .tenet:first-child { border-top: 0; }

  .facility-grid { grid-template-columns: 1fr; gap: 14px; }
  .facility { padding: 24px 22px 26px; }
  .facility-title { font-size: 22px; }

  .factsheet-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .factsheet-row dd { font-size: 16px; }

  .house-motto-section { padding: 72px 22px 80px; }
  .house-motto-line { margin-bottom: 28px; }
  .house-motto-zh { font-size: 14px; letter-spacing: 0.18em; }
  .house-ctas { flex-direction: column; width: 100%; }
  .house-ctas .btn-wa, .house-ctas .btn-ghost { width: 100%; justify-content: center; }
}

/* =============================================================
   FLOATING CTA (mobile only)
   ============================================================= */
.fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 55;
  padding: 0 18px;
  height: 52px;
  background: var(--wa);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  gap: 9px;
  box-shadow: 0 14px 38px -10px rgba(37,211,102,0.55), 0 2px 6px rgba(15,16,17,0.14);
  transition: transform .24s var(--ease);
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 16px; height: 16px; }

/* =============================================================
   MOBILE REFINEMENT (≤ 760px)
   tightens type scale, padding, rhythm
   ============================================================= */
@media (max-width: 760px) {
  :root {
    --nav-h: 56px;
    --radius: 12px;
    --radius-lg: 18px;
  }

  /* FAB removed per request — was floating "Order on WhatsApp" bottom-right */
  .fab { display: none; }

  /* hide desktop WhatsApp in nav on mobile */
  .nav-wa { display: none; }
  .nav-house-btn { display: none; } /* collapsed into sidebar on mobile */
  .nav-inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 14px;
    gap: 10px;
  }
  .nav-menu { width: 36px; height: 36px; }
  .nav-menu span { width: 16px; }
  .nav-brand { font-size: 24px; gap: 0; letter-spacing: -0.015em; }
  .brand-mark { width: 20px; height: 20px; }
  .nav-search-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

  /* HERO — condense (2-col layout preserved from hero section rules) */
  .hero { padding: 36px 0 24px; }
  .hero-kicker { font-size: 10.5px; letter-spacing: 0.18em; margin-bottom: 18px; }
  .hero-kicker::before { width: 20px; }
  .hero-title { margin-bottom: 22px; letter-spacing: -0.03em; }
  .hero-ctas { gap: 10px; }

  /* hero stats — 2x2 premium grid */
  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .hero-stat {
    display: block;
    padding: 18px 18px 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-stat:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
  .hero-stat:nth-child(even) { padding-left: 18px; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .hero-stat-num {
    font-size: 34px;
    margin-bottom: 10px;
  }
  .hero-stat-body { font-size: 12.5px; line-height: 1.45; }
  .hero-stat-body strong { font-size: 13px; margin-bottom: 3px; }

  /* marquee */
  .hero-marquee { margin-top: 40px; padding: 16px 0; }
  .marquee-track { gap: 36px; }
  .marquee-track span { font-size: 16px; }

  /* sections */
  .section { padding: 56px 0 24px; }
  .section.wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-head { margin-bottom: 30px; gap: 14px; }
  .section-head-title { line-height: 1.08; }
  .section-kicker { font-size: 10.5px; letter-spacing: 0.18em; padding: 5px 9px; height: 26px; }
  .section-head-meta {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* category grid — tighter */
  .cat-grid { gap: 12px; }
  .cat-card,
  .cat-card.feat-1, .cat-card.feat-2, .cat-card.feat-3,
  .cat-card.feat-4, .cat-card.feat-5, .cat-card.feat-6, .cat-card.feat-7 {
    grid-column: span 12;
    padding: 22px 22px 20px;
    min-height: 0;
    border-radius: var(--radius-lg);
  }
  .cat-card.feat-1 { padding: 26px 22px 22px; }
  .cat-card-idx { font-size: 10.5px; }
  .cat-card-title { font-size: 24px; margin: 10px 0 6px; letter-spacing: -0.018em; }
  .cat-card-tag { font-size: 13px; line-height: 1.45; }
  .cat-card-foot { margin-top: 18px; padding-top: 12px; font-size: 12px; }

  /* hero deco shrink on mobile */
  .hero-deco { right: -180px; top: 160px; width: 420px; height: 420px; opacity: 0.5; }

  /* detail */
  .detail-about { padding: 22px 20px; gap: 12px; }

  /* closing */
  .closing { padding: 72px 0 56px; }

  /* featured */
  .featured { padding: 64px 0 16px; }

  /* field guide */
  .guide { padding: 60px 0 20px; }
  .guide-list { margin-top: 24px; }

  /* category page */
  .page-head { padding: 32px 0 24px; gap: 20px; grid-template-columns: 1fr; }
  .page-crumb { font-size: 11.5px; margin-bottom: 14px; }
  .page-sub { font-size: 14px; line-height: 1.5; }
  .page-side-meta {
    justify-content: flex-start;
    gap: 18px;
  }
  .search-input-wrap input { height: 44px; font-size: 14px; }

  /* series grid — single column but shorter cards with side-by-side layout */
  .series-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0 60px;
  }
  .series-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: stretch;
  }
  .series-card-img { aspect-ratio: 1/1; width: 104px; }
  .series-card-photo,
  .series-card:hover .series-card-photo { transform: none; }
  .series-card-img::before { background-size: 20px 20px; }
  .series-card-vial { width: 52%; height: 64%; border-radius: 7px 7px 6px 6px; }
  .series-card-initial { font-size: 11px; padding: 2px 5px; }
  .series-card-body { padding: 14px 16px 14px; }
  .series-card-name { font-size: 18px; margin-bottom: 3px; }
  .series-card-meta { font-size: 12px; }
  .series-card-foot { margin-top: 10px; padding-top: 10px; }
  .series-card-price { font-size: 13px; }
  .series-card-cta { font-size: 11.5px; }

  /* detail page */
  .detail { padding: 24px 16px 80px; }
  .detail-back { margin-bottom: 18px; }
  .detail-top { grid-template-columns: 1fr; gap: 24px; padding: 4px 0 26px; }
  .detail-img-wrap {
    max-width: 360px;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    margin: 0 auto;
  }
  .detail-img-wrap::before { background-size: 28px 28px; }
  .detail-vial { width: 28%; height: 72%; }
  .detail-vial-label { font-size: 12px; padding: 5px 8px 4px; }
  .detail-vial-mini { display: none; }
  .detail-kicker { font-size: 10.5px; letter-spacing: 0.16em; }
  .detail-title { font-size: clamp(30px, 8vw, 48px); line-height: 1.02; letter-spacing: -0.025em; }
  .detail-sub { font-size: 14px; margin-bottom: 18px; }
  .badge { font-size: 10.5px; padding: 4px 9px; }

  .detail-sku { margin-top: 28px; }
  .detail-sku-title { font-size: 22px; }
  .detail-sku-head { margin-bottom: 10px; }
  .detail-sku-meta { font-size: 11.5px; }

  .sku-list { border-radius: var(--radius); }
  .sku-row { padding: 14px 16px; gap: 10px; }
  .sku-code { font-size: 10.5px; }
  .sku-price { font-size: 16px; }
  .sku-order { height: 36px; padding: 0 14px; font-size: 12.5px; }

  .detail-foot { grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .detail-foot-card { padding: 18px; }
  .detail-foot-title { font-size: 11px; }
  .detail-foot-body { font-size: 13px; }

  /* footer */
  .foot { padding: 56px 0 24px; margin-top: 56px; }
  .foot-inner { padding: 0 16px; gap: 28px; }
  .foot-logo { font-size: 20px; }
  .foot-line { font-size: 13px; }
  .foot-kicker { margin-bottom: 12px; font-size: 10.5px; letter-spacing: 0.18em; }
  .foot ul li { margin-bottom: 7px; font-size: 13px; }
  .foot-base { padding: 16px 16px 0; margin-top: 36px; font-size: 11px; }

  /* sidebar — make it edge-to-edge */
  .sidebar { width: 85vw; max-width: 360px; padding-top: calc(var(--nav-h) + 6px); }
  .side-head { padding: 14px 22px 20px; }
  .side-title { font-size: 28px; }
  .side-item { padding: 13px 22px; }
  .side-foot { padding: 16px 22px 22px; }
}

/* very small phones (hero-title handled above in ≤420 / ≤360 blocks) */
@media (max-width: 380px) {
  .nav-inner { padding: 0 12px; }
  .detail { padding: 20px 14px 72px; }
  .series-card { grid-template-columns: 92px 1fr; }
  .series-card-img { width: 92px; }
  .series-card-photo,
  .series-card:hover .series-card-photo { transform: none; }
  .fab { right: 12px; bottom: 14px; padding: 0 16px; height: 48px; }
}

/* =============================================================
   MOBILE POLISH — touch, sheets, first-screen density
   ============================================================= */
@media (max-width: 760px) {
  .nav {
    background: rgba(250,248,244,0.9);
  }

  .nav-inner {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px;
  }

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

  .nav-menu {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
  }

  .nav-right {
    display: contents;
  }

  .nav-search-btn,
  .nav-cart-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .nav-search-btn { left: 64px; }
  .nav-cart-btn { right: 64px; }
  .nav-cart-btn b {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }

  .nav-search-btn span,
  .nav-search-btn kbd,
  .nav-cart-btn span {
    display: none;
  }

  .nav-house-btn,
  .nav-wa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-house-btn {
    display: none;
  }

  .nav-wa span {
    display: none;
  }

  .nav-wa {
    right: 16px;
    border: 1px solid rgba(37,211,102,0.24);
    background: rgba(255,255,255,0.72);
    color: var(--wa-ink);
    box-shadow: 0 10px 28px -18px rgba(18,140,126,0.55);
    transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  }

  .nav-wa:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(37,211,102,0.38);
    color: var(--wa);
  }

  .search-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: rgba(15,16,17,0.42);
  }

  .search-box {
    max-width: none;
    height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(10px);
  }

  .search-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 68px;
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  }

  .search-head input {
    min-width: 0;
    font-size: 16px;
  }

  .search-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
  }

  .search-close::before {
    content: "×";
    font-family: var(--sans);
    font-size: 24px;
    line-height: 1;
  }

  .search-results {
    flex: 1;
    max-height: none;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .cart-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: rgba(15,16,17,0.42);
  }

  .cart-box {
    max-width: none;
    height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(10px);
  }

  .cart-head {
    min-height: 68px;
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  }

  .cart-head h2 {
    font-size: 28px;
  }

  .cart-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .cart-close::before {
    content: "×";
    font-family: var(--sans);
    font-size: 24px;
    line-height: 1;
  }

  .cart-body {
    flex: 1;
    max-height: none;
  }

  .cart-foot {
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  }

  .cart-clear,
  .cart-send {
    flex: 1;
  }

  .coa-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #fffefb;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .coa-box {
    width: 100%;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    background: #fffefb;
    box-shadow: none;
  }

  .coa-head {
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
    background: #fffefb;
  }

  .coa-head h2 {
    font-size: 27px;
  }

  .coa-body {
    padding: 14px 12px max(18px, env(safe-area-inset-bottom));
    gap: 14px;
  }

  .coa-card {
    border-radius: 12px;
  }

  .coa-card figcaption {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    padding: 15px 14px;
  }

  .coa-toggle {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
  }

  .coa-toggle strong {
    font-size: 17px;
    line-height: 1.25;
    white-space: normal;
  }

  .coa-toggle-state {
    grid-column: 2;
    font-size: 12px;
  }

  .coa-actions {
    grid-column: 1;
    justify-self: start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    line-height: 1.2;
  }

  .coa-card figcaption a {
    font-size: 13px;
  }

  .coa-img {
    max-height: none;
    min-height: 320px;
  }

  .coa-zoom-overlay {
    padding: 10px;
  }

  .coa-zoom-img {
    border-radius: 12px;
    max-height: calc(92vh - 52px);
  }

  .search-empty-rich {
    padding: 22px 16px;
  }

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

  .search-result {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .search-result-price {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .sidebar {
    width: min(92vw, 390px);
    max-width: none;
  }

  .side-close {
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .side-nav {
    padding: 10px 0;
  }

  .side-item {
    min-height: 52px;
  }

  .hero {
    padding: 22px 0 36px;
  }

  .hero.wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(150px, 1.04fr);
    grid-template-areas:
      "title vial"
      "body  body";
    column-gap: 16px;
    row-gap: 18px;
    align-items: center;
  }

  .hero-title-block {
    align-self: center;
    max-width: none;
  }

  .hero-body-block {
    max-width: none;
    text-align: center;
  }

  .hero-portrait {
    width: min(100%, 248px);
    max-width: 248px;
    justify-self: center;
    align-self: center;
  }

  .hero-portrait-frame {
    aspect-ratio: 4 / 5;
  }

  .hero-portrait-cap {
    display: none;
  }

  .hero-kicker {
    max-width: 100%;
    line-height: 1.45;
    overflow-wrap: anywhere;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(36px, 7.2vw, 54px) !important;
    line-height: 0.98;
    margin-bottom: 0;
  }

  .hero-sub {
    max-width: 520px;
    font-size: 15px;
    margin: 0 auto 24px;
  }

  .hero-ctas {
    width: min(100%, 360px);
    margin: 0 auto;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-wa,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
    height: 48px;
  }

  .hero-facts {
    margin-top: 42px;
    gap: 0;
    padding-top: 24px;
  }

  .hero-fact {
    padding: 0 14px 18px;
  }

  .hero-fact-v {
    font-size: 32px;
  }

  .featured {
    padding-top: 72px;
  }

  .detail {
    padding-top: 20px;
  }

  .detail-top {
    gap: 18px;
  }

  .detail-head {
    order: -1;
  }

  .detail-img-wrap {
    max-height: none;
    max-width: 360px;
    aspect-ratio: 1 / 1;
  }

  .detail-vial {
    width: 24%;
    min-width: 76px;
  }

  .detail-sub {
    max-width: none;
  }

  .detail-sku-head {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .sku-order {
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(132px, 1.08fr);
  }

  .hero-title {
    font-size: clamp(28px, 8.4vw, 32px) !important;
  }

  .hero-kicker {
    font-size: 9.5px;
    letter-spacing: 0.11em;
  }
}

@media (max-width: 360px) {
  .nav-brand {
    font-size: 23px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(118px, 1.12fr);
  }

  .hero-title {
    font-size: 26px !important;
  }

  .search-result {
    padding: 14px 12px;
  }
}

/* mobile category cards: two-up product cards, not horizontal list rows */
@media (max-width: 760px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 0 60px;
  }

  .series-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 14px;
  }

  .series-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--line);
  }

  .series-card-photo,
  .series-card:hover .series-card-photo {
    transform: none;
    object-fit: cover;
    object-position: center center;
  }

  .series-card-body {
    padding: 12px 12px 13px;
    min-height: 140px;
  }

  .series-card-name {
    font-size: clamp(16px, 4.4vw, 19px);
    line-height: 1.08;
    margin-bottom: 5px;
  }

  .series-card-meta {
    font-size: 11.5px;
    line-height: 1.3;
  }

  .series-card-foot {
    margin-top: 13px;
    padding-top: 10px;
    gap: 8px;
    align-items: flex-end;
  }

  .series-card-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    line-height: 1;
  }

  .series-card-price small {
    margin: 0;
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }

  .series-card-cta {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .section.wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .series-grid {
    gap: 10px;
  }

  .series-card-body {
    padding: 11px 10px 12px;
    min-height: 134px;
  }

  .series-card-name {
    font-size: 15.5px;
  }

  .series-card-meta {
    font-size: 11px;
  }

  .series-card-cta {
    font-size: 10.5px;
  }
}

/* final mobile nav scale override */
@media (max-width: 760px) {
  .home-popular {
    margin-top: 14px;
    padding-bottom: 0;
  }
  .hero-facts {
    margin-top: 26px;
    padding-top: 22px;
  }
  .nav-menu,
  .nav-search-btn,
  .nav-cart-btn,
  .nav-wa {
    width: 34px;
    height: 34px;
  }
  .nav-menu {
    left: 14px;
    gap: 4px;
  }
  .nav-menu span {
    width: 15px;
    height: 1.4px;
  }
  .nav-search-btn {
    left: 54px;
  }
  .nav-cart-btn {
    right: 54px;
  }
  .nav-wa {
    right: 14px;
  }
  .nav-search-btn svg,
  .nav-cart-btn svg,
  .nav-wa svg {
    width: 15px;
    height: 15px;
  }
  .nav-cart-btn b {
    top: -2px;
    right: -2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 8px;
  }
}

/* =============================================================
   V27 VISUAL SYSTEM CONSOLIDATION
   Keeps the existing structure, but normalizes rhythm, type,
   card sizing, and mobile density across the main shopping paths.
   ============================================================= */
:root {
  --tap: 38px;
  --card-border: rgba(15,16,17,0.09);
  --surface: rgba(255,255,255,0.66);
  --surface-strong: rgba(255,255,255,0.86);
  --shadow-card: 0 18px 44px -34px rgba(15,16,17,0.34);
}

a,
button,
input {
  -webkit-tap-highlight-color: rgba(46,83,57,0.12);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(46,83,57,0.34);
  outline-offset: 3px;
}

.nav-brand,
.hero-title,
.section-head-title,
.page-title,
.detail-title,
.research-title,
.feat-series-name,
.standard-quote,
.cat-card-title,
.series-card-name,
.home-popular-body h3,
.detail-about-body,
.spec-v,
.related-name {
  letter-spacing: 0;
}

.nav {
  background: rgba(250,248,244,0.86);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.nav-inner {
  padding-left: 32px;
  padding-right: 32px;
}

.nav-brand {
  font-size: 29px;
}

.nav-search-btn,
.nav-cart-btn,
.nav-wa,
.nav-house-btn {
  min-height: 36px;
  border-color: var(--card-border);
  background: rgba(255,255,255,0.64);
}

.hero {
  padding: 92px 0 70px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) 440px;
  column-gap: 96px;
  row-gap: 30px;
}

.hero-title {
  font-size: 104px;
  line-height: 0.96;
  margin-bottom: 32px;
}

.hero-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 38px;
}

.hero-portrait {
  max-width: 420px;
}

.hero-facts {
  margin-top: 76px;
  padding-top: 32px;
}

.btn-wa,
.btn-ghost,
.cart-clear,
.cart-send,
.sku-cart,
.sku-order,
.detail-coa-btn {
  transition:
    transform .22s var(--ease),
    box-shadow .22s var(--ease),
    background .22s var(--ease),
    border-color .22s var(--ease),
    color .22s var(--ease);
}

.btn-wa:hover,
.sku-order:hover,
.cart-send:hover {
  transform: translateY(-1px);
}

.page-head {
  padding-top: 62px;
  padding-bottom: 38px;
}

.page-title {
  font-size: 62px;
  line-height: 1.02;
}

.page-sub {
  font-size: 15px;
  line-height: 1.58;
}

.series-grid {
  gap: 22px;
  padding-top: 40px;
}

.series-card {
  border-color: var(--card-border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.series-card-photo {
  transform: none;
}

.series-card:hover .series-card-photo {
  transform: scale(1.035);
}

.series-card-body {
  padding: 20px 21px 21px;
}

.series-card-name {
  font-size: 21px;
  line-height: 1.14;
}

.series-card-meta {
  line-height: 1.35;
}

.series-card-foot {
  min-height: 42px;
}

.detail {
  padding-top: 52px;
}

.detail-top {
  gap: 56px;
}

.detail-img-wrap {
  max-width: 404px;
  border-color: var(--card-border);
  background: #F5F1E9;
}

.detail-title {
  font-size: 54px;
  line-height: 1.04;
}

.detail-sub {
  font-size: 15px;
  line-height: 1.58;
}

.detail-about {
  margin-top: 46px;
  border-color: var(--card-border);
  background: var(--surface);
}

.detail-sku {
  margin-top: 42px;
}

.sku-list {
  border-color: var(--card-border);
  background: var(--surface-strong);
}

.sku-row {
  min-height: 74px;
}

.research-card,
.spec-grid,
.related-card,
.search-box,
.cart-box,
.coa-box {
  border-color: var(--card-border);
  box-shadow: var(--shadow-card);
}

.search-result:hover,
.sku-row:hover {
  background: rgba(243,239,232,0.74);
}

.standard,
.featured,
.section {
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 64px;
  }

  .hero-title {
    font-size: 84px;
  }

  .hero-portrait {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  :root {
    --tap: 36px;
  }

  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-menu,
  .nav-search-btn,
  .nav-cart-btn,
  .nav-wa {
    width: var(--tap);
    height: var(--tap);
  }

  .nav-menu {
    left: 16px;
  }

  .nav-search-btn {
    left: 58px;
  }

  .nav-cart-btn {
    right: 58px;
  }

  .nav-wa {
    right: 16px;
  }

  .nav-brand {
    font-size: 25px;
  }

  .hero {
    padding: 22px 0 30px;
  }

  .hero.wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 154px;
    column-gap: 16px;
    row-gap: 16px;
    align-items: center;
  }

  .hero-title {
    font-size: 34px !important;
    line-height: 1;
    margin: 0;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 9.5px;
    line-height: 1.42;
  }

  .hero-portrait {
    width: 100%;
    max-width: 154px;
  }

  .hero-sub {
    max-width: 340px;
    margin: 0 auto 24px;
    font-size: 14.5px;
    line-height: 1.58;
  }

  .hero-ctas {
    width: min(100%, 350px);
    gap: 10px;
  }

  .hero-ctas .btn-wa,
  .hero-ctas .btn-ghost {
    height: 46px;
  }

  .home-popular {
    margin-top: 8px;
    padding-bottom: 20px;
  }

  .home-popular-head {
    margin-bottom: 12px;
  }

  .home-popular-card {
    flex-basis: 136px;
    border-color: var(--card-border);
  }

  .home-popular-body {
    min-height: 72px;
    padding: 10px 10px 11px;
  }

  .home-popular-body h3 {
    font-size: 17px;
  }

  .hero-facts {
    margin-top: 24px;
    padding-top: 22px;
  }

  .hero-fact {
    padding: 0 14px 17px;
  }

  .hero-fact-v {
    font-size: 32px;
  }

  .section.wrap {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section {
    padding-top: 72px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head-title {
    font-size: 34px;
    line-height: 1.05;
  }

  .section-head-meta {
    font-size: 11px;
  }

  .page-head {
    padding-top: 34px;
    padding-bottom: 22px;
  }

  .page-title {
    font-size: 38px;
  }

  .page-sub {
    font-size: 14px;
  }

  .page-side-meta {
    gap: 20px;
  }

  .series-grid {
    gap: 12px;
    padding-top: 22px;
  }

  .series-card-body {
    min-height: 134px;
    padding: 12px 12px 13px;
  }

  .series-card-name {
    font-size: 18px;
    line-height: 1.1;
  }

  .series-card-foot {
    min-height: 40px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .series-card:hover,
  .series-card:hover .series-card-photo {
    transform: none;
  }

  .detail {
    padding: 22px 16px 82px;
  }

  .detail-back {
    margin-bottom: 18px;
  }

  .detail-top {
    gap: 18px;
    padding-bottom: 24px;
  }

  .detail-title {
    font-size: 38px;
  }

  .detail-img-wrap {
    max-width: 358px;
    border-radius: 18px;
  }

  .detail-about {
    margin-top: 34px;
    padding: 24px 22px;
  }

  .detail-about-body {
    font-size: 17px;
  }

  .sku-row {
    min-height: 0;
    padding: 15px 16px;
  }

  .search-head,
  .cart-head,
  .coa-head {
    min-height: 64px;
  }
}

@media (max-width: 380px) {
  .nav-brand {
    font-size: 23px;
  }

  .nav-menu {
    left: 12px;
  }

  .nav-search-btn {
    left: 50px;
  }

  .nav-cart-btn {
    right: 50px;
  }

  .nav-wa {
    right: 12px;
  }

  .hero.wrap,
  .section.wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 136px;
  }

  .hero-title {
    font-size: 30px !important;
  }

  .series-card-name {
    font-size: 16px;
  }
}

/* =============================================================
   V28 HERO FIRST-VIEW BALANCE
   The first screen is the highest-value sales surface. This layer
   normalizes text/image distribution across desktop, tablet, and phone
   without changing the product data or downstream sections.
   ============================================================= */
.hero {
  padding-top: clamp(64px, 7vh, 92px);
  padding-bottom: clamp(54px, 6.4vh, 76px);
}

.hero-grid {
  grid-template-columns: minmax(420px, 0.94fr) minmax(360px, 440px);
  column-gap: clamp(46px, 5.6vw, 82px);
  row-gap: 28px;
  align-items: center;
}

.hero-title-block {
  max-width: 680px;
}

.hero-title {
  font-size: clamp(70px, 7.4vw, 104px);
  line-height: 0.965;
  margin-bottom: 0;
}

.hero-body-block {
  max-width: 560px;
}

.hero-sub {
  margin-top: 0;
  margin-bottom: 36px;
}

.hero-portrait {
  width: min(100%, 430px);
  max-width: 430px;
}

.hero-portrait-frame {
  aspect-ratio: 4 / 5;
}

.hero-portrait-img {
  object-position: center center;
}

.hero-facts {
  margin-top: clamp(58px, 7vh, 76px);
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero {
    padding-top: clamp(52px, 6vh, 72px);
    padding-bottom: clamp(48px, 5.6vh, 66px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    column-gap: clamp(34px, 5vw, 56px);
  }

  .hero-title {
    font-size: clamp(58px, 7.6vw, 78px);
  }

  .hero-portrait {
    max-width: 340px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: clamp(22px, 4.8svh, 34px);
    padding-bottom: clamp(26px, 5svh, 38px);
  }

  .hero.wrap {
    padding-left: clamp(18px, 5vw, 24px);
    padding-right: clamp(18px, 5vw, 24px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(132px, 36vw, 174px);
    grid-template-areas:
      "title vial"
      "body  body";
    column-gap: clamp(14px, 4vw, 22px);
    row-gap: clamp(14px, 3.8vw, 22px);
    align-items: center;
  }

  .hero-title-block {
    align-self: center;
  }

  .hero-kicker {
    margin-bottom: clamp(10px, 2.8vw, 14px);
    font-size: clamp(9px, 2.4vw, 10px);
    line-height: 1.4;
  }

  .hero-title {
    font-size: clamp(31px, 8.7vw, 42px) !important;
    line-height: 0.98;
    margin: 0;
  }

  .hero-portrait {
    width: 100%;
    max-width: clamp(132px, 36vw, 174px);
    align-self: center;
  }

  .hero-portrait-frame {
    aspect-ratio: 1 / 1;
  }

  .hero-portrait-img {
    object-fit: cover;
    object-position: center 49%;
    transform: scale(1.1);
    transform-origin: center;
  }

  .hero-body-block {
    max-width: none;
    text-align: center;
  }

  .hero-sub {
    max-width: 344px;
    margin: 0 auto clamp(22px, 5.6vw, 28px);
    font-size: clamp(14px, 3.75vw, 15.2px);
    line-height: 1.55;
  }

  .hero-ctas {
    width: min(100%, 350px);
    margin: 0 auto;
    gap: 10px;
  }

  .hero-ctas .btn-wa,
  .hero-ctas .btn-ghost {
    height: 46px;
  }

  .home-popular {
    margin-top: clamp(8px, 2.4vw, 14px);
  }

  .hero-facts {
    margin-top: clamp(24px, 6vw, 34px);
  }
}

@media (max-width: 420px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(126px, 35vw, 148px);
  }

  .hero-title {
    font-size: clamp(30px, 8.4vw, 34px) !important;
  }

  .hero-portrait {
    max-width: clamp(126px, 35vw, 148px);
  }
}

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

  .home-popular-track {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 116px;
    column-gap: 12px;
  }

  .hero-title {
    font-size: 27px !important;
  }

  .hero-portrait {
    max-width: 116px;
  }
}

/* =============================================================
   V29 MOBILE SURFACE CLEANUP
   Mobile product images use a clean warm background. Disable the
   page grain there so cards and vial artwork share one quiet surface.
   ============================================================= */
@media (max-width: 760px) {
  body::before {
    display: none;
  }

  .nav {
    background: rgba(250,248,244,0.96);
  }

  .hero,
  .standard,
  .featured,
  .section,
  .page-head,
  .detail,
  .footer {
    background: var(--bg);
  }

  .hero-portrait-frame,
  .home-popular-img,
  .series-card-img,
  .detail-img-wrap {
    background: var(--bg);
  }

  .home-popular-card,
  .series-card,
  .cat-card,
  .detail-about,
  .sku-list,
  .research-card,
  .spec-grid,
  .related-card {
    background: rgba(255,255,255,0.78);
    border-color: rgba(15,16,17,0.075);
    box-shadow: 0 14px 34px -32px rgba(15,16,17,0.22);
  }

  .cat-grid {
    background: transparent;
    border-top: 0;
    border-bottom: 0;
  }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none !important; }
}

/* =============================================================
   V34 MAIN SITE RHYTHM
   Consolidates the main-site first screen and catalog cards without
   changing product data, pricing, WhatsApp routing, COA, or assets.
   ============================================================= */
body[data-page="home"]::before {
  display: none;
}

.wrap {
  width: min(var(--page-max), calc(100vw - 56px));
}

.nav {
  background: rgba(250,248,244,0.94);
  border-bottom-color: rgba(15,16,17,0.075);
}

.nav-inner {
  max-width: 1240px;
}

.nav-brand {
  font-size: 28px;
}

.nav-menu,
.nav-search-btn,
.nav-cart-btn,
.nav-wa,
.nav-house-btn {
  box-shadow: 0 12px 30px -26px rgba(15,16,17,0.34);
}

body[data-page="home"] .hero {
  padding-top: clamp(52px, 6.2svh, 76px);
  padding-bottom: clamp(36px, 5.2svh, 58px);
}

body[data-page="home"] .hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 410px);
  column-gap: clamp(44px, 6vw, 86px);
  row-gap: 28px;
  align-items: center;
}

body[data-page="home"] .hero-title-block {
  max-width: 650px;
}

body[data-page="home"] .hero-title {
  font-size: clamp(68px, 7vw, 96px);
  line-height: 0.98;
}

body[data-page="home"] .hero-kicker {
  margin-bottom: 20px;
}

body[data-page="home"] .hero-body-block {
  max-width: 540px;
}

body[data-page="home"] .hero-sub {
  max-width: 535px;
  margin-bottom: 32px;
  color: #333336;
  font-size: 16.5px;
  line-height: 1.58;
}

body[data-page="home"] .hero-ctas {
  gap: 12px;
}

body[data-page="home"] .hero-ctas .btn-wa,
body[data-page="home"] .hero-ctas .btn-ghost {
  height: 50px;
  min-width: 184px;
  justify-content: center;
}

body[data-page="home"] .hero-portrait {
  justify-self: center;
  width: min(100%, 400px);
  max-width: 400px;
}

body[data-page="home"] .hero-portrait-frame {
  aspect-ratio: 4 / 5;
  background: transparent;
}

body[data-page="home"] .hero-portrait-img {
  transform: none;
  object-fit: cover;
  object-position: center center;
}

body[data-page="home"] .hero-portrait-cap {
  margin-top: 18px;
}

body[data-page="home"] .home-popular {
  display: block;
  max-width: 1180px;
  margin: clamp(34px, 4.4vw, 52px) auto 0;
  padding: 0 0 clamp(12px, 1.4vw, 18px);
}

body[data-page="home"] .home-popular-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

body[data-page="home"] .home-popular-kicker {
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

body[data-page="home"] .home-popular-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.1vw, 31px);
  line-height: 1;
  font-weight: 420;
  letter-spacing: 0;
}

body[data-page="home"] .home-popular-head a {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

body[data-page="home"] .home-popular-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 2px 6px;
}

body[data-page="home"] .home-popular-track::-webkit-scrollbar {
  display: none;
}

body[data-page="home"] .home-popular-card {
  flex: 0 0 clamp(200px, 18vw, 220px);
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 16px 36px -32px rgba(15,16,17,0.3);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

body[data-page="home"] .home-popular-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,16,17,0.13);
  box-shadow: 0 18px 42px -30px rgba(15,16,17,0.34);
}

body[data-page="home"] .home-popular-img {
  aspect-ratio: 1 / 0.9;
  border-bottom: 1px solid var(--line);
  background: #F6F2EA;
}

body[data-page="home"] .home-popular-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-page="home"] .home-popular-body {
  min-height: 78px;
  padding: 12px 13px 13px;
}

body[data-page="home"] .home-popular-body h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.08;
  font-weight: 420;
  letter-spacing: 0;
}

body[data-page="home"] .home-popular-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

body[data-page="home"] .hero-facts {
  max-width: 1180px;
  margin: clamp(44px, 5.2vw, 64px) auto 0;
  padding-top: 28px;
  gap: 32px;
}

.standard {
  margin-top: 0;
  padding: clamp(86px, 8.5vw, 122px) 0;
  background: #F5F1E9;
  color: var(--ink);
}

.standard-inner {
  max-width: 980px;
}

.standard-kicker {
  margin-bottom: 26px;
  color: var(--muted);
}

.standard-quote {
  margin-bottom: 42px;
  color: var(--ink);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.18;
}

.standard-quote em {
  color: var(--accent);
}

.standard-signature {
  border-top-color: var(--line);
}

.standard-sig-name {
  color: var(--muted);
}

.standard-sig-link {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgba(255,255,255,0.5);
}

.standard-sig-link:hover {
  background: #fff;
  border-color: rgba(46,83,57,0.34);
}

.featured {
  padding: clamp(86px, 8vw, 120px) 0 clamp(70px, 7vw, 96px);
}

.section {
  padding: clamp(76px, 7vw, 108px) 0 clamp(76px, 7vw, 104px);
}

.series-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  padding-top: 32px;
}

@media (min-width: 1180px) {
  .series-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.series-card {
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
}

.series-card-img {
  aspect-ratio: 1 / 0.94;
  background: #F6F2EA;
}

.series-card-photo,
.series-card:hover .series-card-photo {
  transform: none;
}

.series-card:hover .series-card-photo {
  filter: saturate(1.02) contrast(1.01);
}

.series-card-body {
  padding: 18px 20px 20px;
}

.series-card-name {
  font-size: 20px;
}

.series-card-foot {
  min-height: 40px;
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 36px, var(--page-max));
  }

  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-menu,
  .nav-search-btn,
  .nav-cart-btn,
  .nav-wa {
    width: 40px;
    height: 40px;
  }

  .nav-search-btn {
    left: 60px;
  }

  .nav-cart-btn {
    right: 60px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, var(--page-max));
  }

  body[data-page="home"] .hero {
    padding-top: 26px;
    padding-bottom: 28px;
  }

  body[data-page="home"] .hero.wrap {
    width: 100%;
    padding-left: clamp(18px, 5vw, 24px);
    padding-right: clamp(18px, 5vw, 24px);
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(126px, 36vw, 156px);
    grid-template-areas:
      "title vial"
      "body body";
    column-gap: clamp(14px, 4vw, 20px);
    row-gap: clamp(18px, 5vw, 24px);
  }

  body[data-page="home"] .hero-title-block {
    grid-area: title;
  }

  body[data-page="home"] .hero-body-block {
    grid-area: body;
    text-align: center;
  }

  body[data-page="home"] .hero-portrait {
    grid-area: vial;
    width: 100%;
    max-width: clamp(126px, 36vw, 156px);
  }

  body[data-page="home"] .hero-portrait-frame {
    aspect-ratio: 1 / 1;
  }

  body[data-page="home"] .hero-title {
    font-size: clamp(31px, 8.6vw, 37px) !important;
    line-height: 0.99;
  }

  body[data-page="home"] .hero-kicker {
    margin-bottom: 12px;
  }

  body[data-page="home"] .hero-sub {
    max-width: 342px;
    margin: 0 auto 22px;
    font-size: 14.4px;
    line-height: 1.54;
  }

  body[data-page="home"] .hero-ctas {
    width: min(100%, 344px);
    margin: 0 auto;
  }

  body[data-page="home"] .hero-ctas .btn-wa,
  body[data-page="home"] .hero-ctas .btn-ghost {
    width: 100%;
    min-width: 0;
    height: 46px;
  }

  body[data-page="home"] .home-popular {
    margin-top: 10px;
    padding-bottom: 24px;
  }

  body[data-page="home"] .home-popular-head {
    margin-bottom: 12px;
  }

  body[data-page="home"] .home-popular-track {
    gap: 12px;
    margin-left: calc(clamp(18px, 5vw, 24px) * -1);
    margin-right: calc(clamp(18px, 5vw, 24px) * -1);
    padding-left: clamp(18px, 5vw, 24px);
    padding-right: clamp(18px, 5vw, 24px);
  }

  body[data-page="home"] .home-popular-card {
    flex-basis: 148px;
    border-radius: 14px;
    background: rgba(255,255,255,0.82);
  }

  body[data-page="home"] .home-popular-img {
    background: #F6F2EA;
  }

  body[data-page="home"] .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
    padding-top: 24px;
    gap: 22px 26px;
  }

  body[data-page="home"] .hero-fact {
    padding: 0;
  }

  .standard {
    padding: 66px 0 62px;
    background: #F5F1E9 !important;
    color: var(--ink);
  }

  .standard-kicker {
    margin-bottom: 20px;
    color: var(--muted);
  }

  .standard-quote {
    margin-bottom: 30px;
    color: var(--ink);
    font-size: 27px;
    line-height: 1.18;
  }

  .standard-signature {
    gap: 14px;
    padding-top: 22px;
  }

  .featured {
    padding: 70px 0 54px;
  }

  .section {
    padding: 64px 0 72px;
  }

  .section.wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 22px;
  }

  .series-card {
    border-radius: 13px;
    background: rgba(255,255,255,0.84);
  }

  .series-card-img {
    width: auto;
    aspect-ratio: 1 / 0.96;
  }

  .series-card-body {
    min-height: 122px;
    padding: 11px 12px 12px;
  }

  .series-card-name {
    font-size: clamp(16px, 4.5vw, 18px);
    line-height: 1.08;
  }

  .series-card-meta {
    font-size: 11.5px;
  }

  .series-card-foot {
    margin-top: 10px;
    padding-top: 10px;
    min-height: 34px;
  }

  .series-card-price {
    font-size: 12px;
  }

  .series-card-price small {
    display: block;
    margin: 0 0 1px;
    font-size: 9px;
  }

  .series-card-cta {
    font-size: 0;
    gap: 3px;
  }

  .series-card-cta::before {
    content: "View";
    font-size: 11.5px;
  }
}

@media (max-width: 420px) {
  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(122px, 35vw, 142px);
  }

  body[data-page="home"] .hero-portrait {
    max-width: clamp(122px, 35vw, 142px);
  }
}

@media (max-width: 360px) {
  .wrap {
    width: min(100% - 28px, var(--page-max));
  }

  body[data-page="home"] .hero.wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  body[data-page="home"] .hero-title {
    font-size: 28px !important;
  }

  body[data-page="home"] .hero-portrait {
    max-width: 116px;
  }

  .series-card-body {
    min-height: 118px;
    padding: 10px 10px 11px;
  }

  .series-card-name {
    font-size: 15.5px;
  }
}

/* =============================================================
   V37 MAIN UX POLISH
   First-screen clarity, mobile catalog rhythm, and order-flow affordances.
   ============================================================= */
body[data-page="home"] .hero-proof-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 24px;
}

body[data-page="home"] .hero-proof-rail span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(46,83,57,0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: #595b5c;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

body[data-page="home"] .hero-proof-rail b {
  color: var(--accent);
  font-weight: 650;
}

body[data-page="home"] .home-popular-shell {
  position: relative;
}

body[data-page="home"] .home-popular-edge {
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 44px;
  pointer-events: none;
  z-index: 2;
}

body[data-page="home"] .home-popular-edge-l {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(250,248,244,0) 100%);
}

body[data-page="home"] .home-popular-edge-r {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(250,248,244,0) 100%);
}

body[data-page="home"] .home-popular-hint {
  display: none;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.search-result-thumb {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #F6F2EA;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cart-empty-compact {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 220px;
}

.cart-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
}

.cart-item-meta span,
.cart-item-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}

.cart-item-meta strong {
  color: var(--ink);
  font-weight: 650;
}

.detail-mobile-actions {
  display: none;
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-grid {
    row-gap: 16px;
  }

  body[data-page="home"] .hero-sub {
    margin-bottom: 14px;
  }

  body[data-page="home"] .hero-proof-rail {
    justify-content: center;
    width: min(100%, 344px);
    margin: 0 auto 16px;
    gap: 6px;
  }

  body[data-page="home"] .hero-proof-rail span {
    min-height: 28px;
    padding: 6px 9px;
    font-size: 11px;
  }

  body[data-page="home"] .home-popular-edge {
    display: none;
  }

  body[data-page="home"] .home-popular-hint {
    display: block;
    padding-left: 2px;
  }

  body[data-page="home"] .hero-facts {
    margin-top: 22px;
  }

  .page-head {
    gap: 22px;
    padding: 38px 0 28px;
  }

  .page-title {
    font-size: clamp(41px, 11.4vw, 54px);
    line-height: 0.98;
    max-width: 11ch;
  }

  .page-sub {
    display: -webkit-box;
    max-width: 34em;
    margin-top: 16px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 14.5px;
    line-height: 1.48;
  }

  .page-side {
    gap: 12px;
  }

  .page-side-meta {
    padding: 0 2px;
  }

  .series-grid {
    padding-top: 22px;
    gap: 13px;
  }

  .detail {
    padding-bottom: 96px;
  }

  .detail-head {
    display: flex;
    flex-direction: column;
  }

  .detail-actions {
    margin-bottom: 10px;
  }

  .detail-mobile-actions {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: 0.75fr 1fr 1fr;
    gap: 8px;
    width: 100%;
    padding: 7px;
    border: 1px solid rgba(15,16,17,0.11);
    border-radius: 999px;
    background: rgba(250,248,244,0.93);
    box-shadow: 0 18px 45px -28px rgba(15,16,17,0.42);
    backdrop-filter: blur(16px);
  }

  .detail-mobile-actions a,
  .detail-mobile-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
  }

  .detail-mobile-actions .sku-cart {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto;
    min-width: 0;
    min-height: 39px;
    padding: 0 10px;
  }

  .detail-mobile-actions .detail-mobile-add,
  .detail-mobile-actions .detail-mobile-wa {
    border-color: transparent;
    background: var(--wa);
    color: #fff;
  }

  .detail-mobile-actions .detail-mobile-add.is-added {
    background: var(--accent);
  }

  .search-result {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px 14px;
  }

  .search-result-price {
    align-self: center;
  }

  .cart-body {
    min-height: 0;
  }

  .cart-empty-compact {
    min-height: 260px;
  }
}

/* =============================================================
   V38 GSAP MOTION + VISUAL SYSTEM
   Keeps the existing product data and routes, but makes the main site
   feel calmer, clearer, and more cohesive when GSAP is available.
   ============================================================= */
html.has-gsap-motion .fade-in {
  animation: none !important;
}

html.has-gsap-motion .reveal {
  transition: none;
}

html.has-gsap-motion .home-popular-card,
html.has-gsap-motion .series-card,
html.has-gsap-motion .cat-card,
html.has-gsap-motion .feat-series,
html.has-gsap-motion .research-card,
html.has-gsap-motion .related-card,
html.has-gsap-motion .hero-portrait,
html.has-gsap-motion .detail-img-wrap {
  will-change: transform, opacity;
}

html.has-gsap-motion .hero-portrait-frame,
html.has-gsap-motion .magic-card,
html.has-gsap-motion .detail-img-wrap,
html.has-gsap-motion .sku-list {
  position: relative;
  overflow: hidden;
}

html.has-gsap-motion .hero-portrait-frame::before,
html.has-gsap-motion .detail-img-wrap::before,
html.has-gsap-motion .sku-list::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background:
    conic-gradient(from 140deg,
      transparent 0deg,
      transparent 72deg,
      rgba(215,188,142,0.0) 112deg,
      rgba(215,188,142,0.74) 156deg,
      rgba(46,83,57,0.44) 186deg,
      rgba(215,188,142,0.0) 228deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.58;
  animation: pepti-border-beam 7.5s linear infinite;
  z-index: 3;
}

html.has-gsap-motion .hero-portrait-glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: translateX(-155%) skewX(-18deg);
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0) 37%,
    rgba(255,255,255,0.62) 49%,
    rgba(255,255,255,0.18) 58%,
    transparent 72%);
  mix-blend-mode: screen;
}

html.has-gsap-motion .magic-card {
  --mx: 50%;
  --my: 50%;
}

html.has-gsap-motion .magic-card-glow,
html.has-gsap-motion .magic-card-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .28s var(--ease);
  z-index: 2;
}

html.has-gsap-motion .magic-card-glow {
  background:
    radial-gradient(210px circle at var(--mx) var(--my),
      rgba(255,255,255,0.78),
      rgba(215,188,142,0.18) 34%,
      rgba(46,83,57,0.08) 56%,
      transparent 72%);
  mix-blend-mode: screen;
}

html.has-gsap-motion .magic-card-beam {
  inset: -1px;
  padding: 1px;
  background:
    conic-gradient(from 0deg at var(--mx) var(--my),
      rgba(215,188,142,0.0) 0deg,
      rgba(215,188,142,0.76) 68deg,
      rgba(46,83,57,0.42) 112deg,
      rgba(215,188,142,0.0) 172deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

html.has-gsap-motion .magic-card:hover .magic-card-glow,
html.has-gsap-motion .magic-card:hover .magic-card-beam {
  opacity: 1;
}

html.has-gsap-motion .magic-card > :not(.magic-card-glow):not(.magic-card-beam) {
  position: relative;
  z-index: 1;
}

@keyframes pepti-border-beam {
  to { transform: rotate(1turn); }
}

:focus-visible {
  outline: 2px solid rgba(46,83,57,0.42);
  outline-offset: 4px;
}

.view {
  isolation: isolate;
}

body[data-page="home"] .hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(920px, calc(100svh - var(--nav-h)));
  padding-top: clamp(44px, 6svh, 72px);
  padding-bottom: clamp(34px, 5svh, 58px);
}

body[data-page="home"] .hero-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 380px);
  column-gap: clamp(42px, 6.2vw, 92px);
}

body[data-page="home"] .hero-title {
  max-width: 8.8ch;
  font-size: clamp(72px, 7.5vw, 106px);
  line-height: 0.94;
  letter-spacing: -0.042em;
}

body[data-page="home"] .hero-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.62;
}

body[data-page="home"] .hero-proof-rail {
  margin-top: -10px;
}

body[data-page="home"] .hero-proof-rail span,
.badge,
.detail-coa-btn,
.cart-empty-action,
.search-quick-link {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.62);
}

body[data-page="home"] .hero-portrait {
  width: min(100%, 368px);
  max-width: 368px;
}

body[data-page="home"] .hero-portrait-frame {
  border-radius: 24px;
  box-shadow:
    0 28px 80px -52px rgba(15,16,17,0.42),
    0 0 0 1px rgba(255,255,255,0.58) inset;
}

body[data-page="home"] .hero-portrait-img {
  filter: saturate(0.98) contrast(1.01);
}

body[data-page="home"] .home-popular {
  margin-top: clamp(24px, 3.1vw, 40px);
  width: min(100%, 1180px);
}

body[data-page="home"] .home-popular-card,
.series-card,
.research-card,
.related-card,
.feat-series,
.cat-card {
  backface-visibility: hidden;
  transform-origin: center center;
}

body[data-page="home"] .home-popular-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  box-shadow:
    0 18px 44px -36px rgba(15,16,17,0.34),
    0 1px 0 rgba(255,255,255,0.72) inset;
}

body[data-page="home"] .home-popular-img,
.series-card-img,
.detail-img-wrap,
.related-media,
.search-result-thumb {
  background: #F7F3EC;
}

.standard {
  padding: clamp(68px, 7.2vw, 96px) 0;
  background: linear-gradient(180deg, #F7F3EC 0%, #F5F1E9 100%);
}

.standard-quote {
  max-width: 15.5ch;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.featured {
  padding-top: clamp(72px, 7.2vw, 106px);
}

.section {
  padding-top: clamp(70px, 7vw, 100px);
}

.section-head-title {
  letter-spacing: -0.032em;
}

.series-grid {
  gap: 20px;
}

.series-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  box-shadow:
    0 18px 46px -38px rgba(15,16,17,0.34),
    0 1px 0 rgba(255,255,255,0.72) inset;
}

.series-card-body {
  min-height: 156px;
}

.series-card-name {
  line-height: 1.08;
}

.series-card-cta,
.feat-series-cta,
.related-all,
.research-card-link {
  color: var(--accent);
}

.page-head,
.detail-top {
  border-bottom-color: rgba(15,16,17,0.095);
}

.detail-img-wrap {
  border-radius: 24px;
  background: #F7F3EC;
  box-shadow: 0 24px 60px -44px rgba(15,16,17,0.42);
}

.sku-list {
  box-shadow: 0 24px 64px -52px rgba(15,16,17,0.35);
}

.sku-row {
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.sku-row:hover {
  transform: translateX(2px);
}

.search-box,
.cart-box,
.coa-box,
.house-panel {
  transform-origin: center top;
}

@media (min-width: 1180px) {
  body[data-page="home"] .home-popular-card {
    flex-basis: 214px;
  }
}

@media (max-width: 860px) {
  body[data-page="home"] .hero {
    min-height: auto;
  }

  .standard-quote {
    max-width: none;
  }
}

@media (max-width: 760px) {
  html.has-gsap-motion .magic-card-glow,
  html.has-gsap-motion .magic-card-beam {
    display: none;
  }

  html.has-gsap-motion .hero-portrait-frame::before,
  html.has-gsap-motion .detail-img-wrap::before,
  html.has-gsap-motion .sku-list::before {
    opacity: 0.34;
    animation-duration: 10s;
  }

  body[data-page="home"] .hero {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(124px, 35vw, 150px);
    align-items: center;
    row-gap: 15px;
  }

  body[data-page="home"] .hero-title {
    max-width: 7.4ch;
    font-size: clamp(32px, 8.8vw, 38px) !important;
    line-height: 0.98;
    letter-spacing: -0.034em;
  }

  body[data-page="home"] .hero-kicker {
    max-width: 22ch;
    line-height: 1.35;
  }

  body[data-page="home"] .hero-portrait {
    max-width: clamp(124px, 35vw, 150px);
  }

  body[data-page="home"] .hero-portrait-frame {
    border-radius: 18px;
  }

  body[data-page="home"] .hero-sub {
    max-width: 350px;
    font-size: 14.6px;
    line-height: 1.55;
  }

  body[data-page="home"] .home-popular {
    margin-top: 12px;
    max-width: 100%;
    overflow: hidden;
  }

  body[data-page="home"] .home-popular-shell {
    width: calc(100% + (clamp(18px, 5vw, 24px) * 2));
    margin-left: calc(clamp(18px, 5vw, 24px) * -1);
    margin-right: calc(clamp(18px, 5vw, 24px) * -1);
    overflow: hidden;
  }

  body[data-page="home"] .home-popular-track {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(18px, 5vw, 24px);
    padding-right: clamp(18px, 5vw, 24px);
    scroll-snap-type: none;
  }

  body[data-page="home"] .home-popular-card {
    flex-basis: 146px;
  }

  .standard {
    padding: 58px 0 56px;
  }

  .standard-quote {
    font-size: 27px;
  }

  .featured,
  .section {
    padding-top: 58px;
  }

  .series-card {
    border-radius: 15px;
  }

  .series-card-body {
    min-height: 118px;
  }

  .sku-row:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  body[data-page="home"] .hero-title {
    font-size: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-gsap-motion .hero-portrait-frame::before,
  html.has-gsap-motion .detail-img-wrap::before,
  html.has-gsap-motion .sku-list::before {
    animation: none;
  }
}

/* =============================================================
   V40 EXECUTIVE CATALOG SYSTEM
   One design language for homepage, catalog, detail pages, search,
   cart, and GSAP motion. No data, price, WA, COA, or route changes.
   ============================================================= */
:root {
  --bg: #fbfaf6;
  --bg-alt: #f4efe6;
  --surface: rgba(255,255,255,0.84);
  --surface-strong: #fffefb;
  --card-border: rgba(17,17,19,0.095);
  --shadow-card: 0 20px 54px -44px rgba(15,16,17,0.32);
  --shadow-soft: 0 30px 90px -64px rgba(15,16,17,0.42);
  --radius: 10px;
  --radius-lg: 16px;
  --page-max: 1240px;
}

body {
  background: var(--bg);
}

body::before {
  opacity: 0.14;
  background-size: 6px 6px;
}

body[data-page="home"]::before {
  display: none;
}

.wrap {
  width: min(var(--page-max), calc(100vw - 52px));
}

.nav {
  height: 62px;
  background: rgba(251,250,246,0.92);
  border-bottom-color: rgba(17,17,19,0.075);
}

.nav-inner {
  max-width: var(--page-max);
  padding-left: 26px;
  padding-right: 26px;
}

.nav-brand {
  font-size: 27px;
}

.nav-menu,
.nav-search-btn,
.nav-cart-btn,
.nav-wa,
.nav-house-btn {
  border-color: rgba(17,17,19,0.09);
  background: rgba(255,255,255,0.68);
  box-shadow: 0 14px 36px -32px rgba(15,16,17,0.34);
}

/* home first view */
body[data-page="home"] .hero {
  min-height: auto;
  padding-top: clamp(58px, 6.4vh, 84px);
  padding-bottom: clamp(36px, 5.2vh, 58px);
}

body[data-page="home"] .hero-grid {
  max-width: 1160px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 382px);
  column-gap: clamp(44px, 6vw, 84px);
  row-gap: 24px;
  align-items: center;
}

body[data-page="home"] .hero-title-block {
  max-width: 720px;
}

body[data-page="home"] .hero-kicker {
  margin-bottom: 18px;
  color: #696b6d;
}

body[data-page="home"] .hero-title {
  max-width: 11.4ch;
  font-size: clamp(58px, 6.45vw, 88px);
  line-height: 0.985;
  letter-spacing: -0.035em;
}

body[data-page="home"] .hero-title em {
  color: var(--accent);
}

body[data-page="home"] .hero-body-block {
  max-width: 600px;
}

body[data-page="home"] .hero-sub {
  max-width: 590px;
  margin-bottom: 18px;
  color: #333437;
  font-size: 16.5px;
  line-height: 1.62;
}

body[data-page="home"] .hero-proof-rail {
  margin: 0 0 16px;
  gap: 7px;
}

body[data-page="home"] .hero-proof-rail span {
  min-height: 28px;
  padding: 6px 10px;
  border-color: rgba(46,83,57,0.13);
  background: rgba(255,255,255,0.72);
}

.hero-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  max-width: 590px;
}

.hero-command-card {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.76);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.hero-command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46,83,57,0.2);
  background: #fff;
}

.hero-command-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46,83,57,0.08);
  color: var(--accent);
}

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

.hero-command-card b {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.15;
}

.hero-command-card small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
}

body[data-page="home"] .hero-ctas {
  gap: 10px;
}

body[data-page="home"] .hero-ctas .btn-wa,
body[data-page="home"] .hero-ctas .btn-ghost {
  height: 48px;
  min-width: 174px;
}

body[data-page="home"] .hero-portrait {
  width: min(100%, 360px);
  max-width: 360px;
}

body[data-page="home"] .hero-portrait-frame {
  border-radius: 20px;
  box-shadow: none;
}

body[data-page="home"] .hero-portrait-img {
  filter: none;
}

body[data-page="home"] .home-popular {
  max-width: 1160px;
  margin-top: clamp(28px, 3.4vw, 42px);
  padding-bottom: 6px;
}

body[data-page="home"] .home-popular-head {
  margin-bottom: 13px;
}

body[data-page="home"] .home-popular-card {
  flex-basis: clamp(174px, 16vw, 206px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

body[data-page="home"] .home-popular-img,
.series-card-img,
.detail-img-wrap,
.related-media,
.search-result-thumb {
  background: #f7f2ea;
}

body[data-page="home"] .home-popular-img {
  aspect-ratio: 1 / 0.88;
}

body[data-page="home"] .home-popular-body {
  min-height: 74px;
}

body[data-page="home"] .hero-facts {
  max-width: 1160px;
  margin-top: clamp(34px, 4vw, 50px);
  padding-top: 24px;
}

/* business path */
.home-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 clamp(58px, 6vw, 84px);
}

.home-flow-card {
  min-height: 150px;
  padding: 24px 24px 22px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.home-flow-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--bronze);
  margin-bottom: 26px;
}

.home-flow-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
  font-weight: 420;
  letter-spacing: -0.01em;
}

.home-flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* calmer proof and category sections */
.standard {
  padding: clamp(72px, 7vw, 104px) 0;
  background: linear-gradient(180deg, #f7f2ea 0%, #f3eee5 100%);
}

.standard-quote {
  max-width: 18ch;
}

.featured {
  padding: clamp(72px, 7vw, 102px) 0 clamp(54px, 6vw, 82px);
}

.section {
  padding: clamp(68px, 6vw, 94px) 0 clamp(74px, 6vw, 104px);
}

.cat-grid {
  gap: 14px;
  background: transparent;
  border: 0;
}

.cat-card {
  min-height: 230px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.cat-card:hover {
  background: #fff;
}

/* category page */
.page-head {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  padding: 58px 0 34px;
  gap: 48px;
}

.page-title {
  max-width: 12ch;
}

.page-focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-focus-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(17,17,19,0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.62);
  font-size: 11.5px;
  line-height: 1;
}

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

.page-stat {
  min-height: 72px;
  padding: 14px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
}

.page-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  font-weight: 430;
  color: var(--ink);
}

.page-stat span {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.series-grid {
  gap: 18px;
}

.series-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border-color: var(--card-border);
  box-shadow: var(--shadow-card);
}

.series-card-img {
  aspect-ratio: 1 / 0.92;
}

.series-card-photo,
.series-card:hover .series-card-photo {
  transform: none;
}

.series-card:hover .series-card-photo {
  filter: saturate(1.02) contrast(1.01);
}

.series-card-body {
  min-height: 158px;
  padding: 17px 18px 18px;
}

.series-card-kicker {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.series-card-name {
  font-size: 20px;
  line-height: 1.08;
}

/* detail page */
.detail {
  max-width: 1040px;
}

.detail-top {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 70px);
}

.detail-img-wrap {
  border-radius: 20px;
  background: #f7f2ea;
  box-shadow: var(--shadow-soft);
}

.detail-title {
  max-width: 11ch;
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.detail-summary-grid div {
  padding: 12px 12px 11px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.68);
}

.detail-summary-grid b {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
}

.detail-summary-grid span {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-about,
.sku-list,
.spec-grid,
.research-card,
.related-card {
  background: var(--surface);
  border-color: var(--card-border);
  box-shadow: var(--shadow-card);
}

.sku-row:hover {
  transform: none;
  background: rgba(244,239,230,0.58);
}

/* search/cart drawers */
.search-overlay,
.cart-overlay,
.coa-overlay {
  background: rgba(15,16,17,0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-box,
.cart-box,
.coa-box {
  border: 1px solid rgba(255,255,255,0.62);
  background: rgba(255,254,251,0.96);
  box-shadow: 0 42px 100px -54px rgba(0,0,0,0.58);
}

@media (max-width: 640px) {
  .coa-overlay {
    background: #fffefb;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .coa-box {
    border: 0;
    background: #fffefb;
    box-shadow: none;
  }

  .coa-head {
    background: #fffefb;
  }
}

.search-result {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

/* restrained Magic UI-inspired effects */
html.has-gsap-motion .hero-portrait-frame::before,
html.has-gsap-motion .detail-img-wrap::before,
html.has-gsap-motion .sku-list::before {
  opacity: 0.18;
  animation-duration: 18s;
}

html.has-gsap-motion .magic-card-glow {
  background:
    radial-gradient(180px circle at var(--mx) var(--my),
      rgba(255,255,255,0.72),
      rgba(215,188,142,0.12) 36%,
      rgba(46,83,57,0.06) 58%,
      transparent 74%);
}

html.has-gsap-motion .magic-card-beam {
  opacity: 0;
}

html.has-gsap-motion .magic-card:hover .magic-card-beam {
  opacity: 0.34;
}

@media (min-width: 1180px) {
  .series-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-flow {
    grid-template-columns: 1fr;
  }

  .page-head {
    grid-template-columns: 1fr;
  }

  .detail-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 56px;
  }

  body::before {
    display: none;
  }

  .wrap {
    width: min(100% - 32px, var(--page-max));
  }

  .nav {
    height: var(--nav-h);
    background: rgba(251,250,246,0.96);
  }

  .nav-brand {
    font-size: 24px;
  }

  .nav-menu,
  .nav-search-btn,
  .nav-cart-btn,
  .nav-wa {
    width: 34px;
    height: 34px;
  }

  .nav-menu { left: 14px; }
  .nav-search-btn { left: 54px; }
  .nav-cart-btn { right: 54px; }
  .nav-wa { right: 14px; }

  body[data-page="home"] .hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  body[data-page="home"] .hero.wrap {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(118px, 34vw, 148px);
    grid-template-areas:
      "title vial"
      "body body";
    column-gap: 14px;
    row-gap: 16px;
  }

  body[data-page="home"] .hero-title {
    max-width: 8.5ch;
    font-size: clamp(28px, 8.1vw, 34px) !important;
    line-height: 1;
    letter-spacing: -0.025em;
  }

  body[data-page="home"] .hero-kicker {
    max-width: 22ch;
    margin-bottom: 11px;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }

  body[data-page="home"] .hero-portrait {
    max-width: clamp(118px, 34vw, 148px);
  }

  body[data-page="home"] .hero-portrait-frame {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  body[data-page="home"] .hero-portrait-img {
    object-position: center;
  }

  body[data-page="home"] .hero-sub {
    max-width: 350px;
    margin-bottom: 14px;
    font-size: 14.4px;
  }

  .hero-command-grid {
    grid-template-columns: 1fr;
    width: min(100%, 350px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-command-card {
    min-height: 58px;
    padding: 11px 12px;
  }

  .hero-command-card small {
    display: none;
  }

  body[data-page="home"] .hero-ctas {
    width: min(100%, 350px);
  }

  body[data-page="home"] .hero-ctas .btn-wa,
  body[data-page="home"] .hero-ctas .btn-ghost {
    width: 100%;
  }

  body[data-page="home"] .home-popular {
    margin-top: 14px;
    overflow: hidden;
  }

  body[data-page="home"] .home-popular-track {
    gap: 12px;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  body[data-page="home"] .home-popular-card {
    flex-basis: 142px;
  }

  body[data-page="home"] .hero-facts {
    margin-top: 24px;
    gap: 20px 24px;
  }

  .home-flow {
    padding-bottom: 54px;
    gap: 10px;
  }

  .home-flow-card {
    min-height: 0;
    padding: 19px 18px;
  }

  .home-flow-num {
    margin-bottom: 14px;
  }

  .home-flow-card h3 {
    font-size: 20px;
  }

  .standard {
    padding: 58px 0;
  }

  .standard-quote {
    max-width: none;
    font-size: 26px;
  }

  .cat-grid {
    gap: 12px;
  }

  .cat-card {
    border-radius: 14px;
  }

  .page-head {
    padding: 36px 0 24px;
    gap: 20px;
  }

  .page-title {
    font-size: clamp(36px, 10vw, 46px);
  }

  .page-focus-row {
    margin-top: 14px;
  }

  .page-stats-grid {
    display: none;
  }

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

  .series-card-img {
    aspect-ratio: 1 / 0.96;
  }

  .series-card-body {
    min-height: 132px;
    padding: 11px 11px 12px;
  }

  .series-card-kicker {
    display: none;
  }

  .series-card-name {
    font-size: clamp(15.5px, 4.3vw, 18px);
  }

  .series-card-cta::before {
    content: "View";
    font-size: 11.5px;
  }

  .detail {
    max-width: none;
    padding: 22px 16px 96px;
  }

  .detail-head {
    order: 0;
  }

  .detail-img-wrap {
    max-width: 360px;
  }

  .detail-title {
    max-width: none;
    font-size: clamp(34px, 9vw, 44px);
  }

  .detail-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-summary-grid div {
    padding: 10px 9px;
  }

  .detail-summary-grid b {
    font-size: 13px;
  }

  .detail-summary-grid span {
    font-size: 8.5px;
  }

  .search-result {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .search-result-price {
    grid-column: 2;
    justify-self: start;
  }

  html.has-gsap-motion .hero-portrait-frame::before,
  html.has-gsap-motion .detail-img-wrap::before,
  html.has-gsap-motion .sku-list::before,
  html.has-gsap-motion .magic-card-glow,
  html.has-gsap-motion .magic-card-beam {
    display: none;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(100% - 28px, var(--page-max));
  }

  body[data-page="home"] .hero.wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  body[data-page="home"] .hero-title {
    font-size: 26px !important;
  }

  body[data-page="home"] .hero-portrait {
    max-width: 112px;
  }

  body[data-page="home"] .home-popular-track {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* V41 mobile-first interaction pass
   Keep the desktop composition intact while making phone browsing easier. */
@media (max-width: 760px) {
  .wrap:not(.hero) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nav {
    height: 58px;
  }

  .nav-menu,
  .nav-search-btn,
  .nav-cart-btn,
  .nav-wa {
    width: 40px;
    height: 40px;
  }

  .nav-menu { left: 10px; }
  .nav-search-btn { left: 54px; }
  .nav-cart-btn { right: 54px; }
  .nav-wa { right: 10px; }

  body[data-page="home"] .hero {
    padding-top: 22px;
  }

  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(132px, 38vw, 160px);
    column-gap: 8px;
  }

  body[data-page="home"] .hero-title {
    max-width: 9.2ch;
  }

  body[data-page="home"] .hero-portrait {
    max-width: clamp(132px, 38vw, 160px);
    justify-self: end;
  }

  body[data-page="home"] .home-popular-card {
    flex-basis: clamp(142px, 42vw, 164px);
  }

  .page-head {
    padding-top: 34px;
  }

  .page-side-meta {
    padding: 0;
  }

  .series-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .series-card {
    min-width: 0;
  }

  .series-card-body {
    min-height: 124px;
  }

  .detail {
    padding-bottom: 118px;
  }

  .detail-actions {
    margin-bottom: 0;
  }

  .detail-mobile-actions {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 12px 0 14px;
    z-index: 1;
  }

  .detail-mobile-actions a,
  .detail-mobile-actions button {
    min-height: 42px;
  }

  .detail-img-wrap {
    max-width: min(318px, 100%);
  }
}

@media (max-width: 340px) {
  .nav-brand {
    font-size: 23px;
  }

  .nav-menu,
  .nav-search-btn,
  .nav-cart-btn,
  .nav-wa {
    width: 38px;
    height: 38px;
  }

  .nav-menu { left: 8px; }
  .nav-search-btn { left: 48px; }
  .nav-cart-btn { right: 48px; }
  .nav-wa { right: 8px; }

  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) 126px;
    column-gap: 6px;
  }

  body[data-page="home"] .hero-title {
    max-width: 8.6ch;
  }

  body[data-page="home"] .hero-portrait {
    max-width: 126px;
  }

  .series-grid {
    gap: 9px;
  }

  .series-card-body {
    padding: 10px 9px 11px;
  }
}

/* V43 iOS Safari status/hero balance */
html,
body {
  background: #fbfaf6;
  color-scheme: light;
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(136px, 39vw, 160px);
    column-gap: 6px;
    align-items: center;
  }

  body[data-page="home"] .hero-title {
    max-width: 9.4ch;
  }

  body[data-page="home"] .hero-portrait {
    max-width: clamp(136px, 39vw, 160px);
    justify-self: end;
  }

  body[data-page="home"] .hero-sub {
    margin-top: 2px;
  }
}

@media (max-width: 340px) {
  body[data-page="home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) 126px;
    column-gap: 4px;
  }
}

/* Membership final nav overrides */
@media (min-width: 761px) {
  .nav-account-btn {
    height: 36px;
  }
}

@media (max-width: 760px) {
  .nav-account-btn {
    position: absolute;
    top: 50%;
    right: 98px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: rgba(255,255,255,0.72);
  }

  .nav-account-btn span {
    font-size: 0;
  }

  .nav-account-btn span::before {
    content: "Me";
    font: 700 11px/1 Inter, sans-serif;
  }

  .nav-account-btn b {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 8px;
  }
}

@media (max-width: 340px) {
  .nav-account-btn {
    right: 88px;
    width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* ===== Membership and admin v2 ===== */
.member-overlay {
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 42px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(13, 16, 14, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.member-box {
  width: min(1040px, 100%);
  max-height: min(86vh, 920px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(26, 29, 27, 0.14);
  border-radius: 28px;
  background: rgba(252, 250, 245, 0.98);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.26);
}

.member-head {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(26, 29, 27, 0.1);
  background: rgba(255, 255, 255, 0.54);
}

.member-kicker,
.member-section-k,
.member-card-k,
.member-balance-k,
.admin-kicker,
.admin-card-head span,
.admin-drawer-k {
  color: rgba(41, 89, 58, 0.82);
  font: 700 11px/1.3 Inter, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.member-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
}

.member-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(23, 25, 24, 0.56);
  background: rgba(255, 255, 255, 0.72);
}

.member-body {
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
}

.member-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: 18px;
}

.member-auth-copy,
.member-auth-card,
.member-balance-card,
.member-profile-card,
.member-invite-card,
.member-list-card,
.member-service-note,
.admin-card,
.admin-stat {
  border: 1px solid rgba(30, 35, 31, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 248, 243, 0.76));
  box-shadow: 0 12px 42px rgba(24, 28, 25, 0.055);
}

.member-auth-copy,
.member-auth-card {
  padding: clamp(22px, 3vw, 34px);
}

.member-auth-copy h3 {
  margin: 14px 0 16px;
  max-width: 10ch;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.member-auth-copy p,
.member-service-note p,
.member-balance-card p {
  color: rgba(31, 33, 32, 0.66);
  font-size: 15px;
  line-height: 1.8;
}

.member-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.member-rule-grid span {
  min-height: 72px;
  padding: 16px;
  border: 1px solid rgba(47, 104, 69, 0.12);
  border-radius: 18px;
  background: rgba(47, 104, 69, 0.055);
  color: rgba(31, 33, 32, 0.62);
}

.member-rule-grid b {
  display: block;
  margin-bottom: 4px;
  color: #245b3a;
  font-size: 24px;
}

.member-tabs {
  padding: 4px;
  border-radius: 999px;
  background: rgba(31, 33, 32, 0.055);
}

.member-tabs button {
  min-height: 42px;
  border-radius: 999px;
}

.member-tabs button.is-active {
  color: #111412;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 28, 25, 0.08);
}

.member-form {
  gap: 13px;
  margin-top: 18px;
}

.member-form label,
.admin-form-grid label,
.admin-settings label,
.admin-note-form label {
  color: rgba(29, 32, 30, 0.64);
  font: 700 12px/1.35 Inter, sans-serif;
  letter-spacing: 0.04em;
}

.member-form input,
.member-copy-input,
.admin-form-grid input,
.admin-form-grid select,
.admin-settings input,
.adminUserSearch input,
.admin-card-head input,
.admin-note-form textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  border: 1px solid rgba(30, 35, 31, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #151817;
  font: 500 14px/1.35 Inter, sans-serif;
  outline: none;
}

.member-form input,
.member-copy-input,
.admin-form-grid input,
.admin-form-grid select,
.admin-settings input {
  padding: 0 14px;
}

.admin-note-form textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.member-form input:focus,
.member-copy-input:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-settings input:focus,
.admin-card-head input:focus,
.admin-note-form textarea:focus {
  border-color: rgba(47, 104, 69, 0.44);
  box-shadow: 0 0 0 4px rgba(47, 104, 69, 0.08);
}

.member-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(47, 104, 69, 0.055);
}

.member-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 0;
  flex: 0 0 18px;
}

.member-primary,
.member-secondary,
.member-cart-title button,
.admin-mini {
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.member-primary:hover,
.member-secondary:hover,
.member-cart-title button:hover,
.admin-mini:hover {
  transform: translateY(-1px);
}

.member-primary {
  min-height: 48px;
  border-radius: 999px;
  background: #255f3c;
  box-shadow: 0 15px 30px rgba(37, 95, 60, 0.2);
}

.member-secondary,
.member-cart-title button,
.admin-mini {
  border: 1px solid rgba(30, 35, 31, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #1e2b23;
}

.member-form-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
}

.member-form-note-error {
  border: 1px solid rgba(170, 66, 47, 0.2);
  background: rgba(170, 66, 47, 0.07);
  color: #8d2f20;
}

.member-form-note-ok {
  border: 1px solid rgba(47, 104, 69, 0.18);
  background: rgba(47, 104, 69, 0.08);
  color: #255f3c;
}

.member-verify-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(177, 127, 56, 0.18);
  border-radius: 16px;
  background: rgba(177, 127, 56, 0.07);
  color: rgba(96, 67, 27, 0.9);
  font: 600 13px/1.6 Inter, sans-serif;
}

.member-service-note {
  margin-bottom: 18px;
  padding: 20px;
}

.member-service-note h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.member-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.member-balance-card,
.member-profile-card,
.member-invite-card,
.member-list-card {
  padding: 22px;
}

.member-balance-card {
  background:
    radial-gradient(circle at 76% 16%, rgba(47, 104, 69, 0.13), transparent 34%),
    linear-gradient(145deg, #fdfbf5, #f4f1ea);
}

.member-balance-v {
  margin: 10px 0 8px;
  color: #225a38;
  font: 500 clamp(56px, 8vw, 92px)/0.9 "Cormorant Garamond", serif;
}

.member-profile-card dl,
.admin-detail-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
}

.member-profile-card dl div,
.admin-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 35, 31, 0.08);
}

.member-profile-card dt,
.admin-detail-list dt {
  color: rgba(31, 33, 32, 0.48);
}

.member-profile-card dd,
.admin-detail-list dd {
  margin: 0;
  text-align: right;
}

.member-profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 35, 31, 0.08);
}

.member-profile-form label {
  color: rgba(29, 32, 30, 0.58);
  font: 700 11px/1.35 Inter, sans-serif;
  letter-spacing: 0.04em;
}

.member-profile-form input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid rgba(30, 35, 31, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  color: #151817;
  font: 500 13px/1.35 Inter, sans-serif;
  outline: none;
}

.member-profile-form input:focus {
  border-color: rgba(47, 104, 69, 0.44);
  box-shadow: 0 0 0 4px rgba(47, 104, 69, 0.08);
}

.member-profile-form .member-secondary {
  grid-column: 1 / -1;
  min-height: 42px;
}

.member-verify-ok {
  border-color: rgba(47, 104, 69, 0.18);
  background: rgba(47, 104, 69, 0.07);
  color: #255f3c;
}

.member-list-card ul,
.admin-mini-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.member-list-card li,
.admin-mini-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 35, 31, 0.08);
}

.member-list-card li small,
.admin-mini-list li small {
  grid-column: 1 / -1;
  color: rgba(31, 33, 32, 0.46);
}

.admin-card-note {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(31, 33, 32, 0.62);
  font: 500 13px/1.7 Inter, sans-serif;
}

.member-actions-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-cart-panel {
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid rgba(30, 35, 31, 0.1);
  border-radius: 18px;
  background: rgba(250, 248, 243, 0.86);
}

.member-cart-rows {
  margin-top: 12px;
}

.member-cart-rows > div {
  padding: 10px 0;
}

.member-cart-total {
  border-top: 1px solid rgba(30, 35, 31, 0.1);
}

.member-cart-note {
  margin: 8px 0 0;
  color: rgba(31, 33, 32, 0.5);
  font-size: 12px;
}

body[data-page="admin"] {
  background: #f6f4ef;
}

.admin-shell {
  padding-top: clamp(28px, 5vw, 58px);
  padding-bottom: 80px;
}

.admin-login-shell {
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
}

.admin-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 4vw, 52px);
  align-items: stretch;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(30, 35, 31, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(250, 248, 242, 0.74)),
    #fbfaf6;
  box-shadow: 0 28px 90px rgba(23, 28, 24, 0.08);
}

.admin-login-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.admin-login-copy h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.9;
}

.admin-login-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(31, 33, 32, 0.62);
  font-size: 16px;
  line-height: 1.85;
}

.admin-login-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-login-rules span {
  padding: 8px 12px;
  border: 1px solid rgba(47, 104, 69, 0.13);
  border-radius: 999px;
  color: #2f6845;
  background: rgba(47, 104, 69, 0.055);
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 0.08em;
}

.admin-login-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(30, 35, 31, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: rgba(31, 33, 32, 0.7);
  font: 700 12px/1.2 Inter, sans-serif;
}

.admin-login-card input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(30, 35, 31, 0.13);
  border-radius: 14px;
  padding: 0 14px;
  color: #141414;
  background: #fff;
  font: 500 14px/1 Inter, sans-serif;
  outline: none;
}

.admin-login-card input:focus {
  border-color: rgba(47, 104, 69, 0.42);
  box-shadow: 0 0 0 4px rgba(47, 104, 69, 0.09);
}

.admin-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(30, 35, 31, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 46px rgba(24, 28, 25, 0.055);
}

.admin-brand {
  font: 500 30px/0.95 "Cormorant Garamond", serif;
}

.admin-brand span {
  color: rgba(31, 33, 32, 0.46);
  font: 700 10px/1 Inter, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-side nav {
  display: grid;
  gap: 8px;
}

.admin-side nav a,
.admin-side nav button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  color: rgba(31, 33, 32, 0.68);
  background: transparent;
  text-decoration: none;
  text-align: left;
  font: 700 13px/1.2 Inter, sans-serif;
  cursor: pointer;
}

.admin-side nav a:hover,
.admin-side nav button:hover,
.admin-side nav button.is-active {
  background: rgba(47, 104, 69, 0.07);
  color: #225a38;
}

.admin-mobile-topbar,
.admin-mobile-backdrop,
.admin-mobile-drawer {
  display: none;
}

.admin-mobile-hidden {
  display: none !important;
}

.admin-main {
  min-width: 0;
}

.admin-head {
  max-width: 860px;
  margin: 0 0 22px;
}

.admin-head h1 {
  margin: 10px 0 12px;
  max-width: 11ch;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

.admin-head p {
  max-width: 720px;
  color: rgba(31, 33, 32, 0.62);
  font-size: 16px;
  line-height: 1.8;
}

.admin-feedback {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(47, 104, 69, 0.16);
  border-radius: 999px;
  color: #245b3a;
  background: rgba(47, 104, 69, 0.06);
  font: 700 12px/1 Inter, sans-serif;
}

.admin-feedback.is-error {
  border-color: rgba(170, 66, 47, 0.2);
  color: #8d2f20;
  background: rgba(170, 66, 47, 0.07);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.admin-stat {
  padding: 18px;
}

.admin-stat span,
.admin-stat small {
  display: block;
  color: rgba(31, 33, 32, 0.5);
  font: 700 11px/1.35 Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stat b {
  display: block;
  margin: 10px 0 4px;
  font: 500 42px/0.95 "Cormorant Garamond", serif;
}

.admin-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-card {
  min-width: 0;
  padding: 22px;
}

.admin-card-head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.admin-card h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.admin-card-head form {
  display: flex;
  gap: 8px;
  align-items: center;
  width: min(420px, 100%);
}

.admin-card-head input {
  margin: 0;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(30, 35, 31, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-card table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-card th,
.admin-card td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(30, 35, 31, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-card th {
  color: rgba(31, 33, 32, 0.5);
  font: 700 11px/1.35 Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-card td {
  color: rgba(21, 24, 22, 0.86);
  font: 500 13px/1.45 Inter, sans-serif;
}

.admin-card td small {
  display: block;
  margin-top: 4px;
  color: rgba(31, 33, 32, 0.44);
}

.admin-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #225a38;
  font: inherit;
  cursor: pointer;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 33, 32, 0.06);
  color: rgba(31, 33, 32, 0.62);
  font: 700 11px/1 Inter, sans-serif;
}

.admin-pill-active {
  background: rgba(47, 104, 69, 0.08);
  color: #245b3a;
}

.admin-pill-disabled {
  background: rgba(170, 66, 47, 0.08);
  color: #8d2f20;
}

.admin-pill-pending {
  background: rgba(177, 127, 56, 0.09);
  color: #7c5520;
}

.admin-mini {
  min-height: 32px;
  margin: 0 6px 6px 0;
  padding: 0 12px;
  font-size: 12px;
}

.admin-form-grid,
.admin-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-settings-intro,
.admin-rule-locks,
.admin-rule-future,
.admin-rule-legacy {
  grid-column: 1 / -1;
}

.admin-settings-intro {
  padding: 12px 14px;
  border: 1px solid rgba(32, 74, 47, 0.12);
  border-radius: 12px;
  background: rgba(246, 248, 243, 0.72);
}

.admin-settings-intro b,
.admin-rule-future b,
.admin-rule-legacy h3 {
  display: block;
  margin: 0 0 6px;
  color: #17211b;
  font-size: 14px;
}

.admin-settings-intro p {
  margin: 0;
  color: rgba(20, 24, 22, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.admin-rule-locks,
.admin-rule-future {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-rule-locks span,
.admin-rule-future span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(32, 74, 47, 0.12);
  border-radius: 999px;
  background: #fff;
  color: rgba(20, 24, 22, 0.68);
  font-size: 12px;
}

.admin-rule-future {
  padding: 12px 14px;
  border: 1px dashed rgba(151, 105, 42, 0.28);
  border-radius: 12px;
  background: rgba(254, 249, 239, 0.7);
}

.admin-rule-legacy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-rule-deprecated input {
  color: rgba(20, 24, 22, 0.45);
  background: rgba(246, 248, 243, 0.6);
}

.admin-span {
  grid-column: 1 / -1;
}

.admin-form-grid .member-primary,
.admin-settings-card .member-primary {
  grid-column: 1 / -1;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(12, 15, 13, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-drawer.is-open {
  display: flex;
}

.admin-drawer-card {
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(30, 35, 31, 0.12);
  border-radius: 24px;
  background: #fbfaf5;
  box-shadow: 0 24px 86px rgba(0, 0, 0, 0.2);
}

.admin-drawer-close {
  float: right;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(30, 35, 31, 0.12);
  border-radius: 999px;
  background: #fff;
}

.admin-drawer-card h2 {
  clear: both;
  margin: 14px 0 18px;
  font-size: 42px;
  line-height: 1;
}

.admin-drawer-actions {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.admin-note-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

@media (max-width: 980px) {
  .member-auth-shell,
  .member-dashboard,
  .admin-layout,
  .admin-grid-two,
  .admin-summary,
  .admin-login-panel {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .member-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .member-box {
    max-height: 92vh;
    border-radius: 24px;
  }

  .member-head {
    padding: 18px;
  }

  .member-body {
    padding: 16px;
  }

  .member-auth-copy,
  .member-auth-card,
  .admin-login-panel,
  .admin-login-card,
  .member-balance-card,
  .member-profile-card,
  .member-invite-card,
  .member-list-card,
  .member-service-note,
  .admin-card {
    border-radius: 20px;
    padding: 18px;
  }

  .member-auth-copy h3 {
    max-width: 100%;
    font-size: 40px;
  }

  .admin-login-copy h1 {
    max-width: 100%;
    font-size: 48px;
  }

  .member-rule-grid,
  .member-profile-form,
	  .admin-form-grid,
	  .admin-settings,
	  .admin-rule-legacy {
	    grid-template-columns: 1fr;
	  }

  .member-actions-row > * {
    flex: 1 1 100%;
  }

  .admin-shell {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .admin-console {
    padding-left: 12px;
    padding-right: 12px;
  }

  .admin-side {
    display: none;
  }

  .admin-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: calc(env(safe-area-inset-top, 0px) + 58px);
    margin: 0 -12px 14px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
    border-bottom: 1px solid rgba(30, 35, 31, 0.08);
    background: rgba(246, 244, 239, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .admin-mobile-topbar strong {
    overflow: hidden;
    color: #161a17;
    font: 800 15px/1.2 Inter, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-menu,
  .admin-mobile-refresh,
  .admin-mobile-drawer-head button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(30, 35, 31, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: #202720;
    font: 800 12px/1 Inter, sans-serif;
  }

  .admin-mobile-menu {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 0;
  }

  .admin-mobile-menu span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
  }

  .admin-mobile-refresh {
    padding: 0 12px;
  }

  .admin-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 118;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(16, 18, 17, 0.36);
    transition: opacity .18s ease;
  }

  .admin-mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 119;
    display: grid;
    width: min(86vw, 340px);
    max-width: 340px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
    border-right: 1px solid rgba(30, 35, 31, 0.1);
    background: #fbfaf5;
    box-shadow: 24px 0 72px rgba(18, 21, 18, 0.18);
    transform: translateX(-104%);
    transition: transform .2s ease;
    pointer-events: none;
  }

  .admin-console[data-admin-drawer="open"] .admin-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-console[data-admin-drawer="open"] .admin-mobile-drawer {
    transform: translateX(0);
    pointer-events: auto;
  }

  .admin-mobile-drawer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .admin-mobile-drawer nav {
    display: grid;
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-mobile-drawer nav button {
    min-height: 46px;
    border: 1px solid rgba(30, 35, 31, 0.08);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: rgba(31, 33, 32, 0.72);
    text-align: left;
    font: 800 14px/1.2 Inter, sans-serif;
  }

  .admin-mobile-drawer nav button.is-active {
    border-color: rgba(47, 104, 69, 0.22);
    color: #225a38;
    background: rgba(47, 104, 69, 0.08);
  }

  .admin-mobile-logout {
    width: 100%;
    min-height: 46px;
  }

  .admin-head h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-card-head form {
    width: 100%;
  }

  .admin-layout {
    display: block;
  }

  .admin-main {
    display: block;
  }

  .admin-grid,
  .admin-summary {
    margin-top: 0;
  }

  .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-card table {
    min-width: 720px;
  }

  .admin-mini,
  .admin-link,
  .admin-form-grid .member-primary,
  .admin-settings-card .member-primary {
    min-height: 44px;
  }

  .admin-drawer {
    padding: 8px;
  }
}

/* ADMIN WHATSAPP MOBILE CARDS — 2026-07-05
   Phone admin shows readable sales-route cards while desktop keeps the table. */
@media (max-width: 760px) {
  body[data-page="admin"] #adminWhatsappCard .admin-table-wrap {
    display: none !important;
  }

  body[data-page="admin"] #adminWhatsappCard .admin-wa-mobile-list {
    display: grid;
    gap: 12px;
  }

  body[data-page="admin"] .admin-wa-mobile-card,
  body[data-page="admin"] .admin-wa-mobile-empty {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(30, 35, 31, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 42px -34px rgba(18, 21, 18, 0.28);
  }

  body[data-page="admin"] .admin-wa-mobile-card {
    display: grid;
    gap: 12px;
  }

  body[data-page="admin"] .admin-wa-mobile-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  body[data-page="admin"] .admin-wa-mobile-card-head span,
  body[data-page="admin"] .admin-wa-mobile-meta dt {
    display: block;
    color: rgba(31, 33, 32, 0.48);
    font: 800 11px/1.2 Inter, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body[data-page="admin"] .admin-wa-mobile-card h3 {
    margin: 5px 0 0;
    color: #161a17;
    font: 800 18px/1.2 Inter, sans-serif;
    letter-spacing: 0;
  }

  body[data-page="admin"] .admin-wa-mobile-card-head p {
    margin: 6px 0 0;
    color: rgba(21, 24, 22, 0.68);
    font: 750 13px/1.35 "JetBrains Mono", monospace;
    overflow-wrap: anywhere;
  }

  body[data-page="admin"] .admin-wa-mobile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 72px;
  }

  body[data-page="admin"] .admin-wa-status,
  body[data-page="admin"] .admin-wa-default,
  body[data-page="admin"] .admin-wa-legacy {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font: 800 11px/1 Inter, sans-serif;
    white-space: nowrap;
  }

  body[data-page="admin"] .admin-wa-status.is-active,
  body[data-page="admin"] .admin-wa-default {
    background: rgba(47, 104, 69, 0.09);
    color: #245b3a;
  }

  body[data-page="admin"] .admin-wa-status.is-inactive {
    background: rgba(170, 66, 47, 0.08);
    color: #8d2f20;
  }

  body[data-page="admin"] .admin-wa-legacy {
    background: rgba(88, 74, 42, 0.08);
    color: #72562a;
  }

  body[data-page="admin"] .admin-wa-mobile-meta {
    display: grid;
    gap: 9px;
    margin: 0;
  }

  body[data-page="admin"] .admin-wa-mobile-meta div {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  body[data-page="admin"] .admin-wa-mobile-meta .admin-wa-mobile-secondary {
    padding-top: 8px;
    border-top: 1px solid rgba(30, 35, 31, 0.07);
  }

  body[data-page="admin"] .admin-wa-mobile-meta .admin-wa-related {
    gap: 7px;
  }

  body[data-page="admin"] .admin-wa-mobile-meta .admin-wa-related-entry {
    padding: 7px 8px;
    border: 1px solid rgba(30, 35, 31, 0.07);
    border-radius: 10px;
    background: rgba(255,255,255,0.56);
  }

  body[data-page="admin"] .admin-wa-mobile-meta dd {
    margin: 0;
    min-width: 0;
    color: rgba(21, 24, 22, 0.82);
    font: 650 14px/1.35 Inter, sans-serif;
    overflow-wrap: anywhere;
  }

  body[data-page="admin"] .admin-wa-mobile-meta strong {
    color: #17211b;
    font-size: 18px;
    letter-spacing: 0.02em;
  }

  body[data-page="admin"] .admin-wa-mobile-meta code {
    display: inline-block;
    max-width: 100%;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(47, 104, 69, 0.07);
    color: #225a38;
    font: 800 13px/1.3 Inter, sans-serif;
    overflow-wrap: anywhere;
  }

  body[data-page="admin"] .admin-wa-mobile-copy {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(47, 104, 69, 0.2);
    border-radius: 14px;
    background: rgba(47, 104, 69, 0.08);
    color: #225a38;
    font: 800 14px/1 Inter, sans-serif;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body[data-page="admin"] .admin-wa-card-actions {
    display: grid;
    gap: 9px;
  }

  body[data-page="admin"] .admin-wa-card-actions .admin-wa-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }

  body[data-page="admin"] .admin-wa-card-actions .admin-mini {
    min-height: 44px;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.15;
  }

  body[data-page="admin"] .admin-whatsapp-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body[data-page="admin"] .admin-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   V50 stability overrides: navigation, admin shell, non-fading cards
   These rules intentionally sit at the end to neutralize older experimental
   nav/admin/motion overrides without changing product data or routes.
   ============================================================= */

body:not([data-page="admin"]) .nav-inner {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 360px) minmax(260px, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  max-width: var(--page-max) !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding-left: clamp(18px, 3vw, 32px) !important;
  padding-right: clamp(18px, 3vw, 32px) !important;
}

body:not([data-page="admin"]) .nav-left,
body:not([data-page="admin"]) .nav-center,
body:not([data-page="admin"]) .nav-right {
  min-width: 0 !important;
}

body:not([data-page="admin"]) .nav-left {
  display: inline-flex !important;
  justify-self: start !important;
  align-items: center !important;
  gap: 12px !important;
}

body:not([data-page="admin"]) .nav-center {
  display: flex !important;
  width: min(100%, 360px) !important;
  justify-self: center !important;
}

body:not([data-page="admin"]) .nav-menu {
  position: static !important;
  transform: none !important;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
}

body:not([data-page="admin"]) .nav-brand {
  position: static !important;
  transform: none !important;
  white-space: nowrap !important;
  justify-self: auto !important;
}

body:not([data-page="admin"]) .nav-right {
  display: inline-flex !important;
  justify-self: end !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body:not([data-page="admin"]) .nav-center .nav-search-btn {
  width: 100% !important;
  justify-content: flex-start !important;
}

body:not([data-page="admin"]) .nav-house-btn,
body:not([data-page="admin"]) .nav-search-btn,
body:not([data-page="admin"]) .nav-cart-btn,
body:not([data-page="admin"]) .nav-account-btn,
body:not([data-page="admin"]) .nav-wa {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto !important;
  height: 36px !important;
}

@media (min-width: 821px) and (max-width: 1120px) {
  body:not([data-page="admin"]) .nav-inner {
    grid-template-columns: minmax(210px, 1fr) minmax(170px, 280px) minmax(210px, 1fr) !important;
    gap: 12px !important;
  }

  body:not([data-page="admin"]) .nav-house-btn span,
  body:not([data-page="admin"]) .nav-search-btn kbd,
  body:not([data-page="admin"]) .nav-cart-btn span,
  body:not([data-page="admin"]) .nav-wa span {
    display: none !important;
  }

  body:not([data-page="admin"]) .nav-house-btn,
  body:not([data-page="admin"]) .nav-search-btn,
  body:not([data-page="admin"]) .nav-cart-btn,
  body:not([data-page="admin"]) .nav-wa {
    width: 38px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}

@media (max-width: 820px) {
  body:not([data-page="admin"]) .nav-inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body:not([data-page="admin"]) .nav-menu,
  body:not([data-page="admin"]) .nav-search-btn,
  body:not([data-page="admin"]) .nav-account-btn,
  body:not([data-page="admin"]) .nav-cart-btn,
  body:not([data-page="admin"]) .nav-wa {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }

  body:not([data-page="admin"]) .nav-menu { left: 14px !important; }
  body:not([data-page="admin"]) .nav-search-btn { left: 60px !important; }
  body:not([data-page="admin"]) .nav-account-btn { right: 106px !important; display: inline-flex !important; }
  body:not([data-page="admin"]) .nav-cart-btn { right: 60px !important; }
  body:not([data-page="admin"]) .nav-wa { right: 14px !important; display: inline-flex !important; }

  body:not([data-page="admin"]) .nav-brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 22px !important;
  }

  body:not([data-page="admin"]) .nav-left,
  body:not([data-page="admin"]) .nav-center,
  body:not([data-page="admin"]) .nav-right {
    display: contents !important;
  }

  body:not([data-page="admin"]) .nav-house-btn,
  body:not([data-page="admin"]) .nav-search-btn span,
  body:not([data-page="admin"]) .nav-search-btn kbd,
  body:not([data-page="admin"]) .nav-cart-btn span,
  body:not([data-page="admin"]) .nav-account-btn b,
  body:not([data-page="admin"]) .nav-wa span {
    display: none !important;
  }

  body:not([data-page="admin"]) .nav-account-btn #accountLabel {
    display: block !important;
    width: 18px !important;
    overflow: hidden !important;
    color: transparent !important;
    position: relative !important;
  }

  body:not([data-page="admin"]) .nav-account-btn #accountLabel::before {
    content: "Me" !important;
    position: absolute !important;
    inset: 0 !important;
    color: var(--ink) !important;
    font-size: 11px !important;
    line-height: 18px !important;
    text-align: center !important;
  }
}

body[data-page="admin"] {
  --admin-bg: #f5f4ef;
  --admin-panel: rgba(255,255,255,0.86);
  background: var(--admin-bg) !important;
}

body[data-page="admin"] .nav,
body[data-page="admin"] .sidebar,
body[data-page="admin"] .backdrop,
body[data-page="admin"] .foot,
body[data-page="admin"] .fab {
  display: none !important;
}

body[data-page="admin"] main#view {
  padding-top: 0 !important;
}

body[data-page="admin"]::before {
  opacity: 0.22;
}

.admin-console {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 80px;
}

.admin-console .admin-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-console .admin-side {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(25,28,25,0.08);
  box-shadow: 0 24px 70px -54px rgba(15,16,17,0.32);
}

.admin-console .admin-brand {
  display: grid;
  gap: 7px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 520;
  line-height: 1;
}

.admin-console .admin-brand span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(22,26,23,0.46);
}

.admin-console .admin-side nav {
  display: grid;
  gap: 6px;
}

.admin-console .admin-side nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(22,26,23,0.7);
  font: 650 13px/1 var(--sans);
}

.admin-console .admin-side nav a:hover {
  color: var(--accent);
  background: rgba(46,83,57,0.075);
}

.admin-side-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.admin-console .admin-main {
  min-width: 0;
}

.admin-console .admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: start;
  max-width: none;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(25,28,25,0.08);
  border-radius: 24px;
  background: var(--admin-panel);
  box-shadow: 0 22px 70px -58px rgba(15,16,17,0.32);
}

.admin-console .admin-head h1 {
  max-width: none;
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.admin-console .admin-head p {
  max-width: 760px;
  margin: 0;
  color: rgba(22,26,23,0.62);
  font-size: 14px;
  line-height: 1.65;
}

.admin-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-console .admin-feedback {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
  justify-content: flex-start;
}

.admin-console .admin-summary {
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.admin-console .admin-stat,
.admin-console .admin-card {
  border: 1px solid rgba(25,28,25,0.08);
  background: var(--admin-panel);
  box-shadow: 0 18px 52px -46px rgba(15,16,17,0.28);
}

.admin-console .admin-stat {
  min-height: 116px;
  padding: 16px;
  border-radius: 18px;
}

.admin-console .admin-stat b {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.admin-console .admin-stat span,
.admin-console .admin-stat small {
  letter-spacing: 0.08em;
}

.admin-console .admin-card {
  padding: 22px;
  border-radius: 22px;
}

.admin-console .admin-card h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
}

.admin-console .admin-grid {
  gap: 18px;
}

@media (max-width: 1260px) {
  .admin-console .admin-summary {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-console {
    width: min(100% - 28px, 760px);
    padding-top: 16px;
  }

  .admin-console .admin-layout,
  .admin-console .admin-grid-two,
  .admin-console .admin-summary,
  .admin-console .admin-head {
    grid-template-columns: 1fr;
  }

  .admin-console .admin-side {
    position: static;
    min-height: 0;
  }

  .admin-console .admin-side nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-side-actions,
  .admin-head-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
}

@media (max-width: 620px) {
  .admin-console .admin-side nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console .admin-head,
  .admin-console .admin-card,
  .admin-console .admin-side {
    border-radius: 18px;
    padding: 18px;
  }

  .admin-console .admin-head h1 {
    font-size: 34px;
  }
}

/* =============================================================
   V2 operational polish: analytics, WhatsApp routing, mobile finish
   ============================================================= */
html {
  background: #fbfaf6;
}

body::before {
  opacity: 0.26;
  background-size: 4px 4px;
}

.hero-proof-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -18px 0 24px;
}

.hero-proof-rail span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(23, 28, 24, 0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
  color: rgba(22,26,23,0.68);
  font: 500 12px/1 var(--sans);
  box-shadow: 0 12px 32px -30px rgba(16,18,17,0.32);
}

.hero-proof-rail b {
  color: var(--accent);
  font-weight: 760;
}

.hero-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.hero-command-card {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 28, 24, 0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 16px 42px -36px rgba(15,16,17,0.36);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.hero-command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46,83,57,0.22);
  background: rgba(255,255,255,0.82);
}

.hero-command-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(46,83,57,0.08);
  color: var(--accent);
}

.hero-command-icon svg {
  width: 18px;
  height: 18px;
}

.hero-command-card b {
  display: block;
  font: 720 13px/1.15 var(--sans);
  color: var(--ink);
}

.hero-command-card small {
  display: block;
  margin-top: 4px;
  color: rgba(22,26,23,0.56);
  font: 500 11.5px/1.35 var(--sans);
}

.hero-portrait-frame {
  border-radius: 22px;
  overflow: hidden;
}

.hero-portrait-glint {
  position: absolute;
  inset: -20% auto -20% 0;
  width: 34%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-14deg);
  opacity: 0;
}

.home-popular-shell {
  position: relative;
}

.home-popular-edge {
  position: absolute;
  top: 0;
  bottom: 5px;
  width: 28px;
  pointer-events: none;
  z-index: 2;
}

.home-popular-edge-l {
  left: -16px;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.home-popular-edge-r {
  right: -16px;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.home-popular-hint {
  margin-top: 9px;
  color: rgba(22,26,23,0.38);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.magic-card {
  --mx: 50%;
  --my: 50%;
}

.magic-card-glow,
.magic-card-beam {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.magic-card-glow {
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.72), transparent 22%);
  mix-blend-mode: soft-light;
}

.magic-card-beam {
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(46,83,57,0.12), transparent 24%);
}

.magic-card:hover .magic-card-glow,
.magic-card:hover .magic-card-beam {
  opacity: 1;
}

.admin-console .admin-analytics-panel {
  margin-bottom: 18px;
}

.admin-console .admin-card-head small {
  color: rgba(22,26,23,0.48);
  font: 600 12px/1.45 var(--sans);
}

.admin-console .admin-analytics-cards {
  margin-bottom: 18px;
}

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

.admin-mini-card {
  border: 1px solid rgba(25,28,25,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  padding: 18px;
}

.admin-mini-card h3 {
  margin: 0 0 12px;
  font: 680 14px/1 var(--sans);
  color: rgba(22,26,23,0.76);
}

.admin-rank-list {
  display: grid;
  gap: 8px;
}

.admin-rank-list li {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(25,28,25,0.06);
  color: rgba(22,26,23,0.68);
  font-size: 13px;
}

.admin-rank-list b {
  color: var(--ink);
  font: 650 13px/1 var(--mono);
}

.admin-event-table {
  margin-top: 18px;
}

.admin-console code {
  display: inline-block;
  max-width: 100%;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: rgba(46,83,57,0.07);
  color: var(--accent);
  font: 600 11px/1.45 var(--mono);
}

.admin-whatsapp-form {
  margin: 6px 0 18px;
}

.admin-form-title {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 53, 42, 0.09);
  border-radius: 12px;
  background: rgba(46, 83, 57, 0.045);
}

.admin-form-title strong {
  color: #17211b;
  font: 800 15px/1.25 Inter, sans-serif;
}

.admin-form-title small {
  color: rgba(30, 34, 31, 0.64);
  font: 600 12.5px/1.45 Inter, sans-serif;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-checkbox {
  display: flex !important;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(35, 53, 42, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(22, 27, 24, 0.78);
  font: 700 13px/1.3 Inter, sans-serif;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.admin-wa-table-wrap table {
  min-width: 1260px;
  table-layout: fixed;
}

.admin-wa-table-wrap th:nth-child(1),
.admin-wa-table-wrap td:nth-child(1) { width: 270px; }
.admin-wa-table-wrap th:nth-child(2),
.admin-wa-table-wrap td:nth-child(2) { width: 180px; }
.admin-wa-table-wrap th:nth-child(3),
.admin-wa-table-wrap td:nth-child(3) { width: 126px; }
.admin-wa-table-wrap th:nth-child(4),
.admin-wa-table-wrap td:nth-child(4) { width: 380px; }
.admin-wa-table-wrap th:nth-child(5),
.admin-wa-table-wrap td:nth-child(5) { width: 132px; }
.admin-wa-table-wrap th:nth-child(6),
.admin-wa-table-wrap td:nth-child(6) { width: 272px; }

.admin-wa-name-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-wa-name-cell strong {
  color: #161a17;
  font: 800 14px/1.25 Inter, sans-serif;
}

.admin-wa-name-cell small,
.admin-wa-phone + small {
  color: rgba(21, 24, 22, 0.5);
  font-size: 11px;
  line-height: 1.35;
}

.admin-wa-name-cell details {
  margin-top: 3px;
  color: rgba(21, 24, 22, 0.54);
  font-size: 11px;
}

.admin-wa-name-cell summary {
  cursor: pointer;
  width: max-content;
}

.admin-wa-name-cell code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(27, 33, 29, 0.05);
  color: rgba(21, 24, 22, 0.7);
  font: 650 11px/1.3 Inter, sans-serif;
  overflow-wrap: anywhere;
}

.admin-wa-related {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-wa-related-entry {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-wa-related-entry code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(47, 90, 63, 0.08);
  color: #225a38;
  font: 800 11px/1.25 Inter, sans-serif;
  overflow-wrap: anywhere;
}

.admin-wa-related-entry small {
  color: rgba(21, 24, 22, 0.56);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-wa-phone {
  display: block;
  color: #17211b;
  font: 750 13px/1.35 "JetBrains Mono", monospace;
  white-space: nowrap;
}

.admin-wa-link-cell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-wa-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-wa-actions .admin-mini,
.admin-wa-link-cell .admin-mini {
  min-width: 84px;
  min-height: 36px;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  padding: 0 12px;
  overflow: visible;
  text-overflow: clip;
}

.admin-mini-danger {
  border-color: rgba(170, 66, 47, 0.2) !important;
  background: rgba(170, 66, 47, 0.06) !important;
  color: #8d2f20 !important;
}

.admin-wa-short-badge {
  background: rgba(47, 104, 69, 0.09) !important;
  color: #245b3a !important;
}

.admin-form-grid label,
.admin-settings label {
  min-width: 0;
}

@media (max-width: 980px) {
  .admin-console .admin-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body::before {
    display: none;
  }

  .hero.wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 30px 0 24px;
  }

  .hero-grid {
    column-gap: 14px;
    row-gap: 18px;
  }

  .hero-title {
    font-size: clamp(31px, 9vw, 39px) !important;
    line-height: 0.98;
  }

  .hero-kicker {
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .hero-sub {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.58;
  }

  .hero-proof-rail {
    justify-content: center;
    margin: 0 0 16px;
    gap: 8px;
  }

  .hero-proof-rail span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .hero-command-grid {
    display: none;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .btn-wa,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    height: 50px;
  }

  .home-popular {
    padding-top: 2px;
    padding-bottom: 26px;
  }

  .home-popular-card {
    flex-basis: 156px;
    border-radius: 16px;
  }

  .home-popular-body h3 {
    font-size: 19px;
  }
}

@media (max-width: 420px) {
  .hero.wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 32px !important;
  }

  .hero-portrait-frame {
    border-radius: 16px;
  }

  .home-popular-card {
    flex-basis: 148px;
  }
}

/* =============================================================
   FINAL LAUNCH NAVIGATION LOCK
   Keeps the brand centered and removes the mobile absolute-position stack.
   ============================================================= */

body:not([data-page="admin"]) .nav-inner {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
}

body:not([data-page="admin"]) .nav-left {
  grid-column: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body:not([data-page="admin"]) .nav-center {
  grid-column: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  width: auto !important;
  min-width: 0 !important;
}

body:not([data-page="admin"]) .nav-right {
  grid-column: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-self: end !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body:not([data-page="admin"]) .nav-brand {
  position: static !important;
  transform: none !important;
  justify-self: center !important;
  white-space: nowrap !important;
}

body:not([data-page="admin"]) .nav-menu,
body:not([data-page="admin"]) .nav-house-btn,
body:not([data-page="admin"]) .nav-search-btn,
body:not([data-page="admin"]) .nav-cart-btn,
body:not([data-page="admin"]) .nav-account-btn,
body:not([data-page="admin"]) .nav-wa {
  position: static !important;
  transform: none !important;
}

.side-actions {
  display: grid;
  gap: 10px;
  padding: 18px 28px 8px;
}

.side-action {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.side-action::after {
  content: "→";
  color: var(--green);
}

body:not([data-page="admin"]) .home-popular-card,
body:not([data-page="admin"]) .series-card,
body:not([data-page="admin"]) .related-card {
  overflow: hidden !important;
  isolation: isolate !important;
  background-clip: padding-box !important;
}

body:not([data-page="admin"]) .home-popular-img,
body:not([data-page="admin"]) .series-card-img,
body:not([data-page="admin"]) .related-card-img {
  overflow: hidden !important;
}

body:not([data-page="admin"]) .home-popular-img img,
body:not([data-page="admin"]) .series-card-photo,
body:not([data-page="admin"]) .related-card img {
  border-radius: 0 !important;
}

@media (min-width: 821px) and (max-width: 1160px) {
  body:not([data-page="admin"]) .nav-inner {
    grid-template-columns: minmax(150px, 1fr) auto minmax(210px, 1fr) !important;
    gap: 12px !important;
  }

  body:not([data-page="admin"]) .nav-search-btn kbd,
  body:not([data-page="admin"]) .nav-cart-btn span,
  body:not([data-page="admin"]) .nav-wa span {
    display: none !important;
  }

  body:not([data-page="admin"]) .nav-search-btn,
  body:not([data-page="admin"]) .nav-cart-btn,
  body:not([data-page="admin"]) .nav-wa {
    width: 38px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body:not([data-page="admin"]) .nav-inner {
    position: static !important;
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) 92px !important;
    align-items: center !important;
    gap: 8px !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }

  body:not([data-page="admin"]) .nav-left,
  body:not([data-page="admin"]) .nav-center,
  body:not([data-page="admin"]) .nav-right {
    display: flex !important;
    position: static !important;
    min-width: 0 !important;
  }

  body:not([data-page="admin"]) .nav-left {
    grid-column: 1 !important;
    justify-self: start !important;
    justify-content: flex-start !important;
  }

  body:not([data-page="admin"]) .nav-center {
    grid-column: 2 !important;
    justify-self: stretch !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body:not([data-page="admin"]) .nav-right {
    grid-column: 3 !important;
    justify-self: end !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  body:not([data-page="admin"]) .nav-brand {
    position: static !important;
    transform: none !important;
    max-width: 100% !important;
    font-size: clamp(25px, 7.2vw, 31px) !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body:not([data-page="admin"]) .nav-menu,
  body:not([data-page="admin"]) .nav-cart-btn,
  body:not([data-page="admin"]) .nav-wa {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
  }

  body:not([data-page="admin"]) .nav-cart-btn {
    position: relative !important;
  }

  body:not([data-page="admin"]) .nav-house-btn,
  body:not([data-page="admin"]) .nav-search-btn,
  body:not([data-page="admin"]) .nav-account-btn {
    display: none !important;
  }

  body:not([data-page="admin"]) .nav-account-btn #accountLabel::before,
  body:not([data-page="admin"]) .nav-account-btn span::before {
    content: none !important;
  }

  body:not([data-page="admin"]) .nav-cart-btn span,
  body:not([data-page="admin"]) .nav-wa span {
    display: none !important;
  }

  body:not([data-page="admin"]) .nav-cart-btn b {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
  }

  .side-actions {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* FINAL COA INTERACTION LOCK */
html[data-scroll-locked="true"],
body[data-scroll-locked="true"] {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body[data-scroll-locked="true"] {
  touch-action: auto !important;
}

.coa-overlay {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.coa-box {
  min-height: 0 !important;
}

.coa-body {
  min-height: 0 !important;
  overscroll-behavior: contain !important;
}

.coa-card {
  contain: layout paint;
}

.coa-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.coa-image-button:focus-visible,
.coa-download:focus-visible,
.coa-toggle:focus-visible {
  outline: 2px solid rgba(47, 90, 63, 0.32);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .coa-overlay {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    background: #fffefb !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .coa-box {
    width: 100% !important;
    height: 100svh !important;
    height: 100dvh !important;
    max-height: 100svh !important;
    max-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fffefb !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .coa-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
    padding: max(12px, env(safe-area-inset-top)) 18px 12px !important;
    border-bottom: 1px solid var(--line) !important;
    background: #fffefb !important;
  }

  .coa-head h2 {
    font-size: clamp(30px, 8.8vw, 38px) !important;
    line-height: 1 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 7px !important;
  }

  .coa-head p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .coa-close {
    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    font-size: 16px !important;
    flex: 0 0 auto !important;
    background: #fff !important;
  }

  .coa-body {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom)) !important;
  }

  .coa-card {
    margin: 0 0 14px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(21, 24, 22, 0.1) !important;
    box-shadow: none !important;
  }

  .coa-card figcaption {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .coa-toggle {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .coa-index {
    font-size: 12px !important;
  }

  .coa-toggle strong {
    font-size: 17px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .coa-toggle-state {
    grid-column: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    min-height: 30px !important;
    margin-top: 2px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(47, 90, 63, 0.2) !important;
    border-radius: 999px !important;
    background: rgba(47, 90, 63, 0.06) !important;
    color: var(--accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }

  .coa-actions {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    gap: 8px !important;
    padding-left: 34px !important;
  }

  .coa-card figcaption a {
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .coa-preview-wrap {
    background: #f8f8f6 !important;
  }

  .coa-image-button {
    display: block !important;
    width: 100% !important;
    background: #f8f8f6 !important;
  }

  .coa-img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  .coa-zoom-overlay {
    padding: 10px !important;
    overscroll-behavior: none !important;
  }

  .coa-zoom-panel {
    width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
  }
}

/* =============================================================
   FINAL PRODUCT CARD HOVER CLIP LOCK
   Prevent scaled product images from leaking square source corners.
   ============================================================= */

body:not([data-page="admin"]) .series-card,
body:not([data-page="admin"]) .home-popular-card,
body:not([data-page="admin"]) .related-card {
  overflow: hidden !important;
  isolation: isolate !important;
  background-clip: padding-box !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

body:not([data-page="admin"]) .series-card-img,
body:not([data-page="admin"]) .home-popular-img,
body:not([data-page="admin"]) .related-card-img,
body:not([data-page="admin"]) .related-media {
  overflow: hidden !important;
  border-radius: var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0 !important;
  clip-path: inset(0 round var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0) !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

body:not([data-page="admin"]) .series-card-photo,
body:not([data-page="admin"]) .home-popular-img img,
body:not([data-page="admin"]) .related-card img,
body:not([data-page="admin"]) .related-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  backface-visibility: hidden !important;
  transform-origin: center center !important;
}

@media (max-width: 860px) {
  body:not([data-page="admin"]) .series-card-img {
    border-radius: var(--radius-md, 14px) 0 0 var(--radius-md, 14px) !important;
    clip-path: inset(0 round var(--radius-md, 14px) 0 0 var(--radius-md, 14px)) !important;
  }
}

/* =============================================================
   POST-REGRESSION INTERACTION AND CLIP PATCH
   Keeps mobile CTA taps, COA previews, admin sidebar, and image cards stable.
   ============================================================= */

body:not([data-page="admin"]) .nav {
  z-index: 120 !important;
}

body:not([data-page="admin"]) .nav-cart-btn,
body:not([data-page="admin"]) .nav-menu,
body:not([data-page="admin"]) .nav-search,
body:not([data-page="admin"]) .nav-wa {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
  z-index: 4 !important;
}

body:not([data-side="open"]) .backdrop,
body:not([data-search="open"]) .search-overlay,
body:not([data-cart="open"]) .cart-overlay,
body:not([data-coa="open"]) .coa-overlay,
body:not([data-coa-zoom="open"]) .coa-zoom-overlay,
body:not([data-house="open"]) .house-overlay,
body:not([data-member="open"]) .member-overlay {
  visibility: hidden !important;
  pointer-events: none !important;
}

body[data-side="open"] .backdrop,
body[data-search="open"] .search-overlay,
body[data-cart="open"] .cart-overlay,
body[data-coa="open"] .coa-overlay,
body[data-coa-zoom="open"] .coa-zoom-overlay,
body[data-house="open"] .house-overlay,
body[data-member="open"] .member-overlay {
  visibility: visible !important;
}

body[data-side="open"] .backdrop {
  z-index: 220 !important;
}

body[data-side="open"] .sidebar {
  z-index: 221 !important;
}

body[data-search="open"] .search-overlay,
body[data-cart="open"] .cart-overlay,
body[data-house="open"] .house-overlay,
body[data-member="open"] .member-overlay {
  z-index: 240 !important;
}

body[data-coa="open"] .coa-overlay {
  z-index: 250 !important;
}

body:not([data-page="admin"]) .series-card,
body:not([data-page="admin"]) .home-popular-card,
body:not([data-page="admin"]) .related-card {
  border-radius: var(--radius-lg, 16px) !important;
  overflow: hidden !important;
  contain: layout paint !important;
  clip-path: inset(0 round var(--radius-lg, 16px)) !important;
  background: #fff !important;
}

body:not([data-page="admin"]) .series-card-img,
body:not([data-page="admin"]) .home-popular-img,
body:not([data-page="admin"]) .related-card-img,
body:not([data-page="admin"]) .related-media {
  overflow: hidden !important;
  contain: paint !important;
  background: #f3ebdf !important;
}

body:not([data-page="admin"]) .series-card-photo,
body:not([data-page="admin"]) .home-popular-img img,
body:not([data-page="admin"]) .related-card img,
body:not([data-page="admin"]) .related-media img {
  clip-path: inset(0) !important;
  -webkit-mask-image: none !important;
}

.coa-preview-wrap[hidden] {
  display: none !important;
}

.coa-card:not(.is-open) figcaption {
  border-bottom: 0 !important;
}

.coa-card:not(.is-open) {
  min-height: 0 !important;
}

.coa-toggle {
  cursor: pointer;
}

.coa-toggle-state::after {
  content: " ↓";
  font-weight: 700;
}

.coa-card.is-open .coa-toggle-state::after {
  content: " ↑";
}

.coa-zoom-overlay {
  z-index: 260 !important;
}

/* =============================================================
   MOBILE REMAINING TAP FIXES — 2026-07-03
   Scope: header account, cart close/send, home rail first card, COA zoom.
   ============================================================= */

body:not([data-page="admin"]) .nav-account-btn {
  display: none !important;
}

body:not([data-page="admin"]) .nav-wa.nav-profile-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  border-color: rgba(15, 16, 17, 0.12) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 28px -22px rgba(15, 16, 17, 0.35) !important;
  cursor: pointer !important;
}

body:not([data-page="admin"]) .nav-wa.nav-profile-btn:hover {
  border-color: rgba(47, 90, 63, 0.26) !important;
  color: var(--accent) !important;
}

.cart-box,
.cart-head {
  position: relative;
}

.cart-box {
  z-index: 1;
}

.cart-head {
  z-index: 2;
}

.cart-close {
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

.cart-send {
  min-width: 0 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  text-align: center !important;
}

.cart-send svg {
  flex: 0 0 auto !important;
}

.coa-image-button,
.coa-img,
.coa-zoom-img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.coa-img {
  aspect-ratio: 1238 / 1750;
  contain: paint;
}

.coa-zoom-img {
  aspect-ratio: 1238 / 1750;
  background: #fff;
}

.coa-zoom-panel {
  position: relative;
}

.coa-zoom-close {
  z-index: 4 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  min-width: 44px !important;
  min-height: 44px !important;
  -webkit-tap-highlight-color: transparent !important;
}

@media (max-width: 760px) {
  body[data-page="home"] .home-popular {
    overflow: visible !important;
  }

  body[data-page="home"] .home-popular-shell {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }

  body[data-page="home"] .home-popular-track {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1px !important;
    padding-right: clamp(14px, 4.5vw, 18px) !important;
    scroll-padding-left: 0 !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }

  body[data-page="home"] .home-popular-card {
    flex: 0 0 142px !important;
    scroll-snap-align: start !important;
  }

  body[data-page="home"] .home-popular-card:first-child {
    margin-left: 0 !important;
  }

  .cart-overlay {
    touch-action: auto !important;
  }

  .cart-foot {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .cart-clear,
  .cart-send {
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 0 16px !important;
  }

  .cart-send {
    font-size: 14px !important;
    font-weight: 700 !important;
  }
}

.admin-console .admin-side nav button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.admin-console .admin-side nav button:hover,
.admin-console .admin-side nav button:focus-visible {
  color: var(--ink);
  background: rgba(47, 90, 63, 0.07);
  outline: none;
}

.admin-main > *,
.admin-card,
.admin-head {
  scroll-margin-top: 22px;
}

.admin-wa-link-cell {
  min-width: 0;
}

.admin-wa-mobile-list {
  display: none;
}

.admin-wa-default-badge {
  margin-left: 6px;
  background: rgba(47, 104, 69, 0.1);
  color: #245b3a;
}

.admin-wa-link-cell code {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(47, 90, 63, 0.08);
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.admin-copy-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.72);
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
}

.admin-whatsapp-form {
  align-items: end;
}

.admin-whatsapp-form .admin-form-title small {
  max-width: 760px;
}

.admin-rank-list li {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
}

.admin-rank-list span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-table-wrap {
  scrollbar-gutter: stable;
}

@media (max-width: 640px) {
  .coa-card figcaption {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: auto !important;
  }

  .coa-actions {
    padding-left: 0 !important;
  }

  .coa-download {
    min-height: 36px !important;
    padding: 0 12px !important;
  }

  .coa-toggle-state {
    grid-column: 1 / -1 !important;
    margin-left: 32px !important;
  }

  .admin-layout {
    grid-template-columns: 1fr !important;
  }

  .admin-console .admin-side {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
  }

  .admin-console .admin-side nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-console .admin-side nav button {
    min-height: 40px;
    text-align: center;
  }
}

/* =============================================================
   MOBILE SAFE-AREA + SKU READABILITY FIX — 2026-07-03
   Scope: phone overlays/sheets and product-detail SKU rows only.
   ============================================================= */

@media (max-width: 760px) {
  .search-box,
  .cart-box,
  .coa-box {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .search-head,
  .cart-head,
  .coa-head {
    padding-top: calc(env(safe-area-inset-top, 0px) + 20px) !important;
    min-height: calc(env(safe-area-inset-top, 0px) + 78px) !important;
  }

  .member-overlay {
    align-items: flex-end !important;
    padding:
      calc(env(safe-area-inset-top, 0px) + 10px)
      10px
      max(10px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .member-box {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - max(10px, env(safe-area-inset-bottom, 0px))) !important;
  }

  .member-head {
    padding-top: 22px !important;
    min-height: 78px !important;
  }

  .member-body {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  }

  .sidebar {
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6px) !important;
  }

  .side-head {
    padding-top: 18px !important;
  }

  .search-close,
  .cart-close,
  .coa-close,
  .member-close,
  .side-close {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    flex: 0 0 46px !important;
    position: relative !important;
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .coa-zoom-overlay {
    padding:
      calc(env(safe-area-inset-top, 0px) + 10px)
      10px
      calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
  }

  .coa-zoom-panel {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px) !important;
  }
}

@media (max-width: 640px) {
  .detail-sku {
    margin-top: 38px !important;
  }

  .detail-sku-head {
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .detail-sku-meta {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    color: rgba(31, 33, 32, 0.64) !important;
  }

  .sku-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px 14px !important;
    min-height: 128px !important;
    padding: 17px 16px 18px !important;
  }

  .sku-code {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: rgba(31, 33, 32, 0.58) !important;
  }

  .sku-spec {
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: #161817 !important;
  }

  .sku-price {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  .sku-price small {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }

  .sku-cart,
  .sku-order {
    min-height: 46px !important;
    height: auto !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .sku-order svg {
    width: 15px !important;
    height: 15px !important;
  }
}

/* MOBILE SIDEBAR SAFE-AREA REGRESSION FIX — 2026-07-03
   Keep iPhone top safety inside the menu header only; do not push the whole sidebar down. */
@media (max-width: 760px) {
  .sidebar {
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-top: 0 !important;
    overflow: hidden !important;
  }

  .side-head {
    padding:
      calc(env(safe-area-inset-top, 0px) + 14px)
      22px
      18px
      82px !important;
    min-height: auto !important;
  }

  .side-close {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    left: 22px !important;
    right: auto !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    flex: 0 0 46px !important;
    z-index: 8 !important;
  }

  .side-kicker,
  .side-title,
  .side-sub {
    padding-right: 0 !important;
  }

  .side-title {
    margin-top: 4px !important;
  }

  .side-nav {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* MOBILE CART / ACCOUNT / SKU TOUCH POLISH — 2026-07-03 */
.cart-remove {
  min-height: 40px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 760px) {
  .cart-item {
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto) !important;
    gap: 12px !important;
    padding: 15px 16px !important;
  }

  .cart-remove {
    min-width: 76px !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 0 14px !important;
    border-color: rgba(26, 29, 27, 0.14) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: rgba(26, 29, 27, 0.68) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  .cart-foot {
    padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
    gap: 10px !important;
    background:
      linear-gradient(180deg, rgba(252, 250, 245, 0.78), rgba(252, 250, 245, 0.98)),
      rgba(252, 250, 245, 0.96) !important;
    border-top-color: rgba(26, 29, 27, 0.1) !important;
  }

  .cart-clear {
    min-height: 46px !important;
    border-color: rgba(26, 29, 27, 0.13) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: rgba(26, 29, 27, 0.64) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
  }

  .cart-send {
    min-height: 50px !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 14px 28px -20px rgba(21, 160, 86, 0.8) !important;
  }

  .cart-send svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 auto !important;
  }

  .member-overlay {
    padding:
      calc(env(safe-area-inset-top, 0px) + 8px)
      10px
      calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
    background: rgba(13, 16, 14, 0.54) !important;
  }

  .member-box {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 18px) !important;
    border-radius: 24px !important;
    background: rgba(252, 250, 245, 0.99) !important;
  }

  .member-head {
    min-height: auto !important;
    padding: 18px 18px 14px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(252, 250, 245, 0.96)) !important;
    border-bottom-color: rgba(26, 29, 27, 0.08) !important;
  }

  .member-head h2 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.04 !important;
  }

  .member-close {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(26, 29, 27, 0.1) !important;
  }

  .member-body {
    padding: 16px 14px calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
    background:
      linear-gradient(180deg, rgba(252, 250, 245, 0.92), rgba(252, 250, 245, 1)) !important;
  }

  .member-auth-shell {
    gap: 12px !important;
  }

  .member-auth-copy,
  .member-auth-card {
    border-color: rgba(26, 29, 27, 0.09) !important;
    box-shadow: 0 18px 44px -34px rgba(15, 16, 17, 0.22) !important;
  }

  .sku-code {
    font-family: var(--sans) !important;
    font-size: 15.5px !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: rgba(22, 24, 23, 0.88) !important;
  }

  .sku-spec {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    color: #161817 !important;
  }
}

/* ADMIN MOBILE DRAWER STRUCTURE FIX — 2026-07-04
   Phone admin must be top bar + drawer + active module, not a persistent side-card. */
@media (max-width: 760px) {
  body[data-page="admin"] .admin-console {
    width: 100% !important;
    max-width: none !important;
    padding-top: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body[data-page="admin"] .admin-console .admin-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body[data-page="admin"] .admin-console .admin-side {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body[data-page="admin"] .admin-side-actions,
  body[data-page="admin"] .admin-head-actions {
    display: none !important;
  }

  body[data-page="admin"] .admin-mobile-topbar {
    display: grid !important;
  }

  body[data-page="admin"] .admin-mobile-backdrop {
    display: block !important;
    pointer-events: none !important;
  }

  body[data-page="admin"] .admin-console[data-admin-drawer="open"] .admin-mobile-backdrop {
    pointer-events: auto !important;
  }

  body[data-page="admin"] .admin-mobile-drawer {
    display: grid !important;
    pointer-events: none !important;
  }

  body[data-page="admin"] .admin-console[data-admin-drawer="open"] .admin-mobile-drawer {
    pointer-events: auto !important;
  }

body[data-page="admin"] .admin-main {
    display: block !important;
    min-width: 0 !important;
  }
}

/* =============================================================
   PeptiCore full-bleed hero background — 2026-07-06
   ============================================================= */
body[data-page="home"] .hero-full-bleed {
  position: relative;
  isolation: isolate;
  min-height: clamp(720px, 84svh, 920px);
  padding: 0;
  overflow: hidden;
  background: #f6f2e8;
}

body[data-page="home"] .hero-full-bleed .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

body[data-page="home"] .hero-full-bleed .hero-bg-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center right;
}

body[data-page="home"] .hero-full-bleed::before,
body[data-page="home"] .hero-full-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body[data-page="home"] .hero-full-bleed::before {
  background:
    linear-gradient(90deg,
      rgba(251,250,246,0.98) 0%,
      rgba(251,250,246,0.91) 29%,
      rgba(246,243,234,0.52) 50%,
      rgba(246,243,234,0.04) 75%),
    radial-gradient(circle at 18% 24%, rgba(43, 93, 75, 0.12), transparent 31%);
}

body[data-page="home"] .hero-full-bleed::after {
  background:
    linear-gradient(180deg,
      rgba(251,250,246,0.56) 0%,
      rgba(251,250,246,0.04) 30%,
      rgba(251,250,246,0.7) 100%);
}

body[data-page="home"] .hero-full-bleed .hero-content {
  position: relative;
  z-index: 2;
  min-height: clamp(720px, 84svh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(112px, 13vh, 156px);
  padding-bottom: clamp(42px, 6vh, 76px);
}

body[data-page="home"] .hero-full-bleed .hero-grid {
  width: min(100%, 660px);
  min-height: clamp(480px, 55vh, 650px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "body";
  align-content: center;
  align-items: start;
  row-gap: 0;
}

body[data-page="home"] .hero-full-bleed .hero-title-block,
body[data-page="home"] .hero-full-bleed .hero-body-block {
  max-width: 660px;
  min-width: 0;
  text-align: left;
}

body[data-page="home"] .hero-full-bleed .hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #14251f;
}

body[data-page="home"] .hero-full-bleed .hero-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(21, 43, 35, 0.2);
  border-radius: 50%;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 18px 50px -34px rgba(11, 24, 20, 0.44);
}

body[data-page="home"] .hero-full-bleed .hero-brand-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

body[data-page="home"] .hero-full-bleed .hero-brand-word {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 420;
}

body[data-page="home"] .hero-full-bleed .hero-kicker {
  margin-bottom: 18px;
  color: rgba(24, 60, 49, 0.74);
}

body[data-page="home"] .hero-full-bleed .hero-kicker-link {
  color: inherit;
}

body[data-page="home"] .hero-full-bleed .hero-title {
  max-width: 650px;
  font-size: clamp(64px, 7.4vw, 112px) !important;
  color: #111917;
  text-wrap: balance;
}

body[data-page="home"] .hero-full-bleed .hero-title em {
  color: #2e5f4e;
}

body[data-page="home"] .hero-full-bleed .hero-sub {
  max-width: 585px;
  margin-bottom: 26px;
  color: rgba(19, 29, 26, 0.74);
}

body[data-page="home"] .hero-full-bleed .hero-proof-rail {
  margin: 0 0 22px;
}

body[data-page="home"] .hero-full-bleed .hero-proof-rail span,
body[data-page="home"] .hero-full-bleed .hero-command-card {
  background: rgba(255,255,255,0.66);
  border-color: rgba(22, 48, 39, 0.13);
  backdrop-filter: blur(16px);
}

body[data-page="home"] .hero-full-bleed .hero-ctas {
  margin-top: 2px;
}

body[data-page="home"] .hero-full-bleed .home-popular,
body[data-page="home"] .hero-full-bleed .hero-facts {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .hero-full-bleed .hero-facts {
  margin-top: clamp(28px, 5vh, 54px);
  padding: 22px 0 0;
  border-top: 1px solid rgba(22, 48, 39, 0.14);
}

body[data-page="home"] .hero-full-bleed .hero-fact-v {
  color: #14251f;
}

body[data-page="home"] .hero-full-bleed .hero-fact-k {
  color: rgba(20,37,31,0.6);
}

@media (max-width: 1180px) {
  body[data-page="home"] .hero-full-bleed::before {
    background:
      linear-gradient(90deg,
        rgba(251,250,246,0.98) 0%,
        rgba(251,250,246,0.88) 38%,
        rgba(246,243,234,0.36) 64%,
        rgba(246,243,234,0.04) 100%),
      radial-gradient(circle at 18% 24%, rgba(43, 93, 75, 0.12), transparent 32%);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-full-bleed {
    min-height: auto;
    overflow: hidden;
  }

  body[data-page="home"] .hero-full-bleed .hero-bg-img {
    object-position: 58% 100%;
  }

  body[data-page="home"] .hero-full-bleed::before {
    background:
      linear-gradient(180deg,
        rgba(251,250,246,0.98) 0%,
        rgba(251,250,246,0.9) 38%,
        rgba(251,250,246,0.46) 61%,
        rgba(251,250,246,0.16) 100%),
      radial-gradient(circle at 28% 12%, rgba(43, 93, 75, 0.12), transparent 38%);
  }

  body[data-page="home"] .hero-full-bleed::after {
    background: linear-gradient(180deg, rgba(251,250,246,0.26), rgba(251,250,246,0.82) 100%);
  }

  body[data-page="home"] .hero-full-bleed .hero-content {
    min-height: min(860px, calc(100svh + 190px));
    justify-content: flex-start;
    padding-top: max(76px, calc(env(safe-area-inset-top) + 64px));
    padding-bottom: max(30px, calc(env(safe-area-inset-bottom) + 28px));
  }

  body[data-page="home"] .hero-full-bleed .hero-grid {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "body";
    row-gap: 0;
    align-content: start;
  }

  body[data-page="home"] .hero-full-bleed .hero-title-block,
  body[data-page="home"] .hero-full-bleed .hero-body-block {
    text-align: left;
    max-width: 100%;
  }

  body[data-page="home"] .hero-full-bleed .hero-brand-lockup {
    gap: 10px;
    margin-bottom: 15px;
  }

  body[data-page="home"] .hero-full-bleed .hero-brand-mark {
    width: 34px;
    height: 34px;
  }

  body[data-page="home"] .hero-full-bleed .hero-brand-word {
    font-size: 28px;
  }

  body[data-page="home"] .hero-full-bleed .hero-kicker {
    max-width: 280px;
    margin-bottom: 12px;
    font-size: 9.5px;
    line-height: 1.45;
    letter-spacing: 0.13em;
  }

  body[data-page="home"] .hero-full-bleed .hero-title {
    max-width: 335px;
    font-size: clamp(40px, 12vw, 54px) !important;
    line-height: 0.96;
    margin-bottom: 18px;
  }

  body[data-page="home"] .hero-full-bleed .hero-sub {
    max-width: 342px;
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.58;
  }

  body[data-page="home"] .hero-full-bleed .hero-proof-rail {
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 16px;
  }

  body[data-page="home"] .hero-full-bleed .hero-proof-rail span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  body[data-page="home"] .hero-full-bleed .hero-command-grid {
    display: none;
  }

  body[data-page="home"] .hero-full-bleed .hero-ctas {
    width: min(100%, 342px);
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="home"] .hero-full-bleed .hero-ctas .btn-wa,
  body[data-page="home"] .hero-full-bleed .hero-ctas .btn-ghost {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  body[data-page="home"] .hero-full-bleed .home-popular {
    margin-top: auto;
  }

  body[data-page="home"] .hero-full-bleed .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 26px;
    padding-top: 20px;
  }

  body[data-page="home"] .hero-full-bleed .hero-fact {
    padding: 0 10px 14px 0;
  }
}

@media (max-width: 420px) {
  body[data-page="home"] .hero-full-bleed .hero-title {
    font-size: clamp(37px, 11.5vw, 48px) !important;
  }

  body[data-page="home"] .hero-full-bleed .hero-sub,
  body[data-page="home"] .hero-full-bleed .hero-ctas {
    max-width: 324px;
  }
}

/* =============================================================
   PeptiCore hero layout repair — split content + premium right visual
   ============================================================= */
body[data-page="home"] .hero-split {
  position: relative;
  isolation: isolate;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(103, 151, 138, 0.11), transparent 27%),
    radial-gradient(circle at 82% 64%, rgba(231, 219, 193, 0.38), transparent 32%),
    linear-gradient(90deg, #fbfaf6 0%, #fbfaf6 49%, #f2efe6 100%);
}

body[data-page="home"] .hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(251,250,246,0) 0%, rgba(251,250,246,0.72) 46%, rgba(251,250,246,0.08) 70%, rgba(251,250,246,0) 100%);
}

body[data-page="home"] .hero-split .hero-shell {
  position: relative;
  z-index: 1;
  min-height: clamp(720px, calc(100svh - 64px), 880px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(72px, 9vh, 110px);
  padding-bottom: clamp(46px, 6vh, 72px);
}

body[data-page="home"] .hero-split .hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(580px, 1.18fr);
  grid-template-areas:
    "title vial"
    "body  vial";
  column-gap: clamp(34px, 5.5vw, 92px);
  row-gap: 26px;
  align-items: center;
  min-height: clamp(640px, 78vh, 820px);
}

body[data-page="home"] .hero-split .hero-title-block {
  grid-area: title;
  max-width: 720px;
  align-self: end;
}

body[data-page="home"] .hero-split .hero-body-block {
  grid-area: body;
  max-width: 590px;
  align-self: start;
  text-align: left;
}

body[data-page="home"] .hero-split .hero-title {
  font-size: clamp(64px, 8vw, 118px) !important;
  line-height: 0.94;
  margin-bottom: 32px;
  color: #101817;
}

body[data-page="home"] .hero-split .hero-title em {
  color: #2c604f;
}

body[data-page="home"] .hero-split .hero-kicker {
  margin-bottom: 32px;
  color: rgba(32, 73, 61, 0.7);
}

body[data-page="home"] .hero-split .hero-sub {
  max-width: 550px;
  margin-bottom: 28px;
  color: rgba(19, 29, 26, 0.74);
}

body[data-page="home"] .hero-split .hero-proof-rail {
  margin: 0 0 22px;
}

body[data-page="home"] .hero-split .hero-proof-rail span,
body[data-page="home"] .hero-split .hero-command-card {
  background: rgba(255,255,255,0.72);
  border-color: rgba(24, 54, 45, 0.12);
  backdrop-filter: blur(12px);
}

body[data-page="home"] .hero-split .hero-command-grid {
  width: min(100%, 590px);
}

body[data-page="home"] .hero-split .hero-portrait {
  grid-area: vial;
  width: min(58vw, 980px);
  max-width: none;
  justify-self: end;
  align-self: stretch;
  margin: 0 calc((100vw - min(1160px, calc(100vw - 56px))) / -2) 0 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

body[data-page="home"] .hero-split .hero-portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(640px, 78vh, 820px);
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 64% 44%, rgba(255,255,255,0.56), rgba(255,255,255,0.12) 42%, transparent 68%),
    linear-gradient(180deg, rgba(249,247,239,0.1), rgba(239,235,222,0.1));
  box-shadow: none;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 100%);
}

body[data-page="home"] .hero-split .hero-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251,250,246,0.98) 0%, rgba(251,250,246,0.54) 22%, rgba(251,250,246,0.12) 43%, transparent 62%),
    linear-gradient(180deg, rgba(251,250,246,0.12), transparent 36%, rgba(251,250,246,0.06));
}

body[data-page="home"] .hero-split .hero-portrait-picture {
  display: block;
  position: absolute;
  inset: 0;
}

body[data-page="home"] .hero-split .hero-portrait-img {
  opacity: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

body[data-page="home"] .hero-split .hero-portrait-vignette {
  display: none;
}

body[data-page="home"] .hero-split .hero-portrait-cap {
  display: none;
}

body[data-page="home"] .hero-split .hero-facts {
  margin-top: clamp(44px, 6vh, 78px);
  padding-top: 28px;
  border-top: 1px solid rgba(24, 54, 45, 0.13);
}

body[data-page="home"] .hero-split + .home-popular {
  padding-top: 26px;
}

@media (max-width: 1180px) {
  body[data-page="home"] .hero-split .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    column-gap: 30px;
  }

  body[data-page="home"] .hero-split .hero-portrait {
    width: min(56vw, 760px);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-split {
    background: linear-gradient(180deg, #fbfaf6 0%, #fbfaf6 58%, #f1eee6 100%);
  }

  body[data-page="home"] .hero-split::before {
    display: none;
  }

  body[data-page="home"] .hero-split .hero-shell {
    min-height: auto;
    display: block;
    padding-top: max(46px, calc(env(safe-area-inset-top) + 38px));
    padding-bottom: max(30px, calc(env(safe-area-inset-bottom) + 28px));
  }

  body[data-page="home"] .hero-split .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(128px, 34vw, 158px);
    grid-template-areas:
      "title vial"
      "body  body";
    column-gap: 8px;
    row-gap: 16px;
    align-items: start;
    min-height: 0;
  }

  body[data-page="home"] .hero-split .hero-title-block {
    max-width: 100%;
    text-align: left;
    align-self: start;
  }

  body[data-page="home"] .hero-split .hero-body-block {
    max-width: 100%;
    text-align: left;
    align-self: start;
  }

  body[data-page="home"] .hero-split .hero-kicker {
    margin-bottom: 14px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.13em;
  }

  body[data-page="home"] .hero-split .hero-title {
    max-width: none;
    font-size: clamp(33px, 9.9vw, 46px) !important;
    line-height: 0.96;
    margin-bottom: 0;
  }

  body[data-page="home"] .hero-split .hero-sub {
    max-width: 352px;
    margin: 0 0 18px;
    font-size: 14.8px;
    line-height: 1.58;
  }

  body[data-page="home"] .hero-split .hero-proof-rail {
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 16px;
  }

  body[data-page="home"] .hero-split .hero-proof-rail span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  body[data-page="home"] .hero-split .hero-command-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 352px);
    margin-bottom: 16px;
  }

  body[data-page="home"] .hero-split .hero-command-card {
    min-height: 62px;
  }

  body[data-page="home"] .hero-split .hero-command-card small {
    display: block;
  }

  body[data-page="home"] .hero-split .hero-ctas {
    width: min(100%, 352px);
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="home"] .hero-split .hero-ctas .btn-wa,
  body[data-page="home"] .hero-split .hero-ctas .btn-ghost {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  body[data-page="home"] .hero-split .hero-portrait {
    width: clamp(128px, 34vw, 158px);
    max-width: 158px;
    justify-self: end;
    align-self: start;
    margin: 8px 0 0;
    pointer-events: none;
  }

  body[data-page="home"] .hero-split .hero-portrait-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 0.435 / 1;
    border-radius: 0;
    mask-image: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    mask-image: linear-gradient(90deg, transparent 0%, black 13%, black 87%, transparent 100%);
  }

  body[data-page="home"] .hero-split .hero-portrait-frame::before {
    inset: -10% -16% -6%;
    z-index: -1;
    border-radius: 999px;
    background:
      radial-gradient(ellipse at 50% 54%, rgba(255,255,255,0.88), rgba(242,238,224,0.34) 58%, transparent 76%);
  }

  body[data-page="home"] .hero-split .hero-portrait-img {
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 18px 22px rgba(38, 42, 38, 0.13));
  }

  body[data-page="home"] .hero-split .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 28px;
    padding-top: 22px;
  }

  body[data-page="home"] .hero-split .hero-fact {
    padding: 0 10px 14px 0;
  }
}

@media (max-width: 420px) {
  body[data-page="home"] .hero-split .hero-title {
    font-size: clamp(32px, 9.7vw, 42px) !important;
  }

  body[data-page="home"] .hero-split .hero-sub,
  body[data-page="home"] .hero-split .hero-command-grid,
  body[data-page="home"] .hero-split .hero-ctas {
    max-width: 330px;
  }
}

/* =============================================================
   PeptiCore user-approved full-bleed hero
   ============================================================= */
body[data-page="home"] .hero-full-bleed-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  min-height: clamp(760px, calc(100svh - 64px), 920px);
  background-color: #fbfaf6;
}

body[data-page="home"] .hero-full-bleed-final .hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

body[data-page="home"] .hero-full-bleed-final .hero-bg-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center right;
}

body[data-page="home"] .hero-full-bleed-final::before,
body[data-page="home"] .hero-full-bleed-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body[data-page="home"] .hero-full-bleed-final::before {
  display: none;
}

body[data-page="home"] .hero-full-bleed-final::after {
  display: none;
}

body[data-page="home"] .hero-full-bleed-final .hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(72px, 6.5vw, 128px);
  padding-right: clamp(28px, 5vw, 96px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(88px, 11vh, 132px);
  padding-bottom: clamp(48px, 6vh, 74px);
}

body[data-page="home"] .hero-full-bleed-final .hero-grid {
  display: block;
  width: min(46vw, 680px);
  min-width: 520px;
  min-height: 0;
  margin-left: 0;
  margin-right: 0;
}

body[data-page="home"] .hero-full-bleed-final .hero-title-block,
body[data-page="home"] .hero-full-bleed-final .hero-body-block {
  max-width: 100%;
  text-align: left;
}

body[data-page="home"] .hero-full-bleed-final .hero-kicker {
  margin-bottom: 30px;
  color: rgba(26, 65, 54, 0.76);
}

body[data-page="home"] .hero-full-bleed-final .hero-title {
  font-size: clamp(64px, 7vw, 104px) !important;
  line-height: 1.04;
  letter-spacing: -0.042em;
  margin-bottom: 30px;
  color: #111a18;
}

body[data-page="home"] .hero-full-bleed-final .hero-title em {
  display: block;
  margin-top: 0.14em;
  color: #2a5d4e;
}

body[data-page="home"] .hero-full-bleed-final .hero-sub {
  max-width: 580px;
  margin-bottom: 28px;
  color: rgba(18, 29, 26, 0.74);
}

body[data-page="home"] .hero-full-bleed-final .hero-proof-rail {
  justify-content: flex-start;
  margin: 0 0 22px;
}

body[data-page="home"] .hero-full-bleed-final .hero-proof-rail span,
body[data-page="home"] .hero-full-bleed-final .hero-command-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(24, 54, 45, 0.13);
  backdrop-filter: blur(12px);
}

body[data-page="home"] .hero-full-bleed-final .hero-command-grid {
  width: min(100%, 590px);
}

body[data-page="home"] .hero-full-bleed-final .hero-ctas {
  margin-top: 22px;
  justify-content: flex-start;
}

body[data-page="home"] .hero-full-bleed-final .hero-ctas .btn-wa,
body[data-page="home"] .hero-full-bleed-final .hero-ctas .btn-ghost {
  min-height: 48px;
}

body[data-page="home"] .hero-full-bleed-final .hero-facts {
  position: relative;
  z-index: 1;
  width: min(46vw, 680px);
  min-width: 520px;
  margin: clamp(42px, 6vh, 76px) 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(24, 54, 45, 0.13);
}

body[data-page="home"] .hero-full-bleed-final + .home-popular {
  padding-top: 28px;
}

@media (max-width: 1080px) {
  body[data-page="home"] .hero-full-bleed-final .hero-grid,
  body[data-page="home"] .hero-full-bleed-final .hero-facts {
    width: min(52vw, 600px);
    min-width: 440px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-title {
    font-size: clamp(56px, 7.2vw, 88px) !important;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-full-bleed-final {
    min-height: auto;
    background-color: #fbfaf6;
  }

  body[data-page="home"] .hero-full-bleed-final::before {
    display: none;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-bg-media {
    inset: 0 0 auto;
    height: clamp(330px, 42svh, 420px);
  }

  body[data-page="home"] .hero-full-bleed-final .hero-bg-media img {
    position: absolute;
    top: 0;
    left: 58%;
    width: auto;
    height: 84%;
    object-fit: contain;
    object-position: center top;
    transform: translateX(-58%);
  }

  body[data-page="home"] .hero-full-bleed-final::after {
    display: none;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-shell {
    min-height: clamp(740px, 95svh, 880px);
    display: block;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: max(48px, calc(env(safe-area-inset-top) + 40px));
    padding-bottom: max(30px, calc(env(safe-area-inset-bottom) + 28px));
  }

  body[data-page="home"] .hero-full-bleed-final .hero-grid,
  body[data-page="home"] .hero-full-bleed-final .hero-facts {
    width: min(100%, 352px);
    min-width: 0;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-kicker {
    margin-bottom: 16px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.13em;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-title {
    max-width: 286px;
    font-size: clamp(38px, 10.8vw, 48px) !important;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-body-block {
    position: relative;
    z-index: 2;
    background: #fbfaf6;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 22px 16px 0;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-sub {
    width: min(100%, 352px);
    max-width: 352px;
    margin: 0 auto 18px;
    font-size: 14.8px;
    line-height: 1.58;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-proof-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 352px);
    max-width: 352px;
    gap: 8px;
    margin: 0 auto 16px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-proof-rail span {
    justify-content: center;
    min-width: 0;
    min-height: 30px;
    padding: 0 6px;
    font-size: 10.8px;
    white-space: nowrap;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-proof-rail span:nth-child(4) {
    display: none;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 352px);
    margin: 0 auto 16px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-command-card {
    min-height: 92px;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 12px 10px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-command-icon {
    width: 30px;
    height: 30px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-command-icon svg {
    width: 15px;
    height: 15px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-command-card b {
    font-size: 12.4px;
    line-height: 1.15;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-command-card small {
    display: -webkit-box;
    font-size: 10.4px;
    line-height: 1.25;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-ctas {
    width: min(100%, 352px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-ctas .btn-wa,
  body[data-page="home"] .hero-full-bleed-final .hero-ctas .btn-ghost {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 28px;
    padding-top: 22px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-fact {
    padding: 0 10px 14px 0;
  }
}

@media (max-width: 420px) {
  body[data-page="home"] .hero-full-bleed-final .hero-shell {
    min-height: clamp(720px, 95svh, 860px);
  }

  body[data-page="home"] .hero-full-bleed-final .hero-grid,
  body[data-page="home"] .hero-full-bleed-final .hero-facts,
  body[data-page="home"] .hero-full-bleed-final .hero-sub,
  body[data-page="home"] .hero-full-bleed-final .hero-command-grid,
  body[data-page="home"] .hero-full-bleed-final .hero-ctas {
    max-width: 352px;
  }

  body[data-page="home"] .hero-full-bleed-final .hero-title {
    max-width: 276px;
    font-size: clamp(35px, 10.1vw, 42px) !important;
  }
}

/* =============================================================
   MOBILE CATALOG GUTTER AND PRODUCT CARD CLIP FINAL
   Scope: storefront mobile spacing and product image corner clipping only.
   ============================================================= */

:root {
  --mobile-page-gutter: clamp(22px, 6vw, 32px);
}

@media (max-width: 760px) {
  body:not([data-page="admin"]) .wrap {
    width: min(calc(100% - (var(--mobile-page-gutter) * 2)), var(--page-max)) !important;
  }

  body[data-page="home"] .home-popular.wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body[data-page="home"] .home-popular-head,
  body[data-page="home"] .home-popular-hint {
    box-sizing: border-box !important;
    width: 100% !important;
    padding-left: var(--mobile-page-gutter) !important;
    padding-right: var(--mobile-page-gutter) !important;
  }

  body[data-page="home"] .home-popular-shell {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }

  body[data-page="home"] .home-popular-track {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--mobile-page-gutter) !important;
    padding-right: var(--mobile-page-gutter) !important;
    scroll-padding-left: var(--mobile-page-gutter) !important;
    scroll-padding-right: var(--mobile-page-gutter) !important;
  }

  body[data-page="home"] .home-popular-card:first-child {
    margin-left: 0 !important;
  }

  .series-grid {
    gap: clamp(14px, 3.8vw, 18px) !important;
    box-sizing: border-box !important;
  }
}

body:not([data-page="admin"]) .home-popular-card,
body:not([data-page="admin"]) .series-card,
body:not([data-page="admin"]) .related-card {
  border-radius: var(--radius-lg, 16px) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--radius-lg, 16px)) !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

body:not([data-page="admin"]) .home-popular-img,
body:not([data-page="admin"]) .series-card-img,
body:not([data-page="admin"]) .related-card-img,
body:not([data-page="admin"]) .related-media {
  overflow: hidden !important;
  border-radius: inherit !important;
  clip-path: inset(0 round var(--radius-lg, 16px)) !important;
  contain: paint !important;
}

body:not([data-page="admin"]) .home-popular-img img,
body:not([data-page="admin"]) .series-card-photo,
body:not([data-page="admin"]) .related-card img,
body:not([data-page="admin"]) .related-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

@media (max-width: 760px) {
  body:not([data-page="admin"]) .series-card-img,
  body:not([data-page="admin"]) .home-popular-img {
    border-radius: var(--radius-lg, 16px) !important;
    clip-path: inset(0 round var(--radius-lg, 16px)) !important;
  }
}

/* SEO content pages and homepage crawlable resource section */
body:not([data-page="admin"]) .seo-static-fallback {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px clamp(24px, 5vw, 48px);
  color: var(--ink);
}

body:not([data-page="admin"]) .seo-static-fallback h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
}

body:not([data-page="admin"]) .seo-static-fallback p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

body:not([data-page="admin"]) .seo-static-fallback nav,
body:not([data-page="admin"]) .seo-static-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body:not([data-page="admin"]) .seo-static-fallback a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

body:not([data-page="admin"]) .seo-static-disclaimer {
  margin-top: 24px;
  font-size: 0.9rem;
}

body:not([data-page="admin"]) .home-seo-resources {
  padding: clamp(54px, 8vw, 94px) 0;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.96), rgba(244, 239, 229, 0.88)),
    var(--surface);
}

body:not([data-page="admin"]) .home-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not([data-page="admin"]) .home-seo-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(18, 64, 55, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(40, 54, 48, 0.08);
}

body:not([data-page="admin"]) .home-seo-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0;
}

body:not([data-page="admin"]) .home-seo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

body:not([data-page="admin"]) .home-seo-card a {
  margin-top: auto;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

body:not([data-page="admin"]) .home-seo-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body:not([data-page="admin"]) .home-seo-products a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(18, 64, 55, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

body:not([data-page="admin"]) .home-seo-disclaimer {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

body[data-page="seo"] {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(214, 185, 123, 0.16), transparent 36vw),
    linear-gradient(180deg, #fbfaf6 0%, #f4efe5 100%);
  color: var(--ink);
}

body[data-page="seo"] .seo-page-header,
body[data-page="seo"] .seo-page,
body[data-page="seo"] .seo-page-footer {
  width: min(1160px, calc(100% - clamp(44px, 8vw, 96px)));
  margin: 0 auto;
}

body[data-page="seo"] .seo-page-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body[data-page="seo"] .seo-brand {
  color: var(--forest);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

body[data-page="seo"] .seo-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body[data-page="seo"] .seo-nav a {
  min-height: 38px;
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

body[data-page="seo"] .seo-nav a[aria-current="page"],
body[data-page="seo"] .seo-nav a:hover {
  color: var(--forest);
  border-color: rgba(18, 64, 55, 0.24);
}

body[data-page="seo"] .seo-page {
  padding: 34px 0 78px;
}

body[data-page="seo"] .seo-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-page="seo"] .seo-hero-panel,
body[data-page="seo"] .seo-product-hero,
body[data-page="seo"] .seo-section,
body[data-page="seo"] .seo-note,
body[data-page="seo"] .seo-page-footer {
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 60px rgba(40, 54, 48, 0.08);
}

body[data-page="seo"] .seo-hero-panel,
body[data-page="seo"] .seo-product-hero {
  padding: clamp(30px, 5vw, 58px);
}

body[data-page="seo"] h1,
body[data-page="seo"] h2,
body[data-page="seo"] h3 {
  letter-spacing: 0;
}

body[data-page="seo"] h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
}

body[data-page="seo"] h2 {
  margin: 0 0 20px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
}

body[data-page="seo"] h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.16rem;
}

body[data-page="seo"] p {
  color: var(--muted);
  line-height: 1.75;
}

body[data-page="seo"] .seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body[data-page="seo"] .seo-actions a,
body[data-page="seo"] .seo-actions button,
body[data-page="seo"] .seo-link-grid a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 64, 55, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

body[data-page="seo"] .seo-actions a[data-variant="primary"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

body[data-page="seo"] .seo-actions a:focus-visible,
body[data-page="seo"] .seo-actions button:focus-visible,
body[data-page="seo"] .seo-link-grid a:focus-visible {
  outline: 3px solid rgba(194, 146, 68, 0.45);
  outline-offset: 3px;
}

body[data-page="seo"] .seo-actions button:disabled {
  cursor: progress;
  opacity: 0.62;
}

body[data-page="seo"] .seo-inquiry-context[hidden] {
  display: none;
}

body[data-page="seo"] .seo-inquiry-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

body[data-page="seo"] .seo-inquiry-facts > div {
  min-width: 0;
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 14px;
  padding: 16px;
  background: rgba(251, 250, 246, 0.86);
}

body[data-page="seo"] .seo-inquiry-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-page="seo"] .seo-inquiry-facts dd {
  margin: 6px 0 0;
  color: var(--forest);
  font-weight: 900;
  overflow-wrap: anywhere;
}

body[data-page="seo"] .seo-copy-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

body[data-page="seo"] .seo-section,
body[data-page="seo"] .seo-note {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 40px);
}

body[data-page="seo"] .seo-card-grid,
body[data-page="seo"] .seo-product-grid,
body[data-page="seo"] .seo-link-grid,
body[data-page="seo"] .seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="seo"] .seo-guide-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  align-content: start;
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 18px;
  padding: 24px;
  background: rgba(251, 250, 246, 0.82);
  color: inherit;
  text-decoration: none;
}

body[data-page="seo"] .seo-guide-card strong {
  color: var(--forest);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

body[data-page="seo"] .seo-guide-card small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

body[data-page="seo"] .seo-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

body[data-page="seo"] .seo-info-card,
body[data-page="seo"] .seo-product-card,
body[data-page="seo"] .seo-faq-item {
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 18px;
  background: rgba(251, 250, 246, 0.82);
  overflow: hidden;
}

body[data-page="seo"] .seo-info-card {
  padding: 20px;
}

body[data-page="seo"] .seo-category-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body[data-page="seo"] .seo-category-card small {
  display: block;
  margin-top: 14px;
  color: var(--forest);
  font-weight: 850;
}

body[data-page="seo"] .seo-category-card:hover {
  border-color: rgba(18, 64, 55, 0.26);
  box-shadow: 0 16px 34px rgba(40, 54, 48, 0.1);
  transform: translateY(-2px);
}

body[data-page="seo"] .seo-product-card {
  display: flex;
  flex-direction: column;
}

body[data-page="seo"] .seo-product-card-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 148px;
  color: inherit;
  text-decoration: none;
}

body[data-page="seo"] .seo-product-card-link .seo-product-picture,
body[data-page="seo"] .seo-product-card-link img {
  width: 112px;
  height: 100%;
}

body[data-page="seo"] .seo-product-card-link .seo-product-picture {
  display: block;
  overflow: hidden;
}

body[data-page="seo"] .seo-product-card-link img {
  width: 100%;
  object-fit: cover;
  display: block;
}

body[data-page="seo"] .seo-add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: none;
  border-top: 1px solid rgba(18, 64, 55, 0.1);
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

body[data-page="seo"] .seo-add-cart-btn:hover {
  background: #24422d;
}

body[data-page="seo"] .seo-add-cart-btn.is-added {
  background: var(--wa-ink);
}

body[data-page="seo"] .seo-add-cart-btn .cart-btn-price {
  font-family: var(--mono);
  opacity: 0.85;
}

body[data-page="seo"] .seo-product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

body[data-page="seo"] .seo-product-card strong {
  color: var(--forest);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
}

body[data-page="seo"] .seo-product-card small {
  color: var(--muted);
  line-height: 1.45;
}

body[data-page="seo"] .seo-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 28px;
}

body[data-page="seo"] .seo-product-hero .seo-product-picture {
  width: min(100%, 360px);
  justify-self: end;
  display: block;
}

body[data-page="seo"] .seo-product-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(40, 54, 48, 0.11);
}

body[data-page="seo"] .seo-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

body[data-page="seo"] .seo-product-facts div {
  min-width: 0;
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(251, 250, 246, 0.86);
}

body[data-page="seo"] .seo-product-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-page="seo"] .seo-product-facts dd {
  margin: 4px 0 0;
  color: var(--forest);
  font-weight: 900;
  overflow-wrap: anywhere;
}

body[data-page="seo"] .seo-price-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
}

body[data-page="seo"] .seo-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 16px;
}

body[data-page="seo"] .seo-spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: rgba(255, 255, 255, 0.72);
}

body[data-page="seo"] .seo-spec-table th,
body[data-page="seo"] .seo-spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(18, 64, 55, 0.08);
  text-align: left;
}

body[data-page="seo"] .seo-spec-table th {
  color: var(--forest);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="seo"] .seo-muted {
  margin-bottom: 0;
  font-size: 0.92rem;
}

body[data-page="seo"] .seo-step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="seo"] .seo-step-list li {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(18, 64, 55, 0.1);
  border-radius: 16px;
  padding: 18px;
  background: rgba(251, 250, 246, 0.74);
}

body[data-page="seo"] .seo-step-list span {
  color: var(--muted);
  line-height: 1.65;
}

body[data-page="seo"] .seo-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

body[data-page="seo"] .seo-faq-item {
  padding: 18px 20px;
}

body[data-page="seo"] .seo-faq-item summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 900;
}

body[data-page="seo"] .seo-faq-item p {
  margin-bottom: 0;
}

body[data-page="seo"] .seo-page-footer {
  margin-bottom: 40px;
  padding: 24px;
}

body[data-page="seo"] .seo-page-footer a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  body:not([data-page="admin"]) .home-seo-grid,
  body[data-page="seo"] .seo-card-grid,
  body[data-page="seo"] .seo-product-grid,
  body[data-page="seo"] .seo-link-grid,
  body[data-page="seo"] .seo-guide-grid,
  body[data-page="seo"] .seo-product-hero {
    grid-template-columns: 1fr;
  }

  body[data-page="seo"] .seo-product-hero .seo-product-picture {
    justify-self: start;
    width: min(100%, 280px);
  }
}

@media (max-width: 760px) {
  body[data-page="seo"] .seo-page-header,
  body[data-page="seo"] .seo-page,
  body[data-page="seo"] .seo-page-footer {
    width: calc(100% - var(--mobile-page-gutter) * 2);
  }

  body[data-page="seo"] .seo-page-header {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 10px;
  }

  body[data-page="seo"] .seo-nav {
    justify-content: flex-start;
  }

  body[data-page="seo"] .seo-hero-panel,
  body[data-page="seo"] .seo-product-hero,
  body[data-page="seo"] .seo-section,
  body[data-page="seo"] .seo-note {
    border-radius: 18px;
  }

  body[data-page="seo"] .seo-guide-article h1 {
    font-size: 34px;
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-page="seo"] .seo-product-card-link {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body[data-page="seo"] .seo-product-card-link .seo-product-picture {
    width: 96px;
  }

  body[data-page="seo"] .seo-product-facts {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="seo"] .seo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="seo"] .seo-actions a {
    width: 100%;
    padding-inline: 12px;
    text-align: center;
  }

  body[data-page="seo"] .seo-actions button {
    width: 100%;
    padding-inline: 12px;
    text-align: center;
  }

  body[data-page="seo"] .seo-inquiry-facts {
    grid-template-columns: 1fr 1fr;
  }

  body:not([data-page="admin"]) .home-seo-products a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  body[data-page="seo"] .seo-product-facts {
    grid-template-columns: 1fr;
  }
}

/* Admin SaaS control panel interaction layer — 2026-07-10 */
body[data-page="admin"] .admin-module-hidden { display: none !important; }

body[data-page="admin"] .admin-breadcrumb {
  margin: 0;
  color: rgba(22, 26, 23, 0.48);
  font: 650 11px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[data-page="admin"] .admin-breadcrumb span { color: rgba(22, 26, 23, 0.78); }

body[data-page="admin"] .admin-side-identity {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(25, 28, 25, 0.08);
  border-radius: 14px;
  background: rgba(46, 83, 57, 0.045);
}
body[data-page="admin"] .admin-side-identity span {
  color: rgba(22, 26, 23, 0.48);
  font: 650 10px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[data-page="admin"] .admin-side-identity strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(22, 26, 23, 0.8);
  font: 650 12px/1.35 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="admin"] .admin-console[data-admin-loading="true"] .admin-feedback::before {
  content: "正在刷新数据";
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46, 83, 57, 0.08);
  color: var(--accent);
  font: 650 11px/1 var(--sans);
}
body[data-page="admin"] .admin-action-busy { cursor: progress !important; opacity: 0.72; }

body[data-page="admin"] .admin-data-unavailable {
  display: grid;
  gap: 8px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(141, 47, 32, 0.2);
  border-radius: 14px;
  background: rgba(141, 47, 32, 0.055);
  color: rgba(74, 31, 24, 0.86);
  font: 600 13px/1.5 var(--sans);
}
body[data-page="admin"] .admin-data-unavailable strong { color: #8d2f20; }
body[data-page="admin"] .admin-data-unavailable span { color: rgba(74, 31, 24, 0.7); }
body[data-page="admin"] .admin-data-unavailable .member-secondary { width: fit-content; min-height: 40px; }
body[data-page="admin"] .admin-summary > .admin-data-unavailable { grid-column: 1 / -1; }
body[data-page="admin"] .admin-wa-primary-badge,
body[data-page="admin"] .admin-wa-primary {
  border-color: rgba(46, 83, 57, 0.18);
  background: rgba(46, 83, 57, 0.08);
  color: #245b3a;
}

body[data-page="admin"] .admin-confirm-overlay {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 15, 13, 0.42);
}
body[data-page="admin"] .admin-confirm-overlay[hidden] { display: none !important; }
body[data-page="admin"] .admin-confirm-dialog {
  width: min(100%, 460px);
  border: 1px solid rgba(25, 28, 25, 0.12);
  border-radius: 18px;
  background: #fbfaf6;
  box-shadow: 0 30px 90px rgba(10, 14, 11, 0.26);
  padding: 24px;
}
body[data-page="admin"] .admin-confirm-dialog h2 {
  margin: 0;
  color: #151a16;
  font: 620 28px/1.05 var(--serif);
}
body[data-page="admin"] .admin-confirm-dialog p {
  margin: 12px 0 0;
  color: rgba(22, 26, 23, 0.66);
  font: 500 14px/1.65 var(--sans);
}
body[data-page="admin"] .admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
body[data-page="admin"] .admin-confirm-actions .admin-mini { min-height: 44px; }
body[data-page="admin"] .admin-confirm-actions .admin-mini-danger {
  background: #8d2f20 !important;
  border-color: #8d2f20 !important;
  color: #fff !important;
}

body[data-page="admin"] .admin-toast-stack {
  position: fixed;
  z-index: 190;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}
body[data-page="admin"] .admin-toast {
  padding: 12px 14px;
  border: 1px solid rgba(25, 28, 25, 0.12);
  border-radius: 12px;
  background: #17211b;
  box-shadow: 0 18px 42px rgba(15, 18, 15, 0.22);
  color: #fff;
  font: 600 13px/1.45 var(--sans);
}
body[data-page="admin"] .admin-toast.is-success { background: #245b3a; }
body[data-page="admin"] .admin-toast.is-warning { background: #805c1b; }
body[data-page="admin"] .admin-toast.is-error { background: #8d2f20; }

body[data-page="admin"] .admin-mini:focus-visible,
body[data-page="admin"] .admin-side nav button:focus-visible,
body[data-page="admin"] input:focus-visible,
body[data-page="admin"] select:focus-visible {
  outline: 3px solid rgba(46, 83, 57, 0.28);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  body[data-page="admin"] .admin-side-identity { margin-top: 0; }
  body[data-page="admin"] .admin-confirm-overlay {
    align-items: end;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  body[data-page="admin"] .admin-confirm-dialog { width: 100%; max-width: 520px; padding: 20px; }
  body[data-page="admin"] .admin-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body[data-page="admin"] .admin-toast-stack {
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 32px);
  }
}

/* ADMIN MOBILE RECORD CARDS — preserve desktop tables while giving phones a compact operational view. */
body[data-page="admin"] .admin-mobile-record-list { display: none; }

@media (max-width: 760px) {
  body[data-page="admin"] #adminUsersCard > .admin-table-wrap,
  body[data-page="admin"] #adminQuotesCard > .admin-table-wrap,
  body[data-page="admin"] #adminReferralsCard > .admin-table-wrap,
  body[data-page="admin"] #adminRewardsCard > .admin-table-wrap,
  body[data-page="admin"] #adminLogsCard > .admin-table-wrap {
    display: none !important;
  }

  body[data-page="admin"] .admin-mobile-record-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  body[data-page="admin"] .admin-mobile-record-card,
  body[data-page="admin"] .admin-mobile-record-empty {
    border: 1px solid rgba(25, 28, 25, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    padding: 14px;
  }

  body[data-page="admin"] .admin-mobile-record-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  body[data-page="admin"] .admin-mobile-record-card h3 {
    margin: 0;
    color: #161a17;
    font: 720 14px/1.35 var(--sans);
    overflow-wrap: anywhere;
  }

  body[data-page="admin"] .admin-mobile-record-card header p {
    margin: 4px 0 0;
    color: rgba(22, 26, 23, 0.52);
    font: 550 11px/1.45 var(--sans);
    overflow-wrap: anywhere;
  }

  body[data-page="admin"] .admin-mobile-record-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 14px 0 0;
  }

  body[data-page="admin"] .admin-mobile-record-card dl > div { min-width: 0; }
  body[data-page="admin"] .admin-mobile-record-card dt {
    color: rgba(22, 26, 23, 0.46);
    font: 650 10px/1.25 var(--mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  body[data-page="admin"] .admin-mobile-record-card dd {
    margin: 4px 0 0;
    color: rgba(22, 26, 23, 0.78);
    font: 600 12px/1.4 var(--sans);
    overflow-wrap: anywhere;
  }
  body[data-page="admin"] .admin-mobile-record-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
body[data-page="admin"] .admin-mobile-record-actions .admin-mini {
    min-height: 44px;
    justify-content: center;
  }
}

/* =============================================================
   Public structure and indexability refinement — 2026-07-30
   ============================================================= */
body[data-page="home"] .hero-full-bleed-final .hero-ctas {
  gap: 10px;
}

body[data-page="home"] .hero-full-bleed-final .hero-search-action {
  cursor: pointer;
}

@media (min-width: 761px) {
  body[data-page="home"] .hero-full-bleed-final {
    min-height: clamp(720px, calc(100svh - 116px), 860px);
  }
}

.standard-sig-link {
  text-decoration: none;
}

body[data-page="seo"] .seo-nav {
  gap: 20px;
}

body[data-page="seo"] .seo-nav a {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 13px 0 9px;
  background: transparent;
  box-shadow: inset 0 -1px 0 transparent;
}

body[data-page="seo"] .seo-nav a[aria-current="page"],
body[data-page="seo"] .seo-nav a:hover {
  border-color: transparent;
  box-shadow: inset 0 -1px 0 currentColor;
}

body[data-page="seo"] [data-inquiry-whatsapp][aria-disabled="true"] {
  cursor: progress;
  opacity: 0.62;
  pointer-events: none;
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-full-bleed-final .hero-shell {
    min-height: clamp(490px, 58svh, 520px);
  }

  body[data-page="home"] .hero-full-bleed-final .hero-ctas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="seo"] .seo-page-header {
    gap: 10px;
  }

  body[data-page="seo"] .seo-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0 12px;
  }

  body[data-page="seo"] .seo-nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    font-size: 0.82rem;
  }
}

/* ===== Catalog-page cart widget (add-to-cart + WhatsApp checkout bar) ===== */
.pepticore-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -12px 30px -10px rgba(15, 16, 17, 0.16);
  font-family: var(--sans);
}

.pepticore-cart-bar[hidden] { display: none; }

.pepticore-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 32px);
  cursor: pointer;
}

.pepticore-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pepticore-cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.pepticore-cart-subtotal { font-family: var(--mono); }

.pepticore-cart-note {
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
}

.pepticore-cart-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pepticore-cart-cta.is-enabled {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.45);
}

.pepticore-cart-cta.is-enabled:hover {
  background: var(--wa-ink);
  transform: translateY(-1px);
}

.pepticore-cart-cta.is-disabled {
  background: var(--bg-alt);
  color: var(--muted);
  cursor: not-allowed;
  border: 1px solid var(--line-2);
}

.pepticore-cart-panel {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) 16px;
  display: grid;
  gap: 10px;
}

.pepticore-cart-panel[hidden] { display: none; }

.pepticore-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}

.pepticore-cart-row-name { font-weight: 600; color: var(--ink); }
.pepticore-cart-row-meta { color: var(--muted); font-size: 12.5px; }

.pepticore-cart-row-remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.pepticore-cart-row-remove:hover { color: var(--ink); }

.pepticore-cart-clear {
  justify-self: start;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}

@media (max-width: 640px) {
  .pepticore-cart-summary { flex-wrap: wrap; }
  .pepticore-cart-cta { width: 100%; justify-content: center; }
}
