:root {
  --ink: #1f2d23;
  --muted: #5f705d;
  --paper: #f3f8ef;
  --paper-deep: #e4eddb;
  --line: #c5d5bb;
  --green: #244a35;
  --green-soft: #607f5b;
  --moss: #91a76c;
  --amber: #a8783f;
  --rosewood: #6f5a45;
  --white: #fbfff8;
  --danger: #9a4038;
  --leaf-pale: #edf5e8;
  --leaf-mist: #dce9d2;
  --earth-soft: #eadfcf;
  --bark: #3d5138;
  --shadow: 0 20px 54px rgba(33, 58, 39, 0.13);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 120;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  outline: 3px solid rgba(168, 120, 63, 0.62);
  outline-offset: 3px;
  transform: translateY(0);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(250, 255, 246, 0.98), rgba(228, 237, 219, 0.9)),
    var(--paper);
}

body.is-entry-active {
  overflow: hidden;
}

.brand-entry {
  position: fixed;
  z-index: 200;
  inset: 0;
  isolation: isolate;
  display: grid;
  min-height: 100dvh;
  overflow: hidden;
  place-items: center;
  color: #f4f7ed;
  background: #173524;
  clip-path: inset(0 0 0 0);
}

.brand-entry[hidden] {
  display: none;
}

.brand-entry-media,
.brand-entry-shade {
  position: absolute;
  inset: 0;
}

.brand-entry-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.055);
  animation: brand-entry-image 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}

.brand-entry-shade {
  background:
    radial-gradient(circle at 50% 44%, rgba(29, 71, 47, 0.38), rgba(11, 33, 21, 0.72) 72%),
    linear-gradient(180deg, rgba(12, 40, 25, 0.46), rgba(10, 31, 20, 0.78));
}

.brand-entry-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(720px, calc(100% - 40px));
  justify-items: center;
  gap: clamp(18px, 3vh, 28px);
  padding: 32px 20px;
  text-align: center;
}

.brand-entry-logo-reveal {
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: brand-entry-logo 560ms 130ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-entry-logo {
  width: min(430px, 72vw);
  height: auto;
  filter: brightness(1.12) drop-shadow(0 10px 24px rgba(3, 18, 10, 0.26));
}

.brand-entry-line {
  width: min(420px, 60vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 205, 107, 0.88) 18%, rgba(225, 205, 107, 0.88) 82%, transparent);
  opacity: 0;
  transform: scaleX(0.18);
  animation: brand-entry-line 480ms 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-entry-copy {
  opacity: 0;
  transform: translateY(14px);
  animation: brand-entry-copy 520ms 310ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-entry-copy h1 {
  margin: 0;
  color: #fbfcf7;
  font-size: clamp(1.85rem, 4.2vw, 3.35rem);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(4, 20, 12, 0.34);
}

.brand-entry-copy p {
  margin: 12px 0 0;
  color: rgba(247, 249, 239, 0.88);
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.brand-entry.is-exiting {
  animation: brand-entry-curtain 460ms cubic-bezier(0.76, 0, 0.24, 1) both;
  pointer-events: none;
  will-change: clip-path;
}

body.is-entry-active .site-header {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

body.is-entry-active .skip-link {
  visibility: hidden;
}

@keyframes brand-entry-image {
  from {
    transform: scale(1.055);
  }
  to {
    transform: scale(1);
  }
}

@keyframes brand-entry-logo {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.45;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes brand-entry-line {
  from {
    opacity: 0;
    transform: scaleX(0.18);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes brand-entry-copy {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-entry-curtain {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(0 0 100% 0);
  }
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(197, 213, 187, 0.86);
  background: rgba(250, 255, 246, 0.93);
  backdrop-filter: blur(16px);
  transition:
    opacity 280ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-mark {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.brand-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--white);
  border-radius: 999px;
  background: var(--green);
  font-weight: 700;
}

.brand-mark.has-logo {
  gap: 0;
}

.brand-mark.has-logo .brand-symbol {
  width: clamp(128px, 22vw, 180px);
  height: 48px;
  border-radius: 0;
  background: transparent;
}

.brand-mark.has-logo .brand-text {
  display: none;
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  user-select: none;
  object-fit: cover;
}

.brand-mark.has-logo .brand-symbol img {
  object-fit: contain;
}

.brand-text,
.brand-mark strong {
  display: block;
}

.brand-mark strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.main-nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  order: 3;
  overflow-x: auto;
}

.main-nav a,
.admin-shortcut,
.cart-trigger,
.pill-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  border-radius: 8px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--green);
  border: 1px solid transparent;
  white-space: nowrap;
}

.main-nav a.is-active,
.admin-shortcut.is-active {
  background: var(--green);
  color: var(--white);
}

.admin-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border: 1px solid rgba(36, 74, 53, 0.32);
  background: rgba(251, 255, 248, 0.9);
  padding: 0 14px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--white);
  background: var(--bark);
  padding: 0 12px;
}

.cart-trigger:focus-visible,
.main-nav a:focus-visible,
.admin-shortcut:focus-visible,
.pill-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.danger-button:focus-visible,
.filter-chip:focus-visible,
.product-description-toggle:focus-visible,
.guide-inline-link:focus-visible,
.icon-button:focus-visible,
.tab-button:focus-visible,
.order-sort-button:focus-visible,
.quantity-control button:focus-visible {
  outline: 3px solid rgba(168, 120, 63, 0.5);
  outline-offset: 3px;
}

.cart-trigger strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
}

.page {
  min-height: calc(100vh - 112px);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(460px, 68vh, 620px);
  align-items: end;
  overflow: hidden;
  background: var(--hero-image) center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 50, 34, 0.82) 0%, rgba(31, 73, 45, 0.52) 42%, rgba(31, 73, 45, 0.1) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  padding: clamp(28px, 6vw, 74px) clamp(18px, 5vw, 64px);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #f1f7e8;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  width: min(700px, 100%);
  margin: 0;
  font-size: clamp(2.35rem, 9vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  width: min(560px, 100%);
  margin: 18px 0 0;
  color: rgba(251, 255, 248, 0.92);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pill-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-button {
  color: var(--white);
  background: var(--green);
}

.secondary-button {
  color: var(--green);
  background: var(--leaf-mist);
  border: 1px solid #bacdad;
}

.ghost-button {
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(36, 74, 53, 0.3);
}

.hero .ghost-button {
  color: #ffffff;
  background: #769a72;
  border-color: rgba(118, 154, 114, 0.9);
  box-shadow: 0 10px 24px rgba(24, 50, 34, 0.18);
}

.hero .ghost-button:hover {
  background: #66885f;
}

.danger-button {
  color: var(--white);
  background: var(--danger);
}

.pill-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.cart-trigger:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.section {
  scroll-margin-top: 112px;
  padding: clamp(36px, 7vw, 82px) clamp(16px, 5vw, 64px);
}

.section.alt {
  background: #eaf2e1;
}

.section-head {
  display: grid;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
}

.section-head h2,
.admin-heading h1,
.checkout h1,
.success h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.section-head p,
.admin-heading p,
.checkout-intro,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.product-grid,
.course-grid,
.guide-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-filter-row {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.shop-toolbar {
  display: flex;
  width: min(1180px, 100%);
  margin: -8px auto 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.shop-toolbar p {
  margin: 0;
}

.shop-toolbar strong {
  color: var(--green);
  font-size: 1.05rem;
}

.shop-toolbar span {
  color: #526a45;
  font-weight: 700;
}

.filter-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9cda9;
  border-radius: 8px;
  background: rgba(251, 255, 248, 0.9);
  color: var(--green);
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-chip.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.product-card,
.course-card,
.guide-card,
.stat-tile,
.admin-panel,
.checkout-panel,
.success-panel {
  border: 1px solid rgba(197, 213, 187, 0.92);
  border-radius: 8px;
  background: rgba(251, 255, 248, 0.9);
  box-shadow: 0 12px 34px rgba(33, 58, 39, 0.08);
}

.product-card,
.course-card,
.guide-card {
  overflow: hidden;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.product-card .card-body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.media-box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(96, 127, 91, 0.28), rgba(145, 167, 108, 0.2)),
    var(--leaf-mist);
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-x, 50%) var(--image-y, 50%);
  transform: scale(var(--image-zoom, 1));
  transform-origin: var(--image-x, 50%) var(--image-y, 50%);
}

.fallback-media {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 28px;
  color: var(--green);
  font-weight: 700;
  text-align: center;
}

.status-badge,
.kind-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.no-wrap-label {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
}

.status-badge.no-wrap-label,
.kind-badge.no-wrap-label {
  flex-shrink: 0;
}

.status-badge {
  color: var(--green);
  background: #dfead6;
}

.status-badge.is-live {
  color: #6d443b;
  background: #f1dccb;
}

.status-badge.status-unread {
  color: #7b514b;
  background: #f5d8ce;
}

.status-badge.status-read {
  color: #56624c;
  background: #e4ead7;
}

.status-badge.status-payment,
.status-card.status-payment {
  color: #7a5133;
  background: #fff1cf;
  border-color: #e2c37c;
}

.status-badge.status-shipping,
.status-card.status-shipping {
  color: #234f65;
  background: #dcecf1;
  border-color: #a9c8d2;
}

.status-badge.status-complete,
.status-card.status-complete {
  color: #294738;
  background: #dfeddf;
  border-color: #aac9ad;
}

.status-badge.status-cancelled,
.status-card.status-cancelled {
  color: #7a3232;
  background: #f2dddd;
  border-color: #d6aaaa;
}

.kind-badge {
  color: #4f5f2f;
  background: #e6efd7;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  color: #4f5f2f;
  background: #e6efd7;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.card-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.card-top > div {
  min-width: min(220px, 100%);
  flex: 1 1 180px;
}

.card-body h3 {
  margin: 0;
  color: var(--green);
  font-size: 1.18rem;
}

#products .product-card .card-body {
  gap: 12px;
}

#products .product-card .card-top {
  display: block;
}

