@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  src: url("/assets/fonts/noto-sans-tc-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif TC";
  src: url("/assets/fonts/noto-serif-tc-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "FZXingKai";
  src: url("/assets/fonts/fzxingkai-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #00401C;
  --muted: #47634F;
  --cream: #FBFBFB;
  --jade: #00401C;
  --jade-light: #00A44B;
  --line: #D9E4DC;
  --accent: #FFCA00;
  --serif: "Noto Serif TC", serif;
  --sans: "DM Sans", "Noto Sans TC", sans-serif;
  --brand-script: "FZXingKai", "Noto Serif TC", serif;
}

.search-bar {
  background: #EFF7F1;
}

.search-bar input {
  border-bottom-color: #9AB7A2;
}

.site-header {
  position: sticky;
  top: 0;
}

.brand strong,
.intro-hero h1 {
  font-weight: 400;
}

.hero .eyebrow,
.hero h1 em {
  color: var(--accent);
}

.button-light {
  background: var(--accent);
  color: var(--ink);
}

.product-visual {
  background-color: #EAF3EC;
}

.badge {
  background: var(--accent);
}

.story {
  background: #EAF3EC;
}

.newsletter {
  background: #FFF6D6;
}

.live-button {
  background: var(--accent);
  color: var(--ink);
}

.live-button small {
  color: var(--ink);
}

.subnav-divider {
  background: #9AB7A2;
}

@media (min-width: 801px) {
  .mobile-drawer {
    display: none;
  }
}

.collection.section {
  padding-top: 40px;
}

.product-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}

.product-visual {
  height: clamp(160px, 18vw, 220px);
}

.add-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.product-grid:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 4px;
}

.collection-heading-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.browse-all-button {
  padding: 10px 16px;
  gap: 8px;
  white-space: nowrap;
}

.intro-hero {
  height: auto;
  aspect-ratio: 998 / 768;
  min-height: 0;
  padding: 0 9vw 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 5px;
  background: #183d31;
}

.intro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10251bbd, #10251b45 65%, #10251b12),
    linear-gradient(0deg, #10251b66, transparent 60%);
}

.intro-hero .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.intro-hero .hero-copy {
  position: relative;
  z-index: 1;
}

.intro-hero .hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.intro-hero .hero-address {
  margin: 0;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: right;
  text-shadow: 0 1px 5px #10251b99;
}

.intro-hero h1 {
  color: #fff;
  font-family: var(--brand-script);
  font-size: clamp(24px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.route-page {
  min-height: 65vh;
  padding: clamp(64px, 10vw, 130px) 9vw;
  background: #fbfaf7;
}

.route-page-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.route-page h1 {
  margin: 0;
  font: 500 clamp(38px, 5vw, 64px)/1.15 var(--serif);
}

.route-intro {
  margin: 26px 0 12px;
  font-size: 18px;
  line-height: 1.7;
}

.route-body {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.route-product-grid {
  margin: 48px 0 32px;
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.route-home-link {
  display: inline-block;
  margin-top: 32px;
}

.hero-guide-button {
  flex: 0 0 auto;
  gap: 12px;
  padding: 8px 12px;
  background: #ffca00cc;
  backdrop-filter: blur(4px);
}

@media (min-width: 801px) {
  .site-header > .brand {
    width: auto;
  }

  .site-header > .brand strong {
    width: auto;
    font-size: clamp(24px, 5vw, 58px);
    line-height: 1;
    text-align: left;
    text-align-last: auto;
  }

  .intro-hero {
    height: min(calc(100vh - 180px), 680px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .intro-hero .hero-photo {
    object-fit: contain;
  }
}

@media (max-width: 800px) {
  .product-grid {
    gap: 13px;
  }

  .product-card {
    flex-basis: calc((100% - 26px) / 3);
  }

  .product-visual {
    height: auto;
    aspect-ratio: 1;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-info p {
    font-size: 10px;
  }

  .price-row {
    font-size: 11px;
  }

  .add-button {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .product-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .intro-hero {
    padding: 0 7vw 12px;
  }
}
