/* A — Depot Counter: split rail + stock list rows */
:root {
  --bg: #c9c4bb;
  --bg2: #b8b2a8;
  --panel: #ddd8cf;
  --ink: #1c1b19;
  --muted: #5a574f;
  --line: #1c1b19;
  --accent: #e85d04;
  --accent-ink: #1c1b19;
  --ok: #1a7a3c;
  --danger: #b42318;
  --shadow: 0 0 0 2px var(--ink);
  --font: "Noto Sans TC", system-ui, sans-serif;
  --display: Oswald, "Noto Sans TC", sans-serif;
  --radius: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(28,27,25,.04) 24px),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  line-height: 1.45;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.price-was { display: block; font-weight: 500; color: var(--muted); text-decoration: line-through; font-size: .72rem; }

.back-choose {
  position: fixed; z-index: 400;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  padding: 8px 12px; background: var(--ink); color: var(--panel);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-decoration: none;
  border: 2px solid var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border: 2px solid var(--ink);
  background: var(--panel); font-weight: 800; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; text-transform: uppercase; font-size: .82rem;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; }
.icon-btn, .text-btn {
  border: 2px solid var(--ink); background: var(--panel); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.icon-btn { width: 44px; height: 44px; }
.text-btn { padding: 0 12px; min-height: 44px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.cartbtn__count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  background: var(--accent); color: var(--ink); font-size: .65rem; font-weight: 900;
  border: 2px solid var(--ink); display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.cartbtn__count.show { display: inline-flex; }

/* —— Split depot shell —— */
.depot {
  display: grid;
  min-height: 100vh;
}
.depot__rail {
  display: none;
  background: #1c1b19;
  color: #ece9e4;
  padding: 28px 22px;
  flex-direction: column;
  gap: 28px;
  border-right: 3px solid var(--ink);
}
.depot__ticket {
  font-family: var(--display); letter-spacing: .18em; font-size: .75rem; color: var(--accent); margin-bottom: 10px;
}
.depot__rail .logo {
  font-family: var(--display); font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: .08em; text-decoration: none; line-height: .95; display: block;
}
.depot__tag { margin-top: 10px; font-weight: 700; }
.depot__blurb { margin-top: 8px; color: #b8b2a8; font-size: .92rem; max-width: 28ch; }
.depot__cta { display: grid; gap: 10px; margin-top: 18px; }
.depot__cta .btn--ghost { color: #ece9e4; border-color: #ece9e4; }
.depot__cats { display: grid; gap: 6px; }
.depot__cats .site-nav__link {
  text-align: left; border: 2px solid transparent; background: transparent;
  color: #ece9e4; padding: 10px 12px; cursor: pointer; font-weight: 700; text-decoration: none;
}
.depot__cats .site-nav__link.is-active,
.depot__cats .site-nav__link:hover { border-color: var(--accent); color: var(--accent); }
.depot__rail-foot { margin-top: auto; display: grid; gap: 12px; }
.depot__pay-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #b8b2a8; }
.depot__pays { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.depot__pays li {
  border: 1px solid #5a574f; padding: 4px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.depot__rail-actions { display: flex; gap: 8px; align-items: center; }
.depot__rail-actions .text-btn,
.depot__rail-actions .icon-btn { background: #2a2825; color: #ece9e4; border-color: #5a574f; }

.depot__main { min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(201,196,187,.94); border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(8px);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; gap: 10px;
}
.topbar__mark {
  font-family: var(--display); letter-spacing: .16em; font-size: .85rem;
}
.topbar__actions { display: flex; gap: 6px; align-items: center; }

@media (min-width: 960px) {
  .depot { grid-template-columns: minmax(260px, 320px) 1fr; }
  .depot__rail { display: flex; position: sticky; top: 0; height: 100vh; }
  .topbar .memberbtn, .topbar .langbtn, .topbar .cartbtn { display: none; }
  .topbar__actions { display: none; }
}

/* Short banner — not full-bleed hero */
.banner {
  position: relative; height: clamp(140px, 28vw, 220px);
  border-bottom: 3px solid var(--ink); overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr;
}
.banner__slides { position: relative; min-height: 100%; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
}
.hero__slide.is-active { opacity: 1; }
.banner__meta {
  background: var(--ink); color: #ece9e4; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.banner__meta p:first-child {
  font-family: var(--display); letter-spacing: .08em; font-size: 1.1rem; color: var(--accent);
}
.banner__meta p:last-child { font-size: .86rem; color: #b8b2a8; }
.banner__dots {
  position: absolute; left: 12px; bottom: 10px; display: flex; gap: 6px; z-index: 2;
}
.banner__dots button {
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 50%;
}
.banner__dots button::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.35);
}
.banner__dots button.is-active::after { background: var(--accent); }
@media (max-width: 700px) {
  .banner { grid-template-columns: 1fr; height: auto; }
  .banner__slides { height: 160px; }
  .banner__meta { min-height: 88px; }
}

.catalog, .membership, .payments, .newsletter { padding: 28px 16px; }
.section-head { margin-bottom: 16px; max-width: 40ch; }
.section-kicker {
  font-family: var(--display); letter-spacing: .16em; font-size: .72rem;
  color: var(--accent); margin-bottom: 6px;
}
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: .04em; line-height: .95; margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

.cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px;
  margin-bottom: 8px; -webkit-overflow-scrolling: touch;
}
.cat {
  flex: 0 0 auto; border: 2px solid var(--ink); background: transparent;
  padding: 8px 14px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: .75rem;
}
.cat.active { background: var(--ink); color: var(--panel); }

/* Row product list — not cards */
.row-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.row-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 2px solid var(--ink);
  animation: rise .35s ease both;
}
.row-item__media {
  width: 92px; height: 92px; border: 2px solid var(--ink); background: #ece9e4; overflow: hidden;
}
.row-item__top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.row-item__top h3 { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.badge {
  flex: 0 0 auto; font-size: .65rem; font-weight: 800; letter-spacing: .04em;
  border: 1px solid var(--ink); padding: 2px 6px; background: var(--panel); text-transform: uppercase;
}
.row-item__desc { color: var(--muted); font-size: .84rem; margin: 6px 0 10px; }
.row-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; }
.add {
  border: 2px solid var(--ink); background: var(--accent); min-width: 72px; min-height: 40px;
  font-weight: 900; cursor: pointer; text-transform: uppercase; font-size: .75rem; padding: 0 12px;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.membership { background: #1c1b19; color: #ece9e4; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.membership .section-head p, .membership .section-kicker { color: #b8b2a8; }
.membership .section-kicker { color: var(--accent); }
.membership__perks { list-style: none; display: grid; gap: 8px; margin: 16px 0; }
.membership__perks li { border-left: 3px solid var(--accent); padding-left: 10px; }
.membership__summary {
  border: 2px solid var(--accent); padding: 12px; margin-bottom: 14px; display: grid; gap: 4px;
}

.payments__list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0;
}
.payments__list li {
  border: 2px solid var(--ink); padding: 14px; font-family: var(--display);
  letter-spacing: .08em; text-align: center; background: var(--panel);
}
.payments__note { color: var(--muted); font-size: .88rem; }

.newsletter__inner { display: grid; gap: 18px; }
.newsletter__form { display: grid; gap: 10px; max-width: 420px; }
.newsletter__form input[type="email"] {
  border: 2px solid var(--ink); background: var(--panel); padding: 12px 14px; min-height: 48px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; }
.form__error { color: var(--danger); font-size: .86rem; }
.newsletter__ok { color: var(--ok); font-size: .9rem; }

.site-footer {
  padding: 24px 16px 40px; border-top: 3px solid var(--ink); color: var(--muted); font-size: .86rem;
}
.site-footer__brand {
  font-family: var(--display); color: var(--ink); letter-spacing: .1em; font-size: 1.2rem; margin-bottom: 8px;
}

.fab-wa {
  position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 0; background: #25d366; color: #fff;
  display: grid; place-items: center; z-index: 250; border: 2px solid var(--ink); text-decoration: none;
}

/* Age / cart / modal — shared patterns */
.agegate {
  position: fixed; inset: 0; z-index: 500; background: rgba(28,27,25,.92);
  display: grid; place-items: center; padding: 20px;
}
.agegate__panel {
  width: min(420px, 100%); background: var(--panel); border: 3px solid var(--ink);
  padding: 28px 22px; display: grid; gap: 12px;
}
.agegate__brand { font-family: var(--display); letter-spacing: .12em; font-size: 1.4rem; }
.agegate__kicker { color: var(--accent); font-weight: 900; letter-spacing: .2em; }
.agegate h1 { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }

.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 350;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(400px, 100%); height: 100%;
  background: var(--panel); border-left: 3px solid var(--ink); z-index: 360;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; padding: 16px;
}
.drawer.show { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer__head h2 { font-family: var(--display); letter-spacing: .08em; }
.items { flex: 1; overflow: auto; display: grid; gap: 10px; align-content: start; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.item img { width: 56px; height: 56px; border: 2px solid var(--ink); }
.item .info { display: grid; gap: 2px; font-size: .86rem; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border: 2px solid var(--ink); background: var(--bg); cursor: pointer; font-weight: 900; }
.total { display: flex; justify-content: space-between; font-family: var(--display); font-size: 1.2rem; margin: 12px 0 6px; }
.cart-note { color: var(--muted); font-size: .8rem; margin-bottom: 10px; }
.checkout { width: 100%; }
.empty { color: var(--muted); padding: 24px 0; }

.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal__panel {
  position: relative; width: min(440px, 100%); background: var(--panel);
  border: 3px solid var(--ink); padding: 20px; max-height: 90vh; overflow: auto;
}
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal__head h2 { font-family: var(--display); }
.modal__lead { color: var(--muted); margin-bottom: 12px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  border: 2px solid var(--ink); background: #fff; padding: 12px; min-height: 48px;
}
.member-card { border: 2px solid var(--ink); padding: 14px; margin-bottom: 12px; display: grid; gap: 6px; }
.notice {
  background: var(--ink); color: #ece9e4; padding: 10px 14px; font-size: .86rem; text-align: center;
}

@media (min-width: 960px) {
  .catalog, .membership, .payments, .newsletter, .site-footer { padding-left: 28px; padding-right: 28px; }
  .newsletter__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
}
