:root {
  --red: #e1251b;
  --red-soft: #fff3f1;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #edf0f5;
  --panel: #ffffff;
  --bg: #f5f6f8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial,
    sans-serif;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

img.image-fallback {
  object-fit: contain !important;
  background: #f4f6f8;
}

.wrap {
  width: calc(100vw - 40px);
  max-width: 2240px;
  margin: 0 auto;
}

.topbar {
  height: 34px;
  color: #8a94a6;
  font-size: 12px;
  background: #f2f3f5;
  border-bottom: 1px solid #e8ecf2;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}

.topbar nav {
  display: flex;
  gap: 18px;
}

.topbar button {
  color: #6b7280;
}

.topbar button:hover,
.channel-nav button:hover,
.floor-head button:hover {
  color: var(--red);
}

.search-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #eceff3;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(520px, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 90px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-self: start;
  text-align: left;
}

.brand > img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand strong {
  color: var(--red);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.brand small {
  color: #8a94a6;
  font-size: 13px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 100px;
  height: 46px;
  border: 2px solid var(--red);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.search-box input {
  min-width: 0;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.search-box button {
  color: #fff;
  font-weight: 700;
  background: var(--red);
}

.channel-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  height: 42px;
}

.channel-nav button {
  color: #303133;
  font-weight: 700;
}

.main {
  padding: 18px 0 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  min-height: 420px;
}

.category-panel,
.hero-card,
.user-card,
.floor,
.search-view {
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.category-panel {
  padding: 14px 0;
}

.panel-title {
  padding: 0 18px 10px;
  font-weight: 800;
}

.category-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: #303133;
}

.category-item:hover {
  color: var(--red);
  background: var(--red-soft);
}

.category-item strong {
  font-size: 14px;
}

.category-item span {
  color: #8a94a6;
  font-size: 12px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 34px;
  padding: 44px;
  border: 1px solid #f1f3f6;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  width: max-content;
  padding: 6px 12px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  background: #ecfdf5;
  border-radius: 999px;
}

.hero-copy h1 {
  width: min(720px, 100%);
  margin: 18px 0 0;
  color: #111827;
  font-size: 42px;
  line-height: 1.22;
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

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

.primary,
.ghost,
.user-card > button {
  height: 42px;
  padding: 0 24px;
  color: #fff;
  font-weight: 700;
  background: var(--red);
  border-radius: 999px;
}

.ghost {
  color: var(--red);
  background: var(--red-soft);
}

.hero-carousel {
  display: grid;
  gap: 14px;
}

.hero-product {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-product img {
  grid-row: 1 / span 2;
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.hero-product strong {
  font-size: 13px;
  line-height: 20px;
}

.price {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
}

.avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 58px;
  background: #111827;
  border-radius: 50%;
}

.user-card p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.user-card > button {
  width: 100%;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 18px;
}

.shortcut-grid button {
  padding: 9px 0;
  color: var(--muted);
  background: #f5f7fb;
  border-radius: 8px;
}

.floor,
.search-view {
  margin-top: 18px;
  padding: 24px;
}

.floor-head,
.search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.floor-head h2,
.search-head h2 {
  margin: 0;
  font-size: 24px;
}

.floor-head p,
.search-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.floor-head button,
.search-head button {
  color: var(--red);
  font-weight: 700;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.brand-card img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.brand-card span {
  max-width: 100%;
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover,
.brand-card:hover,
.hero-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 14px 0 0;
  overflow: hidden;
  color: #303133;
  font-size: 15px;
  line-height: 22px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card p {
  overflow: hidden;
  margin: 6px 0 0;
  color: #8a94a6;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  padding: 48px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #d8dee8;
  border-radius: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: min(520px, calc(100vw - 48px));
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  background: rgba(17, 24, 39, 0.92);
  border-radius: 999px;
  transform: translateX(-50%);
}

.agent-panel {
  position: static;
}

.agent-fab__button {
  position: fixed;
  right: max(28px, calc((100vw - 2240px) / 2 + 28px));
  bottom: 28px;
  z-index: 72;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background: #111827;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  touch-action: none;
  user-select: none;
  cursor: grab;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.agent-fab__button:hover,
.agent-fab__button:focus-visible {
  background: #1f2937;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.agent-fab__button:focus-visible {
  outline: 3px solid rgba(239, 43, 31, 0.28);
  outline-offset: 3px;
}

.agent-fab__button:active,
.agent-panel.is-dragging .agent-fab__button {
  cursor: grabbing;
  transform: none;
}

.agent-fab__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  pointer-events: none;
  transition: transform 160ms ease;
}

.agent-fab__button:hover .agent-fab__icon,
.agent-fab__button:focus-visible .agent-fab__icon {
  transform: translateY(-1px);
}

.agent-fab__tooltip {
  position: fixed;
  z-index: 71;
  padding: 8px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  background: rgba(17, 24, 39, 0.96);
  border-radius: 9px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

.agent-fab__tooltip::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(17, 24, 39, 0.96);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.agent-panel.tooltip-left .agent-fab__tooltip::after {
  right: -4px;
}

.agent-panel.tooltip-right .agent-fab__tooltip::after {
  left: -4px;
}

.agent-panel.is-tooltip-visible .agent-fab__tooltip {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0s;
}

.agent-window {
  position: fixed;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 24px));
  min-height: min(420px, calc(100vh - 24px));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.agent-panel.is-collapsed .agent-window {
  display: none;
}

.agent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.agent-head__identity {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.agent-head__identity > img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.agent-head strong,
.agent-head span {
  display: block;
}

.agent-head strong {
  font-size: 16px;
}

.agent-head span {
  position: relative;
  padding-left: 12px;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

.agent-head span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.agent-head span[data-status="unavailable"]::before {
  background: #f59e0b;
}

.agent-head button {
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 25px;
  line-height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.agent-head button:hover,
.agent-head button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.agent-messages {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 16px;
  background: #f6f8fb;
}

.agent-message {
  max-width: 85%;
  margin-bottom: 12px;
}

.agent-message.user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.agent-message.assistant {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
}

.agent-message__avatar {
  grid-column: 1;
  width: 28px;
  height: 28px;
  padding: 3px;
  background: #111827;
  border-radius: 9px;
}

.agent-message p {
  margin: 0;
  padding: 11px 13px;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.65;
  border-radius: 14px;
}

.agent-message.user p {
  color: #fff;
  background: #ef2b1f;
  border-bottom-right-radius: 4px;
}

.agent-message.assistant p {
  grid-column: 2;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.agent-tools {
  grid-column: 2;
  margin-top: 8px;
  color: #8a94a6;
  font-size: 12px;
}

.agent-tools span {
  display: block;
  margin-top: 4px;
}

.agent-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.agent-quick button {
  padding: 7px 11px;
  color: #475569;
  font-size: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.agent-quick button:hover,
.agent-quick button:focus-visible {
  color: #ef2b1f;
  background: #fff5f4;
  border-color: #ef2b1f;
}

.agent-form {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 10px;
  padding: 14px 16px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.agent-form input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  outline: none;
}

.agent-form input:focus {
  border-color: #ef2b1f;
  box-shadow: 0 0 0 3px rgba(239, 43, 31, 0.1);
}

.agent-form button {
  height: 42px;
  color: #fff;
  font-weight: 700;
  background: #ef2b1f;
  border-radius: 10px;
}

.agent-form button:hover {
  background: #d92319;
}

.agent-form button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.product-dialog {
  width: min(1040px, calc(100vw - 56px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.product-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.product-dialog:has(.pc-account) {
  width: min(580px, calc(100vw - 32px));
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  color: #606266;
  font-size: 28px;
  line-height: 36px;
  background: #f5f7fb;
  border-radius: 50%;
}

.dialog-body {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  padding: 34px;
}

.dialog-body img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 14px;
}

.dialog-info h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.dialog-info p {
  color: var(--muted);
  line-height: 1.7;
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.dialog-meta span {
  padding: 12px;
  font-size: 13px;
  background: #f8fafc;
  border-radius: 10px;
}

.dialog-info button,
.pc-confirm button,
.pc-pay button,
.pc-pay-success button {
  height: 44px;
  padding: 0 26px;
  color: #fff;
  font-weight: 700;
  background: var(--red);
  border-radius: 999px;
}

.dialog-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 14px;
  margin: 22px 0;
}

.dialog-purchase label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.dialog-purchase select,
.dialog-purchase input {
  height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  outline: none;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.dialog-actions button.secondary,
.dialog-actions button.plain {
  color: var(--red);
  background: #fff4f3;
}

.dialog-actions button.plain {
  color: var(--text);
  background: #f5f7fb;
}

.dialog-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pc-confirm,
.pc-pay,
.pc-pay-success {
  grid-column: 1 / -1;
}

.pc-confirm h2,
.pc-pay h2,
.pc-pay-success h2 {
  margin: 0 0 18px;
  color: var(--text);
}

.pc-confirm-address,
.pc-confirm-product,
.pc-confirm-amount {
  padding: 18px;
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #edf0f5;
  border-radius: 12px;
}

.pc-confirm-address {
  display: grid;
  gap: 8px;
}

.pc-confirm-address span,
.pc-pay p,
.pc-pay-success p {
  color: var(--muted);
}

.pc-confirm-address.is-empty {
  background: #fff7ed;
  border-color: #fed7aa;
}

.pc-confirm-product {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.pc-confirm-product img {
  width: 92px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.pc-confirm-product div {
  display: grid;
  gap: 6px;
}

.pc-confirm-product span {
  color: var(--muted);
  font-size: 13px;
}

.pc-confirm-amount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
}

.pc-confirm-amount .price,
.pc-pay strong {
  color: var(--red);
  font-size: 22px;
}

.pc-pay-methods {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}

.pc-pay-methods span {
  padding: 10px 16px;
  color: var(--muted);
  background: #f5f7fb;
  border-radius: 999px;
}

.pc-pay-methods .active {
  color: var(--red);
  background: #fff4f3;
}

.pc-account,
.pc-data-panel {
  grid-column: 1 / -1;
}

.pc-account h2,
.pc-data-panel h2 {
  margin: 0 0 12px;
}

.dialog-muted {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.auth-heading img {
  width: 50px;
  height: 50px;
}

.auth-heading h2,
.auth-heading p {
  margin: 0;
}

.auth-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.auth-error {
  padding: 10px 12px;
  margin: 0 0 12px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
  background: #fff1f0;
  border: 1px solid #ffd3cf;
  border-radius: 8px;
}

.pc-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pc-form h3 {
  margin: 0;
}

.auth-switch {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.pc-form .auth-switch > button[data-action="pcAuthTab"] {
  appearance: none;
  display: inline;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 0 0 4px;
  color: var(--red);
  font: inherit;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: inherit;
}

.pc-form .auth-switch > button[data-action="pcAuthTab"]:hover {
  text-decoration: underline;
}

.pc-form .auth-switch > button[data-action="pcAuthTab"]:focus-visible {
  outline: 2px solid rgba(225, 37, 27, 0.3);
  outline-offset: 2px;
}

.pc-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.pc-form input,
.code-row input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  outline: 0;
}

.pc-form input:focus,
.code-row input:focus {
  border-color: var(--red);
}

.pc-form button,
.pc-account .full {
  height: 40px;
  color: #fff;
  font-weight: 700;
  background: var(--red);
  border-radius: 999px;
}

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

.code-row .secondary,
.pc-account .plain {
  color: var(--red);
  background: #fff4f3;
}

.captcha-row {
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
}

.pc-form .captcha-image-button {
  height: 44px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
}

.captcha-image-button span {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 3px 8px;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.captcha-image-button span.is-error {
  color: #b42318;
  background: #fff1f0;
}

.captcha-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pc-form .captcha-refresh {
  justify-self: end;
  width: auto;
  height: auto;
  padding: 0;
  color: var(--red);
  font-size: 12px;
  background: transparent;
}

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

.pc-list,
.pc-coupon-list {
  display: grid;
  gap: 12px;
  max-height: min(58vh, 520px);
  overflow: auto;
}

.pc-list-item,
.pc-order-row,
.pc-coupon {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pc-list-item {
  grid-template-columns: 74px minmax(0, 1fr);
}

.pc-list-item img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.pc-list-item div,
.pc-order-row div,
.pc-coupon {
  display: grid;
  gap: 6px;
}

.pc-list-item span,
.pc-order-row span,
.pc-coupon span {
  color: var(--muted);
  font-size: 13px;
}

.pc-list-item b,
.pc-order-row b,
.pc-coupon b {
  color: var(--red);
}

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

.pc-coupon {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 1500px) {
  .wrap {
    width: calc(100vw - 48px);
    max-width: 1360px;
  }

  .search-row {
    grid-template-columns: 260px minmax(420px, 1fr);
  }

  .hero-layout {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    min-height: 380px;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 36px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .brand-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .search-row {
    grid-template-columns: 250px minmax(360px, 1fr);
    gap: 20px;
  }

  .hero-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .user-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 180px;
    column-gap: 16px;
    text-align: left;
  }

  .avatar {
    margin-bottom: 0;
  }

  .user-card > button {
    width: auto;
  }

  .shortcut-grid {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wrap {
    width: min(100vw - 24px, 720px);
  }

  .search-row,
  .hero-layout,
  .hero-card,
  .dialog-body {
    grid-template-columns: 1fr;
  }

  .channel-nav {
    gap: 16px;
    overflow-x: auto;
  }

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

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

  .agent-fab__button {
    right: 12px;
    bottom: 12px;
  }

  .agent-window {
    width: min(392px, calc(100vw - 24px));
    height: min(580px, calc(100vh - 24px));
  }
}

@media (max-width: 768px) {
  .topbar-inner > span {
    display: none;
  }

  .topbar-inner,
  .topbar nav {
    justify-content: flex-end;
    width: 100%;
  }

  .topbar nav {
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .search-row {
    gap: 14px;
    padding: 16px 0;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 28px;
  }

  .channel-nav {
    height: 40px;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero-card {
    gap: 20px;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .floor,
  .search-view {
    padding: 18px;
  }

  .product-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .dialog-body {
    gap: 18px;
    padding: 24px 18px;
  }

  .agent-window {
    width: calc(100vw - 24px);
    height: min(75vh, 680px);
    min-height: min(420px, 75vh);
    border-radius: 18px;
  }

  .agent-fab__tooltip {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100vw - 16px);
  }

  .search-box {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .hero-layout {
    gap: 12px;
  }

  .hero-card {
    padding: 20px 16px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .user-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .user-card > button {
    grid-column: 1 / -1;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card {
    padding: 10px;
  }

  .agent-fab__button {
    width: 52px;
    height: 52px;
  }

  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 116px;
  }
}
