:root {
  color-scheme: light;
  --canvas: #f2e8d5;
  --surface: #fffdf9;
  --warm-surface: #fcf4e3;
  --ink: #1a1714;
  --body: #4a453d;
  --metadata: #6e685e;
  --placeholder: #9a9287;
  --hairline: #e9e2d5;
  --border: #ddd2bd;
  --amber: #dfa02a;
  --amber-dark: #a97008;
  --green: #2f7d5e;
  --green-soft: #e8f1eb;
  --blue: #2f6fb2;
  --danger: #a44938;
  font-family: Archivo, "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.catalog-filters,
.quantity-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.catalog-filters {
  margin-bottom: 1.5rem;
}

.catalog-filters label,
.quantity-form label {
  font-weight: 700;
}

.catalog-filters input,
.catalog-filters select,
.quantity-form input {
  min-height: 2.75rem;
  border: 1px solid var(--border-color, #c9c5bc);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  color: inherit;
}

.quantity-form input {
  width: 5rem;
}

@media (max-width: 480px) {
  .catalog-filters > * {
    width: 100%;
  }
}

html[data-font-stack="english-mixed-script"] {
  font-family: Archivo, "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", system-ui, sans-serif;
}

html[data-font-stack="japanese-mixed-script"] {
  font-family: "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", Archivo, system-ui, sans-serif;
}

html[data-font-stack="simplified-chinese-mixed-script"] {
  font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", Archivo, system-ui, sans-serif;
}

html[data-font-stack="korean-mixed-script"] {
  font-family: "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", Archivo, system-ui, sans-serif;
}

html[data-font-stack="vietnamese-latin"] {
  font-family: Archivo, "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", system-ui, sans-serif;
}

html[data-font-stack="cyrillic-latin"] {
  font-family: Archivo, "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
main:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ol,
ul,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

.site-frame {
  min-height: 100vh;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 22px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 0 0 8px 8px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.mono,
.price,
.detail-price,
.wallet-amount,
.cart-line-prices,
.summary-list dd,
.order-number {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.site-header-inner,
.desktop-navigation {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup picture,
.brand-lockup img {
  display: block;
  flex: 0 0 auto;
}

.brand-lockup img {
  width: 39px;
  height: 24px;
}

.wordmark {
  font-family: "Space Grotesk", Archivo, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--amber-dark);
}

.wordmark-accent {
  display: inline-block;
  color: var(--amber-dark);
  line-height: 1;
  background-image: linear-gradient(to bottom, #d6401f 0, #d6401f 0.32em, currentColor 0.32em, currentColor 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-market-context {
  min-width: 0;
}

.market-chip {
  display: inline-flex;
  max-width: 190px;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--warm-surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  white-space: nowrap;
}

summary.market-chip::-webkit-details-marker {
  display: none;
}

.market-chip > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-currency {
  flex: 0 0 auto;
  color: var(--metadata);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
}

.market-chevron {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid var(--metadata);
}

.market-menu {
  position: relative;
}

.locale-menu {
  position: relative;
}

.locale-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  cursor: pointer;
  font-size: 11px;
  list-style: none;
  white-space: nowrap;
}

summary.locale-chip::-webkit-details-marker {
  display: none;
}

.locale-chip > span:first-child {
  color: var(--green);
  font-weight: 600;
}

.locale-menu-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.08);
}

.locale-option-form {
  margin: 0;
}

.locale-option {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.locale-option strong,
.locale-option small {
  display: block;
}

.locale-option strong {
  font-size: 13px;
}

.locale-option small {
  margin-top: 3px;
  color: var(--metadata);
  font-size: 10px;
}

.locale-option.is-current {
  color: var(--green);
}

.market-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(320px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.08);
}

.market-menu-kicker,
.eyebrow {
  margin-bottom: 8px;
  color: var(--metadata);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.market-menu-copy {
  margin-bottom: 12px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.5;
}

.market-option-form {
  margin: 0;
}

.market-option {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.market-option strong,
.market-option small {
  display: block;
}

.market-option strong {
  font-size: 13px;
}

.market-option small {
  margin-top: 3px;
  color: var(--metadata);
  font-size: 10px;
}

.market-option.is-current {
  color: var(--green);
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.cart-link {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.cart-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cart-count {
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}

.cart-link .cart-count {
  position: absolute;
  top: 1px;
  right: -1px;
}

.account-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--body);
  font-size: 12px;
}

.account-controls form,
.mobile-navigation form {
  margin: 0;
}

.account-greeting {
  max-width: 120px;
  overflow: hidden;
  color: var(--metadata);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-register-link {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.text-button {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-button:hover {
  color: var(--ink);
}

.text-button-danger {
  min-height: 44px;
  font-size: 12px;
}

.desktop-navigation {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
}

.desktop-navigation nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-navigation nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--body);
  font-size: 12px;
  text-decoration: none;
}

.desktop-navigation nav .nav-disabled {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--placeholder);
  cursor: not-allowed;
  font-size: 12px;
}

.desktop-navigation nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-count {
  margin-left: 4px;
  color: var(--metadata);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
}

.wallet-context {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  color: var(--metadata);
  font-size: 11px;
}

.wallet-context .mono {
  color: var(--ink);
  font-size: 11px;
}

.wallet-context-suffix {
  color: var(--metadata);
}

.page-shell {
  width: min(1220px, calc(100% - 44px));
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.flash-messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.flash-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--body);
  font-size: 13px;
  line-height: 1.5;
}

.flash-success {
  border-color: #b6d4c2;
  background: var(--green-soft);
}

.flash-error {
  border-color: #dfb7ac;
  background: #fff3ef;
}

.storefront-intro,
.page-heading,
.confirmation-heading {
  max-width: 700px;
}

.storefront-intro {
  max-width: none;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--warm-surface);
}

.storefront-intro h1,
.page-heading h1,
.confirmation-heading h1,
.empty-state h1,
.empty-state h2,
.account-form-card h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.storefront-intro h1 {
  font-size: 22px;
}

.storefront-intro .intro-copy,
.page-heading > p:last-child,
.confirmation-lede,
.empty-state > p:not(.eyebrow):not(.empty-state-mark),
.account-intro {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.65;
}

.market-wallet-strip {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin: 28px 0 36px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
  background: var(--warm-surface);
}

.wallet-breakdown {
  margin: 28px 0 36px;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--warm-surface);
}

.wallet-breakdown-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-breakdown-heading .eyebrow {
  margin-bottom: 5px;
}

.wallet-breakdown-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.wallet-breakdown-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 0;
}

.wallet-breakdown-list > div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.wallet-breakdown-list dt,
.wallet-breakdown-list dd {
  margin: 0;
}

.wallet-breakdown-list dt {
  color: var(--metadata);
  font-size: 11px;
  line-height: 1.4;
}

.wallet-breakdown-list dd {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
}

.wallet-available {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--body);
  font-size: 12px;
}