#products .product-card .card-top > div {
  display: grid;
  min-width: 0;
  gap: 10px;
}

#products .product-card .kind-badge {
  width: max-content;
  max-width: 100%;
}

#products .product-card .card-body h3 {
  min-height: 2.8em;
  line-height: 1.4;
}

.product-history-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(215, 189, 135, 0.16);
  border-left: 3px solid var(--cabinet-brass, #b38d58);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(179, 141, 88, 0.16), rgba(179, 141, 88, 0.045));
  padding: 9px 11px;
}

.product-history-note .product-former-name {
  display: block;
  color: var(--cabinet-brass-light, #d7bd87);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.product-history-note .product-former-name strong {
  color: inherit;
  font-weight: 900;
}

.product-history-note .product-continuity-note {
  display: block;
  color: var(--cabinet-ink, #eee9dc);
  font-size: 0.82rem;
  line-height: 1.55;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

#products .product-description {
  display: -webkit-box;
  min-height: 5.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#products .product-card.is-description-expanded .product-description {
  display: block;
  min-height: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.product-description-toggle {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  padding: 0 0 2px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.guide-inline-link {
  width: max-content;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.price-row,
.summary-row,
.line-row,
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-card .price-row .pill-button,
.course-card .pill-button {
  min-width: 144px;
}

.product-card .select-line {
  margin-top: auto;
}

.pill-button,
.secondary-button,
.ghost-button,
.danger-button,
.tab-button,
.order-sort-button,
.cart-trigger {
  white-space: nowrap;
  word-break: keep-all;
}

.price-row strong,
.summary-row strong,
.total-price {
  color: var(--green);
}

.select-line,
.form-field {
  display: grid;
  gap: 7px;
}

.select-line label,
.form-field label,
.field-label {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9cda9;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

button:disabled,
.pill-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

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

select:focus,
input:focus,
textarea:focus {
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(96, 127, 91, 0.2);
}

.story-band {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 24px;
  align-items: center;
}

.story-image {
  min-height: 320px;
  border-radius: 8px;
  background: var(--class-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.story-copy {
  display: grid;
  gap: 16px;
}

.story-copy h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.65rem, 4vw, 2.6rem);
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.guide-section {
  background:
    linear-gradient(180deg, rgba(251, 255, 248, 0.58), rgba(228, 237, 219, 0.94)),
    var(--paper);
}

.guide-card {
  display: grid;
  grid-template-columns: 1fr;
}

.guide-media {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(96, 127, 91, 0.2), rgba(145, 167, 108, 0.22)),
    var(--leaf-mist);
}

.guide-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.guide-body {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 26px);
}

.guide-heading {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.guide-body h3 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.guide-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.guide-list {
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background: rgba(247, 252, 242, 0.82);
  padding: 14px;
}

.guide-list strong {
  display: block;
  color: var(--green);
  margin-bottom: 8px;
}

.guide-list ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.guide-list.is-caution {
  background: #f7f2e8;
  border-color: #d9c8a8;
}

.guide-link {
  margin-top: 4px;
}

.cart-panel {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-panel.is-open {
  pointer-events: auto;
  opacity: 1;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 24, 0.42);
}

.cart-sheet {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  width: min(460px, 100%);
  max-height: 100%;
  min-height: 100%;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(18px);
  transition: transform 180ms ease;
}

.cart-panel.is-open .cart-sheet {
  transform: translateX(0);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h2 {
  margin: 0;
  color: var(--green);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--leaf-mist);
  font-size: 1.45rem;
  line-height: 1;
}

#cart-content {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-actions .pill-button,
.cart-actions .ghost-button {
  flex: 1 1 150px;
  justify-content: center;
}

.cart-next-step {
  margin: 0;
  border: 1px solid rgba(36, 74, 53, 0.18);
  border-radius: 8px;
  background: rgba(220, 233, 210, 0.7);
  color: var(--green);
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.cart-item {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 36px 44px 36px;
  align-items: center;
  border: 1px solid #b9cda9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.quantity-control button {
  height: 36px;
  color: var(--green);
  background: transparent;
  font-size: 1.2rem;
}

.quantity-control span {
  text-align: center;
  font-weight: 700;
}

.checkout,
.success,
.admin-page,
.addons-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 66px) clamp(16px, 5vw, 38px);
}

.addons-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.addons-page h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.addons-heading p:last-child {
  width: min(680px, 100%);
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.addon-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.addon-grid {
  width: 100%;
  margin: 0;
}

.addon-layout .addon-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.product-card.is-addon {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.product-card.is-addon .card-body {
  grid-template-rows: auto auto auto 1fr;
}

.product-card.is-addon .price-row {
  align-self: end;
}

.product-card.is-addon .price-row .pill-button {
  min-width: 136px;
}

.product-card.is-addon .media-box {
  background:
    linear-gradient(135deg, rgba(96, 127, 91, 0.22), rgba(168, 120, 63, 0.15)),
    var(--paper-deep);
}

.course-card-topic {
  display: grid;
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(251, 255, 248, 0.98), rgba(231, 240, 223, 0.94)),
    var(--white);
  box-shadow: 0 20px 52px rgba(33, 58, 39, 0.12);
}

.topic-course-visual {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(circle at 22% 18%, rgba(145, 167, 108, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(96, 127, 91, 0.24), rgba(168, 120, 63, 0.16));
}

.topic-media {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}

.topic-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(35, 63, 48, 0.04), rgba(251, 255, 248, 0.18)),
    repeating-linear-gradient(45deg, rgba(251, 255, 248, 0.13) 0 1px, transparent 1px 12px);
  pointer-events: none;
}

.five-element-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(251, 255, 248, 0.76);
  border-radius: 999px;
  background: rgba(251, 255, 248, 0.9);
  box-shadow: 0 12px 28px rgba(24, 50, 34, 0.18);
  color: var(--green);
}

.five-element-chip span {
  color: #607342;
  font-size: 0.78rem;
  font-weight: 700;
}

.five-element-chip strong {
  font-size: 1.9rem;
  line-height: 1;
}

.course-card-topic .card-body {
  gap: 15px;
  padding: clamp(20px, 4vw, 32px);
}

.course-card-topic .card-body h3 {
  font-size: clamp(1.28rem, 2.7vw, 1.72rem);
  line-height: 1.35;
}

.course-card-topic .card-body > p:not(.topic-disclaimer) {
  color: var(--muted);
  line-height: 1.85;
}

.course-flow {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(251, 255, 248, 0.92), rgba(237, 245, 232, 0.88)),
    var(--leaf-pale);
  padding: clamp(14px, 3vw, 18px);
}

.flow-step > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
}

.flow-step em {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-style: normal;
  font-size: 0.82rem;
}

.topic-note {
  border-left: 3px solid rgba(96, 127, 91, 0.62);
  color: var(--muted);
  line-height: 1.75;
  padding-left: 12px;
}

.topic-disclaimer {
  border: 1px solid rgba(197, 213, 187, 0.72);
  border-radius: 8px;
  background: rgba(237, 245, 232, 0.72);
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.75;
  padding: 10px 12px;
}

.service-meta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(197, 213, 187, 0.68);
  padding-bottom: 10px;
}

.service-meta span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.service-meta strong {
  color: var(--green);
  line-height: 1.6;
}

.topic-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid rgba(197, 213, 187, 0.74);
  padding-top: 14px;
}

.topic-price-row .total-price {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.addon-summary {
  display: grid;
  gap: 14px;
}

.addon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkout-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.checkout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.checkout-heading h1 {
  margin: 0;
}

.checkout-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.loading-page {
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: center;
  padding: clamp(28px, 6vw, 66px) clamp(16px, 5vw, 38px);
}

.loading-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background: rgba(251, 255, 248, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(760px, 100%);
  margin: 0 0 20px;
  gap: 8px;
}

.checkout-step {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b9cda9;
  border-radius: 8px;
  background: rgba(251, 255, 248, 0.82);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-step em {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--leaf-mist);
  color: var(--green);
  font-style: normal;
  font-size: 0.78rem;
}

.checkout-step.is-done {
  border-color: rgba(36, 74, 53, 0.32);
  color: var(--green);
}

.checkout-step.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.checkout-step.is-active em {
  background: var(--white);
  color: var(--green);
}

.checkout-panel,
.success-panel,
.admin-panel {
  padding: clamp(18px, 4vw, 28px);
}

.checkout-form-section {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid rgba(197, 213, 187, 0.78);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.checkout-form-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.checkout-form-section h2 {
  margin: 0;
  color: var(--green);
  font-size: 1.18rem;
}

.success-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.success-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 252, 242, 0.84);
  padding: 12px;
}

.success-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.success-summary strong {
  color: var(--green);
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.error-text {
  color: var(--danger);
  font-weight: 700;
}

.payment-box,
.line-notice {
  border: 1px dashed #aebf9d;
  border-radius: 8px;
  background: #f7f2e8;
  padding: 14px;
}

.line-pay-qr,
.payment-qr-preview img {
  width: min(180px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.payment-actions,
.payment-qr-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.course-admin-preview {
  overflow: hidden;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--leaf-mist);
}

.course-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-box h3,
.admin-panel h2,
.checkout-panel h2 {
  margin: 0 0 12px;
  color: var(--green);
}

.payment-box p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.65;
}

.summary-box {
  display: grid;
  gap: 12px;
}

.summary-item {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  border-top: 2px solid var(--line);
  padding-top: 12px;
  font-size: 1.15rem;
}

.admin-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab-button {
  min-height: 42px;
  border: 1px solid #b9cda9;
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  padding: 0 14px;
  white-space: nowrap;
}

.tab-button.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

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

.stat-grid {
  display: grid;
  gap: 12px;
}

.stat-tile {
  padding: 16px;
}

.stat-tile strong {
  display: block;
  color: var(--green);
  font-size: 1.7rem;
}

.status-dashboard,
.order-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-filter-row .tab-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: auto;
  touch-action: manipulation;
}

