:root {
  --ink: #202226;
  --muted: #66707d;
  --line: #d9e3eb;
  --paper: #f7fafb;
  --panel: #ffffff;
  --teal: #1ed0b7;
  --blue: #1f82cf;
  --lime: #b7e84f;
  --amber: #ffba49;
  --danger: #eb4d5c;
  --shadow: 0 18px 50px rgba(28, 43, 55, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eefcfa 0, #f7fafb 420px),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(30, 208, 183, 0.2), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(255, 186, 73, 0.16), transparent 24%),
    linear-gradient(135deg, #f8ffff 0%, #eef8fb 48%, #f6f8ec 100%);
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 34, 38, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(32, 34, 38, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  animation: gridMove 14s linear infinite;
}

.signal-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signal-field span {
  position: absolute;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(30, 208, 183, 0.8), transparent);
  transform: rotate(-18deg);
  animation: scanLine 6s ease-in-out infinite;
}

.signal-field span:nth-child(1) {
  top: 16%;
  left: -10%;
}

.signal-field span:nth-child(2) {
  top: 34%;
  right: -8%;
  animation-delay: 1.3s;
}

.signal-field span:nth-child(3) {
  bottom: 20%;
  left: 8%;
  animation-delay: 2.2s;
}

.signal-field span:nth-child(4) {
  bottom: 8%;
  right: 18%;
  animation-delay: 3s;
}

.signal-field span:nth-child(5) {
  top: 62%;
  left: 52%;
  animation-delay: 4s;
}

.login-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(28px, 8vw, 120px);
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 78px;
}

.login-footer {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  width: min(100% - 32px, 760px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  transform: translateX(-50%);
}

.login-footer a {
  color: inherit;
  text-decoration: none;
}

.login-footer a:hover {
  color: var(--blue);
}

.login-brand {
  position: relative;
  padding: 34px;
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(31, 130, 207, 0.35);
  inset: 0;
  clip-path: polygon(0 0, 82% 0, 100% 34%, 100% 100%, 18% 100%, 0 66%);
}

.login-brand::after {
  inset: 16px;
  border-color: rgba(30, 208, 183, 0.45);
  animation: pulseFrame 3.8s ease-in-out infinite;
}

.login-brand img {
  position: relative;
  width: min(500px, 100%);
  filter: drop-shadow(0 22px 35px rgba(31, 130, 207, 0.2));
}

.login-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(31, 130, 207, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
    linear-gradient(135deg, rgba(30, 208, 183, 0.5), rgba(31, 130, 207, 0.18), rgba(255, 186, 73, 0.36)) border-box;
  box-shadow: 0 22px 64px rgba(28, 43, 55, 0.13);
  backdrop-filter: blur(18px);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(from 180deg, rgba(30, 208, 183, 0), rgba(30, 208, 183, 0.55), rgba(31, 130, 207, 0.28), rgba(255, 186, 73, 0.42), rgba(30, 208, 183, 0));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: loginBorderFlow 9s linear infinite;
  opacity: 0.75;
  pointer-events: none;
}

.panel-glow {
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 18%, rgba(30, 208, 183, 0.12), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(31, 130, 207, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent);
  animation: loginGlowBreath 6s ease-in-out infinite;
  pointer-events: none;
}

.form-head,
.field,
.login-options,
.login-error,
.login-submit {
  position: relative;
  z-index: 1;
}

.form-head p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-head h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.08;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.search-box input,
.sort-select,
.qty-control input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.field input {
  padding: 0 14px;
}

.field input:focus,
.search-box input:focus,
.sort-select:focus,
.qty-control input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(30, 208, 183, 0.14);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.login-error {
  min-height: 20px;
  margin: 0 0 14px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.primary-button,
.ghost-button,
.icon-button,
.chip,
.nav-link,
.qty-control button {
  border-radius: 8px;
  border: 1px solid transparent;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.primary-button {
  width: 100%;
  padding: 0 18px;
  color: #071d25;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  box-shadow: 0 12px 28px rgba(30, 208, 183, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.chip:hover,
.nav-link:hover,
.qty-control button:hover {
  transform: translateY(-1px);
}

.login-submit i {
  width: 22px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: skewX(-18deg);
}

.merchant-entry {
  position: relative;
  z-index: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.merchant-shell {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 44px) 56px;
  background:
    radial-gradient(circle at 12% 18%, rgba(30, 208, 183, 0.18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 186, 73, 0.16), transparent 24%),
    linear-gradient(135deg, #f8ffff 0%, #f3fbff 50%, #f8faef 100%);
}

.merchant-nav {
  width: min(1180px, 100%);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.merchant-logo img {
  width: 172px;
}

.merchant-nav nav {
  display: flex;
  gap: 10px;
}

.merchant-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.merchant-nav nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(217, 227, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.merchant-hero {
  width: min(1180px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  margin: 22px auto 0;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(31, 130, 207, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    linear-gradient(120deg, rgba(30, 208, 183, 0.18), rgba(31, 130, 207, 0.1));
  box-shadow: 0 24px 70px rgba(28, 43, 55, 0.1);
}

.merchant-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.08;
}

.merchant-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.merchant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.merchant-actions .primary-button,
.merchant-actions .ghost-button {
  width: auto;
  min-width: 140px;
  text-decoration: none;
}

.merchant-visual {
  position: relative;
  min-height: 360px;
}

.merchant-visual::before {
  content: "";
  position: absolute;
  inset: 44px;
  border: 1px solid rgba(30, 208, 183, 0.28);
  border-radius: 50%;
}

.orbit-card {
  position: absolute;
  min-width: 178px;
  padding: 18px;
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(28, 43, 55, 0.12);
  backdrop-filter: blur(16px);
}

.orbit-card.main {
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-card:not(.main):not(.small) {
  right: 4%;
  bottom: 72px;
}

.orbit-card.small {
  left: 6%;
  bottom: 28px;
}

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

.orbit-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  font-weight: 500;
}

.merchant-metrics,
.merchant-section,
.merchant-process,
.merchant-apply {
  width: min(1180px, 100%);
  margin: 28px auto 0;
}

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

.merchant-metrics article,
.merchant-benefit,
.merchant-process,
.merchant-apply {
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(28, 43, 55, 0.07);
}

.merchant-metrics article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.merchant-metrics strong {
  font-size: 34px;
  font-weight: 500;
}

.merchant-metrics span {
  color: var(--muted);
}

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

.merchant-benefit {
  min-height: 220px;
  padding: 22px;
}

.merchant-benefit > span {
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.merchant-benefit h3,
.merchant-process h2,
.merchant-apply h2 {
  margin: 0;
  font-weight: 500;
}

.merchant-benefit p,
.merchant-process p,
.merchant-form-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.merchant-process {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  padding: clamp(24px, 4vw, 36px);
}

.merchant-process ol {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.merchant-process li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #f7fbfb;
}

.merchant-process li span {
  grid-row: span 2;
  color: var(--blue);
  font-weight: 700;
}

.merchant-process li strong {
  font-weight: 500;
}

.merchant-process li p {
  margin: 0;
}

.merchant-apply {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: clamp(24px, 4vw, 36px);
}

.merchant-apply-page {
  align-items: start;
  margin-top: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 252, 0.88)),
    linear-gradient(135deg, rgba(30, 208, 183, 0.12), rgba(31, 130, 207, 0.08));
}

.merchant-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(31, 130, 207, 0.08);
  color: var(--blue);
  font-weight: 500;
}

.merchant-note.success {
  background: rgba(30, 208, 183, 0.14);
  color: #0f3934;
}

.merchant-note.error {
  background: rgba(255, 92, 92, 0.1);
  color: #a83333;
}

.merchant-checklist {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.merchant-checklist span {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 38px;
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #2c3037;
  font-size: 14px;
}

.merchant-checklist span::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 0 0 4px rgba(30, 208, 183, 0.12);
}

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

.merchant-profile-form {
  padding: 22px;
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.merchant-form .field {
  margin: 0;
}

.merchant-form .field span em {
  color: #d64646;
  font-style: normal;
}

.merchant-form .field.invalid input,
.merchant-form .field.invalid select,
.merchant-form .field.invalid textarea {
  border-color: rgba(214, 70, 70, 0.82);
  box-shadow: 0 0 0 4px rgba(214, 70, 70, 0.1);
}

.merchant-form .full,
.merchant-submit {
  grid-column: 1 / -1;
}

.merchant-form textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font: inherit;
}

.merchant-form select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.merchant-upload-box {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(31, 130, 207, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.08), rgba(31, 130, 207, 0.06)),
    #fff;
}

.merchant-upload-box strong {
  font-size: 15px;
  font-weight: 600;
}

.merchant-upload-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.merchant-success-page {
  width: min(860px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 54px auto 0;
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid rgba(217, 227, 235, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 252, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(30, 208, 183, 0.18), transparent 38%);
  box-shadow: 0 24px 70px rgba(28, 43, 55, 0.12);
  text-align: center;
}

.success-mark {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 16px 36px rgba(30, 208, 183, 0.26);
}

.success-mark::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  width: 18px;
  height: 30px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.merchant-success-page h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
}

.merchant-success-page > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.success-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.success-summary article {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.success-summary span {
  color: var(--muted);
  font-size: 13px;
}

.success-summary strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 600;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.success-actions .primary-button,
.success-actions .ghost-button {
  width: auto;
  min-width: 150px;
  text-decoration: none;
}

.auth-gate-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 24%, rgba(30, 208, 183, 0.2), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(255, 186, 73, 0.16), transparent 24%),
    linear-gradient(135deg, #f8ffff 0%, #eef8fb 48%, #f6f8ec 100%);
}

.auth-gate-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 34, 38, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(32, 34, 38, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  animation: gridMove 14s linear infinite;
}

.auth-gate-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  overflow: hidden;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(31, 130, 207, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.auth-gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 30%, rgba(30, 208, 183, 0.16) 44%, transparent 58%),
    linear-gradient(180deg, rgba(31, 130, 207, 0.08), transparent 38%);
  transform: translateX(-78%);
  animation: panelSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.auth-gate-card > * {
  position: relative;
  z-index: 1;
}

.auth-gate-card img {
  width: 190px;
  margin: 0 auto 24px;
}

.auth-gate-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.18;
}

.auth-gate-card p:not(.eyebrow) {
  margin: 14px auto 0;
  max-width: 390px;
  color: var(--muted);
  line-height: 1.7;
}

.gate-progress {
  overflow: hidden;
  height: 6px;
  margin: 26px 0 18px;
  border-radius: 999px;
  background: rgba(31, 130, 207, 0.12);
}

.gate-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--lime));
  animation: gateProgress 1.8s linear forwards;
  transform-origin: left;
}

.gate-button {
  max-width: 220px;
  margin: 0 auto;
}

.store-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 227, 235, 0.78);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.top-line {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.header-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.store-logo img {
  width: 154px;
}

.store-main {
  flex: 1;
}

.store-footer,
.merchant-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1220px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.merchant-footer {
  width: min(1180px, 100%);
}

.store-footer a,
.merchant-footer a {
  color: inherit;
  text-decoration: none;
}

.store-footer a:hover,
.merchant-footer a:hover {
  color: var(--blue);
}

.hello-user {
  max-width: 160px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  margin-top: 22px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.24), rgba(255, 255, 255, 0.76) 45%),
    linear-gradient(120deg, #ffffff, #eefbff);
  box-shadow: 0 22px 60px rgba(28, 43, 55, 0.12);
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber), var(--lime));
}

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

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
}

