:root {
  --bg: #f5f5f5;
  --bg-soft: #fafafa;
  --panel: #ffffff;
  --panel-soft: #fbfbfb;
  --ink: #333333;
  --muted: #757575;
  --line: #e0e0e0;
  --line-soft: #eeeeee;
  --accent: #ff6700;
  --accent-deep: #e35f00;
  --dark: #424242;
  --topbar: #333333;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 18px 38px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --page-width: 1226px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.shop-body {
  background:
    linear-gradient(180deg, #ffffff 0 140px, var(--bg) 140px 100%);
}

.admin-body {
  background: linear-gradient(180deg, #f7f7f7, #efefef);
}

.page-shell,
.site-header,
.topbar-shell,
.admin-shell {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell,
.admin-shell {
  padding: 18px 0 48px;
}

.topbar {
  background: var(--topbar);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.topbar-shell {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left,
.topbar-right,
.site-nav,
.header-user,
.hero-actions,
.detail-actions,
.form-actions,
.auth-tabs,
.chip-row,
.review-head,
.review-meta,
.section-header,
.toolbar-card,
.section-title-row,
.admin-product-head,
.admin-product-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-left span,
.topbar-right a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.topbar-left a {
  color: #ffffff;
  text-decoration: none;
}

.topbar-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.brand-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.site-nav {
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
}

.site-nav a:hover,
.topbar-right a:hover,
.topbar-left a:hover {
  color: var(--accent);
}

.site-header-minimal {
  min-height: 112px;
  gap: 36px;
  padding: 20px 0 24px;
}

.site-header-minimal .brand-mark {
  flex: 0 0 auto;
  gap: 16px;
}

.site-header-minimal .brand-badge {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  font-size: 30px;
  font-weight: 800;
}

.site-header-minimal .brand-text {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-tools-minimal {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) auto;
  align-items: center;
  justify-content: end;
  gap: 18px;
}

.header-entry-group {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.search-clear-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  margin-left: 12px;
}

.search-clear-link:hover {
  color: var(--accent-deep);
}

.header-user {
  justify-content: flex-end;
  color: var(--muted);
}

.user-pill {
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button,
.chip,
.hero-category-item {
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font: inherit;
}

.button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-deep);
}

.button.secondary {
  background: #fff3e8;
  color: var(--accent);
}

.button.tertiary {
  background: #f5f5f5;
  color: var(--dark);
}

.button.danger {
  background: #fff1f0;
  color: #bf2f2f;
}

.chip {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f3f3f3;
  color: var(--muted);
}

.chip.active,
.chip:hover {
  background: var(--accent);
  color: #ffffff;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #ffb27a;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff1e6;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.mall-hero,
.support-layout,
.auth-layout,
.detail-card,
.admin-layout,
.feature-grid,
.service-strip,
.flow-grid,
.shortcut-grid,
.featured-showcase {
  display: grid;
  gap: 14px;
}

.mall-hero {
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  margin-bottom: 16px;
}

.support-layout,
.auth-layout {
  grid-template-columns: 1fr 1fr;
}

.category-panel,
.shop-hero-copy,
.hero-side-card,
.service-strip-card,
.toolbar-card,
.product-card,
.feature-card,
.review-panel,
.auth-card,
.loading-card,
.detail-info,
.review-card,
.admin-hero,
.admin-panel,
.admin-product-card,
.admin-token-card,
.empty-state {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-panel,
.shop-hero-copy,
.hero-side-card,
.toolbar-card,
.review-panel,
.auth-card,
.loading-card,
.admin-hero,
.admin-panel,
.admin-product-card {
  padding: 22px;
}

.category-panel {
  background: linear-gradient(180deg, #4b4b4b, #333333);
  color: #ffffff;
}

.category-panel-title {
  margin-bottom: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-categories {
  display: grid;
  gap: 8px;
}

.hero-category-item {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.hero-category-item:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-category-arrow {
  color: rgba(255, 255, 255, 0.6);
}

.hero-banner {
  min-height: 420px;
  background:
    linear-gradient(120deg, rgba(255, 103, 0, 0.95), rgba(255, 141, 67, 0.95)),
    #fff7f2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-hero-copy h1,
.admin-hero h1,
.detail-info h1 {
  margin: 12px 0;
  line-height: 1.08;
}

.shop-hero-copy h1,
.admin-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.shop-hero-copy p,
.feature-card p,
.review-card p,
.small-note,
.faq-list,
.toolbar-card p,
.admin-hero p,
.admin-token-card p,
.admin-product-head p,
.empty-state p,
.detail-info p,
.hero-side-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.hero-banner .hero-eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

.hero-side-card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 20px;
}

.mini-label {
  display: inline-block;
  font-size: 12px;
  color: #b0b0b0;
}

.service-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.mall-shortcuts,
.showcase-zone,
.selection-flow {
  margin-bottom: 18px;
}

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

.shortcut-card {
  min-height: 96px;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 8px;
}

.shortcut-button {
  text-align: left;
}

.shortcut-card strong {
  font-size: 17px;
}

.shortcut-card span {
  color: var(--muted);
  line-height: 1.55;
}

.shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.service-strip-card {
  min-height: 110px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.service-strip-card strong {
  font-size: 18px;
}

.service-strip-card span {
  color: var(--muted);
  line-height: 1.65;
}

.toolbar-card {
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 20px;
}

.toolbar-left h2,
.review-panel h2,
.auth-card h2,
.feature-card h2,
.feature-card h3,
.section-title-row h2,
.panel-heading h2 {
  margin: 0 0 8px;
}

.toolbar-right {
  display: grid;
  gap: 10px;
  justify-items: end;
}

#search-input,
#review-search {
  min-width: min(420px, 72vw);
}

.product-zone {
  margin-bottom: 18px;
}

.section-title-row {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-link {
  text-decoration: none;
  color: var(--accent);
}

.featured-showcase {
  grid-template-columns: 1.25fr 1fr;
}

.feature-main-card,
.feature-side-card,
.flow-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.feature-main-card {
  min-height: 420px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #fff8f3, #ffffff);
}

.feature-main-copy h3 {
  margin: 12px 0 10px;
  font-size: 34px;
}

.feature-main-copy p {
  margin-bottom: 16px;
}

.feature-main-image,
.feature-side-image {
  background: #f8f8f8;
  border-radius: 18px;
  overflow: hidden;
}

.feature-main-image {
  min-height: 320px;
}

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

.feature-side-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.feature-side-copy h4 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.feature-side-copy p {
  min-height: 44px;
}

.feature-side-copy strong {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 24px;
}

.feature-side-image {
  min-height: 160px;
}

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

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  text-align: center;
}

.product-card:hover,
.feature-card:hover,
.review-card:hover,
.hero-side-card:hover,
.service-strip-card:hover,
.admin-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-image {
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  overflow: hidden;
}

.product-image img,
.detail-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  padding: 16px 18px 12px;
}

.product-meta h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-row strong {
  font-size: 26px;
  color: var(--accent);
}

.price-row span {
  color: #b0b0b0;
  font-size: 13px;
}

.product-summary {
  min-height: 22px;
  margin: 0 0 10px;
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
}

.card-actions {
  margin-top: 18px;
}

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

.feature-card {
  padding: 24px;
}

.promo-card {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(255, 103, 0, 0.96), rgba(255, 145, 79, 0.96)),
    #fff7f2;
}

.promo-card h2,
.promo-card p,
.promo-card li,
.promo-card .hero-eyebrow {
  color: #ffffff;
}

.promo-card .hero-eyebrow {
  background: rgba(255, 255, 255, 0.18);
}

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

.flow-card {
  min-height: 160px;
  padding: 22px;
}

.flow-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.detail-intro-card {
  margin-bottom: 14px;
}

.detail-card {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  margin-bottom: 18px;
}

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

.detail-gallery img {
  min-height: 220px;
  border-radius: var(--radius);
  background: #f6f6f6;
}

.detail-info h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-code {
  color: #b0b0b0;
  font-size: 13px;
}

.price-box {
  margin: 18px 0 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff6ef;
}

.support-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: #fff9f5;
  color: var(--dark);
  line-height: 1.7;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.spec-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.review-panel,
.auth-card {
  display: grid;
  gap: 16px;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 18px 20px;
}

.review-head,
.review-meta,
.section-header {
  justify-content: space-between;
}

.review-meta {
  color: #b0b0b0;
  font-size: 13px;
}

.auth-tabs {
  justify-content: flex-start;
}

.faq-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.loading-card,
.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state.compact {
  min-height: 140px;
  padding: 20px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #b0b0b0;
}

.image-placeholder.large {
  min-height: 260px;
}

.error-text {
  color: #bf2f2f !important;
}

.admin-shell {
  padding-top: 28px;
}

.admin-workspace {
  width: min(1440px, calc(100% - 32px));
  margin: 24px auto 40px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 22px 18px;
  background: linear-gradient(180deg, #2f2f32 0%, #242427 100%);
  color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.18);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.admin-brand strong {
  display: block;
  font-size: 18px;
}

.admin-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-link {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

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

.admin-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-topbar h1 {
  margin: 10px 0 8px;
}

.admin-topbar-tools {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.admin-token-inline {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.admin-token-inline span {
  color: var(--muted);
  font-size: 13px;
}

.admin-page-status {
  margin: -4px 0 2px;
}

.admin-overview-grid,
.admin-page-grid,
.admin-page-stack,
.admin-shortcut-grid,
.admin-overview-stack {
  display: grid;
  gap: 16px;
}

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

.admin-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appliance-spec-grid {
  margin-bottom: 16px;
}

.admin-shortcut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stat-card,
.admin-shortcut-card,
.admin-overview-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-stat-card {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.admin-stat-card span,
.admin-overview-label {
  color: var(--muted);
  font-size: 13px;
}

.admin-stat-card strong {
  font-size: 34px;
  color: #212121;
}

.admin-stat-card p,
.admin-shortcut-card span,
.admin-overview-card p {
  margin: 0;
  color: #757575;
  line-height: 1.6;
}

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

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #efefef;
  border-radius: 14px;
  background: #fff;
}

.admin-list-row strong {
  min-width: 0;
}

.admin-list-row span {
  color: var(--muted);
  white-space: nowrap;
}

.admin-shortcut-card {
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.admin-shortcut-card:hover {
  border-color: #ffd6b8;
  transform: translateY(-1px);
}

.admin-shortcut-card strong,
.admin-overview-card strong {
  color: #212121;
  font-size: 18px;
}

.admin-overview-card {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.admin-hero,
.contact-card {
  display: grid;
  gap: 20px;
}

.admin-hero {
  grid-template-columns: 1.4fr 0.9fr;
  margin-bottom: 18px;
}

.admin-layout {
  grid-template-columns: 1fr 1.15fr;
  margin-bottom: 18px;
}

.admin-token-card,
.admin-form {
  display: grid;
  gap: 14px;
}

.admin-token-card {
  padding: 18px;
  border-radius: 14px;
  background: #fafafa;
}

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

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form label span,
.admin-token-card label {
  color: var(--muted);
  font-size: 13px;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.spec-template-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #ececec;
  background: #fbfbfb;
}

.spec-template-head {
  display: grid;
  gap: 8px;
}

.spec-template-head strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: #303030;
}

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

.spec-template-field {
  display: grid;
  gap: 8px;
}

.model-library-row {
  display: grid;
  gap: 10px;
}

.model-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.model-library-actions .button {
  min-width: 180px;
}

.upload-inline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-inline-row input[type="file"] {
  flex: 1 1 320px;
  min-width: 240px;
}

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

.payment-upload-box,
.order-payment-block,
.admin-payment-panel {
  border: 1px solid #ececec;
  background: #fbfbfb;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
}

.admin-product-head {
  justify-content: space-between;
  align-items: start;
}

.admin-product-price {
  min-width: 120px;
  text-align: right;
}

.admin-product-price strong {
  color: var(--accent);
  font-size: 24px;
}

@media (max-width: 1180px) {
  .mall-hero {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .hero-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header,
  .topbar-shell,
  .toolbar-card {
    display: grid;
    justify-content: stretch;
  }

  .site-nav,
  .header-user,
  .topbar-right {
    justify-content: flex-start;
  }

  .mall-hero,
  .support-layout,
  .auth-layout,
  .detail-card,
  .admin-workspace,
  .admin-hero,
  .admin-layout,
  .feature-grid,
  .service-strip,
  .hero-side,
  .featured-showcase,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-grid,
  .admin-overview-grid,
  .admin-page-grid,
  .admin-shortcut-grid,
  .feature-side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar {
    position: static;
  }

  .admin-topbar,
  .admin-topbar-tools {
    display: grid;
    justify-items: stretch;
  }

  .admin-token-inline {
    min-width: 0;
  }

  .feature-main-card {
    grid-template-columns: 1fr;
  }

  .toolbar-right {
    justify-items: stretch;
  }

  #search-input,
  #review-search {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .site-header,
  .topbar-shell,
  .admin-shell,
  .admin-workspace {
    width: min(var(--page-width), calc(100% - 20px));
  }

  .admin-overview-grid,
  .admin-page-grid,
  .admin-shortcut-grid,
  .spec-template-grid {
    grid-template-columns: 1fr;
  }

  .brand-badge {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .brand-text {
    font-size: 22px;
  }

  .shop-hero-copy,
  .hero-side-card,
  .category-panel,
  .toolbar-card,
  .review-panel,
  .auth-card,
  .admin-hero,
  .admin-panel,
  .feature-card {
    padding: 18px;
  }

  .shop-hero-copy h1,
  .admin-hero h1,
  .detail-info h1 {
    font-size: 28px;
  }

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

  .shortcut-grid,
  .feature-side-grid {
    grid-template-columns: 1fr;
  }

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

/* Homepage closer to marketplace reference */
.shop-body {
  background: #f5f5f5;
}

.topbar {
  background: #333333;
  font-size: 12px;
}

.topbar-shell {
  min-height: 40px;
}

.topbar-left,
.topbar-right {
  gap: 10px;
}

.topbar-left span,
.topbar-right span {
  color: #555555;
}

.topbar-left a,
.topbar-right a {
  color: #b0b0b0;
}

.site-header {
  min-height: 100px;
  gap: 26px;
  padding: 22px 0;
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 20px;
  box-shadow: none;
}

.brand-text {
  font-size: 28px;
  font-weight: 700;
}

.header-search {
  min-width: 300px;
  width: 320px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 72px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
}

.header-search input {
  border: none;
  border-radius: 0;
  height: 100%;
  padding: 0 16px;
  box-shadow: none;
}

.header-search-button {
  border: none;
  border-left: 1px solid #e0e0e0;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  color: #616161;
}

.header-search-button:hover {
  background: var(--accent);
  color: #ffffff;
}

.page-shell {
  padding-top: 0;
}

.homepage-hero {
  position: relative;
  display: grid;
  grid-template-columns: 234px 1fr;
  gap: 0;
  margin-bottom: 14px;
}

.category-sidebar {
  position: relative;
  min-height: 460px;
  padding: 20px 0;
  background: rgba(105, 101, 101, 0.92);
}

.hero-categories {
  display: grid;
  gap: 0;
}

.hero-category-item {
  min-height: 42px;
  padding: 0 30px 0 22px;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}

.hero-category-item:hover {
  background: var(--accent);
}

.hero-category-item.active {
  background: var(--accent);
}

.hero-stage {
  min-height: 460px;
  background: #f3f3f3;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  overflow: hidden;
}

.hero-stage-copy {
  padding: 0 0 0 56px;
}

.hero-stage-tag {
  display: inline-block;
  margin-bottom: 18px;
  color: #8d6b40;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.hero-stage-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.05;
  color: #111111;
}

.hero-stage-copy p {
  max-width: 420px;
  color: #333333;
  font-size: 16px;
}

.button.square {
  min-height: 48px;
  padding: 0 30px;
  border-radius: 2px;
}

.hero-stage-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.hero-main-image {
  width: min(92%, 560px);
  height: min(82%, 380px);
  display: grid;
  place-items: center;
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 70px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: #b0b0b0;
  font-size: 28px;
}

.hero-arrow-left {
  left: 0;
}

.hero-arrow-right {
  right: 0;
}

.category-mega-panel {
  position: absolute;
  left: 234px;
  top: 0;
  width: calc(100% - 234px);
  min-height: 460px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid #ececec;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  z-index: 15;
  padding: 34px 42px;
}

.mega-panel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 28px;
  min-height: 100%;
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.mega-column-title {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
}

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

.mega-option-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ededed;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #424242;
}

.mega-option-button:hover,
.mega-option-button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.mega-column-level3 {
  padding-left: 12px;
  border-left: 1px solid #f0f0f0;
}

.mega-column-level3-hidden {
  visibility: hidden;
  pointer-events: none;
}

.mega-option-list-level3 {
  align-content: start;
}

.mega-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 26px;
}

.mega-panel-item,
.mega-level3-link {
  min-height: 86px;
  padding: 12px 8px;
  display: grid;
  gap: 6px;
  align-content: start;
  text-decoration: none;
  color: inherit;
}

.mega-panel-item strong {
  font-size: 18px;
  font-weight: 400;
  color: #424242;
}

.mega-level3-link strong {
  font-size: 16px;
  font-weight: 600;
  color: #303030;
}

.mega-panel-item span {
  color: #757575;
  line-height: 1.45;
}

.mega-panel-item:hover strong,
.mega-level3-link:hover strong {
  color: var(--accent);
}

.mega-empty-text {
  color: #9a9a9a;
  line-height: 1.7;
}

.homepage-subgrid {
  display: grid;
  grid-template-columns: 234px 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.service-panel {
  background: #5f5750;
}

.service-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.service-panel-item {
  min-height: 82px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #5f5750;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
}

.service-panel-item:hover {
  color: #ffffff;
}

.promo-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.promo-product-card {
  min-height: 170px;
  padding: 22px 18px 18px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.promo-product-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}

.promo-product-copy p {
  color: #757575;
  line-height: 1.6;
  font-size: 14px;
  margin: 0 0 10px;
}

.promo-product-image {
  height: 130px;
}

.promo-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discover-card {
  padding: 24px;
  box-shadow: none;
  border-radius: 0;
}

.compact-zone .section-title-row,
.product-zone .section-title-row {
  margin-bottom: 16px;
}

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

.feature-wide-card {
  min-height: 320px;
  padding: 26px 24px 22px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  text-align: center;
}

.feature-wide-primary {
  background: linear-gradient(135deg, #fff7ef, #ffffff);
}

.feature-wide-copy h3 {
  margin: 10px 0 8px;
  font-size: 26px;
  font-weight: 500;
}

.feature-wide-copy p {
  color: #757575;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.feature-wide-copy strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 26px;
}

.feature-wide-image {
  height: 220px;
}

.feature-wide-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card,
.feature-card,
.feature-wide-card,
.promo-product-card {
  border-radius: 0;
  box-shadow: none;
}

.product-card:hover,
.feature-card:hover,
.feature-wide-card:hover,
.promo-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.feature-grid {
  margin-top: 28px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-header-minimal {
    display: grid;
    gap: 20px;
  }

  .header-tools-minimal {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .homepage-subgrid,
  .homepage-hero {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    min-height: auto;
    padding: 12px 0;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .hero-stage-copy {
    padding: 40px 30px 0;
  }

  .promo-product-grid,
  .featured-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    display: grid;
  }

  .header-search {
    width: 100%;
  }

  .site-header-minimal .brand-badge {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .site-header-minimal .brand-text {
    font-size: 26px;
    line-height: 1.2;
    white-space: normal;
  }

  .header-entry-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .promo-product-card,
  .feature-wide-card {
    grid-template-columns: 1fr;
  }

  .category-mega-panel {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 18px;
    border-left: none;
  }

  .mega-panel-layout,
  .mega-panel-grid {
    grid-template-columns: 1fr;
  }

  .mega-column-level3 {
    padding-left: 0;
    border-left: none;
  }
}

.search-shell {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.search-breadcrumb {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #757575;
}

.search-breadcrumb a {
  text-decoration: none;
}

.search-filter-panel {
  background: #ffffff;
  padding: 22px 0;
  margin-bottom: 18px;
}

.search-filter-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}

.search-filter-row:last-child {
  border-bottom: none;
}

.search-filter-label {
  color: #9b9b9b;
  font-size: 16px;
}

.search-filter-values {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}

.search-filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
  color: #424242;
  text-decoration: none;
}

.search-filter-link.active,
.search-filter-link:hover {
  color: var(--accent);
}

.search-toolbar {
  min-height: 72px;
  padding: 0 22px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.search-sort-tabs {
  display: flex;
  align-items: center;
  gap: 0;
}

.search-sort-button {
  min-width: 90px;
  min-height: 72px;
  border: none;
  background: transparent;
  color: #424242;
  cursor: pointer;
  font: inherit;
}

.search-sort-button.active,
.search-sort-button:hover {
  color: var(--accent);
}

.search-toolbar-meta {
  color: #757575;
}

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

.search-product-card {
  background: #ffffff;
  min-height: 420px;
  text-align: center;
}

.search-product-link {
  height: 100%;
  display: grid;
  grid-template-rows: 260px 1fr;
  color: inherit;
  text-decoration: none;
}

.search-product-image {
  background: #fafafa;
  display: grid;
  place-items: center;
  padding: 18px;
}

.search-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-product-info {
  padding: 16px 18px 18px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.search-product-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.search-product-info p {
  margin: 0;
  color: #b0b0b0;
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .search-filter-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-toolbar {
    padding: 14px 18px;
    min-height: auto;
    display: grid;
    justify-content: stretch;
  }

  .search-sort-button {
    min-height: 46px;
  }
}

@media (max-width: 640px) {
  .search-shell {
    width: min(var(--page-width), calc(100% - 20px));
  }

  .search-results-grid {
    grid-template-columns: 1fr;
  }
}

.detail-breadcrumb {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #757575;
  font-size: 14px;
}

.detail-breadcrumb a {
  text-decoration: none;
}

.detail-topbar {
  min-height: 64px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.detail-topbar-title {
  font-size: 22px;
  font-weight: 500;
  color: #424242;
}

.detail-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #757575;
}

.detail-topbar-actions a {
  text-decoration: none;
}

.mi-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}

.mi-gallery-panel,
.mi-info-panel {
  background: #ffffff;
}

.mi-gallery-panel {
  padding: 24px;
}

.mi-gallery-stage {
  min-height: 560px;
  background: #fafafa;
  display: grid;
  place-items: center;
}

.mi-gallery-stage img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.mi-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mi-thumb {
  width: 88px;
  height: 88px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
}

.mi-thumb.active {
  border-color: var(--accent);
}

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

.mi-info-panel {
  padding: 8px 0 0;
}

.mi-info-header h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  color: #212121;
}

.mi-summary {
  color: var(--accent) !important;
  margin-bottom: 8px !important;
}

.mi-description {
  color: #757575 !important;
  line-height: 1.8 !important;
}

.mi-price-block {
  padding: 18px 0 22px;
  border-bottom: 1px solid #e0e0e0;
}

.mi-price-main {
  font-size: 30px;
  color: var(--accent);
  font-weight: 600;
}

.mi-price-note {
  margin-top: 8px;
  color: #b0b0b0;
}

.mi-option-block,
.mi-spec-block {
  padding: 22px 0 0;
}

.mi-option-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 500;
  color: #333333;
}

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

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

.selling-poster-tile {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.selling-poster-tile span {
  color: #8a8a8a;
  font-size: 13px;
}

.selling-poster-tile strong {
  color: #222222;
  font-size: 22px;
  line-height: 1.24;
  font-weight: 700;
  word-break: break-word;
}

.selling-poster-tile em {
  color: #6f6f6f;
  font-size: 13px;
  font-style: normal;
}

.selling-poster-tile-0 {
  border-color: #ff8a3d;
  background: #fff8f2;
}

.selling-poster-tile-1 {
  background: #f6f8fb;
}

.selling-poster-tile-2 {
  background: #f7fbf8;
}

.selling-poster-tile-3 {
  background: #fbf8f4;
}

.mi-option-card {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 8px;
}

.mi-option-card.active {
  border-color: var(--accent);
}

.mi-option-card strong {
  font-size: 16px;
  color: #333333;
}

.mi-option-card span {
  color: #757575;
  line-height: 1.55;
}

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

.mi-spec-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mi-spec-highlight-card {
  min-height: 102px;
  padding: 16px;
  border: 1px solid #f0d6bf;
  background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.mi-spec-highlight-card span {
  color: #8a8a8a;
  line-height: 1.4;
}

.mi-spec-highlight-card strong {
  font-size: 18px;
  color: #222222;
  line-height: 1.35;
}

.mi-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.mi-spec-row span {
  color: #757575;
}

.mi-spec-row strong {
  color: #333333;
}

.mi-service-box {
  margin-top: 22px;
  padding: 18px 20px;
  background: #f9f9fa;
  display: grid;
  gap: 10px;
}

.mi-service-line {
  color: #616161;
  line-height: 1.6;
}

.mi-service-line.emphasis {
  color: var(--accent);
}

.mi-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.detail-modules {
  display: grid;
  gap: 28px;
  margin: 24px 0 36px;
}

.detail-section {
  background: #ffffff;
  padding: 28px;
}

.detail-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-section-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
  color: #1f1f1f;
}

.detail-section-head p {
  max-width: 560px;
  margin: 0;
  color: #707070;
  line-height: 1.75;
  text-align: right;
}

.current-spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.current-spec-table-shell {
  border: 1px solid #e8e8e8;
  background: #ffffff;
  overflow: hidden;
}

.current-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.current-spec-table th,
.current-spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeeee;
  line-height: 1.6;
  vertical-align: top;
}

.current-spec-table tr:last-child th,
.current-spec-table tr:last-child td {
  border-bottom: 0;
}

.current-spec-table th {
  width: 180px;
  background: #f7f7f7;
  color: #666666;
  text-align: left;
  font-weight: 600;
}

.current-spec-table td {
  color: #222222;
}

.current-spec-layout > div:last-child {
  min-height: 142px;
  padding: 18px;
  border: 1px solid #e7e7e7;
  background: #f9f9fa;
  display: grid;
  align-content: start;
  gap: 12px;
}

.current-spec-layout > div:last-child strong {
  color: #222222;
  font-size: 18px;
}

.current-spec-layout > div:last-child p {
  margin: 0;
  color: #707070;
  line-height: 1.7;
}

.detail-module-grid {
  display: grid;
  gap: 18px;
}

.detail-module-grid-highlight,
.detail-module-grid-scene,
.detail-module-grid-size {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-module-grid-extra {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-module-card {
  background: #f7f7f7;
  overflow: hidden;
}

.detail-module-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fbfbfb 0%, #f0f0f0 100%);
}

.detail-module-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-spec-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  background: #f9f9fa;
  padding: 8px 20px;
}

.detail-spec-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e7e7e7;
}

.detail-spec-board-row span {
  color: #7a7a7a;
}

.detail-spec-board-row strong {
  color: #222222;
  text-align: right;
}

.compare-entry-card {
  padding: 18px 20px;
  border: 1px solid #e7e7e7;
  background: #f9f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-entry-card strong {
  color: #222222;
  font-size: 18px;
}

.compare-entry-card p {
  margin: 6px 0 0;
  color: #707070;
  line-height: 1.6;
}

.compare-table-shell {
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  background: #ffffff;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 150px;
  background: #f7f7f7;
  color: #666666;
  font-weight: 600;
}

.compare-table th {
  background: #fafafa;
  color: #222222;
  font-weight: 700;
}

.compare-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 28px;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.compare-modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 56px);
  background: #ffffff;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
}

.compare-modal-head {
  padding: 22px 24px;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.compare-modal-head h2 {
  margin: 6px 0 4px;
  font-size: 26px;
}

.compare-modal-head p {
  margin: 0;
  color: #707070;
}

.compare-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #333333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.compare-modal-tools {
  padding: 16px 24px;
  border-bottom: 1px solid #eeeeee;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.compare-modal-tools input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8d8d8;
  padding: 0 14px;
}

.compare-modal-tools span {
  color: #707070;
  font-weight: 700;
}

.compare-modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.compare-model-list {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 14px;
  border-right: 1px solid #eeeeee;
  background: #fafafa;
  display: grid;
  align-content: start;
  gap: 10px;
}

.compare-model-option {
  width: 100%;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.compare-model-option.active {
  border-color: var(--accent);
  background: #fff7ef;
}

.compare-model-option strong {
  color: #222222;
  line-height: 1.4;
}

.compare-model-option span {
  color: #777777;
  font-size: 13px;
  line-height: 1.5;
}

.compare-modal-table-shell {
  border: 0;
  min-height: 0;
}

.detail-buy-button {
  min-width: 180px;
}

.detail-secondary-button {
  min-width: 160px;
  border-radius: 2px;
}

@media (max-width: 920px) {
  .spec-template-grid,
  .detail-topbar,
  .mi-detail-layout,
  .mi-option-grid,
  .selling-poster-grid,
  .mi-spec-highlight-grid,
  .detail-spec-board,
  .detail-module-grid-highlight,
  .detail-module-grid-scene,
  .detail-module-grid-size,
  .detail-module-grid-extra {
    grid-template-columns: 1fr;
  }

  .detail-topbar {
    display: grid;
    justify-content: stretch;
    padding: 16px 18px;
  }

  .mi-gallery-stage {
    min-height: 360px;
  }

  .detail-section {
    padding: 20px;
  }

  .detail-section-head {
    align-items: start;
    text-align: left;
  }

  .detail-section-head p {
    max-width: none;
    text-align: left;
  }
}

.support-chat-panel {
  align-content: start;
}

.support-chat-head {
  align-items: start;
}

.support-profile-form {
  gap: 12px;
}

.support-context-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ef;
  color: #5b5b5b;
}

.support-context-card strong {
  color: var(--accent);
}

.support-context-card a {
  color: var(--accent);
  text-decoration: none;
}

.support-empty-state {
  min-height: 150px;
}

.chat-message-list {
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  padding: 18px;
  border-radius: 18px;
  background: #f7f7f8;
  display: grid;
  gap: 14px;
}

.chat-bubble-row {
  display: grid;
  gap: 8px;
}

.chat-bubble-row.mine {
  justify-items: end;
}

.chat-bubble-row.service {
  justify-items: start;
}

.chat-bubble-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9a9a9a;
  font-size: 12px;
}

.chat-bubble {
  max-width: min(100%, 560px);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.mine {
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.chat-bubble.service {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #ececec;
  border-bottom-left-radius: 6px;
}

.support-chat-form {
  display: grid;
  gap: 12px;
}

.support-chat-form textarea {
  min-height: 120px;
}

.support-chat-actions {
  justify-content: space-between;
}

.admin-chat-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.admin-chat-thread-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-thread-card {
  width: 100%;
  padding: 16px;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-thread-card:hover,
.admin-thread-card.active {
  border-color: #ffb27a;
  box-shadow: 0 12px 28px rgba(255, 103, 0, 0.12);
}

.admin-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-thread-product {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 8px;
}

.admin-thread-card p {
  margin: 0;
  color: #777777;
  line-height: 1.6;
}

.admin-chat-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-chat-thread-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-chat-messages {
  min-height: 420px;
}

@media (max-width: 920px) {
  .admin-chat-layout {
    grid-template-columns: 1fr;
  }

  .support-chat-actions,
  .admin-chat-thread-head {
    display: grid;
    justify-content: stretch;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-link-pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e7e7e7;
  background: #ffffff;
  text-decoration: none;
  color: #424242;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-link-pill:hover {
  border-color: #ffcfad;
  color: var(--accent);
}

.header-cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.header-logout {
  min-height: 42px;
  padding: 0 18px;
}

.button.small {
  min-height: 34px;
  padding: 0 14px;
}

.promo-product-card-main,
.feature-wide-card > a {
  color: inherit;
  text-decoration: none;
  display: grid;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.promo-product-card-main {
  grid-template-columns: minmax(0, 1fr) 140px;
}

.feature-wide-card > a {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.product-card-actions,
.search-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 20px 20px;
}

.promo-add-cart {
  justify-self: start;
}

.promo-product-copy,
.feature-wide-copy,
.product-meta,
.search-product-info {
  min-width: 0;
}

.promo-product-copy p,
.feature-wide-copy p,
.product-summary,
.search-product-info p {
  word-break: break-word;
}

.promo-product-copy h3,
.feature-wide-copy h3,
.product-meta h3,
.search-product-info h3 {
  word-break: break-word;
}

.search-product-card {
  display: grid;
  grid-template-rows: 1fr auto;
}

.search-product-link {
  grid-template-rows: 260px 1fr;
}

.search-card-actions {
  padding-top: 0;
}

.mi-purchase-card {
  margin-top: 20px;
  padding: 18px 20px;
  background: #fff7ef;
  display: grid;
  gap: 14px;
}

.mi-quantity-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-stepper,
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.quantity-stepper span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}

.detail-action-note {
  color: #757575;
  line-height: 1.7;
}

.cart-layout,
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.cart-content,
.account-order-list,
.admin-order-list {
  display: grid;
  gap: 16px;
}

.cart-item-card,
.account-order-card,
.admin-order-card {
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cart-item-card {
  display: grid;
  grid-template-columns: 36px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.order-payment-block {
  margin-top: 16px;
}

.payment-block-head,
.admin-payment-panel,
.admin-payment-actions {
  align-items: center;
}

.payment-block-head,
.admin-payment-panel {
  grid-template-columns: minmax(0, 1fr) auto;
}

.payment-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 180px));
  gap: 14px;
}

.payment-qr-card {
  margin: 0;
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.payment-qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #eeeeee;
  background: #ffffff;
}

.payment-proof-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-proof-form .full {
  grid-column: 1 / -1;
}

.payment-proof-link {
  color: var(--accent);
  font-weight: 700;
}

.admin-payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-payment-actions select {
  min-width: 150px;
}

.cart-item-check {
  display: grid;
  place-items: center;
}

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

.cart-item-image {
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #fafafa;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-main,
.cart-item-head,
.cart-item-foot {
  display: grid;
  gap: 14px;
}

.cart-item-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cart-item-head h3,
.account-order-head strong,
.admin-order-head strong {
  margin: 10px 0 8px;
}

.cart-item-foot {
  grid-template-columns: auto 1fr;
  align-items: center;
}

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

.cart-summary-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fafafa;
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-row.total strong {
  color: var(--accent);
  font-size: 28px;
}

.account-order-card.highlight {
  outline: 2px solid rgba(255, 103, 0, 0.28);
}

.account-order-head,
.admin-order-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.account-order-head p,
.admin-order-head p,
.admin-order-meta,
.account-order-meta {
  margin: 8px 0 0;
  color: #757575;
}

.account-order-side,
.admin-order-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.account-order-items,
.admin-order-items {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.account-order-item,
.admin-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.account-order-item:last-child,
.admin-order-item:last-child {
  border-bottom: none;
}

.account-order-meta,
.admin-order-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-order-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-order-status-select {
  min-width: 180px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #ffffff;
}

.admin-order-status-select:focus {
  outline: none;
  border-color: #ffb27a;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.12);
}

@media (max-width: 1180px) {
  .header-tools {
    justify-content: flex-start;
  }

  .cart-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .cart-item-card {
    grid-template-columns: 1fr;
  }

  .cart-item-head,
  .cart-item-foot,
  .account-order-head,
  .admin-order-head {
    grid-template-columns: 1fr;
  }

  .cart-item-actions,
  .account-order-side,
  .admin-order-side {
    justify-content: flex-start;
    justify-items: start;
  }

  .search-card-actions,
  .product-card-actions,
  .admin-order-actions,
  .mi-quantity-block {
    display: grid;
    justify-content: stretch;
  }
}

/* Mobile polish layer */
@media (max-width: 640px) {
  :root {
    --radius: 12px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  img,
  video,
  canvas {
    max-width: 100%;
  }

  .page-shell,
  .site-header,
  .topbar-shell,
  .search-shell,
  .admin-workspace,
  .admin-shell {
    width: calc(100% - 24px);
  }

  .page-shell,
  .admin-shell {
    padding-bottom: 28px;
  }

  .topbar-shell,
  .topbar-left,
  .topbar-right {
    display: grid;
    justify-content: stretch;
    gap: 8px;
  }

  .topbar {
    padding: 8px 0;
  }

  .site-header,
  .site-header-minimal {
    min-height: auto;
    padding: 14px 0 16px;
    gap: 14px;
  }

  .brand-mark,
  .site-header-minimal .brand-mark {
    gap: 10px;
    min-width: 0;
  }

  .brand-badge,
  .site-header-minimal .brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
    flex: 0 0 auto;
  }

  .brand-text,
  .site-header-minimal .brand-text {
    font-size: 22px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-nav,
  .header-tools,
  .header-entry-group,
  .header-user,
  .hero-actions,
  .detail-actions,
  .form-actions,
  .toolbar-actions,
  .product-card-actions,
  .search-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
  }

  .site-nav a,
  .header-link-pill,
  .header-logout,
  .button,
  .chip,
  .button.square {
    width: 100%;
    min-height: 44px;
  }

  .header-search,
  .header-tools-minimal,
  #search-input,
  #review-search {
    min-width: 0;
    width: 100%;
  }

  .header-search {
    grid-template-columns: minmax(0, 1fr) 58px;
    height: 46px;
  }

  .homepage-hero,
  .homepage-subgrid,
  .hero-stage,
  .promo-product-grid,
  .featured-showcase,
  .feature-wide-card > a,
  .promo-product-card-main,
  .product-grid,
  .feature-grid,
  .service-strip,
  .flow-grid,
  .shortcut-grid,
  .search-results-grid,
  .cart-layout,
  .account-layout,
  .support-layout,
  .auth-layout,
  .detail-card,
  .mi-detail-layout,
  .mi-option-grid,
  .mi-spec-highlight-grid,
  .detail-spec-board,
  .detail-module-grid-highlight,
  .detail-module-grid-scene,
  .detail-module-grid-size,
  .detail-module-grid-extra,
  .admin-workspace,
  .admin-layout,
  .admin-hero,
  .admin-page-grid,
  .admin-overview-grid,
  .admin-shortcut-grid,
  .admin-chat-layout,
  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    min-height: auto;
    padding: 10px;
    overflow-x: auto;
  }

  .hero-categories {
    display: flex;
    gap: 8px;
    min-width: max-content;
  }

  .hero-category-item {
    width: auto;
    min-width: 110px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    justify-content: center;
    white-space: nowrap;
  }

  .hero-category-arrow {
    display: none;
  }

  .category-mega-panel {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 14px;
    border-left: none;
  }

  .mega-panel-layout,
  .mega-panel-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-stage-copy {
    padding: 28px 20px 0;
  }

  .hero-stage-copy h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .hero-stage-copy p {
    font-size: 15px;
  }

  .hero-stage-visual {
    min-height: 250px;
  }

  .hero-main-image {
    width: 92%;
    height: 230px;
  }

  .hero-arrow {
    width: 34px;
    height: 56px;
    font-size: 22px;
  }

  .service-panel-grid,
  .service-panel-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-product-card,
  .feature-wide-card,
  .product-card,
  .search-product-card,
  .cart-item-card,
  .account-order-card,
  .admin-order-card,
  .auth-card,
  .review-panel,
  .toolbar-card,
  .detail-section,
  .admin-panel,
  .admin-topbar {
    padding: 16px;
  }

  .promo-product-image,
  .feature-wide-image {
    height: 160px;
  }

  .product-meta h3,
  .search-product-info h3 {
    font-size: 18px;
  }

  .price-row strong,
  .feature-wide-copy strong,
  .summary-row.total strong {
    font-size: 24px;
  }

  .search-filter-panel {
    padding: 14px 0;
  }

  .search-filter-row,
  .search-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-filter-values {
    gap: 8px;
  }

  .search-sort-tabs {
    overflow-x: auto;
  }

  .search-sort-button {
    min-width: 72px;
    min-height: 42px;
  }

  .search-product-link {
    grid-template-rows: 210px 1fr;
  }

  .detail-topbar,
  .detail-section-head,
  .cart-item-head,
  .cart-item-foot,
  .account-order-head,
  .admin-order-head,
  .support-chat-actions,
  .admin-chat-thread-head {
    display: grid;
    justify-content: stretch;
    gap: 12px;
  }

  .detail-topbar-title,
  .mi-info-header h1,
  .detail-section-head h2 {
    font-size: 24px;
  }

  .mi-gallery-panel,
  .mi-info-panel {
    padding: 0;
  }

  .mi-gallery-stage {
    min-height: 260px;
  }

  .mi-gallery-stage img {
    max-height: 260px;
  }

  .mi-thumb {
    width: 68px;
    height: 68px;
  }

  .mi-price-main {
    font-size: 26px;
  }

  .mi-action-bar,
  .admin-order-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cart-item-card {
    gap: 12px;
  }

  .cart-item-image {
    height: 180px;
  }

  .cart-item-check {
    justify-items: start;
  }

  .account-order-item,
  .admin-order-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .chat-message-list,
  .admin-chat-messages {
    min-height: 260px;
    max-height: 420px;
    padding: 12px;
  }

  .admin-sidebar {
    position: static;
    border-radius: 16px;
  }

  .admin-topbar,
  .admin-topbar-tools {
    display: grid;
    justify-items: stretch;
  }

  .admin-token-inline,
  .upload-inline-row input[type="file"] {
    min-width: 0;
  }

  .model-library-actions,
  .upload-inline-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-upload-grid,
  .payment-block-head,
  .admin-payment-panel,
  .payment-proof-form {
    grid-template-columns: 1fr;
  }

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

  .admin-payment-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .small-note,
  .product-summary,
  .search-product-info p,
  .feature-wide-copy p,
  .promo-product-copy p,
  .detail-action-note {
    overflow-wrap: anywhere;
  }
}

/* Mobile simplified shopping flow */
@media (max-width: 640px) {
  .topbar {
    display: none;
  }

  .shop-body {
    background: #f7f7f7;
  }

  .site-header,
  .site-header-minimal {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  }

  .header-entry-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-entry-group .header-link-pill[href="/account"] {
    order: 1;
  }

  .header-entry-group .header-link-pill[href="/register"],
  .header-entry-group .header-link-pill[href="/account"]:last-child {
    order: 2;
  }

  .site-nav {
    display: none;
  }

  .homepage-hero {
    margin-bottom: 10px;
  }

  .category-sidebar {
    margin: 0 -12px;
    padding: 10px 12px;
    background: #ffffff;
  }

  .hero-stage {
    border-radius: 0;
    background: #ffffff;
    min-width: 0;
  }

  .hero-stage-tag,
  .hero-stage-copy p,
  .hero-arrow,
  .service-panel,
  .feature-grid,
  .flow-grid,
  .shortcut-grid,
  .detail-breadcrumb,
  .detail-topbar,
  .detail-section-scene,
  .detail-section-extra {
    display: none;
  }

  .hero-stage-copy {
    padding: 22px 16px 0;
    min-width: 0;
  }

  .hero-stage-copy h1 {
    display: -webkit-box;
    width: 100%;
    max-width: calc(100vw - 56px);
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.16;
    overflow-wrap: anywhere;
    word-break: break-all;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage-visual {
    min-height: 210px;
  }

  .hero-main-image {
    height: 200px;
  }

  .homepage-subgrid {
    display: block;
  }

  .promo-product-grid {
    display: block;
    margin-bottom: 12px;
  }

  .promo-product-card {
    min-height: 0;
    margin-bottom: 10px;
    padding: 14px;
    overflow: hidden;
  }

  .promo-product-card:nth-child(n + 2) {
    display: none;
  }

  .promo-product-card-main,
  .feature-wide-card > a {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }

  .promo-product-copy h3,
  .feature-wide-copy h3 {
    font-size: 18px;
  }

  .promo-product-copy p,
  .feature-wide-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .promo-product-image,
  .feature-wide-image {
    height: 150px;
    order: -1;
  }

  .section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
  }

  .section-title-row h2 {
    margin: 6px 0 0;
    font-size: 20px;
  }

  .hero-eyebrow {
    min-height: 24px;
    padding: 0 10px;
    font-size: 11px;
  }

  .product-grid,
  .search-results-grid {
    gap: 10px;
  }

  .product-card,
  .search-product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0;
    min-height: 132px;
    overflow: hidden;
    text-align: left;
    background: #ffffff;
  }

  .product-card-link,
  .search-product-link {
    display: contents;
  }

  .product-image,
  .search-product-image {
    width: 112px;
    height: 132px;
    aspect-ratio: auto;
    padding: 10px;
  }

  .product-image img,
  .search-product-image img {
    object-fit: contain;
  }

  .product-meta,
  .search-product-info {
    min-height: 132px;
    padding: 12px 12px 8px;
    display: grid;
    align-content: start;
    gap: 6px;
  }

  .product-meta h3,
  .search-product-info h3 {
    display: -webkit-box;
    margin: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }

  .product-summary,
  .search-product-info p {
    min-height: 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .price-row {
    justify-content: flex-start;
    gap: 6px;
  }

  .price-row strong {
    font-size: 20px;
  }

  .price-row span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-actions,
  .search-card-actions {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }

  .product-card-actions .button,
  .search-card-actions .button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .search-breadcrumb {
    min-height: 42px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .search-filter-panel {
    margin-bottom: 10px;
    padding: 10px 0;
  }

  .search-filter-row {
    padding: 10px 0;
  }

  .search-filter-label {
    font-size: 14px;
    color: #666666;
  }

  .search-filter-values {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
  }

  .search-filter-link {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f3f3;
  }

  .search-filter-link.active {
    background: var(--accent);
    color: #ffffff;
  }

  .search-toolbar {
    margin-bottom: 10px;
  }

  .mi-detail-layout {
    gap: 12px;
    margin-bottom: 12px;
  }

  .mi-gallery-panel,
  .mi-info-panel,
  .detail-section,
  .review-panel {
    background: #ffffff;
    border-radius: 0;
  }

  .mi-gallery-stage {
    min-height: 300px;
  }

  .mi-gallery-stage img {
    max-height: 300px;
  }

  .mi-gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mi-info-header h1 {
    font-size: 22px;
  }

  .mi-summary,
  .mi-description,
  .mi-price-note,
  .mi-service-box,
  .detail-action-note,
  .review-panel .section-header .button,
  .review-panel form {
    display: none;
  }

  .mi-price-block,
  .mi-option-block,
  .mi-spec-block {
    padding: 14px 0 0;
  }

  .mi-option-title {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .mi-option-grid,
  .selling-poster-grid,
  .mi-spec-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .selling-poster-tile {
    min-height: 86px;
    padding: 12px;
  }

  .selling-poster-tile strong {
    font-size: 17px;
  }

  .compare-entry-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .current-spec-layout {
    grid-template-columns: 1fr;
  }

  .current-spec-table th,
  .current-spec-table td {
    padding: 12px;
  }

  .current-spec-table th {
    width: 118px;
  }

  .compare-modal-backdrop {
    padding: 10px;
    place-items: stretch;
  }

  .compare-modal {
    max-height: calc(100vh - 20px);
  }

  .compare-modal-head,
  .compare-modal-tools {
    padding: 14px;
  }

  .compare-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .compare-model-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid #eeeeee;
  }

  .compare-table {
    min-width: 620px;
    font-size: 13px;
  }

  .mi-option-card,
  .mi-spec-highlight-card {
    min-height: 72px;
    padding: 12px;
  }

  .mi-option-card span {
    display: none;
  }

  .mi-spec-list {
    max-height: 260px;
    overflow: auto;
    padding-right: 2px;
  }

  .mi-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 60;
    margin: 14px -12px 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }

  .mi-action-bar .detail-secondary-button {
    grid-column: 1 / -1;
  }

  .detail-modules {
    gap: 12px;
    margin: 12px 0 20px;
  }

  .detail-section-head {
    margin-bottom: 12px;
  }

  .detail-section-head h2 {
    font-size: 20px;
  }

  .detail-section-head p {
    display: none;
  }

  .detail-module-media {
    aspect-ratio: 1 / 1;
  }

  .detail-spec-board {
    max-height: 320px;
    overflow: auto;
    padding: 0 12px;
  }

  .detail-spec-board-row {
    padding: 12px 0;
  }

  .review-panel {
    padding: 16px 12px;
  }

  .review-card {
    padding: 14px;
  }

  .cart-page-head {
    margin-top: 10px;
  }

  .cart-item-card {
    grid-template-columns: 32px 90px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .cart-item-image {
    width: 90px;
    height: 90px;
  }

  .cart-item-head {
    gap: 6px;
  }

  .cart-item-head h3 {
    margin: 4px 0;
    font-size: 16px;
  }

  .cart-item-head p {
    display: none;
  }

  .cart-item-foot {
    gap: 8px;
  }

  .quantity-stepper {
    gap: 6px;
  }

  .cart-item-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cart-checkout-panel {
    position: sticky;
    bottom: 0;
    z-index: 40;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }

  .cart-checkout-panel .panel-heading p,
  .cart-checkout-panel textarea[name="note"] {
    display: none;
  }

  .support-chat-form textarea {
    min-height: 96px;
  }

  .admin-sidebar,
  .admin-topbar {
    display: grid;
    gap: 12px;
    padding: 14px;
  }
}

.security-page {
  padding-top: 12px;
}

.security-panel {
  display: grid;
  gap: 18px;
}

.security-panel h1,
.security-panel h2,
.complaint-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.security-panel h1 {
  font-size: 30px;
}

.security-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.security-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.security-grid h2 {
  font-size: 18px;
}

.complaint-panel {
  margin-top: 16px;
}

.complaint-form textarea {
  min-height: 120px;
}

.error-text {
  color: #c62828 !important;
}

@media (max-width: 720px) {
  .security-panel {
    gap: 14px;
    padding: 16px 12px;
    border-radius: 0;
  }

  .security-panel h1 {
    font-size: 24px;
  }

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

  .security-grid article {
    padding: 12px;
  }

  .complaint-panel {
    margin-top: 12px;
  }

  .complaint-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-login-shell {
  width: min(420px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.admin-login-card {
  width: 100%;
  display: grid;
  gap: 18px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.admin-login-card .button {
  width: 100%;
}

.admin-remember-line {
  justify-content: flex-start;
}

.site-legal-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  color: var(--muted);
}

.site-legal-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 22px 0 26px;
  font-size: 13px;
  line-height: 1.8;
}

.site-legal-company,
.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.site-legal-company strong {
  color: var(--text);
}

.site-legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-legal-links a:hover {
  color: var(--accent);
}

.legal-page {
  padding-top: 12px;
}

.legal-panel {
  display: grid;
  gap: 18px;
}

.legal-panel h1,
.legal-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.legal-panel h1 {
  font-size: 30px;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-panel section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.legal-panel ul {
  margin: 0;
  padding-left: 20px;
}

.legal-meta-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.legal-meta-list dt {
  color: var(--text);
  font-weight: 700;
}

.legal-meta-list dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-legal-footer-inner {
    width: min(100% - 24px, 1180px);
    padding: 18px 0 22px;
    font-size: 12px;
  }

  .site-legal-company,
  .site-legal-links {
    display: grid;
    gap: 6px;
  }

  .legal-panel {
    gap: 14px;
    padding: 16px 12px;
  }

  .legal-panel h1 {
    font-size: 24px;
  }

  .legal-panel section {
    padding: 12px;
  }

  .legal-meta-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
