@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #3a1815;
  --muted: #80615c;
  --paper: #fff9f5;
  --panel: #ffffff;
  --line: #ead0ca;
  --pink: #e7b6b1;
  --pink-dark: #891d16;
  --butter: #ffe9a6;
  --mint: #d9e8cf;
  --sky: #d8eef2;
  --shadow: 0 18px 45px rgba(137, 29, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

p,
h1,
h2,
h3,
h4 {
  padding: 0;
  margin: 0;
  line-height: normal;
}

body {
  margin: 0;
  background: linear-gradient(90deg, rgba(137, 29, 22, 0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(137, 29, 22, 0.08) 1px, transparent 1px), var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Noto Sans TC", "Trebuchet MS", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(58, 24, 21, 0.12);
  backdrop-filter: blur(14px);
  gap: 0;
}

.promo-bar {
  display: block;
  min-height: 34px;
  padding: 6px 12px;
  overflow: hidden;
  background: rgba(159, 183, 157, 0.3);
  color: var(--pink-dark);
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.promo-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  gap: 36px;
  animation: marquee 22s linear infinite;
}

.promo-track span {
  flex: none;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 12px 0px;
}

.brand,
.nav-links,
.user-actions,
.hero-actions,
.section-heading,
.category-tabs,
.dialog-actions,
.cart-pill {
  display: flex;
  align-items: center;
}

.dialog-actions {
  justify-content: center;
  gap: 10px;
}
.dialog-actions .button {
  min-width: 100px;
}

.brand {
  order: 1;
  flex: 0 1 auto;
  min-width: 0;
  justify-self: auto;
  margin-right: auto;
  justify-content: center;
  gap: 12px;
  color: #080808;
  text-align: center;
}

.brand strong {
  display: block;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.88;
}

.brand small {
  display: none;
}

.brand-mark {
  display: block;
  width: min(38vw, 190px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-links {
  display: none;
  position: static;
  justify-self: start;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
  grid-column: 1/-1;
}

.nav-links a {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  background: transparent;
  color: var(--pink-dark);
}

.menu-toggle {
  order: 3;
  display: grid;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  border: none;
  flex: 0 0 42px;
  justify-self: auto;
  margin-left: 2px;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--pink-dark);
  transition: 0.2s ease;
  transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 26px;
}

.menu-toggle.active span:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 146px 0 0;
  z-index: 24;
  background: rgba(58, 24, 21, 0.22);
}

@media (min-width: 661px) {
  .topbar {
    gap: 12px;
  }
  .promo-bar {
    min-height: 38px;
    padding: 7px 16px;
    font-size: inherit;
  }
  .header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0;
    padding: 0px clamp(18px, 4vw, 54px) 0px;
  }
  .brand {
    order: unset;
    flex: unset;
    margin-right: unset;
    justify-self: center;
  }
  .brand small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
  }
  .brand-mark {
    width: clamp(180px, 22vw, 330px);
    max-height: 92px;
  }
  .nav-links {
    grid-column: auto;
    justify-content: flex-start;
  }
  .menu-toggle {
    order: unset;
    flex: unset;
    margin-left: unset;
  }
}
@media (min-width: 981px) {
  .topbar {
    gap: unset;
  }
  .header-main {
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  }
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}
.member-menu,
.mobile-menu {
  position: fixed;
  top: 88px;
  right: 12px;
  z-index: 25;
  display: grid;
  width: min(320px, 100vw - 32px);
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.member-menu a,
.member-menu button,
.mobile-menu a,
.mobile-menu button {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.member-menu a.active,
.member-menu button.active,
.mobile-menu a.active,
.mobile-menu button.active {
  background: var(--pink-dark);
  color: #fff;
}
.member-menu button,
.mobile-menu button {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.member-menu {
  top: 88px;
  right: 12px;
  padding: 26px;
}

#member-menu-admin-link {
  background: var(--ink) !important;
  color: #fff !important;
  font-weight: 600;
}

@media (min-width: 661px) {
  .member-menu,
  .mobile-menu {
    top: 80px;
    right: 16px;
    padding: 16px;
  }
}
@media (min-width: 981px) {
  .member-menu,
  .mobile-menu {
    top: 120px;
  }
}
.cart-pill {
  position: relative;
  display: grid;
  width: 36px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.cart-pill:hover,
.cart-pill.active {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.user-actions {
  display: flex;
  order: 2;
  grid-column: auto;
  width: auto;
  justify-self: end;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.user-icon {
  display: none;
}

#auth-open {
  min-width: 0;
}

.cart-pill strong,
.badge {
  display: grid;
  position: absolute;
  left: 50%;
  top: 58%;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.section-heading .badge {
  position: static;
  transform: none;
}

.current-user {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.header-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.header-icon img,
.cart-pill img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

@media (min-width: 661px) {
  .cart-pill {
    width: 42px;
    height: 42px;
  }
  .user-actions {
    order: unset;
    gap: 14px;
    margin-left: unset;
    justify-content: flex-end;
  }
  .user-icon {
    display: grid;
  }
  #auth-open {
    min-width: unset;
  }
}
.button,
.tab,
.social-login button,
.icon-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
}

.primary {
  background: var(--pink-dark);
  color: #fff;
  box-shadow: 3px 3px 0 var(--butter);
}

.primary:hover {
  background: var(--ink);
}

.secondary,
.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.secondary:hover,
.ghost:hover {
  border-color: var(--pink-dark);
}

.secondary {
  height: fit-content;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 6px;
  background: #fff;
  border-color: var(--line);
}

.icon-button img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.icon-button.active {
  background: #ffe8f0;
  border-color: var(--pink-dark);
}

.page {
  display: none;
  min-height: calc(100vh - 68px);
}

.page.active {
  display: block;
}

.page-narrow {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px) 0;
}

.hero {
  display: grid;
  min-height: auto;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 7vw, 86px) clamp(16px, 4vw, 50px) 34px;
}

.hero-content {
  max-width: 680px;
}

.hero h1,
.page-title h1,
#page-admin h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.page-title h1,
#page-admin h1 {
  font-size: clamp(2rem, 5vw, 2.4rem);
}

.hero p,
.page-title p {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  order: -1;
  min-height: auto;
}

.hero-photo {
  position: relative;
  display: block;
  width: min(560px, 100%);
  aspect-ratio: 25/13;
  margin-inline: auto;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 14px 14px 0 var(--mint), var(--shadow);
  overflow: hidden;
}

.hero-photo::after {
  position: absolute;
  inset: auto 18px 18px auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: #fff;
  content: "7 TIGERS";
  font-weight: 600;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 981px) {
  .hero {
    min-height: 72vh;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  }
  .hero h1 {
    font-size: clamp(2.7rem, 7vw, 6.4rem);
  }
  .hero-media {
    order: unset;
    min-height: 500px;
  }
  .hero-photo {
    border-radius: 26px;
  }
}
.notice-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 14px clamp(16px, 4vw, 50px);
  border-block: 2px dashed var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.notice-strip span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-weight: 600;
}

