:root {
  --blue: #0257a6;
  --blue2: #2c6fba;
  --sky: #79aee2;
  --pink: #fdaec6;
  --pink2: #fff0f5;
  --cream: #fefef2;
  --cream2: #fffdf7;
  --ink: #17324f;
  --muted: #6d8092;
  --line: #dce8f2;
  --green: #3c8d70;
  --red: #d75c7f;
  --shadow: 0 14px 36px rgba(2, 87, 166, 0.11);
}

.quick-buy.time-blocked {
  min-height: 0;
}

.schedule-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

.schedule-toggle-row>span:first-child {
  display: grid;
  gap: 2px;
}

.schedule-toggle-row small {
  color: #60727b;
  font-weight: 400;
}

.toast {
  opacity: 0;
  transition: 0.25s;
  font-weight: 800;
  display: grid;
  font-size: 18px;
  line-height: 1.5;
  cursor: pointer;
  pointer-events: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  place-items: center stretch;
  min-height: 82px;
  padding: 18px 18px 18px 20px;
  border: 2px solid var(--blue);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #eef7ff 100%);
  color: var(--ink);
  box-shadow: 0 0 0 100vmax rgba(23, 50, 79, 0.46),
    0 20px 60px rgba(23, 50, 79, 0.3);
  text-align: left;
  position: fixed!important;
  top: 50%!important;
  left: 50%!important;
  right: auto!important;
  bottom: auto!important;
  width: min(520px,calc(100vw - 32px))!important;
  max-width: calc(100vw - 32px)!important;
  transform: translate(-50%,-50%) scale(.96)!important;
  margin: 0!important;
  z-index: 10000!important;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1)!important;
}

.phone-login-row {
  display: grid;
  grid-template-columns: 125px minmax(0,1fr);
  gap: 10px;
}

.member-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.whatsapp-login-reminder {
  margin: 14px 0;
}

.shipping-method-form {
  display: grid!important;
  grid-template-columns: minmax(145px,1fr) minmax(190px,1.35fr) 105px 120px auto!important;
  gap: 8px!important;
  align-items: end!important;
}

.order-display-controls {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}

.content-editor {
  min-height: 230px!important;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.startup-error {
  position: relative;
  z-index: 10000;
  padding: 12px 18px;
  border-bottom: 2px solid #b42318;
  background: #fff1f0;
  color: #7a271a;
  font-size: 14px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Maven Pro", -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Noto Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(
      circle at 5% 15%,
      rgba(253, 174, 198, 0.22),
      transparent 23%
    ),
    radial-gradient(
      circle at 94% 36%,
      rgba(121, 174, 226, 0.2),
      transparent 27%
    ),
    var(--cream);
  min-height: 100vh;
  overflow-x: clip;
}

button {
  font: inherit;
  cursor: pointer;
}

input {
  font: inherit;
}

textarea {
  font: inherit;
}

select {
  font: inherit;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 254, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(2, 87, 166, 0.08);
  box-shadow: 0 3px 18px rgba(2, 87, 166, 0.08);
  padding: 9px 5%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  min-width: 0;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.brand {
  font-weight: 950;
  letter-spacing: 1.7px;
  font-size: 20px;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--blue2);
  margin-top: 1px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 850;
  transition: 0.2s;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(2, 87, 166, 0.17);
  align-items: center;
  justify-content: center;
  display: inline-flex;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--blue2);
}

.secondary {
  background: #edf4fa;
  color: var(--blue);
  box-shadow: none;
}

.secondary:hover {
  background: #e2eef8;
}

.danger {
  background: var(--red);
}

section {
  max-width: 1200px;
  margin: auto;
  padding: 52px 5%;
}

.title {
  text-align: center;
  margin-bottom: 27px;
}

.title h2 {
  margin: 0;
  color: var(--blue);
  letter-spacing: 1px;
}

.title p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(2, 87, 166, 0.08);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.2s;
  cursor: pointer;
}

.cat:hover {
  transform: translateY(-5px);
  border-color: rgba(253, 174, 198, 0.65);
}

.cat-icon {
  font-size: 40px;
}

.cat h3 {
  color: var(--blue);
  margin: 11px 0 5px;
}

.cat p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.search {
  position: relative;
  flex: 1;
  min-width: 230px;
}

.search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.search input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(121, 174, 226, 0.18);
}

