body[data-commerce-shell="wjshop"] {
  --red: #d71920;
  --red-dark: #aa1117;
  --text: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f4f5f7;
  --soft-red: #fff5f5;
  --green: #2f7d32;
  --site-max: 1240px;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}

body[data-commerce-shell="wjshop"] * {
  box-sizing: border-box;
}

body[data-commerce-shell="wjshop"] a {
  color: inherit;
  text-decoration: none;
}

.site-topbar,
.site-header,
.main-nav,
body[data-commerce-shell="wjshop"] main,
.site-footer {
  width: min(calc(100% - 48px), var(--site-max));
  margin-inline: auto;
}

.site-topbar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #e6e8ef;
  border-radius: 0 0 12px 12px;
  background: #f8f9fb;
  color: var(--muted);
  font-size: 12px;
}

.site-topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-locale {
  color: var(--red);
  font-weight: 700;
}

.site-user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #f4c9cd;
  border-radius: 999px;
  background: #fff;
  color: #8f1d22;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.site-quicklinks {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

.logout-form {
  margin: 0;
}

.logout-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.site-header {
  height: 88px;
  display: grid;
  grid-template-columns: 250px minmax(280px, 1fr) 170px;
  align-items: center;
  gap: 26px;
  padding: 0 30px;
  margin-top: 14px;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.site-brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #ff7a45);
  box-shadow: 0 8px 22px rgba(215, 25, 32, 0.24);
}

.site-brand strong {
  display: block;
  color: var(--red);
  font-size: 26px;
  font-weight: 900;
}

.site-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-search {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 112px;
  overflow: hidden;
  border: 3px solid var(--red);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(215, 25, 32, 0.08);
}

.site-search input {
  min-width: 0;
  border: 0;
  padding: 0 20px;
  font-size: 15px;
  outline: none;
}

.site-search button,
.form-panel button,
.auth-panel button {
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.cart-pill {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffd0d0;
  border-radius: 999px;
  background: var(--soft-red);
  color: #c5161d;
  font-size: 14px;
  font-weight: 900;
}

.main-nav {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  overflow-x: auto;
  border-radius: 0 0 16px 16px;
}

.main-nav-all {
  min-width: 210px;
  height: 44px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  background: var(--red-dark);
}

.home-frame {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 14px;
  padding: 14px 24px 0;
}

.category-rail,
.trust-panel,
.filter-panel,
.order-summary,
.form-panel,
.auth-panel,
.table-panel,
.success-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

.category-rail {
  overflow: hidden;
}

.category-rail a {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid #f1f2f5;
}

.category-rail a:first-child {
  background: var(--soft-red);
}

.category-rail strong,
.category-rail span {
  display: block;
}

.category-rail strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.category-rail span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-commerce {
  min-height: 292px;
  position: relative;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe4b5 0%, #ffd7cb 44%, #fff7e6 100%);
  box-shadow: 0 12px 30px rgba(173, 60, 30, 0.12);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 440px;
  padding: 30px 34px;
}

.hero-copy > span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 16px 0 0;
  color: #9f1239;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 900;
}

.hero-copy p {
  margin: 14px 0 0;
  color: #7f1d1d;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hero-actions a {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.hero-actions a + a {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b42318;
}

.hero-basket {
  position: absolute;
  right: 42px;
  top: 28px;
  width: 238px;
  height: 222px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(173, 60, 30, 0.2);
  transform: rotate(-3deg);
}

.hero-basket i,
.hero-basket b,
.hero-basket em,
.hero-basket strong {
  position: absolute;
  display: block;
}

.hero-basket i {
  left: 30px;
  top: 44px;
  width: 150px;
  height: 96px;
  border-radius: 50%;
  background: #ff7a45;
}

.hero-basket b {
  left: -16px;
  top: 108px;
  width: 112px;
  height: 74px;
  border-radius: 50%;
  background: #65a64e;
}

.hero-basket em {
  right: 14px;
  bottom: -2px;
  width: 78px;
  height: 96px;
  border-radius: 999px;
  background: #ffd55f;
  transform: rotate(20deg);
}

.hero-basket strong {
  left: -54px;
  top: 36px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #8b4f2f;
}

.hero-cod {
  position: absolute;
  right: 40px;
  bottom: 24px;
  border-radius: 12px;
  background: #fff;
  color: var(--red);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.16);
}

.trust-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.member-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-box .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 900;
}

