:root {
  --text: #222222;
  --muted: #6d6d6d;
  --border: #e7e7e7;
  --light: #f7f5f2;
  --accent: #bd8b75;
  --accent-dark: #9b6e5a;
  --white: #ffffff;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family:
    Arial,
    "Microsoft JhengHei",
    "PingFang TC",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.announcement {
  padding: 9px 20px;
  color: var(--white);
  background: var(--text);
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max-width));
  min-height: 78px;
  margin: auto;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--text);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  display: grid;
  min-height: 610px;
  place-items: center;
  padding: 80px 20px;
  background:
    linear-gradient(
      rgba(245, 240, 236, 0.78),
      rgba(245, 240, 236, 0.78)
    ),
    url("../images/banner.jpg") center / cover no-repeat;
  text-align: center;
}

.hero-content {
  max-width: 760px;
}

.hero-label,
.section-heading p,
.order-content > p {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.15;
}

.hero-content > p:not(.hero-label) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.primary-button,
.secondary-button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 34px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.primary-button:hover,
.secondary-button:hover {
  background: transparent;
  color: var(--text);
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: auto;
  padding: 90px 0;
}

.section-light {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max-width)) / 2));
  padding-left: max(20px, calc((100% - var(--max-width)) / 2));
  background: var(--light);
}

.section-heading {
  margin-bottom: 45px;
  text-align: center;
}

.section-heading h2,
.order-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
}

.category-grid,
.product-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  text-align: center;
}

.category-image {
  aspect-ratio: 1 / 1.08;
  margin-bottom: 20px;
  overflow: hidden;
}

.placeholder-image {
  display: grid;
  place-items: center;
  color: #8d8079;
  background:
    linear-gradient(135deg, #eee6e0, #f8f4f1);
  font-size: 18px;
}

.category-card h3 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 500;
}

.category-card span {
  color: var(--muted);
  font-size: 13px;
}

.product-card {
  overflow: hidden;
  background: var(--white);
}

.product-image {
  aspect-ratio: 1 / 1;
}

.product-info {
  padding: 20px;
}

.product-status {
  color: var(--accent-dark);
  font-size: 12px;
}

.product-info h3 {
  min-height: 52px;
  margin: 8px 0;
  font-size: 17px;
  font-weight: 500;
}

.price {
  margin: 8px 0 18px;
  font-size: 17px;
  font-weight: 700;
}

.product-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--text);
  font-size: 13px;
}

.feature-item {
  padding: 30px;
  border: 1px solid var(--border);
  text-align: center;
}

.feature-item h3 {
  margin-top: 0;
  font-size: 18px;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.order-section {
  padding: 95px 20px;
  background: #e9ded7;
  text-align: center;
}

.order-content {
  max-width: 1000px;
  margin: auto;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 42px;
}

.order-steps span {
  padding: 22px 15px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.site-footer {
  padding: 65px 20px 20px;
  color: #eeeeee;
  background: #202020;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 50px;
  width: min(100%, var(--max-width));
  margin: auto;
}

.footer-grid h2 {
  margin-top: 0;
  font-size: 30px;
  letter-spacing: 4px;
}

.footer-grid h3 {
  margin-top: 0;
  color: var(--white);
  font-size: 15px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 8px 0;
  color: #bdbdbd;
  font-size: 13px;
}

.copyright {
  width: min(100%, var(--max-width));
  margin: 50px auto 0;
  padding-top: 20px;
  border-top: 1px solid #404040;
  color: #919191;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 950px) {
  .category-grid,
  .product-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .order-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 749px) {
  .header-inner {
    min-height: 66px;
  }

  .logo {
    font-size: 25px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content > p:not(.hero-label) {
    font-size: 16px;
  }

  .section {
    padding: 65px 0;
  }

  .section-light {
    padding: 65px 20px;
  }

  .category-grid,
  .product-grid {
    gap: 14px;
  }

  .product-info {
    padding: 14px;
  }

  .product-info h3 {
    min-height: 46px;
    font-size: 15px;
  }

  .feature-grid,
  .footer-grid,
  .order-steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 30px;
  }
}
