:root {
  --bg: #f7f1e8;
  --card: rgba(255, 252, 247, 0.82);
  --ink: #2d241c;
  --muted: #7a6857;
  --line: rgba(90, 61, 34, 0.12);
  --brand: #d8742f;
  --brand-deep: #8f4314;
  --brand-soft: #f3d8b0;
  --accent: #f4c981;
  --accent-deep: #f0ab54;
  --shadow: 0 22px 60px rgba(102, 68, 38, 0.16);
  --shadow-soft: 0 10px 24px rgba(102, 68, 38, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(240, 171, 84, 0.16), transparent 20%),
    radial-gradient(circle at 92% 10%, rgba(244, 201, 129, 0.42), transparent 24%),
    linear-gradient(180deg, #fbf7f2 0%, #f3ebdf 58%, #efe4d5 100%);
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.app-shell,
.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.app-shell-mall {
  max-width: 980px;
}

.miniapp-shell {
  max-width: 430px;
  margin: 0 auto;
  background: #f2f4fb;
  min-height: 100vh;
  position: relative;
  padding-bottom: 88px;
}

.miniapp-topbar {
  padding: 12px 18px 24px;
  color: white;
  background: linear-gradient(135deg, #1b8ff0, #2fa8ff 65%, #5eb8ff);
  position: sticky;
  top: 0;
  z-index: 10;
}

.miniapp-status,
.miniapp-capsule,
.miniapp-toolbar,
.miniapp-page-toolbar,
.miniapp-order-filter,
.miniapp-toolbar-actions,
.miniapp-cart-submit,
.miniapp-cart-submit-info,
.miniapp-order-top,
.miniapp-order-bottom,
.miniapp-bottom-nav,
.cart-page-item,
.cart-page-stepper {
  display: flex;
  align-items: center;
}

.miniapp-status {
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.96;
}

.miniapp-topbar h1 {
  margin: 22px 0 10px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.miniapp-capsule {
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  width: 100px;
  height: 36px;
  border-radius: 999px;
  background: rgba(21, 119, 202, 0.34);
}

.miniapp-capsule span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.miniapp-page {
  padding: 12px 0 24px;
}

.miniapp-searchbar {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: -6px 14px 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 98, 173, 0.12);
}

.miniapp-searchbar input {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.miniapp-searchbar input:focus {
  transform: none;
  box-shadow: none;
}

.search-icon,
.search-btn,
.miniapp-toolbar-title,
.miniapp-toolbar-actions span,
.plain-action {
  color: #20a5ff;
}

.search-btn,
.plain-action {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.miniapp-toolbar,
.miniapp-page-toolbar,
.miniapp-order-filter {
  justify-content: space-between;
  padding: 0 14px 12px;
}

.miniapp-toolbar-title {
  font-size: 18px;
  font-weight: 700;
}

.miniapp-toolbar-actions {
  gap: 14px;
  color: #9aa8ba;
}

.miniapp-catalog {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0;
}

.miniapp-side {
  display: grid;
  align-content: start;
  gap: 2px;
  background: #eef2f7;
  padding: 4px 0;
  min-height: 66vh;
}

.side-category {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  padding: 16px 12px;
  color: #556375;
  cursor: pointer;
  font-size: 15px;
}

.side-category.is-active {
  color: #1aa5ff;
  background: #fff;
  border-left: 4px solid #1aa5ff;
  padding-left: 8px;
}

.miniapp-products {
  padding: 0 10px 0 12px;
}

.miniapp-section-title {
  margin-bottom: 10px;
}

.miniapp-product-list {
  gap: 12px;
}

.miniapp-product-card {
  grid-template-columns: 96px 1fr;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(34, 62, 96, 0.08);
}

.miniapp-product-image {
  border-radius: 12px;
  background: #f7f9fc;
}

.product-price {
  margin-top: 6px;
  font-size: 18px;
  color: #ff4f1f;
  font-weight: 700;
}

.product-meta {
  margin-top: 4px;
  color: #7f8c9d;
  font-size: 13px;
}

.add-cart-btn {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #17a1ff, #1497f3);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  min-height: 34px;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.ghost-btn {
  border: 1px solid rgba(23, 161, 255, 0.22);
  background: rgba(23, 161, 255, 0.08);
  color: #1497f3;
  border-radius: 14px;
  cursor: pointer;
}

.code-btn {
  min-width: 108px;
  padding: 0 12px;
  height: 46px;
  font-size: 13px;
  font-weight: 600;
}

.code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.category-chip {
  color: #1aa5ff;
  font-size: 12px;
}

.qty-box-blue {
  background: rgba(31, 165, 255, 0.08);
}

.qty-box-blue button {
  background: linear-gradient(135deg, #18a3ff, #1296f2);
}

.cart-page-list {
  display: grid;
  gap: 10px;
  padding: 0 0 90px;
}

.cart-page-item {
  gap: 12px;
  padding: 14px;
  background: #fff;
}

.cart-checkmark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18a3ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-page-image {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f7f9fc;
}

.cart-page-main {
  flex: 1;
  display: grid;
  gap: 6px;
}

.cart-page-main p {
  color: #7f8c9d;
  font-size: 13px;
}

.cart-page-main strong {
  color: #ff4f1f;
  font-size: 18px;
}

.cart-page-stepper {
  gap: 10px;
}

.cart-page-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #1aa5ff;
  background: white;
  color: #1aa5ff;
  cursor: pointer;
  font-size: 22px;
}

.miniapp-cart-submit {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  background: #fff;
  justify-content: space-between;
  padding: 12px 14px;
  box-shadow: 0 -6px 16px rgba(34, 62, 96, 0.08);
}

.miniapp-cart-submit-info {
  gap: 12px;
}

.miniapp-cart-submit-info strong {
  color: #ff4f1f;
}

.submit-order-btn {
  border: 0;
  padding: 14px 20px;
  border-radius: 0;
  background: linear-gradient(135deg, #1aa5ff, #1597f1);
  color: white;
  cursor: pointer;
}

.submit-order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.miniapp-order-search {
  margin-top: 0;
}

.miniapp-order-filter strong {
  display: block;
  margin-top: 6px;
  color: #1aa5ff;
}

.miniapp-order-list {
  padding: 0 14px;
}

.miniapp-order-card {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(34, 62, 96, 0.08);
}

.miniapp-order-address {
  margin-top: 8px;
  color: #748193;
}

.miniapp-order-bottom {
  justify-content: space-between;
  margin-top: 12px;
}

.miniapp-mine-card {
  margin: 0 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(34, 62, 96, 0.08);
}

.mine-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.mine-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef6ff;
  flex: 0 0 auto;
}

.mine-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mine-profile-copy {
  display: grid;
  gap: 6px;
}

.mine-profile-copy h2 {
  margin: 0;
  font-size: 22px;
}

.mine-profile-copy span {
  color: #6f8298;
}

.mine-info-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mine-info-block {
  background: #f8fbff;
}

.mine-address-label {
  display: block;
  margin-bottom: 8px;
}

.mine-address-head,
.address-book-head,
.address-card-top,
.address-card-actions,
.payment-address-option {
  display: flex;
  align-items: center;
}

.mine-address-head,
.address-book-head,
.address-card-top,
.address-card-actions {
  justify-content: space-between;
}

.address-preview-card {
  padding: 14px;
  border-radius: 14px;
  background: #f8fbff;
  margin-bottom: 14px;
}

.address-book-head {
  margin-bottom: 10px;
}

.address-list,
.payment-address-list {
  display: grid;
  gap: 10px;
}

.address-card {
  padding: 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid rgba(26, 165, 255, 0.08);
}

.address-card.is-default {
  border-color: rgba(26, 165, 255, 0.32);
}

.address-card p,
.payment-address-option p,
.payment-address-summary {
  color: #6f8298;
  margin: 8px 0 0;
}

.address-card-actions {
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.default-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 165, 255, 0.12);
  color: #1498f2;
  font-size: 12px;
}

.danger-action {
  color: #ef4a3b;
}

.payment-address-box {
  padding: 14px;
  border-radius: 16px;
  background: #f8fbff;
}

.payment-address-option {
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 165, 255, 0.08);
}

.payment-address-option:last-child {
  border-bottom: 0;
}

.payment-address-option.is-selected strong {
  color: #1498f2;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-checkbox {
  grid-column: 1 / -1;
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.miniapp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  justify-content: space-around;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -6px 16px rgba(34, 62, 96, 0.08);
  z-index: 20;
}

.nav-item {
  position: relative;
  border: 0;
  background: transparent;
  color: #8f99a7;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.nav-item.is-active {
  color: #1aa5ff;
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mall-login-page {
  display: grid;
  gap: 18px;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f7fbff;
}

.h5-login-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 0;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(180deg, #c9ebff 0%, #eaf6ff 56%, #f8fcff 100%);
}

.login-status {
  color: #ffffff;
  mix-blend-mode: overlay;
}

.h5-login-brand {
  padding: 28px 8px 18px;
  text-align: center;
}

.h5-login-brand h1 {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.15;
  color: #1498f2;
  letter-spacing: 0.06em;
}

.h5-login-brand .subcopy {
  margin: 14px auto 0;
  max-width: 26ch;
  color: #5f7c98;
}

.h5-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 10px;
  border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, 0.7);
}

.login-tab {
  padding: 18px 12px 16px;
  border: 0;
  background: transparent;
  color: #6f8298;
  font-size: 18px;
  cursor: pointer;
}

.login-tab.is-active {
  color: #1498f2;
  font-weight: 700;
  position: relative;
}

.login-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #1498f2;
}

.h5-login-panel {
  display: grid;
  gap: 16px;
  margin-top: -6px;
  padding: 0 14px 8px;
  align-content: start;
}

.h5-phone-card,
.h5-wechat-card {
  margin-top: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(67, 136, 191, 0.12);
}

.h5-phone-card input,
.h5-wechat-card input {
  min-height: 48px;
}

.section-title-stack {
  align-items: flex-start;
  flex-direction: column;
}

.section-title-stack span {
  line-height: 1.6;
}

.login-main-btn {
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(135deg, #19a5ff, #1298f4);
}

.h5-wechat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(243, 252, 247, 0.98), rgba(249, 255, 251, 0.94));
}

