:root {
  --paper: #f8f1e7;
  --surface: #fffaf3;
  --ink: #352922;
  --muted: #74655b;
  --clay: #b65c45;
  --clay-dark: #914632;
  --leaf: #49735b;
  --line: #e7d8ca;
  --shadow: 0 16px 40px rgba(75, 49, 35, .1);
  --radius: 24px;
  --color-paper: var(--paper);
  --color-surface: var(--surface);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-clay: var(--clay);
  --color-clay-dark: var(--clay-dark);
  --color-leaf: var(--leaf);
  --color-line: var(--line);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(circle at 86% 6%, #f8eadf 0, transparent 24rem), var(--paper);
}

a { color: inherit; }
button, a, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.skip-link:focus { top: 1rem; }

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  text-decoration: none;
}

.brand strong,
.brand small { display: block; }
.brand strong { line-height: 1.2; }
.brand small { color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface);
}

.language-button,
.button,
.category-button,
.store-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.language-button,
.category-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.category-button { width: 100%; justify-content: space-between; gap: .75rem; text-align: left; }
.category-button[aria-current="true"] { color: #fff; border-color: var(--leaf); background: var(--leaf); }
.category-count { font-size: .82rem; opacity: .8; white-space: nowrap; }
.button.primary, .store-link { color: #fff; background: var(--clay); }
.button.primary:hover, .store-link:hover { background: var(--clay-dark); }
.button.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }

.button:focus-visible,
.language-button:focus-visible,
.category-button:focus-visible,
.store-link:focus-visible,
a:focus-visible {
  outline: 3px solid #2d6f91;
  outline-offset: 4px;
}

main {
  min-height: calc(100vh - 132px);
  padding: 1.5rem 0 5rem;
}

.shop-intro,
.content-block,
.state-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(75, 49, 35, .06);
}

.shop-intro {
  width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shop-intro h1,
.state-panel h2,
.section-heading h2,
.content-block h2,
.product-card h3 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  line-height: 1.18;
  font-weight: 600;
}

.shop-intro h1 { margin: .3rem 0 .65rem; font-size: clamp(2rem, 4vw, 3.6rem); }
.shop-intro p { max-width: 48rem; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.shop-intro .intro-note { margin-top: .75rem; font-size: .92rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--leaf); font-size: .83rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.state-panel {
  max-width: 48rem;
  margin: 2rem auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.state-panel h2 { margin: .3rem 0 .8rem; font-size: clamp(1.8rem, 5vw, 3.2rem); }
.state-panel p { color: var(--muted); overflow-wrap: anywhere; }

.shop-products { margin-top: 2.25rem; }

.home-products {
  margin-top: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}
.home-products .section-heading { flex-wrap: wrap; }

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

.section-heading h2 { margin: .2rem 0 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.section-heading > div { min-width: 0; }
.section-heading h2 { overflow-wrap: anywhere; }
.product-count { margin: 0 0 .25rem; color: var(--muted); font-weight: 750; }

.category-nav { margin-bottom: 1.5rem; }
.category-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; padding: 0; margin: 0; list-style: none; }
.category-nav li { min-width: 0; }
.category-nav li:first-child { grid-column: 1 / -1; }
.category-nav .category-button { height: 100%; min-height: 76px; border-radius: 18px; }
.category-nav li:first-child .category-button { min-height: 48px; }
.category-button > span:first-child { min-width: 0; overflow-wrap: normal; }

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  height: 100%;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(75, 49, 35, .06);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-image { position: relative; display: grid; aspect-ratio: 1 / 1; min-height: 0; place-items: center; border-radius: calc(var(--radius) - 8px); background: #e9e0d4; overflow: hidden; }
.card-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-image-fallback { margin: 1rem; color: var(--ink); text-align: center; }
.product-card-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 1rem .35rem .35rem; }
.product-card .eyebrow { font-size: .72rem; }
.product-card h3 { margin: .15rem 0 .55rem; font-size: clamp(1.35rem, 2.4vw, 1.8rem); overflow-wrap: anywhere; }
.product-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.view-details { margin-top: auto; padding-top: 1rem; color: var(--clay-dark); font-weight: 850; }

.content-block { padding: clamp(1.25rem, 3vw, 2rem); }
.online-shops { margin-top: 1rem; padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: 16px; box-shadow: none; }
.content-block h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.online-shops h2 { margin: 0; font: inherit; font-size: 1.1rem; font-weight: 800; }
.content-block > p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.store-external-note { margin-top: .7rem !important; font-size: .94rem; }
.store-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.store-link { flex: 1 1 14rem; gap: .4rem; }
.store-link small { font-weight: 600; opacity: .9; }
.store-link .platform-icon { width: 1.15rem; height: 1.15rem; flex: 0 0 1.15rem; fill: currentColor; stroke: none; }
.store-pending { margin-top: 1rem !important; font-size: .94rem; }

.empty-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.empty-actions .button { flex: 1 1 12rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 750;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .shop-products { margin-top: 1.5rem; }
  .section-heading { align-items: center; gap: .5rem; }
  .section-heading h2 { margin: 0; font-size: 1.6rem; }
  .product-count { margin: 0; font-size: .85rem; white-space: nowrap; }
  .category-nav { display: block; }
  .category-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .category-nav .category-button { min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .4rem; padding: .8rem; }
  .category-nav li:first-child .category-button { flex-direction: row; align-items: center; }
}

@media (max-width: 420px) {
  .site-header, main, .site-footer { width: min(100% - 1.25rem, 1120px); }
  main { padding-top: 1rem; }
  .brand small { max-width: 12rem; }
  .shop-intro { padding-block: 0; }
  .card-image, .card-image img { min-height: 0; }
  .store-actions { display: grid; grid-template-columns: 1fr; }
  .store-link { width: 100%; }
  .empty-actions { display: grid; grid-template-columns: 1fr; }
  .empty-actions .button { width: 100%; }
}

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