:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f5fb;
  --ink: #07142f;
  --muted: #7e8ca5;
  --line: #e5ebf5;
  --accent: #1f6fff;
  --accent-dark: #095be8;
  --warn: #f4a340;
  --danger: #ff1616;
  --ok: #20bf7b;
  --shadow: 0 16px 42px rgba(42, 75, 128, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.store-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at 86% 4%, rgba(204, 231, 255, 0.55), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #f3f6fb 52%, #eef3f8 100%);
}

.store-shell {
  width: min(1830px, calc(100% - 88px));
  margin: 0 auto;
  padding: 24px 0 26px;
}

.store-main {
  width: 100%;
}

.store-header {
  display: grid;
  grid-template-columns: 430px 1fr 270px;
  align-items: center;
  height: 66px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(218, 228, 242, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 32px rgba(52, 75, 111, 0.08);
  backdrop-filter: blur(18px);
}

.store-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.store-logo {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(145deg, #347bff, #1061ee);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 20px rgba(28, 107, 255, 0.28);
}

.store-logo::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  width: 26px;
  height: 16px;
  border-radius: 3px;
  background: white;
}

.store-logo::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 24px;
  height: 12px;
  background: linear-gradient(150deg, transparent 47%, #2b73ff 48% 56%, transparent 57%);
}

.brand-title {
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-subtitle {
  color: #7b8aa4;
  font-size: 15px;
  font-weight: 700;
}

.store-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  height: 100%;
  font-size: 16px;
  font-weight: 850;
}

.store-nav a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
}

.store-nav a.active {
  color: var(--accent);
}

.store-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.theme-button,
.ghost-login,
.register-button {
  display: inline-grid;
  min-width: 94px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 850;
}

.theme-button {
  min-width: 38px;
  width: 38px;
  background: transparent;
  color: #06142d;
  font-size: 22px;
}

.ghost-login {
  background: #f3f6fb;
  color: #1a2a45;
}

.register-button {
  background: linear-gradient(180deg, #2279ff, #1061f2);
  color: white;
  box-shadow: 0 8px 18px rgba(25, 105, 255, 0.28);
}

.mf-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  min-height: 328px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid rgba(217, 229, 244, 0.88);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.92) 49%, rgba(229, 245, 255, 0.86) 100%);
  box-shadow: 0 16px 40px rgba(54, 87, 134, 0.08);
}

.mf-hero::before,
.mf-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mf-hero::before {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 72%, rgba(116, 187, 255, 0.13) 72.25%, transparent 72.9%),
    linear-gradient(135deg, transparent 82%, rgba(116, 187, 255, 0.09) 82.2%, transparent 82.85%),
    radial-gradient(circle at 58% 40%, rgba(214, 233, 255, 0.55) 0 5px, transparent 6px);
}

.mf-hero::after {
  right: 330px;
  top: 122px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(221, 237, 255, 0.8);
  transform: rotate(45deg);
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  padding: 68px 0 54px 48px;
}

.hero-copy-block h1 {
  margin: 0 0 24px;
  font-size: 50px;
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy-block h1 span,
.hero-copy-block h1 b {
  color: var(--accent);
}

.hero-copy-block h1 b {
  font-size: 48px;
  font-style: normal;
}

.hero-copy-block p {
  margin: 0 0 38px;
  color: #41506a;
  font-size: 22px;
  font-weight: 500;
}

.hero-features {
  display: flex;
  align-items: center;
  gap: 54px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-feature i {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 25px;
  font-weight: 950;
}

.feature-blue {
  background: #e6f0ff;
  color: #2373ff;
}

.feature-green {
  background: #dff8ef;
  color: #20b979;
}

.feature-purple {
  background: #eee7ff;
  color: #8b62f5;
}

.hero-feature strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.hero-feature small {
  color: #72809a;
  font-size: 14px;
  font-weight: 600;
}

.hero-art {
  position: relative;
  min-height: 328px;
  isolation: isolate;
}

.slot-base {
  position: absolute;
  right: 174px;
  bottom: 0;
  width: 412px;
  height: 172px;
  border-radius: 36px 36px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 243, 255, 0.96) 51%, rgba(213, 226, 252, 0.98) 100%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.86),
    inset 0 -26px 42px rgba(80, 132, 229, 0.13),
    0 24px 42px rgba(41, 94, 185, 0.14);
  transform: perspective(720px) rotateX(10deg) skewX(1deg);
  z-index: 1;
}

.slot-base::before {
  content: "";
  position: absolute;
  left: 52px;
  right: 52px;
  top: 46px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(180deg, #155fee 0%, #0c51d6 100%);
  box-shadow:
    inset 0 10px 18px rgba(1, 27, 92, 0.35),
    0 12px 28px rgba(24, 97, 230, 0.2);
}

.slot-base::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(202, 220, 251, 0.18), rgba(185, 207, 246, 0.42));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%);
}