.wallet-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--metadata);
  font-size: 12px;
}

.wallet-total strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.wallet-available strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.wallet-amount {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.wallet-label,
.wallet-muted {
  color: var(--metadata);
  font-size: 11px;
}

.wallet-market-code {
  margin-left: auto;
  color: var(--metadata);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
}

.wallet-link {
  margin-left: auto;
  font-size: 11px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.compact-heading {
  margin-bottom: 16px;
}

.section-heading h2,
.summary-card h2,
.failure-card h2,
.disclosure-card h2,
.receipt-card h2,
.shipment-card h2,
.detail-section h2,
.account-form-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.section-meta {
  margin-bottom: 0;
  color: var(--metadata);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

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

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

.product-card-media {
  position: relative;
}

.product-image-frame,
.detail-image-frame {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 5;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #f5efe3 0 6px, #ebe3d2 6px 12px);
}

.product-image-frame img,
.detail-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  padding: 10px;
  color: var(--placeholder);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.card-add-form {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
}

.card-add-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--surface);
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.card-add-button:hover {
  background: #276a50;
  color: var(--surface);
}

.product-card-body {
  padding-top: 10px;
}

.category-name,
.merchant-name,
.cart-line-meta,
.price-change {
  margin-bottom: 5px;
  color: var(--metadata);
  font-size: 11px;
  line-height: 1.4;
}

.product-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.product-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--blue);
}

