:root {
  --ink: #202124;
  --muted: #646a73;
  --line: #e4e7ec;
  --paper: #ffffff;
  --soft: #f6f2eb;
  --green: #16715f;
  --green-soft: #e5f3ee;
  --amber: #c47a1d;
  --coral: #c85f4f;
  --sky: #2386d1;
  --sun: #f3b53f;
  --graphite: #2f3437;
  --shadow: 0 24px 70px rgba(38, 42, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.shop-html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 4%, rgba(35, 134, 209, 0.12), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(243, 181, 63, 0.18), transparent 24%),
    #fbfaf8;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.trust-row,
.visual-topbar,
.contact-panel {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.nav {
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--green);
}

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta,
.primary-button {
  color: #fff;
  background: var(--green);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
}

.section {
  padding: 88px 6vw;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 72px 0 auto;
  height: 520px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(22, 113, 95, 0.1), rgba(35, 134, 209, 0.08), rgba(200, 95, 79, 0.08));
  mask-image: linear-gradient(#000, transparent);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.lead,
.section-heading p,
.split p,
.feature-card p,
.article-card p,
.faq p,
.contact p,
.site-footer {
  color: var(--muted);
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 18px;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-points span {
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--graphite);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(38, 42, 46, 0.08);
}

.trust-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.product-visual {
  display: grid;
  grid-template-columns: 78px 1fr;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(229, 243, 238, 0.86)),
    var(--paper);
  box-shadow: var(--shadow);
}

.visual-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  background: var(--graphite);
}

.visual-sidebar span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.visual-sidebar span:first-child {
  background: var(--amber);
}

.visual-main {
  padding: 28px;
}

.visual-topbar {
  justify-content: space-between;
  margin-bottom: 22px;
}

.visual-topbar span {
  color: var(--muted);
}

.visual-topbar strong {
  color: var(--green);
  font-size: 28px;
}

.metric-grid,
.feature-grid,
.product-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

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

.metric-grid article,
.feature-card,
.article-card,
.solution-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-grid article {
  padding: 18px;
}

.metric-grid small,
.article-card small {
  display: block;
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.pipeline {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--green-soft);
}

.pipeline span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

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

.contact-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-list small {
  color: var(--muted);
  text-align: right;
}

.band {
  background:
    linear-gradient(135deg, rgba(229, 243, 238, 0.72), rgba(246, 242, 235, 0.95)),
    var(--soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

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

.product-section .section-heading {
  max-width: 850px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(38, 42, 46, 0.1);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-card-body {
  padding: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--sky));
  font-size: 13px;
  font-weight: 700;
}

.product-card ul,
.detail-list {
  margin: 18px 0;
  padding-left: 18px;
  color: var(--muted);
}

.text-link {
  color: var(--green);
  font-weight: 700;
}

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

.feature-card,
.article-card,
.solution-list article {
  padding: 24px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 46px;
}

.company {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
  gap: 46px;
  align-items: center;
}

.asset-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.asset-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.proof-list span {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
}

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

.solution-list article {
  border-left: 4px solid var(--coral);
}

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

.article-card {
  min-height: 210px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(38, 42, 46, 0.1);
}

.article-card-news {
  display: flex;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  flex-direction: column;
}

.article-card-media {
  display: block;
  overflow: hidden;
  background: #eef4f1;
}

.article-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.article-card-news:hover .article-card-media img {
  transform: scale(1.03);
}

.article-card-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.article-card-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.article-card-body p {
  margin: 0;
}

.article-card-body b {
  color: var(--green);
  font-size: 14px;
}

.section-button {
  margin-top: 28px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: 72px 6vw;
}

.page-hero img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.price-box {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-layout {
  max-width: 920px;
  margin: 0 auto;
}

.article-shell {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.article-layout h1 {
  font-size: 42px;
}

.article-layout h2 {
  margin-top: 34px;
  font-size: 26px;
}

.article-layout p,
.article-layout li {
  color: var(--muted);
}

.article-summary {
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--green-soft);
  color: #31524a;
}

.article-cover {
  margin: 26px 0 30px;
}

.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.article-shell .primary-button {
  margin-top: 12px;
}

.agent-page {
  min-height: calc(100vh - 72px);
}

.agent-product-thumb {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-soft);
}

.agent-detail-thumb {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-soft);
}

.article-image {
  margin: 28px 0;
}

.article-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.faq {
  max-width: 980px;
  margin: 0 auto;
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: center;
  background: var(--graphite);
  color: #fff;
}

.contact .eyebrow,
.contact p {
  color: #d8efe8;
}

.contact-panel {
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.qr-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #fff;
  font-weight: 700;
}

.qr-card img {
  display: block;
  flex: 0 0 138px;
  width: 138px;
  height: 138px;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.qr-placeholder {
  display: grid;
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 8px;
  color: var(--graphite);
  background:
    linear-gradient(90deg, #fff 12px, transparent 1%) 0 0 / 24px 24px,
    linear-gradient(#fff 12px, transparent 1%) 0 0 / 24px 24px,
    #dff2ec;
  font-weight: 700;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.7fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 28px;
  color: var(--coral);
}

.price-display span {
  font-size: 28px;
  font-weight: 800;
}

.price-display strong {
  font-size: 72px;
  line-height: 1;
}

.price-display em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.shop-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.shop-overview a {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 44px rgba(38, 42, 46, 0.08);
}

.shop-overview a.active {
  border-color: rgba(22, 113, 95, 0.46);
  background: #fff;
}

.shop-overview span,
.shop-overview small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.shop-overview b {
  display: block;
  margin: 10px 0 2px;
  color: var(--green);
  font-size: 42px;
  line-height: 1;
}

.shop-catalog {
  padding-top: 34px;
  scroll-margin-top: 88px;
}

.shop-module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.shop-module-tabs a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--graphite);
  font-weight: 800;
}

.shop-module-tabs a.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  align-items: stretch;
  justify-content: start;
  gap: 18px;
}

