:root {
  --brand-bg: #fff9f5;
  --brand-surface: #ffffff;
  --brand-ink: #1f2937;
  --brand-muted: #6b7280;
  --brand-primary: #2c7a7b;
  --brand-primary-600: #236364;
  --brand-accent: #e8a6a1;
  --brand-accent-600: #d48b86;
  --brand-warm: #f59e0b;
  --brand-line: #e5e7eb;
  --bg-1: #fff7f7;
  --bg-2: #fff7e5;
  --bg-3: #f2fbf7;
  --maxw: 1200px;
  --radius: 16px;
  --shadow-lg: 0 20px 40px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--brand-ink);
  background: var(--brand-bg);
  line-height: 1.6;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 24px;
}
.section-title {
  font-family: "Nunito", "Noto Sans TC", system-ui;
  font-weight: 800;
  font-size: 32px;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--brand-muted);
  margin: 0;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 1px 0 rgba(31, 41, 55, 0.02);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--brand-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-primary-600);
}
.btn-light {
  background: var(--brand-surface);
  color: var(--brand-ink);
  border-color: var(--brand-line);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brand-line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--brand-accent);
  color: white;
  border-radius: 8px;
  font-weight: 900;
}
.primary-nav {
  display: flex;
  gap: 18px;
}
.primary-nav a {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle::before,
.nav-toggle::after {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--brand-ink);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar {
  top: 17px;
}
.nav-toggle::before {
  top: 11px;
}
.nav-toggle::after {
  top: 23px;
}

/* Hero */
.hero {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0)
    ),
    url("") no-repeat center/cover;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 56px 0;
}
.hero-copy {
  padding: 20px;
}
.hero-title {
  font-family: "Nunito", "Noto Sans TC", system-ui;
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero-sub {
  color: var(--brand-muted);
  margin: 0 0 20px;
}
.hero-media {
  border-radius: var(--radius);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-3));
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.hero-media.placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-3));
  border-radius: var(--radius);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-lg);
  color: var(--brand-muted);
  text-align: center;
  font-weight: 700;
}
.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 24px;
  background: radial-gradient(
    120% 100% at 50% 0,
    rgba(0, 0, 0, 0.06),
    rgba(0, 0, 0, 0) 60%
  );
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-title {
  font-family: "Nunito", "Noto Sans TC", system-ui;
  font-weight: 800;
  margin: 0;
  font-size: 20px;
}
.card-blurb {
  color: var(--brand-muted);
  margin: 0;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.price {
  font-weight: 800;
  color: var(--brand-primary-600);
}
.card-actions {
  padding: 12px 16px 16px;
}
.card:hover {
  transform: translateY(-2px);
  transition: transform 0.12s ease;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.page-indicator {
  color: var(--brand-muted);
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--brand-line);
  background: var(--brand-surface);
  padding: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding: 32px 0;
}
.footer-title {
  font-family: "Nunito", "Noto Sans TC", system-ui;
  font-weight: 800;
  margin: 0 0 8px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  text-decoration: none;
  color: var(--brand-ink);
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-base {
  border-top: 1px solid var(--brand-line);
  padding: 12px 0;
  text-align: center;
  color: var(--brand-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .primary-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-block;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 36px;
  }
  .section {
    padding: 48px 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Simple collapsing menu */
.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  right: 20px;
  left: 20px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 12px;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

/* Accessibility helpers */
.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;
}

/* Footer link icons */
.footer-links li {
  margin: 6px 0;
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brand-ink);
  font-weight: 600;
}

.link-with-icon:hover {
  text-decoration: underline;
}

.link-with-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 18px;
}
