:root {
  color-scheme: light;
  --ink: #14323a;
  --muted: #4d6870;
  --line: #d7e2e7;
  --deep: #0b3a4a;
  --accent: #0f6f7d;
  --bg: #f3f7f8;
  --warn: #8a2b22;
  --ok: #0f6a45;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(15, 111, 125, 0.16), transparent 60%),
    var(--bg);
}
a { color: var(--accent); }
.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--deep);
  color: #eef8fa;
}
.store-bar,
.store-main,
.store-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.store-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.store-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.store-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.store-nav a {
  color: #d7eef3;
  text-decoration: none;
  font-size: 0.95rem;
}
.store-nav a.is-active {
  color: #fff;
  font-weight: 800;
  border-bottom: 2px solid #f0c14a;
}
.store-nav-b2b {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
}
.store-main {
  flex: 1;
  padding: 36px 0 48px;
}
.store-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}
.store-kicker {
  margin: 0;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}
.store-lead { margin: 0; line-height: 1.7; color: var(--muted); font-size: 1.05rem; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.store-card,
.store-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.store-card h2,
.store-panel h2 { margin: 0 0 8px; font-size: 1.15rem; }
.store-card p,
.store-panel p { margin: 0; color: var(--muted); line-height: 1.7; }
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.store-btn.ghost {
  background: #fff;
  color: var(--deep);
  border: 1px solid var(--line);
}
.store-panel { max-width: 560px; }
.store-form { display: grid; gap: 8px; margin-top: 16px; }
.store-form label { font-weight: 700; font-size: 0.92rem; }
.store-form em { color: var(--warn); font-style: normal; }
.store-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.store-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.store-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e5f6ee;
  color: var(--ok);
}
.store-alert-error { background: #fde2de; color: var(--warn); }
.store-footer {
  background: #072833;
  color: #d7e6ea;
}
.store-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 28px 0;
}
.store-footer strong { display: block; margin-bottom: 8px; color: #fff; }
.store-footer p,
.store-footer a { display: block; margin: 0 0 6px; color: #d7e6ea; text-decoration: none; line-height: 1.6; }
.store-copy {
  margin: 0;
  padding: 12px 16px 18px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.member-dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 16px 0 0; }
.member-dl dt { color: var(--muted); }
.member-dl dd { margin: 0; font-weight: 700; }
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}
.catalog-head h1 { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.catalog-search { display: flex; gap: 8px; }
.catalog-search input,
.catalog-toolbar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.catalog {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.catalog-side,
.product-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.catalog-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.catalog-side h2 { margin: 0 0 10px; font-size: 1rem; }
.cat-nav { display: flex; flex-direction: column; gap: 2px; }
.cat-nav a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.cat-nav a.is-child { padding-left: 18px; color: var(--muted); }
.cat-nav a.is-active { background: #e7f4f6; color: var(--deep); font-weight: 800; }
.cat-nav em { font-style: normal; color: var(--muted); font-size: 0.82rem; }
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.catalog-toolbar p { margin: 0; color: var(--muted); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #e7eef1;
  color: var(--deep);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media em {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 58, 74, 0.88);
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
}
.temp-frozen { background: #e7f1ff; }
.temp-chilled { background: #e5f7f4; }
.temp-ambient { background: #f8f1e4; }
.product-body { padding: 10px 12px 12px; }
.product-body h3 { margin: 2px 0 4px; font-size: 1rem; line-height: 1.35; }
.product-body h3 a,
.product-cat { color: var(--ink); text-decoration: none; }
.product-cat { font-size: 0.78rem; color: var(--accent); }
.product-body p { margin: 0 0 6px; color: var(--muted); font-size: 0.82rem; }
.product-body strong { color: var(--deep); }
.catalog-pages { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.catalog-pages a { font-weight: 700; }
.product-crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--muted); }
.product-crumb a { color: var(--accent); text-decoration: none; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 22px;
}
.product-media.lg { aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.product-detail h1 { margin: 6px 0 8px; }
.product-sku { margin: 0; color: var(--muted); }
.product-price { margin: 12px 0; font-size: 1.6rem; font-weight: 800; color: var(--deep); }
.product-spec { list-style: none; padding: 0; margin: 0 0 12px; }
.product-spec li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.product-desc { margin: 0 0 16px; line-height: 1.7; color: var(--muted); }
@media (max-width: 800px) {
  .store-grid,
  .store-footer-inner,
  .catalog,
  .product-detail { grid-template-columns: 1fr; }
  .catalog-head { flex-direction: column; align-items: stretch; }
  .catalog-side { position: static; max-height: none; }
  .store-bar { align-items: flex-start; padding: 14px 0; flex-direction: column; }
}