.member-box .avatar-auth {
  background: linear-gradient(135deg, #c92d2d 0%, #f2b84b 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(201, 45, 45, 0.22);
}

.member-box strong,
.member-box span {
  display: block;
}

.member-box span,
.trust-panel li,
.trust-panel p {
  color: var(--muted);
  font-size: 12px;
}

.member-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.member-actions a,
.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.member-actions a + a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.member-actions-auth a {
  background: var(--text);
}

.member-actions-auth a + a {
  border-color: rgba(201, 45, 45, 0.18);
  background: var(--soft-red);
  color: var(--red);
}

.trust-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.trust-panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.coupon {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px dashed #f6b4b4;
  border-radius: 10px;
  background: var(--soft-red);
}

.coupon + .coupon {
  margin-top: 8px;
}

.coupon strong {
  color: var(--red);
  font-size: 20px;
}

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

.coupon.muted {
  border-color: #f5c27d;
  background: #fff8ed;
}

.coupon.muted strong {
  color: #d97706;
}

.promo-grid,
.product-section,
.merchant-showcase,
.merchant-directory-shell,
.role-entry-grid,
.dashboard-actions,
.page-band,
.catalog-layout,
.checkout-layout,
.metric-grid,
.table-panel,
.success-panel,
.auth-shell,
.product-detail {
  margin: 18px 24px 0;
}

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

.promo-card {
  min-height: 126px;
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #ffe0e0;
  border-radius: 12px;
  background: #fff;
}

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

.promo-card strong {
  color: #b42318;
  font-size: 15px;
  font-weight: 900;
}

.promo-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.promo-card b {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: var(--red);
  font-size: 22px;
}

.promo-card.green strong { color: var(--green); }
.promo-card.blue strong { color: #315ca8; }
.promo-card.gold strong { color: #9a5b00; }

.product-section {
  padding: 22px 0 0;
}

.merchant-showcase,
.merchant-directory-shell {
  padding: 22px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-head.compact h2 {
  font-size: 22px;
}

.section-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.section-link:hover {
  border-color: #ffd0d0;
  background: var(--soft-red);
  color: var(--red);
}

.sort-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
}

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

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

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

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

.product-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.04);
}

.product-art,
.cart-thumb,
.detail-art {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff1f1;
}

.product-art {
  aspect-ratio: 1 / 0.72;
  display: grid;
  place-items: center;
}

.product-art img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 10px;
  object-fit: contain;
  object-position: center;
}