.search span {
  position: absolute;
  left: 16px;
  top: 10px;
}

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

.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 999px;
}

.filter.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.sort {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pic {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f4faff, var(--pink2));
  overflow: hidden;
}

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

.placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 58px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pink);
  color: var(--blue);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

.info {
  padding: 14px 15px 16px;
}

.tag {
  font-size: 11px;
  color: var(--blue2);
  font-weight: 900;
}

.name {
  font-weight: 850;
  line-height: 1.5;
  margin: 6px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
}

.price {
  font-weight: 950;
  color: var(--blue);
  font-size: 17px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.stock {
  font-size: 11px;
  color: var(--green);
  font-weight: 800;
}

.stock.low {
  color: #c97a3b;
}

.stock.out {
  color: var(--red);
}

#detail {
  display: none;
}

.detailbox {
  max-width: 1280px;
  margin: 38px auto;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(2, 87, 166, 0.08);
  border-radius: 27px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 30px;
  box-shadow: var(--shadow);
}

.back {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 900;
  padding: 0;
}

.detailpic {
  background: linear-gradient(135deg, #f4faff, var(--pink2));
  border-radius: 20px;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 80px;
  position: relative;
}

.detailpic img {
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  object-fit: contain;
  background: #fff;
}

.detail-info h1 {
  color: var(--blue);
  line-height: 1.35;
}

.detail-info h2 {
  color: var(--blue);
  font-size: 25px;
}

.notice {
  background: linear-gradient(135deg, #f3f9ff, var(--pink2));
  border: 1px solid rgba(253, 174, 198, 0.42);
  padding: 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.7;
  margin: 17px 0;
}

.desc {
  line-height: 1.9;
  color: #587086;
  white-space: pre-line;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.qty button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  font-weight: 900;
}

.qty input {
  width: 60px;
  text-align: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.social {
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf4fa;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.icon-btn {
  border: 0;
  background: #edf4fa;
  color: var(--blue);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 950;
  color: var(--blue);
  margin-bottom: 12px;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 18px;
}

.method-card {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: block;
  cursor: pointer;
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.method-card:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 87, 166, 0.1);
  background: #f7fbff;
}

.method-card input {
  margin-right: 8px;
}

.address-box {
  display: none;
}

.address-box.show {
  display: block;
}

.order-success {
  text-align: center;
  padding: 22px;
}

.order-no {
  font-size: 22px;
  font-weight: 950;
  color: var(--blue);
  margin: 10px 0;
}

.order-list {
  margin: 10px 0;
  padding-left: 18px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  background: #fff;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
}

.order-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 7px;
}

.order-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.shipping-note {
  font-size: 12px;
  color: var(--muted);
  background: #f7fbff;
  padding: 10px 12px;
  border-radius: 12px;
  margin-top: 8px;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.form label {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}

.form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-height: 110px;
  resize: vertical;
}

.form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.form input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(121, 174, 226, 0.16);
}

.form textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(121, 174, 226, 0.16);
}

.form select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(121, 174, 226, 0.16);
}

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

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.checkline input {
  width: auto;
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f4faff, var(--pink2));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.empty {
  text-align: center;
  padding: 34px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  background: rgba(23, 50, 79, 0.38);
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(420px, 100%);
  background: var(--cream2);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(2, 87, 166, 0.22);
}

.modal-card h3 {
  margin: 0 0 7px;
  color: var(--blue);
}

.modal-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 15px;
}

.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  place-items: center;
  background: rgba(9, 25, 43, 0.92);
  padding: 22px;
}

.image-zoom-modal.open {
  display: grid;
}

.image-zoom-modal img {
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.image-zoom-nav {
  position: fixed;
  z-index: 2;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
}

.image-zoom-prev {
  left: 18px;
}

.image-zoom-next {
  right: 18px;
}

.image-zoom-nav[hidden] {
  display: none;
}

.image-zoom-close {
  position: fixed;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.toplinks {
  gap: 20px;
  display: none !important;
}

.toplinks a {
  color: #fff;
  opacity: 0.95;
}

.head-search {
  align-items: center;
  margin-left: 10px;
  width: 245px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  height: 40px;
  display: none !important;
}

.head-search span {
  font-size: 23px;
  color: var(--blue);
  padding-left: 12px;
}

.head-search input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
}

.account-btn {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  min-width: 55px;
}

.account-btn small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  font-weight: 800;
}

