:root {
  --bg: #160f09;
  --panel: #23170f;
  --panel-2: #332319;
  --gold: #d5aa49;
  --gold-2: #f4d985;
  --ink: #fff7e6;
  --muted: #d8c49c;
  --line: rgba(213, 170, 73, .34);
  --shadow: 0 20px 60px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 170, 73, .2), transparent 32rem),
    linear-gradient(120deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #291b10, #0e0905 72%);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.shop-shell { width: min(1180px, 100%); margin: auto; padding: 18px clamp(16px, 4vw, 34px) 72px; }
.shop-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 18px; }
.shop-header-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244, 217, 133, .75); box-shadow: 0 0 22px rgba(213, 170, 73, .24); object-fit: cover; }
.brand b { display: block; font-family: "Noto Serif TC", "Songti TC", serif; font-size: 22px; letter-spacing: .08em; }
.brand span, .top-link { color: var(--muted); font-size: 13px; }
.top-link { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: rgba(255, 255, 255, .04); }

.hero {
  min-height: 330px;
  display: grid;
  align-items: end;
  padding: clamp(28px, 8vw, 72px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58)),
    url("/images/brand/showroom/showroom-interior.jpg") center/cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.eyebrow { margin: 0 0 12px; color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
h1 { margin: 0; font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(38px, 8vw, 82px); line-height: 1.02; letter-spacing: .02em; text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.hero p:last-child { max-width: 720px; margin: 18px 0 0; color: #f2e3bd; font-size: 18px; line-height: 1.7; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 34px 0 16px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 6vw, 42px); font-family: "Noto Serif TC", "Songti TC", serif; }
.section-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-card, .product-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(65, 44, 27, .94), rgba(28, 18, 11, .96));
  box-shadow: 0 14px 30px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.category-card h3, .product-card h3 { margin: 0; font-family: "Noto Serif TC", "Songti TC", serif; font-size: 25px; letter-spacing: .04em; }
.category-card p, .product-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.arrow { color: var(--gold-2); font-weight: 900; }
.product-card { padding: 0; overflow: hidden; min-height: 310px; }
.product-card img, .detail-image { width: 100%; height: 170px; object-fit: cover; background: #2a1a0f; }
.product-card-body { padding: 16px; display: grid; gap: 10px; }
.price { color: var(--gold-2); font-size: 20px; font-weight: 900; letter-spacing: .04em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid rgba(244,217,133,.32); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 12px; }
.btn, .btn-secondary {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 950;
}
.btn { background: linear-gradient(145deg, #fff0a8, #c8931b); color: #1d1208; box-shadow: 0 12px 28px rgba(213, 170, 73, .26); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.pager span { color: var(--muted); font-weight: 800; }
.pager .is-disabled {
  opacity: .45;
  pointer-events: none;
}

.detail-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; align-items: start; }
.detail-panel, .admin-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(25, 16, 10, .88);
  box-shadow: var(--shadow);
  padding: 22px;
}
.detail-image { height: min(58vw, 520px); border-radius: 18px; border: 1px solid var(--line); }
.detail-panel h1 { font-size: clamp(32px, 7vw, 58px); }
.detail-panel li { margin: 8px 0; color: var(--muted); line-height: 1.7; }
.notice { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; border-top: 1px solid rgba(213,170,73,.2); padding-top: 16px; }
.checkout-form {
  margin-top: 22px;
  border-top: 1px solid rgba(213,170,73,.22);
  padding-top: 18px;
}
.checkout-form h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  letter-spacing: .04em;
}
.checkout-form p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.checkout-form .field span {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}
.bank-card {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  border: 1px solid rgba(244,217,133,.42);
  border-radius: 16px;
  padding: 14px;
  color: #fff4cf;
  background: linear-gradient(145deg, rgba(213,170,73,.14), rgba(255,255,255,.04));
}
.bank-card b {
  color: var(--gold-2);
  font-size: 16px;
}
.bank-card small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--gold-2); font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.06);
}
.field textarea { min-height: 108px; resize: vertical; }
.admin-list { margin-top: 18px; display: grid; gap: 10px; }
.admin-item { border: 1px solid rgba(213,170,73,.24); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.04); }
.status { margin-top: 14px; color: var(--gold-2); font-weight: 800; line-height: 1.7; }

footer { color: var(--muted); border-top: 1px solid rgba(213,170,73,.18); margin-top: 46px; padding-top: 22px; line-height: 1.8; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-header-links { width: 100%; justify-content: flex-start; }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shop-shell { padding: 14px 14px 56px; }
  .shop-header { align-items: flex-start; }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: 19px; }
  .hero { min-height: 280px; border-radius: 22px; padding: 26px 20px; }
  .hero p:last-child { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .category-card { min-height: 128px; }
  .product-card img { height: 190px; }
  .admin-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .top-link { display: none; }
}
