:root {
  --bg: #f4f5f3;
  --surface: #ffffff;
  --surface-2: #eceee9;
  --ink: #111211;
  --muted: #5f6561;
  --border: #dde0dc;
  --accent: #b7f53a;
  --accent-text: #0c0d0c;
  --font-ui: "Space Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --success: #2f7d4f;
  --danger: #c2443c;
  --shadow: 0 18px 44px rgba(24, 27, 25, 0.12);
  --shadow-soft: 0 8px 24px rgba(24, 27, 25, 0.08);
  --radius: 2px;
  --topbar-h: 64px;
  --bottom-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0c0d0c;
  --surface: #151715;
  --surface-2: #1d211d;
  --ink: #f2f4f1;
  --muted: #a7ada8;
  --border: #2a2e2a;
  --accent: #b7f53a;
  --accent-text: #0c0d0c;
  --success: #7ed49b;
  --danger: #ff8a80;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.24);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 100dvh;
  overflow: hidden;
  font-family: var(--font-ui);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
  background: none;
}

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

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(90deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 52px);
  background-blend-mode: normal, normal;
  opacity: 0.32;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  height: min(100dvh, 940px);
  margin: auto;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.app-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.view-root {
  position: absolute;
  inset: calc(var(--topbar-h) + var(--safe-top)) 0 var(--bottom-h);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.view-root::-webkit-scrollbar {
  display: none;
}

.view-root.no-bottom-nav {
  bottom: 0;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--bottom-h) + var(--safe-bottom));
  padding: 0 8px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.nav-item {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease;
}

.nav-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.nav-item.active {
  color: var(--ink);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.nav-badge {
  position: absolute;
  top: 7px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.topbar-left,
.topbar-right,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark {
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}

.wordmark::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  background: var(--accent);
  border-radius: 1px;
  vertical-align: 1px;
}

.brand-logo {
  height: 50.4px;
  width: auto;
  object-fit: contain;
  display: block;
}

.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.icon-btn:active,
.btn:active,
.chip:active,
.size-pill:active,
.product-card:active {
  transform: scale(0.98);
}

.cart-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.back-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.back-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.screen-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

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

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

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 16px 14px;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.section-link svg {
  width: 15px;
  height: 15px;
}

.hero {
  position: relative;
  min-height: calc(72dvh - var(--topbar-h));
  overflow: hidden;
  background: var(--surface);
}

.hero-carousel {
  overflow: hidden;
}

.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 12, 10, 0.28) 78%, rgba(10, 12, 10, 0.82) 100%);
}

.hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
}

.hero-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  pointer-events: auto;
}

.hero-arrow svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

.hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--accent);
}

.home-thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 16px 0;
}

.home-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.home-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-thumb.active {
  border-color: var(--ink);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hero-copy h1 {
  margin: 0 0 5px;
  max-width: 245px;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 760;
  text-wrap: balance;
}

.hero-copy p {
  margin: 0;
  max-width: 240px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.35;
}

.hero-price {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
}

.hero-cta {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
}

.hero-cta svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.scroll-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 16px 14px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  -webkit-tap-highlight-color: transparent;
}

.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}

.chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

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

.product-card {
  min-width: 0;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius);
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.wish-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.wish-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.wish-btn.saved svg {
  fill: var(--accent);
  stroke: var(--ink);
}

.product-info {
  padding-top: 10px;
}