.hero-copy p:not(.eyebrow) {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-button {
  width: auto;
  min-width: 136px;
  text-decoration: none;
}

.hero-benefits span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  color: #0f3934;
  font-size: 13px;
  font-weight: 900;
}

.hero-benefits span {
  padding: 0 12px;
  background: rgba(30, 208, 183, 0.15);
}

.hero-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.hero-showcase img {
  width: min(460px, 100%);
  filter: drop-shadow(0 28px 34px rgba(31, 130, 207, 0.16));
}

.floating-deal {
  position: absolute;
  right: 4%;
  bottom: 12%;
  padding: 14px 16px;
  border: 1px solid rgba(30, 208, 183, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(28, 43, 55, 0.12);
}

.floating-deal span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.floating-deal strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 20px;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(28, 43, 55, 0.08);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  font-size: 18px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.category-tile img {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 104px;
  height: 104px;
  object-fit: contain;
  opacity: 0.86;
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.featured-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 12px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.11), transparent 54%),
    #fff;
  box-shadow: 0 12px 30px rgba(28, 43, 55, 0.08);
}

.featured-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 186, 73, 0.22);
  color: #5c3900;
  font-size: 12px;
  font-weight: 900;
}

.featured-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.featured-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.featured-card strong {
  font-size: 19px;
}