.story-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(137, 29, 22, 0.13);
}

.story-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 25/13;
  border: 3px solid var(--ink);
  border-radius: 18px;
}

.story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 981px) {
  .story-panel {
    grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  }
}
.guide-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.guide-sidebar {
  position: static;
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: auto;
  padding: 24px;
  border-right: 0;
  border-bottom: 1px solid rgba(58, 24, 21, 0.24);
}

.guide-sidebar h2 {
  margin: 0 0 28px;
  font-size: 1.45rem;
}

.guide-sidebar a {
  color: rgba(58, 24, 21, 0.45);
  font-weight: 600;
  text-decoration: none;
}

.guide-sidebar a:hover,
.guide-sidebar a.active {
  color: var(--ink);
  text-decoration: underline;
}

.guide-accordion {
  display: grid;
  padding: 0 24px 30px;
}

.guide-accordion details {
  border-bottom: 1px solid rgba(58, 24, 21, 0.55);
}

.guide-accordion details:first-child {
  border-top: 1px solid rgba(58, 24, 21, 0.55);
}

.guide-accordion summary {
  position: relative;
  display: block;
  padding: 26px 54px 26px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  list-style: none;
}

.guide-accordion summary::-webkit-details-marker {
  display: none;
}

.guide-accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--ink);
  font-size: 1.45rem;
  transform: translateY(-50%);
}