.wechat-roundel {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #27b552, #15903c);
  color: white;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(21, 144, 60, 0.22);
}

.mall-toolbar {
  display: grid;
  gap: 16px;
}

.summary-pill-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-pill {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(249, 237, 220, 0.92));
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.summary-pill strong {
  display: block;
  font-size: 22px;
}

.mall-hero {
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(135deg, rgba(255, 233, 199, 0.96), rgba(250, 243, 231, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.mall-hero::before,
.mall-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.mall-hero::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(240, 171, 84, 0.24), rgba(240, 171, 84, 0));
}

.mall-hero::after {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(216, 116, 47, 0.18), rgba(216, 116, 47, 0));
}

.mall-hero-panels {
  display: grid;
  gap: 12px;
}

.mall-preview-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 67, 20, 0.08);
  backdrop-filter: blur(10px);
}

.mall-preview-card strong {
  font-size: 18px;
}

.mall-preview-card {
  min-height: 180px;
  align-content: end;
  background-size: cover;
  background-position: center;
}

.preview-subhead {
  margin-top: 18px;
}

.payment-qr-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-qr-preview-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 67, 20, 0.08);
}

.payment-qr-preview-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.mall-preview-hot span,
.mall-preview-banner p {
  color: var(--muted);
}

.mall-login-grid,
.mall-showcase {
  display: grid;
  gap: 16px;
}