.product-cat {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-name {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.compare-price {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.rating svg {
  width: 13px;
  height: 13px;
  fill: var(--ink);
  stroke: none;
}

.material-mini {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.story-band {
  margin: 4px 16px 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.story-band h2 {
  margin: 0 0 9px;
  font-size: 22px;
  line-height: 1.05;
  text-wrap: balance;
}

.story-band p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.lattice-strip {
  height: 8px;
  margin: 18px 0 0;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px),
    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 9px);
  opacity: 0.9;
}

.catalog-tools {
  padding: 2px 16px 14px;
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.result-count {
  color: var(--muted);
  font-size: 12px;
}

.sort-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.sort-btn svg {
  width: 16px;
  height: 16px;
}

.search-box {
  position: relative;
  margin: 0 16px 14px;
}

.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box .search-icon,
.search-box .clear-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.search-box .search-icon {
  left: 13px;
}

.search-box .clear-search {
  right: 8px;
  width: 34px;
  height: 34px;
}

.search-box svg {
  width: 19px;
  height: 19px;
}

.product-detail {
  padding-bottom: 20px;
}

.gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: color;
  opacity: 0.16;
}

.gallery-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-counter {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(12, 13, 12, 0.78);
  color: #f2f4f1;
  font-family: var(--font-mono);
  font-size: 11px;
}

.detail-body {
  padding: 18px 16px 0;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.03;
  font-weight: 740;
  text-wrap: balance;
}

.detail-price {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.detail-price .compare-price {
  font-size: 15px;
}

.detail-rating {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.detail-rating svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
  stroke: none;
}

.detail-desc {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.option-block {
  margin-top: 22px;
}

.option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.option-value {
  color: var(--muted);
  font-weight: 550;
}

.swatch-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.color-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: var(--swatch);
}

.color-swatch.active {
  border-color: var(--ink);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.size-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.size-pill {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.size-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.size-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.spec-cell {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.spec-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.spec-value {
  display: block;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

.material-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.material-list .material-check {
  color: var(--success);
  display: grid;
  place-items: center;
}

.material-list .material-check svg {
  width: 18px;
  height: 18px;
}

.bottom-action {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 38;
  min-height: 92px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.bottom-action .price-stack {
  flex: 0 0 auto;
}

.bottom-action .price-stack span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.bottom-action .price-stack strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 20px;
}

.bottom-action .btn {
  flex: 1;
}

.bag-list {
  padding: 0 16px 24px;
}

.free-shipping {
  margin: 0 16px 14px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.free-shipping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.free-shipping-track {
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  background: var(--border);
  border-radius: var(--radius);
}

.free-shipping-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 220ms ease;
}

.bag-empty {
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.empty-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-mark svg {
  width: 28px;
  height: 28px;
}

.empty-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.empty-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.bag-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.bag-item-media {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.bag-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bag-item-info {
  min-width: 0;
}

.bag-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bag-item-name {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
}

.remove-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.remove-btn svg {
  width: 18px;
  height: 18px;
}

.bag-variant {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.bag-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.qty {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.qty button svg {
  width: 16px;
  height: 16px;
}

.qty span {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
}

.bag-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 650;
}

.order-summary {
  margin: 0 16px 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  color: var(--muted);
  font-size: 13px;
}

.summary-row.total {
  margin-top: 9px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.summary-row.total strong {
  font-family: var(--font-mono);
  font-size: 20px;
}

.shopify-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.shopify-note svg {
  width: 18px;
  height: 18px;
}

.form-stack {
  display: grid;
  gap: 13px;
}

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

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.field textarea {
  padding-top: 12px;
  min-height: 86px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

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

.checkout-head {
  padding: 0 16px 18px;
}

.checkout-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.05;
}

.checkout-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-body {
  padding: 0 16px 24px;
}

.checkout-section {
  margin-bottom: 22px;
}

.checkout-section h2 {
  margin: 0 0 13px;
  font-size: 14px;
  font-weight: 700;
}

.secure-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.secure-banner svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.order-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.order-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-2);
}

.order-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 680;
}

.order-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.success {
  background: color-mix(in srgb, var(--success) 18%, var(--surface));
  color: var(--success);
}

.status-pill.processing {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
  color: var(--ink);
}

.account-list {
  margin: 0 16px 24px;
  border-top: 1px solid var(--border);
}

.account-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 14px;
}

.account-row .account-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-row svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.account-row .chev {
  color: var(--muted);
}

.account-row .chev svg {
  width: 17px;
  height: 17px;
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  border: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 180ms ease;
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  transform: translateX(18px);
  background: var(--accent-text);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 16px 22px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.profile-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.profile-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: end center;
  background: rgba(6, 8, 6, 0.48);
}

.modal-root.open {
  display: grid;
}

.sheet {
  width: min(100%, 430px);
  max-height: 88dvh;
  padding: 20px 16px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 2px 2px 0 0;
  animation: sheet-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.language-option {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.language-option + .language-option {
  margin-top: 8px;
}

.language-option span:last-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.language-option.active {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.sheet-close svg {
  width: 20px;
  height: 20px;
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 360px);
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  animation: toast-in 220ms ease-out;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-card {
  border-radius: var(--radius);
}

.skeleton-media {
  aspect-ratio: 1 / 1;
}

.skeleton-line {
  height: 12px;
  margin-top: 9px;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.view-enter {
  animation: view-in 240ms ease-out both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 460px) {
  .app-shell {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .stage {
    display: none;
  }
}

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