:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #17211b;
  --muted: #667069;
  --line: #dce3dd;
  --primary: #19715f;
  --primary-dark: #0f4f43;
  --accent: #c4552d;
  --gold: #b88732;
  --shadow: 0 18px 48px rgba(24, 35, 29, 0.1);
  --page-shell-width: min(1200px, calc(100vw - 32px));
  --page-side-padding: max(16px, calc((100vw - 1200px) / 2));
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

html {
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea,
select {
  max-width: 100%;
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

button.primary,
.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

img {
  display: block;
  max-width: 100%;
}

#app {
  min-width: 0;
}

h1,
h2,
h3,
p,
span,
strong,
small,
label,
dt,
dd {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 227, 221, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: var(--page-shell-width);
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 20px;
  padding: 0;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.main-nav,
.header-actions,
.hero-actions,
.pay-methods {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav {
  justify-content: center;
}

.main-nav button,
.cart-link {
  border: 0;
  background: transparent;
}

.main-nav button.active,
.cart-link.active {
  color: var(--primary);
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.search-box input,
.form-panel input,
.form-panel textarea,
.form-panel select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

main {
  width: var(--page-shell-width);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar > *,
main > *,
.hero > *,
.storefront-home > *,
.home-grand-hero-inner > *,
.home-grand-stage > *,
.haier-hero > *,
.haier-floor > *,
.catalog-layout > *,
.cart-layout > *,
.checkout-grid > *,
.payment-layout > *,
.member-layout > *,
.admin-layout > *,
.detail-layout > *,
.admin-product-layout > *,
.backup-grid > *,
.member-asset-layout > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 104px);
  padding-bottom: 24px;
}

.storefront-home {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 268px;
  gap: 16px;
  align-items: stretch;
}

.home-category-rail,
.home-deal-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.home-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.home-panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.home-panel-head strong {
  color: #0b6fb3;
  font-size: 24px;
}

.home-category-list {
  display: grid;
  gap: 8px;
}

.home-category-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-color: #e4edf4;
  background: #f8fbfd;
  text-align: left;
}

.home-category-list button span,
.home-category-list button small {
  min-width: 0;
}

.home-category-list button small {
  color: var(--muted);
  white-space: nowrap;
}

.home-hero-board {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 22px;
  align-items: stretch;
  min-width: 0;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #cfe3f2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #eaf6ff 0%, #fff 58%, #fff4ec 100%),
    #fff;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
}

.home-hero-copy h1 {
  min-width: 0;
  max-width: 460px;
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
}

.home-hero-copy p {
  min-width: 0;
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d8e6f0;
  border-radius: 8px;
  background: #d8e6f0;
}

.home-hero-metrics span {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
}

.home-hero-metrics strong {
  color: #0b6fb3;
  font-size: 24px;
}

.home-hero-products {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(150px, 0.85fr);
  gap: 12px;
  min-width: 0;
}

.home-hero-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-hero-product {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  border-color: #d8e6f0;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.home-hero-product.large {
  padding: 18px;
}

.home-hero-product span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e6f4ff;
  color: #0b6fb3;
  font-size: 12px;
  font-weight: 800;
}

.home-hero-product img {
  width: 100%;
  height: 168px;
  object-fit: contain;
}

.home-hero-product.large img {
  height: 246px;
}

.home-hero-product h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.home-hero-product strong {
  color: #c4552d;
  font-size: 22px;
}

.home-deal-list {
  display: grid;
  gap: 10px;
}

.home-deal-item {
  display: grid;
  grid-template-columns: 30px 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border-color: #e6e0d6;
  background: #fffaf3;
  text-align: left;
}

.home-deal-item > span {
  color: #b88732;
  font-weight: 900;
}

.home-deal-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.home-deal-item h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.home-deal-item strong {
  color: #c4552d;
}

.home-grand-hero {
  width: 100%;
  margin: -28px 0 0;
  padding: 42px 0 30px;
  overflow: hidden;
  border-bottom: 1px solid #d9e7ef;
  background:
    linear-gradient(112deg, #f8fbff 0%, #eef7f9 48%, #fff3e8 100%),
    #f8fbff;
}

.home-grand-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 42px;
  align-items: center;
  min-height: 610px;
}

.home-grand-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.home-grand-copy h1 {
  max-width: 660px;
  margin: 0;
  color: #0b2d4b;
  font-size: 64px;
  line-height: 1.05;
}

.home-grand-copy p {
  max-width: 620px;
  margin: 0;
  color: #51646f;
  font-size: 17px;
  line-height: 1.9;
}

.home-grand-copy .hero-actions .primary {
  border-color: #0b6fb3;
  background: #0b6fb3;
}

.home-grand-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  overflow: hidden;
  border: 1px solid rgba(11, 111, 179, 0.18);
  border-radius: 8px;
  background: rgba(11, 111, 179, 0.18);
}

.home-grand-metrics span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #60737d;
  font-size: 13px;
}

.home-grand-metrics strong {
  color: #0b6fb3;
  font-size: 28px;
}

.home-grand-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  min-width: 0;
}

.home-stage-lead,
.home-stage-mini {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(145, 179, 198, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 52px rgba(35, 75, 104, 0.12);
  text-align: left;
}

.home-stage-lead {
  align-content: space-between;
  min-height: 540px;
  padding: 26px;
}

.home-stage-lead img {
  width: 100%;
  height: 330px;
  object-fit: contain;
}

.home-stage-label,
.home-stage-mini span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e7f4ff;
  color: #0b6fb3;
  font-size: 12px;
  font-weight: 800;
}

.home-stage-caption {
  display: grid;
  gap: 7px;
}

.home-stage-caption small {
  color: #60737d;
  font-weight: 700;
}

.home-stage-caption h3,
.home-stage-mini h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  color: #142938;
  line-height: 1.42;
}

.home-stage-caption h3 {
  -webkit-line-clamp: 2;
  font-size: 24px;
}

.home-stage-caption p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #60737d;
  line-height: 1.7;
}

.home-stage-caption strong,
.home-stage-mini strong {
  color: #c4552d;
}

.home-stage-caption strong {
  font-size: 30px;
}

.home-stage-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.home-stage-mini {
  align-content: start;
  gap: 6px;
  min-height: 140px;
  padding: 12px;
}

.home-stage-mini img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.home-stage-mini h3 {
  -webkit-line-clamp: 1;
  font-size: 13px;
}

.home-rank-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(224, 208, 185, 0.74);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.92);
}

.home-rank-panel .home-panel-head strong {
  color: #b88732;
  font-size: 20px;
}

.home-rank-panel .home-deal-list {
  gap: 8px;
}

.home-rank-panel .home-deal-item {
  grid-template-columns: 22px 42px minmax(0, 1fr);
  min-height: 50px;
  padding: 6px;
  background: #fff;
}

.home-rank-panel .home-deal-item img {
  width: 42px;
  height: 42px;
}

.home-rank-panel .home-deal-item h3 {
  -webkit-line-clamp: 1;
  font-size: 12px;
}

.home-grand-categories {
  display: grid;
  grid-template-columns: 154px repeat(4, minmax(0, 1fr)) 132px;
  gap: 10px;
  align-items: stretch;
  margin-top: 22px;
}

.home-category-overview,
.home-category-chip {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid rgba(145, 179, 198, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
}

.home-category-overview span,
.home-category-chip small {
  color: #647782;
  font-size: 12px;
  font-weight: 700;
}

.home-category-overview strong {
  color: #0b6fb3;
  font-size: 30px;
}

.home-category-chip span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #142938;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-category-all {
  border-color: #0b6fb3;
  background: #0b6fb3;
}

.home-category-all span,
.home-category-all small {
  color: #fff;
}

.haier-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
  padding: 34px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 82, 160, 0.96), rgba(0, 142, 202, 0.88) 55%, rgba(255, 255, 255, 0.72)),
    #006eb8;
  color: #fff;
}

.haier-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.haier-hero-copy .eyebrow {
  color: #d7f4ff;
}

.haier-hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: 62px;
  line-height: 1.04;
}

.haier-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.9;
}

.haier-hero .hero-actions button {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.haier-hero .hero-actions .primary {
  border-color: #fff;
  background: #fff;
  color: #005aa8;
}

.haier-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.haier-hero-badges span {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.haier-hero-stage {
  position: relative;
  min-height: 440px;
}

.hero-appliance {
  position: absolute;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 48px rgba(0, 48, 104, 0.2);
}

.hero-appliance img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.hero-appliance span {
  color: #005aa8;
  font-size: 13px;
  font-weight: 800;
}

.hero-appliance-1 {
  right: 24px;
  top: 12px;
  width: min(58%, 330px);
}

.hero-appliance-2 {
  left: 8px;
  bottom: 34px;
  width: min(43%, 230px);
}

.hero-appliance-3 {
  right: 0;
  bottom: 0;
  width: min(36%, 190px);
}

.haier-hero-meter {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.haier-hero-meter span {
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 12px;
  background: rgba(0, 52, 115, 0.72);
  color: rgba(255, 255, 255, 0.78);
}

.haier-hero-meter strong {
  color: #fff;
  font-size: 24px;
}

.hero-copy h1,
.page-head h1,
.detail-info h1 {
  margin: 12px 0;
  font-size: 56px;
  line-height: 1.05;
}

.hero-copy p,
.page-head p,
.section-title p,
.detail-info p {
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  color: var(--accent);
  font-weight: 700;
}

.hero-panel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-stats,
.metric-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  background: var(--line);
}

.hero-stats span,
.metric-grid article,
.status-grid article {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 18px;
  background: var(--surface);
}

.hero-stats strong,
.metric-grid strong,
.status-grid strong {
  font-size: 24px;
  color: var(--primary);
}

.section-shell,
.page-head,
.admin-section {
  margin-top: 28px;
}

.haier-service-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #d7e8f3;
  border-radius: 8px;
  background: #d7e8f3;
}

.haier-service-strip article {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 16px;
  background: #fff;
}

.haier-service-strip strong {
  color: #005aa8;
}

.haier-service-strip span {
  color: var(--muted);
  font-size: 13px;
}

.home-assurance-strip {
  border-color: #e3e1d7;
  background: #e3e1d7;
}

.home-assurance-strip strong {
  color: #19715f;
}

.section-title,
.page-head.compact {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.section-title h2,
.filter-panel h2,
.summary-panel h2,
.form-panel h2,
.admin-section h2,
.member-sidebar h2,
.admin-sidebar h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.category-grid,
.coupon-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
}

.category-grid button {
  min-height: 78px;
  font-weight: 700;
  background: var(--surface);
}

.haier-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}

.haier-category-grid button {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  text-align: left;
  background: linear-gradient(180deg, #fff, #f1f8fc);
}

.haier-category-grid span {
  color: #005aa8;
  font-size: 18px;
  font-weight: 800;
}

.haier-category-grid strong {
  color: var(--accent);
  font-size: 28px;
}

.haier-category-grid small {
  color: var(--muted);
}

.home-scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.home-scene-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
  align-items: center;
  min-height: 154px;
  padding: 18px;
  border-color: #d9e6ef;
  background: #fff;
  text-align: left;
}

.home-scene-card span {
  color: #0b6fb3;
  font-size: 13px;
  font-weight: 800;
}

.home-scene-card h3 {
  margin: 8px 0;
  font-size: 21px;
}

.home-scene-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  line-height: 1.6;
}

.home-scene-card img {
  width: 128px;
  height: 118px;
  object-fit: contain;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.home-product-card {
  display: grid;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #d7e8f3;
  border-radius: 8px;
  background: var(--surface);
}

.home-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 190px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #f4f9fc;
}

.home-product-image img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.home-product-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.home-product-card span {
  color: #005aa8;
  font-size: 13px;
  font-weight: 800;
}