.mall-login-card {
  margin-top: 0;
  padding: 22px;
}

.mall-wechat-card {
  background:
    linear-gradient(180deg, rgba(244, 255, 245, 0.92), rgba(240, 249, 241, 0.86));
}

.wechat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(38, 186, 72, 0.14);
  color: #18863a;
  font-weight: 700;
}

.wechat-tip {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.wechat-btn {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #24b34b, #148136);
  box-shadow: 0 12px 24px rgba(20, 129, 54, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wechat-btn:hover,
.text-btn-pill:hover {
  transform: translateY(-2px);
}

.cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 24px rgba(180, 85, 25, 0.24);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff4df;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.showcase-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.94), rgba(250, 239, 223, 0.9));
  border: 1px solid rgba(216, 116, 47, 0.08);
  box-shadow: var(--shadow-soft);
}

.showcase-label {
  color: var(--brand-deep);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hero,
.admin-side {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(245, 225, 193, 0.94), rgba(255, 250, 242, 0.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23d9b17f' stroke-width='1.2' opacity='0.3'%3E%3Cpath d='M20 80c20-42 100-42 120 0'/%3E%3Cpath d='M20 80c20 42 100 42 120 0'/%3E%3Ccircle cx='80' cy='80' r='36'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.hero::after,
.admin-side::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 116, 47, 0.22), rgba(216, 116, 47, 0));
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--brand-deep);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.subcopy {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 56ch;
}