.cat-art {
  height: 145px;
  display: grid;
  place-items: center;
  font-size: 66px;
  background: linear-gradient(135deg, #fff, #fdf1f5);
}

.cat-pink .cat-art {
  background: linear-gradient(135deg, #ffe9f0, #fff6f8);
}

.cat-blue .cat-art {
  background: linear-gradient(135deg, #e3f3ff, #f7fbff);
}

.cat-yellow .cat-art {
  background: linear-gradient(135deg, #fff1d2, #fffaf0);
}

.cat-purple .cat-art {
  background: linear-gradient(135deg, #eee1ff, #faf6ff);
}

.cat-green .cat-art {
  background: linear-gradient(135deg, #e2f3ed, #f7fcfa);
}

.cat-coral .cat-art {
  background: linear-gradient(135deg, #ffe3dc, #fff6f3);
}

.cat-blue button {
  background: var(--blue2) !important;
}

.cat-yellow button {
  background: #f3a51a !important;
}

.cat-purple button {
  background: #9c69c8 !important;
}

.cat-green button {
  background: #4da38c !important;
}

.cat-coral button {
  background: #ef6c7c !important;
}

.products-section {
  padding-top: 35px;
}

.all-products {
  text-align: center;
  margin-top: 25px;
}

.all-products .btn {
  border-radius: 999px;
  padding: 12px 28px;
}

.products-section .products {
  grid-template-columns: repeat(4, 1fr);
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 3px 0;
}

.tag-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.tag-choice input {
  width: auto;
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 9px;
  padding: 6px 9px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

.mini-btn.danger {
  background: #fff0f3;
  color: var(--red);
  border-color: #ffd1db;
}

.image-remove {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 50, 79, 0.82);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 2px;
}

.detail-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: 11px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.detail-thumb.active {
  border-color: var(--blue);
}

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

#member {
  display: none;
  min-height: 70vh;
}

.member-wrap {
  max-width: 900px;
  margin: 34px auto 60px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(2, 87, 166, 0.1);
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.member-head h2 {
  margin: 0;
  color: var(--blue);
}

.member-auth-card {
  max-width: 520px;
  margin: 20px auto;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.member-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #f3f9ff, var(--pink2));
  border: 1px solid rgba(253, 174, 198, 0.4);
  border-radius: 18px;
}

.member-orders {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.member-order-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px;
  background: #fff;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.google-btn:hover {
  background: #f7fbff;
  color: var(--blue);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin: 17px 0;
}

.auth-divider:before {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.auth-status {
  display: none;
  margin-top: 13px;
}

.auth-status.show {
  display: block;
}

.mfa-box {
  display: none;
}

.mfa-box.show {
  display: block;
}

.mfa-qr-wrap {
  text-align: center;
  margin: 14px 0;
}

.mfa-qr {
  width: 190px;
  height: 190px;
  max-width: 100%;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 12px;
}

.mfa-secret {
  display: block;
  overflow-wrap: anywhere;
  background: #edf4fa;
  border-radius: 10px;
  padding: 9px;
  margin: 9px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.option-field label {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-option {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.15s;
}

.detail-option:hover {
  border-color: var(--sky);
  color: var(--blue);
}

.detail-option.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 5px 14px rgba(2, 87, 166, 0.18);
}

.detail-option.unavailable:not(.active) {
  opacity: 0.55;
}

.variant-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.detail-unavailable {
  margin: 14px 0;
  padding: 13px 16px;
  border-radius: 13px;
  background: #fff0f5;
  border: 1px solid rgba(215, 92, 127, 0.25);
  color: var(--red);
  font-weight: 900;
  text-align: center;
}

.gallery-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: 29px;
  line-height: 1;
  box-shadow: 0 5px 18px rgba(23, 50, 79, 0.2);
  display: grid;
  place-items: center;
  align-items: center;
  justify-content: center;
}

.gallery-control:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.quick-buy {
  border-top: 1px solid #edf3f7;
  margin-top: 12px;
  padding-top: 11px;
  display: grid;
  gap: 8px;
  cursor: default;
  font-size: 12px;
}

.quick-option-group {
  display: grid;
  gap: 5px;
}

.quick-option-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 850;
}

.quick-option-values {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.quick-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}

.quick-option.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.quick-status {
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
  min-height: 14px;
}

.quick-status.out {
  color: var(--red);
}

.quick-purchase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.quick-qty {
  display: grid;
  grid-template-columns: 25px 34px 25px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.quick-qty button {
  width: 25px;
  height: 29px;
  border: 0;
  background: #edf4fa;
  color: var(--blue);
  font-weight: 950;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.quick-qty input {
  width: 34px;
  height: 29px;
  border: 0;
  text-align: center;
  background: #fff;
  padding: 0;
  font-size: 11px;
  -moz-appearance: textfield;
}

.quick-qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quick-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quick-add {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  font-size: 12px;
}

.quick-add:hover {
  background: var(--blue2);
}

.quick-out {
  margin-top: 0;
  padding: 9px;
  border-radius: 0;
  background: hsl(340deg 100% 97% / 85%);
  color: var(--ink);
  font-size: 1em;
  font-weight: normal;
  text-align: center;
}

.products#grid .pic > .quick-out {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  margin: 0;
}

.products#grid .pic > .quick-buy.time-blocked {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.url-preview {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  margin-top: 5px;
}

.variant-builder {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfe;
  padding: 14px;
}

.variant-builder textarea {
  min-height: 82px;
}

.variant-editor {
  overflow: auto;
  margin-top: 12px;
}

.variant-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}

.variant-table th {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  font-size: 12px;
  background: #edf5fb;
  color: var(--blue);
}

.variant-table td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  font-size: 12px;
}

.variant-table input {
  min-width: 105px;
  padding: 8px;
}

.variant-combination {
  font-weight: 850;
  color: var(--ink);
  white-space: nowrap;
}

.member-logout-btn[hidden] {
  display: none !important;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 18px;
}

.head-search > i {
  color: var(--blue);
  padding-left: 12px;
}

.method-card strong {
  display: block;
}

.method-card .small {
  display: block;
  margin-top: 4px;
}

.method-card.active {
  border-color: var(--blue);
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(2, 87, 166, 0.1);
}

.method-card:focus-visible {
  outline: 3px solid rgba(121, 174, 226, 0.45);
  outline-offset: 2px;
}

.mobile-menu-toggle:focus-visible {
  outline: 3px solid rgba(121, 174, 226, 0.45);
  outline-offset: 2px;
}

.phone-help {
  margin-top: 6px;
  color: var(--red);
}

.old-price {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 700;
  text-decoration: line-through;
}

.sale-price {
  color: var(--red);
  font-weight: 950;
}

.price-suffix {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

#detailPrice .old-price {
  font-size: 15px;
  margin-right: 9px;
}

#detailPrice .sale-price {
  font-size: 27px;
}

.content-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.content-link-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(2, 87, 166, 0.14);
  border-radius: 12px;
  background: #f4f9ff;
  text-align: center;
  text-decoration: none;
}

.content-link-list a:hover {
  border-color: rgba(2, 87, 166, 0.35);
  background: #eaf4ff;
}

.legal-alert {
  padding: 14px 16px;
  border-left: 4px solid var(--pink);
  border-radius: 12px;
  background: #fff6f8;
  color: #5d4960;
  line-height: 1.7;
}

.updated-date {
  color: var(--muted);
  font-size: 12px;
}

.bilingual-section {
  display: block;
}

.bilingual-section > [lang="en"] {
  padding: 0;
  border: 0;
}

.bilingual-section h2 {
  margin-top: 0;
}

.language-label {
  display: none;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pink2);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

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

.pricing-stack {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.inventory-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.order-search-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 180px auto;
  gap: 10px;
  margin: 16px 0;
}

.order-search-tools input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.order-search-tools select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.legal-pair p[lang="en"] {
  margin-bottom: 14px;
}

.legal-pair p[lang="zh-Hant"] {
  margin-top: 0;
  color: #4d5967;
}

.toast:after {
  content: "點擊關閉";
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #6f5200;
  font-size: 11px;
  display: none;
}

.no-abandon-order {
  color: #c53030;
  font-size: 20px;
}

.order-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.member-order-card .order-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.order-date {
  margin-left: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.order-note {
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff8dc;
  font-size: 12px;
}

.control-with-icon {
  align-items: center;
  justify-content: center;
  display: inline-flex;
  gap: 8px;
}

.control-with-icon i {
  flex: 0 0 auto;
  line-height: 1;
}

.btn i {
  flex: 0 0 auto;
  line-height: 1;
}

.mini-btn i {
  flex: 0 0 auto;
  line-height: 1;
}

.icon-btn i {
  flex: 0 0 auto;
  line-height: 1;
}

.toast-icon {
  color: var(--blue);
  font-size: 26px;
}

.toast > span {
  font-weight: 800;
}

.toast > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--pink2);
  color: var(--blue);
  cursor: pointer;
}

.success-icon {
  color: #29956f;
  font-size: 48px;
}

.shipping-method-choices {
  margin-top: 8px;
  display: grid!important;
  grid-template-columns: repeat(2,minmax(0,1fr))!important;
  gap: 10px!important;
}

.shipping-method-form input {
  min-width: 0;
  height: 42px;
  margin: 0!important;
}

.shipping-method-form button {
  min-width: 0;
  height: 42px;
  margin: 0!important;
}

#orderNote {
  min-height: 42px!important;
  height: 42px;
  resize: vertical;
  padding-top: 10px;
}

#adminOrderNotes {
  min-height: 42px!important;
  height: 42px;
  resize: vertical;
  padding-top: 10px;
}