.order-filter-row .tab-button strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(36, 74, 53, 0.1);
  font-size: 0.76rem;
}

.order-filter-row .tab-button.is-active strong {
  background: rgba(255, 255, 255, 0.2);
}

.order-admin-heading {
  align-items: flex-start;
}

.order-admin-heading h2 {
  margin-bottom: 4px;
}

.order-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.order-sort-control {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(185, 205, 169, 0.95);
  border-radius: 10px;
  background: rgba(239, 245, 232, 0.82);
  padding: 4px;
}

.order-sort-label {
  padding: 0 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.order-sort-button {
  min-height: 34px;
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  padding: 0 11px;
  font-size: 0.86rem;
  font-weight: 800;
}

.order-sort-button.is-active {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 5px 14px rgba(36, 74, 53, 0.16);
}

.status-card {
  display: grid;
  min-width: 150px;
  flex: 1 1 150px;
  gap: 8px;
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  padding: 16px;
  text-align: left;
}

.status-card strong {
  font-size: 1.65rem;
}

.status-card.is-attention {
  color: #6f4d2e;
  background: #f8efe1;
  border-color: #d6b88c;
}

.manager-list {
  display: grid;
  gap: 14px;
}

.manager-row {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.category-order-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background: rgba(247, 252, 242, 0.82);
  padding: 14px;
}

.category-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-order-head strong {
  color: var(--green);
  font-size: 1.05rem;
}

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

.category-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid rgba(197, 213, 187, 0.72);
  padding-top: 10px;
}

.category-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.category-count {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 127, 91, 0.22);
  border-radius: 8px;
  background: rgba(96, 127, 91, 0.12);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 12px;
  white-space: nowrap;
}

.course-topic-admin {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background: rgba(247, 252, 242, 0.82);
  padding: 14px;
}

.course-topic-admin h3 {
  margin: 0 0 4px;
  color: var(--green);
}

.course-topic-list {
  display: grid;
  gap: 12px;
}

.course-topic-row {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background: rgba(251, 255, 248, 0.9);
  padding: 14px;
}

.topic-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topic-admin-preview {
  overflow: hidden;
  width: min(360px, 100%);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--leaf-mist);
}

.topic-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-topic-options {
  display: grid;
  gap: 10px;
}

.course-topic-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 40px;
  gap: 8px;
  align-items: end;
}

.image-tuning {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(197, 213, 187, 0.9);
  border-radius: 8px;
  background: rgba(247, 252, 242, 0.82);
  padding: 12px;
}

.image-preview-box {
  width: min(360px, 100%);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(96, 127, 91, 0.18), rgba(168, 120, 63, 0.12)),
    var(--paper-deep);
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-x, 50%) var(--image-y, 50%);
  transform: scale(var(--image-zoom, 1));
  transform-origin: var(--image-x, 50%) var(--image-y, 50%);
}

.image-control-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.range-field {
  display: grid;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
}

.range-field input {
  width: 100%;
  accent-color: var(--green);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.spec-row {
  display: grid;
  grid-template-columns: 1fr 120px 40px;
  gap: 8px;
  align-items: end;
}

.switch-line {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-weight: 700;
}

.switch-line input {
  width: 18px;
  height: 18px;
}

.order-list {
  display: grid;
  gap: 14px;
}

.order-card {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.order-card.is-unread {
  border-top-color: #c88f7d;
  background: rgba(255, 249, 237, 0.78);
  padding: 16px;
  border-radius: 8px;
}

.order-card.is-unread > .price-row strong,
.order-card.is-unread .form-grid strong,
.order-card.is-unread > div > strong {
  font-weight: 800;
}

.order-card.is-unread .muted {
  color: #3f3a31;
  font-weight: 700;
}

.order-card.is-read {
  opacity: 0.78;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-image {
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-admin-preview {
  display: inline-grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.logo-admin-preview.has-logo {
  width: min(220px, 100%);
  height: 72px;
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.logo-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-admin-preview.has-logo img {
  object-fit: contain;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(41, 71, 56, 0.24);
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 26px;
  border: 1px dashed #cabda6;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: minmax(240px, 1fr) auto auto;
  }

  .main-nav {
    grid-column: auto;
    order: 0;
  }

  .product-grid,
  .course-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-card {
    grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  }

  .course-card-topic {
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  }

  .story-band {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
  }

  .addon-layout {
    grid-template-columns: minmax(0, 760px) minmax(300px, 360px);
    justify-content: center;
    gap: 30px;
  }

  .addon-summary {
    position: sticky;
    top: 92px;
  }

  .form-grid.two,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 1100px) {
  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .brand-entry-content {
    width: calc(100% - 28px);
    gap: 18px;
    padding: 24px 14px;
  }

  .brand-entry-media img {
    object-position: 51% center;
  }

  .brand-entry-logo {
    width: min(320px, 78vw);
  }

  .brand-entry-copy h1 {
    font-size: clamp(1.65rem, 7.4vw, 2.05rem);
    letter-spacing: 0.055em;
  }

  .brand-entry-copy p {
    letter-spacing: 0.08em;
  }

  .site-header {
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
  }

  .section {
    scroll-margin-top: 152px;
  }

  .page > .section:first-child,
  #app > .checkout,
  #app > .success,
  #app > .admin-page,
  #app > .addons-page,
  #app > .loading-page {
    padding-top: calc(clamp(36px, 7vw, 82px) + 142px);
  }

  #products .section-head {
    margin-bottom: 16px;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 4px;
    font-size: 0.84rem;
  }

  #products .product-grid {
    gap: 10px;
  }

  #products .product-card {
    min-width: 0;
  }

  #products .product-card .media-box {
    aspect-ratio: 4 / 3;
  }

  #products .product-card .card-body {
    gap: 8px;
    padding: 9px;
  }

  #products .product-card .card-top {
    display: grid;
    gap: 0;
  }

  #products .product-card .card-top > div {
    display: grid;
    gap: 7px;
    min-width: 0;
  }

  #products .product-card .status-badge {
    display: none;
  }

  #products .product-card .kind-badge {
    min-height: 24px;
    width: max-content;
    max-width: 100%;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  #products .product-card .card-body h3 {
    font-size: 1rem;
    line-height: 1.32;
    min-height: 2.64em;
  }

  #products .product-card .card-body p {
    -webkit-line-clamp: 2;
    min-height: 2.84em;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  #products .product-card .guide-inline-link {
    font-size: 0.8rem;
  }

  #products .product-card .select-line {
    gap: 5px;
  }

  #products .product-card .select-line span {
    display: none;
  }

  #products .product-card select {
    min-height: 44px;
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  #products .product-card .price-row {
    display: grid;
    gap: 8px;
    align-items: stretch;
  }

  #products .product-card .price-row strong {
    font-size: 1rem;
  }

  #products .product-card .price-row .pill-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .category-filter-row {
    margin-bottom: 12px;
  }

  .filter-chip {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-step {
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .checkout-heading {
    display: grid;
    gap: 14px;
  }

  .checkout-heading-actions {
    justify-content: stretch;
  }

  .checkout-heading-actions .ghost-button,
  .checkout-heading-actions .secondary-button {
    flex: 1 1 150px;
  }

  #checkout-summary {
    order: -1;
  }

  .cart-sheet {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-entry-media img {
    animation: none;
  }

  .brand-entry-media img,
  .brand-entry-copy {
    transform: none;
  }

  .brand-entry-logo-reveal {
    clip-path: none;
  }

  .brand-entry-logo-reveal,
  .brand-entry-line,
  .brand-entry-copy {
    animation: brand-entry-reduced-in 140ms ease-out both;
  }

  .brand-entry-line {
    transform: scaleX(1);
  }

  .brand-entry.is-exiting {
    animation: brand-entry-fade 180ms ease-out both;
  }
}

@keyframes brand-entry-reduced-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes brand-entry-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 520px) {
  .order-admin-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .order-admin-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .cart-trigger {
    min-width: 94px;
    padding: 0 10px;
    gap: 7px;
    font-size: 0.92rem;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(31, 47, 36, 0.58), rgba(31, 47, 36, 0.86));
  }

  .hero {
    min-height: clamp(480px, 66svh, 560px);
  }

  .hero-actions .pill-button,
  .hero-actions .secondary-button,
  .hero-actions .ghost-button,
  .checkout .pill-button,
  .checkout .secondary-button,
  .checkout .ghost-button,
  .addon-actions .pill-button,
  .addon-actions .secondary-button {
    width: 100%;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .category-row {
    grid-template-columns: 1fr;
  }

  .course-topic-option-row {
    grid-template-columns: 1fr;
  }

  .five-element-chip {
    width: 78px;
    height: 78px;
  }

  .five-element-chip strong {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media {
    display: none;
  }
}

.site-header.glass-surface .main-nav a,
.site-header.glass-surface .cart-trigger {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(28, 66, 43, 0.12),
    0 6px 14px rgba(22, 47, 31, 0.08);
}

.site-header.glass-surface .main-nav a.is-active {
  background: rgba(27, 69, 45, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(22, 55, 36, 0.18);
}

body[data-customer-mode="returning"] .site-header.glass-surface .cart-trigger {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

/* React Bits GlassSurface, adapted for the native site header. */
.site-header.glass-surface {
  --glass-pointer-x: 50%;
  --glass-pointer-y: 0%;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.64);
  background: transparent;
  box-shadow:
    0 0 2px 1px rgba(24, 50, 33, 0.08) inset,
    0 0 10px 4px rgba(255, 255, 255, 0.16) inset,
    0 8px 24px rgba(17, 36, 24, 0.1),
    0 18px 48px rgba(17, 36, 24, 0.13);
}

.site-header.glass-surface::before,
.site-header.glass-surface::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.site-header.glass-surface::before {
  background:
    radial-gradient(
      420px 150px at var(--glass-pointer-x) var(--glass-pointer-y),
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.08) 46%,
      transparent 72%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%, rgba(212, 230, 202, 0.08));
  opacity: 0.72;
  transition: opacity 360ms ease;
}

.site-header.glass-surface.is-glass-active::before {
  opacity: 1;
}

.site-header.glass-surface::after {
  border: 0;
  box-shadow: none;
}

.glass-surface__filter {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-header > .brand-mark,
.site-header > .main-nav,
.site-header > .cart-trigger {
  position: relative;
  z-index: 1;
}

.site-header > .cabinet-header-title {
  z-index: 1;
}

.site-header.glass-surface .brand-mark.has-logo .brand-symbol {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0 4px 8px rgba(18, 44, 27, 0.4));
}

.site-header.glass-surface--svg {
  background: rgba(248, 251, 246, 0.48);
  -webkit-backdrop-filter: url("#site-header-glass-filter") saturate(1.68) blur(14px) brightness(1.06);
  backdrop-filter: url("#site-header-glass-filter") saturate(1.68) blur(14px) brightness(1.06);
}

.site-header.glass-surface--fallback {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(248, 251, 246, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.78) brightness(1.06);
  backdrop-filter: blur(22px) saturate(1.78) brightness(1.06);
}

.site-header .main-nav a,
.site-header .cart-trigger {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(28, 66, 43, 0.12),
    0 6px 14px rgba(22, 47, 31, 0.08);
}

.site-header .main-nav a {
  background: rgba(255, 255, 255, 0.08);
}

.site-header .main-nav a.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(27, 69, 45, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(22, 55, 36, 0.18);
}

.site-header .cart-trigger {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(44, 76, 48, 0.82);
}

@media (hover: hover) {
  .site-header .main-nav a:hover,
  .site-header .cart-trigger:hover {
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.52),
      inset 0 -1px 0 rgba(28, 66, 43, 0.1),
      0 9px 20px rgba(22, 47, 31, 0.14);
    transform: translateY(-1px);
  }
}