.ghost-link,
.text-btn,
.voucher-link,
.order-actions a {
  color: var(--brand-deep);
  text-decoration: none;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 67, 20, 0.14);
  backdrop-filter: blur(10px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--brand-deep);
  border: 1px solid rgba(143, 67, 20, 0.08);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.card,
.panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title span,
.helper,
label,
.product-code,
.product-spec,
.order-address,
.order-head span {
  color: var(--muted);
}

.stack-form,
.dealer-form {
  display: grid;
  gap: 12px;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(111, 83, 55, 0.16);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(216, 116, 47, 0.42);
  box-shadow: 0 0 0 4px rgba(216, 116, 47, 0.12);
  transform: translateY(-1px);
}

.primary-btn,
.qty-box button {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 24px rgba(180, 85, 25, 0.24);
}

.primary-btn {
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.qty-box button:hover,
.ghost-link:hover {
  transform: translateY(-2px);
}

.info-block {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.95), rgba(247, 235, 216, 0.9));
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.text-btn-pill {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 67, 20, 0.14);
}

.text-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.meta-grid,
.summary-bar,
.upload-grid,
.stats-grid {
  display: grid;
  gap: 12px;
}

.meta-grid,
.summary-bar,
.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-list,
.order-list {
  display: grid;
  gap: 14px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.category-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 67, 20, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-deep);
  cursor: pointer;
}

.category-tab.is-active {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 10px 20px rgba(180, 85, 25, 0.22);
}

.product-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(250, 239, 223, 0.92));
  border: 1px solid rgba(216, 116, 47, 0.08);
  box-shadow: var(--shadow-soft);
}

.mall-product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mall-product-card:hover {
  transform: translateY(-2px);
}

.product-image-wrap {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff6eb, #f2e4d3);
  box-shadow: inset 0 0 0 1px rgba(143, 67, 20, 0.08);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content h3 {
  margin-top: 6px;
  font-size: 19px;
  line-height: 1.35;
}

.product-footer,
.order-head,
.qty-box,
.pay-panel,
.table-row,
.order-actions {
  display: flex;
  align-items: center;
}

.product-footer,
.order-head {
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.qty-box {
  gap: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.qty-box button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.settlement-card {
  position: sticky;
  bottom: 14px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(248, 238, 222, 0.94));
}

.pay-panel {
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(247, 232, 206, 0.75), rgba(255, 247, 233, 0.84));
  border: 1px solid rgba(216, 116, 47, 0.12);
}

.qr-image {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.pay-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.summary-bar div,
.stat-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(249, 237, 220, 0.92));
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.summary-bar strong,
.stat-card strong {
  display: block;
  font-size: 24px;
}

.order-card {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(250, 239, 223, 0.92));
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-items span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 201, 129, 0.24);
  font-size: 13px;
}