.featured-card img {
  align-self: end;
  width: 126px;
  height: 126px;
  object-fit: contain;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--paper);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.brand-strip {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--line);
}

.brand-strip img {
  width: 176px;
}

.nav {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.nav-link {
  justify-content: flex-start;
  width: 100%;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
}

.nav-link.active {
  color: var(--ink);
  background: rgba(30, 208, 183, 0.12);
  border-color: rgba(30, 208, 183, 0.3);
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px;
}

.logout-button {
  width: 100%;
}

.main-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 251, 0.88);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.mobile-brand img {
  width: 132px;
}

.page-title h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
}

.page-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.icon-button {
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.icon-button {
  position: relative;
  width: 44px;
  padding: 0;
}

.bag-icon {
  position: relative;
  width: 20px;
  height: 18px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 5px 5px 4px 4px;
}

.bag-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -9px;
  width: 8px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #31210a;
  font-size: 12px;
}

.cart-count.bump {
  animation: cartBadgeBump 0.42s ease;
}

.content {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
}

.overview {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 20px;
}

.hero-panel,
.metric-panel,
.toolbar,
.cart-drawer,
.modal-card,
.empty-state,
.order-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(28, 43, 55, 0.08);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.24), rgba(255, 255, 255, 0.7) 48%),
    url("./assets/product-hub.svg") right center / auto 100% no-repeat,
    #fff;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