body.cabinet-entry-active .site-header.glass-surface--svg,
body[data-customer-mode="returning"] .site-header.glass-surface--svg {
  border-color: rgba(215, 189, 135, 0.24);
  background: rgba(8, 14, 10, 0.38);
  -webkit-backdrop-filter: url("#site-header-glass-filter") saturate(1.38) blur(16px) brightness(0.82);
  backdrop-filter: url("#site-header-glass-filter") saturate(1.38) blur(16px) brightness(0.82);
}

body.cabinet-entry-active .site-header.glass-surface--fallback,
body[data-customer-mode="returning"] .site-header.glass-surface--fallback {
  border-color: rgba(215, 189, 135, 0.22);
  background: rgba(8, 14, 10, 0.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.34) brightness(0.82);
  backdrop-filter: blur(24px) saturate(1.34) brightness(0.82);
}

body.cabinet-entry-active .site-header.glass-surface .brand-mark.has-logo .brand-symbol,
body[data-customer-mode="returning"] .site-header.glass-surface .brand-mark.has-logo .brand-symbol {
  filter:
    brightness(1.14)
    saturate(1.12)
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.16))
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.52));
}

body.cabinet-entry-active .site-header.glass-surface::before,
body[data-customer-mode="returning"] .site-header.glass-surface::before {
  background:
    radial-gradient(
      420px 150px at var(--glass-pointer-x) var(--glass-pointer-y),
      rgba(228, 208, 164, 0.16),
      rgba(215, 189, 135, 0.03) 48%,
      transparent 72%
    ),
    linear-gradient(135deg, rgba(241, 226, 191, 0.09), transparent 44%, rgba(128, 107, 70, 0.06));
}

body.cabinet-entry-active .site-header.glass-surface::after,
body[data-customer-mode="returning"] .site-header.glass-surface::after {
  border-color: transparent;
  box-shadow: none;
}

body[data-customer-mode="returning"] .site-header .cart-trigger {
  border-color: rgba(215, 189, 135, 0.24);
  color: var(--cabinet-ink);
  background: rgba(179, 141, 88, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header.glass-surface--fallback {
    background: rgba(244, 250, 240, 0.9);
  }

  body.cabinet-entry-active .site-header.glass-surface--fallback,
  body[data-customer-mode="returning"] .site-header.glass-surface--fallback {
    background: rgba(8, 14, 10, 0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.glass-surface::before,
  .site-header .main-nav a,
  .site-header .cart-trigger {
    transition-duration: 1ms !important;
  }
}

/* Secret cabinet local-preview experience */
:root {
  --cabinet-night: #0b100d;
  --cabinet-panel: #131b15;
  --cabinet-panel-soft: #1b261e;
  --cabinet-ink: #eee9dc;
  --cabinet-muted: #aab3a4;
  --cabinet-moss: #738263;
  --cabinet-brass: #b38d58;
  --cabinet-brass-light: #d7bd87;
  --cabinet-line: rgba(215, 189, 135, 0.2);
  --cabinet-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header {
  position: fixed;
  top: 12px;
  left: clamp(12px, 2.2vw, 30px);
  right: clamp(12px, 2.2vw, 30px);
  width: auto;
  border: 0;
  border-radius: 8px;
  background: rgba(244, 250, 240, 0.58);
  box-shadow: 0 18px 42px rgba(21, 43, 29, 0.16);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}

.site-header .main-nav a,
.site-header .cart-trigger {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-header .main-nav a.is-active {
  background: rgba(30, 74, 50, 0.9);
}

.brand-mark:focus-visible {
  outline: none;
}

.brand-mark:focus-visible .brand-symbol {
  outline: 2px solid rgba(168, 120, 63, 0.72);
  outline-offset: 3px;
}

.hero {
  min-height: 100svh;
}

.page > .section:first-child,
#app > .checkout,
#app > .success,
#app > .admin-page,
#app > .addons-page,
#app > .loading-page {
  padding-top: calc(clamp(36px, 7vw, 82px) + 92px);
}

body,
.site-header,
#app,
.cart-sheet {
  transition:
    background-color 760ms ease,
    color 760ms ease,
    border-color 760ms ease,
    filter 760ms ease;
}

.site-header {
  transition:
    background-color 760ms ease,
    color 760ms ease,
    border-color 760ms ease,
    filter 760ms ease,
    opacity 280ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-mark.has-logo .brand-symbol {
  position: relative;
  width: 108px;
  height: 46px;
  overflow: visible;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.brand-mark.has-logo .brand-symbol img {
  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 680ms var(--cabinet-ease),
    filter 420ms ease;
}

.brand-mark.has-logo .brand-symbol::after {
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 8px;
  padding: 1px;
  background: conic-gradient(
    from -90deg,
    var(--amber) calc(var(--cabinet-hold, 0) * 1turn),
    transparent 0
  );
  content: "";
  opacity: var(--cabinet-hold-opacity, 0);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 260ms ease;
}

.brand-mark.has-logo .brand-symbol.is-cabinet-holding img {
  filter: saturate(0.88) brightness(1.04);
  transform: scale(1.015);
}

body.cabinet-logo-released .brand-symbol img {
  opacity: 0;
  filter: blur(7px);
  transform: scale(0.48) rotate(-4deg);
}

body.cabinet-entry-active #app {
  filter: brightness(0.62) saturate(0.68);
  pointer-events: none;
}

body.cabinet-entry-active .site-header {
  border-bottom-color: rgba(179, 141, 88, 0.18);
  background: rgba(13, 20, 15, 0.9);
}

body.cabinet-entry-active .main-nav,
body.cabinet-entry-active .cart-trigger {
  opacity: 0.28;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.cabinet-header-title {
  display: none;
  margin: 0;
}

.cabinet-flight-token {
  --cabinet-flight-x: 0px;
  --cabinet-flight-y: 0px;
  --cabinet-flight-scale: 1;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 72;
  display: none;
  width: 118px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: grab;
  opacity: 0;
  touch-action: none;
  transform: translate3d(var(--cabinet-flight-x), var(--cabinet-flight-y), 0)
    scale(var(--cabinet-flight-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.cabinet-flight-token.is-visible {
  display: block;
  opacity: 1;
}

.cabinet-flight-token.is-awakening {
  animation: cabinet-flight-wake 980ms var(--cabinet-ease) both;
}

.cabinet-flight-token.is-ready {
  filter: drop-shadow(0 12px 20px rgba(17, 28, 21, 0.38));
}

.cabinet-flight-token.is-dragging {
  cursor: grabbing;
  transition: none;
}

.cabinet-flight-token.is-returning {
  transition: transform 620ms var(--cabinet-ease);
}

.cabinet-flight-token.is-arriving {
  opacity: 0;
  transition:
    transform 980ms var(--cabinet-ease),
    opacity 320ms ease 720ms;
}

.cabinet-flight-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.cabinet-flight-logo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 7px rgba(11, 16, 13, 0.42));
  object-fit: contain;
}

.cabinet-flight-ring {
  display: none;
}

.cabinet-flight-token.is-ready .cabinet-flight-ring,
.cabinet-flight-token.is-dragging .cabinet-flight-ring {
  opacity: 1;
  transform: scale(1);
}

.cabinet-flight-path {
  --cabinet-path-x: 0px;
  --cabinet-path-y: 0px;
  --cabinet-path-length: 0px;
  --cabinet-path-angle: 0rad;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 71;
  width: var(--cabinet-path-length);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(168, 120, 63, 0.02),
    rgba(168, 120, 63, 0.2) 16%,
    rgba(215, 189, 135, 0.58)
  );
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--cabinet-path-x), var(--cabinet-path-y), 0)
    rotate(var(--cabinet-path-angle));
  transform-origin: 0 50%;
  transition:
    opacity 760ms ease,
    width 110ms linear;
}

.cabinet-flight-path::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 18px,
    rgba(215, 189, 135, 0.72) 18px 19px,
    transparent 19px 28px
  );
  background-size: 56px 100%;
  content: "";
  filter: drop-shadow(0 0 3px rgba(168, 120, 63, 0.3));
  animation: cabinet-path-flow 3.6s linear infinite;
}

.cabinet-flight-path::after {
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--cabinet-brass-light);
  border-right: 1px solid var(--cabinet-brass-light);
  content: "";
  filter: drop-shadow(0 0 4px rgba(168, 120, 63, 0.38));
  transform: translateY(-50%) rotate(45deg);
}

.cabinet-flight-pulse {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--cabinet-brass-light);
  box-shadow: 0 0 9px rgba(215, 189, 135, 0.62);
  transform: translate(-50%, -50%);
  animation: cabinet-path-pulse 4.2s ease-in-out infinite;
}