.empty-box,
.soft-panel {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(250, 239, 223, 0.92));
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-layout-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 16px 36px;
  display: grid;
  gap: 18px;
}

.admin-layout-side,
.admin-layout-main {
  min-width: 0;
}

.admin-layout-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.admin-side-brand {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(247, 232, 206, 0.96), rgba(255, 251, 245, 0.94));
  border: 1px solid rgba(216, 116, 47, 0.08);
  box-shadow: var(--shadow);
}

.admin-login-panel {
  margin-top: 0;
}

.admin-nav {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.admin-nav-item {
  border: 0;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.admin-nav-item.is-active {
  background: linear-gradient(135deg, #1b8ff0, #2fa8ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 143, 240, 0.2);
}

.admin-layout-main {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-section {
  display: grid;
  gap: 18px;
}

.admin-main {
  display: grid;
  gap: 18px;
}

.upload-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dealer-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 16px;
}

.dealer-form textarea {
  min-height: 54px;
}

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

.product-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: calc(100vh - 280px);
}

.product-subside {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.product-subside-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(250, 239, 223, 0.92));
  border: 1px solid rgba(216, 116, 47, 0.08);
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 120px);
}

.product-subside-head,
.product-toolbar,
.product-toolbar-actions,
.row-actions,
.product-category-item {
  display: flex;
  align-items: center;
}

.product-subside-head,
.product-toolbar {
  justify-content: space-between;
  gap: 12px;
}

.product-subside-head span,
.product-toolbar-title span {
  color: var(--muted);
  font-size: 12px;
}

.product-category-side-toolbar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.category-side-pill-btn {
  flex: 1;
  border: 1px solid rgba(27, 143, 240, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #3d5f84;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  cursor: pointer;
}

.category-side-pill-btn.is-active {
  background: linear-gradient(135deg, #1b8ff0, #2fa8ff);
  color: #fff;
  border-color: transparent;
}

.product-category-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.product-category-group {
  display: grid;
  gap: 8px;
}

.product-category-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.product-category-item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-deep);
  cursor: pointer;
  font-weight: 700;
}

.product-category-copy {
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.product-category-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.product-category-copy small {
  font-size: 12px;
  color: rgba(74, 102, 136, 0.88);
  font-weight: 600;
}

.product-category-item.is-active {
  background: linear-gradient(135deg, #1b8ff0, #2fa8ff);
  color: #fff;
}

.product-category-item.is-active .product-category-copy small {
  color: rgba(255, 255, 255, 0.88);
}

.product-category-row-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-action-btn,
.category-icon-btn {
  border: 0;
  border-radius: 12px;
  background: #1b8ff0;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.category-action-btn {
  min-width: 48px;
  padding: 10px 10px;
}

.category-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.category-action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 132px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27, 143, 240, 0.14);
  box-shadow: 0 14px 30px rgba(32, 67, 114, 0.16);
  display: grid;
  gap: 4px;
}

.category-action-menu button {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 9px 10px;
  text-align: left;
  color: #34506f;
  cursor: pointer;
  font-size: 13px;
}

.category-action-menu button:hover {
  background: rgba(27, 143, 240, 0.08);
}

.product-subcategory-list {
  display: grid;
  gap: 8px;
  padding-left: 10px;
}

.product-subcategory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand-deep);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.product-subcategory-item small {
  font-size: 12px;
  color: rgba(74, 102, 136, 0.88);
}

.product-subcategory-item.is-active {
  background: rgba(27, 143, 240, 0.14);
  color: #1b8ff0;
}

.product-subcategory-item.is-active small {
  color: #1b8ff0;
}