.hero-panel h3,
.metric-panel h3,
.section-head h3,
.modal-card h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.2;
}

.hero-panel p,
.metric-panel p,
.section-head p,
.product-card p,
.empty-state p,
.cart-item p,
.order-row p,
.modal-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.metric-panel {
  min-height: 99px;
  padding: 18px;
}

.metric-panel strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  align-self: start;
}

.search-box input {
  padding: 0 14px 0 40px;
}

.search-box::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-box::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 30px;
  width: 8px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 46px;
  padding: 0 13px;
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
}

.chip.active {
  color: #07302b;
  background: rgba(30, 208, 183, 0.15);
  border-color: rgba(30, 208, 183, 0.38);
}

.sort-select {
  padding: 0 36px 0 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 24px 0 14px;
}

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

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 43, 55, 0.08);
}

.product-media {
  aspect-ratio: 1.18 / 1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.14), transparent 48%),
    linear-gradient(45deg, rgba(255, 186, 73, 0.1), transparent 50%),
    #f7fbfb;
}

.product-media img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-card h4 {
  min-height: 44px;
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-size: 20px;
  font-weight: 900;
}

.tiny-button {
  min-height: 36px;
  width: auto;
  padding: 0 12px;
}

.cart-drawer {
  position: fixed;
  top: 88px;
  right: max(18px, calc((100vw - 1220px) / 2));
  z-index: 9;
  width: min(380px, calc(100vw - 36px));
  max-height: calc(100vh - 110px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.cart-drawer.open {
  display: flex;
}

.drawer-head,
.drawer-foot {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h3,
.drawer-foot p {
  margin: 0;
}

.drawer-list {
  overflow: auto;
  padding: 8px 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f8f9;
}

.cart-item h4 {
  margin: 0;
  font-size: 14px;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 32px 42px 32px;
  gap: 4px;
}

.qty-control button {
  min-height: 32px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.qty-control input {
  min-height: 32px;
  padding: 0;
  text-align: center;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #eef4f5;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  background: #fff;
}

.cart-flyer {
  position: fixed;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(28, 43, 55, 0.2);
  pointer-events: none;
}

.cart-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-flyer.run {
  animation: cartFlyToBag 0.72s cubic-bezier(0.2, 0.78, 0.2, 1) forwards;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.modal-visual {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f9fa;
}

.modal-visual img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.spec-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

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

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

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
}

.status-pill {
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(183, 232, 79, 0.28);
  color: #415600;
  font-size: 12px;
  font-weight: 900;
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 54px 54px, 54px 54px;
  }
}

@keyframes scanLine {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0) rotate(-18deg);
  }
  45%,
  55% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translateX(42vw) rotate(-18deg);
  }
}