.home-product-card h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.4;
}

.home-product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.home-product-card strong {
  color: var(--accent);
  font-size: 22px;
}

.haier-floor-wrap {
  display: grid;
  gap: 18px;
}

.haier-floor {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: stretch;
}

.floor-lead {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #075c9d 0%, #0d9ccd 68%, #f3a953 100%);
  color: #fff;
}

.floor-lead span {
  color: #d7f4ff;
  font-weight: 700;
}

.floor-lead h2,
.floor-lead p {
  margin: 0;
}

.floor-lead p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.floor-lead button {
  width: fit-content;
  border-color: #fff;
  background: #fff;
  color: #005aa8;
}

.floor-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}

.floor-product {
  display: grid;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid #d7e8f3;
  border-radius: 8px;
  background: var(--surface);
}

.floor-product button {
  min-height: 170px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #f7fbfd;
}

.floor-product img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.floor-product div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.floor-product h3 {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.45;
}

.floor-product span {
  color: var(--accent);
  font-weight: 800;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.product-card,
.activity-card,
.coupon-card,
.summary-panel,
.form-panel,
.filter-panel,
.member-sidebar,
.admin-sidebar,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table-card {
  min-width: 0;
  overflow-x: auto;
}

.product-card {
  overflow: hidden;
}

.catalog-product-grid .product-card {
  display: grid;
  border-color: #d9e6ef;
}

.catalog-product-grid .product-image {
  display: grid;
  place-items: center;
  height: 220px;
  background: #f6fbff;
}

.catalog-product-grid .product-image img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}

.catalog-product-grid .product-body {
  display: grid;
  gap: 10px;
}

.catalog-product-grid .product-body h3 {
  display: -webkit-box;
  min-height: 50px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.catalog-product-grid .product-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catalog-product-grid .price-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: end;
}

.catalog-product-grid .price-row small {
  grid-column: 1 / -1;
  margin-left: 0;
}

.catalog-product-grid .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-product-grid .card-actions button {
  min-width: 0;
  padding: 0 8px;
}

.activity-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto minmax(148px, 0.35fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
}

.activity-card img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.activity-card h3,
.activity-card p,
.activity-card small {
  margin: 4px 0;
}

.activity-card span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff3ea;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.activity-card p {
  color: var(--muted);
  line-height: 1.5;
}

.activity-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.activity-card strong {
  color: var(--accent);
  font-size: 22px;
}

.activity-actions {
  display: grid;
  gap: 8px;
}

.activity-actions button {
  min-width: 0;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: end;
  padding: 26px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf6ff 0%, #fff 58%, #fff7ef 100%);
}

.catalog-hero h1 {
  margin: 10px 0;
  font-size: 38px;
  line-height: 1.15;
}

.catalog-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.catalog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d8e6f0;
  border-radius: 8px;
  background: #d8e6f0;
}

.catalog-metrics span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 13px;
}

.catalog-metrics strong {
  color: #0b6fb3;
  font-size: 22px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.catalog-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}