.cabinet-flight-path.is-visible {
  opacity: 1;
}

.cabinet-flight-path.is-complete {
  opacity: 0;
  transition-duration: 420ms;
}

.cabinet-flight-hint {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.cabinet-dock {
  --cabinet-dock-progress: 0;
  --cabinet-top-drawer: clamp(0, calc((var(--cabinet-dock-progress) - 0.26) * 2.1), 1);
  --cabinet-bottom-drawer: clamp(0, calc((var(--cabinet-dock-progress) - 0.64) * 2.8), 1);
  position: fixed;
  right: clamp(18px, 3vw, 38px);
  top: 96px;
  z-index: 73;
  width: 124px;
  height: 90px;
  padding: 8px;
  border: 1px solid rgba(79, 58, 41, 0.86);
  border-bottom-width: 4px;
  border-radius: 5px 5px 3px 3px;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 13px),
    linear-gradient(145deg, #92775c, #674f3d 58%, #4d3b2f);
  box-shadow:
    inset 0 0 0 4px rgba(250, 234, 204, 0.075),
    inset 0 -10px 20px rgba(39, 28, 21, 0.24),
    0 18px 42px rgba(15, 24, 18, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.94);
  transition:
    opacity 480ms ease,
    transform 720ms var(--cabinet-ease),
    box-shadow 420ms ease,
    border-color 420ms ease;
  visibility: hidden;
}

.cabinet-dock::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(234, 202, 150, 0.2);
  border-radius: 2px;
  content: "";
  pointer-events: none;
}

.cabinet-dock::after {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 7px;
  background:
    linear-gradient(90deg, #4a382b 0 13px, transparent 13px calc(100% - 13px), #4a382b calc(100% - 13px));
  content: "";
  opacity: 0.9;
}

.cabinet-dock.is-waiting,
.cabinet-dock.is-near,
.cabinet-dock.is-receiving,
.cabinet-dock.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.cabinet-drawer {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cabinet-drawer::before,
.cabinet-drawer::after {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 29px;
  border: 1px solid rgba(68, 48, 34, 0.82);
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 50% 52%, #ddbd80 0 2px, #755838 3px 5px, transparent 6px),
    repeating-linear-gradient(94deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 10px),
    linear-gradient(160deg, #98785b, #6a513d);
  box-shadow:
    inset 0 0 0 3px rgba(56, 39, 28, 0.14),
    0 2px 4px rgba(36, 25, 18, 0.22);
  content: "";
  transition:
    transform 100ms linear,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.cabinet-drawer::before {
  top: 4px;
  transform: translateY(calc(var(--cabinet-top-drawer) * 12px))
    scale(calc(1 + var(--cabinet-top-drawer) * 0.065));
  box-shadow:
    inset 0 0 0 3px rgba(56, 39, 28, 0.14),
    0 calc(2px + var(--cabinet-top-drawer) * 12px)
      calc(4px + var(--cabinet-top-drawer) * 14px)
      rgba(31, 21, 15, calc(0.22 + var(--cabinet-top-drawer) * 0.34));
}

.cabinet-drawer::after {
  bottom: 4px;
  transform: translateY(calc(var(--cabinet-bottom-drawer) * 12px))
    scale(calc(1 + var(--cabinet-bottom-drawer) * 0.065));
  box-shadow:
    inset 0 0 0 3px rgba(56, 39, 28, 0.14),
    0 calc(2px + var(--cabinet-bottom-drawer) * 12px)
      calc(4px + var(--cabinet-bottom-drawer) * 14px)
      rgba(31, 21, 15, calc(0.22 + var(--cabinet-bottom-drawer) * 0.34));
}

.cabinet-dock.is-near,
.cabinet-dock.is-receiving {
  border-color: rgba(215, 189, 135, 0.82);
  box-shadow:
    inset 0 0 0 4px rgba(250, 234, 204, 0.08),
    inset 0 -10px 20px rgba(39, 28, 21, 0.18),
    0 0 42px rgba(179, 141, 88, calc(0.16 + var(--cabinet-dock-progress) * 0.3));
}

.cabinet-dock.is-receiving .cabinet-drawer::before {
  transform: translateY(13px) scale(1.07);
  filter: brightness(1.14);
}

.cabinet-dock.is-receiving .cabinet-drawer::after {
  transform: translateY(12px) scale(1.065);
  filter: brightness(1.08);
}

.cabinet-dock.is-open {
  border-color: rgba(179, 141, 88, 0.42);
  filter: brightness(0.74) saturate(0.72);
}

.cabinet-dock.is-open .cabinet-drawer::before {
  transform: translateY(8px) scaleY(0.72);
  box-shadow:
    inset 0 12px 15px rgba(18, 14, 11, 0.72),
    0 -5px 0 rgba(19, 14, 10, 0.82);
}

.cabinet-dock.is-retiring {
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
  transition:
    opacity 720ms ease,
    transform 820ms var(--cabinet-ease);
}

.cabinet-ritual {
  --cabinet-dock-x: calc(100% - 56px);
  --cabinet-dock-y: 96px;
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--cabinet-ink);
  background: var(--cabinet-night);
  clip-path: circle(0 at var(--cabinet-dock-x) var(--cabinet-dock-y));
}

.cabinet-ritual.is-visible {
  display: block;
  animation: cabinet-room-open 1020ms var(--cabinet-ease) both;
}

.cabinet-ritual.is-leaving {
  display: block;
  pointer-events: none;
  animation: cabinet-room-leave 820ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.cabinet-ritual::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, #080c0a, #132018 56%, #1b1913);
  content: "";
  opacity: 0;
  animation: cabinet-room-texture-in 1.2s ease forwards 260ms;
}

.cabinet-ritual::after {
  display: none;
}

.cabinet-ritual-close {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  top: max(18px, env(safe-area-inset-top));
  z-index: 94;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(215, 189, 135, 0.3);
  border-radius: 999px;
  background: rgba(11, 16, 13, 0.7);
  color: var(--cabinet-ink);
  font-size: 1.45rem;
  line-height: 1;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.cabinet-ritual-close:hover {
  border-color: var(--cabinet-brass-light);
  background: rgba(27, 38, 30, 0.9);
  transform: rotate(8deg);
}

.cabinet-ritual-close:focus-visible,
.cabinet-flight-token:focus-visible {
  outline: 2px solid var(--cabinet-brass-light);
  outline-offset: 4px;
}

.cabinet-room {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.cabinet-room-frame,
.cabinet-room-shelf {
  position: absolute;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.cabinet-room-frame {
  top: 14%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(215, 189, 135, 0.32), transparent);
  animation: cabinet-room-line-in 920ms ease forwards 620ms;
}

.cabinet-room-frame-a {
  left: clamp(18px, 5vw, 64px);
}

.cabinet-room-frame-b {
  right: 25%;
  animation-delay: 720ms;
}

.cabinet-room-shelf {
  left: clamp(18px, 5vw, 64px);
  right: clamp(18px, 5vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115, 130, 99, 0.28), transparent);
  transform-origin: left center;
  animation: cabinet-room-shelf-in 1100ms ease forwards 760ms;
}

.cabinet-room-shelf-a {
  top: 29%;
}

.cabinet-room-shelf-b {
  bottom: 22%;
  animation-delay: 860ms;
}

.cabinet-room-logo {
  position: absolute;
  left: clamp(18px, 5vw, 64px);
  top: clamp(82px, 11vh, 118px);
  display: grid;
  width: 190px;
  height: 64px;
  place-items: center;
  overflow: visible;
  opacity: 0;
  padding: 0;
  transform: translateY(12px);
  animation: cabinet-seal-in 820ms var(--cabinet-ease) forwards 780ms;
}

.cabinet-room-logo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.42));
  object-fit: contain;
}

.cabinet-pressed-botanical {
  position: absolute;
  right: clamp(52px, 9vw, 160px);
  bottom: 8vh;
  display: block;
  width: min(27vw, 330px);
  height: min(52vh, 520px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px) scale(0.94);
  transform-origin: center bottom;
  animation: cabinet-botanical-in 1400ms var(--cabinet-ease) forwards 720ms;
}

.cabinet-pressed-botanical span {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: 72px;
  height: 100%;
  border-left: 1px solid rgba(150, 168, 128, 0.54);
  transform-origin: bottom;
}

.cabinet-pressed-botanical span::before,
.cabinet-pressed-botanical span::after {
  position: absolute;
  left: -1px;
  width: 38px;
  height: 18px;
  border: 1px solid rgba(150, 168, 128, 0.42);
  background: rgba(92, 112, 75, 0.08);
  content: "";
}

.cabinet-pressed-botanical span::before {
  top: 28%;
  border-radius: 0 100% 0 100%;
  transform: rotate(-28deg) translateX(-36px);
  transform-origin: right bottom;
}

.cabinet-pressed-botanical span::after {
  top: 53%;
  border-radius: 100% 0 100% 0;
  transform: rotate(24deg) translateX(4px);
  transform-origin: left bottom;
}

.cabinet-pressed-botanical span:nth-child(2) {
  transform: rotate(-22deg) scaleY(0.78);
}

.cabinet-pressed-botanical span:nth-child(3) {
  transform: rotate(27deg) scaleY(0.68);
}

.cabinet-pressed-botanical span:nth-child(4) {
  transform: rotate(-43deg) scaleY(0.48);
}

.cabinet-pressed-botanical span:nth-child(5) {
  transform: rotate(48deg) scaleY(0.42);
}

.cabinet-room-whisper {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 5vh;
  display: block;
  margin: 0;
  color: rgba(215, 189, 135, 0.5);
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: 0.82rem;
  opacity: 0;
  animation: cabinet-whisper-in 900ms ease forwards 1320ms;
}

.cabinet-message {
  position: fixed;
  left: clamp(18px, 5vw, 64px);
  top: 56%;
  z-index: 93;
  display: none;
  width: min(760px, 58vw);
  min-height: 320px;
  align-content: center;
  gap: 24px;
  padding: 0;
  color: var(--cabinet-ink);
  opacity: 0;
  transform: translateY(-42%);
}

.cabinet-message.is-visible {
  display: grid;
  animation: cabinet-words-in 780ms var(--cabinet-ease) forwards;
}

.cabinet-message.is-leaving {
  animation: cabinet-words-out 560ms ease forwards;
}

.cabinet-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(215, 189, 135, 0.26);
  color: var(--cabinet-muted);
  font-size: 0.76rem;
}