@keyframes pulseFrame {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(0.985);
  }
}

@keyframes panelSweep {
  0%,
  46% {
    transform: translateX(-82%);
  }
  72%,
  100% {
    transform: translateX(82%);
  }
}

@keyframes loginBorderFlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loginGlowBreath {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(0.985);
  }
  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

@keyframes gateProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes cartBadgeBump {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.26);
  }
}

@keyframes cartFlyToBag {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  55% {
    opacity: 0.95;
    transform: translate3d(var(--cart-mid-x), var(--cart-mid-y), 0) scale(0.78);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--cart-dx), var(--cart-dy), 0) scale(0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-brand {
    max-width: 420px;
    margin: 0 auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 8;
    height: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .brand-strip,
  .sidebar-foot {
    display: none;
  }

  .nav {
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
  }

  .nav-link {
    justify-content: center;
    min-height: 48px;
    padding: 0 8px;
    font-size: 13px;
  }

  .mobile-brand {
    display: block;
  }

  .content {
    padding-bottom: 92px;
  }

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

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

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

@media (max-width: 640px) {
  .login-stage {
    width: min(100% - 28px, 480px);
    padding: 28px 0 82px;
  }

  .login-brand {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .hero-panel {
    min-height: 260px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96)),
      url("./assets/product-hub.svg") center 18px / 82% auto no-repeat,
      #fff;
    align-content: end;
  }

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

/* Storefront overrides */
.store-shell .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.store-shell .nav-link {
  width: auto;
  min-height: 40px;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
}

.store-shell .nav-link.active {
  background: #202226;
  border-color: #202226;
  color: #fff;
}

.store-shell .top-actions {
  justify-content: flex-end;
}

.store-shell .content {
  width: min(1220px, calc(100% - 36px));
  padding: 0;
}

.store-filter {
  position: sticky;
  top: 111px;
  z-index: 5;
  grid-template-columns: minmax(260px, 1fr) auto 170px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.product-media {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.product-card {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 208, 183, 0.42);
  box-shadow: 0 18px 46px rgba(28, 43, 55, 0.13);
}

.price-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tiny-button {
  min-width: 106px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

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

.cart-row,
.checkout-card,
.summary-card,
.member-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(28, 43, 55, 0.08);
}

.cart-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.cart-row img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5fafb;
}

.cart-row h4 {
  margin: 0;
  font-size: 18px;
}

.cart-row p {
  margin: 7px 0 12px;
  color: var(--muted);
}

.summary-card {
  position: sticky;
  top: 132px;
  padding: 20px;
}

.summary-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.summary-card p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  color: var(--muted);
}

.summary-card p strong {
  color: var(--ink);
}

.summary-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.checkout-steps span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.checkout-steps span.active {
  border-color: rgba(30, 208, 183, 0.42);
  background: rgba(30, 208, 183, 0.12);
  color: #0f3934;
}

.checkout-card {
  padding: 18px;
  margin-bottom: 14px;
}

.section-head.compact {
  margin: 0 0 12px;
}

.address-card {
  padding: 14px;
  border-radius: 8px;
  background: #f6faf9;
}

.address-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.payment-option {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.payment-option strong,
.payment-option span {
  display: block;
}

.payment-option span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.payment-option.active {
  border-color: rgba(30, 208, 183, 0.55);
  background: rgba(30, 208, 183, 0.11);
  box-shadow: 0 0 0 4px rgba(30, 208, 183, 0.1);
}

.compact-list .cart-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.compact-list .cart-row img {
  width: 72px;
  height: 72px;
}

.order-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.order-row h4 {
  margin: 0;
  font-size: 18px;
}

.member-page {
  margin-top: 28px;
}

.member-hero {
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(31, 130, 207, 0.12), rgba(30, 208, 183, 0.14)),
    #fff;
}

.member-hero h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.member-hero p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .store-shell .top-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-bottom: 12px;
  }

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

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

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

