/* Low-fidelity wireframe package styles.
   Keep this grayscale: structure first, brand styling later. */
:root {
  --ink: #222;
  --muted: #66707a;
  --line: #9aa0a6;
  --line-soft: #cfd4da;
  --fill: #f4f5f6;
  --fill-2: #e9ecef;
  --placeholder: #dfe3e7;
  --note: #0b6b4f;
  --radius: 8px;
  --gap: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfbfc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.wf-banner {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #f7f7f8;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.wf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1.5px solid var(--line);
  background: #fff;
}

.wf-header .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.logo .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
}

.wf-nav {
  border-top: 1px solid var(--line-soft);
  background: #fafbfc;
}

.wf-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  list-style: none;
  font-size: 14px;
  font-weight: 650;
}

.wf-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.wf-nav a:hover,
.wf-nav a.on {
  background: #eceef0;
}

/* top utility bar（登入/帳號/購物車）— mirrors mockup header row 1 */
.wf-topbar {
  border-bottom: 1px solid var(--line-soft);
  background: #eef0f2;
  font-size: 12.5px;
}
.wf-topbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6px 20px;
}
.wf-topbar .tb-left {
  color: var(--muted);
  letter-spacing: .04em;
}
.wf-topbar .tb-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.wf-topbar a {
  text-decoration: none;
  font-weight: 650;
}
.wf-topbar a:hover {
  text-decoration: underline;
}
.wf-topbar .tb-cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wf-topbar .tb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}
.wf-topbar .tb-alt {
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
}
/* header main row: push CTA to the right */
.wf-header .bar .hdr-cta {
  margin-left: auto;
}
/* footer columns */
.wf-footer .foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.wf-footer h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #e6e9ec;
}
.wf-footer .foot-cols a {
  display: block;
  padding: 3px 0;
  color: #cfd3d7;
  text-decoration: none;
  font-size: 13px;
}
.wf-footer .foot-cols a:hover {
  text-decoration: underline;
}
.wf-footer .foot-legal {
  padding-top: 14px;
  border-top: 1px solid #444a4f;
  font-size: 12px;
  color: #aeb3b8;
}
.wf-footer .foot-fraud {
  margin-top: 6px;
  font-size: 12px;
  color: #9aa0a6;
}
@media (max-width: 720px) {
  .wf-topbar .tb-left,
  .wf-topbar .tb-alt {
    display: none;
  }
  .wf-footer .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.hero {
  padding: 42px 0;
  background: #33373b;
  color: #fff;
}

.hero p {
  max-width: 720px;
  color: #d8dde2;
}

.pagehead {
  border-bottom: 1px solid var(--line-soft);
  background: var(--fill);
}

.pagehead .wrap {
  padding: 28px 20px;
}

.crumb {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sec {
  padding: 34px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.sec-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #33373b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
}

.box {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

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

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

.img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  border-radius: 6px;
  background: var(--placeholder);
  color: #7b8087;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.img::before,
.img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent 49.3%, var(--line-soft) 49.6%, var(--line-soft) 50.4%, transparent 50.7%);
}

.img::after {
  transform: scaleX(-1);
}

.img span {
  position: relative;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .74);
}

.note {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px dashed var(--note);
  border-radius: 6px;
  background: #f0f8f5;
  color: var(--note);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.btn.solid {
  border-color: #33373b;
  background: #33373b;
  color: #fff;
}

.field {
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #9aa0a6;
}

.wf-footer {
  margin-top: 0;
  background: #2b2f33;
  color: #cfd3d7;
}

.wf-footer .wrap {
  padding: 30px 20px;
}

.wf-footer .copy {
  color: #aeb3b8;
  font-size: 12px;
}

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

@media (max-width: 560px) {
  .g4,
  .g3,
  .g2 {
    grid-template-columns: 1fr;
  }

  .wf-header .bar {
    align-items: flex-start;
    flex-direction: column;
  }
}
