
:root {
  --bg: #fbf8f5;
  --ink: #1a1a1a;
  --gold: #fad94e;
  --gold-dark: #e0b923;
  --muted: #8a8a8a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Helvetica Neue', Arial, "Noto Sans TC", sans-serif;
}
a { color: inherit; text-decoration: none; }
.test-banner {
  background: #222; color: #fff; text-align: center;
  font-size: 13px; padding: 8px 12px;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; flex-wrap: wrap; gap: 16px;
}
.brand { display: flex; flex-direction: column; }
.brand-zh { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.brand-logo { height: 44px; display: block; }
.search-cart { display: flex; align-items: center; gap: 16px; }
.search-cart input {
  border: none; background: #f3ece2; border-radius: 20px;
  padding: 10px 18px; width: 220px; font-size: 14px;
}
.cart-icon {
  background: var(--gold); color: #1a1a1a; border-radius: 20px;
  padding: 8px 16px; font-weight: 700; white-space: nowrap;
}
.mainnav {
  display: flex; justify-content: center; gap: 8px; padding: 14px 12px;
  border-bottom: 1px solid #eee2d2; font-size: 14px; letter-spacing: .5px;
  flex-wrap: wrap; position: relative;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-top { padding: 6px 8px; }
.nav-top.active { color: var(--gold-dark); font-weight: 700; }
.nav-toggle {
  background: none; border: none; cursor: pointer; font-size: 12px;
  color: var(--muted); padding: 6px 2px 6px 0;
}
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  background: #fff; border: 1px solid #eee2d2; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 8px 0; min-width: 220px;
  flex-direction: column;
}
.nav-item:hover .nav-dropdown, .nav-item.open .nav-dropdown { display: flex; }
.nav-dropdown a { padding: 8px 16px; white-space: nowrap; font-size: 13px; }
.nav-dropdown a:hover, .nav-dropdown a.active { background: #f3ece2; color: var(--gold-dark); }
main { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.section-title {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-size: 26px; margin-bottom: 8px;
}
.muted { color: var(--muted); font-size: 14px; }
.catalog-head { margin-bottom: 24px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px;
}
.card {
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.photo-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; display: block; background: #f3ece2; }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-wrap.large { max-width: 480px; margin: 0 auto; border-radius: 4px; }
.no-photo {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; background: #f3ece2;
}
.no-photo.large { aspect-ratio: 1/1; font-size: 16px; }
.info { padding: 14px 14px 20px; text-align: center; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.title { font-family: Georgia, serif; font-style: italic; font-size: 15px; display: block; }
.title.large { font-size: 24px; margin-bottom: 12px; }
.price .now { font-weight: 700; }
.price .quote { color: var(--gold-dark); font-weight: 700; }
.btn-add {
  margin-top: auto; background: var(--gold); border: none; border-radius: 20px;
  padding: 10px 16px; font-weight: 700; cursor: pointer; width: 100%; display: block;
  text-align: center; font-size: 14px;
}
.btn-add:hover { background: var(--gold-dark); }
.btn-large { padding: 14px 24px; font-size: 16px; }
.product-detail { display: flex; gap: 48px; flex-wrap: wrap; }
.detail-info { flex: 1; min-width: 280px; }
.desc { white-space: pre-wrap; line-height: 1.7; margin: 20px 0; font-size: 14px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.back-link { display: inline-block; margin-top: 16px; color: var(--muted); text-decoration: underline; }
.cart-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid #eee2d2; text-align: left; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.cart-table input[type=number] { width: 56px; }
.cart-summary { margin-top: 24px; display: flex; align-items: center; gap: 24px; justify-content: flex-end; }
.cart-total { font-size: 18px; font-weight: 700; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checkout-form input, .checkout-form textarea {
  border: 1px solid #eee2d2; border-radius: 6px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
#checkout-summary { background: #fff; border-radius: 6px; padding: 16px; font-size: 14px; }
#checkout-summary .line { display: flex; justify-content: space-between; padding: 4px 0; }
footer { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }

.home-main { max-width: 1200px; }
.portfolio-section { margin-bottom: 8px; }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.portfolio-item { aspect-ratio: 1/1; overflow: hidden; border-radius: 4px; background: #f3ece2; }
.portfolio-item.portfolio-wide { grid-column: span 2; aspect-ratio: 2/1; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-cta { text-align: center; margin: 32px 0 48px; }
.btn-outline {
  display: inline-block; border: 1px solid var(--ink); border-radius: 20px;
  padding: 10px 28px; font-size: 14px; font-weight: 700;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.home-carousel { margin-bottom: 48px; }
.carousel-title {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-size: 22px; margin: 0 0 16px;
}
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 4px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 220px; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.carousel-card .photo-wrap { aspect-ratio: 1/1; }
.carousel-card .info { padding: 12px 12px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-right: 4px; }
.carousel-arrow {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #eee2d2;
  background: #fff; cursor: pointer; font-size: 14px; color: var(--ink);
}
.carousel-arrow:hover { background: #f3ece2; }
.home-footer .footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px;
  margin: 0 auto; text-align: left; padding: 0 24px;
}
.home-footer .footer-line { margin: 0 0 12px; font-size: 15px; }
.home-footer .footer-map { margin-top: 12px; border-radius: 6px; overflow: hidden; }
.home-footer .footer-box {
  background: #fff; border: 1px solid #f0c9d8; border-radius: 6px; padding: 20px; font-size: 14px; line-height: 1.7;
}
.home-footer .footer-box-title { font-weight: 700; margin: 12px 0 4px; }
.home-footer .footer-box-title:first-child { margin-top: 0; }
.home-footer .footer-copy { margin-top: 24px; }
footer.home-footer { background: #fbe4ec; padding: 40px 20px; }
.about-banner { background: #f3ddc4; padding: 40px; text-align: center; margin-bottom: 32px; }
.about-banner h1 { margin: 0; letter-spacing: 6px; font-size: 22px; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text p { line-height: 1.9; margin: 0 0 16px; }
.about-shop-name { font-size: 17px; }
.about-photo img { width: 100%; border-radius: 4px; }
.delivery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.delivery-layout h2 { font-size: 18px; margin-bottom: 16px; }
.delivery-layout p { line-height: 1.8; margin: 0 0 16px; }
.delivery-layout ol { padding-left: 20px; line-height: 1.8; }
.typhoon-title { text-align: center; margin-bottom: 24px; }
.typhoon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.typhoon-card { border-radius: 6px; padding: 20px; text-align: center; line-height: 1.7; font-size: 14px; }
.typhoon-card .typhoon-signal { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.typhoon-green { background: #eaf3e6; }
.typhoon-amber { background: #fbe9d0; }
.typhoon-red { background: #fadbdb; }
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.portfolio-wide { grid-column: span 2; }
  .home-footer .footer-grid { grid-template-columns: 1fr; }
  .about-layout, .delivery-layout, .typhoon-grid { grid-template-columns: 1fr; }
}