.catalog-summary strong {
  color: var(--accent);
  font-size: 28px;
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sort-tabs button {
  min-height: 34px;
}

.sort-tabs button.active {
  border-color: var(--primary);
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 800;
}

.product-image {
  width: 100%;
  height: 210px;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.product-image img,
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  min-height: 52px;
  margin: 10px 0 6px;
  font-size: 18px;
}

.product-body p {
  min-height: 44px;
  color: var(--muted);
  line-height: 1.6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-row span {
  border-radius: 6px;
  padding: 3px 7px;
  background: #fff3ea;
  color: var(--accent);
  font-size: 12px;
}

.price-row,
.card-actions,
.cart-row,
.order-row,
.admin-row,
.summary-panel p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-row strong,
.detail-price {
  color: var(--accent);
  font-size: 24px;
}

.price-row del,
.detail-price del {
  color: var(--muted);
  font-size: 14px;
}

.price-row small {
  margin-left: auto;
  color: var(--muted);
}

.catalog-layout,
.cart-layout,
.checkout-grid,
.member-layout,
.admin-layout,
.detail-layout {
  display: grid;
  gap: 22px;
}

.catalog-layout {
  grid-template-columns: 220px 1fr;
}

.catalog-results {
  display: grid;
  gap: 14px;
}

.catalog-filter {
  position: sticky;
  top: 94px;
  align-self: start;
}

.catalog-filter button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-filter button span {
  min-width: 0;
}

.catalog-filter button small {
  color: var(--muted);
}

.catalog-filter-note {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #f6fbff;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.catalog-filter-note strong {
  color: #0b6fb3;
}

.catalog-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip-row span {
  padding: 6px 10px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
  color: #0b6fb3;
  font-size: 13px;
  font-weight: 800;
}

.cart-layout,
.checkout-grid {
  grid-template-columns: 1fr 320px;
}

.member-layout,
.admin-layout {
  grid-template-columns: 240px 1fr;
}

.detail-layout {
  grid-template-columns: 520px 1fr;
  align-items: start;
}

.product-detail-hero {
  padding: 18px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3faff 0%, #fff 64%, #fff7ef 100%);
}

.filter-panel,
.summary-panel,
.form-panel,
.member-sidebar,
.admin-sidebar {
  padding: 18px;
}

.filter-panel button,
.member-sidebar button,
.admin-sidebar button {
  display: block;
  width: 100%;
  margin: 8px 0;
  text-align: left;
}

.filter-panel button.active,
.pay-methods button.active {
  border-color: var(--primary);
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 700;
}

.filter-panel.catalog-filter button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 520px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.detail-image img {
  width: min(100%, 560px);
  height: min(100%, 500px);
}

.detail-info {
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-thumb-row {
  display: grid;
  grid-template-columns: 78px repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-thumb-row button {
  min-width: 0;
  min-height: 64px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.detail-thumb-row button.active {
  border-color: #0b6fb3;
}

.detail-thumb-row img {
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.detail-buy-panel {
  display: grid;
  gap: 18px;
  border: 1px solid #d9e6ef;
}

.detail-buy-panel h1 {
  margin: 0;
  font-size: 34px;
}

.detail-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-price-panel {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px 12px;
  align-items: end;
  padding: 18px;
  border-radius: 8px;
  background: #fff6ef;
}

.detail-price-panel span {
  color: var(--muted);
  font-size: 13px;
}

.detail-price-panel strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.detail-price-panel del {
  color: var(--muted);
}

.detail-price-panel small {
  grid-column: 1 / -1;
  color: #9a5a31;
}

.detail-service-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dceadf;
  border-radius: 8px;
  background: #dceadf;
}

.detail-service-row span {
  min-height: 42px;
  padding: 11px 8px;
  background: #f6fbf7;
  color: var(--primary-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.detail-option-block h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.detail-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-copy-grid,
.detail-service-grid {
  display: grid;
  gap: 12px;
}

.detail-copy-grid div,
.detail-service-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #f7faf8;
}

.detail-copy-grid span,
.detail-service-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.detail-copy-grid strong,
.detail-service-grid strong {
  color: var(--ink);
  line-height: 1.7;
}

.detail-recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}

.detail-recommend-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: var(--surface);
}

.detail-recommend-card button {
  min-height: 180px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #f6fbff;
}

.detail-recommend-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.detail-recommend-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.detail-recommend-card span {
  color: #0b6fb3;
  font-size: 13px;
  font-weight: 800;
}

.detail-recommend-card h3 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.4;
}

.detail-recommend-card strong {
  color: var(--accent);
  font-size: 20px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.sku-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.sku-row button.active {
  border-color: var(--primary);
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 700;
}

.toast {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(25, 113, 95, 0.26);
  border-radius: 8px;
  background: #edf7f3;
  color: var(--primary-dark);
  font-weight: 700;
}

.cart-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: end;
  padding: 26px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf6ff 0%, #fff 60%, #fff7ef 100%);
}

.cart-hero h1 {
  margin: 10px 0;
  font-size: 38px;
  line-height: 1.15;
}

.cart-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cart-step-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d8e6f0;
  border-radius: 8px;
  background: #d8e6f0;
}

.cart-step-strip span {
  min-height: 58px;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.cart-step-strip span.active {
  background: var(--primary);
  color: #fff;
}

.role-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.role-strip span,
.permission-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(25, 113, 95, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.spec-grid div {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.spec-grid dt {
  color: var(--muted);
}

.spec-grid dd {
  margin: 6px 0 0;
  font-weight: 700;
}

.cart-row,
.order-row,
.admin-row {
  min-height: 82px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child,
.order-row:last-child,
.admin-row:last-child {
  border-bottom: 0;
}

.cart-row {
  grid-template-columns: 80px 1fr auto auto auto auto;
}

.cart-row img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-row h3 {
  margin: 0 0 6px;
}

.cart-row p {
  margin: 0;
  color: var(--muted);
}

.cart-list-panel {
  display: grid;
  gap: 14px;
}

.cart-list-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #d9e6ef;
}

.cart-list-head div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 16px;
  background: #fff;
}

.cart-list-head strong {
  color: #0b6fb3;
  font-size: 24px;
}

.cart-list-head span {
  color: var(--muted);
}

.cart-item-list {
  display: grid;
  gap: 12px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 92px 122px 104px auto;
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 14px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: var(--surface);
}

.cart-item-card img {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  background: #f6fbff;
  object-fit: contain;
}

.cart-item-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cart-item-main h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.45;
}

.cart-item-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.cart-item-price {
  display: grid;
  gap: 4px;
}

.cart-item-price span {
  color: var(--muted);
  font-size: 13px;
}

.cart-item-price strong {
  color: var(--accent);
  font-size: 18px;
}

.cart-item-price del {
  color: var(--muted);
  font-size: 12px;
}

.cart-remove {
  min-width: 64px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  text-align: center;
}

.cart-summary-panel,
.checkout-summary-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.summary-lines {
  display: grid;
  gap: 10px;
}

.summary-lines p,
.summary-panel .summary-lines p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.cart-assurance {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f6fbff;
}

.cart-assurance span {
  color: #0b6fb3;
  font-size: 13px;
  font-weight: 800;
}

.summary-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.checkout-main {
  display: grid;
  gap: 18px;
}

.checkout-section {
  gap: 18px;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form-grid .wide {
  grid-column: 1 / -1;
}

.checkout-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkout-service-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #f6fbff;
}

.checkout-service-grid strong {
  color: #0b6fb3;
}

.checkout-service-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.checkout-item-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.checkout-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.checkout-item h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.45;
}

.checkout-item span {
  color: var(--muted);
  font-size: 13px;
}

.checkout-item strong {
  color: var(--accent);
}

.form-panel {
  display: grid;
  gap: 14px;
}

.form-panel > *,
.filter-strip > * {
  min-width: 0;
}

.form-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.form-panel input,
.form-panel textarea,
.form-panel select,
.coupon-selector select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form-panel textarea {
  min-height: 90px;
  resize: vertical;
}

.payment-page {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 620px;
  margin: 48px auto;
  padding: 40px;
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.payment-shell {
  display: grid;
  gap: 18px;
}

.payment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: end;
  padding: 26px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf6ff 0%, #fff 60%, #fff7ef 100%);
}

.payment-hero h1 {
  margin: 10px 0;
  font-size: 38px;
  line-height: 1.15;
}

.payment-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.payment-card,
.payment-order-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.payment-card {
  justify-items: center;
  text-align: center;
}

.payment-card h2 {
  margin: 0;
  color: var(--accent);
  font-size: 44px;
}

.payment-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.payment-balance-note {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  width: min(100%, 520px);
  padding: 12px 14px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--muted);
  text-align: left;
}

.payment-balance-note strong {
  color: var(--accent);
}

.payment-balance-note small {
  justify-self: end;
}

.payment-balance-note.is-risk {
  border-color: #f0d3bd;
  background: #fff7ef;
}

.payment-balance-note.is-risk small {
  color: var(--danger);
  font-weight: 800;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.payment-order-meta {
  display: grid;
  gap: 10px;
}

.payment-order-meta p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  color: var(--muted);
}

.payment-order-meta strong {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.payment-order-items {
  display: grid;
  gap: 10px;
}

.order-item-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.order-item-preview img,
.order-item-fallback {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.order-item-fallback {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f6fbff;
  color: var(--muted);
}

.order-item-preview strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.order-item-preview span {
  color: var(--muted);
  font-size: 13px;
}

.order-item-preview em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.auth-panel {
  display: grid;
  gap: 18px;
  max-width: 520px;
  margin: 48px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel h1,
.auth-panel p {
  margin: 0;
}

.auth-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-app-shell {
  min-height: 100vh;
  background: #f4f7f6;
}

.admin-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 72px;
  padding: 0 var(--page-side-padding);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.admin-app-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
}

.admin-app-main {
  width: var(--page-shell-width);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.admin-app-main .auth-panel {
  margin-top: 72px;
}

.auth-form {
  border: 0;
  padding: 0;
}

.payment-state-mark {
  display: grid;
  gap: 5px;
  width: min(100%, 360px);
  padding: 16px 18px;
  border: 1px solid #eadbc2;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffaf2, #f8f2e8);
  text-align: left;
}

.payment-state-mark span,
.payment-state-mark small {
  color: var(--muted);
}

.payment-state-mark strong {
  color: var(--accent);
  font-size: 20px;
}

.payment-state-mark.is-paid {
  border-color: #cfe2da;
  background: linear-gradient(135deg, #f2fbf7, #edf6f2);
}

.payment-state-mark.is-paid strong {
  color: var(--primary);
}

.coupon-card {
  padding: 20px;
  border-left: 5px solid var(--gold);
}

.coupon-card strong {
  display: block;
  margin: 10px 0;
  color: var(--accent);
  font-size: 30px;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-dark), #0b6fb3);
  color: #fff;
}

.member-header h1,
.member-header p {
  margin: 0;
}

.member-header p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.member-header .eyebrow {
  color: #d7f4ff;
}

.member-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.member-header-actions button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.member-header-actions button:first-child {
  border-color: #fff;
  background: #fff;
  color: var(--primary-dark);
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.member-dashboard-grid article {
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.member-dashboard-grid span {
  color: var(--muted);
  font-weight: 800;
}

.member-dashboard-grid strong {
  color: #0b6fb3;
  font-size: 30px;
}

.member-dashboard-grid small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-content,
.member-content {
  min-width: 0;
}

.admin-section,
.admin-product-layout > * {
  min-width: 0;
}

.member-section {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.balance-recharge-panel .section-title > strong {
  color: var(--accent);
  font-size: 24px;
}

.balance-recharge-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.balance-wallet-card,
.balance-recharge-form,
.balance-withdraw-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.balance-wallet-card span,
.balance-wallet-card small {
  color: var(--muted);
}

.balance-wallet-card strong {
  color: var(--accent);
  font-size: 34px;
}

.balance-recharge-form label,
.balance-withdraw-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.balance-withdraw-form small {
  color: var(--muted);
  line-height: 1.6;
}

.recharge-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.recharge-methods {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.recharge-methods > strong {
  color: var(--ink);
  font-weight: 600;
}

.recharge-methods > small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.recharge-methods legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.recharge-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.balance-recharge-form .recharge-method-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.recharge-method-option:has(input:checked) {
  border-color: var(--accent);
  background: #f2f9ff;
  box-shadow: 0 0 0 1px var(--accent);
}

.recharge-method-option input {
  margin: 0;
  accent-color: var(--accent);
}

.recharge-method-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.recharge-method-option strong {
  color: var(--ink);
}

.recharge-method-option small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.recharge-checkout-link {
  display: inline-flex;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.recharge-checkout-link:hover {
  text-decoration: underline;
}

.withdrawal-record-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.withdrawal-record-list h3 {
  margin: 0;
}

.withdrawal-record-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(140px, 1fr) minmax(80px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.withdrawal-record-row span {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.withdrawal-record-row strong {
  color: var(--accent);
}

.withdrawal-record-row em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.empty-state.compact {
  min-height: 84px;
}

.member-order-list {
  display: grid;
  gap: 14px;
}

.member-order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fdfefe;
}

.member-order-head,
.member-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.member-order-head > div {
  display: grid;
  gap: 6px;
}

.member-order-head strong {
  overflow-wrap: anywhere;
}

.member-order-head small,
.member-order-head span,
.member-order-foot span {
  color: var(--muted);
}

.member-order-head > div:last-child {
  text-align: right;
}

.member-order-head > div:last-child strong {
  color: var(--accent);
  font-size: 24px;
}

.status-pill {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 8px;
  background: #eef3ee;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-pill.warning {
  background: #fff6e6;
  color: #b88732;
}

.status-pill.active {
  background: #e6f4ff;
  color: #0b6fb3;
}

.status-pill.success {
  background: #edf7f3;
  color: var(--primary);
}

.status-pill.danger {
  background: #fff3ea;
  color: var(--accent);
}

.member-order-items {
  display: grid;
  gap: 10px;
}

.member-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.return-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.return-record-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.return-record-card p,
.return-record-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 24px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8ff 0%, #fff 58%, #fff5ec 100%);
}

.admin-hero h1,
.admin-hero p {
  margin: 0;
}

.admin-hero h1 {
  margin-top: 8px;
  font-size: 40px;
  line-height: 1.12;
}

.admin-hero p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.admin-hero-side {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #cfe3f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-hero-side strong {
  color: #0b6fb3;
  font-size: 42px;
  line-height: 1;
}

.admin-hero-side span {
  color: var(--muted);
  font-weight: 800;
}

.admin-quick-nav {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
}

.admin-kpi-grid article {
  min-width: 0;
}

.admin-kpi-grid span,
.admin-workbench-grid span {
  color: var(--muted);
  font-weight: 800;
}

.admin-workbench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-workbench-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.admin-workbench-grid strong {
  color: #0b6fb3;
  font-size: 34px;
  line-height: 1;
}

.admin-workbench-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-trial-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
}

.admin-trial-panel .section-title {
  align-items: center;
}

.trial-score-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid #d9e6ef;
  border-bottom: 1px solid #d9e6ef;
  background: linear-gradient(90deg, #f6fbff 0%, #fbfcf7 100%);
}

.trial-score-strip strong {
  color: #0b6fb3;
  font-size: 34px;
  line-height: 1;
}

.trial-score-strip span {
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.trial-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.trial-check-grid article {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.trial-check-grid article.is-risk {
  border-color: #f0d3bd;
  background: #fff9f4;
}

.trial-check-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.trial-check-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.trial-check-grid strong {
  color: var(--primary);
  font-size: 15px;
}

.trial-check-grid .is-risk strong {
  color: var(--accent);
}

.trial-check-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-member-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.admin-member-profile,
.admin-member-contact,
.admin-member-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.admin-member-profile {
  background: linear-gradient(135deg, #f6fbff 0%, #fff 72%);
}

.admin-member-profile h3,
.admin-member-contact h3,
.admin-member-panel h3 {
  margin: 0;
}

.admin-member-profile h3 {
  font-size: 28px;
}

.admin-member-profile p,
.admin-member-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.admin-member-account-row,
.admin-member-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-member-account-row span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-member-stat-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  background: #dce3dd;
}

.admin-member-stat-grid article {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 16px;
  background: #fff;
}

.admin-member-stat-grid span,
.admin-mini-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-member-stat-grid strong {
  color: #0b6fb3;
  font-size: 24px;
}

.admin-member-panel.wide {
  grid-column: 1 / -1;
}

.admin-mini-list {
  display: grid;
  gap: 8px;
}

.admin-mini-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7faf8;
}

.admin-mini-list strong {
  color: var(--primary-dark);
}

.admin-mini-list small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-member-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-member-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-member-product img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.admin-member-product strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.admin-member-product span,
.admin-member-product em {
  color: var(--muted);
  font-size: 13px;
}

.admin-member-product em {
  grid-column: 1 / -1;
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.admin-product-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.catalog-sync-panel {
  margin-top: 18px;
}

.sync-actions,
.sync-summary,
.sync-change-list {
  display: grid;
  gap: 10px;
}

.sync-actions {
  grid-template-columns: repeat(2, minmax(0, 180px));
}

.sync-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.sync-summary span,
.sync-change-list em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.sync-change-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.member-asset-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}

.compact-form {
  align-content: start;
}

.admin-product-form h3 {
  margin: 0;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.backup-textarea {
  min-height: 220px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.backup-records {
  margin-top: 14px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.permission-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.permission-grid h3,
.permission-grid p {
  margin: 0;
}

.permission-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.permission-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coupon-selector {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
}

.filter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-strip label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.filter-strip input,
.filter-strip select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.filter-strip button {
  align-self: end;
}

.admin-card-list,
.admin-order-items {
  display: grid;
  gap: 14px;
}

.admin-detail-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #cfe3f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
}

.admin-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-detail-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-detail-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 68px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.admin-detail-grid .wide {
  grid-column: span 2;
}

.admin-detail-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-detail-grid strong {
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-detail-items,
.admin-return-log-list {
  display: grid;
  gap: 10px;
}

.admin-return-log-list div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.admin-return-log-list span,
.admin-return-log-list small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-detail-code {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #17211b;
  color: #eef3ee;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.admin-handle-panel,
.admin-handle-split {
  min-width: 0;
}

.admin-handle-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dceadf;
  border-radius: 8px;
  background: #f7faf8;
}

.admin-handle-panel.danger {
  border-color: #f0d7c8;
  background: #fff7f1;
}

.admin-handle-panel h4,
.admin-handle-panel p {
  margin: 0;
}

.admin-handle-panel h4 {
  font-size: 20px;
}

.admin-handle-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-handle-grid,
.admin-handle-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-handle-panel label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-handle-panel input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.admin-payment-grid,
.admin-return-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-order-card,
.admin-payment-card,
.admin-return-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.admin-order-card {
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.admin-card-head,
.admin-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.admin-card-head {
  align-items: flex-start;
}

.admin-card-foot {
  align-items: center;
}

.admin-card-head > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-card-head strong,
.admin-detail-list span,
.admin-buyer-grid span,
.admin-tag-row span {
  overflow-wrap: anywhere;
}

.admin-card-head small,
.admin-card-amount span {
  color: var(--muted);
}

.admin-card-amount {
  display: grid;
  gap: 4px;
  min-width: 118px;
  text-align: right;
}

.admin-card-amount strong {
  color: var(--accent);
  font-size: 26px;
}

.admin-buyer-grid,
.admin-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-buyer-grid span,
.admin-detail-list span {
  min-height: 42px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f6fbff;
  color: var(--muted);
  line-height: 1.5;
}

.admin-buyer-grid span:last-child {
  grid-column: 1 / -1;
}

.admin-detail-list b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.admin-tag-row,
.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.admin-tag-row span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef3ee;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-action-row {
  justify-content: flex-end;
}

.admin-return-timeline {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #f7faf8;
}

.admin-return-timeline span {
  color: var(--primary-dark);
  font-weight: 800;
}

.admin-return-timeline small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-section .section-title h2 {
  margin: 0;
}

.coupon-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.mini-product {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-product img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-product span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.mini-coupon {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
}

.mini-coupon.used {
  opacity: 0.56;
  border-left-color: var(--line);
}

.mini-coupon span {
  color: var(--primary);
  font-weight: 700;
}

.metric-grid {
  margin-bottom: 24px;
}

.metric-grid article {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(84px, 0.7fr) minmax(100px, 0.9fr) minmax(82px, 0.7fr) auto auto;
  min-width: min(980px, 100%);
}

.admin-row.log-row {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.7fr) minmax(0, 1fr) minmax(90px, 0.9fr) auto;
}

.admin-row.backup-row {
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.9fr) minmax(0, 1.5fr) minmax(82px, 0.6fr) auto;
}

.admin-row > *,
.order-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr auto;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1440px) {
  :root {
    --page-shell-width: min(1360px, calc(100vw - 48px));
    --page-side-padding: max(24px, calc((100vw - 1360px) / 2));
  }
}

@media (min-width: 1720px) {
  :root {
    --page-shell-width: min(1520px, calc(100vw - 64px));
    --page-side-padding: max(32px, calc((100vw - 1520px) / 2));
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: 28px;
  }

  .home-grand-hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    gap: 28px;
    min-height: 560px;
  }

  .home-grand-copy h1 {
    font-size: 56px;
  }

  .home-stage-lead {
    min-height: 470px;
  }

  .home-stage-lead img {
    height: 280px;
  }

  .storefront-home {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .home-deal-panel {
    grid-column: 1 / -1;
  }

  .home-deal-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }

  .haier-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 22px;
  }

  .haier-hero-copy h1,
  .hero-copy h1,
  .page-head h1,
  .detail-info h1 {
    font-size: 48px;
  }

  .detail-layout {
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  }

  .cart-item-card {
    grid-template-columns: 96px minmax(0, 1fr) 90px 116px;
  }

  .cart-item-card .cart-remove {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 960px) {
  .site-header {
    position: static;
  }

  .topbar,
  .hero,
  .home-grand-hero-inner,
  .home-grand-stage,
  .storefront-home,
  .home-hero-board,
  .catalog-hero,
  .cart-hero,
  .payment-hero,
  .payment-layout,
  .haier-hero,
  .haier-floor,
  .detail-content-grid,
  .catalog-layout,
  .cart-layout,
  .checkout-grid,
  .member-layout,
  .admin-layout,
  .admin-hero,
  .admin-member-layout,
  .admin-product-layout,
  .backup-grid,
  .member-asset-layout,
  .balance-recharge-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 12px 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: stretch;
  }

  .search-box {
    flex: 1;
  }

  .hero {
    min-height: auto;
  }

  .home-grand-hero {
    padding-top: 30px;
  }

  .home-grand-hero-inner {
    min-height: auto;
  }

  .home-grand-copy h1 {
    font-size: 52px;
  }

  .home-stage-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-rank-panel {
    grid-column: 1 / -1;
  }

  .home-grand-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-category-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-hero-products {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  }

  .catalog-filter {
    position: static;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-tabs {
    justify-content: flex-start;
  }

  .cart-summary-panel,
  .checkout-summary-panel {
    position: static;
  }

  .cart-item-card {
    grid-template-columns: 96px minmax(0, 1fr) 90px;
  }

  .cart-item-card .quantity-control,
  .cart-item-card .cart-remove {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .checkout-service-grid {
    grid-template-columns: 1fr;
  }

  .sync-actions,
  .sync-change-list div {
    grid-template-columns: 1fr;
  }

  .member-order-head,
  .member-order-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-order-head > div:last-child {
    text-align: left;
  }

  .haier-hero {
    min-height: auto;
    padding: 24px;
  }

  .haier-hero-stage {
    min-height: 420px;
  }

  .hero-panel img,
  .detail-image {
    height: 340px;
  }

  .product-grid,
  .home-product-grid,
  .home-scene-grid,
  .detail-recommend-grid,
  .haier-category-grid,
  .haier-service-strip,
  .floor-products,
  .activity-grid,
  .admin-workbench-grid,
  .trial-check-grid,
  .admin-member-stat-grid,
  .admin-member-product-grid,
  .category-grid,
  .coupon-grid,
  .coupon-record-grid,
  .asset-grid,
  .filter-strip,
  .permission-grid,
  .member-dashboard-grid,
  .return-record-grid,
  .metric-grid,
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .activity-card strong,
  .activity-actions {
    grid-column: 1 / -1;
  }

  .activity-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-row,
  .admin-row,
  .admin-row.log-row,
  .admin-row.backup-row,
  .order-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .section-title,
  .page-head.compact,
  .member-header,
  .admin-app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-app-header,
  .admin-app-header > div,
  .member-header {
    gap: 10px;
  }

  .member-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .member-header-actions button {
    flex: 1;
  }

  .catalog-summary,
  .payment-order-meta p,
  .summary-lines p,
  .summary-panel .summary-lines p {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .home-grand-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-category-overview,
  .home-category-all {
    grid-column: 1 / -1;
  }

  .home-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-item-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item-card img {
    width: 84px;
    height: 84px;
  }

  .cart-item-price,
  .cart-item-card .quantity-control,
  .cart-item-card .cart-remove {
    grid-column: 1 / -1;
  }

  .cart-item-card .quantity-control,
  .cart-item-card .cart-remove {
    width: 100%;
  }

  .mini-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .mini-product img {
    width: 64px;
    height: 64px;
  }

  .mini-product button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .payment-page {
    margin: 24px auto;
    padding: 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-shell-width: calc(100vw - 20px);
    --page-side-padding: 10px;
  }

  main,
  .topbar,
  .admin-app-main {
    width: var(--page-shell-width);
  }

  .topbar {
    gap: 8px;
  }

  .admin-app-header {
    padding: 10px;
  }

  .admin-app-header .brand {
    font-size: 17px;
    white-space: nowrap;
  }

  .admin-app-header > div > span {
    display: none;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .main-nav button {
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    font-size: 13px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .header-actions button,
  .cart-link {
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    font-size: 14px;
  }

  .hero-copy h1,
  .haier-hero-copy h1,
  .page-head h1,
  .detail-info h1 {
    font-size: 32px;
  }

  .haier-hero {
    padding: 18px;
  }

  .home-hero-board {
    padding: 18px;
    order: 1;
  }

  .home-grand-hero {
    padding: 22px 10px 26px;
  }

  .home-grand-copy h1 {
    font-size: 38px;
  }

  .home-grand-copy p {
    font-size: 15px;
  }

  .home-grand-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-grand-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-grand-metrics span {
    min-height: 66px;
    padding: 10px;
  }

  .home-grand-metrics strong {
    font-size: 22px;
  }

  .home-stage-lead {
    min-height: auto;
    padding: 18px;
  }

  .home-stage-lead img {
    height: 230px;
  }

  .home-stage-caption h3 {
    font-size: 20px;
  }

  .home-stage-caption strong {
    font-size: 26px;
  }

  .home-stage-side {
    grid-template-columns: 1fr;
  }

  .home-grand-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-category-overview {
    grid-column: 1 / -1;
  }

  .home-hero-copy h1 {
    font-size: 34px;
  }

  .home-category-rail {
    order: 2;
  }

  .home-deal-panel {
    order: 3;
  }

  .home-hero-products,
  .home-hero-side {
    grid-template-columns: 1fr;
  }

  .home-hero-copy p {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .home-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero-metrics span {
    min-height: 62px;
    padding: 10px;
  }

  .home-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-product.large img,
  .home-hero-product img {
    height: 190px;
  }

  .home-deal-item {
    grid-template-columns: 28px 60px minmax(0, 1fr);
  }

  .catalog-hero {
    padding: 18px;
  }

  .catalog-hero h1,
  .cart-hero h1,
  .payment-hero h1 {
    font-size: 30px;
  }

  .cart-hero,
  .payment-hero {
    padding: 18px;
  }

  .catalog-metrics,
  .cart-step-strip,
  .cart-list-head {
    grid-template-columns: 1fr;
  }

  .cart-step-strip span {
    min-height: 48px;
    padding: 14px 10px;
  }

  .cart-item-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item-card img {
    width: 84px;
    height: 84px;
  }

  .cart-item-price,
  .cart-item-card .quantity-control,
  .cart-item-card .cart-remove {
    grid-column: 1 / -1;
  }

  .cart-item-card .quantity-control {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }

  .checkout-form-grid,
  .checkout-item {
    grid-template-columns: 1fr;
  }

  .checkout-form-grid .wide {
    grid-column: auto;
  }

  .checkout-item img {
    width: 100%;
    height: 140px;
  }

  .payment-actions,
  .pay-methods {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .payment-actions button,
  .pay-methods button {
    width: 100%;
  }

  .order-item-preview {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .order-item-preview img,
  .order-item-fallback {
    width: 52px;
    height: 52px;
  }

  .order-item-preview em {
    grid-column: 1 / -1;
  }

  .member-section {
    padding: 16px;
  }

  .member-content {
    order: 1;
  }

  .member-sidebar {
    order: 2;
  }

  .sort-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .sort-tabs button {
    min-width: 0;
    padding: 0 8px;
  }

  .haier-hero-stage {
    min-height: auto;
  }

  .hero-appliance {
    position: static;
    width: 100%;
    margin-bottom: 12px;
  }

  .haier-hero-meter {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 4px;
  }

  .product-grid,
  .home-product-grid,
  .home-scene-grid,
  .detail-recommend-grid,
  .haier-category-grid,
  .haier-service-strip,
  .floor-products,
  .activity-grid,
  .category-grid,
  .coupon-grid,
  .admin-workbench-grid,
  .trial-check-grid,
  .admin-payment-grid,
  .admin-return-grid,
  .admin-buyer-grid,
  .admin-detail-list,
  .admin-detail-grid,
  .admin-handle-grid,
  .admin-handle-split,
  .admin-member-layout,
  .admin-member-stat-grid,
  .admin-member-product-grid,
  .asset-grid,
  .filter-strip,
  .permission-grid,
  .member-dashboard-grid,
  .return-record-grid,
  .hero-stats,
  .metric-grid,
  .status-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .activity-actions {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 14px;
    padding: 12px;
  }

  .detail-image {
    height: 320px;
  }

  .detail-buy-panel {
    padding: 16px;
  }

  .detail-buy-panel h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  .detail-service-row,
  .detail-price-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-price-panel strong,
  .detail-price-panel del {
    grid-column: 1 / -1;
  }

  .admin-hero {
    padding: 18px;
  }

  .admin-content {
    order: 1;
  }

  .admin-sidebar {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .admin-sidebar h2 {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    font-size: 20px;
  }

  .admin-sidebar button {
    min-height: 38px;
    margin: 0;
    padding: 0 8px;
    text-align: center;
  }

  .admin-hero h1 {
    font-size: 30px;
  }

  .trial-score-strip {
    grid-template-columns: 1fr;
  }

  .admin-card-head,
  .admin-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-card-amount {
    min-width: 0;
    text-align: left;
  }

  .admin-action-row {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-action-row button {
    flex: 1 1 120px;
  }

  .admin-detail-head {
    flex-direction: column;
  }

  .admin-detail-head button {
    width: 100%;
  }

  .admin-detail-grid .wide {
    grid-column: auto;
  }
}

/* Commercial storefront redesign */
:root {
  --bg: #f3f6f8;
  --surface-soft: #eef6f3;
  --ink: #14201b;
  --muted: #5d6d68;
  --line: #d8e2df;
  --primary: #126b5a;
  --primary-dark: #0a453a;
  --accent: #d6532a;
  --gold: #b5852f;
  --shadow: 0 18px 44px rgba(19, 38, 32, 0.1);
}

.site-header {
  border-bottom: 1px solid rgba(216, 226, 223, 0.96);
  box-shadow: 0 10px 28px rgba(17, 37, 31, 0.06);
}

.topbar {
  min-height: 78px;
}

.brand {
  color: #102720;
}

.brand-mark {
  background: linear-gradient(135deg, #126b5a, #0d7ca6);
}

.main-nav {
  width: fit-content;
  justify-self: center;
  padding: 5px;
  border: 1px solid #dbe7e4;
  border-radius: 8px;
  background: #f4f8f7;
}

.main-nav button,
.cart-link {
  min-height: 34px;
  border-radius: 8px;
}

.main-nav button.active,
.cart-link.active {
  background: #e5f3ee;
}

.search-box {
  min-width: 238px;
  border-color: #d8e2df;
  background: #f9fbfa;
}

.search-box span {
  white-space: nowrap;
  overflow-wrap: normal;
}

.home-grand-hero {
  margin-top: -28px;
  padding: 50px 0 30px;
  border-bottom-color: #d8e5e7;
  background:
    linear-gradient(120deg, #f7fbff 0%, #eef7f2 50%, #fff1e7 100%),
    #f7fbff;
}

.home-grand-hero-inner {
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 48px;
  min-height: 630px;
}

.home-grand-copy h1 {
  max-width: 720px;
  color: #112b42;
  font-size: 66px;
}

.home-grand-copy p {
  max-width: 660px;
  color: #526a70;
}

.home-grand-copy .hero-actions .primary,
.card-actions .primary,
.detail-buy-panel .hero-actions .primary {
  border-color: #d6532a;
  background: #d6532a;
}

.home-hero-condition {
  display: grid;
  gap: 6px;
  max-width: 620px;
  padding: 16px;
  border: 1px solid rgba(214, 83, 42, 0.2);
  border-radius: 8px;
  background: #fff8f3;
}

.home-hero-condition strong {
  color: #d6532a;
  font-size: 32px;
  line-height: 1;
}

.home-hero-condition span {
  color: #5d6d68;
  line-height: 1.55;
}

.home-stage-lead,
.home-stage-mini,
.home-rank-panel {
  border-color: rgba(116, 151, 160, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 46px rgba(22, 54, 65, 0.1);
}

.home-stage-lead {
  padding: 28px;
}

.home-stage-label,
.home-stage-mini span {
  background: #eaf5f1;
  color: #126b5a;
}

.home-stage-offer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.home-stage-offer span,
.home-stage-mini small,
.home-deal-item small,
.home-product-card small {
  color: #6a7773;
  font-size: 12px;
  font-weight: 700;
}

.catalog-commerce-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  background: #d7e3df;
}

.catalog-commerce-strip span {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 15px;
  background: #fff;
}

.catalog-commerce-strip span {
  color: #6a7773;
  font-size: 13px;
}

.home-assurance-strip {
  border-color: #d7e3df;
  background: #d7e3df;
}

.home-product-card,
.floor-product,
.detail-recommend-card,
.catalog-product-grid .product-card {
  border-color: #d7e3df;
  box-shadow: 0 12px 28px rgba(18, 43, 36, 0.06);
}

.home-product-card {
  min-height: 408px;
}

.home-product-image,
.floor-product button,
.catalog-product-grid .product-image,
.detail-recommend-card button {
  background: linear-gradient(180deg, #f8fbfc, #eef6f3);
}

.home-product-card div,
.floor-product div,
.detail-recommend-card div {
  align-content: start;
}

.commercial-card-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 !important;
}

.commercial-card-tags em {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf6f2;
  color: #126b5a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.card-commerce-head,
.commercial-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-commerce-head span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff2ea;
  color: #d6532a;
  font-size: 12px;
  font-weight: 800;
}

.card-commerce-head small,
.commercial-card-meta span {
  color: #687772;
  font-size: 12px;
  font-weight: 700;
}

.catalog-hero,
.cart-hero,
.payment-hero {
  border-color: #d7e3df;
  background: linear-gradient(135deg, #ecf8f4 0%, #fff 58%, #fff4ed 100%);
}

.catalog-commerce-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.catalog-commerce-strip span {
  align-content: center;
  min-height: 58px;
  color: #126b5a;
  font-weight: 800;
}

.catalog-toolbar,
.filter-panel,
.summary-panel,
.form-panel,
.detail-section {
  border-color: #d7e3df;
  box-shadow: 0 10px 26px rgba(18, 43, 36, 0.05);
}

.catalog-filter-note,
.detail-copy-grid div,
.detail-service-grid div,
.spec-grid div {
  background: #f4f9f7;
}

.catalog-product-grid .product-card {
  min-height: 520px;
}

.catalog-product-grid .product-body {
  align-content: start;
}

.catalog-product-grid .price-row {
  padding: 10px 0 2px;
  border-top: 1px solid #edf1ef;
}

.price-row strong,
.detail-price-panel strong,
.home-product-card strong,
.floor-product span,
.detail-recommend-card strong {
  color: #d6532a;
}

.detail-layout.product-detail-hero {
  grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1.12fr);
  gap: 26px;
  border-color: #d7e3df;
  background: linear-gradient(135deg, #f8fbfc 0%, #fff 62%, #fff4ed 100%);
  box-shadow: 0 18px 42px rgba(18, 43, 36, 0.08);
}

.clean-detail-summary {
  position: sticky;
  top: 96px;
}

.clean-detail-image {
  border-color: #d7e3df;
  background: linear-gradient(145deg, #fff 0%, #eef7f3 100%);
}

.detail-price-panel {
  border: 1px solid rgba(214, 83, 42, 0.16);
  background: #fff5ee;
}

.detail-commercial-conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-commercial-conditions div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid #dbe7e4;
  border-radius: 8px;
  background: #f8fbfa;
}

.detail-commercial-conditions span {
  color: #6a7773;
  font-size: 12px;
  font-weight: 700;
}

.detail-commercial-conditions strong {
  color: #14201b;
  line-height: 1.45;
}

.detail-checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  background: #d7e3df;
}

.detail-checkout-steps span {
  min-height: 42px;
  padding: 12px 8px;
  background: #fff;
  color: #126b5a;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.clean-selling-grid article,
.clean-variant-row article,
.clean-graphic-stack figure {
  border-color: #d7e3df;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 43, 36, 0.05);
}

@media (max-width: 1180px) {
  .home-grand-hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  }

  .home-grand-copy h1 {
    font-size: 56px;
  }
}

@media (max-width: 960px) {
  .main-nav {
    justify-self: start;
  }

  .home-grand-hero-inner,
  .detail-layout.product-detail-hero {
    grid-template-columns: 1fr;
  }

  .catalog-commerce-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clean-detail-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .search-box {
    min-width: 0;
  }

  .home-grand-copy h1 {
    font-size: 38px;
  }

  .home-hero-condition strong {
    font-size: 26px;
  }

  .home-stage-offer,
  .card-commerce-head,
  .commercial-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-commerce-strip,
  .detail-commercial-conditions,
  .detail-checkout-steps {
    grid-template-columns: 1fr;
  }

  .detail-layout.product-detail-hero,
  .clean-detail-gallery,
  .clean-detail-summary {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .clean-detail-summary h1,
  .detail-buy-panel h1 {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .catalog-product-grid .product-card {
    min-height: auto;
  }
}

@media (max-width: 360px) {
  .main-nav,
  .header-actions,
  .admin-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Storefront redesign */
body {
  background: #f5f7f7;
}

.site-header {
  border-bottom-color: rgba(218, 228, 225, 0.86);
  box-shadow: 0 8px 28px rgba(24, 41, 36, 0.04);
}

.brand-mark {
  background: #0d7f7a;
}

.home-grand-hero {
  padding: 44px 0 28px;
  border-bottom-color: #dce8e5;
  background:
    linear-gradient(125deg, #f8fbfb 0%, #edf7f4 55%, #fff4ee 100%),
    #f8fbfb;
}

.home-grand-hero-inner {
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 1.22fr);
  gap: 36px;
  min-height: 590px;
}

.home-grand-copy h1 {
  max-width: 620px;
  color: #102923;
  font-size: 58px;
  line-height: 1.08;
}

.home-grand-copy p {
  max-width: 560px;
  color: #576965;
  font-size: 16px;
}

.home-stage-lead,
.home-stage-mini,
.home-rank-panel,
.home-category-chip,
.home-category-overview,
.home-product-card,
.floor-product,
.catalog-product-grid .product-card,
.detail-recommend-card {
  border-color: #dbe7e4;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(20, 42, 37, 0.06);
}

.home-stage-lead {
  gap: 16px;
  min-height: 520px;
  padding: 22px 24px;
}

.home-stage-lead img {
  height: 295px;
  margin: 6px auto 0;
}

.home-stage-caption h3 {
  font-size: 23px;
}

.home-stage-caption p,
.home-product-card p,
.catalog-product-grid .product-body p {
  color: #5d6d69;
}

.home-hero-condition span,
.catalog-hero p,
.cart-hero p,
.payment-hero p,
.home-stage-caption h3,
.home-stage-caption p,
.home-product-card h3,
.catalog-product-grid .product-body h3,
.catalog-product-grid .product-body p,
.detail-lead {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-hero-condition span {
  display: block;
  min-width: 0;
  word-break: break-all;
}

.home-category-all {
  border-color: #0b7069;
  background: #0b7069;
}

.home-category-all span,
.home-category-all small {
  color: #fff;
}

.home-grand-metrics,
.cart-step-strip,
.catalog-commerce-strip,
.detail-checkout-steps {
  border-color: #dbe7e4;
  background: #dbe7e4;
}

.home-grand-metrics strong,
.catalog-metrics strong,
.cart-list-head strong,
.home-category-overview strong {
  color: #0b7069;
}

.home-hero-condition,
.detail-price-panel {
  border-color: rgba(217, 79, 43, 0.18);
  background: #fff6f1;
}

.home-hero-condition strong,
.price-row strong,
.detail-price-panel strong,
.home-product-card strong,
.floor-product span,
.detail-recommend-card strong {
  color: #d94f2b;
}

.home-assurance-strip article,
.catalog-commerce-strip span,
.cart-list-head div {
  background: rgba(255, 255, 255, 0.96);
}

.home-product-image,
.floor-product button,
.catalog-product-grid .product-image,
.detail-recommend-card button {
  background:
    linear-gradient(180deg, #fbfdfd 0%, #edf6f3 100%);
}

.catalog-hero,
.cart-hero,
.payment-hero,
.detail-layout.product-detail-hero {
  border-color: #dbe7e4;
  background:
    linear-gradient(135deg, #f8fbfb 0%, #ffffff 62%, #fff5ef 100%);
  box-shadow: 0 16px 36px rgba(20, 42, 37, 0.06);
}

.catalog-toolbar,
.filter-panel,
.summary-panel,
.form-panel,
.detail-section {
  border-color: #dbe7e4;
  box-shadow: 0 10px 24px rgba(20, 42, 37, 0.04);
}

.card-commerce-head span,
.commercial-card-tags em {
  background: #edf7f4;
  color: #0b7069;
}

.commercial-card-meta {
  color: #5e706b;
}

.commercial-card-meta span {
  white-space: nowrap;
}

.catalog-filter-note,
.cart-assurance,
.checkout-service-grid div,
.detail-commercial-conditions div,
.spec-grid div {
  background: #f6faf8;
}

.detail-checkout-steps span,
.cart-assurance span,
.catalog-commerce-strip span {
  color: #0b7069;
}

.detail-layout.product-detail-hero {
  padding: 22px;
}

.detail-price-panel small {
  color: #8b5c47;
}

.detail-mobile-buy-bar {
  display: none;
}

@media (max-width: 1180px) {
  .home-grand-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-grand-copy h1 {
    font-size: 48px;
  }
}

@media (max-width: 560px) {
  .home-grand-hero {
    padding-top: 28px;
  }

  .home-grand-copy h1 {
    font-size: 34px;
  }

  .home-stage-lead {
    min-height: 0;
  }

  .home-stage-lead img {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .recharge-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recharge-method-grid {
    grid-template-columns: 1fr;
  }

  .payment-balance-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-balance-note small {
    justify-self: center;
  }

  .withdrawal-record-row {
    grid-template-columns: 1fr;
  }

  main:has(.detail-mobile-buy-bar) {
    padding-bottom: 150px;
  }

  .detail-mobile-buy-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(219, 231, 228, 0.96);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 30px rgba(20, 42, 37, 0.12);
    backdrop-filter: blur(16px);
  }

  .detail-mobile-buy-bar div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .detail-mobile-buy-bar span {
    color: #5e706b;
    font-size: 12px;
    font-weight: 700;
  }

  .detail-mobile-buy-bar strong {
    color: #d94f2b;
    font-size: 24px;
    line-height: 1.1;
  }

  .detail-mobile-buy-bar button {
    width: 100%;
    max-width: none;
    min-height: 46px;
    border-color: #d94f2b;
    background: #d94f2b;
    font-weight: 800;
    white-space: nowrap;
  }
}

/* Showroom UI refresh: selected Product Design direction 2 */
:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #f7f8f8;
  --ink: #20242a;
  --muted: #6d747d;
  --line: #e4e7ea;
  --primary: #0b4f9f;
  --primary-dark: #07356f;
  --accent: #c98c35;
  --accent-dark: #a97024;
  --price: #d94f2b;
  --graphite: #2d2f31;
  --graphite-soft: #3a3d40;
  --shadow: 0 18px 44px rgba(34, 39, 45, 0.08);
  --page-shell-width: min(1408px, calc(100vw - 32px));
}

body {
  background: #f4f6f7;
  color: var(--ink);
}

button {
  border-color: var(--line);
  border-radius: 8px;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

button.primary,
.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.site-header {
  border-bottom-color: rgba(228, 231, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
}

.topbar {
  grid-template-columns: minmax(230px, auto) minmax(320px, 1fr) auto;
  gap: 30px;
  min-height: 78px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: auto;
  min-width: 96px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  color: #111820;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.main-nav {
  justify-content: flex-start;
}

.main-nav button {
  position: relative;
  min-height: 46px;
  padding: 0 18px;
  color: #15191f;
  font-weight: 750;
}

.main-nav button.active::after {
  position: absolute;
  right: 18px;
  bottom: 4px;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.main-nav button.active,
.cart-link.active {
  color: #111820;
}

.main-nav button.active {
  background: transparent;
}

.header-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.search-box {
  min-width: min(360px, 30vw);
  min-height: 46px;
  border-color: #dde1e5;
  border-radius: 999px;
  background: #f8f9fa;
}

.search-box span {
  color: #4d535a;
  font-weight: 700;
}

.cart-link {
  position: relative;
  display: inline-flex;
  gap: 8px;
  min-height: 46px;
  color: #15191f;
  font-weight: 750;
}

.cart-link strong {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.member-entry {
  border: 0;
  background: transparent;
  color: #15191f;
  font-weight: 750;
  white-space: nowrap;
}

main {
  padding-top: 24px;
}

.showroom-home {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 294px;
  gap: 16px;
  align-items: start;
}

.showroom-category-rail,
.showroom-cart-panel {
  position: sticky;
  top: 98px;
}

.showroom-category-rail {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #2a2d30, #3b3d40);
  box-shadow: var(--shadow);
}

.showroom-rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  color: #fff;
}

.showroom-rail-title span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.showroom-category-rail button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  padding: 14px 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.showroom-category-rail button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.showroom-category-rail button span {
  font-size: 16px;
  font-weight: 800;
}

.showroom-category-rail button small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

.showroom-main {
  display: grid;
  gap: 16px;
}

.showroom-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 426px;
  overflow: hidden;
  border: 1px solid rgba(228, 231, 234, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0.04) 62%),
    url("/assets/ui/showroom-hero-living-room.png") center right / cover no-repeat,
    #f5f3ee;
  box-shadow: var(--shadow);
}

.showroom-hero-copy {
  display: grid;
  gap: 18px;
  width: min(560px, 58%);
  padding: 52px;
}

.showroom-hero-copy h1 {
  margin: 0;
  color: #20242a;
  font-size: 56px;
  line-height: 1.08;
}

.showroom-hero-copy p {
  margin: 0;
  color: #4d555e;
  font-size: 16px;
  line-height: 1.9;
}

.showroom-trust-row,
.showroom-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showroom-trust-row span {
  padding: 6px 12px;
  border: 1px solid rgba(201, 140, 53, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #78501e;
  font-size: 13px;
  font-weight: 800;
}

.showroom-hero .hero-actions button {
  min-height: 44px;
  padding: 0 22px;
}

.showroom-coupon-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.showroom-coupon-ticket,
.showroom-campaign-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-height: 76px;
  padding: 12px 100px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 140, 53, 0.26);
  border-radius: 8px;
  background: linear-gradient(105deg, #fff 0%, #fffaf3 100%);
}

.showroom-coupon-ticket strong {
  min-width: 0;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.showroom-coupon-ticket div {
  min-width: 0;
}

.showroom-coupon-ticket span,
.showroom-campaign-card strong {
  color: #2a2f36;
  font-weight: 850;
  overflow-wrap: normal;
  word-break: keep-all;
}

.showroom-coupon-ticket small,
.showroom-campaign-card span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showroom-coupon-ticket button,
.showroom-campaign-card button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 78px;
  min-height: 34px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  overflow-wrap: normal;
  text-align: right;
  white-space: nowrap;
}

.showroom-campaign-card {
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(112deg, #fff8ed 0%, #f2e1c5 100%);
}

.showroom-campaign-card span {
  grid-column: 1 / 2;
}

.showroom-campaign-card button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.showroom-product-block,
.section-shell,
.page-head,
.cart-hero,
.payment-hero,
.member-header,
.admin-hero {
  border-radius: 8px;
}

.showroom-product-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(34, 39, 45, 0.04);
}

.showroom-product-block .section-title {
  align-items: center;
}

.showroom-product-block .section-title button {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
}

.showroom-category-tabs button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #565d65;
  font-weight: 800;
}

.showroom-category-tabs button.active,
.showroom-category-tabs button:hover {
  background: #f4eadb;
  color: var(--accent-dark);
}

.showroom-products {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.home-product-card {
  min-height: 338px;
  border-color: #e6e8eb;
  box-shadow: none;
}

.home-product-image {
  min-height: 164px;
  background: #f8f9fa;
}

.home-product-image img {
  height: 142px;
}

.home-product-card div {
  gap: 7px;
  padding: 14px;
}

.home-product-card span {
  color: #5b7e87;
}

.home-product-card h3 {
  min-height: 42px;
  font-size: 14px;
}

.home-product-card p,
.home-product-card small {
  color: #737a82;
  font-size: 12px;
}

.home-product-card strong {
  color: var(--price);
  font-size: 20px;
}

.home-add-cart {
  min-height: 34px;
  margin-top: 2px;
  border-color: rgba(201, 140, 53, 0.3);
  background: #fffaf3;
  color: var(--accent-dark);
  font-weight: 800;
}

.showroom-cart-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.showroom-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.showroom-panel-head strong {
  font-size: 19px;
}

.showroom-panel-head button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
}

.showroom-cart-list {
  display: grid;
  gap: 12px;
}

.showroom-cart-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.showroom-cart-list img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #f6f7f8;
  object-fit: contain;
}

.showroom-cart-list article strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.45;
}

.showroom-cart-list article span,
.showroom-cart-empty {
  color: var(--muted);
  font-size: 13px;
}

.showroom-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.showroom-cart-total span {
  color: var(--muted);
}

.showroom-cart-total strong {
  color: var(--price);
  font-size: 24px;
}

.home-assurance-strip {
  margin-top: 0;
  border-color: #e7e2d8;
  background: #e7e2d8;
}

.home-assurance-strip article {
  min-height: 70px;
  background: #fbfbfa;
}

.home-assurance-strip strong {
  color: #2f373f;
}

.home-scene-card,
.floor-product,
.product-card,
.coupon-card,
.summary-panel,
.form-panel,
.filter-panel,
.member-sidebar,
.admin-sidebar,
.table-card,
.member-section,
.member-order-card {
  border-color: #e5e8eb;
  box-shadow: 0 10px 26px rgba(34, 39, 45, 0.035);
}

.home-scene-card {
  background: linear-gradient(135deg, #fff, #f6f8f8);
}

.home-scene-card span,
.catalog-metrics strong,
.catalog-chip-row span {
  color: var(--primary);
}

.haier-floor {
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #fff;
}

.floor-lead {
  border-radius: 8px 0 0 8px;
  background: linear-gradient(135deg, #2b2f34 0%, #566068 58%, #c98c35 100%);
}

.floor-lead button {
  color: #2b2f34;
}

.catalog-hero,
.cart-hero,
.payment-hero,
.page-head {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #f7f8f8 64%, #fff7ed 100%);
  box-shadow: 0 10px 28px rgba(34, 39, 45, 0.04);
}

.catalog-filter {
  overflow: hidden;
  border-color: transparent;
  background: linear-gradient(180deg, #2c2f32, #3a3d40);
  color: #fff;
}

.catalog-filter h2 {
  color: #fff;
}

.catalog-filter button {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

.catalog-filter button:hover,
.catalog-filter button.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.catalog-filter button small,
.catalog-filter-note {
  color: rgba(255, 255, 255, 0.66);
}

.catalog-filter-note {
  background: rgba(255, 255, 255, 0.08);
}

.catalog-filter-note strong {
  color: #f0c989;
}

.catalog-product-grid .product-card,
.home-product-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.catalog-product-grid .product-card:hover,
.home-product-card:hover {
  border-color: rgba(201, 140, 53, 0.38);
  box-shadow: 0 16px 34px rgba(34, 39, 45, 0.08);
  transform: translateY(-2px);
}

.catalog-product-grid .product-image,
.product-image,
.floor-product button {
  background: #f7f8f8;
}

.price-row strong,
.detail-price,
.summary-total,
.cart-item-price strong,
.checkout-item strong,
.member-order-head > div:last-child strong {
  color: var(--price);
}

.badge-row span {
  background: #f3eadb;
  color: #8c6329;
}

.commercial-card-tags em {
  color: #607078;
}

.cart-step-strip {
  background: #eee6da;
}

.cart-step-strip span {
  background: #fff;
}

.cart-step-strip span.active {
  background: var(--accent);
  color: #fff;
}

.cart-summary-panel,
.checkout-summary-panel {
  position: sticky;
  top: 98px;
  align-self: start;
}

.summary-panel .primary,
.checkout-summary-panel .primary,
.cart-summary-panel .primary {
  min-height: 46px;
}

.member-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
}

.member-sidebar button:first-of-type,
.member-sidebar button:hover {
  border-color: transparent;
  background: #f4eadb;
  color: var(--accent-dark);
}

.member-header {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #f6f8f8 70%, #fff4e4 100%);
  color: var(--ink);
}

.member-header h1,
.member-header p,
.member-header .eyebrow {
  color: var(--ink);
}

.member-header p {
  color: var(--muted);
}

.member-header-actions button {
  border-color: var(--line);
  background: #fff;
  color: var(--primary);
}

.member-header-actions button:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.member-dashboard-grid article {
  background: #fff;
}

@media (max-width: 1280px) {
  .showroom-home {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .showroom-cart-panel {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .showroom-cart-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showroom-coupon-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showroom-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .topbar,
  .showroom-home,
  .showroom-cart-panel,
  .showroom-coupon-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 12px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .search-box {
    min-width: 100%;
  }

  .showroom-category-rail,
  .showroom-cart-panel,
  .cart-summary-panel,
  .checkout-summary-panel,
  .member-sidebar {
    position: static;
  }

  .showroom-main {
    order: -2;
  }

  .showroom-category-rail {
    order: -1;
  }

  .showroom-category-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showroom-rail-title {
    grid-column: 1 / -1;
  }

  .showroom-hero-copy {
    width: min(620px, 100%);
    padding: 34px;
  }

  .showroom-hero-copy h1 {
    font-size: 44px;
  }

  .showroom-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand-mark {
    min-width: 54px;
    font-size: 24px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    display: none;
  }

  .main-nav button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .showroom-category-rail,
  .showroom-products,
  .showroom-cart-list {
    grid-template-columns: 1fr;
  }

  .showroom-hero {
    min-height: 460px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 52%, rgba(255, 255, 255, 0.28) 100%),
      url("/assets/ui/showroom-hero-living-room.png") 64% bottom / auto 100% no-repeat,
      #f5f3ee;
  }

  .showroom-hero-copy {
    padding: 24px;
  }

  .showroom-hero-copy h1 {
    font-size: 36px;
  }

  .showroom-coupon-ticket {
    grid-template-columns: 1fr;
  }

  .showroom-campaign-card,
  .showroom-campaign-card button,
  .showroom-campaign-card span {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Mobile UI refinement: compact commerce shell */
@media (max-width: 620px) {
  :root {
    --page-shell-width: calc(100vw - 16px);
    --page-side-padding: 8px;
  }

  main {
    padding-top: 12px;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .topbar {
    gap: 7px;
    min-height: 0;
    padding: 8px 0 10px;
  }

  .brand {
    min-height: 32px;
    gap: 8px;
    padding: 0 4px;
  }

  .brand-mark {
    min-width: 42px;
    height: 32px;
    font-size: 22px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    padding: 3px;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
  }

  .main-nav button {
    width: 100%;
    min-height: 34px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 12px;
  }

  .main-nav button.active {
    background: #fff;
    box-shadow: 0 6px 14px rgba(30, 40, 48, 0.06);
  }

  .main-nav button.active::after {
    right: 12px;
    bottom: 3px;
    left: 12px;
    height: 2px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 6px;
  }

  .search-box {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 0 12px;
  }

  .search-box span {
    display: none;
  }

  .search-box input {
    font-size: 14px;
  }

  .cart-link,
  .member-entry {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
  }

  .cart-link {
    justify-content: center;
  }

  .member-entry {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .showroom-home,
  .showroom-main {
    gap: 12px;
  }

  .showroom-hero {
    min-height: 392px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.18) 100%),
      url("/assets/ui/showroom-hero-living-room.png") 66% bottom / auto 100% no-repeat,
      #f5f3ee;
  }

  .showroom-hero-copy {
    gap: 12px;
    padding: 22px;
  }

  .showroom-hero-copy h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .showroom-hero-copy p {
    font-size: 14px;
    line-height: 1.72;
  }

  .showroom-trust-row {
    gap: 6px;
  }

  .showroom-trust-row span {
    padding: 5px 9px;
    font-size: 12px;
  }

  .showroom-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .showroom-hero .hero-actions button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .showroom-coupon-row {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    margin-right: -8px;
    padding: 0 8px 4px 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .showroom-coupon-row::-webkit-scrollbar {
    display: none;
  }

  .showroom-coupon-ticket,
  .showroom-campaign-card {
    flex: 0 0 min(286px, 82vw);
    min-height: 92px;
    padding: 12px 92px 12px 14px;
    scroll-snap-align: start;
  }

  .showroom-product-block {
    gap: 12px;
    padding: 12px;
  }

  .showroom-product-block .section-title {
    gap: 8px;
  }

  .showroom-product-block .section-title h2,
  .catalog-hero h1,
  .cart-hero h1,
  .payment-hero h1,
  .member-header h1 {
    font-size: 28px;
  }

  .showroom-category-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .showroom-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .showroom-category-tabs button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .showroom-products,
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .showroom-products .home-product-card,
  .catalog-product-grid .product-card {
    min-height: 0;
    border-radius: 8px;
  }

  .showroom-products .home-product-image {
    min-height: 112px;
  }

  .showroom-products .home-product-image img {
    height: 100px;
  }

  .showroom-products .home-product-card div,
  .catalog-product-grid .product-body {
    gap: 6px;
    padding: 10px;
  }

  .showroom-products .home-product-card h3,
  .catalog-product-grid .product-body h3 {
    min-height: 36px;
    font-size: 13px;
    line-height: 1.4;
  }

  .showroom-products .home-product-card p,
  .catalog-product-grid .product-body p {
    min-height: 0;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .showroom-products .home-product-card strong,
  .catalog-product-grid .price-row strong {
    font-size: 17px;
  }

  .home-add-cart,
  .catalog-product-grid .card-actions button {
    min-height: 32px;
    font-size: 12px;
  }

  .catalog-product-grid .product-image img {
    height: 112px;
  }

  .catalog-product-grid .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .catalog-hero,
  .cart-hero,
  .payment-hero,
  .member-header,
  .section-shell,
  .page-head {
    padding: 16px;
  }

  .catalog-hero p,
  .cart-hero p,
  .payment-hero p {
    font-size: 14px;
    line-height: 1.7;
  }

  .catalog-metrics,
  .cart-step-strip,
  .cart-list-head {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-commerce-strip,
  .detail-checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-metrics span,
  .cart-step-strip span,
  .cart-list-head div,
  .catalog-commerce-strip span,
  .detail-checkout-steps span {
    min-height: 58px;
    padding: 10px 8px;
  }

  .catalog-metrics strong,
  .cart-list-head strong,
  .member-dashboard-grid strong {
    font-size: 22px;
  }

  .catalog-filter,
  .filter-panel,
  .summary-panel,
  .member-section,
  .member-order-card,
  .showroom-cart-panel {
    padding: 14px;
  }

  .catalog-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-filter h2,
  .catalog-filter-note {
    grid-column: 1 / -1;
  }

  .catalog-filter h2 {
    margin: 0 0 2px;
    font-size: 16px;
  }

  .catalog-filter button {
    min-height: 40px;
    padding: 8px 10px;
  }

  .catalog-filter button small {
    font-size: 11px;
  }

  .catalog-filter-note {
    min-height: 0;
    padding: 10px;
    font-size: 12px;
  }

  .member-dashboard-grid,
  .metric-grid,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .member-dashboard-grid article,
  .metric-grid article,
  .status-grid article {
    min-height: 124px;
    padding: 14px;
  }

  .member-dashboard-grid small,
  .metric-grid small,
  .status-grid small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .member-header {
    gap: 12px;
  }

  .member-header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .member-header-actions button {
    width: 100%;
  }
}

@media (max-width: 374px) {
  .showroom-products,
  .catalog-product-grid,
  .member-dashboard-grid,
  .metric-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .showroom-hero .hero-actions,
  .catalog-product-grid .card-actions {
    grid-template-columns: 1fr;
  }
}

/* Mobile purchase-flow optimization */
.mobile-commerce-bar {
  display: none;
}

.detail-mobile-buy-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 8px;
}

@media (max-width: 760px) {
  main:has(.mobile-commerce-bar),
  main:has(.detail-mobile-buy-bar) {
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .mobile-commerce-bar,
  .detail-mobile-buy-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.72fr) minmax(112px, 0.9fr);
    gap: 8px;
    align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(219, 231, 228, 0.96);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -12px 30px rgba(20, 42, 37, 0.13);
    backdrop-filter: blur(16px);
  }

  .detail-mobile-buy-bar {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
  }

  .mobile-commerce-bar div,
  .detail-mobile-buy-bar > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-commerce-bar span,
  .detail-mobile-buy-bar span {
    color: #5e706b;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-commerce-bar strong,
  .detail-mobile-buy-bar strong {
    color: #d94f2b;
    font-size: 23px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .mobile-commerce-bar button,
  .detail-mobile-buy-bar button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-commerce-bar .primary,
  .detail-mobile-buy-bar .primary {
    border-color: #d94f2b;
    background: #d94f2b;
  }

  .detail-mobile-buy-actions {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    min-width: 0;
  }

  .cart-summary-panel .primary,
  .checkout-summary-panel .primary {
    min-height: 48px;
  }
}

@media (max-width: 620px) {
  :root {
    --page-shell-width: calc(100vw - 16px);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  main {
    padding-top: 10px;
  }

  .showroom-home,
  .catalog-layout,
  .cart-layout,
  .checkout-grid,
  .detail-layout.product-detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .showroom-main {
    order: -2;
  }

  .showroom-cart-panel {
    order: -1;
  }

  .showroom-category-rail {
    order: 0;
  }

  .showroom-hero {
    min-height: 340px;
  }

  .showroom-hero-copy {
    max-width: 100%;
    padding: 20px;
  }

  .showroom-hero .hero-actions,
  .detail-buy-panel .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 8px;
  }

  .showroom-products,
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .showroom-products .home-product-card,
  .catalog-product-grid .product-card {
    min-width: 0;
    min-height: 0;
  }

  .showroom-products .home-product-image,
  .catalog-product-grid .product-image {
    min-height: 112px;
    height: auto;
  }

  .showroom-products .home-product-image img,
  .catalog-product-grid .product-image img {
    height: 104px;
  }

  .home-add-cart,
  .catalog-product-grid .card-actions button {
    min-height: 36px;
  }

  .cart-hero,
  .checkout-hero,
  .payment-hero {
    gap: 14px;
    padding: 14px;
  }

  .cart-step-strip,
  .cart-list-head,
  .catalog-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-step-strip span,
  .cart-list-head div {
    min-height: 54px;
    padding: 9px 6px;
    font-size: 12px;
  }

  .cart-item-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .cart-item-card img {
    width: 76px;
    height: 76px;
  }

  .cart-item-main h3 {
    font-size: 15px;
  }

  .cart-item-price {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
  }

  .cart-item-price span {
    min-width: 44px;
  }

  .cart-item-price strong,
  .cart-item-price del {
    justify-self: end;
  }

  .cart-item-card .quantity-control,
  .cart-item-card .cart-remove {
    grid-column: 1 / -1;
  }

  .cart-item-card .quantity-control {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .checkout-form-grid,
  .checkout-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-item img {
    width: 100%;
    height: 132px;
    background: #f7faf8;
  }

  .checkout-item strong {
    justify-self: start;
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  body {
    min-width: 0;
  }

  .mobile-commerce-bar,
  .detail-mobile-buy-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-mobile-buy-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-commerce-bar strong,
  .detail-mobile-buy-bar strong {
    font-size: 21px;
  }

  main:has(.mobile-commerce-bar),
  main:has(.detail-mobile-buy-bar) {
    padding-bottom: calc(184px + env(safe-area-inset-bottom));
  }
}

/* Visual integration polish: soften product media so images feel embedded. */
:root {
  --commerce-canvas: #f5f6f4;
  --commerce-surface: rgba(255, 255, 255, 0.96);
  --commerce-media-bg:
    radial-gradient(80% 55% at 50% 76%, rgba(201, 140, 53, 0.14) 0%, rgba(201, 140, 53, 0.05) 42%, transparent 72%),
    linear-gradient(180deg, #fbfbf8 0%, #eef3f0 100%);
  --commerce-media-line: rgba(218, 224, 221, 0.86);
  --commerce-media-shadow: 0 14px 28px rgba(38, 47, 52, 0.07);
  --commerce-image-shadow: drop-shadow(0 16px 16px rgba(26, 35, 40, 0.13));
}

body {
  background:
    linear-gradient(180deg, #f8f8f6 0%, var(--commerce-canvas) 34%, #f6f5f1 100%);
}

.showroom-hero {
  isolation: isolate;
  border-color: rgba(224, 226, 222, 0.88);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0.08) 68%),
    url("/assets/ui/showroom-hero-living-room.png") center right / cover no-repeat,
    #f2eee7;
  box-shadow: 0 18px 42px rgba(45, 50, 48, 0.075);
}

.showroom-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 62%, rgba(245, 246, 244, 0.7) 100%),
    radial-gradient(80% 48% at 83% 82%, rgba(255, 255, 255, 0) 0%, rgba(245, 246, 244, 0.34) 100%);
  content: "";
}

.showroom-hero-copy {
  position: relative;
  z-index: 1;
}

.showroom-coupon-ticket,
.showroom-campaign-card,
.showroom-product-block,
.showroom-cart-panel,
.section-shell,
.catalog-hero,
.cart-hero,
.payment-hero,
.page-head,
.member-header,
.detail-layout.product-detail-hero {
  border-color: rgba(218, 224, 221, 0.9);
  background: var(--commerce-surface);
  box-shadow: 0 12px 30px rgba(43, 49, 48, 0.048);
}

.showroom-coupon-ticket,
.showroom-campaign-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 239, 0.86) 100%);
}

.showroom-campaign-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.96) 0%, rgba(239, 226, 202, 0.9) 100%);
}

.home-product-card,
.catalog-product-grid .product-card,
.floor-product,
.detail-recommend-card {
  overflow: hidden;
  border-color: rgba(216, 223, 220, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 252, 248, 0.96) 100%);
  box-shadow: 0 12px 28px rgba(43, 49, 48, 0.05);
}

.home-product-image,
.catalog-product-grid .product-image,
.floor-product button,
.detail-recommend-card button,
.checkout-item img,
.cart-item-card img,
.showroom-cart-list img {
  background: var(--commerce-media-bg);
  border-color: var(--commerce-media-line);
}

.home-product-image,
.catalog-product-grid .product-image,
.floor-product button,
.detail-recommend-card button {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.home-product-image::before,
.catalog-product-grid .product-image::before,
.floor-product button::before,
.detail-recommend-card button::before,
.clean-detail-image::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(70% 18% at 50% 86%, rgba(31, 39, 43, 0.08) 0%, transparent 74%);
  content: "";
}

.home-product-image img,
.catalog-product-grid .product-image img,
.floor-product img,
.detail-recommend-card img,
.checkout-item img,
.cart-item-card img,
.showroom-cart-list img {
  position: relative;
  z-index: 1;
  filter: var(--commerce-image-shadow);
  mix-blend-mode: multiply;
}

.clean-detail-gallery {
  gap: 14px;
}

.clean-detail-image {
  position: relative;
  min-height: clamp(300px, 64vw, 520px);
  padding: clamp(18px, 5vw, 34px);
  overflow: hidden;
  border-color: rgba(216, 223, 220, 0.92);
  background: var(--commerce-media-bg);
  box-shadow: var(--commerce-media-shadow);
}

.clean-detail-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 22px rgba(24, 31, 35, 0.16));
  mix-blend-mode: multiply;
}

.clean-detail-thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 10px;
}

.clean-detail-thumb-row button {
  min-width: 0;
  min-height: 76px;
  padding: 8px;
  border-color: rgba(216, 223, 220, 0.92);
  background: var(--commerce-media-bg);
  box-shadow: 0 8px 18px rgba(43, 49, 48, 0.045);
}

.clean-detail-thumb-row button.active,
.clean-detail-thumb-row button:hover {
  border-color: rgba(11, 79, 159, 0.54);
  background:
    radial-gradient(80% 62% at 50% 76%, rgba(11, 79, 159, 0.11) 0%, transparent 70%),
    linear-gradient(180deg, #fbfcfb 0%, #eef4f2 100%);
}

.clean-detail-thumb-row img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 9px 11px rgba(24, 31, 35, 0.14));
  mix-blend-mode: multiply;
}

.detail-price-panel,
.catalog-filter-note,
.cart-assurance,
.checkout-service-grid div,
.detail-commercial-conditions div,
.spec-grid div,
.commercial-card-tags em,
.card-commerce-head span,
.badge-row span {
  background-color: rgba(246, 248, 245, 0.92);
}

@media (max-width: 620px) {
  .showroom-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 48%, rgba(255, 255, 255, 0.18) 100%),
      url("/assets/ui/showroom-hero-living-room.png") 66% bottom / auto 100% no-repeat,
      #f2eee7;
  }

  .showroom-coupon-row {
    padding-left: 8px;
  }

  .showroom-coupon-ticket:first-child,
  .showroom-campaign-card:first-child {
    margin-left: 0;
  }

  .showroom-products .home-product-card,
  .catalog-product-grid .product-card {
    box-shadow: 0 10px 22px rgba(43, 49, 48, 0.048);
  }

  .showroom-products .home-product-image,
  .catalog-product-grid .product-image {
    min-height: 128px;
    padding: 14px;
  }

  .showroom-products .home-product-image img,
  .catalog-product-grid .product-image img {
    height: 108px;
    max-width: 92%;
  }

  .clean-detail-image {
    min-height: 318px;
  }
}

@media (max-width: 390px) {
  .clean-detail-thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile commerce journey: keep browsing, cart, checkout and payment compact and reachable. */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(201, 140, 53, 0.28);
  outline-offset: 2px;
}

.cart-line-actions {
  display: grid;
  grid-template-columns: 122px minmax(100px, auto) auto;
  gap: 10px;
  align-items: center;
}

.cart-line-actions .cart-remove {
  justify-self: end;
}

@media (min-width: 961px) {
  .cart-item-card {
    grid-template-columns: 104px minmax(0, 1fr) 92px minmax(300px, auto);
  }
}

@media (max-width: 960px) {
  .cart-line-actions {
    grid-column: 2 / -1;
    justify-content: start;
  }

  .cart-line-actions .quantity-control,
  .cart-line-actions .cart-remove {
    grid-column: auto;
    width: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    top: 0;
    background: #fff;
    backdrop-filter: none;
  }

  .topbar {
    grid-template-areas:
      "brand cart member"
      "search search search"
      "nav nav nav";
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px 8px;
    padding: 7px 0 8px;
  }

  .brand {
    grid-area: brand;
  }

  .main-nav {
    grid-area: nav;
  }

  .header-actions {
    display: contents;
  }

  .search-box {
    grid-area: search;
  }

  .cart-link {
    grid-area: cart;
    display: inline-flex;
    gap: 6px;
    align-items: center;
  }

  .member-entry {
    grid-area: member;
    max-width: 106px;
    white-space: nowrap;
  }

  .toast {
    position: fixed;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 60;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(201, 140, 53, 0.34);
    border-radius: 10px;
    background: rgba(36, 42, 45, 0.94);
    color: #fff;
    box-shadow: 0 16px 36px rgba(27, 34, 37, 0.2);
    font-size: 13px;
    line-height: 1.5;
    backdrop-filter: blur(14px);
  }

  .showroom-products .home-product-card p,
  .showroom-products .commercial-card-tags,
  .catalog-product-grid .product-body > p,
  .catalog-product-grid .commercial-card-meta,
  .catalog-product-grid .commercial-card-tags,
  .catalog-product-grid .card-commerce-head small,
  .catalog-product-grid .price-row del,
  .catalog-product-grid .price-row small {
    display: none;
  }

  .showroom-products .home-product-card small {
    min-height: 30px;
    font-size: 11px;
    line-height: 1.4;
  }

  .home-add-cart,
  .catalog-product-grid .card-actions button {
    min-height: 42px;
  }

  .catalog-product-grid .card-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-product-grid .card-actions button:not(.primary) {
    display: none;
  }

  .clean-detail-thumb-row {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    padding: 0 0 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .clean-detail-thumb-row::-webkit-scrollbar {
    display: none;
  }

  .clean-detail-thumb-row figure {
    flex: 0 0 74px;
    margin: 0;
    scroll-snap-align: start;
  }

  .clean-detail-thumb-row img {
    height: 64px;
  }

  .cart-hero > div:first-child p,
  .checkout-hero > div:first-child p {
    display: none;
  }

  .cart-item-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .cart-item-card img {
    width: 76px;
    height: 76px;
  }

  .cart-item-main {
    gap: 5px;
  }

  .cart-item-main p {
    -webkit-line-clamp: 1;
    font-size: 12px;
  }

  .cart-unit-price {
    display: none;
  }

  .cart-line-actions {
    grid-column: 1 / -1;
    grid-template-columns: 122px minmax(0, 1fr) auto;
    gap: 8px;
    justify-content: stretch;
    width: 100%;
  }

  .cart-line-actions .quantity-control {
    grid-column: auto;
    grid-template-columns: 40px 42px 40px;
    width: auto;
  }

  .cart-line-actions .quantity-control button {
    min-height: 40px;
    padding: 0;
  }

  .cart-subtotal {
    justify-items: end;
  }

  .cart-subtotal strong {
    font-size: 17px;
  }

  .cart-line-actions .cart-remove {
    grid-column: auto;
    min-width: 54px;
    min-height: 40px;
    padding: 0 10px;
  }

  .checkout-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-form-grid .wide {
    grid-column: auto;
  }

  .form-panel input,
  .form-panel textarea,
  .form-panel select,
  .coupon-selector select {
    min-height: 48px;
    font-size: 16px;
  }

  .checkout-section .form-panel textarea,
  .checkout-section textarea {
    min-height: 76px;
  }

  .checkout-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .checkout-item img {
    width: 64px;
    height: 64px;
  }

  .checkout-item strong {
    justify-self: end;
    font-size: 16px;
  }

  .summary-lines p,
  .summary-panel .summary-lines p,
  .payment-order-meta p {
    align-items: center;
    flex-direction: row;
  }

  .payment-card,
  .payment-order-panel {
    padding: 16px;
  }

  .payment-card h2 {
    font-size: 36px;
  }

  .pay-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .pay-methods button {
    width: 100%;
    min-height: 44px;
    padding: 0 6px;
    font-size: 13px;
  }

  .payment-balance-note {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .payment-balance-note small {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .payment-actions .primary {
    grid-column: 1 / -1;
  }

  .payment-actions button {
    width: 100%;
    min-height: 44px;
  }

  .payment-order-meta strong {
    max-width: 62%;
  }
}

@media (max-width: 420px) {
  .mobile-commerce-bar {
    grid-template-columns: minmax(0, 1fr) minmax(116px, 0.82fr);
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .cart-mobile-action-bar > button:not(.primary),
  .checkout-mobile-action-bar > button:not(.primary) {
    display: none;
  }

  .payment-mobile-action-bar {
    grid-template-columns: minmax(0, 1fr) 86px 108px;
  }

  .detail-mobile-buy-bar {
    grid-template-columns: minmax(96px, 0.78fr) minmax(0, 1.5fr);
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .mobile-commerce-bar strong,
  .detail-mobile-buy-bar strong {
    font-size: 20px;
  }

  .mobile-commerce-bar button,
  .detail-mobile-buy-bar button {
    min-height: 46px;
    padding: 0 8px;
  }

  main:has(.mobile-commerce-bar),
  main:has(.detail-mobile-buy-bar) {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .showroom-products,
  .catalog-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .member-entry {
    max-width: 88px;
    padding: 0 8px;
  }

  .cart-line-actions {
    grid-template-columns: 112px minmax(0, 1fr) auto;
  }

  .cart-line-actions .quantity-control {
    grid-template-columns: 36px 40px 36px;
  }

  .payment-mobile-action-bar {
    grid-template-columns: minmax(0, 1fr) 102px;
  }

  .payment-mobile-action-bar > button:not(.primary) {
    display: none;
  }
}