.product-mainboard {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.product-toolbar {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.product-toolbar-title {
  display: grid;
  gap: 4px;
}

.product-toolbar-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.product-view-switch .secondary-btn.is-active {
  background: linear-gradient(135deg, #1b8ff0, #2fa8ff);
  color: #fff;
  border-color: transparent;
}

.spu-group-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.spu-group-head,
.spu-group-main,
.spu-group-meta {
  display: flex;
  align-items: center;
}

.spu-group-head {
  justify-content: space-between;
  gap: 14px;
}

.spu-group-main {
  gap: 14px;
  min-width: 0;
}

.spu-group-copy {
  display: grid;
  gap: 6px;
}

.spu-group-copy strong {
  font-size: 18px;
}

.spu-group-meta {
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.spu-group-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 143, 240, 0.12);
  color: #1b8ff0;
  font-size: 12px;
  font-weight: 700;
}

.spu-group-list {
  display: grid;
  gap: 10px;
}

.product-pagination,
.product-pagination-controls,
.page-size-wrap,
.product-page-numbers {
  display: flex;
  align-items: center;
}

.product-pagination {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 116, 47, 0.08);
  flex-shrink: 0;
}

#productAdminList.table-list {
  flex: 1 1 auto;
  align-content: start;
  min-height: 360px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 6px;
}

.product-pagination-meta {
  color: var(--muted);
  font-size: 13px;
}

.product-pagination-controls {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-size-wrap {
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.page-size-wrap select {
  min-width: 110px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(216, 116, 47, 0.14);
  background: #fff;
}

.product-page-numbers {
  gap: 8px;
}

.page-number-btn {
  min-width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-deep);
  cursor: pointer;
  font-weight: 700;
}

.page-number-btn.is-active {
  background: linear-gradient(135deg, #1b8ff0, #2fa8ff);
  color: #fff;
}

.product-check {
  width: 26px;
  display: grid;
  place-items: center;
}

.product-check input {
  width: 18px;
  height: 18px;
}

.row-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.category-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.product-category-board {
  grid-template-columns: 1fr;
}

.category-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(250, 239, 223, 0.92));
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.category-card.is-dragging {
  opacity: 0.6;
}

.category-card.is-drop-target {
  box-shadow: inset 0 0 0 2px rgba(216, 116, 47, 0.22);
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.drag-handle {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--muted);
  cursor: grab;
  user-select: none;
}

.sort-row,
.sort-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-row {
  margin-top: 12px;
}

.sort-row input,
.sort-cell input {
  width: 92px;
}

.product-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.product-badge-row.muted {
  color: var(--muted);
  font-size: 12px;
}

.status-chip.soft-blue {
  background: rgba(39, 128, 255, 0.12);
  color: #287fff;
}

.status-chip.soft-red {
  background: rgba(255, 92, 70, 0.12);
  color: #ff5c46;
}

.editor-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-chip-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-deep);
  font-size: 12px;
}

.table-row {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(250, 239, 223, 0.92));
  flex-wrap: wrap;
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.admin-order-card .order-actions {
  gap: 12px;
}

.admin-order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.table-main,
.naming-panel {
  display: grid;
  gap: 6px;
}

.table-address {
  color: var(--muted);
  max-width: 420px;
}

.import-card {
  position: relative;
  overflow: hidden;
}

.import-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 171, 84, 0.2), rgba(240, 171, 84, 0));
}

.naming-panel strong {
  font-size: 16px;
}

.drawer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(45, 36, 28, 0.36);
  z-index: 40;
}

.drawer.is-open {
  display: flex;
}

.drawer-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(247, 238, 224, 0.96));
  box-shadow: var(--shadow);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.cart-item-main,
.cart-item-side {
  display: grid;
  gap: 6px;
}

.cart-item-main span {
  color: var(--muted);
  font-size: 13px;
}

.drawer-footer {
  margin-top: 16px;
}

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

.detail-block {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.detail-block label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.detail-block strong {
  display: block;
  line-height: 1.6;
  word-break: break-word;
}

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

.order-detail-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.order-detail-main,
.order-detail-side {
  display: grid;
  gap: 6px;
}

.order-detail-main span,
.order-detail-side span {
  color: var(--muted);
  font-size: 13px;
}

#orderDetailModal .drawer-panel {
  width: min(520px, 100%);
}