.guide-accordion details[open] summary::after {
  content: "-";
}

.guide-accordion ol,
.guide-accordion ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 54px 28px 0;
  color: var(--muted);
  line-height: 1.9;
  list-style-position: inside;
}

.guide-accordion ul {
  list-style: none;
}

.guide-panels {
  display: contents;
}

.accordion {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion li {
  border-bottom: 1px solid rgba(58, 24, 21, 0.55);
}

.accordion li:first-child {
  border-top: 1px solid rgba(58, 24, 21, 0.55);
}

.accordion__title {
  display: block;
  position: relative;
  padding: 22px 54px 22px 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.accordion__title::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--ink);
  font-size: 1.45rem;
  transform: translateY(-50%);
}

.accordion li.open > .accordion__title::after {
  content: "−";
}

.accordion__content {
  display: none;
  padding-bottom: 24px;
  color: var(--muted);
  line-height: 1.9;
}

.accordion li.open > .accordion__content {
  display: block;
}

.accordion__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.accordion__content th,
.accordion__content td {
  padding: 6px 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.accordion__content th {
  background: rgba(58, 24, 21, 0.05);
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-prose {
  padding: clamp(28px, 5vw, 58px) clamp(24px, 5vw, 62px) clamp(34px, 5vw, 70px) 0;
  color: var(--muted);
  line-height: 1.9;
}

.guide-prose p {
  margin: 0 0 12px;
}

.guide-prose p:last-child {
  margin: 0;
}

@media (min-width: 981px) {
  .guide-panel {
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  }
  .guide-sidebar {
    position: sticky;
    min-height: 560px;
    padding: clamp(28px, 5vw, 58px);
    border-right: 1px solid rgba(58, 24, 21, 0.36);
    border-bottom: 0;
  }
  .guide-accordion {
    padding: clamp(28px, 5vw, 58px) clamp(24px, 5vw, 62px) clamp(34px, 5vw, 70px) 0;
  }
}
.search-field {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px 0 4px;
  border: 0;
  background: transparent;
}

.search-field span {
  flex: none;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.search-field input {
  width: 100%;
  height: 66px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
}

.category-tabs {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 22px;
  padding: 12px 14px 16px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(0.88rem, 1.25vw, 1.05rem);
  font-weight: 600;
  flex: 0 0 auto;
}

.tab.active,
.tab:hover {
  color: var(--pink-dark);
}

.tab.highlight {
  color: #d6112e;
}

.search-panel {
  display: grid;
  gap: 18px;
  padding: 22px 14px 28px;
  border-top: 1px solid rgba(58, 24, 21, 0.12);
  background: rgba(255, 255, 255, 0.98);
  position: relative;
}

.search-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search-close::before,
.search-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
}

.search-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.search-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.search-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.search-chips button {
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  background: #eee9d9;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

@media (min-width: 981px) {
  .search-field {
    width: min(64vw, 980px);
    padding: 0 clamp(22px, 4vw, 54px);
  }
  .category-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 46px);
    padding: 16px clamp(18px, 4vw, 54px) 24px;
    overflow-x: visible;
  }
  .tab {
    flex: unset;
  }
  .search-panel {
    gap: 24px;
    padding: 34px clamp(18px, 4vw, 54px) 42px;
    position: static;
  }
  .search-close {
    display: none;
  }
}
.shop-section {
  padding: 18px clamp(18px, 4vw, 54px) 52px;
}

.shop-heading {
  min-height: 42px;
  justify-content: flex-end;
}

.shop-heading > div {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2,
.checkout-form h2,
.admin-form h2,
.orders h2,
.qa-panel h2 {
  margin: 0;
}

.compact {
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted,
.admin-hint {
  color: var(--muted);
}

.admin-hint {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
  align-items: stretch;
}

.product-card,
.summary-section,
.metric,
.admin-form,
.orders,
.checkout-form,
.qa-panel,
.collection-row,
.locked-panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 rgba(137, 29, 22, 0.13);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
}

.product-art,
.mini-art {
  position: relative;
  overflow: hidden;
  background: var(--art-color, var(--sky));
}

.product-art {
  aspect-ratio: 3/4;
  background: #fff;
}

.product-art img,
.mini-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 2px;
  text-align: center;
}

.product-title-row,
.cart-row,
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-title-row h3,
.collection-row h3 {
  margin: 0;
  font-size: 0.95rem;
}

.product-title-row {
  display: grid;
  justify-content: center;
  gap: 5px;
}

.price {
  font-weight: 600;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  z-index: 2;
  padding: 3px 6px;
  background: rgba(255, 249, 245, 0.9);
  color: var(--ink);
  font-weight: 600;
}

.card-favorite {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.card-favorite img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chip {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: #466147;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-chip {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-actions {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  margin-top: auto;
}

.page-title {
  margin-bottom: 22px;
}

@media (min-width: 661px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
  }
  .product-body {
    gap: 6px;
    padding: 0 4px 4px;
  }
  .product-title-row h3 {
    font-size: 1rem;
  }
  .product-title-row {
    gap: 6px;
  }
  .product-badge {
    font-size: 16px;
  }
  .admin-hint {
    display: block;
  }
}
@media (min-width: 981px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.collection-list {
  display: grid;
  gap: 14px;
}

.collection-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.mini-art {
  border-radius: 14px;
  border: 2px solid var(--line);
}

.row-actions {
  display: grid;
  justify-items: stretch;
  gap: 8px;
}

@media (min-width: 661px) {
  .collection-row {
    grid-template-columns: 112px minmax(0, 1fr) auto;
  }
  .row-actions {
    justify-items: end;
  }
}
.product-page {
  width: min(1280px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px) 0;
}

.back-button {
  margin-bottom: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(137, 29, 22, 0.16);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.detail-thumbs button {
  display: block;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.detail-thumbs button.active {
  border-color: var(--pink-dark);
}
.detail-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  position: static;
  display: grid;
  gap: 18px;
  padding-top: 0;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.detail-favorite {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.detail-favorite img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-price {
  margin: 0;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 600;
}

.size-selector {
  display: grid;
  gap: 8px;
}

.size-selector-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.size-btn.active {
  border-color: var(--pink-dark);
  background: rgba(137, 29, 22, 0.06);
  color: var(--pink-dark);
}

.size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.detail-qty {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: 58px;
  border: 2px solid rgba(137, 29, 22, 0.38);
  background: #fff;
}

.detail-qty button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.detail-qty strong {
  text-align: center;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-tabs {
  display: grid;
  gap: 18px;
  margin-top: 6px;
  padding-top: 18px;
}

.detail-tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.detail-tab-list button {
  padding: 13px 8px;
  border: 0;
  border-bottom: 2px solid rgba(137, 29, 22, 0.16);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.detail-tab-list button.active {
  border-color: var(--pink-dark);
  color: var(--ink);
}

.detail-tabs p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-tab-panel {
  min-height: 150px;
}

.recommend-section {
  margin-top: clamp(42px, 7vw, 78px);
}

.recommend-heading {
  align-items: end;
}

.recommend-controls {
  display: flex;
  gap: 10px;
}

.recommend-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(137, 29, 22, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.55rem;
  cursor: pointer;
}

.recommend-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.recommend-grid::-webkit-scrollbar {
  display: none;
}

.recommend-card {
  flex: 0 0 46%;
  display: grid;
  gap: 8px;
  scroll-snap-align: start;
  cursor: pointer;
}

.recommend-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #fff;
}

.recommend-card h3,
.recommend-card p {
  margin: 0;
  text-align: center;
}

.recommend-card h3 {
  font-size: 0.95rem;
}

.recommend-card p {
  font-weight: 600;
}

@media (min-width: 661px) {
  .recommend-card {
    flex-basis: min(34%, 220px);
  }
  .detail-actions {
    grid-template-columns: 1fr 1fr;
  }
  .detail-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  }
}
@media (min-width: 981px) {
  .product-detail {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  }
  .detail-info {
    position: sticky;
    top: 88px;
  }
  .recommend-card {
    flex: 0 0 min(24%, 260px);
  }
}
.store-finder-link {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.summary-section,
.checkout-form,
.qa-panel,
.admin-form,
.orders,
.locked-panel {
  padding: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.empty {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--muted);
}

.empty p {
  margin: 0;
}

.cart-row,
.order-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-row:last-child,
.order-row:last-child {
  border-bottom: 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.coupon-row input {
  flex: 1;
  min-width: 0;
}

.coupon-msg {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.coupon-msg--ok {
  color: #0a3622;
}

.coupon-msg--error {
  color: #b01818;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals dt,
.totals dd {
  margin: 0;
}

.grand-total {
  padding-top: 10px;
  border-top: 2px dashed var(--line);
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-form,
.admin-form {
  display: grid;
  gap: 12px;
  align-content: start;
  align-items: start;
}

.qa-panel {
  margin-top: 18px;
}

@media (min-width: 981px) {
  .checkout-layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  }
}
.admin-form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.admin-fieldset {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
  align-items: start;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(137, 29, 22, 0.18);
  border-radius: 16px;
  background: rgba(255, 249, 245, 0.72);
}

.admin-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 600;
}

.admin-fieldset label,
.admin-fieldset .folder-preview,
.admin-fieldset .image-preview {
  grid-column: auto;
}

.admin-fieldset label:not(.field-wide) {
  grid-column: auto;
}

.admin-fieldset label:has(textarea) {
  grid-column: auto;
}

.admin-fieldset textarea {
  min-height: 130px;
}

.field-wide,
.media-fieldset {
  grid-column: auto;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink-dark);
  outline: 3px solid rgba(137, 29, 22, 0.14);
  outline-offset: 2px;
}

input,
select {
  height: 44px;
  padding: 0 12px;
  line-height: 44px;
}

.check-field {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 0;
}

.check-field input[type=checkbox] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--pink-dark);
}

.check-field span {
  color: var(--muted);
  font-weight: 600;
}

textarea {
  min-height: 114px;
  padding: 10px 12px;
  resize: vertical;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  min-height: 132px;
  place-items: center;
  overflow: hidden;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
}

.image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.size-stock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.size-stock-item {
  display: grid;
  gap: 4px;
  text-align: center;
}

.size-stock-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.size-stock-item input {
  padding: 0 4px;
  text-align: center;
}

.folder-preview {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (min-width: 661px) {
  .admin-form-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .admin-fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-fieldset label,
  .admin-fieldset .folder-preview,
  .admin-fieldset .image-preview {
    grid-column: span 2;
  }
  .admin-fieldset label:not(.field-wide) {
    grid-column: span 1;
  }
  .admin-fieldset label:has(textarea) {
    grid-column: span 1;
  }
  .field-wide,
  .media-fieldset {
    grid-column: span 2;
  }
}
#page-admin {
  width: min(1320px, 100% - 32px);
  margin: 0 auto;
  padding: 24px 0;
}

.locked-panel {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.metric {
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 16px;
}

.admin-side-panels {
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
}

.admin-side-panels .orders,
.admin-side-panels .admin-form {
  max-height: 680px;
  overflow: auto;
}

.admin-side-panels .orders h2,
.compact-admin-form h2 {
  position: sticky;
  top: -18px;
  z-index: 1;
  margin: -18px -18px 12px;
  padding: 18px 18px 10px;
  background: var(--panel);
}

.compact-admin-form {
  padding: 18px;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.admin-list-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(137, 29, 22, 0.16);
  border-radius: 12px;
  background: #fff;
}

.admin-list-row span {
  min-width: 0;
}

.admin-list-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.product-admin-row {
  grid-template-columns: 1fr;
}

.member-admin-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.member-orders {
  color: var(--pink-dark);
  font-weight: 600;
}

.product-admin-row img {
  display: block;
  width: 54px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.danger {
  color: #b01818;
}

.orders-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.order-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(137, 29, 22, 0.16);
  border-radius: 12px;
  background: #fff;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-card-id {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-card-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.order-card-address {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 2px;
}

.order-card-date {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.order-items {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(137, 29, 22, 0.1);
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
}

.order-item-qty {
  white-space: nowrap;
  color: var(--muted);
}

.order-item-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(137, 29, 22, 0.3);
  cursor: pointer;
}

.order-item-link:hover {
  color: var(--pink-dark);
}

.order-card-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(137, 29, 22, 0.1);
  font-size: 0.9rem;
  color: var(--muted);
}

.order-card-total strong {
  color: var(--ink);
  font-size: 1rem;
}

.order-return-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(137, 29, 22, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.admin-side-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.admin-side-tabs button {
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.admin-side-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
}

.product-admin-row.editing {
  outline: 2px solid var(--pink-dark);
  outline-offset: -2px;
}

.order-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.order-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.order-status.status-待出貨 {
  background: #fff3cd;
  color: #856404;
}

.order-status.status-已出貨 {
  background: #cfe2ff;
  color: #084298;
}

.order-status.status-已完成 {
  background: #d1e7dd;
  color: #0a3622;
}

.order-status.status-申請退貨 {
  background: #f8d7da;
  color: #842029;
}

.order-status.status-退貨完成 {
  background: #e2e3e5;
  color: #41464b;
}

.return-filed {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(137, 29, 22, 0.05);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.return-done {
  color: #0a3622;
  background: #d1e7dd;
}

.return-reason-text {
  margin: 4px 0 0;
  color: var(--ink);
}

.return-reason-admin {
  display: grid;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8d7da;
  color: #842029;
  font-size: 0.86rem;
}

.return-contact {
  padding-top: 6px;
  border-top: 1px solid rgba(132, 32, 41, 0.2);
  color: #5c1b21;
  line-height: 1.7;
}

.order-advance-btn {
  font-size: 0.78rem;
  padding: 3px 10px;
}

@media (min-width: 661px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-tools {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
  }
  .admin-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .product-admin-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }
}
@media (min-width: 981px) {
  .admin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  }
}
.member-page {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
}

.member-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.member-header h1 {
  margin: 0;
  font-size: 1.45rem;
}

.member-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(58, 24, 21, 0.16);
}
.member-tabs a {
  color: var(--ink);
  font-weight: 600;
}
.member-tabs a.active {
  text-decoration: underline;
  color: var(--pink-dark);
}

.member-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(58, 24, 21, 0.16);
}
.member-summary strong {
  display: block;
  margin: 28px 0 4px;
}

.member-bound {
  color: #9fb6cc;
  font-weight: 600;
}

.tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tier-badge.tier-一般 {
  background: #e8e8e8;
  color: #555;
}

.tier-badge.tier-銀卡 {
  background: #dde8ef;
  color: #2f5f7a;
}

.tier-badge.tier-金卡 {
  background: #fdf0d0;
  color: #7a5800;
}

.tier-badge.tier-管理員 {
  background: var(--ink);
  color: #fff;
}

.tier-progress {
  margin-top: 10px;
}

.tier-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(58, 24, 21, 0.12);
  overflow: hidden;
}

.tier-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.4s ease;
}

.tier-progress-label {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.tier-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.member-dialog-tier-override {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.member-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 20px;
}

.member-panel {
  padding: 24px 0;
  border-bottom: 1px solid rgba(58, 24, 21, 0.16);
}
.member-panel:last-child {
  border: none;
}

.member-panel h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.member-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 24px;
}

.member-form-grid .field-wide {
  grid-column: 1/-1;
}

.member-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(58, 24, 21, 0.12);
}