@media (max-width: 900px) {
  .top-line {
    display: none;
  }

  .header-main {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .store-logo img {
    width: 150px;
  }

  .store-shell .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .store-shell .nav-link {
    flex: 0 0 auto;
  }

  .store-filter {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .summary-card {
    position: static;
  }

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

@media (max-width: 640px) {
  .store-shell .content,
  .header-main,
  .top-line,
  .store-footer,
  .merchant-footer {
    width: min(100% - 28px, 1220px);
  }

  .store-hero {
    min-height: auto;
    margin-top: 14px;
    padding: 24px;
  }

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

  .hero-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .category-showcase,
  .payment-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .cart-row,
  .compact-list .cart-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .cart-row > strong {
    grid-column: 2;
    justify-self: start;
  }

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

  .store-footer,
  .merchant-footer {
    flex-direction: column;
  }
}

/* Comfort storefront pass */
body {
  font-weight: 400;
  line-height: 1.5;
}

.primary-button,
.ghost-button,
.icon-button,
.chip,
.nav-link,
.qty-control button {
  font-weight: 650;
}

.store-shell .content,
.header-main,
.top-line,
.store-footer,
.merchant-footer {
  width: min(1180px, calc(100% - 48px));
}

.top-line,
.hello-user,
.product-meta,
.category-tile strong,
.featured-card p,
.summary-card p,
.address-card p {
  font-weight: 400;
}

.store-shell .nav-link {
  padding: 0 16px;
  font-weight: 600;
}

.store-hero {
  min-height: 500px;
  gap: clamp(34px, 6vw, 72px);
  margin-top: 34px;
  padding: clamp(42px, 6vw, 72px);
  box-shadow: 0 20px 54px rgba(28, 43, 55, 0.09);
}

.eyebrow {
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 600px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.13;
}

.hero-copy p:not(.eyebrow) {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 400;
}

.hero-actions,
.hero-benefits {
  margin-top: 30px;
}

.hero-showcase {
  min-height: 350px;
}

.hero-showcase img {
  width: min(470px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  filter: drop-shadow(0 24px 30px rgba(31, 130, 207, 0.13));
}

.category-showcase {
  gap: 20px;
  margin: 42px 0 34px;
}

.category-tile {
  min-height: 156px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(28, 43, 55, 0.06);
}

.category-tile span {
  font-weight: 650;
}

.category-tile img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.58;
}

.featured-row {
  gap: 22px;
  margin: 38px 0;
}

.featured-card {
  min-height: 220px;
  padding: 24px;
  grid-template-columns: minmax(0, 1fr) 150px;
  box-shadow: 0 12px 28px rgba(28, 43, 55, 0.06);
}

.featured-card span {
  font-weight: 650;
}

.featured-card h3 {
  font-size: 21px;
  font-weight: 600;
}

.featured-card strong {
  font-weight: 700;
}

.featured-card img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.store-filter {
  gap: 16px;
  margin: 38px 0 32px;
  padding: 18px;
}

.section-head {
  margin: 48px 0 22px;
}

.section-head h3,
.modal-card h3,
.summary-card h3,
.checkout-card h3,
.member-hero h3 {
  font-weight: 600;
}

.product-grid {
  gap: 24px;
}

.product-card {
  border-color: rgba(217, 227, 235, 0.86);
  box-shadow: 0 10px 28px rgba(28, 43, 55, 0.06);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(28, 43, 55, 0.1);
}

.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  gap: 14px;
  padding: 18px;
}

.product-card h4 {
  min-height: auto;
  font-size: 16px;
  font-weight: 600;
}

.product-card p {
  font-size: 14px;
}

.price {
  font-weight: 700;
}

.store-shell h1,
.store-shell h2,
.store-shell h3,
.store-shell h4,
.store-shell .featured-card strong,
.store-shell .floating-deal strong,
.store-shell .total-line {
  font-weight: 500;
}

.store-shell .price,
.store-shell .total-line strong,
.store-shell .summary-card p strong,
.store-shell .cart-row > strong,
.store-shell .order-side strong {
  font-weight: 600;
}

.store-shell .primary-button,
.store-shell .ghost-button,
.store-shell .icon-button,
.store-shell .chip,
.store-shell .qty-control button {
  font-weight: 500;
}

.store-shell .nav-link,
.hero-copy h1,
.product-card h4,
.featured-card h3,
.category-tile span,
.section-head h3 {
  font-weight: 500;
}

.featured-link {
  width: auto;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 14px;
}

.card-detail-button {
  width: 100%;
  min-height: 38px;
  margin-top: 2px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(28, 43, 55, 0.07);
}

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

.detail-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f5fafb;
}

.detail-gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-gallery-main span {
  position: absolute;
  left: 16px;
  top: 16px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #12322e;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(28, 43, 55, 0.12);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 120px));
  gap: 10px;
}

.gallery-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6fafb;
}

