* {
  box-sizing: border-box;
}

:root {
  --ink: #121417;
  --muted: #5c6470;
  --line: #e7e2d8;
  --paper: #fffdf7;
  --soft: #f7f2e8;
  --brand: #f4dd18;
  --accent: #d8202f;
  --accent-dark: #9b1221;
  --green: #177a55;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(18, 20, 23, 0.1);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 168px;
  height: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.top-nav a {
  padding: 8px 4px;
}

.nav-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(36px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(244, 221, 24, 0.72), rgba(255, 253, 247, 0.45) 42%, rgba(255, 253, 247, 0.98)),
    var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #2b3037;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.hero-meta span {
  padding: 12px 14px;
  border: 1px solid rgba(18, 20, 23, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #2f353d;
  font-size: 14px;
  font-weight: 800;
}

.hero-actions,
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  border: 1px solid var(--ink);
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.hero-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
}

.trust-strip div {
  padding: 20px clamp(18px, 4vw, 44px);
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  font-size: 19px;
}

.trust-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.1;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: var(--ink);
}

.event-card {
  min-height: 210px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.event-card.red {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.tag {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 900;
}

.event-card h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.16;
}

.event-card p {
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 700;
}

.catalog-section {
  background: var(--soft);
}

.toolbar {
  position: sticky;
  top: 78px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.06);
}

.search span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8d0c4;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 40px;
  border: 1px solid #d8d0c4;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: #343a42;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.catalog-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #c7bdac;
  border-radius: 12px;
  padding: 34px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 20, 23, 0.05);
}

.product-card figure {
  position: relative;
  margin: 0;
  background: #f8f8f6;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
}

.category-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(18, 20, 23, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.product-body h3 {
  min-height: 3.1em;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.32;
}

.product-subtitle {
  min-height: 2.8em;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.sale-price {
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 1000;
}

.original-price {
  color: #8b929c;
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}

.stock-note {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.location {
  background: #fff;
}

.location-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
}

.location-card div {
  padding: 22px;
  background: var(--brand);
}

.location-card strong,
.location-card span,
.location-card a {
  display: block;
}

.location-card strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.location-card span,
.location-card a {
  font-size: 18px;
  font-weight: 900;
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 20, 23, 0.22);
}

.sticky-cta a {
  min-width: 132px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 1000;
}

.sticky-cta a:first-child {
  background: var(--ink);
  color: #fff;
}

.sticky-cta a:last-child {
  background: var(--brand);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    padding: 10px 14px;
  }

  .brand img {
    width: 132px;
  }

  .top-nav {
    width: auto;
    overflow: visible;
    gap: 8px;
    padding-bottom: 0;
    white-space: nowrap;
  }

  .top-nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 7px 12px !important;
    font-size: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-meta,
  .trust-strip,
  .event-grid,
  .location-card,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar {
    position: static;
  }

  .filters {
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-body {
    padding: 12px;
  }

  .product-body h3 {
    font-size: 15px;
  }

  .product-subtitle {
    display: none;
  }

  .sale-price {
    font-size: 21px;
  }

  .sticky-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .sticky-cta a {
    flex: 1;
    min-width: 0;
    padding: 13px 10px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