.order-summary-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 245, 228, 0.8);
}

.order-summary-entry span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.summary-link-btn {
  border: 0;
  background: transparent;
  color: #8d5c2f;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.summary-link-btn:hover {
  color: #6f431d;
}

.drawer-subcopy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.payment-panel {
  display: grid;
  gap: 14px;
}

.pay-step-panel {
  margin-bottom: 0;
}

.cart-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 auto;
  max-width: 980px;
  background: rgba(44, 31, 22, 0.92);
  color: white;
  backdrop-filter: blur(14px);
}

.cart-bar-summary {
  display: grid;
  gap: 4px;
}

.cart-bar-summary span {
  color: rgba(255, 255, 255, 0.78);
}

.small-btn,
.secondary-btn,
.icon-btn {
  border: 0;
  border-radius: 12px;
  padding: 9px 13px;
  background: #1b8ff0;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.secondary-btn,
.ghost-btn {
  background: #edf5fd;
  color: #1b8ff0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 36px;
}

.product-admin-row {
  display: grid;
  grid-template-columns: 24px 58px minmax(320px, 3fr) minmax(180px, 1.5fr) minmax(100px, 0.9fr) 92px minmax(132px, 1.2fr) 90px 90px 96px;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 1280px;
}

.product-admin-row > div,
.product-admin-row > label {
  min-width: 0;
}

.product-admin-cover {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f6fb;
  color: #8aa0b7;
  font-size: 11px;
}

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

.product-admin-category {
  line-height: 1.5;
  word-break: break-word;
  color: var(--muted);
}

.product-admin-row .table-main {
  min-width: 0;
}

.product-admin-row .table-main strong,
.product-admin-row .table-main span {
  word-break: break-word;
}

.product-admin-row .table-main strong {
  line-height: 1.45;
}

.product-admin-row .sort-cell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.product-admin-row .sort-cell input,
.product-admin-row .sort-cell button {
  width: 100%;
}

.product-admin-row .row-actions {
  justify-content: flex-end;
}

@media (max-width: 1480px) {
  .product-admin-row {
    min-width: 1180px;
  }
}

.shipping-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shipping-editor input {
  flex: 1 1 180px;
  min-width: 0;
}

.logistics-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f8fd;
  color: #58708c;
  font-size: 13px;
}

.logistics-box p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.product-editor-panel {
  width: min(720px, 100%);
}

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

.editor-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.editor-section {
  display: grid;
  gap: 10px;
}

.editor-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.editor-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.editor-image {
  position: relative;
  min-width: 0;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f2f7fc;
}

.editor-image.is-main {
  border-color: #1b8ff0;
}

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

.editor-image span {
  display: block;
  margin-top: 5px;
  color: #55718f;
  font-size: 11px;
  text-align: center;
}

