:root {
  --bg: #faf7f2;
  --bg-2: #f2ede4;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #e6dfd2;
  --gold: #c9a24d;
  --gold-2: #b58a2f;
  --accent: #1f4b3f;
  --danger: #c14848;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(30, 20, 10, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .02em; }
.eyebrow {
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--gold-2);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: 22px; box-shadow: var(--shadow);
}
.brand-name { font-weight: 900; font-size: 18px; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .25em; }

.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { color: var(--ink-2); position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s;
}
.nav a:hover::after { width: 100%; }

.cart-btn {
  position: relative;
  background: var(--ink); color: #fff;
  border: none; border-radius: 999px;
  padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-weight: 500;
  transition: transform .2s, background .2s;
}
.cart-btn:hover { background: #000; transform: translateY(-1px); }
.cart-count {
  background: var(--gold); color: #fff;
  border-radius: 999px; min-width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; padding: 0 6px;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 40px 100px;
  overflow: hidden;
  background:
    radial-gradient(1000px 400px at 90% -10%, rgba(201, 162, 77, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 100%, rgba(31, 75, 63, .10), transparent 60%),
    linear-gradient(180deg, #faf7f2 0%, #f5f0e5 100%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.hero-tag {
  display: inline-block;
  font-size: 12px; letter-spacing: .35em; color: var(--gold-2);
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 6px 16px; background: rgba(255,255,255,.6);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.15; letter-spacing: -.01em;
  max-width: 900px;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 60%, var(--accent) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero p {
  max-width: 620px; font-size: 17px; color: var(--ink-2); margin-top: 20px;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 14px 26px;
  border: none; border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: all .25s; font-size: 15px;
}
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(181,138,47,.35); }
.btn-primary.block { display: block; width: 100%; padding: 16px; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 14px 26px;
  border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink);
  font-weight: 600; transition: all .2s;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-text {
  background: transparent; border: none; color: var(--ink-3);
  padding: 10px; cursor: pointer; font-size: 13px; margin-top: 8px;
  text-decoration: underline;
}
.btn-text:hover { color: var(--danger); }

.hero-stats { margin-top: 60px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 32px; font-weight: 800; font-family: 'Playfair Display', serif; color: var(--gold-2); }
.hero-stats span { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }

.hero-deco {
  position: absolute; right: -80px; top: 60px;
  width: 500px; height: 500px; opacity: .35;
  background:
    radial-gradient(circle at 30% 30%, var(--gold) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 20%, var(--accent) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 50%, var(--gold-2) 0 6px, transparent 7px),
    radial-gradient(circle at 40% 70%, var(--accent) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 80%, var(--gold) 0 5px, transparent 6px);
  filter: blur(0);
  pointer-events: none;
}

/* Products */
.products-section { max-width: 1240px; margin: 40px auto; padding: 40px 40px 80px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.section-head h2 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: clamp(28px, 3.4vw, 42px);
}
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; background: transparent; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--ink-2);
  transition: all .2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30,20,10,.12); }
.card-media {
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: .2em; color: var(--ink);
  font-weight: 600;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 20px; font-weight: 800; }