@media (min-width: 661px) {
  .member-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .member-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 981px) {
  .member-page {
    padding: 50px;
  }
  .member-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .member-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, 100vw - 36px);
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 5vw, 72px);
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(34px, 6vw, 58px) clamp(20px, 5vw, 72px) 26px;
  border-top: 2px solid rgba(137, 29, 22, 0.28);
  background: #fff;
}

.site-footer section {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.site-footer a,
.site-footer p,
.site-footer strong {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  border: 2px solid rgba(137, 29, 22, 0.28);
  background: #fff;
}

.newsletter-form input {
  height: 44px;
  border: 0;
  border-radius: 0;
}

.newsletter-form button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.copyright {
  grid-column: 1/-1;
  margin: 18px 0 0;
  text-align: center;
}

@media (min-width: 981px) {
  .site-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.member-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow);
  width: min(480px, 100vw - 32px);
  z-index: 49;
}

.member-dialog::backdrop {
  background: rgba(74, 39, 48, 0.42);
}

.member-dialog .dialog-shell {
  gap: 16px;
  border-radius: 18px;
}

.member-dialog h2 {
  margin: 0;
  font-size: 1.1rem;
  word-break: break-all;
}

.member-dialog-body {
  display: grid;
  gap: 0;
  border: 1px solid rgba(137, 29, 22, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.member-dialog-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(137, 29, 22, 0.08);
}

.member-dialog-row:last-child {
  border-bottom: 0;
}

.member-dialog-row:nth-child(odd) {
  background: rgba(255, 249, 245, 0.7);
}

.member-dialog-label {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.return-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow);
  width: min(480px, 100vw - 32px);
  z-index: 49;
}