.detail-info {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 132px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(217, 227, 235, 0.82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 43, 55, 0.08);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.14;
}

.detail-desc {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.detail-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.detail-rating-row strong {
  color: #0f3934;
  font-size: 24px;
  font-weight: 600;
}

.detail-rating-row span {
  position: relative;
}

.detail-rating-row span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 1px;
  height: 12px;
  background: var(--line);
  transform: translateY(-50%);
}

.detail-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.14), rgba(255, 186, 73, 0.12)),
    #f8fbfb;
}

.detail-price-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-price-row small {
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

.detail-price-row .price {
  display: block;
  color: #162326;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

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

.detail-option-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.detail-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-benefits span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(30, 208, 183, 0.12);
  color: #0f3934;
  font-size: 13px;
  font-weight: 500;
}

.detail-service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-service-list span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: #314148;
  font-size: 13px;
  text-align: center;
}

.detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

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

.detail-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  margin-top: 24px;
}

.detail-panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(28, 43, 55, 0.06);
}

.detail-story-panel {
  background:
    linear-gradient(135deg, rgba(31, 130, 207, 0.08), transparent 48%),
    #fff;
}

.detail-panel h2 {
  margin: 0;
  font-size: 24px;
}

.detail-panel p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-spec-grid li {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.detail-spec-grid span,
.detail-spec-grid strong {
  display: block;
}

.detail-spec-grid span {
  color: var(--muted);
  font-size: 13px;
}

.detail-spec-grid strong {
  margin-top: 8px;
  font-weight: 500;
}

.related-section {
  margin-top: 10px;
}

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

.metric-panel strong,
.status-pill,
.cart-count {
  font-weight: 700;
}

.cart-row,
.checkout-card,
.summary-card,
.member-hero,
.order-row,
.empty-state {
  box-shadow: 0 10px 28px rgba(28, 43, 55, 0.06);
}

.cart-row img,
.cart-item img,
.modal-visual img {
  object-fit: cover;
}

.merchant-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 227, 235, 0.86);
  border-radius: 8px;
  background: #f8fbfb;
}