.merchant-name {
  overflow-wrap: anywhere;
}

.price {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.price-presentation,
.detail-price-presentation {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.price-presentation p,
.detail-price-presentation p {
  margin-bottom: 0;
}

.price-primary span,
.detail-price span,
.source-price span {
  display: block;
  color: var(--metadata);
  font-size: 10px;
  font-weight: 400;
}

.source-price,
.source-observed,
.source-price-suppressed {
  color: var(--metadata);
  font-size: 11px;
  line-height: 1.4;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--metadata);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--blue);
}

.product-detail {
  display: grid;
  gap: 30px;
}

.detail-copy {
  min-width: 0;
  max-width: 620px;
}

.detail-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.05;
}

.brand {
  margin-bottom: 8px;
  color: var(--body);
  font-size: 13px;
}

.detail-copy > .merchant-name {
  margin-bottom: 10px;
}

.detail-price {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
}

.balance-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #e4d9c2;
  border-radius: 12px;
  background: var(--warm-surface);
}

.balance-card > div {
  min-width: 0;
}

.balance-label {
  display: block;
  margin-bottom: 5px;
  color: var(--metadata);
  font-size: 10px;
  line-height: 1.35;
}

.balance-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
}

.is-negative,
.balance-negative {
  color: var(--danger) !important;
}

.balance-positive {
  color: var(--green) !important;
}

.purchase-actions {
  display: grid;
  gap: 12px;
  margin: 26px 0 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
}

.purchase-actions form {
  margin: 0;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--green);
  color: var(--surface);
}

.button-primary:hover {
  background: #276a50;
  color: var(--surface);
}