.cabinet-message-meta span:first-child {
  color: var(--cabinet-brass-light);
}

.cabinet-message-lines {
  display: grid;
  gap: 12px;
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.34;
  text-wrap: balance;
}

.cabinet-message-lines span {
  min-height: 1.45em;
  color: var(--cabinet-ink);
  filter: blur(3px);
  opacity: 0.52;
  transform: translateX(-8px);
  transition:
    color 420ms ease,
    filter 520ms ease,
    opacity 520ms ease,
    transform 620ms var(--cabinet-ease);
}

.cabinet-message-lines span:first-child {
  color: var(--cabinet-brass-light);
}

.cabinet-message-lines span.is-visible,
.cabinet-message-lines span.is-complete {
  filter: blur(0);
  opacity: 1;
  transform: translateX(0);
}

.cabinet-message-lines span.is-typing::after {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 4px;
  background: currentColor;
  content: "";
  opacity: 0.7;
  vertical-align: -0.08em;
  animation: cabinet-caret 760ms steps(1, end) infinite;
}

.cabinet-loading-note {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--cabinet-line);
  color: var(--cabinet-muted);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 520ms ease,
    transform 720ms var(--cabinet-ease);
}

.cabinet-loading-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cabinet-loading-track {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(215, 189, 135, 0.16);
}

.cabinet-loading-track i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 26%;
  background: var(--cabinet-brass-light);
  transform: translateX(-110%);
}

.cabinet-loading-note.is-visible .cabinet-loading-track i {
  animation: cabinet-loading-travel 920ms var(--cabinet-ease) forwards;
}

body[data-customer-mode="returning"] {
  --ink: var(--cabinet-ink);
  --muted: var(--cabinet-muted);
  --paper: var(--cabinet-night);
  --paper-deep: #111912;
  --line: rgba(215, 189, 135, 0.2);
  --green: var(--cabinet-brass-light);
  --green-soft: var(--cabinet-brass);
  --moss: var(--cabinet-moss);
  --amber: var(--cabinet-brass);
  --rosewood: #8d655e;
  --white: #f3efe3;
  --leaf-pale: #171f19;
  --leaf-mist: #202a22;
  --earth-soft: #1b1a16;
  --bark: var(--cabinet-brass);
  --shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
  color: var(--cabinet-ink);
  background: linear-gradient(180deg, #0b100d, #111912 48%, #0c100d);
}

body[data-customer-mode="returning"]::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: none;
  content: "";
  pointer-events: none;
}

body[data-customer-mode="returning"] .site-header {
  min-height: 76px;
  grid-template-columns: minmax(76px, 1fr) auto;
  border-bottom-color: rgba(215, 189, 135, 0.14);
  background: rgba(8, 14, 10, 0.56);
  color: var(--cabinet-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(215, 189, 135, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.26);
  -webkit-backdrop-filter: saturate(145%) blur(24px);
  backdrop-filter: saturate(145%) blur(24px);
}

body[data-customer-mode="returning"] .main-nav {
  display: none;
}

body[data-customer-mode="returning"] .brand-mark.has-logo .brand-symbol {
  width: 108px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-customer-mode="returning"] .brand-mark.has-logo .brand-symbol::after {
  display: none;
}

body[data-customer-mode="returning"] .cabinet-header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: min(48vw, 340px);
  color: var(--cabinet-brass-light);
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-shadow:
    0 2px 12px rgba(215, 189, 135, 0.25),
    0 12px 26px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.cabinet-header-glyphs {
  display: block;
}

.cabinet-header-glyphs {
  line-height: 1.08;
}

body[data-customer-mode="returning"] .cabinet-header-title:focus-visible {
  outline: 2px solid rgba(215, 189, 135, 0.72);
  outline-offset: 4px;
}

.cabinet-floating-glyph {
  display: inline-block;
  background: linear-gradient(108deg, #9f8053 0%, #d8bd87 34%, #f0dfb2 48%, #b38d58 65%, #d7bd87 100%);
  background-clip: text;
  background-size: 240% 100%;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    cabinet-title-gleam 9s linear infinite,
    cabinet-glyph-float 5.2s ease-in-out infinite;
  animation-delay: 0s, calc(var(--cabinet-char-index) * 110ms);
}

body[data-customer-mode="returning"] .cart-trigger {
  border: 1px solid rgba(215, 189, 135, 0.32);
  background: rgba(19, 27, 21, 0.78);
  color: var(--cabinet-ink);
}

body[data-customer-mode="returning"] .cart-trigger strong {
  background: rgba(215, 189, 135, 0.16);
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .hero {
  min-height: 100svh;
  border-bottom: 1px solid rgba(215, 189, 135, 0.16);
  background: #0b100d;
}

body[data-customer-mode="returning"] .hero-media {
  filter: brightness(0.5) saturate(0.6) contrast(1.12);
  transform: scale(1.035);
  transition:
    filter 1.35s ease,
    transform 1.8s var(--cabinet-ease);
}

body[data-customer-mode="returning"] .hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 8, 0.94), rgba(6, 10, 8, 0.68) 48%, rgba(6, 10, 8, 0.18) 78%, rgba(6, 10, 8, 0.46)),
    linear-gradient(180deg, rgba(6, 10, 8, 0.08), rgba(6, 10, 8, 0.54));
}

body[data-customer-mode="returning"] .hero::after {
  display: none;
}

body[data-customer-mode="returning"] .hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  color: var(--cabinet-ink);
  animation: cabinet-night-copy-in 980ms var(--cabinet-ease) backwards 180ms;
}

body[data-customer-mode="returning"] .hero .eyebrow {
  color: var(--cabinet-brass-light);
  font-family: Georgia, "Times New Roman", serif;
}

body[data-customer-mode="returning"] .hero h1 {
  width: max-content;
  max-width: none;
  color: var(--cabinet-ink);
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: 3.45rem;
  font-weight: 500;
  line-height: 1.14;
  text-wrap: nowrap;
  white-space: nowrap;
}

body[data-customer-mode="returning"] .hero h1:focus {
  outline: none;
}

body[data-customer-mode="returning"] .hero p:not(.eyebrow) {
  max-width: 31rem;
  color: var(--cabinet-muted);
}

body[data-customer-mode="returning"] .cabinet-hero-title-line,
body[data-customer-mode="returning"] .cabinet-hero-copy-line,
body[data-customer-mode="returning"] .cabinet-product-intro-line {
  display: block;
}

body[data-customer-mode="returning"] .cabinet-hero-title-line {
  white-space: nowrap;
}

@media (min-width: 760px) {
  body[data-customer-mode="returning"] .hero-content {
    width: min(1180px, 100%);
    margin: 0;
    color: #fbfff8;
    animation: none;
  }

  body[data-customer-mode="returning"] .hero .eyebrow {
    color: #f1f7e8;
    font-family: inherit;
  }

  body[data-customer-mode="returning"] .hero h1 {
    width: min(700px, 100%);
    max-width: 700px;
    color: #fbfff8;
    font-family: inherit;
    font-size: clamp(2.35rem, 9vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    text-wrap: wrap;
    white-space: normal;
  }

  body[data-customer-mode="returning"] .hero p:not(.eyebrow) {
    width: min(560px, 100%);
    max-width: none;
    color: rgba(251, 255, 248, 0.92);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.85;
  }
}

body[data-customer-mode="returning"] .pill-button {
  border: 1px solid var(--cabinet-brass);
  background: var(--cabinet-brass);
  color: #11130f;
}

body[data-customer-mode="returning"] .secondary-button,
body[data-customer-mode="returning"] .ghost-button,
body[data-customer-mode="returning"] .hero .ghost-button {
  border-color: rgba(215, 189, 135, 0.3);
  background: rgba(19, 27, 21, 0.7);
  color: var(--cabinet-ink);
  box-shadow: none;
}

body[data-customer-mode="returning"] .pill-button:hover,
body[data-customer-mode="returning"] .filter-chip.is-active:hover {
  background: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] #products {
  position: relative;
  scroll-margin-top: 100px;
}

body[data-customer-mode="returning"] #products::before {
  display: none;
}

body[data-customer-mode="returning"] .section-head h2,
body[data-customer-mode="returning"] .checkout h1,
body[data-customer-mode="returning"] .success h1,
body[data-customer-mode="returning"] .addons-page h1 {
  color: var(--cabinet-ink);
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-weight: 500;
}

body[data-customer-mode="returning"] .section-head p,
body[data-customer-mode="returning"] .shop-toolbar,
body[data-customer-mode="returning"] .checkout-intro,
body[data-customer-mode="returning"] .muted,
body[data-customer-mode="returning"] .hint {
  color: var(--cabinet-muted);
}