.editor-image button {
  width: 100%;
  margin-top: 5px;
  border: 0;
  color: #e24d4d;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

@media (max-width: 680px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .admin-layout-shell {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }

  .admin-layout-side {
    position: sticky;
    top: 16px;
  }

  .admin-shell {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }

  .app-shell {
    max-width: 760px;
  }

  .app-shell-mall {
    max-width: 1100px;
  }

  .mall-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: center;
  }

  .mall-login-grid,
  .mall-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mall-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .product-workspace {
    grid-template-columns: 1fr;
  }

  .product-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-pagination-controls {
    justify-content: flex-start;
  }

  .admin-layout-shell {
    padding: 0 0 18px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .app-shell,
  .admin-shell {
    padding: 0;
  }

  .mall-login-page {
    width: 100%;
    min-height: 100vh;
    gap: 14px;
  }

  .h5-login-hero {
    padding: 16px 14px 0;
    border-radius: 0 0 24px 24px;
  }

  .h5-login-brand {
    padding: 22px 6px 16px;
  }

  .h5-login-brand h1 {
    font-size: 28px;
  }

  .login-tab {
    padding: 16px 8px 14px;
    font-size: 16px;
  }

  .h5-login-panel {
    padding: 0 12px 18px;
    gap: 12px;
  }

  .mall-login-card {
    padding: 18px 16px;
  }

  .hero,
  .admin-side,
  .card,
  .panel {
    border-radius: 24px;
  }

  .meta-grid,
  .summary-bar,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    grid-template-columns: 92px 1fr;
    padding: 14px;
  }

  .order-head,
  .order-actions,
  .pay-panel,
  .cart-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawer {
    padding: 0;
    align-items: flex-end;
  }

  .drawer-panel,
  #orderDetailModal .drawer-panel {
    width: 100%;
    max-height: min(88vh, calc(100vh - 8px));
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-block {
    padding: 12px;
  }

  .order-detail-item {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .order-detail-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .order-detail-side b,
  .order-detail-side strong,
  .order-detail-side span {
    text-align: left;
  }

  .settlement-card {
    position: static;
  }

  .cart-bar {
    padding: 12px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-dashboard-shell {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 116, 47, 0.12);
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-setting-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(248, 240, 226, 0.9));
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.section-title.compact {
  margin-bottom: 6px;
}

.account-list {
  display: grid;
  gap: 12px;
}

.image-pool-grid {
  display: grid;
  gap: 14px;
}

.image-pool-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 116, 47, 0.1);
}

.image-pool-thumb {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(238, 244, 252, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.image-pool-body {
  display: grid;
  gap: 10px;
}

.image-pool-meta,
.image-pool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.image-pool-actions select {
  min-width: 320px;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(216, 116, 47, 0.12);
  background: #fff;
}

.account-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 116, 47, 0.1);
}

.account-card strong,
.account-card span {
  display: block;
}

.account-meta,
.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-chip.is-active {
  background: rgba(52, 168, 83, 0.12);
  color: #207245;
}

.status-chip.is-inactive {
  background: rgba(216, 116, 47, 0.12);
  color: #9a4f1d;
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  background:
    radial-gradient(circle at top left, rgba(255, 220, 187, 0.72), transparent 36%),
    linear-gradient(135deg, #fff8f1 0%, #fffdf9 45%, #fff6ea 100%);
}

.admin-login-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 48px;
  display: flex;
  align-items: center;
}

.admin-login-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  display: grid;
  gap: 18px;
}

.admin-login-hero-copy h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
}

.admin-login-hero-copy p {
  margin: 0;
  color: var(--muted);
}

.admin-login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-login-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 116, 47, 0.12);
  font-weight: 700;
  color: var(--brand-deep);
}

.admin-login-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
}

.admin-login-orb-a {
  width: 340px;
  height: 340px;
  right: 10%;
  top: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 182, 90, 0.45), rgba(255, 255, 255, 0));
}

.admin-login-orb-b {
  width: 240px;
  height: 240px;
  left: 14%;
  bottom: 12%;
  background: radial-gradient(circle at 40% 40%, rgba(27, 143, 240, 0.18), rgba(255, 255, 255, 0));
}

.admin-login-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px 28px;
  margin: auto;
  width: min(420px, calc(100% - 28px));
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(140, 88, 40, 0.12);
  border: 1px solid rgba(216, 116, 47, 0.08);
}

.admin-login-submit {
  min-height: 48px;
}

.login-status.is-error {
  color: #bf3b24;
}

@media (max-width: 960px) {
  .admin-dashboard-shell,
  .admin-login-screen,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-hero {
    min-height: 280px;
    padding: 36px 22px 22px;
  }

  .admin-login-card {
    margin: 0 16px 24px;
    width: auto;
  }
}

@media (max-width: 680px) {
  .admin-user-chip,
  .account-meta,
  .account-actions,
  .admin-topbar-actions {
    align-items: flex-start;
  }

  .admin-user-chip {
    flex-direction: column;
    width: 100%;
    border-radius: 22px;
  }

  .admin-login-hero-copy h1 {
    font-size: 32px;
  }
}
