:root {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #263a36;
  background: #f5f6f2;
  font-synthesis: none;
  --green: #164e43;
  --muted: #73827c;
  --line: #e3e8e1;
  --orange: #c66b3e;
  --soft: #eaf0e6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #236453;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  background: #edf1ea;
  color: var(--green);
}
button.secondary:hover {
  background: #dde6d8;
}
button.danger {
  background: #fff0eb;
  color: #a84232;
}
button.link {
  background: none;
  padding: 6px 2px;
  color: var(--green);
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #dbb879;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe2d9;
  border-radius: 9px;
  background: #fff;
  color: #263a36;
  padding: 11px 12px;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
label {
  display: block;
  font-size: 13px;
  color: #46594f;
  line-height: 1.7;
}
label input,
label select,
label textarea {
  margin-top: 5px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
  margin: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  line-height: 1.4;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
p {
  line-height: 1.7;
}
small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #74946b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 400;
  margin-top: 3px;
}
.topbar {
  height: 82px;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 3;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 13px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e7eddd;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
}
.identity {
  display: flex;
  gap: 9px;
  align-items: center;
}
.layout {
  display: grid;
  grid-template-columns: 205px 1fr;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 82px);
}
.sidebar {
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: sticky;
  top: 82px;
  height: calc(100vh - 82px);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8a968c;
  padding: 10px 16px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  color: #708078;
  text-align: left;
  font-weight: 500;
}
.nav-item.active {
  background: var(--green);
  color: #fff;
}
.nav-item:hover {
  background: #e5ebdf;
  color: var(--green);
}
.nav-icon {
  font-size: 18px;
  line-height: 1;
}
.sidebar-note {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.9;
  color: #8c998c;
  padding: 20px 15px;
}
.main {
  padding: 32px 38px 60px;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading h1 {
  margin: 5px 0 7px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #e6eddf;
  border: 1px solid #dce5d6;
  border-radius: 18px;
  padding: 30px 34px;
  margin-bottom: 27px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 32px;
  max-width: 600px;
  margin-bottom: 10px;
}
.hero p {
  font-size: 14px;
  color: #5f7661;
  margin-bottom: 15px;
}
.hero .pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.65);
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 11px;
  color: #546e50;
  gap: 12px;
}
.hero-art {
  width: 170px;
  height: 140px;
  position: relative;
  margin-left: 25px;
}
.box-art {
  position: absolute;
  bottom: 16px;
  left: 12px;
  width: 110px;
  height: 86px;
  background: #c99f64;
  border-radius: 8px;
  transform: rotate(-8deg);
  box-shadow: 12px 17px 0 #ccdac366;
}
.box-art:before {
  content: "";
  position: absolute;
  left: 41px;
  top: 0;
  bottom: 0;
  width: 22px;
  background: #e3cba4;
}
.box-art:after {
  content: "✓";
  position: absolute;
  right: -22px;
  top: -23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 51px;
  height: 51px;
  background: var(--green);
  color: #fff;
  font-size: 25px;
  border: 6px solid #e6eddf;
}
.art-leaf {
  position: absolute;
  right: 0;
  top: 0;
  background: #95b18a;
  width: 30px;
  height: 56px;
  border-radius: 30px 0 30px 0;
  transform: rotate(30deg);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.searchbox {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 230px;
  max-width: 520px;
}
.searchbox input {
  background: #fff;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chip {
  border-radius: 30px;
  background: #fff;
  color: #758277;
  border: 1px solid var(--line);
  font-size: 12px;
  padding: 8px 17px;
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 9px 28px #2845320d;
  transform: translateY(-2px);
}
.product-image {
  height: 205px;
  background: #f0f1eb;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.product-tag {
  position: absolute;
  left: 13px;
  top: 13px;
  background: #ffffffe0;
  border-radius: 5px;
  color: #617260;
  font-size: 10px;
  padding: 4px 8px;
  z-index: 1;
}
.product-body {
  padding: 18px 20px;
}
.product-body h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.product-body .description {
  font-size: 12px;
  color: #899186;
  height: 38px;
  line-height: 1.6;
  overflow: hidden;
  margin: 0 0 15px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.price small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}
.price:before {
  content: "¥";
  font-size: 13px;
  margin-right: 3px;
}
.small-button {
  padding: 8px 12px;
  font-size: 12px;
}
.section-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: #7d8b7e;
  font-size: 12px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 24px;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.panel-title h2,
.panel-title h3 {
  margin: 0;
}
.empty {
  text-align: center;
  background: #fff;
  border: 1px dashed #ccd8c8;
  border-radius: 16px;
  padding: 55px 20px;
  color: #85917f;
}
.empty .empty-icon {
  font-size: 40px;
  color: #a9b8a0;
  margin-bottom: 14px;
}
.empty h3 {
  color: #53674f;
}
.empty p {
  font-size: 13px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 25px 0 0;
  font-size: 12px;
  color: #7e8a7b;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat strong {
  display: block;
  font-size: 29px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--green);
}
.stat small {
  font-size: 12px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 23px;
  margin-bottom: 14px;
}
.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.order-top strong {
  font-size: 13px;
  word-break: break-all;
}
.order-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.order-content p {
  font-size: 13px;
  margin: 0 0 4px;
  color: #6a7c6d;
}
.badge {
  display: inline-block;
  white-space: nowrap;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  background: #eff2e9;
  color: #667a58;
}
.badge.pending {
  background: #fff1d9;
  color: #9a731e;
}
.badge.approved,
.badge.completed {
  background: #e7f3e9;
  color: #39825b;
}
.badge.rejected,
.badge.cancelled {
  background: #f8eae5;
  color: #a36651;
}
.badge.partial,
.badge.shipped {
  background: #e9eff8;
  color: #517aaa;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
}
.form-error {
  color: #ae4d36;
  font-size: 13px;
  white-space: pre-wrap;
  margin-top: 14px;
}
.notice {
  background: #f1f5eb;
  border-left: 3px solid #9fae7d;
  color: #6b7b58;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.cart-line {
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.cart-line:last-child {
  border: 0;
}
.thumb {
  height: 68px;
  width: 68px;
  background: #f5f5ee;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}
.line-info {
  flex: 1;
  min-width: 0;
}
.line-info strong {
  font-size: 14px;
}
.line-info p {
  font-size: 12px;
  color: #81907d;
  margin: 4px 0;
}
.quantity {
  width: 80px;
}
.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0 0;
}
.addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.address-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
}
.address-card.default {
  border-color: #91ab83;
}
.address-card p {
  font-size: 13px;
  color: #748270;
  margin: 13px 0 17px;
}
.address-card button {
  font-size: 12px;
}
.address-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  background: #f3f5f0;
  color: #7e8b75;
  font-weight: 500;
}
td img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}
dialog {
  border: 1px solid #e0e6db;
  border-radius: 17px;
  padding: 0;
  max-width: 860px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 25px 100px #102b3033;
  color: #263a36;
}
dialog::backdrop {
  background: #18302a70;
  backdrop-filter: blur(3px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.modal-head h2 {
  margin: 0;
  font-size: 20px;
}
#modal-body {
  padding: 25px;
}
.icon-button {
  background: none;
  color: #66755f;
  padding: 0;
  min-width: 34px;
  font-size: 25px;
}
.detail-product {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
}
.detail-product > img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f3f4ed;
  border-radius: 12px;
}
.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.spec-options button {
  font-size: 12px;
}
.timeline {
  margin: 0;
  padding-left: 23px;
}
.timeline li {
  padding: 0 0 17px 8px;
  font-size: 13px;
  color: #61745f;
}
.timeline small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.package {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
  margin: 12px 0;
}
.package h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.package p {
  font-size: 12px;
  margin-bottom: 8px;
}
.sku-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.55fr 0.8fr 45px 32px;
  gap: 8px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.sku-row label {
  font-size: 11px;
}
.sku-row input {
  font-size: 12px;
  padding: 8px;
}
.product-preview {
  height: 150px;
  max-width: 240px;
  object-fit: contain;
  background: #f4f5f0;
  border-radius: 9px;
  margin-top: 10px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-visual {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #e4ecdd;
  position: relative;
  overflow: hidden;
}
.auth-visual h1 {
  font-size: 46px;
  line-height: 1.55;
  margin: 30px 0 18px;
  color: #244e3e;
}
.auth-visual p {
  max-width: 370px;
  color: #72836a;
  font-size: 14px;
}
.auth-visual .hero-art {
  margin: 35px auto;
  width: 200px;
  transform: scale(1.35);
}
.auth-visual .brand {
  position: absolute;
  top: 45px;
}
.auth-visual .eyebrow {
  margin-top: 45px;
}
.auth-form-wrap {
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.auth-form label {
  margin-top: 18px;
}
.auth-form button[type="submit"] {
  width: 100%;
  margin: 25px 0 15px;
}
.auth-foot {
  margin-top: 38px;
  font-size: 11px;
  color: #a2aa9c;
  text-align: center;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
}
.auth-tag {
  color: #8a9c7d;
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 28px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #778b6d;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #213f33;
  color: #fff;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 13px;
  z-index: 20;
  max-width: 90vw;
  box-shadow: 0 5px 20px #1f332322;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
.export-status {
  font-size: 12px;
  color: #517052;
  margin-top: 14px;
}
.checklabel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.admin-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.admin-product {
  display: flex;
  gap: 16px;
  align-items: center;
}
.admin-product .line-info {
  align-self: center;
}
.mobile-brand {
  display: none;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-section {
  margin-top: 24px;
}
.export-link {
  display: inline-block;
  margin-top: 8px;
}
.note-text {
  color: #809074;
  font-size: 12px;
  line-height: 1.7;
}
@media (min-width: 1400px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .main {
    padding: 36px 45px;
  }
  .product-image {
    height: 210px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 170px 1fr;
  }
  .main {
    padding: 25px;
  }
  .sidebar {
    padding: 24px 10px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
  .hero h1 {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right > .muted {
    display: none;
  }
  .identity {
    font-size: 12px;
  }
  .topbar .link {
    font-size: 12px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    background: #fff;
    border: 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    padding: 7px 4px max(7px, env(safe-area-inset-bottom));
    justify-content: space-around;
    z-index: 5;
    gap: 0;
  }
  .nav-label,
  .sidebar-note {
    display: none;
  }
  .nav-item {
    padding: 6px 8px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    border-radius: 9px;
  }
  .nav-item.active {
    background: #e8efdf;
    color: var(--green);
  }
  .nav-icon {
    font-size: 18px;
  }
  .main {
    padding: 22px 16px 100px;
  }
  .hero {
    padding: 24px 21px;
    border-radius: 13px;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 24px;
    max-width: 230px;
  }
  .hero p {
    font-size: 12px;
    max-width: 220px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .hero-art {
    width: 85px;
    height: 100px;
    margin-left: 0;
    transform: scale(0.7);
    transform-origin: right center;
  }
  .hero .pill {
    font-size: 9px;
  }
  .catalog-grid {
    gap: 12px;
  }
  .product-image {
    height: 160px;
  }
  .product-image img {
    padding: 12px;
  }
  .product-body {
    padding: 14px 12px;
  }
  .product-body h3 {
    font-size: 14px;
  }
  .product-body .description {
    font-size: 11px;
    height: 32px;
  }
  .product-bottom {
    gap: 4px;
  }
  .price {
    font-size: 19px;
  }
  .price small {
    font-size: 9px;
  }
  .small-button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .product-tag {
    font-size: 9px;
    left: 8px;
    top: 8px;
  }
  .searchbox {
    min-width: 0;
    max-width: none;
  }
  .toolbar {
    gap: 8px;
  }
  .page-heading {
    margin-bottom: 19px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .tabs {
    gap: 6px;
    margin-bottom: 18px;
  }
  .chip {
    padding: 7px 12px;
    font-size: 11px;
  }
  .panel {
    padding: 18px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 23px;
    margin-top: 7px;
  }
  .stat small {
    font-size: 10px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .filter-actions button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .order-card {
    padding: 17px;
  }
  .order-top {
    align-items: flex-start;
  }
  .order-top strong {
    font-size: 11px;
  }
  .order-content {
    align-items: flex-end;
  }
  .order-content p {
    font-size: 11px;
  }
  .order-content .price {
    font-size: 18px;
  }
  .order-content button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .addresses {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-grid {
    gap: 13px;
  }
  .cart-line {
    gap: 10px;
    flex-wrap: wrap;
  }
  .cart-line .thumb {
    width: 51px;
    height: 51px;
  }
  .cart-line .quantity {
    width: 63px;
  }
  .cart-line .line-info {
    min-width: 130px;
  }
  .cart-line .price {
    font-size: 16px;
  }
  .detail-product {
    grid-template-columns: 1fr;
  }
  .detail-product > img {
    height: 200px;
  }
  .modal-head {
    padding: 17px 18px;
  }
  #modal-body {
    padding: 18px;
  }
  dialog {
    max-height: 92vh;
    width: calc(100% - 20px);
  }
  .sku-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 0;
  }
  .sku-row .remove-sku {
    justify-self: end;
  }
  .admin-products {
    grid-template-columns: 1fr;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    padding: 85px 25px 25px;
    min-height: 270px;
  }
  .auth-visual .brand {
    top: 24px;
  }
  .auth-visual .eyebrow {
    margin: 0;
  }
  .auth-visual h1 {
    font-size: 27px;
    margin: 17px 0 8px;
  }
  .auth-visual p {
    font-size: 12px;
    margin: 0;
    max-width: 230px;
  }
  .auth-visual .hero-art {
    position: absolute;
    right: 28px;
    bottom: 30px;
    transform: scale(0.65);
    width: 120px;
    height: 100px;
    margin: 0;
  }
  .auth-form-wrap {
    padding: 32px 26px;
  }
  .auth-form h2 {
    font-size: 24px;
  }
  .auth-tag {
    display: none;
  }
  .auth-foot {
    margin-top: 22px;
  }
  .auth-form label {
    margin-top: 14px;
  }
  #toast {
    bottom: 86px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions button {
    font-size: 13px;
  }
  .total-bar {
    gap: 12px;
  }
  .total-bar button {
    padding: 12px 14px;
  }
  .full-mobile {
    grid-column: 1/-1;
  }
}
.searchbox input {
  min-width: 0;
  flex: 1;
}
.searchbox button {
  flex-shrink: 0;
  white-space: nowrap;
}
.sidebar-note small {
  font-size: 10px;
}
.confirm-body {
  padding: 24px;
}
.confirm-body p {
  white-space: pre-wrap;
}
@media (max-width: 700px) {
  .hero {
    display: block;
  }
  .hero h1 {
    font-size: 22px;
    max-width: none;
  }
  .hero .hero-art {
    position: absolute;
    right: 8px;
    bottom: 18px;
    transform: scale(0.5);
    transform-origin: right bottom;
    opacity: 0.8;
  }
  .hero p {
    max-width: 240px;
  }
  .hero .pill {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 700px) {
  .nav-item {
    padding: 6px 3px;
    flex: 1;
    min-width: 0;
  }
  .nav-item > span:last-child {
    white-space: nowrap;
  }
  .topbar .identity {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 105px;
  }
  .topbar .identity .avatar {
    display: none;
  }
  .topbar .link {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .brand small {
    white-space: nowrap;
    letter-spacing: 1.5px;
  }
  .brand {
    flex-shrink: 0;
  }
  .topbar {
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .product-bottom {
    display: block;
  }
  .product-bottom .price {
    display: block;
    margin-bottom: 9px;
    white-space: nowrap;
  }
  .product-bottom button {
    width: 100%;
    white-space: nowrap;
    padding: 9px 10px;
  }
}
@media (max-width: 380px) {
  .nav-item {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.product-actions button {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .product-actions {
    flex-direction: column;
    gap: 6px;
  }
}

.required-mark {
  color: #b44536;
}
#address-form select:disabled {
  background: #f1f3ef;
  color: #87938a;
}
