@import url("/fonts.css");
:root {
  --ink: #292d28;
  --muted: #93948c;
  --line: #ebe9e2;
  --paper: #faf9f6;
  --gold: #ac8957;
  --green: #264c40;
  --red: #bd4c3e;
  --shadow: 0 8px 32px #39332105;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b99b6a;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  line-height: 1.45;
  letter-spacing: 1px;
  font-weight: 650;
}
h1 small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 12px;
  font-weight: 400;
}
.top {
  height: 91px;
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 2px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--ink);
  color: #f9f4e8;
  border-radius: 14px;
  font-family: serif;
  font-size: 26px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--muted);
}
.work-link {
  font-size: 12px;
  color: #72766d;
}
.work-link:hover {
  color: var(--gold);
}
main {
  max-width: 1100px;
  margin: auto;
  padding: 32px 26px 70px;
  min-height: 70vh;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 23px;
  gap: 16px;
}
.intro p {
  margin-top: 9px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
  margin-bottom: 9px;
}
.pickup {
  background: #eeece5;
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.muted,
.hint {
  color: var(--muted);
}
.search {
  height: 48px;
  border: 1px solid #e9e5dc;
  background: #fff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 17px;
  margin-bottom: 23px;
}
.search > span {
  font-size: 26px;
  color: #8d9187;
}
.search input {
  border: 0;
  padding: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  background: none;
}
.search button {
  background: #f1eee7;
  border-radius: 9px;
  padding: 6px 20px;
  font-size: 12px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #eee9df;
  border-radius: 22px;
  height: 300px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.hero > div {
  position: relative;
  z-index: 1;
  padding: 34px;
  width: 51%;
  background: linear-gradient(90deg, #eee9df 75%, #eee9df00);
}
.hero h2 {
  font-size: 32px;
  line-height: 1.6;
  letter-spacing: 3px;
}
.hero p {
  font-size: 12px;
  color: #827665;
  margin: 12px 0 20px;
}
.hero img {
  position: absolute;
  height: 100%;
  width: 65%;
  right: 0;
  object-fit: cover;
  object-position: center;
}
.dark-button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 21px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.primary,
.dark-button {
  background: var(--ink);
  color: #fff;
}
.primary:hover,
.dark-button:hover {
  background: #454b41;
}
.secondary {
  background: #f2f0ea;
  border: 1px solid #e9e5db;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  padding: 13px 17px;
  background: #f1eee6;
  font-size: 12px;
  line-height: 1.7;
}
.notice > span {
  flex-shrink: 0;
  color: #9c7f50;
}
.notice p {
  flex: 1;
  color: #817b6c;
}
.notice button {
  flex-shrink: 0;
  color: #817252;
  font-size: 12px;
}
.categories {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  padding: 24px 0 20px;
  overflow: auto;
}
.categories button {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  color: #73766d;
  border-bottom: 2px solid transparent;
  padding: 0 6px 10px;
}
.categories button.active {
  color: #252f25;
  border-color: var(--gold);
  font-weight: 600;
}
.categories img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.all-icon {
  height: 68px;
  width: 68px;
  border-radius: 24px;
  background: #efece5;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #a58e6d;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 13px 0 18px;
}
.section-title > span,
.section-title > small {
  font-size: 11px;
  color: var(--muted);
}
.section-title > button {
  font-size: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  padding: 12px;
  border-radius: 17px;
  border: 1px solid #efede7;
  box-shadow: var(--shadow);
}
.image-button {
  display: block;
  width: 100%;
  position: relative;
  padding: 0;
  background: #f7f6f2;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}
.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-button img[src^="/assets/"] {
  object-fit: contain;
  padding: 22px;
}
.example {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  color: #9d9383;
  background: #ffffffda;
  border-radius: 5px;
  padding: 1px 5px;
}
.case-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e8e2d7;
  color: #826d4a;
  border-radius: 5px;
  font-size: 10px;
  padding: 2px 7px;
}
.product-title {
  display: block;
  text-align: left;
  padding: 12px 1px 0;
  font-weight: 600;
  font-size: 14px;
}
.spec {
  font-size: 11px;
  margin: 2px 0 9px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.price {
  color: var(--red);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.price small {
  font-size: 11px;
}
.price .fee {
  color: #9d9280;
  font-weight: 400;
  font-size: 10px;
}
.add {
  border-radius: 50%;
  background: #30382d;
  color: white;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 21px;
  line-height: 1;
  flex-shrink: 0;
}
.promise {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-block: 1px solid var(--line);
  margin-top: 35px;
  padding: 19px 0;
  color: #8b877c;
  font-size: 12px;
}
footer {
  text-align: center;
  padding: 15px 20px 90px;
  color: #aaa79e;
  font-size: 11px;
}
.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  height: 76px;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: center;
  gap: 90px;
  z-index: 10;
}
.bottom a {
  width: 70px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #9c9e96;
  gap: 0;
}
.bottom a > span {
  position: relative;
  font-size: 25px;
  height: 35px;
  line-height: 34px;
}
.bottom a.selected {
  color: #8a6d42;
}
.badge {
  position: absolute;
  top: 1px;
  left: 19px;
  background: #b74b3d;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 20px;
  min-width: 17px;
  padding: 1px 4px;
  line-height: 12px;
  font-size: 9px;
}
.empty {
  text-align: center;
  padding: 65px 15px;
  grid-column: 1/-1;
  color: var(--muted);
}
.empty h2,
.empty h3 {
  color: var(--ink);
  margin: 10px 0;
}
.empty p {
  margin: 10px auto 22px;
  max-width: 380px;
}
.empty a,
.empty button {
  margin: 10px;
}
.empty-icon {
  font-size: 54px;
  color: #bfb6a5;
}
.loading {
  text-align: center;
  padding: 80px;
  color: var(--muted);
}
.back {
  display: block;
  margin-bottom: 24px;
  color: #8b8475;
  font-size: 12px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.detail-image {
  position: relative;
  background: #f0eee7;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-image img[src^="/assets/"] {
  object-fit: contain;
  padding: 50px;
}
.detail-info h1 {
  font-size: 28px;
}
.detail-info > p {
  margin: 13px 0;
}
.detail-price {
  color: var(--red);
  font-size: 30px;
}
.detail-price small {
  color: var(--muted);
}
.callout {
  background: #f2efe6;
  border-radius: 10px;
  padding: 13px 16px;
  margin: 14px 0;
  font-size: 13px;
}
.callout p {
  font-size: 12px;
  color: #8e8879;
  margin-top: 5px;
}
.rules {
  background: #f7f5ef;
  border-radius: 10px;
  padding: 14px;
  font-size: 12px;
  color: #8c8578;
  line-height: 1.9;
  margin: 16px 0;
}
.checkout-layout,
.receipt-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel > h2 {
  margin-bottom: 16px;
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  position: relative;
  display: flex;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
}
.cart-image {
  padding: 0;
  width: 105px;
  height: 105px;
  background: #f7f5f0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-image img[src^="/assets/"] {
  padding: 12px;
  object-fit: contain;
}
.cart-item > div {
  flex: 1;
}
.cart-item .muted {
  font-size: 12px;
  margin: 2px 0;
}
.cart-item small {
  color: #9d9280;
  font-size: 10px;
}
.remove {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 21px;
  color: #aaa;
}
.stepper {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100px;
  height: 28px;
  margin-top: 7px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.stepper button {
  width: 29px;
  height: 27px;
  background: #f7f6f2;
  font-size: 17px;
}
.totals {
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin: 18px 0;
}
.totals p {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  color: #8d8e85;
  font-size: 13px;
}
.totals .grand {
  margin-top: 13px;
  color: var(--ink);
  font-weight: 600;
}
.grand span {
  color: var(--red);
  font-size: 23px;
}
label {
  display: block;
  font-size: 12px;
  margin: 16px 0 0;
}
input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
textarea,
select {
  display: block;
  border: 1px solid #e6e4dd;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fcfbf9;
  width: 100%;
  margin-top: 6px;
  outline: none;
  font-size: 14px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #b9a781 !important;
  box-shadow: 0 0 0 2px #b9a78115;
}
textarea {
  min-height: 83px;
  resize: vertical;
}
.search input {
  box-shadow: none !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.9;
  color: #8c8b81;
}
.check input {
  accent-color: var(--green);
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hint {
  font-size: 11px;
  text-align: center;
  margin-top: 12px;
  line-height: 1.8;
}
.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 12px;
}
.history-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.history-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-card h3 {
  margin: 20px 0 5px;
  font-size: 20px;
}
.history-card h3 > span {
  float: right;
  color: var(--red);
}
.status {
  display: inline-block;
  background: #f1eee7;
  color: #8b7b59;
  border-radius: 6px;
  font-size: 11px;
  padding: 4px 9px;
}
.receipt-top {
  text-align: center;
  padding: 12px 0 32px;
}
.success-icon {
  display: grid;
  place-items: center;
  border: 1px solid #d9e0d8;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  background: #edf2e9;
  margin: 0 auto 14px;
  color: var(--green);
  font-size: 25px;
}
.receipt-top h1 {
  font-size: 26px;
}
.receipt-top p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.receipt-line p {
  font-size: 11px;
}
.receipt-line strong {
  font-size: 14px;
}
.receipt-images {
  border: 1px dashed #dedacf;
  border-radius: 16px;
  padding: 16px;
  min-height: 350px;
}
.receipt-images img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 3px 15px #00000008;
}
.receipt-images figure {
  margin: 15px 0;
}
.login {
  max-width: 440px;
  margin: 55px auto;
}
.login h1 {
  font-size: 27px;
  margin-bottom: 10px;
}
.owner .primary {
  background: var(--green);
}
.owner-heading {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.owner-heading .eyebrow {
  color: #c3cbb7;
}
.owner-heading p {
  color: #b6c6b8;
  font-size: 12px;
  margin-top: 8px;
}
.owner-heading h1 {
  font-size: 28px;
}
.owner-heading button {
  font-size: 12px;
  color: #d3dbcd;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.metrics > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.metrics span {
  font-size: 12px;
  color: #9b9c92;
  display: block;
}
.metrics strong {
  font-size: 30px;
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--green);
}
.metrics small {
  font-size: 12px;
  color: #a0a398;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
  padding-bottom: 12px;
}
.admin-tabs button {
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 15px;
  border-radius: 8px;
}
.admin-tabs .active {
  background: var(--green);
  color: white;
}
.admin-tabs button:last-child {
  margin-left: auto;
  color: #9a9c91;
}
.purchase-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  gap: 16px;
}
.purchase-row h3 small {
  color: var(--muted);
  margin-left: 10px;
}
.purchase-row p {
  font-size: 12px;
  margin-top: 6px;
}
.purchase-row > strong {
  color: var(--green);
  font-size: 30px;
  white-space: nowrap;
}
.purchase-row > strong small {
  font-size: 12px;
}
.owner-orders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.owner-orders .section-title {
  margin-top: 0;
}
.owner-orders h3 a {
  font-size: 12px;
  display: block;
  color: #8f927e;
}
.order-line {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12px;
}
.order-line small {
  color: var(--muted);
  font-size: 11px;
}
.order-line strong {
  margin-left: auto;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.actions > * {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 35px;
}
.danger {
  border: 1px solid #e9c7c0;
  color: #af5141;
  border-radius: 9px;
  padding: 10px 15px;
}
.admin-product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-product {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 14px;
}
.admin-product > img {
  width: 80px;
  height: 90px;
  object-fit: cover;
  background: #f5f3ee;
  border-radius: 9px;
}
.admin-product > div {
  flex: 1;
}
.admin-product p {
  font-size: 11px;
}
.admin-product .price {
  font-size: 15px;
  margin: 5px 0;
}
.admin-product > button {
  padding: 7px 12px;
  min-height: 32px;
  font-size: 12px;
}
.settings-form {
  max-width: 650px;
}
.settings-form > button.primary {
  margin-top: 24px;
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.upload-preview {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 12px;
}
input[type="file"] {
  display: block;
  margin: 10px 0;
  width: 100%;
  font-size: 12px;
}
.qr {
  display: block;
  width: 230px;
  height: 230px;
  object-fit: contain;
  margin: 20px auto;
  background: #fff;
}
.qr.small {
  width: 140px;
  height: 140px;
  margin: 10px 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: calc(100% - 30px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #0002;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #18201860;
  backdrop-filter: blur(4px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 9px;
  font-size: 26px;
  color: #999;
}
.contact {
  text-align: center;
}
.contact p {
  margin: 12px 0;
  font-size: 12px;
}
.contact h2 {
  font-size: 23px;
}
#toast {
  position: fixed;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: max-content;
  background: #293429ed;
  color: white;
  font-size: 13px;
  border-radius: 12px;
  padding: 11px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}
#toast.show {
  opacity: 1;
}
.error {
  background: #fff0e9;
  color: #b55b49;
}
@media (min-width: 1200px) {
  .bottom {
    left: calc(50% - 550px);
    right: calc(50% - 550px);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 28px #45402b04;
  }
}
@media (max-width: 760px) {
  .top {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand-icon {
    width: 37px;
    height: 37px;
    font-size: 23px;
    border-radius: 12px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .work-link {
    font-size: 10px;
  }
  main {
    padding: 25px 18px 35px;
  }
  h1 {
    font-size: 25px;
  }
  .intro {
    margin-bottom: 19px;
  }
  .intro p {
    font-size: 11px;
    margin-top: 5px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }
  .pickup {
    font-size: 10px;
    padding: 6px 9px;
  }
  .search {
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
  }
  .search input {
    font-size: 12px !important;
  }
  .search button {
    padding: 6px 15px;
  }
  .hero {
    height: 216px;
    border-radius: 17px;
    margin-bottom: 14px;
  }
  .hero > div {
    padding: 23px 20px;
    width: 70%;
    background: linear-gradient(90deg, #eee9df 65%, #eee9df00);
  }
  .hero h2 {
    font-size: 25px;
    letter-spacing: 1.5px;
    line-height: 1.55;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .hero p {
    font-size: 9px;
    margin: 10px 0 15px;
  }
  .hero .dark-button {
    min-height: 31px;
    font-size: 10px;
    padding: 7px 13px;
    border-radius: 7px;
  }
  .hero img {
    width: 66%;
    object-position: 60% center;
  }
  .notice {
    gap: 9px;
    padding: 10px 12px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .notice > span {
    font-size: 10px;
  }
  .notice p {
    font-size: 10px;
    min-width: 190px;
  }
  .notice button {
    font-size: 10px;
    padding: 0;
    margin-left: auto;
  }
  .categories {
    gap: 5px;
    padding: 18px 0 12px;
    justify-content: space-between;
  }
  .categories button {
    min-width: 58px;
    font-size: 10px;
    padding: 0 2px 8px;
  }
  .categories img,
  .all-icon {
    height: 48px;
    width: 48px;
    border-radius: 17px;
  }
  .all-icon {
    font-size: 27px;
  }
  .section-title {
    gap: 10px;
    margin: 16px 0 13px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title > span,
  .section-title > small {
    font-size: 9px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card {
    padding: 9px;
    border-radius: 14px;
  }
  .image-button {
    border-radius: 10px;
  }
  .image-button img[src^="/assets/"] {
    padding: 12px;
  }
  .product-title {
    font-size: 13px;
    padding-top: 10px;
  }
  .spec {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .price {
    font-size: 17px;
  }
  .price .fee {
    font-size: 9px;
  }
  .add {
    height: 25px;
    width: 25px;
    font-size: 20px;
  }
  .example {
    font-size: 8px;
    left: 5px;
    bottom: 5px;
  }
  .promise {
    gap: 18px;
    font-size: 10px;
    padding: 15px 0;
    margin-top: 26px;
  }
  .bottom {
    gap: 0;
    justify-content: space-around;
    height: calc(63px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom a {
    font-size: 9px;
  }
  .bottom a > span {
    font-size: 24px;
    height: 31px;
    line-height: 30px;
  }
  footer {
    font-size: 9px;
    padding-bottom: 100px;
  }
  .detail-layout,
  .checkout-layout,
  .receipt-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .detail-info h1 {
    font-size: 25px;
  }
  .detail-image img[src^="/assets/"] {
    padding: 50px;
  }
  .detail-info .eyebrow {
    margin-top: 0;
  }
  .detail-info .primary {
    position: static;
  }
  .cart-item {
    padding: 15px;
    gap: 13px;
  }
  .cart-image {
    width: 90px;
    height: 100px;
  }
  .panel {
    padding: 20px;
    border-radius: 14px;
  }
  .cart-item h3 {
    font-size: 13px;
  }
  .history-list,
  .owner-orders,
  .admin-product-list {
    grid-template-columns: 1fr;
  }
  .receipt-top {
    padding-top: 0;
  }
  .receipt-top h1 {
    font-size: 24px;
  }
  .receipt-line h3 {
    font-size: 13px;
  }
  .receipt-line strong {
    font-size: 13px;
  }
  .receipt-images {
    min-height: 200px;
  }
  .receipt-images .empty {
    padding: 28px 0;
  }
  .receipt-layout .section-title {
    flex-wrap: wrap;
  }
  .owner-heading {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .owner-heading h1 {
    font-size: 21px;
  }
  .owner-heading p {
    font-size: 10px;
  }
  .owner-heading button {
    font-size: 10px;
    padding: 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
  }
  .metrics > div {
    padding: 14px;
  }
  .metrics span {
    font-size: 11px;
  }
  .metrics strong {
    font-size: 26px;
    margin-top: 5px;
  }
  .admin-tabs {
    gap: 0;
    margin: 17px 0;
    padding-bottom: 10px;
  }
  .admin-tabs button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .admin-tabs button:last-child {
    font-size: 10px;
    padding-right: 0;
  }
  .purchase-row {
    padding: 18px;
  }
  .purchase-row h3 small {
    display: block;
    margin: 3px 0;
  }
  .purchase-row p {
    font-size: 11px;
  }
  .purchase-row > strong {
    font-size: 27px;
  }
  .login {
    margin: 30px 0;
  }
  .login h1 {
    font-size: 24px;
  }
  .login > p {
    font-size: 12px;
  }
  .form-pair {
    gap: 10px;
  }
  dialog {
    padding: 28px 22px;
  }
  .qr {
    width: 210px;
    height: 210px;
  }
  #toast {
    bottom: 90px;
  }
  .empty {
    padding: 50px 10px;
  }
  .price-row {
    flex-wrap: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 360px) {
  .price-row .fee {
    display: block;
    font-size: 9px;
  }
  .price-row {
    align-items: center;
  }
  .hero h2 {
    font-size: 23px;
  }
  .intro h1 {
    font-size: 22px;
  }
  .pickup {
    display: none;
  }
}

.brand {
  min-width: 0;
  max-width: 72%;
}
.brand-icon {
  flex-shrink: 0;
}
.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.price-row .price {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.price-row .fee {
  display: block;
}
.product-title,
.cart-item h3,
.purchase-row h3,
.order-line,
.admin-product h3 {
  overflow-wrap: anywhere;
}
/* 延续原小程序的香槟金操作色；老板工作台保持深绿。 */
.primary,
.dark-button {
  background: linear-gradient(120deg, #c4a46b, #ac874b);
  box-shadow: 0 4px 14px #ac874b12;
}
.primary:hover,
.dark-button:hover {
  background: #ac874b;
}
.add {
  background: #af8c50;
}
.owner .primary {
  background: var(--green);
}
/* Mobile WeChat: keep native image long-press and comfortable touch targets. */
.upload-state {
  font-size: 12px;
  color: #8c8575;
  margin: 10px 0;
  min-height: 8px;
}
.upload-state progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 12px 0;
  accent-color: #ad8b53;
}
.upload-state progress[hidden],
.upload-state button[hidden] {
  display: none;
}
.upload-state button {
  margin-right: 8px;
}
.service-rules p {
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.9;
}
.image-viewer {
  width: min(100% - 16px, 780px);
  max-width: 780px;
  padding: 28px 12px 16px;
  max-height: 94vh;
  max-height: 94dvh;
}
.image-preview h2 {
  font-size: 18px;
}
.image-preview > p {
  font-size: 12px;
  color: #968c7a;
  margin: 10px 0;
}
.image-preview > img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-touch-callout: default;
  user-select: auto;
}
.receipt-images img,
.qr {
  -webkit-touch-callout: default;
  cursor: zoom-in;
}
.copy-helper {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}
.dialog-fallback[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 100;
  box-shadow: 0 0 0 100vmax #18201860;
}
footer button {
  font-size: 11px;
  color: #8a7d65;
  padding: 10px;
}
footer p + p {
  margin-top: 6px;
}
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="hidden"]),
  textarea,
  select {
    font-size: 16px !important;
  }
  .search input {
    font-size: 16px !important;
  }
  .form-pair {
    grid-template-columns: 1fr;
  }
  dialog {
    max-height: 88vh;
    max-height: 88dvh;
    overscroll-behavior: contain;
  }
  .dialog-close {
    min-width: 44px;
    min-height: 44px;
    top: 2px;
    right: 3px;
  }
  .owner .admin-tabs {
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 5;
    padding-top: 8px;
  }
  .owner .secondary,
  .owner .primary,
  .owner .danger,
  .actions > * {
    min-height: 44px;
  }
  .admin-tabs button {
    min-height: 44px;
  }
  .admin-product > button {
    min-height: 44px;
  }
  .settings-form button {
    min-height: 44px;
  }
  .contact .qr {
    max-width: 72vw;
  }
  .check {
    font-size: 12px;
  }
  .check input {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }
  input[type="file"] {
    font-size: 13px !important;
    padding: 9px 0;
    min-height: 44px;
  }
}