.delivery-card {
  position: absolute;
  right: 230px;
  top: 30px;
  display: grid;
  width: 238px;
  height: 220px;
  place-items: center;
  padding: 30px 26px 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, #5a9bff 0%, #2b7cff 40%, #1767ed 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 22px 42px rgba(26, 98, 224, 0.28);
  transform: rotate(5deg) skewX(-2deg);
  z-index: 2;
}

.delivery-card span {
  align-self: start;
  margin-top: 18px;
  font-size: 19px;
  font-weight: 850;
}

.delivery-card b {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2472f4;
  font-size: 33px;
  line-height: 1;
}

.float-square {
  position: absolute;
  width: 31px;
  height: 31px;
  border-radius: 5px;
  background: #dceaff;
  opacity: 0.7;
  transform: rotate(45deg);
}

.square-one {
  right: 96px;
  top: 84px;
  width: 31px;
  height: 31px;
}

.square-two {
  right: 690px;
  bottom: 72px;
  width: 12px;
  height: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 612px;
  gap: 14px;
  margin-top: 22px;
}

.store-card {
  border: 1px solid rgba(219, 229, 243, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 35px rgba(54, 80, 116, 0.07);
}

.products-panel {
  min-height: 710px;
  padding: 28px 31px 34px;
}

.panel-heading,
.notice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.process-card h2,
.notice-heading h2,
.security-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.link-button {
  border: 0;
  background: transparent;
  color: #697995;
  font-size: 14px;
  font-weight: 700;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 23px 0 19px;
}

.category-tabs button {
  min-width: 86px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: #f0f4fa;
  color: #8b98ae;
  font-size: 15px;
  font-weight: 800;
}

.category-tabs button.active {
  background: linear-gradient(180deg, #2379ff, #1263ee);
  color: white;
  box-shadow: 0 9px 17px rgba(31, 111, 255, 0.24);
}

.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

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

.shop-product-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 260px;
  align-items: center;
  min-height: 96px;
  padding: 13px 15px 13px 18px;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 12px rgba(53, 82, 122, 0.03);
}

.product-logo {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.logo-play {
  background:
    radial-gradient(circle at 50% 50%, #4ff052 0 20%, transparent 21%),
    linear-gradient(135deg, #050505, #111827);
  color: #2e8cff;
}

.logo-iqiyi {
  background: linear-gradient(145deg, #1ce183, #0abf5d);
  font-size: 16px;
}

.logo-wps {
  background: linear-gradient(145deg, #ff6a45, #ee2029);
  font-size: 32px;
}

.logo-steam {
  background: linear-gradient(145deg, #061334, #116aa3);
  font-size: 32px;
}

.logo-music {
  background: linear-gradient(145deg, #ffe713, #18b575);
  color: #059e85;
  font-size: 40px;
}

.shop-product-info {
  min-width: 0;
}

.product-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.product-title-line h3 {
  margin: 0;
  overflow: hidden;
  color: #101a31;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-info p {
  margin: 8px 0 0;
  overflow: hidden;
  color: #7f8da7;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-grid;
  min-width: 68px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 850;
}

.tag-green {
  background: #e0fbef;
  color: #19a76d;
}

.tag-blue {
  background: #e8f1ff;
  color: #2475ff;
}

.shop-product-buy {
  display: grid;
  grid-template-columns: 72px 86px 124px;
  align-items: center;
  justify-content: end;
  gap: 18px;
}

.shop-product-buy .stock {
  justify-self: end;
  padding: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.shop-product-buy .price {
  color: var(--danger);
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.buy-button {
  width: 122px;
  height: 46px;
  min-height: 46px;
  border-radius: 7px;
  background: linear-gradient(180deg, #2077ff, #0f63ed);
  box-shadow: 0 8px 16px rgba(22, 102, 240, 0.2);
}

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

.process-card {
  min-height: 350px;
  padding: 28px 26px 20px;
}

.process-list {
  position: relative;
  display: grid;
  gap: 27px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: #dce5f2;
}

.process-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.process-list span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 0 0 5px white;
}

.step-blue {
  background: #2578ff;
}

.step-green {
  background: #1fbd82;
}

.step-purple {
  background: #8a61f4;
}

.step-orange {
  background: #f0a33c;
}

.process-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.process-list li:nth-child(1) strong {
  color: #2476ff;
}

.process-list li:nth-child(2) strong {
  color: #1bb77c;
}

.process-list li:nth-child(3) strong {
  color: #825cf0;
}

.process-list li:nth-child(4) strong {
  color: #ea9b36;
}

.process-list small {
  color: #8390a8;
  font-size: 13px;
  font-weight: 650;
}

.notice-card {
  min-height: 181px;
  padding: 25px 25px 20px;
}

.notice-heading h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
}

.notice-heading h2 span {
  color: #ff9d24;
  font-size: 17px;
}

.notice-heading a {
  color: #8390a8;
  font-size: 13px;
  font-weight: 800;
}

.notice-card ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.notice-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 12px;
  color: #64728c;
  font-size: 14px;
  font-weight: 650;
}

.notice-card li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-card li span::before {
  content: "•";
  margin-right: 8px;
  color: #10213d;
}

.notice-card time {
  color: #8290a9;
  text-align: right;
}

.security-card {
  min-height: 150px;
  padding: 24px 26px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.security-grid div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.security-grid i {
  display: grid;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e8f1ff;
  color: #1f6fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.security-grid strong {
  font-size: 16px;
}

.security-grid small {
  color: #7f8da4;
  font-size: 13px;
  font-weight: 650;
}

.store-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 34px;
  min-height: 96px;
  margin-top: 16px;
  padding: 0 50px;
  border: 1px solid rgba(219, 229, 243, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 35px rgba(54, 80, 116, 0.06);
  color: #7b89a2;
  font-size: 15px;
  font-weight: 700;
}

.store-footer nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.store-footer p {
  margin: 0;
}

.pay-dot {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 11px;
}

.wechat {
  background: #28c05b;
}

.alipay {
  background: #177dff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  min-height: 330px;
  padding: 56px 0 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
}

h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eaf5f2);
  box-shadow: var(--shadow);
}

.hero-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 8px rgba(21, 128, 61, 0.12);
}

.toolbar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 18px;
}

.toolbar p,
.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.product-card,
.admin-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.6;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 800;
}

.price {
  color: var(--ink);
  font-size: 24px;
}

.stock {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13px;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  padding: 0 18px;
  background: var(--accent);
  color: white;
}

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

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

.secondary-button {
  padding: 0 16px;
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.danger-button {
  padding: 0 14px;
  background: #fff5f5;
  border-color: #ffd5d2;
  color: var(--danger);
}

.icon-button {
  width: 40px;
  background: var(--surface-soft);
  color: var(--ink);
}

.empty-state {
  padding: 40px;
  text-align: center;
}

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

.hidden {
  display: none !important;
}

dialog {
  width: min(520px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(23, 32, 51, 0.22);
}

dialog::backdrop {
  background: rgba(23, 32, 51, 0.5);
}

.dialog-shell {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 28px;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-message.error {
  color: var(--danger);
}

.form-message.ok {
  color: var(--ok);
}

.admin-layout {
  display: grid;
  gap: 22px;
  padding: 28px 0 56px;
}

.admin-panel {
  padding: 24px;
}

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

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

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 20px;
}

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

.admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

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

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
}

.code-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

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

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.code-cell {
  max-width: 240px;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-sent {
  color: var(--ok);
}

.status-email_failed,
.status-no_stock {
  color: var(--danger);
}

@media (max-width: 820px) {
  .store-shell {
    width: min(100% - 24px, 1830px);
    padding-top: 12px;
  }

  .store-header {
    grid-template-columns: 1fr;
    height: auto;
    gap: 14px;
    padding: 14px;
  }

  .store-brand {
    justify-content: center;
  }

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

  .brand-subtitle {
    display: none;
  }

  .store-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    min-height: 42px;
    padding-bottom: 2px;
    font-size: 14px;
  }

  .store-nav a {
    height: 42px;
    flex: 0 0 auto;
  }

  .header-actions {
    justify-content: center;
  }

  .mf-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy-block {
    padding: 34px 24px 22px;
  }

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

  .hero-copy-block p {
    font-size: 17px;
  }

  .hero-features {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-art {
    min-height: 250px;
  }

  .slot-base {
    right: 50%;
    width: 310px;
    transform: translateX(50%) perspective(650px) rotateX(10deg);
  }

  .delivery-card {
    right: 50%;
    width: 190px;
    height: 168px;
    transform: translateX(50%) rotate(6deg);
  }

  .delivery-card span {
    font-size: 16px;
  }

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

  .products-panel {
    min-height: 0;
    padding: 22px 16px;
  }

  .category-tabs {
    gap: 10px;
  }

  .category-tabs button {
    min-width: auto;
    padding: 0 14px;
  }

  .shop-product-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .product-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .product-title-line {
    flex-wrap: wrap;
  }

  .product-title-line h3,
  .shop-product-info p {
    white-space: normal;
  }

  .shop-product-buy {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 122px;
    width: 100%;
  }

  .shop-product-buy .stock {
    display: none;
  }

  .shop-product-buy .price {
    text-align: left;
  }

  .security-grid,
  .store-footer {
    grid-template-columns: 1fr;
  }

  .store-footer {
    gap: 14px;
    min-height: 0;
    padding: 22px;
    text-align: center;
  }

  .store-footer nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .site-header {
    padding: 0 20px;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .split-panel,
  .admin-form {
    grid-template-columns: 1fr;
  }

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

  .toolbar,
  .section-heading,
  .admin-item-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