.order-number {
  font-weight: 400!important;
}

.member-edit-fields {
  display: grid;
  grid-template-columns: minmax(180px,1fr) minmax(280px,1.3fr);
  gap: 10px 14px;
  flex: 1;
}

.member-edit-fields label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.member-edit-fields>.small {
  grid-column: 1/-1;
}

.search > .fa-magnifying-glass {
  color: var(--blue);
  font-size: 1rem;
  flex: 0 0 auto;
}

.purchase-limit {
  margin-top: 5px;
  color: #9b4b00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.purchase-limit i {
  margin-right: 4px;
}

.order-status small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}

.member-read-row {
  align-items: center;
}

.member-summary {
  display: grid;
  grid-template-columns: minmax(170px,1.2fr) minmax(160px,1fr) minmax(190px,1fr);
  gap: 8px 18px;
  align-items: center;
  min-width: 0;
}

.member-summary span {
  overflow-wrap: anywhere;
}

.member-summary small {
  overflow-wrap: anywhere;
  grid-column: 1/-1;
  color: var(--muted);
}

.member-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.member-phone-link:hover {
  text-decoration: underline;
}

.member-edit-modal-card {
  width: min(620px,calc(100% - 28px));
}

.link-button {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.site-loading {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  padding: 24px;
}

.site-loading i {
  font-size: 22px;
}

body:not(.app-loading)>.site-loading {
  display: none;
}

body.app-loading>header {
  display: none!important;
}

body.app-loading>main {
  display: none!important;
}

body.app-loading>aside {
  display: none!important;
}

body.app-loading>.modal {
  display: none!important;
}

.quick-buy button {
  font-size: 12px;
}

.quick-buy input {
  font-size: 12px;
}

.quick-add i {
  line-height: 1;
}

.member-order-head {
  align-items: flex-start;
}

.order-head-lines {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #334b60;
}

.order-head-lines>div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.order-head-lines i {
  width: 16px;
  color: var(--blue);
  text-align: center;
}

.order-totals {
  display: grid;
  gap: 5px;
  justify-content: end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.order-totals>div {
  display: grid;
  grid-template-columns: 120px 90px;
  gap: 12px;
  text-align: right;
}

.order-totals .total {
  font-size: 15px;
  color: var(--blue);
}

.order-merge-selector {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff7d9;
}

.order-merge-selector label {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

#checkoutCustomerFields[hidden] {
  display: none!important;
}

.cancelled-order-item {
  opacity: .48;
  background: #f3f3f3;
}

.cancelled-order-item td {
  text-decoration-color: #777;
}

body.maintenance-active > :not(#maintenanceScreen) {
  display: none!important;
}

.maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: radial-gradient(circle at 50% 0,#fff 0,#fff8f5 48%,#f8eeee 100%);
  color: #302a2b;
}

.maintenance-card {
  width: min(100%,620px);
  padding: 48px 42px;
  text-align: center;
  background: rgba(255,255,255,.96);
  border: 1px solid #eadbdd;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(92,52,61,.12);
}

.maintenance-card img {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(73,42,49,.14);
}

.maintenance-kicker {
  margin: 0 0 10px;
  color: #d96d87;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.maintenance-card h1 {
  margin: 0;
  font-size: clamp(2rem,7vw,3.4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.maintenance-card h2 {
  margin: 30px 0 12px;
  padding-top: 28px;
  border-top: 3px solid #d96d87;
  font-size: clamp(1.25rem,4vw,1.6rem);
}

.maintenance-card p:not(.maintenance-kicker) {
  margin: 0;
  color: #776d6f;
  font-size: 1rem;
  line-height: 1.75;
}

.maintenance-card .maintenance-english {
  margin-top: 10px;
  font-size: .92rem;
}

@media (max-width: 1050px) {
  .about-btn {
    display: none;
  }

  .head-search {
    width: 190px;
  }
}

@media (max-width: 700px) {
  .schedule-toggle-row {
    align-items: flex-start;
  }

  .tag-picker {
    max-height: 150px;
    overflow: auto;
    padding-right: 3px;
  }

  header {
    padding: 8px 4%;
    position: sticky;
    gap: 8px;
  }

  .logo-img {
    width: 43px;
    height: 43px;
  }

  .brand {
    font-size: 18px;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .detailbox {
    grid-template-columns: 1fr;
    margin: 20px 4%;
    padding: 18px;
  }

  .detailpic {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .search {
    min-width: 100%;
  }

  .sort {
    width: 100%;
  }

  .toplinks {
    display: none;
  }

  .head-search {
    display: none;
  }

  .account-btn {
    display: flex;
  }

  .cat-art {
    height: 115px;
  }

  .products-section .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .member-wrap {
    margin: 20px 4%;
    padding: 18px;
  }

  .member-profile {
    grid-template-columns: 1fr;
  }

  .account-btn small {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
    place-items: center;
    order: 3;
  }

  .content-link-list {
    grid-template-columns: 1fr;
  }

  .bilingual-section {
    display: block;
  }

  .bilingual-section > [lang="en"] {
    padding: 0;
    border: 0;
  }

  .pricing-inventory-grid {
    grid-template-columns: 1fr;
  }

  .order-search-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .name {
    font-size: 13px;
  }

  .price {
    font-size: 15px;
  }

  .quick-option {
    padding: 4px 7px;
    font-size: 9px;
  }

  .quick-purchase {
    grid-template-columns: auto 36px;
    gap: 5px;
  }

  .quick-qty {
    justify-self: stretch;
  }

  .quick-add {
    width: 36px;
  }

  .detail-option {
    padding: 8px 12px;
    font-size: 12px;
  }

  .gallery-control {
    width: 38px;
    height: 38px;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .account-btn {
    min-width: 39px;
    padding: 8px;
  }

  .account-btn small {
    display: none;
  }
}

@media (max-width: 720px) {
  .phone-login-row {
    grid-template-columns: 1fr;
  }

  .member-auth-actions {
    grid-template-columns: 1fr;
  }

  .shipping-method-form {
    grid-template-columns: 1fr!important;
  }
}

@media print {
  body {
    background: #fff!important;
    color: #000!important;
  }
}

@media (max-width: 800px) {
  .shipping-method-form {
    grid-template-columns: 1fr 1fr!important;
  }

  .shipping-method-form button {
    grid-column: 1/-1;
  }

  .member-edit-fields {
    grid-template-columns: 1fr;
  }

  .member-edit-fields>.small {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }

  .order-search-tools {
    grid-template-columns: 1fr 1fr;
  }

  .member-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .member-summary {
    grid-template-columns: 1fr;
  }

  .member-summary small {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .toast {
    width: calc(100vw - 24px);
    padding: 15px;
    font-size: 16px;
  }

  .order-table-wrap {
    overflow: visible;
  }

  .shipping-method-choices {
    grid-template-columns: 1fr!important;
  }

  .shipping-method-form {
    grid-template-columns: 1fr!important;
  }

  .member-order-head {
    display: grid;
    gap: 8px;
  }

  .order-head-lines {
    font-size: 11px;
  }

  .order-totals {
    justify-content: stretch;
  }

  .order-totals>div {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 520px) {
  .maintenance-screen {
    padding: 16px;
  }

  .maintenance-card {
    padding: 38px 22px;
    border-radius: 22px;
  }

  .maintenance-card img {
    width: 92px;
    height: 92px;
  }
}