.card-tag { color: var(--gold-2); font-size: 13px; font-weight: 500; }
.card-desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; flex: 1; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.price {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 900;
  color: var(--ink);
}
.price::before { content: 'NT$ '; font-size: 13px; color: var(--ink-3); font-family: 'Noto Sans TC'; font-weight: 400; margin-right: 2px; }
.add-btn {
  background: var(--ink); color: #fff; border: none;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.add-btn:hover { background: var(--gold-2); }
.add-btn.added { background: var(--accent); }

/* About */
.about { background: var(--bg-2); padding: 80px 40px; }
.about-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: center;
}
.about h2 { font-family: 'Playfair Display', 'Noto Sans TC', serif; font-size: 36px; margin-bottom: 20px; }
.about p { color: var(--ink-2); font-size: 16px; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.steps li {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px; background: rgba(255,255,255,.7); border-radius: 12px;
  border: 1px solid var(--line);
}
.steps b {
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--gold-2);
  min-width: 40px;
}
.about-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff; padding: 50px 40px; border-radius: 20px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.15);
}
.about-card::before {
  content: '"'; position: absolute; top: -20px; left: 20px;
  font-family: 'Playfair Display', serif; font-size: 220px; color: rgba(201,162,77,.2);
}
.quote {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: 26px; line-height: 1.5; font-weight: 700;
  position: relative; z-index: 2;
}
.signature { margin-top: 24px; color: var(--gold); font-size: 14px; letter-spacing: .15em; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--ink); color: #ccc;
  padding: 50px 40px 30px;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 40px; align-items: start;
}
.site-footer .brand-name { color: #fff; font-size: 18px; }
.site-footer .brand-sub { color: #888; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 14px; }
.contact b { display: block; color: var(--gold); font-size: 12px; letter-spacing: .2em; margin-bottom: 4px; }
.copy {
  grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 20px; margin-top: 20px;
  font-size: 12px; color: #666; letter-spacing: .1em;
}
@media (max-width: 800px) {
  .site-footer { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* Cart Drawer */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 420px; max-width: 100vw;
  background: #fff; z-index: 100;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head, .modal-head {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3, .modal-head h3 { font-size: 18px; font-weight: 800; }
.close {
  background: transparent; border: none; font-size: 28px;
  cursor: pointer; color: var(--ink-3); line-height: 1;
  width: 36px; height: 36px; border-radius: 50%;
  transition: background .2s;
}
.close:hover { background: var(--bg-2); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; margin-bottom: 8px;
}
.total-row b { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold-2); }

.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.cart-item-name { font-weight: 700; font-size: 14px; }
.cart-item-price { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.qty-ctrl {
  display: inline-flex; align-items: center; gap: 0; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty-ctrl button {
  background: transparent; border: none; width: 28px; height: 28px;
  cursor: pointer; font-size: 15px; color: var(--ink-2);
}
.qty-ctrl button:hover { background: var(--bg-2); }
.qty-ctrl span { min-width: 30px; text-align: center; font-weight: 600; font-size: 13px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-sub { font-weight: 800; color: var(--ink); }
.remove {
  background: transparent; border: none; color: var(--ink-3);
  font-size: 12px; cursor: pointer; text-decoration: underline;
}
.remove:hover { color: var(--danger); }

.empty {
  text-align: center; padding: 60px 20px; color: var(--ink-3);
}
.empty svg { width: 60px; height: 60px; opacity: .3; margin-bottom: 16px; }

/* Modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 200;
  display: grid; place-items: center; padding: 20px;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 500px;
  transform: translateY(20px); opacity: 0;
  transition: all .3s; overflow: hidden;
  max-height: 90vh; display: flex; flex-direction: column;
}
.modal-mask.open .modal { transform: translateY(0); opacity: 1; }
.modal-body { padding: 24px; overflow-y: auto; }
.form { display: grid; gap: 14px; }
.form label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.form input, .form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px;
  background: var(--bg); color: var(--ink);
  transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.order-summary {
  background: var(--bg); border-radius: 10px; padding: 14px 16px;
  font-size: 13px; margin-top: 6px;
}
.order-summary .row { display: flex; justify-content: space-between; padding: 3px 0; }
.order-summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 15px; }

.success {
  text-align: center; padding: 20px 0;
}
.success .check {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; margin: 0 auto 20px;
  font-size: 36px;
}
.success h4 { font-size: 22px; margin-bottom: 8px; }
.success .order-id { color: var(--gold-2); font-weight: 700; letter-spacing: .1em; margin: 12px 0; }
.success p { color: var(--ink-2); font-size: 14px; }

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 720px) {
  .site-header { padding: 12px 20px; }
  .nav { display: none; }
  .hero { padding: 60px 20px 70px; }
  .products-section { padding: 30px 20px 60px; }
  .about { padding: 60px 20px; }
  .cart-drawer { width: 100vw; }
}