.return-dialog::backdrop {
  background: rgba(74, 39, 48, 0.42);
}

.return-dialog .dialog-shell {
  gap: 20px;
  border-radius: 18px;
}

.return-dialog h2 {
  margin: 0;
}

.return-dialog form {
  display: grid;
  gap: 14px;
}

.auth-dialog {
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: var(--shadow);
  width: 100vw;
  max-width: 500px;
  z-index: 49;
}

.auth-dialog::backdrop {
  background: rgba(74, 39, 48, 0.42);
}

.dialog-shell {
  position: relative;
  display: grid;
  gap: 34px;
  padding: 26px 20px;
  background: #fff;
}

.close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-tabs {
  display: flex;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(58, 24, 21, 0.16);
}

.auth-tabs button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
}

.auth-tabs button.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.auth-panel {
  display: grid;
  gap: 26px;
}

.auth-panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.social-login {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.social-login button {
  position: relative;
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.social-login button span {
  position: absolute;
  left: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.line-login {
  background: #19c768;
}

.line-login span {
  color: #19c768;
}

.facebook-login {
  background: #0878c9;
}

.facebook-login span {
  color: #0878c9;
  font-size: 1.8rem;
}

.auth-subhead {
  display: grid;
  gap: 18px;
}

.auth-subhead button {
  justify-self: start;
  min-width: 150px;
  min-height: 46px;
  border: 1px solid rgba(58, 24, 21, 0.18);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.auth-panel input {
  height: 64px;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 0;
  border: none;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
}
.auth-panel input:focus, .auth-panel input:active, .auth-panel input:hover {
  outline: none;
}

.auth-submit {
  min-height: 64px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
}

.verify-hint {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.verify-resend {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  justify-self: center;
}

@media (min-width: 981px) {
  .auth-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .auth-subhead button {
    justify-self: unset;
  }
}

/*# sourceMappingURL=styles.css.map */