.product-art span,
.detail-art span {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.tone-green { background: #edf7e8; }
.tone-gold { background: #fff7dc; }
.tone-blue { background: #edf2ff; }
.tone-purple { background: #f5f0ff; }
.tone-teal { background: #eef7f6; }

.product-name {
  display: block;
  height: 38px;
  margin-top: 10px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.merchant-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #475467;
  font-size: 12px;
}

.merchant-line span {
  min-width: 0;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-line strong {
  color: #f59e0b;
  font-weight: 900;
  white-space: nowrap;
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 9px;
}

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

.price-line del {
  margin-bottom: 3px;
  color: #98a2b3;
  font-size: 11px;
}

.sales-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-line {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag-line span {
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: var(--soft-red);
  color: #c5161d;
  padding: 3px 5px;
  font-size: 11px;
}

.tag-line span + span {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

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

.role-entry-grid a {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.role-entry-grid span {
  display: block;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.role-entry-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.45;
}

.merchant-card {
  min-width: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f4 100%);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.05);
  color: inherit;
}

.merchant-card-link {
  color: inherit;
}

.merchant-card-link:hover {
  color: var(--red);
}

.merchant-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.merchant-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #ffd9bf;
  border-radius: 999px;
  background: #fff4ea;
  color: #b54708;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.merchant-card-rating {
  color: #d97706;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

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

.merchant-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merchant-card-contact {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: #475467;
  font-size: 12px;
}

.merchant-card-contact span:last-child {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merchant-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.merchant-card-metrics div {
  min-width: 0;
  border: 1px solid #f0e4dc;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

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

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

.merchant-card-metrics strong {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}

.merchant-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.merchant-card-action {
  min-width: 0;
  flex: 1 1 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.merchant-card-action.primary {
  border-color: #ffd0d0;
  background: var(--soft-red);
  color: var(--red);
}

.merchant-card-action:hover {
  border-color: #ffd0d0;
  color: var(--red);
}

.merchant-detail-shell {
  margin: 18px 24px 0;
}

.merchant-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.merchant-detail-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.merchant-detail-stack {
  display: grid;
  gap: 14px;
}

.merchant-detail-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

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

.merchant-detail-grid div {
  min-width: 0;
  border: 1px solid #f1f2f5;
  border-radius: 12px;
  background: #fafafa;
  padding: 14px;
}

.merchant-detail-grid dt,
.merchant-detail-grid dd {
  margin: 0;
}

.merchant-detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.merchant-detail-grid dd {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  word-break: break-word;
}

.merchant-detail-span-2 {
  grid-column: span 2;
}

.merchant-detail-aside h2 {
  margin: 0;
  font-size: 18px;
}

.merchant-detail-aside ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.merchant-detail-products {
  margin-top: 18px;
}

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

.account-page-band {
  min-height: 132px;
  background: linear-gradient(135deg, #fff0bd, #ffe1d6);
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  margin: 18px 24px 0;
}

.account-card {
  border: 1px solid #e7ebf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.05);
}

.account-profile-form,
.account-security-form {
  gap: 16px;
  padding: 22px;
}

.account-profile-aside,
.account-security-aside {
  padding: 22px;
}

.account-profile-aside p,
.account-security-aside p {
  color: #344054;
  line-height: 1.8;
}

.account-profile-aside .section-link {
  margin-top: 14px;
}

.account-security-form label {
  gap: 8px;
}

.account-security-form input {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
}

.account-security-form button {
  min-height: 44px;
  margin-top: 2px;
}

.security-tips {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  line-height: 1.9;
}

.security-tips li + li {
  margin-top: 6px;
}

.page-band {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1bd, #ffe1d6);
  padding: 28px 34px;
}

.page-band.merchant {
  background: linear-gradient(135deg, #e9f9ef, #fff7d6);
}

.page-band.ops {
  background: linear-gradient(135deg, #edf2ff, #fff1f1);
}

.page-band span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.page-band h1 {
  margin: 8px 0 0;
  font-size: 36px;
  line-height: 1.15;
}

.page-band p {
  margin: 10px 0 0;
  color: #7f1d1d;
}

.band-action {
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  font-weight: 900;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
}

.filter-panel {
  padding: 16px;
}

.filter-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.filter-panel a {
  display: block;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

.filter-panel a.active {
  background: var(--soft-red);
  color: var(--red);
  font-weight: 900;
}

.commerce-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 0 2px;
}

.commerce-pagination a,
.commerce-pagination span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  padding: 0 10px;
  font-size: 13px;
}

.commerce-pagination a:hover {
  border-color: #ffd0d0;
  color: var(--red);
  background: var(--soft-red);
}

.commerce-pagination .current {
  border-color: #ffd0d0;
  background: var(--soft-red);
  color: var(--red);
  font-weight: 900;
}

.commerce-pagination .disabled {
  color: #98a2b3;
  background: #f8fafc;
}

.product-detail {
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.product-detail-summary {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 24px;
}

.detail-gallery {
  display: grid;
  grid-template-rows: 430px auto;
  gap: 12px;
  min-width: 0;
}

.detail-art {
  min-height: 0;
  height: 430px;
}

.detail-main {
  display: grid;
  place-items: center;
  background-position: center;
  background-size: auto;
}

.detail-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

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

.detail-thumb {
  min-width: 0;
  height: 74px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.detail-thumb.active,
.detail-thumb:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 0 2px #ffe1e1;
  outline: none;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}

.detail-info h1 {
  margin: 14px 0 0;
  font-size: 34px;
}

.detail-info p {
  color: var(--muted);
}

.merchant-score,
.promise-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.merchant-score span,
.promise-row span {
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.merchant-score em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.detail-price del {
  margin-left: 8px;
  color: #98a2b3;
}

.buy-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 24px;
}

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

.buy-form input {
  width: 90px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.buy-form button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 0 20px;
  font-weight: 900;
}

.buy-form.secondary {
  margin-top: 10px;
}

.buy-form.secondary button {
  border: 1px solid #fecaca;
  background: #fff;
  color: var(--red);
}

.buy-form.secondary button.is-favorited {
  border-color: #fda4af;
  background: var(--soft-red);
  color: #b42318;
}

.product-detail-tabs {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.product-detail-tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  justify-content: start;
  gap: 8px;
  margin-bottom: 18px;
}

.product-detail-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.product-detail-tab.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.12);
}

.detail-tab-panel[hidden] {
  display: none;
}

.product-store-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  border: 1px solid #f3ded2;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf6 0%, #ffffff 58%, #fff5f5 100%);
  padding: 20px;
}

.product-store-main > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.product-store-main h2 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.3;
}

.product-store-main p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.7;
}

.product-store-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.product-store-facts div {
  min-width: 0;
  border: 1px solid #f0e4dc;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.product-store-facts dt,
.product-store-facts dd {
  margin: 0;
}

.product-store-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.product-store-facts dd {
  margin-top: 5px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-word;
}

.product-store-span-2 {
  grid-column: span 2;
}

.product-store-side {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.product-store-metrics {
  display: grid;
  gap: 10px;
}

.product-store-metrics div {
  border: 1px solid #ffe0e0;
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
}

.product-store-metrics span,
.product-store-metrics strong {
  display: block;
}

.product-store-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.product-store-metrics strong {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 900;
}

.product-store-actions {
  display: grid;
  gap: 8px;
}

.detail-description {
  padding-top: 0;
}

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

.product-info-card {
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  padding: 18px;
}

.product-info-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 18px;
}

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

.product-spec-grid div {
  min-width: 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
}

.product-spec-grid dt,
.product-spec-grid dd {
  margin: 0;
}

.product-spec-grid dt {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.product-spec-grid dd {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  word-break: break-word;
}

.product-info-notes {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-info-notes p,
.detail-empty-text {
  margin: 0;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  padding: 13px 14px;
  line-height: 1.8;
}

.detail-rich-text {
  margin: 0;
  color: #344054;
  line-height: 1.8;
}

.detail-rich-image {
  margin: 0;
  display: grid;
  gap: 8px;
}

.detail-rich-image img {
  width: auto;
  max-width: 100%;
  height: 420px;
  display: block;
  justify-self: start;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: contain;
}

.detail-rich-image figcaption {
  color: #111827;
  font-size: 14px;
}

.detail-rich-image p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 150px 110px 70px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.cart-thumb {
  height: 66px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.cart-quantity-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.cart-quantity-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.cart-quantity-form input {
  width: 72px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
}

.cart-quantity-form button,
.cart-remove-form button {
  height: 34px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: var(--soft-red);
  color: var(--red);
  padding: 0 10px;
  font-weight: 900;
  cursor: pointer;
}

.cart-remove-form button {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.order-summary,
.form-panel {
  padding: 18px;
}

.order-summary h2,
.table-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.order-summary dl {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.order-summary dt {
  color: var(--muted);
}

.order-summary .total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 18px;
  font-weight: 900;
}

.form-panel {
  display: grid;
  gap: 13px;
}

.merchant-product-form {
  align-content: start;
  gap: 16px;
}

.merchant-form-card,
.merchant-media-uploader,
.merchant-rich-editor {
  display: grid;
  gap: 14px;
}

.merchant-form-card {
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 16px;
}

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

.merchant-field-span-2 {
  grid-column: 1 / -1;
}

.merchant-form-section-head {
  display: grid;
  gap: 4px;
}

.merchant-form-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
}

.merchant-form-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.merchant-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.merchant-image-toolbar button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.merchant-image-toolbar span {
  flex: 1 1 240px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.merchant-current-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.merchant-editable-images {
  display: grid;
  gap: 10px;
}

.merchant-image-row {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.merchant-image-row.is-primary {
  border-color: #f1c4c6;
  background: #fff8f8;
}

.merchant-image-row.is-dragging {
  opacity: 0.58;
}

.merchant-image-row-preview {
  width: 100%;
  max-width: 184px;
}

.merchant-image-row-preview,
.merchant-image-row figure {
  display: grid;
  gap: 8px;
}

.merchant-image-row-head,
.merchant-image-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.merchant-image-row-head strong {
  color: #111827;
  font-size: 14px;
}

.merchant-media-uploader .merchant-drag-handle {
  min-height: 34px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: grab;
}

.merchant-media-uploader .merchant-primary-toggle,
.merchant-media-uploader .merchant-image-remove {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.merchant-media-uploader .merchant-primary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.merchant-media-uploader .merchant-primary-toggle input {
  width: auto;
  margin: 0;
}

.merchant-media-uploader .merchant-image-remove {
  border-color: #fecaca;
  background: var(--soft-red);
  color: var(--red);
  cursor: pointer;
}

.merchant-image-row-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.merchant-image-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

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

.merchant-current-images figure,
.upload-preview-grid figure,
.rich-current-image {
  margin: 0;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.merchant-image-row figure {
  margin: 0;
  align-content: start;
}

.merchant-image-row [data-image-preview],
.merchant-image-row [data-image-placeholder] {
  display: block;
  width: 100%;
  height: 156px;
  min-height: 156px;
  max-height: 156px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  object-fit: contain;
  overflow: hidden;
}

.merchant-current-images img,
.upload-preview-grid img,
.rich-current-image img,
.merchant-current-images .image-placeholder {
  display: block;
  width: 100%;
  height: 132px;
  min-height: 132px;
  max-height: 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  object-fit: contain;
}

.image-placeholder {
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.merchant-current-images figcaption,
.upload-preview-grid figcaption,
.rich-current-image figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-image-row figcaption {
  display: grid;
  gap: 2px;
}

.merchant-image-row figcaption strong {
  color: #111827;
  font-size: 13px;
}

.merchant-image-row figcaption span {
  color: var(--muted);
  font-size: 12px;
}

.rich-editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rich-editor-toolbar button,
.rich-block-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.rich-blocks {
  display: grid;
  gap: 12px;
}

.rich-block {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 12px;
}

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

.rich-block-head strong {
  color: #111827;
  font-size: 14px;
}

.rich-block-grid {
  display: grid;
  gap: 10px;
}

.rich-block[data-rich-type="text"] .rich-image-fields {
  display: none;
}

.merchant-product-submit {
  justify-self: start;
  min-width: 220px;
}

.form-panel label,
.auth-panel label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.form-panel input,
.form-panel textarea,
.form-panel select,
.auth-panel input,
.inline-form input,
.inline-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

.form-panel button,
.auth-panel button {
  min-height: 42px;
  border-radius: 999px;
}

.merchant-apply-shell {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.merchant-apply-header {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  padding: 22px 24px;
}

.merchant-apply-header span,
.merchant-apply-section-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.merchant-apply-header h1 {
  margin: 7px 0 0;
  font-size: 24px;
  line-height: 1.3;
}

.merchant-apply-header p,
.merchant-apply-section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.merchant-apply-status {
  min-width: 148px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.merchant-apply-status span,
.merchant-apply-status strong {
  display: block;
}

.merchant-apply-status strong {
  margin-top: 6px;
  font-size: 18px;
}

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

.merchant-apply-form,
.merchant-apply-guidance {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.04);
}

.merchant-apply-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.merchant-apply-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.merchant-apply-form input,
.merchant-apply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.merchant-apply-form textarea {
  resize: vertical;
}

.merchant-apply-review-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
}

.merchant-apply-review-note dt {
  color: var(--muted);
  font-weight: 700;
}

.merchant-apply-review-note dd {
  margin: 0;
  color: #344054;
}

.merchant-apply-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.merchant-apply-submit,
.merchant-apply-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.merchant-apply-submit {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
}

.merchant-apply-actions a {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
}

.merchant-apply-guidance {
  display: grid;
  gap: 0;
  padding: 18px;
}

.merchant-apply-guidance section + section {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.merchant-apply-guidance h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.merchant-apply-guidance ol,
.merchant-apply-guidance ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 20px;
}

.merchant-apply-guidance li {
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.merchant-apply-guidance strong,
.merchant-apply-guidance span {
  display: block;
}

.merchant-apply-guidance strong {
  color: var(--text);
  font-weight: 700;
}

.success-panel {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 34px;
  text-align: center;
}

.success-panel > span {
  color: var(--green);
  font-weight: 900;
}

.success-panel h1 {
  margin: 12px 0;
  font-size: 36px;
}

.success-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.success-meta div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.success-meta strong,
.success-meta span {
  display: block;
}

.success-meta strong {
  color: var(--muted);
  font-size: 12px;
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.auth-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
}

.auth-panel > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.auth-panel h1 {
  margin: 0;
  font-size: 28px;
}

.auth-panel p,
.auth-panel a {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.agreement-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  font-weight: 400;
  line-height: 1.6;
}

.agreement-check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.agreement-check a {
  color: var(--red);
  font-weight: 800;
}

.form-error {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: var(--soft-red);
  color: #b42318;
  padding: 10px;
  font-size: 13px;
}

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

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-actions a,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: var(--soft-red);
  color: var(--red);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.merchant-status-panel,
.legal-panel {
  margin: 18px 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

.merchant-status-panel strong {
  display: block;
  font-size: 18px;
}

.merchant-status-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.merchant-status-panel.pending {
  border-color: #fde68a;
  background: #fffbeb;
}

.merchant-status-panel.approved {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.merchant-status-panel.rejected {
  border-color: #fecaca;
  background: var(--soft-red);
}

.legal-panel {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
}

.legal-panel > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.legal-panel h1 {
  margin: 10px 0 18px;
  font-size: 32px;
}

.legal-panel h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.legal-panel p {
  color: #475467;
  line-height: 1.8;
}

.metric-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

.table-panel {
  padding: 18px;
  overflow-x: auto;
}

.table-panel table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table-panel th,
.table-panel td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.table-panel th {
  color: #344054;
  font-weight: 900;
}

.table-panel td span {
  color: var(--muted);
  font-size: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 8px;
}

.inline-form.compact {
  grid-template-columns: minmax(72px, 1fr) auto;
  margin-top: 6px;
}

.inline-form button {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: var(--soft-red);
  color: var(--red);
  padding: 0 12px;
  font-weight: 900;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  color: var(--muted);
}

.empty-state.wide {
  margin: 18px 24px 0;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 28px;
  background: #111827;
  color: #fff;
}

.site-footer-main {
  max-width: 760px;
}

.site-footer span {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
}

.site-footer-meta span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 0;
}

.site-footer-link {
  color: #e2e8f0;
}

.site-footer-link:hover {
  color: #fff;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: start;
}

.footer-badges span {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
}

@media (max-width: 1180px) {
  .home-frame,
  .checkout-layout,
  .merchant-apply-layout,
  .product-detail-summary,
  .product-store-panel,
  .catalog-layout,
  .merchant-detail-layout,
  .account-shell {
    grid-template-columns: 1fr;
  }

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

  .promo-grid,
  .role-entry-grid,
  .merchant-card-grid,
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .site-topbar,
  .site-footer,
  .section-head,
  .main-nav {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
  }

  .site-topbar,
  .main-nav {
    padding: 10px 16px;
  }

  .site-topbar-meta {
    flex-wrap: wrap;
  }

  .site-quicklinks {
    flex-wrap: wrap;
  }

  .home-frame,
  .promo-grid,
  .product-section,
  .merchant-showcase,
  .merchant-directory-shell,
  .role-entry-grid,
  .page-band,
  .merchant-apply-shell,
  .catalog-layout,
  .checkout-layout,
    .metric-grid,
    .dashboard-actions,
    .table-panel,
  .success-panel,
  .auth-shell,
  .product-detail {
    margin-left: 12px;
    margin-right: 12px;
  }

  .site-topbar,
  .site-header,
  .main-nav,
  body[data-commerce-shell="wjshop"] main,
  .site-footer {
    width: min(calc(100% - 24px), var(--site-max));
  }

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

  .hero-basket {
    opacity: 0.28;
  }

  .product-grid,
  .product-grid.small,
  .promo-grid,
  .merchant-card-grid,
  .product-detail-tab-list,
  .role-entry-grid,
  .metric-grid,
  .success-meta {
    grid-template-columns: 1fr;
  }

  .merchant-image-toolbar,
  .merchant-image-row-head,
  .merchant-image-row-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .merchant-product-fields,
  .merchant-current-images,
  .upload-preview-grid,
  .merchant-image-row-fields,
  .product-spec-grid,
  .product-store-facts,
  .merchant-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-spec-grid div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-store-span-2 {
    grid-column: auto;
  }

  .merchant-field-span-2 {
    grid-column: auto;
  }

  .merchant-detail-span-2 {
    grid-column: auto;
  }

  .merchant-image-row {
    grid-template-columns: 1fr;
  }

  .merchant-image-row-preview {
    max-width: none;
  }

  .merchant-product-submit {
    width: 100%;
    justify-self: stretch;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cart-item > strong,
  .cart-quantity-form,
  .cart-remove-form {
    grid-column: 2;
  }

  .detail-gallery {
    grid-template-rows: 300px auto;
  }

  .detail-art {
    height: 300px;
  }

  .detail-rich-image img {
    height: 280px;
  }
}