@media (min-width: 1180px) {
  .shop-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shop-product-card {
  min-width: 0;
  height: 100%;
}

.shop-product-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 276px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(38, 42, 46, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.shop-product-link:hover {
  border-color: rgba(22, 113, 95, 0.34);
  box-shadow: 0 22px 54px rgba(38, 42, 46, 0.12);
  transform: translateY(-3px);
}

.shop-product-link > .product-icon {
  display: none;
}

.shop-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.shop-product-thumb {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border: 1px solid rgba(22, 113, 95, 0.16);
  border-radius: 16px;
  background: var(--green-soft);
  object-fit: cover;
}

.shop-product-thumb-empty {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(243, 181, 63, 0.95), transparent 24%),
    linear-gradient(135deg, #0e2f2a, #16715f 58%, #2386d1);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.shop-product-thumb-empty::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.shop-product-thumb-empty::after {
  content: "";
  position: absolute;
  inset: auto 8px 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.shop-product-badges {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.shop-product-badges span {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  color: #d3385a;
  background: #ffe9ef;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.shop-product-badges span:first-child {
  color: #6d35d8;
  background: #f1e8ff;
}

.product-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(22, 113, 95, 0.16);
  border-radius: 14px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 22px;
  font-weight: 900;
}

.shop-product-card .price-display {
  margin-top: auto;
  padding-top: 14px;
}

.shop-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.shop-product-meta span,
.shop-product-meta b {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f4;
  color: var(--muted);
  font-size: 13px;
}

.shop-product-meta b {
  color: #0a7b5d;
  background: #ddf5ec;
}

.shop-product-action {
  margin-top: 14px;
  color: var(--green);
  line-height: 1.3;
}

.shop-buy-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.shop-buy-main {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 9px;
  margin-top: 14px;
  min-width: 0;
}

.shop-buy-main h3,
.shop-buy-main p {
  margin-bottom: 0;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.shop-buy-main .badge {
  display: none;
  justify-self: start;
  max-width: 100%;
}

.shop-buy-main h3 {
  min-height: 2.9em;
  -webkit-line-clamp: 2;
}

.shop-buy-main p {
  min-height: 2.8em;
  color: var(--muted);
  -webkit-line-clamp: 2;
}

.compact-price {
  margin-top: 8px;
}

.compact-price strong {
  font-size: 48px;
}

.product-order-box {
  padding: 18px;
  box-shadow: none;
  background: #f8faf9;
}

.empty-module {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-module h3,
.empty-module p {
  margin-bottom: 0;
}

.empty-module p {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 800;
}

.product-detail-page {
  padding-top: 34px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 22px;
  align-items: start;
}

.product-detail-main,
.product-checkout-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 54px rgba(38, 42, 46, 0.1);
}

.product-detail-main {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.product-detail-head {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-title-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.product-title-row h1,
.product-title-row p {
  margin: 0;
}

.product-title-row p,
.product-copy,
.product-copy p {
  color: var(--muted);
}

.product-poster {
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 38px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(243, 181, 63, 0.45), transparent 28%),
    radial-gradient(circle at 20% 82%, rgba(35, 134, 209, 0.35), transparent 30%),
    linear-gradient(135deg, #10231f, #16715f);
}

.product-poster span {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.product-poster strong {
  color: #f3d48a;
  font-size: 28px;
}

.product-poster small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.product-copy ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.product-checkout-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.checkout-price {
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-soft), #fff8eb);
}

.checkout-price span,
.checkout-price em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.checkout-price strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
}

.checkout-lines {
  display: grid;
  gap: 8px;
}

.checkout-lines p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  background: #f4f7f6;
}

.checkout-lines b {
  color: var(--graphite);
}

.product-detail-order {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-detail-order small {
  color: var(--muted);
  text-align: center;
}

.order-box {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.order-box-head {
  display: grid;
  gap: 6px;
}

.order-box-head span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 800;
}

.order-box h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.order-box-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.order-box label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.order-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.order-summary,
.order-detail {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-summary span,
.order-detail span {
  color: var(--muted);
}

.order-summary b,
.order-detail b {
  min-width: 0;
  word-break: break-word;
}

.delivery-box {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.delivery-box h2 {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .delivery-notice {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
  }

  .delivery-notice h3 {
    margin-bottom: 8px;
    font-size: 18px;
  }
  
.delivery-box p:last-child {
    margin-bottom: 0;
  }

.muted-box {
  background: #f8faf9;
}

.admin-order-detail {
  margin-bottom: 20px;
}

.shop-showcase {
  padding-top: 34px;
}

.shop-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shop-feature-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(38, 42, 46, 0.06);
}

.shop-feature-grid span {
  color: var(--coral);
  font-weight: 900;
}

.shop-feature-grid h3 {
  margin: 10px 0 8px;
}

.shop-feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 6vw;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.float-service {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  box-shadow: 0 16px 38px rgba(200, 95, 79, 0.34);
  font-weight: 700;
}

.float-service:hover {
  transform: translateY(-2px);
}

.admin-body {
  min-height: 100vh;
  color: #17211f;
  background:
    radial-gradient(circle at 10% -4%, rgba(22, 113, 95, 0.18), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(243, 181, 63, 0.2), transparent 28%),
    linear-gradient(180deg, #eef5f2 0%, #f7f9f8 34%, #eef2f0 100%);
}

.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.44) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 72%);
}

.admin-shell,
.admin-panel {
  width: min(1160px, calc(100% - 40px));
  margin: 38px auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 90px rgba(24, 42, 38, 0.16);
  backdrop-filter: blur(18px);
}

.admin-shell {
  max-width: 520px;
  margin-top: 84px;
  padding: 32px;
}

.admin-topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 62, 52, 0.96), rgba(22, 113, 95, 0.93)),
    #123e34;
  box-shadow: 0 20px 48px rgba(22, 73, 62, 0.24);
}

.admin-topbar > div:first-child {
  display: grid;
  align-content: center;
  min-width: 220px;
}

.admin-topbar .eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.admin-topbar h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.admin-topbar .hero-actions {
  justify-content: flex-end;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-body .primary-button,
.admin-body .secondary-button {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

.admin-body .primary-button {
  background: linear-gradient(135deg, #e7a93a, #c47a1d);
}

.admin-body .secondary-button {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
}

.admin-body .secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.admin-shell h1 {
  margin-top: 0;
  font-size: 36px;
}

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

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #d9e2df;
  border-radius: 10px;
  color: #1e2926;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: rgba(22, 113, 95, 0.66);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 113, 95, 0.12);
}

.admin-form textarea {
  resize: vertical;
}

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

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

.admin-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.admin-checkbox input,
.admin-check input {
  width: auto;
  min-height: 0;
}

.admin-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.admin-check input {
  width: auto;
}

.admin-error {
  padding: 14px 16px;
  border: 1px solid rgba(200, 95, 79, 0.2);
  border-left: 5px solid var(--coral);
  border-radius: 12px;
  color: #8a2d20;
  background: #fff1ef;
}

.admin-notice {
  padding: 14px 16px;
  border: 1px solid rgba(22, 113, 95, 0.18);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  color: #0d5f4f;
  background: var(--green-soft);
}

.admin-help {
  color: var(--muted);
  font-size: 14px;
}

.admin-upload {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 250, 0.94)),
    #f8faf9;
  box-shadow: 0 14px 38px rgba(31, 53, 48, 0.07);
}

.admin-upload h3,
.admin-upload p {
  margin: 0;
}

.admin-table {
  display: grid;
  gap: 12px;
}

.admin-table article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #dfe7e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(31, 53, 48, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-table article:hover {
  border-color: rgba(22, 113, 95, 0.28);
  box-shadow: 0 20px 48px rgba(31, 53, 48, 0.11);
  transform: translateY(-2px);
}

.admin-table article > div:first-child {
  min-width: 0;
}

.admin-table small {
  color: var(--muted);
  font-weight: 700;
}

.admin-table h3 {
  margin: 6px 0 4px;
  color: #17211f;
}

.admin-table p {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-body .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: #0d6d5b;
  font-weight: 700;
}

.admin-body .text-link:hover {
  color: #fff;
  background: #16715f;
}

.admin-dashboard-body {
  min-height: 100vh;
  overflow: hidden;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  width: min(1440px, calc(100% - 32px));
  height: calc(100vh - 32px);
  margin: 16px auto;
}

.admin-sidebar,
.admin-workspace {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 80px rgba(24, 42, 38, 0.16);
  backdrop-filter: blur(18px);
}

.admin-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #123e34, #16715f);
  box-shadow: 0 18px 40px rgba(22, 73, 62, 0.22);
}