body[data-customer-mode="returning"] .shop-toolbar {
  border-bottom: 0;
  padding-bottom: 14px;
}

body[data-customer-mode="returning"] .shop-toolbar strong,
body[data-customer-mode="returning"] .shop-toolbar span {
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .category-filter-row {
  padding-top: 4px;
  scrollbar-color: rgba(215, 189, 135, 0.32) transparent;
}

body[data-customer-mode="returning"] .filter-chip {
  border-color: rgba(215, 189, 135, 0.2);
  background: rgba(19, 27, 21, 0.72);
  color: var(--cabinet-muted);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

body[data-customer-mode="returning"] .filter-chip:hover,
body[data-customer-mode="returning"] .filter-chip.is-active {
  border-color: var(--cabinet-brass);
  background: var(--cabinet-brass);
  color: #11130f;
  transform: translateY(-1px);
}

body[data-customer-mode="returning"] .product-card {
  position: relative;
  border-color: rgba(215, 189, 135, 0.16);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(27, 38, 30, 0.96), rgba(14, 21, 16, 0.97)),
    var(--cabinet-panel);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
  color: var(--cabinet-ink);
  animation: cabinet-card-in 720ms var(--cabinet-ease) backwards 180ms;
  transition:
    transform 300ms var(--cabinet-ease),
    border-color 240ms ease,
    box-shadow 300ms ease;
}

body[data-customer-mode="returning"] .product-card:nth-child(2) { animation-delay: 218ms; }
body[data-customer-mode="returning"] .product-card:nth-child(3) { animation-delay: 256ms; }
body[data-customer-mode="returning"] .product-card:nth-child(4) { animation-delay: 294ms; }
body[data-customer-mode="returning"] .product-card:nth-child(5) { animation-delay: 332ms; }
body[data-customer-mode="returning"] .product-card:nth-child(6) { animation-delay: 370ms; }
body[data-customer-mode="returning"] .product-card:nth-child(7) { animation-delay: 408ms; }
body[data-customer-mode="returning"] .product-card:nth-child(8) { animation-delay: 446ms; }

body[data-customer-mode="returning"] .product-card::before {
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(215, 189, 135, 0.07);
  content: "";
  pointer-events: none;
}

body[data-customer-mode="returning"] .media-box {
  background: #1a231b;
}

body[data-customer-mode="returning"] .media-box::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 13, 10, 0.45));
  content: "";
  pointer-events: none;
}

body[data-customer-mode="returning"] .media-box img {
  filter: saturate(0.76) contrast(1.05) brightness(0.87);
  transition:
    transform 620ms var(--cabinet-ease),
    filter 320ms ease;
}

body[data-customer-mode="returning"] .product-card:hover .media-box img {
  filter: saturate(0.94) contrast(1.03) brightness(0.98);
  transform: scale(calc(var(--image-zoom, 1) * 1.035));
}