.merchant-line > div {
  min-width: 0;
}

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

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

.merchant-line strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-line-featured {
  margin-top: 14px;
}

.merchant-line-detail {
  background: rgba(30, 208, 183, 0.08);
}

.merchant-chat-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(30, 208, 183, 0.36);
  border-radius: 999px;
  background: #fff;
  color: #0f3934;
  font-size: 12px;
  font-weight: 600;
}

.merchant-chat-button b {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: #39270a;
  font-size: 11px;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.chat-widget.open {
  pointer-events: auto;
}

.chat-panel {
  overflow: hidden;
  border: 1px solid rgba(217, 227, 235, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(28, 43, 55, 0.2);
  backdrop-filter: blur(18px);
}

.chat-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(30, 208, 183, 0.16), rgba(31, 130, 207, 0.08)),
    #fff;
}

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

.chat-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-body {
  max-height: 320px;
  min-height: 220px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  background: #f7fafb;
}

.chat-message {
  max-width: 84%;
  display: grid;
  gap: 5px;
}

.chat-message.user {
  justify-self: end;
}

.chat-message.merchant {
  justify-self: start;
}

.chat-message p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.55;
}

.chat-message.user p {
  background: linear-gradient(135deg, var(--teal), var(--lime));
  color: #071d25;
}

.chat-message.merchant p {
  border: 1px solid var(--line);
  background: #fff;
}

.chat-message span {
  color: var(--muted);
  font-size: 11px;
}

.chat-message.user span {
  text-align: right;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-input-row input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.chat-input-row .primary-button {
  min-height: 42px;
  padding: 0 12px;
}

@media (max-width: 640px) {
  .store-shell .content,
  .header-main,
  .top-line,
  .store-footer,
  .merchant-footer {
    width: min(100% - 32px, 1180px);
  }

  .store-hero {
    padding: 28px;
  }

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

@media (max-width: 900px) {
  .product-detail-hero,
  .detail-section-grid {
    grid-template-columns: 1fr;
  }

  .detail-spec-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merchant-hero,
  .merchant-process,
  .merchant-apply {
    grid-template-columns: 1fr;
  }

  .merchant-metrics,
  .merchant-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-detail-page {
    padding-top: 18px;
  }

  .product-detail-hero {
    padding: 18px;
  }

  .detail-info h1 {
    font-size: 30px;
  }

  .detail-price-row,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .detail-price-row {
    display: grid;
    align-items: start;
  }

  .detail-spec-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-thumbs img {
    width: 100%;
  }

  .merchant-shell {
    padding: 16px 14px 36px;
  }

  .merchant-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .merchant-logo img {
    width: 148px;
  }

  .merchant-hero {
    min-height: auto;
    padding: 24px;
  }

  .merchant-copy h1 {
    font-size: 36px;
  }

  .merchant-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .merchant-visual {
    min-height: 280px;
  }

  .merchant-metrics,
  .merchant-benefit-grid,
  .merchant-form {
    grid-template-columns: 1fr;
  }

  .success-summary {
    grid-template-columns: 1fr;
  }

  .merchant-process li {
    grid-template-columns: 1fr;
  }

  .merchant-process li span {
    grid-row: auto;
  }

  .merchant-line {
    align-items: stretch;
    flex-direction: column;
  }

  .merchant-chat-button {
    width: 100%;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}