.admin-sidebar-brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #123e34;
  background: #f3d48a;
  font-size: 20px;
  font-weight: 800;
}

.admin-sidebar-brand b,
.admin-sidebar-brand small {
  display: block;
}

.admin-sidebar-brand small {
  color: rgba(255, 255, 255, 0.72);
}

.admin-side-nav {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding-right: 2px;
}

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

.admin-nav-group p {
  margin: 8px 4px 2px;
  color: #7a8783;
  font-size: 12px;
  font-weight: 800;
}

.admin-side-nav a {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #34423f;
  background: transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-side-nav a:hover {
  border-color: rgba(22, 113, 95, 0.14);
  background: rgba(22, 113, 95, 0.07);
  transform: translateX(2px);
}

.admin-side-nav a.is-active {
  border-color: rgba(22, 113, 95, 0.22);
  color: #0f5f50;
  background: linear-gradient(135deg, rgba(229, 243, 238, 0.95), rgba(255, 248, 235, 0.88));
  box-shadow: inset 4px 0 0 #16715f;
}

.admin-side-nav b,
.admin-side-nav small {
  display: block;
}

.admin-side-nav small {
  color: var(--muted);
  font-size: 12px;
}

.admin-sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e2e8e6;
}

.admin-sidebar-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  color: #16715f;
  background: #fff;
  font-weight: 700;
}

.admin-sidebar-compact .admin-sidebar-footer {
  grid-template-columns: 1fr;
}

.admin-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.admin-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 248, 0.96)),
    #fff;
}

.admin-workspace-head h1 {
  margin: 0;
  font-size: 30px;
}

.admin-workspace-head span {
  color: var(--muted);
}

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

.admin-workspace-actions .secondary-button {
  border-color: #dce5e1;
  color: #16715f;
  background: #fff;
  cursor: pointer;
}