body[data-customer-mode="returning"] .kind-badge,
body[data-customer-mode="returning"] .status-badge {
  border: 1px solid rgba(215, 189, 135, 0.17);
  background: rgba(115, 130, 99, 0.13);
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .card-body h3,
body[data-customer-mode="returning"] .price-row strong,
body[data-customer-mode="returning"] .total-price,
body[data-customer-mode="returning"] .select-line label,
body[data-customer-mode="returning"] .form-field label,
body[data-customer-mode="returning"] .field-label,
body[data-customer-mode="returning"] .product-description-toggle,
body[data-customer-mode="returning"] .guide-inline-link {
  color: var(--cabinet-ink);
}

body[data-customer-mode="returning"] .card-body p,
body[data-customer-mode="returning"] .summary-item span {
  color: var(--cabinet-muted);
}

body[data-customer-mode="returning"] select,
body[data-customer-mode="returning"] input,
body[data-customer-mode="returning"] textarea {
  border-color: rgba(215, 189, 135, 0.22);
  background: rgba(10, 15, 12, 0.72);
  color: var(--cabinet-ink);
  color-scheme: dark;
}

body[data-customer-mode="returning"] select:focus,
body[data-customer-mode="returning"] input:focus,
body[data-customer-mode="returning"] textarea:focus {
  border-color: var(--cabinet-brass);
  box-shadow: 0 0 0 3px rgba(179, 141, 88, 0.18);
}

body[data-customer-mode="returning"] .cart-backdrop {
  background: rgba(5, 8, 6, 0.72);
  backdrop-filter: blur(3px);
}

body[data-customer-mode="returning"] .cart-sheet {
  border-left: 1px solid rgba(215, 189, 135, 0.18);
  background: var(--cabinet-panel);
  color: var(--cabinet-ink);
}

body[data-customer-mode="returning"] .sheet-head {
  border-bottom-color: rgba(215, 189, 135, 0.18);
}

body[data-customer-mode="returning"] .sheet-head h2 {
  color: var(--cabinet-ink);
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-weight: 500;
}

body[data-customer-mode="returning"] .icon-button {
  border: 1px solid rgba(215, 189, 135, 0.2);
  background: rgba(11, 16, 13, 0.68);
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .cart-item,
body[data-customer-mode="returning"] .summary-item,
body[data-customer-mode="returning"] .summary-row.total {
  border-color: rgba(215, 189, 135, 0.17);
}

body[data-customer-mode="returning"] .quantity-control {
  border-color: rgba(215, 189, 135, 0.22);
  background: rgba(10, 15, 12, 0.68);
}

body[data-customer-mode="returning"] .quantity-control button {
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .cart-next-step,
body[data-customer-mode="returning"] .payment-box,
body[data-customer-mode="returning"] .line-notice {
  border-color: rgba(215, 189, 135, 0.2);
  background: rgba(115, 130, 99, 0.1);
  color: var(--cabinet-ink);
}

body[data-customer-mode="returning"] .checkout-panel,
body[data-customer-mode="returning"] .success-panel,
body[data-customer-mode="returning"] .loading-panel,
body[data-customer-mode="returning"] .addon-summary {
  border-color: rgba(215, 189, 135, 0.18);
  background:
    linear-gradient(135deg, rgba(27, 38, 30, 0.96), rgba(14, 21, 16, 0.97)),
    var(--cabinet-panel);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  color: var(--cabinet-ink);
}

body[data-customer-mode="returning"] .checkout-form-section {
  border-bottom-color: rgba(215, 189, 135, 0.17);
}

body[data-customer-mode="returning"] .checkout-form-section h2,
body[data-customer-mode="returning"] .checkout-panel h2,
body[data-customer-mode="returning"] .payment-box h3 {
  color: var(--cabinet-ink);
}

body[data-customer-mode="returning"] .payment-box p {
  color: var(--cabinet-muted);
}

body[data-customer-mode="returning"] .checkout-step {
  border-color: rgba(215, 189, 135, 0.18);
  background: rgba(19, 27, 21, 0.72);
  color: var(--cabinet-muted);
}

body[data-customer-mode="returning"] .checkout-step em {
  background: rgba(115, 130, 99, 0.18);
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .checkout-step.is-done {
  border-color: rgba(215, 189, 135, 0.32);
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .checkout-step.is-active {
  border-color: var(--cabinet-brass);
  background: var(--cabinet-brass);
  color: #11130f;
}

body[data-customer-mode="returning"] .checkout-step.is-active em {
  background: #11130f;
  color: var(--cabinet-brass-light);
}

body[data-customer-mode="returning"] .success-summary div {
  border-color: rgba(215, 189, 135, 0.18);
  background: rgba(10, 15, 12, 0.54);
}

body[data-customer-mode="returning"] .toast {
  border-color: rgba(215, 189, 135, 0.22);
  background: rgba(11, 16, 13, 0.96);
  color: var(--cabinet-ink);
}

.cabinet-exit {
  position: fixed;
  inset: 0;
  z-index: 96;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 720ms ease;
}

.cabinet-exit::before,
.cabinet-exit::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: 50.2%;
  background: linear-gradient(180deg, #111a14, #090e0b 58%, #171710);
  content: "";
  transform: scaleX(0);
  will-change: transform;
}

.cabinet-exit::before {
  left: 0;
  transform-origin: left center;
}

.cabinet-exit::after {
  right: 0;
  transform-origin: right center;
}

.cabinet-exit.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.cabinet-exit.is-visible::before,
.cabinet-exit.is-visible::after {
  animation: cabinet-exit-panel-in 700ms cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.cabinet-exit.is-revealing {
  opacity: 0;
}

.cabinet-exit-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 240px;
  height: 88px;
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.88);
}

.cabinet-exit-seal img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
  object-fit: contain;
}

.cabinet-exit.is-visible .cabinet-exit-seal {
  animation: cabinet-exit-seal-in 560ms var(--cabinet-ease) forwards 260ms;
}

body.cabinet-mode-leaving #app,
body.cabinet-mode-leaving .site-header {
  animation: cabinet-page-recede 720ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
  pointer-events: none;
}

body.cabinet-mode-revealing #app,
body.cabinet-mode-revealing .site-header {
  animation: cabinet-page-return 760ms var(--cabinet-ease) both;
}

@media (hover: hover) {
  body[data-customer-mode="returning"] .product-card:hover {
    border-color: rgba(215, 189, 135, 0.42);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    transform: translateY(-6px);
  }
}

@keyframes cabinet-flight-wake {
  from {
    opacity: 0;
    filter: blur(9px) brightness(1.18);
  }
  68% {
    opacity: 1;
    filter: blur(0) brightness(1.06);
  }
  to {
    opacity: 1;
    filter: blur(0) brightness(1);
  }
}

@keyframes cabinet-exit-panel-in {
  to { transform: scaleX(1); }
}

@keyframes cabinet-exit-seal-in {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -42%) scale(0.88);
  }
  70% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1.02);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes cabinet-page-recede {
  to {
    opacity: 0.26;
    filter: blur(8px) brightness(0.62);
    transform: scale(0.985);
  }
}

@keyframes cabinet-page-return {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.012);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes cabinet-path-flow {
  to { background-position: 56px 0; }
}

@keyframes cabinet-path-pulse {
  0% { left: 0; opacity: 0; }
  14% { opacity: 1; }
  84% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes cabinet-room-open {
  from {
    clip-path: circle(0 at var(--cabinet-dock-x) var(--cabinet-dock-y));
    filter: brightness(1.32);
  }
  to {
    clip-path: circle(150vmax at var(--cabinet-dock-x) var(--cabinet-dock-y));
    filter: brightness(1);
  }
}

@keyframes cabinet-room-leave {
  to {
    opacity: 0;
    filter: blur(10px);
  }
}

@keyframes cabinet-room-texture-in {
  to { opacity: 1; }
}

@keyframes cabinet-room-frame-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes cabinet-room-line-in {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes cabinet-room-shelf-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes cabinet-seal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cabinet-botanical-in {
  to {
    opacity: 0.48;
    transform: translateY(0) scale(1);
  }
}

@keyframes cabinet-whisper-in {
  to { opacity: 1; }
}

@keyframes cabinet-words-in {
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes cabinet-words-out {
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-54%);
  }
}

@keyframes cabinet-loading-travel {
  to { transform: translateX(385%); }
}

@keyframes cabinet-caret {
  50% { opacity: 0; }
}

@keyframes cabinet-title-gleam {
  to { background-position: -240% 0; }
}

@keyframes cabinet-glyph-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes cabinet-night-copy-in {
  from {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes cabinet-card-in {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (max-width: 759px) {
  .brand-mark.has-logo .brand-symbol {
    width: 82px;
    height: 40px;
  }

  .cabinet-dock {
    right: 12px;
    top: 92px;
    width: 108px;
    height: 80px;
    padding: 7px;
  }

  .cabinet-drawer::before,
  .cabinet-drawer::after {
    height: 25px;
  }

  .cabinet-flight-token {
    width: 104px;
    height: 70px;
  }

  .cabinet-room-frame-a { left: 8%; }
  .cabinet-room-frame-b { right: 8%; }
  .cabinet-room-shelf { left: 3%; right: 3%; }

  .cabinet-room-logo {
    left: 19px;
    top: 8%;
    width: 156px;
    height: 54px;
  }

  .cabinet-exit-seal {
    width: 200px;
    height: 72px;
  }

  .cabinet-pressed-botanical {
    right: -12%;
    width: 54vw;
  }

  .cabinet-message {
    left: 19px;
    top: 55%;
    width: calc(100% - 38px);
    min-height: 270px;
  }

  .cabinet-message-meta {
    padding-bottom: 11px;
    font-size: 0.7rem;
  }

  .cabinet-message-lines {
    gap: 10px;
    font-size: 1.55rem;
  }

  .cabinet-room-whisper {
    display: none;
  }

  body[data-customer-mode="returning"] .site-header {
    min-height: 70px;
    padding-inline: 12px;
  }

  body[data-customer-mode="returning"] .brand-mark.has-logo .brand-symbol {
    width: 82px;
    height: 40px;
  }

  body[data-customer-mode="returning"] .cabinet-header-title {
    width: 44vw;
    font-size: 0.98rem;
  }

  body[data-customer-mode="returning"] .cart-trigger {
    min-width: 90px;
    padding-inline: 9px;
    font-size: 0.88rem;
  }

  body[data-customer-mode="returning"] .hero {
    min-height: 100svh;
  }

  body[data-customer-mode="returning"] .hero-content {
    width: calc(100% - 36px);
    align-self: start;
    padding: 64px 0 0;
  }

  body[data-customer-mode="returning"] .hero h1 {
    width: max-content;
    max-width: none;
    font-size: 2.35rem;
    text-wrap: nowrap;
    white-space: nowrap;
  }

  body[data-customer-mode="returning"] .hero p:not(.eyebrow) {
    max-width: 72%;
    font-size: 1rem;
  }

  body[data-customer-mode="returning"] #products {
    padding-top: 38px;
  }

  body[data-customer-mode="returning"] .product-grid {
    gap: 10px;
  }

  #products .product-card .card-body p.product-description {
    min-height: 4.26em;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 520px) {
  body[data-customer-mode="returning"] .hero h1 {
    font-size: 1.55rem;
  }
}

@media (max-width: 390px) {
  .brand-mark.has-logo .brand-symbol {
    width: 82px;
  }

  body[data-customer-mode="returning"] .cabinet-header-title {
    left: 47%;
    width: 42vw;
    font-size: 0.9rem;
  }

  body[data-customer-mode="returning"] .cart-trigger {
    min-width: 84px;
    gap: 5px;
    padding-inline: 7px;
    font-size: 0.82rem;
  }

  body[data-customer-mode="returning"] .cart-trigger strong {
    min-width: 22px;
    height: 22px;
  }
}

@media (max-width: 360px) {
  body[data-customer-mode="returning"] .hero h1 {
    font-size: 1.35rem;
  }
}

/* Mobile navigation and returning-customer hero refinements. */
@media (max-width: 759px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 6px;
    padding: 8px 10px;
  }

  .brand-mark.has-logo .brand-symbol {
    width: 112px;
    height: 42px;
  }

  .site-header .cart-trigger {
    min-width: 86px;
    min-height: 40px;
    gap: 5px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .site-header .cart-trigger strong {
    min-width: 22px;
    height: 22px;
  }

  .site-header .main-nav {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    overflow: visible;
    border: 1px solid rgba(36, 74, 53, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }

  .site-header.glass-surface .main-nav a {
    min-width: 0;
    min-height: 38px;
    justify-content: center;
    padding: 0 6px;
    border: 0;
    font-size: 0.86rem;
    box-shadow: none;
  }

  .site-header.glass-surface .main-nav a.is-active {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 4px 10px rgba(22, 55, 36, 0.14);
  }

  .site-header .main-nav a:focus-visible {
    outline-width: 2px;
    outline-offset: -2px;
  }

  .section {
    scroll-margin-top: 126px;
  }

  .page > .section:first-child,
  #app > .checkout,
  #app > .success,
  #app > .admin-page,
  #app > .addons-page,
  #app > .loading-page {
    padding-top: calc(clamp(36px, 7vw, 82px) + 124px);
  }

  body[data-customer-mode="returning"] .site-header {
    min-height: 54px;
    grid-template-columns: 82px minmax(0, 1fr) 78px;
    gap: 6px;
    padding: 7px 9px;
  }

  body[data-customer-mode="returning"] .brand-mark {
    grid-column: 1;
  }

  body[data-customer-mode="returning"] .brand-mark.has-logo .brand-symbol {
    width: 82px;
    height: 38px;
  }

  body[data-customer-mode="returning"] .cabinet-header-title {
    position: static;
    grid-column: 2;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.08;
    text-overflow: clip;
    transform: none;
  }

  body[data-customer-mode="returning"] .cabinet-header-glyphs {
    overflow: hidden;
    white-space: nowrap;
  }

  body[data-customer-mode="returning"] .cabinet-header-destination {
    display: block;
    margin-top: 3px;
    font-size: 0.58rem;
  }

  body[data-customer-mode="returning"] .cart-trigger {
    grid-column: 3;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    gap: 4px;
    padding: 0 5px;
    font-size: 0.76rem;
  }

  body[data-customer-mode="returning"] .cart-trigger strong {
    min-width: 20px;
    height: 20px;
    font-size: 0.72rem;
  }

  body[data-customer-mode="returning"] .hero-content {
    width: 100%;
    align-self: end;
    padding: 28px 18px max(28px, env(safe-area-inset-bottom));
    color: #fbfff8;
    animation: none;
  }

  body[data-customer-mode="returning"] .hero .eyebrow {
    color: #f1f7e8;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0;
  }

  body[data-customer-mode="returning"] .hero h1 {
    width: min(700px, 100%);
    max-width: 100%;
    color: #fbfff8;
    font-family: inherit;
    font-size: clamp(2.35rem, 9vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-wrap: balance;
    white-space: normal;
  }

  body[data-customer-mode="returning"] .cabinet-hero-title-line,
  body[data-customer-mode="returning"] .cabinet-hero-copy-line,
  body[data-customer-mode="returning"] .cabinet-product-intro-line {
    display: block;
  }

  body[data-customer-mode="returning"] .cabinet-hero-title-line {
    white-space: nowrap;
  }

  body[data-customer-mode="returning"] .hero p:not(.eyebrow) {
    width: min(560px, 100%);
    max-width: 100%;
    margin: 18px 0 0;
    color: rgba(251, 255, 248, 0.92);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.85;
  }

  body[data-customer-mode="returning"] #products {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 360px) {
  body[data-customer-mode="returning"] .hero h1 {
    font-size: clamp(2rem, 10vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cabinet-flight-token,
  .cabinet-flight-path,
  .cabinet-flight-pulse,
  .cabinet-dock,
  .cabinet-drawer::before,
  .cabinet-drawer::after,
  .cabinet-ritual,
  .cabinet-ritual::before,
  .cabinet-ritual::after,
  .cabinet-room-frame,
  .cabinet-room-shelf,
  .cabinet-room-logo,
  .cabinet-room-whisper,
  .cabinet-message,
  .cabinet-exit,
  .cabinet-exit::before,
  .cabinet-exit::after,
  .cabinet-exit-seal,
  .cabinet-floating-glyph,
  body.cabinet-mode-leaving #app,
  body.cabinet-mode-leaving .site-header,
  body.cabinet-mode-revealing #app,
  body.cabinet-mode-revealing .site-header,
  body[data-customer-mode="returning"] .hero-content,
  body[data-customer-mode="returning"] .product-card {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    transition-duration: 1ms !important;
  }
}
