
.mp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ba4848;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mp-border);
}
.mp-nav-inner {
  width: 100%;
  height: 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
}
.mp-nav-left { justify-self: start; display: flex; align-items: center; }
.mp-nav-center { justify-self: center; }
.mp-nav-right { justify-self: end; width: 100%; display: flex; justify-content: flex-end; }

.mp-logo { height: 76px; width: auto; display: block; }

.mp-hamburger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mp-radius-sm);
  border: 1px solid var(--mp-border);
  background: var(--mp-card);
  color: var(--mp-foreground);
  transition: background-color .15s, border-color .15s;
}
.mp-hamburger:hover { background: var(--mp-muted); border-color: var(--mp-primary); }
.mp-hamburger svg { width: 20px; height: 20px; }

/* ---------- Search pill (desktop, in nav) ---------- */
.mp-search {
  display: flex;
  align-items: center;
  height: 40px;
  max-width: 360px;
  width: 100%;
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.mp-search:focus-within { border-color: var(--mp-primary); box-shadow: 0 0 0 3px var(--mp-ring); }
.mp-search-select {
  border: none;
  background: transparent;
  height: 100%;
  padding: 0 8px 0 14px;
  font-size: 13px;
  color: var(--mp-muted-foreground);
  max-width: 108px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238a7361' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 16px;
}
.mp-search-select:focus { outline: none; }
.mp-search-divider { width: 1px; height: 20px; background: var(--mp-border); flex-shrink: 0; }
.mp-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  height: 100%;
  padding: 0 8px 0 10px;
  font-size: 14px;
  color: var(--mp-foreground);
}
.mp-search-input:focus { outline: none; }
.mp-search-input::placeholder { color: #c4b6a4; }
.mp-search-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e3bb39;
  color: var(--mp-foreground);
  border: none;
  transition: background-color .15s;
}
.mp-search-btn:hover { background: #c9a530; }
.mp-search-btn svg { width: 17px; height: 17px; }

@media (max-width: 1023px) {
  .mp-search { display: none; }
}

/* ---------- Drawer (off-canvas) ---------- */
.mp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 32, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 60;
}
.mp-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.mp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 300px;
  max-width: 86vw;
  background: var(--mp-card);
  z-index: 61;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--mp-shadow-lg);
}
.mp-drawer.is-open { transform: translateX(0); }

.mp-drawer-head {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--mp-border);
}
.mp-drawer-title { font-weight: 700; font-size: 15px; color: var(--mp-foreground); }
.mp-drawer-close {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: var(--mp-radius-sm); color: var(--mp-muted-foreground);
}
.mp-drawer-close:hover { background: var(--mp-muted); }
.mp-drawer-close svg { width: 18px; height: 18px; }

.mp-drawer-body { padding: 18px 16px 28px; overflow-y: auto; flex: 1; }

/* 通用 drawer 區塊（取代各自獨立的 margin/border，讓 會員/導覽/各站/搜尋 統一間距） */
.mp-drawer-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--mp-border); }
.mp-drawer-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.mp-drawer-field { margin-bottom: 10px; }
.mp-drawer-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mp-muted-foreground);
  margin-bottom: 4px;
}
.mp-drawer-input--block { width: 100%; }

.mp-drawer-login-links { display: flex; justify-content: space-between; margin-top: 10px; }
.mp-drawer-login-links a { font-size: 12px; color: var(--mp-primary); text-decoration: underline; }
.mp-drawer-login-links a:hover { color: var(--mp-primary-dark); }

.mp-drawer-greeting { font-size: 14px; font-weight: 700; color: var(--mp-foreground); margin: 0 0 12px; }
.mp-drawer-member-icons { display: flex; gap: 12px; justify-content: center; }
.mp-drawer-member-icons a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--mp-radius-sm);
  border: 1px solid var(--mp-border);
  color: var(--mp-foreground);
  transition: background-color .15s, border-color .15s;
}
.mp-drawer-member-icons a:hover { background: var(--mp-muted); border-color: var(--mp-primary); }
.mp-drawer-member-icons svg { width: 18px; height: 18px; }
.mp-drawer-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--mp-muted-foreground);
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.mp-drawer-select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-muted);
  padding: 0 10px;
  font-size: 13px;
  color: var(--mp-foreground);
  margin-bottom: 8px;
}
.mp-drawer-search-row { display: flex; gap: 8px; }
.mp-drawer-input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  padding: 0 10px;
  font-size: 13px;
}
.mp-drawer-input:focus, .mp-drawer-select:focus { outline: none; border-color: var(--mp-primary); box-shadow: 0 0 0 3px var(--mp-ring); }
.mp-drawer-search-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-primary);
  color: var(--mp-primary-foreground);
  font-size: 13px;
  font-weight: 700;
}
.mp-drawer-search-btn:hover { background: var(--mp-primary-dark); }

@media (min-width: 1024px) {
  .mp-drawer-search { display: none; }
}

.mp-drawer-links { display: flex; flex-direction: column; }
.mp-drawer-links a {
  padding: 11px 4px;
  font-size: 14px;
  color: var(--mp-foreground);
  border-bottom: 1px solid var(--mp-border);
  transition: color .15s;
}
.mp-drawer-links a:hover { color: var(--mp-primary); }
.mp-drawer-links a:last-child { border-bottom: none; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .mp-nav-inner { height: 56px; }
  .mp-logo { height: 30px; }
}