.admin-frame-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dfe8e4;
  border-radius: 18px;
  background: #fbfdfc;
}

.admin-frame-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.admin-frame-body {
  min-height: auto;
  padding: 22px;
  background: transparent !important;
}

.admin-frame-body::before {
  display: none;
}

.admin-frame-body .admin-panel,
.admin-frame-body .admin-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-frame-body .admin-topbar {
  align-items: center;
  margin-bottom: 18px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #e0e8e5;
  border-radius: 0;
  color: #17211f;
  background: transparent;
  box-shadow: none;
}

.admin-frame-body .admin-topbar .eyebrow {
  color: #16715f;
}

.admin-frame-body .admin-topbar h1 {
  color: #17211f;
  font-size: 28px;
}

.admin-frame-body .admin-topbar .hero-actions,
.admin-frame-body .admin-topbar > .secondary-button {
  display: none;
}

.admin-frame-body .primary-button {
  color: #fff;
  background: linear-gradient(135deg, #16715f, #0f5f50);
}

.admin-frame-body .secondary-button,
.admin-frame-body .overview-actions .secondary-button,
.admin-frame-body .admin-inline-form .secondary-button {
  border-color: #dce5e1;
  color: #0f5f50;
  background: #fff;
}

.admin-frame-body .secondary-button:hover {
  border-color: rgba(22, 113, 95, 0.36);
  color: #fff;
  background: #16715f;
}

.admin-frame-body .admin-table article {
  box-shadow: 0 10px 28px rgba(31, 53, 48, 0.06);
}

.admin-frame-body .admin-form {
  max-width: 920px;
}

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

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

.overview-metrics a,
.overview-panel {
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(31, 53, 48, 0.08);
}

.overview-metrics a {
  display: grid;
  gap: 6px;
  min-height: 130px;
  padding: 18px;
}

.overview-metrics span,
.overview-row small,
.muted-text {
  color: var(--muted);
}

.overview-metrics b {
  color: #14211e;
  font-size: 34px;
  line-height: 1.1;
}

.overview-metrics small {
  color: #16715f;
  font-weight: 800;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(229, 243, 238, 0.82), rgba(255, 248, 235, 0.7));
}

.admin-hub-grid,
.supplier-group-filter {
  display: grid;
  gap: 12px;
}

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

.admin-hub-card,
.supplier-group-filter a {
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(31, 53, 48, 0.07);
}

.admin-hub-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
}

.admin-hub-card span,
.admin-hub-card small {
  color: var(--muted);
  font-weight: 700;
}

.admin-hub-card b {
  color: #14211e;
  font-size: 34px;
}

.admin-hub-card:hover,
.supplier-group-filter a:hover,
.supplier-group-filter a.is-active {
  border-color: rgba(22, 113, 95, 0.34);
  background: linear-gradient(135deg, rgba(229, 243, 238, 0.96), rgba(255, 248, 235, 0.9));
}

.supplier-group-filter {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 4px 0 8px;
}

.supplier-group-filter a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  color: #243430;
  font-weight: 800;
}

.supplier-group-filter b {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #0f5f50;
  background: #e5f3ee;
  text-align: center;
}

.admin-fold {
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  box-shadow: 0 16px 38px rgba(31, 53, 48, 0.07);
}

.admin-fold summary {
  cursor: pointer;
  color: #0f5f50;
  font-weight: 900;
}

.admin-fold .admin-form {
  margin-top: 14px;
}

.supplier-category-row {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) 110px minmax(180px, 1fr) 70px;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e5eeea;
  border-radius: 14px;
  background: #fff;
}

.supplier-category-row span {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.admin-inline-details {
  margin-top: 10px;
  color: var(--muted);
}

.admin-inline-details summary {
  cursor: pointer;
  color: #0f5f50;
  font-weight: 800;
}

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

.overview-panel {
  padding: 18px;
}

.overview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ece9;
}

.overview-panel-head h3 {
  margin: 0;
}

.overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f0;
}

.overview-row:last-child {
  border-bottom: 0;
}

.overview-row b,
.overview-row small {
  display: block;
}

.overview-row span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f5f50;
  background: #e5f3ee;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .admin-dashboard {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 18px);
    height: calc(100vh - 18px);
    margin: 9px auto;
  }

  .admin-sidebar {
    padding: 12px;
  }

  .admin-sidebar-brand {
    padding: 10px;
  }

  .admin-side-nav a {
    padding: 11px 12px;
  }

  .admin-workspace {
    padding: 12px;
  }

  .admin-workspace-head {
    display: grid;
    padding: 14px;
  }

  .admin-workspace-head h1 {
    font-size: 26px;
  }

  .admin-workspace-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .admin-dashboard-body {
    overflow: auto;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 18px);
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 260px;
  }

  .admin-nav-group {
    align-content: start;
  }

  .admin-workspace {
    min-height: 720px;
  }

  .overview-metrics,
  .overview-columns {
    grid-template-columns: 1fr;
  }
}

.payment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
  min-height: 430px;
  background:
    linear-gradient(135deg, rgba(231, 247, 243, 0.94), rgba(255, 248, 235, 0.82)),
    #f8fbf8;
}