.button-auth {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.button-auth:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.button-disabled,
.button:disabled {
  border-color: var(--border);
  background: #eee9df;
  color: var(--placeholder);
  cursor: not-allowed;
}

.simulated-note,
.form-footnote,
.receipt-note {
  margin: 0;
  color: var(--metadata);
  font-size: 11px;
  line-height: 1.55;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.detail-section > p {
  margin-bottom: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

.attributes-list {
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.attributes-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.5;
}

.attributes-list dt {
  color: var(--metadata);
}

.attributes-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.market-context-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border-bottom: 1px solid #efe2c9;
  background: var(--warm-surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.market-context-banner .mono {
  color: var(--metadata);
  font-size: 10px;
  font-weight: 400;
}

.banner-note {
  margin-left: auto;
  color: var(--metadata);
  font-size: 10px;
  font-weight: 400;
}

.notice,
.failure-card,
.disclosure-card,
.shipment-card,
.receipt-card,
.summary-card,
.account-form-card,
.empty-state {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-bottom: 18px;
  padding: 13px 15px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.55;
}

.notice strong {
  color: var(--ink);
}

.notice-warning {
  border-color: #e4d1a7;
  background: var(--warm-surface);
}

.notice-error {
  border-color: #dfb7ac;
  background: #fff3ef;
}

.cart-layout,
.checkout-layout,
.confirmation-layout {
  display: grid;
  gap: 28px;
}

.cart-lines,
.checkout-lines,
.snapshot-lines {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.cart-line-image,
.snapshot-image {
  display: flex;
  aspect-ratio: 4 / 5;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, #f5efe3 0 6px, #ebe3d2 6px 12px);
}

.cart-line-image img,
.snapshot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-content {
  min-width: 0;
}

.cart-line-content h3 {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.cart-line-content .merchant-name {
  margin-bottom: 8px;
}

.cart-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cart-line-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 12px;
}

.cart-line-prices span:first-child {
  color: var(--metadata);
  font-size: 10px;
}

.price-change {
  margin: 9px 0 0;
  color: var(--danger);
  font-size: 11px;
}

.expired-price-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d7a44d;
  border-radius: 10px;
  background: var(--warm-surface);
}

.expired-price-panel p {
  margin: 4px 0 0;
}

.price-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
}

.price-comparison dt {
  color: var(--metadata);
  font-size: 10px;
}

.price-comparison dd {
  margin: 3px 0 0;
}

.reprice-form {
  margin-top: 16px;
}

.price-history table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.price-history th,
.price-history td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.remove-form {
  margin: 5px 0 0;
}

.summary-card {
  align-self: start;
  padding: 18px;
}

.summary-card h2 {
  margin-bottom: 18px;
}

.summary-list {
  margin: 0;
}

.summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  font-size: 12px;
  line-height: 1.45;
}

.summary-list dt {
  min-width: 0;
}

.summary-list dd {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.summary-total {
  padding-top: 13px !important;
  border-bottom: 0 !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.summary-total dd {
  font-size: 14px;
}

.summary-divider {
  height: 1px;
  margin: 9px 0;
  background: var(--hairline);
}

.summary-list-secondary > div {
  border-bottom: 0;
  color: var(--metadata);
  font-size: 11px;
}

.summary-card .simulated-note {
  margin: 16px 0;
}

.summary-card .button {
  margin-top: 2px;
}

.empty-state {
  max-width: 680px;
  padding: 32px;
}

.empty-state-mark {
  margin-bottom: 13px;
  color: var(--green);
  font-size: 36px;
  line-height: 1;
}

.empty-state .button {
  max-width: 300px;
  margin-top: 24px;
}

.failure-card,
.disclosure-card,
.shipment-card,
.receipt-card {
  padding: 18px;
}

.failure-card {
  margin-bottom: 26px;
  border-color: #e4d1a7;
  background: var(--warm-surface);
}

.failure-card h2,
.disclosure-card h2,
.shipment-card h2,
.receipt-card h2 {
  margin-bottom: 12px;
}

.failure-card > p:not(.eyebrow),
.disclosure-card > p:not(.eyebrow),
.shipment-card > p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.6;
}

.failure-card .button {
  max-width: 300px;
}

.checkout-review {
  min-width: 0;
}

.checkout-lines {
  border-top: 1px solid var(--hairline);
}

.checkout-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.checkout-line-copy {
  min-width: 0;
}

.checkout-line-title,
.checkout-line-meta {
  display: block;
}

.checkout-line-title {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.4;
}

.checkout-line-meta {
  margin-top: 4px;
  color: var(--metadata);
  font-size: 10px;
}

.checkout-lines > li > .mono {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 12px;
}

.disclosure-card {
  margin-top: 24px;
  background: var(--warm-surface);
}

.disclosure-card > p:last-child {
  margin-bottom: 0;
}

.checkout-form {
  margin: 20px 0 10px;
}

.checkout-form button {
  width: 100%;
}

.receipt-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.order-number {
  max-width: 52%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  text-align: right;
}

.receipt-note {
  margin-top: 14px;
}

.confirmation-check {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--surface);
  font-size: 23px;
  font-weight: 500;
}

.confirmation-heading {
  margin-bottom: 32px;
}

.confirmation-heading h1 {
  margin-bottom: 12px;
}

.confirmation-layout {
  grid-template-areas:
    "receipt"
    "items"
    "shipment";
}

.receipt-card {
  grid-area: receipt;
}

.confirmation-items {
  grid-area: items;
}

.shipment-card {
  grid-area: shipment;
}

.snapshot-lines {
  border-top: 1px solid var(--hairline);
}

.snapshot-lines li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.snapshot-copy {
  min-width: 0;
}

.snapshot-copy h3 {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.snapshot-copy p {
  margin-bottom: 3px;
  color: var(--metadata);
  font-size: 10px;
  line-height: 1.4;
}

.snapshot-copy .mono {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.tracking-timeline {
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.tracking-timeline li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.tracking-timeline strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.tracking-timeline time,
.tracking-timeline li > span {
  color: var(--metadata);
  font-size: 10px;
  line-height: 1.4;
}

.tracking-timeline li > span {
  grid-column: 1 / -1;
}

.inbox-list {
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.inbox-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.inbox-row.is-unread strong {
  font-weight: 600;
}

.inbox-row time,
.inbox-market,
.inbox-flag {
  color: var(--metadata);
  font-size: 10px;
  line-height: 1.4;
}

.inbox-market {
  grid-column: 1 / -1;
}

.inbox-flag {
  grid-column: 1 / -1;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inbox-actions {
  margin-bottom: 8px;
}

.order-price-presentation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
}

.order-price-presentation p {
  margin: 0;
}

.order-price-presentation span,
.order-price-not-recorded,
.order-price-observed {
  display: block;
  color: var(--metadata);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.order-price-presentation strong {
  margin-top: 2px;
  font-weight: 500;
}

.order-price-not-recorded,
.order-price-observed {
  grid-column: 1 / -1;
}

.order-line-total {
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.order-history-results {
  display: grid;
  gap: 24px;
}

.order-history-row {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.order-history-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.order-history-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.order-history-header h2 a {
  color: var(--blue);
}

.order-status {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--warm-surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
}

.order-history-metadata {
  margin-bottom: 14px;
}

.order-history-items {
  margin-top: 8px;
}

.order-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  color: var(--metadata);
  font-size: 12px;
}

.order-pagination a {
  color: var(--blue);
  font-weight: 500;
}

.shipment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  color: var(--body);
  font-size: 11px;
}

.shipment-row .mono {
  color: var(--ink);
  font-size: 10px;
}

.shipment-estimate {
  margin: 4px 0 0;
}

.shipment-estimate div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.shipment-estimate dt {
  color: var(--metadata);
}

.shipment-estimate dd {
  margin: 0;
  color: var(--ink);
}

.confirmation-actions {
  max-width: 420px;
  margin-top: 24px;
}

.deferred-action-note {
  margin: -4px 0 4px;
  color: var(--metadata);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.account-form-card {
  max-width: 520px;
  padding: 24px;
}

.account-form-card h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.account-intro {
  margin-bottom: 24px;
}

.account-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.form-field label {
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-help {
  margin: -1px 0 0;
  color: var(--metadata);
  font-size: 11px;
  line-height: 1.45;
}

.errorlist {
  padding: 0;
  margin: 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.45;
  list-style: none;
}

.form-error-summary {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #dfb7ac;
  border-radius: 10px;
  background: #fff3ef;
  color: var(--body);
  font-size: 12px;
  line-height: 1.5;
}

.form-error-summary h2 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.form-error-summary p {
  margin-bottom: 0;
}

.form-switch {
  margin: 22px 0 0;
  color: var(--metadata);
  font-size: 12px;
}

.mobile-navigation {
  display: flex;
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 68px;
  align-items: stretch;
  justify-content: space-around;
  padding: 7px 10px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  background: rgba(255, 253, 249, 0.98);
}

.mobile-navigation a,
.mobile-navigation button,
.mobile-navigation-item {
  display: flex;
  min-width: 0;
  min-height: 52px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--metadata);
  cursor: pointer;
  font-size: 10px;
  text-decoration: none;
}

.mobile-navigation a.is-active,
.mobile-navigation a:hover,
.mobile-navigation button:hover {
  color: var(--ink);
}

.mobile-navigation-item.is-disabled {
  color: var(--placeholder);
  cursor: not-allowed;
}

.offer-presentation[lang^="ja"],
.offer-presentation:lang(ja) {
  font-family: "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", Archivo, system-ui, sans-serif;
}

.offer-presentation[lang^="zh"],
.offer-presentation:lang(zh) {
  font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", Archivo, system-ui, sans-serif;
}

.offer-presentation[lang^="ko"],
.offer-presentation:lang(ko) {
  font-family: "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", Archivo, system-ui, sans-serif;
}

.nav-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  color: currentColor;
}

.nav-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.nav-icon-grid i {
  display: block;
  background: currentColor;
}

.nav-icon-cart {
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
  transform: translateY(2px);
}

.nav-icon-cart::before {
  position: absolute;
  top: -4px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
  transform: skew(-20deg);
}

.nav-icon-account::before {
  position: absolute;
  top: 0;
  left: 4px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.nav-icon-account::after {
  position: absolute;
  bottom: 0;
  left: 1px;
  width: 14px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.nav-icon-order,
.nav-icon-collection {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.nav-icon-order::before,
.nav-icon-order::after {
  position: absolute;
  left: 3px;
  width: 9px;
  border-top: 1.5px solid currentColor;
  content: "";
}

.nav-icon-order::before {
  top: 5px;
}

.nav-icon-order::after {
  top: 10px;
}

.nav-icon-shift {
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nav-icon-shift::before {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 1.5px;
  height: 6px;
  background: currentColor;
  content: "";
  transform-origin: bottom center;
  transform: rotate(35deg);
}

.nav-icon-collection::before {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 8px;
  height: 6px;
  border: 1.5px solid currentColor;
  content: "";
}

.nav-icon-inbox {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.nav-icon-inbox::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

@media (min-width: 48rem) {
  .mobile-navigation {
    display: none;
  }

  .page-shell {
    padding-bottom: 72px;
  }

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

  .product-detail {
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
    gap: clamp(34px, 6vw, 92px);
    align-items: start;
  }

  .detail-image-frame {
    max-height: 720px;
  }

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

  .summary-card {
    position: sticky;
    top: 20px;
  }

  .confirmation-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    grid-template-areas:
      "receipt shipment"
      "items items";
    align-items: start;
  }

  .account-form-card {
    padding: 34px;
  }
}

@media (min-width: 64rem) {
  .site-header-inner,
  .desktop-navigation,
  .page-shell {
    width: min(1260px, calc(100% - 64px));
  }

  .site-header-inner {
    min-height: 78px;
  }

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

  .storefront-intro h1,
  .page-heading h1,
  .confirmation-heading h1 {
    font-size: 48px;
  }

  .storefront-intro h1 {
    font-size: 42px;
  }

  .cart-line {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
  }

  .summary-card {
    padding: 22px;
  }
}

@media (max-width: 47.99rem) {
  .site-header-inner {
    width: calc(100% - 44px);
    min-height: 62px;
    gap: 10px;
  }

  .brand-lockup {
    gap: 5px;
  }

  .brand-lockup img {
    width: 30px;
    height: auto;
  }

  .wordmark {
    font-size: 19px;
  }

  .header-actions {
    gap: 0;
  }

  .locale-chip {
    min-height: 34px;
    padding: 0 7px;
  }

  .locale-chip > span:nth-child(2) {
    display: none;
  }

  .locale-menu-panel {
    right: -8px;
  }

  .account-controls {
    display: flex;
  }

  .desktop-navigation {
    display: none;
  }

  .account-controls {
    gap: 8px;
    font-size: 11px;
  }

  .account-greeting,
  .header-register-link {
    display: none;
  }

  .market-chip {
    max-width: 142px;
    min-height: 34px;
    gap: 6px;
    padding: 0 10px;
    font-size: 12px;
  }

  .page-shell {
    width: calc(100% - 44px);
    min-height: calc(100vh - 62px);
    padding: 28px 0 94px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .section-meta {
    text-align: left;
  }

  .banner-note {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 23rem) {
  .site-header-inner,
  .page-shell {
    width: calc(100% - 32px);
  }

  .site-header-inner {
    gap: 7px;
  }

  .brand-lockup img {
    width: 27px;
  }

  .wordmark {
    font-size: 17px;
  }

  .market-chip {
    max-width: 116px;
    padding: 0 8px;
  }

  .product-grid {
    gap: 24px 8px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .account-form-card,
  .summary-card,
  .failure-card,
  .disclosure-card,
  .shipment-card,
  .receipt-card,
  .empty-state {
    padding: 16px;
  }
}

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