.payment-status-card {
  display: grid;
  gap: 12px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.payment-status-card span,
.payment-status-card small {
  color: var(--muted);
}

.payment-status-card strong {
  color: var(--green);
  font-size: 46px;
  line-height: 1;
}

.payment-shell {
  background: #fff;
}

.payment-panel {
  display: grid;
  gap: 24px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.payment-method {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.payment-method button {
  grid-column: 1 / -1;
  justify-self: start;
}

.pay-action-form {
  grid-column: 1 / -1;
  margin: 0;
}

.payment-method button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.payment-method h3,
.payment-method p {
  margin: 0;
}

.payment-method p {
  color: var(--muted);
}

.payment-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.alipay .payment-icon {
  background: #1677ff;
}

.wechat-pay .payment-icon {
  background: var(--green);
}

.payment-note {
  padding: 18px;
  border: 1px solid rgba(19, 122, 101, 0.22);
  border-radius: 8px;
  background: var(--green-soft);
}

.payment-note h3,
.payment-note p {
  margin-top: 0;
}

.mobile-tabbar {
  display: none;
}

.order-query-page .order-box {
  max-width: 560px;
  box-shadow: none;
}

.order-query-results {
  margin-top: 30px;
}

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

.order-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(38, 42, 46, 0.08);
}

.order-list-card small,
.order-list-card p {
  color: var(--muted);
}

.order-list-card h3,
.order-list-card p {
  margin-bottom: 0;
}

.order-list-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.order-list-meta strong {
  font-size: 20px;
}

.order-list-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 800;
}

.order-list-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .site-header {
    min-height: 64px;
  }

  .hero,
  .split,
  .company,
  .contact,
  .shop-hero,
  .shop-buy-card,
  .payment-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
  }

  h1 {
    font-size: 42px;
  }

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

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

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    background: #fbfaf8;
    font-size: 15px;
    line-height: 1.65;
  }

  body,
  p,
  a,
  h1,
  h2,
  h3,
  b,
  strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  h1,
  h2,
  h3,
  .lead {
    line-break: anywhere;
    word-break: break-all;
  }

  .hero > *,
  .shop-hero > *,
  .page-hero > *,
  .payment-hero > *,
  .shop-buy-card > *,
  .payment-method > *,
  .contact > * {
    min-width: 0;
  }

  .hero-copy,
  .shop-hero > div,
  .page-hero > div,
  .payment-hero > div,
  .section-heading,
  .article-layout {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .site-header {
    min-height: 58px;
    padding: 0 16px;
    border-bottom-color: rgba(228, 231, 236, 0.7);
  }

  .float-service {
    display: none;
  }

  .brand {
    min-width: 0;
    font-size: 16px;
  }

  .brand span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  .nav-cta {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: min(370px, calc(100vw - 20px));
    padding: 7px;
    transform: translateX(-50%);
    border: 1px solid rgba(228, 231, 236, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(38, 42, 46, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar a {
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    border-radius: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-tabbar a.active {
    color: var(--green);
    background: var(--green-soft);
  }

  .mobile-tabbar span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    background: #f3f5f4;
    font-size: 13px;
  }

  .mobile-tabbar a.active span {
    color: #fff;
    background: var(--green);
  }

  .mobile-tabbar b {
    font-size: 12px;
    line-height: 1;
  }

  .section {
    padding: 38px 16px;
  }

  .hero,
  .shop-hero,
  .payment-hero,
  .page-hero {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: auto;
    gap: 22px;
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .hero::before {
    inset: 58px 0 auto;
    height: 280px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 26px;
    line-height: 1.24;
  }

  h2 {
    font-size: 24px;
    line-height: 1.22;
  }

  h3 {
    font-size: 18px;
  }

  .lead {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
  }

  .product-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-sidebar {
    display: none;
  }

  .visual-main {
    padding: 18px;
  }

  .product-visual,
  .product-card,
  .feature-card,
  .article-card,
  .detail-card,
  .price-box,
  .contact-panel,
  .shop-buy-card,
  .order-box,
  .payment-panel,
  .payment-status-card,
  .payment-method,
  .delivery-box,
  .empty-module {
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(38, 42, 46, 0.08);
  }

  .product-card-body,
  .feature-card,
  .article-card,
  .detail-card,
  .price-box,
  .payment-panel,
  .payment-status-card,
  .payment-method,
  .delivery-box,
  .empty-module {
    padding: 18px;
  }

  .metric-grid,
  .hero-points,
  .feature-grid,
  .product-grid,
  .compact-features,
  .detail-grid,
  .article-grid,
  .shop-feature-grid,
  .shop-overview {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .feature-grid,
  .product-grid,
  .article-grid,
  .detail-grid,
  .shop-feature-grid,
  .shop-product-grid {
    gap: 12px;
  }

  .product-card img,
  .page-hero img {
    max-height: 220px;
    object-fit: cover;
  }

  .hero-points span {
    padding: 11px 12px;
    box-shadow: none;
  }

  .trust-row {
    margin-top: 18px;
  }

  .shop-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-overview a {
    min-height: 96px;
    padding: 14px;
  }

  .shop-overview b {
    font-size: 30px;
  }

  .shop-module-tabs {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px 18px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .shop-module-tabs::-webkit-scrollbar {
    display: none;
  }

  .shop-module-tabs a {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 14px;
  }

  .shop-buy-card {
    padding: 16px;
    gap: 14px;
  }

  .shop-buy-main {
    gap: 9px;
  }

  .compact-price strong,
  .price-display strong {
    font-size: 42px;
  }

  .price-display span {
    font-size: 21px;
  }

  .product-order-box {
    padding: 14px;
    box-shadow: none;
  }

  .order-box {
    gap: 14px;
  }

  .order-box input,
  .admin-form input,
  .admin-form textarea,
  .admin-form select {
    min-height: 48px;
    font-size: 16px;
  }

  .order-summary,
  .order-detail {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .order-summary div,
  .order-detail div {
    display: grid;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .order-summary div:last-child,
  .order-detail div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

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

  .payment-status-card strong {
    font-size: 36px;
  }

  .payment-panel {
    gap: 18px;
    padding: 18px;
  }

  .payment-method {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .payment-method button,
  .pay-action-form,
  .pay-action-form .primary-button {
    width: 100%;
  }

  .delivery-box h2 {
    font-size: 22px;
  }

  .delivery-box p {
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid var(--line);
  }

  .delivery-box p:last-child {
    border-bottom: 0;
  }

  .delivery-notice {
    margin: 12px 0;
    padding: 14px;
  }

  .delivery-notice p {
    padding: 0;
    border-bottom: 0;
  }

  .article-layout {
    width: 100%;
    max-width: 100%;
  }

  .article-layout h1 {
    font-size: 26px;
  }

  .article-layout h2 {
    font-size: 23px;
  }

  .contact {
    gap: 22px;
  }

  .qr-card img {
    width: 118px;
  }

  .contact-list div,
  .contact-panel,
  .admin-topbar,
  .admin-table article,
  .site-footer {
    flex-direction: column;
  }

  .contact-list small {
    text-align: left;
  }
}

@media (max-width: 640px) {
  *,
  *::before,
  *::after {
    max-width: 100%;
  }

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

  main,
  .section,
  .hero,
  .shop-hero,
  .payment-hero,
  .page-hero,
  .article-layout,
  .shop-catalog,
  .shop-showcase {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .section,
  .hero,
  .shop-hero,
  .payment-hero,
  .page-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-copy,
  .hero-copy > *,
  .shop-hero > *,
  .page-hero > *,
  .payment-hero > *,
  .section-heading,
  .article-layout > *,
  .order-box,
  .order-summary,
  .order-detail,
  .delivery-box,
  .payment-panel,
  .payment-method,
  .shop-buy-card,
  .product-card,
  .feature-card,
  .article-card,
  .detail-card,
  .price-box {
    min-width: 0;
    max-width: 100%;
  }

  h1,
  .article-layout h1 {
    font-size: clamp(24px, 6.1vw, 28px);
    line-height: 1.28;
    text-wrap: balance;
  }

  .article-card-news {
    padding: 0;
  }

  .article-card-body {
    padding: 16px;
  }

  .article-shell {
    padding: 18px;
    box-shadow: 0 12px 28px rgba(38, 42, 46, 0.08);
  }

  .article-summary {
    padding: 14px;
  }

  .lead {
    max-width: 100%;
    font-size: 15px;
  }

  .shop-tags,
  .trust-row {
    flex-wrap: nowrap;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .shop-tags::-webkit-scrollbar,
  .trust-row::-webkit-scrollbar {
    display: none;
  }

  .shop-tags span,
  .trust-row span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .shop-buy-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .price-display {
    flex-wrap: wrap;
    margin-top: 10px;
  }

.order-box,
.payment-panel {
  width: 100%;
}

  .order-list-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .order-list-meta {
    justify-items: start;
  }

  .order-list-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-box label,
  .admin-form label {
    min-width: 0;
  }

  .order-box input,
  .admin-form input,
  .admin-form textarea,
  .admin-form select {
    max-width: 100%;
  }

  .text-link,
  .delivery-box a,
  .order-detail b,
  .order-summary b {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mobile-tabbar {
    right: auto;
    left: 50%;
    width: calc(100dvw - 20px);
    max-width: 370px;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .mobile-tabbar a,
  .mobile-tabbar span,
  .mobile-tabbar b {
    white-space: nowrap;
  }

  .site-footer {
    display: grid;
    padding: 20px 16px 92px;
  }
}

.agent-auth-body,
.agent-store-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(47, 104, 232, 0.12), rgba(143, 55, 226, 0.14) 46%, rgba(22, 113, 95, 0.08)),
    #f7f9fe;
}

.agent-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 40px;
  align-items: center;
  min-height: 100vh;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
}

.agent-auth-brand,
.agent-auth-card,
.agent-category-panel,
.agent-detail-card,
.agent-buy-card {
  border: 1px solid rgba(210, 218, 238, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(54, 65, 102, 0.12);
  backdrop-filter: blur(16px);
}

.agent-auth-brand {
  padding: 44px;
}

.agent-auth-brand h1 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 54px;
}

.agent-auth-brand p {
  max-width: 620px;
  color: #526078;
  font-size: 18px;
}

.agent-auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.agent-auth-points span {
  min-height: 78px;
  padding: 16px;
  border-radius: 14px;
  color: #24304f;
  background: linear-gradient(135deg, #eef5ff, #fff);
  font-weight: 800;
}

.agent-auth-card {
  padding: 34px;
}

.agent-auth-card h2 {
  margin: 0;
  font-size: 30px;
}

.agent-login-form {
  margin-top: 24px;
}

.agent-auth-register {
  color: #64748b;
  text-align: center;
}

.agent-store-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 5vw;
  border-top: 3px solid #7c2ce0;
  background: #fff;
}

.agent-store-logo {
  display: grid;
  gap: 2px;
  color: #076b76;
}

.agent-store-logo b {
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.agent-store-logo span {
  color: #42606a;
  font-weight: 800;
  letter-spacing: 6px;
}

.agent-member-pill {
  display: grid;
  grid-template-columns: 46px auto;
  gap: 10px 14px;
  align-items: center;
  min-width: 260px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f0e9ff;
}

.agent-member-pill::before {
  content: "代";
  display: grid;
  width: 46px;
  height: 46px;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2f6ee8, #bb3fd9);
  font-weight: 900;
}

.agent-member-pill span,
.agent-member-pill b {
  color: #3538a5;
  line-height: 1.2;
}

.agent-quick-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.agent-quick-links a,
.agent-store-nav a,
.agent-store-search button,
.agent-feature-card a,
.agent-goods-card em,
.agent-back-link {
  border-radius: 999px;
  font-weight: 800;
}

.agent-quick-links a {
  padding: 10px 14px;
  color: #1f2a44;
}

.agent-quick-links a:first-child {
  color: #fff;
  background: #7c2ce0;
}

.agent-store-nav {
  display: grid;
  grid-template-columns: repeat(4, max-content) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px 5vw;
  color: #fff;
  background: linear-gradient(90deg, #3d75ed, #7b19de);
}

.agent-store-nav a {
  position: relative;
  padding: 10px 20px;
}

.agent-store-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -12px;
  width: 14px;
  height: 14px;
  transform: translateX(50%) rotate(45deg);
  background: #fff;
}

.agent-store-search {
  display: flex;
  justify-self: end;
  width: min(420px, 100%);
  padding: 4px;
  border-radius: 999px;
  background: #fff;
}

.agent-store-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 16px;
  outline: 0;
  font-size: 15px;
}

.agent-store-search button {
  border: 0;
  padding: 9px 22px;
  color: #fff;
  background: #7c2ce0;
  cursor: pointer;
}

.agent-store-main {
  width: min(1210px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.agent-feature-strip {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.agent-feature-card {
  display: grid;
  place-items: center;
  min-height: 156px;
  padding: 20px;
  border-radius: 4px;
  color: #e7165c;
  background: linear-gradient(135deg, #ffdbe7, #fff0f5);
  text-align: center;
}

.agent-feature-card strong {
  font-size: 24px;
}

.agent-feature-card a {
  padding: 8px 18px;
  color: #fff;
  background: #e7165c;
}

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

.agent-feature-products a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 10px;
  border: 1px solid #e4e7ec;
  background: #fff;
}

.agent-feature-products img {
  width: 86px;
  height: 86px;
  object-fit: cover;
}

.agent-feature-products span,
.agent-goods-placeholder,
.product-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2f6ee8, #7c2ce0);
  font-weight: 900;
}

.agent-feature-products span {
  width: 86px;
  height: 86px;
}

.agent-feature-products b {
  color: #172033;
}

.agent-feature-products strong {
  color: #e7165c;
  font-size: 20px;
}

.agent-section-title {
  display: flex;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.agent-section-title b {
  color: #172033;
  font-size: 26px;
}

.agent-section-title span {
  color: #748094;
}

.agent-category-panel {
  padding: 28px;
  margin-bottom: 28px;
}

.agent-category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #d8deeb;
}

.agent-category-grid a {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 126px;
  padding: 14px 8px;
  border-radius: 14px;
  color: #172033;
}

.agent-category-grid a.is-active,
.agent-category-grid a:hover {
  background: #f0e9ff;
}

.agent-category-grid span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #34b5c8, #7c2ce0);
  font-size: 22px;
  font-weight: 900;
}

.agent-category-grid small {
  color: #7b879a;
}

.agent-platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.agent-platform-tabs a {
  padding: 9px 16px;
  border: 1px solid #dbe3f4;
  border-radius: 999px;
  color: #536071;
  background: #fff;
  font-weight: 800;
}

.agent-platform-tabs a.is-active,
.agent-platform-tabs a:hover {
  color: #fff;
  border-color: transparent;
  background: #7c2ce0;
}

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

.agent-goods-card a {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid #e5eaf4;
  border-radius: 8px;
  background: #fff;
}

.agent-goods-card img,
.agent-goods-placeholder {
  width: 132px;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
}

.agent-goods-card small {
  color: #12a9b7;
  font-weight: 800;
}

.agent-goods-card h3 {
  margin: 6px 0;
  color: #111827;
}

.agent-goods-card p {
  margin: 0;
  color: #657287;
}

.agent-goods-card strong {
  color: #f0335c;
  font-size: 28px;
}

.agent-goods-card em {
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, #8d42e8, #f04ab2);
  font-style: normal;
}

.agent-detail-main {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.agent-back-link {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: #4e4bd8;
  background: #efeefe;
}

.agent-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.agent-detail-card,
.agent-buy-card {
  padding: 28px;
}

.agent-detail-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6ecf5;
}

.agent-detail-head img,
.agent-detail-head .agent-goods-placeholder {
  width: 260px;
  min-height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.agent-detail-head h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.agent-detail-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.agent-detail-specs div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  background: #f3f6fd;
}

.agent-detail-specs span {
  color: #64748b;
  font-size: 13px;
}

.agent-detail-specs b {
  color: #172033;
}

.agent-buy-card {
  position: sticky;
  top: 24px;
}

.agent-buy-card > small {
  color: #64748b;
  font-weight: 800;
}

.agent-buy-card > strong {
  display: block;
  margin: 8px 0 18px;
  color: #f0335c;
  font-size: 44px;
  line-height: 1;
}

.agent-supplier-preview,
.supplier-product-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.agent-supplier-preview img,
.supplier-product-row .agent-product-thumb,
.supplier-product-row .product-icon {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
}

.admin-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-row-actions .primary-button {
  min-height: 38px;
  padding: 0 14px;
}

@media (max-width: 980px) {
  .agent-auth,
  .agent-detail-layout,
  .agent-detail-head,
  .agent-feature-strip,
  .agent-store-header,
  .agent-store-nav {
    grid-template-columns: 1fr;
  }

  .agent-store-nav {
    gap: 8px;
  }

  .agent-store-search {
    justify-self: stretch;
    width: 100%;
  }

  .agent-feature-products,
  .agent-category-grid,
  .agent-detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-goods-card a {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .agent-goods-card strong,
  .agent-goods-card em {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .agent-auth {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 22px 0;
  }

  .agent-auth-brand,
  .agent-auth-card {
    padding: 22px;
    border-radius: 14px;
  }

  .agent-auth-brand h1 {
    font-size: 34px;
  }

  .agent-auth-brand p {
    font-size: 15px;
  }

  .agent-auth-points {
    grid-template-columns: 1fr;
  }

  .agent-store-header {
    gap: 14px;
    padding: 16px;
  }

  .agent-store-logo b {
    font-size: 30px;
  }

  .agent-store-logo span {
    letter-spacing: 3px;
  }

  .agent-member-pill {
    min-width: 0;
    width: 100%;
  }

  .agent-quick-links,
  .agent-platform-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .agent-quick-links::-webkit-scrollbar,
  .agent-platform-tabs::-webkit-scrollbar {
    display: none;
  }

  .agent-quick-links a,
  .agent-platform-tabs a {
    flex: 0 0 auto;
  }

  .agent-store-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .agent-store-nav a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .agent-store-search {
    flex: 1 0 100%;
  }

  .agent-store-main,
  .agent-detail-main {
    width: calc(100% - 28px);
    padding: 18px 0 92px;
  }

  .agent-feature-products,
  .agent-category-grid,
  .agent-detail-specs {
    grid-template-columns: 1fr;
  }

  .agent-feature-products a {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .agent-feature-products strong {
    justify-self: start;
  }

  .agent-feature-products img,
  .agent-feature-products span {
    width: 72px;
    height: 72px;
  }

  .agent-category-panel,
  .agent-detail-card,
  .agent-buy-card {
    padding: 18px;
    border-radius: 14px;
  }

  .agent-category-grid {
    gap: 10px;
  }

  .agent-category-grid a {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    justify-items: start;
    min-height: 64px;
    align-items: center;
  }

  .agent-category-grid span {
    width: 44px;
    height: 44px;
  }

  .agent-goods-card a {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .agent-goods-card img,
  .agent-goods-placeholder {
    width: 88px;
    height: 88px;
  }

  .agent-goods-card h3 {
    font-size: 16px;
  }

  .agent-goods-card strong {
    font-size: 24px;
  }

  .agent-detail-head img,
  .agent-detail-head .agent-goods-placeholder {
    width: 100%;
    min-height: 220px;
  }

  .agent-detail-head h1 {
    font-size: 26px;
  }

  .agent-buy-card {
    position: static;
  }

  .agent-supplier-preview,
  .supplier-product-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .supplier-category-row,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .agent-supplier-preview img,
  .supplier-product-row .agent-product-thumb,
  .supplier-product-row .product-icon {
    width: 64px;
    height: 64px;
  }

  .admin-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-product-link {
    min-height: 232px;
    padding: 14px;
    border-radius: 12px;
  }

  .shop-product-link:hover {
    transform: none;
  }

  .shop-product-link .product-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .shop-card-head {
    min-height: 54px;
    gap: 8px;
  }

  .shop-product-thumb {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 12px;
  }

  .shop-product-thumb-empty {
    padding: 7px;
    font-size: 12px;
  }

  .shop-product-thumb-empty::before {
    width: 17px;
    height: 17px;
    inset: 8px 8px auto auto;
  }

  .shop-product-thumb-empty::after {
    right: 7px;
    bottom: 7px;
    left: 7px;
  }

  .shop-product-badges {
    gap: 4px;
  }

  .shop-product-badges span {
    padding: 3px 6px;
    border-radius: 7px;
    font-size: 11px;
  }

  .shop-buy-main {
    gap: 7px;
    margin-top: 10px;
  }

  .shop-buy-main .badge {
    min-height: 24px;
    margin-bottom: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .shop-buy-main h3 {
    min-height: 2.9em;
    font-size: 15px;
    line-height: 1.45;
  }

  .shop-buy-main p {
    min-height: 2.8em;
    font-size: 12px;
    line-height: 1.4;
  }

  .shop-product-card .price-display {
    gap: 4px;
    padding-top: 12px;
  }

  .shop-product-card .compact-price strong {
    font-size: 28px;
  }

  .shop-product-card .price-display span {
    font-size: 16px;
  }

  .shop-product-card .price-display em {
    font-size: 12px;
  }

  .shop-product-meta {
    gap: 6px;
    margin-top: 10px;
  }

  .shop-product-meta span,
  .shop-product-meta b {
    padding: 4px 7px;
    font-size: 12px;
  }

  .shop-product-action {
    margin-top: 10px;
    font-size: 13px;
  }

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

  .product-checkout-card {
    position: static;
  }

  .product-detail-main,
  .product-checkout-card {
    padding: 16px;
  }

  .product-poster {
    min-height: 240px;
    padding: 24px;
  }

  .product-title-row {
    align-items: flex-start;
  }
}
