*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #07131a;
  --panel: #0e1c22;
  --panel-2: #132833;
  --ink: #f7fbfb;
  --muted: #9ab0b8;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #f4b860;
  --pink: #ff2d75;
  --teal: #5be7c4;
  --danger: #ff6b8a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(255, 45, 117, 0.08), transparent 260px),
    linear-gradient(90deg, rgba(91, 231, 196, 0.06), transparent 45%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 26, 0.9);
  backdrop-filter: blur(18px);
}

.topbar > *,
.brand,
.account-slot,
.store-toolbar > *,
.store-controls {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

body.merchant-portal .topnav {
  display: none;
}

body.merchant-portal .shell {
  width: min(1120px, calc(100% - 32px));
}

.topnav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-tab.is-active {
  background: #fff;
  color: #07131a;
}

.merchant-site-nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.merchant-site-nav::-webkit-scrollbar {
  display: none;
}

.merchant-site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.merchant-site-nav a:hover,
.merchant-site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.merchant-site-nav a.is-active {
  background: #fff;
  color: #07131a;
}

.account-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 180px;
}

.account-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(91, 231, 196, 0.24);
  border-radius: 8px;
  background: rgba(91, 231, 196, 0.08);
  color: #fff;
  font-weight: 800;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--teal);
  color: #062019;
  font-size: 12px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  max-width: 280px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.account-pill span {
  min-width: 0;
  overflow: hidden;
  color: #dbe6e8;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.store-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.store-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

.searchbox {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-brief {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.shop-brief.is-visible {
  display: grid;
}

.shop-brief.is-featured {
  grid-template-columns: 1fr;
}

.shop-brief.is-merchant-hero {
  grid-template-columns: 1fr;
}

.merchant-route-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 19, 26, 0.96), rgba(13, 37, 47, 0.88) 48%, rgba(244, 184, 96, 0.12)),
    #07131a;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.merchant-route-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
}

.merchant-route-copy h2 {
  max-width: 13ch;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.96;
}

.merchant-route-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.merchant-hero-pills,
.merchant-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.merchant-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.merchant-hero-metrics span {
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.merchant-hero-metrics strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
}

.merchant-hero-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.merchant-route-visual {
  position: relative;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.04);
}

.merchant-route-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 19, 26, 0.72), rgba(7, 19, 26, 0.06) 38%, rgba(7, 19, 26, 0.2));
  pointer-events: none;
}

.merchant-route-visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.brief-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.brief-card.strong {
  border-color: rgba(91, 231, 196, 0.22);
  background: rgba(91, 231, 196, 0.08);
}

.brief-card span,
.brief-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brief-card small {
  max-width: 34ch;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.brief-card strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.1;
}

.featured-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  min-height: 330px;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(14, 28, 34, 0.82);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.featured-card-main {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.featured-card-lead {
  min-height: 330px;
}

.featured-card-lead .featured-image {
  position: absolute;
  inset: 0;
}

.featured-card-lead .featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 26, 0.88), rgba(7, 19, 26, 0.28) 54%, rgba(7, 19, 26, 0.16)),
    linear-gradient(0deg, rgba(7, 19, 26, 0.74), transparent 58%);
}

.featured-image {
  display: block;
  overflow: hidden;
  background: #10252f;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.featured-card:hover .featured-image img,
.featured-card:focus-within .featured-image img {
  transform: scale(1.035);
}

.featured-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 8px;
  max-width: 420px;
  min-height: 330px;
  padding: 24px 148px 24px 24px;
}

.featured-kicker {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-overlay strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
}

.featured-overlay small,
.featured-copy small {
  color: rgba(232, 244, 246, 0.78);
  font-weight: 800;
}

.featured-add {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
}

.featured-stack {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.featured-head {
  display: grid;
  gap: 3px;
  min-height: 58px;
}

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

.featured-card-small {
  min-height: 84px;
}

.featured-card-small .featured-card-main {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 58px 8px 8px;
}

.featured-card-small .featured-image {
  width: 108px;
  height: 76px;
  border-radius: 6px;
}

.featured-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.featured-copy strong {
  overflow: hidden;
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-copy small {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-card-small .featured-add {
  right: 10px;
  bottom: 10px;
  min-width: 42px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

input,
select {
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(244, 184, 96, 0.8);
  box-shadow: 0 0 0 3px rgba(244, 184, 96, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: rgba(224, 235, 238, 0.45);
}

select option {
  color: #07131a;
}

.status-strip {
  display: none;
  margin: 0 0 22px;
}

.status-strip.is-visible {
  display: block;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 231, 196, 0.25);
  border-radius: 8px;
  background: rgba(91, 231, 196, 0.08);
  color: #dffbf6;
  font-size: 14px;
}

.notice.error {
  border-color: rgba(255, 107, 138, 0.32);
  background: rgba(255, 107, 138, 0.1);
  color: #ffdbe3;
}

.notice.warn {
  border-color: rgba(244, 184, 96, 0.32);
  background: rgba(244, 184, 96, 0.1);
  color: #fff2d8;
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

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

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

.category-browser {
  display: grid;
  grid-template-columns: repeat(4, minmax(138px, 1fr));
  gap: 8px;
  width: min(100%, 720px);
}

.category-tile {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;
}

.category-tile span {
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tile strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-tile.is-active {
  border-color: rgba(255, 45, 117, 0.65);
  background: rgba(255, 45, 117, 0.16);
}

.category-tile:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fulfilment-group {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chip.is-active {
  border-color: rgba(255, 45, 117, 0.65);
  background: rgba(255, 45, 117, 0.16);
  color: #fff;
}

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

.product-card,
.stage-card,
.seller-panel,
.auth-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 28, 34, 0.82);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.product-card {
  overflow: hidden;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(244, 184, 96, 0.42);
  box-shadow: var(--shadow);
}

.product-card .product-open {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #10252f;
}

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

.deferred-image {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.deferred-image.is-loaded,
.deferred-image.is-loading {
  opacity: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(7, 19, 26, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-media .badge {
  position: absolute;
  left: 10px;
  top: 10px;
}

.stock-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(91, 231, 196, 0.88);
  color: #062019;
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.product-title {
  min-height: 43px;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}

.view-link {
  color: #fff;
  font-weight: 800;
}

.merchant-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.product-actions .button,
.product-actions .ghost-button {
  width: 100%;
}

.stage-card {
  overflow: hidden;
}

.stage-cover {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #101b21;
}

.stage-cover img,
.stage-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.stage-products {
  display: grid;
  gap: 8px;
}

.drop-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.drop-row img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.drop-title {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-price {
  color: var(--teal);
  font-weight: 700;
}

.button,
.ghost-button,
.link-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  min-width: 0;
  text-align: center;
}

.button {
  border: 0;
  background: var(--pink);
  color: #fff;
}

.button:hover {
  filter: brightness(1.08);
}

.button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ghost-button,
.link-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.danger-button {
  border: 1px solid rgba(255, 107, 138, 0.35);
  background: rgba(255, 107, 138, 0.12);
  color: #ffdbe3;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.loading-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(900px, 100%);
  max-height: min(88svh, 850px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #091820;
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 50px);
  z-index: 4;
  width: 38px;
  height: 38px;
  margin: 12px 12px -50px auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 19, 26, 0.86);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.cart-view {
  display: grid;
  gap: 16px;
  padding: 34px;
}

.cart-title-row,
.cart-group-head,
.cart-summary-bar,
.cart-group-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-title-row > strong,
.cart-group-head > strong,
.cart-summary-bar > strong {
  color: #fff;
  font-family: var(--font-head);
}

.cart-groups,
.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 86px auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 19, 26, 0.42);
}

.cart-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #10252f;
}

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

.cart-row-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-row-body strong,
.cart-row-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-row-body span {
  color: var(--muted);
  font-size: 13px;
}

.cart-row > strong {
  color: #fff;
  font-family: var(--font-head);
  white-space: nowrap;
}

.cart-qty {
  display: grid;
  gap: 5px;
}

.cart-qty span,
.cart-summary-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-qty input {
  min-height: 34px;
  padding: 0 8px;
}

.cart-summary-bar {
  position: sticky;
  bottom: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #091820;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 0;
}

.detail-media {
  min-height: 520px;
  background: #10242e;
}

.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px;
}

.detail-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-pills,
.assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-price-row,
.checkout-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-price-row > div,
.checkout-summary > div,
.checkout-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-price-row span,
.checkout-summary span,
.checkout-note span,
.assurance-list span,
.qty-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-note span {
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.detail-price-row strong,
.checkout-summary strong,
.checkout-note strong {
  color: #fff;
  font-family: var(--font-head);
}

.assurance-list span {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid rgba(91, 231, 196, 0.18);
  border-radius: 8px;
  background: rgba(91, 231, 196, 0.08);
  color: #dffbf6;
  letter-spacing: 0;
  text-transform: none;
}

.compact-status {
  padding: 12px;
}

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

.detail-actions.commerce-actions {
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr);
}

.qty-field {
  display: grid;
  gap: 6px;
}

.related-section {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

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

.mini-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
}

.mini-product:hover,
.mini-product:focus-visible {
  border-color: rgba(244, 184, 96, 0.42);
  background: rgba(244, 184, 96, 0.08);
}

.mini-product img {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.mini-product strong,
.mini-product small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-product small {
  color: var(--muted);
  font-size: 12px;
}

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

.checkout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.checkout-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-line strong {
  color: #fff;
  font-family: var(--font-head);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field > span,
.file-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-panel,
.seller-panel {
  padding: 18px;
}

.auth-layout,
.seller-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: start;
}

.auth-panel h3,
.seller-panel h3 {
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.panel-copy {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.form {
  display: grid;
  gap: 12px;
}

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

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

.seller-guide,
.onboarding-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.seller-guide strong {
  color: #fff;
}

.seller-guide span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.seller-guide span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.onboarding-steps div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.onboarding-steps strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(244, 184, 96, 0.14);
  color: var(--gold);
}

.onboarding-steps span {
  color: #fff;
  font-weight: 700;
}

.seller-status {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.seller-status strong {
  color: #fff;
}

.merchant-approval-card {
  min-height: 220px;
  align-content: center;
}

.merchant-dashboard-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: stretch;
}

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

.merchant-stat-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.merchant-stat-card span,
.merchant-stat-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.merchant-stat-card strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1;
}

.merchant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

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

.merchant-action-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
}

.merchant-action-card:hover,
.merchant-action-card:focus-visible {
  border-color: rgba(91, 231, 196, 0.38);
  background: rgba(91, 231, 196, 0.08);
}

.merchant-action-card span,
.merchant-action-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.merchant-action-card small {
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.merchant-action-card strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
}

.merchant-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.merchant-money-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.section-mini-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.merchant-filter-row {
  justify-content: flex-start;
  margin-bottom: 12px;
}

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

.merchant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.merchant-row-loose {
  align-items: start;
}

.merchant-row strong {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-row small {
  display: block;
  color: var(--muted);
}

.merchant-order-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.merchant-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.merchant-order-actions select {
  width: min(220px, 100%);
  min-height: 34px;
}

.places-results {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.places-row {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
}

.places-row:hover {
  border-color: rgba(244, 184, 96, 0.45);
  background: rgba(244, 184, 96, 0.08);
}

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

.map-preview {
  width: 100%;
  min-height: 180px;
  max-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  object-fit: cover;
  background: #10252f;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(244, 184, 96, 0.12);
  color: #ffe7b9;
  font-size: 12px;
  font-weight: 800;
}

.pill.good {
  background: rgba(91, 231, 196, 0.12);
  color: #cafff4;
}

.pill.bad {
  background: rgba(255, 107, 138, 0.13);
  color: #ffd7df;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 800px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .merchant-site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .account-slot {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-tab {
    flex: 1;
    padding: 0 8px;
  }

  .account-slot {
    min-width: 0;
  }

  .store-toolbar,
  .store-controls,
  .auth-layout,
  .seller-layout,
  .merchant-route-hero,
  .merchant-dashboard-head,
  .merchant-action-grid,
  .merchant-dashboard-grid,
  .featured-showcase,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .shop-brief {
    grid-template-columns: 1fr;
  }

  .merchant-route-visual {
    order: -1;
  }

  .merchant-route-visual::before {
    background: linear-gradient(180deg, rgba(7, 19, 26, 0.08), rgba(7, 19, 26, 0.66));
  }

  .merchant-route-visual img {
    min-height: 250px;
    max-height: 360px;
  }

  .featured-card-lead,
  .featured-overlay {
    min-height: 300px;
  }

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

  .category-row {
    justify-content: flex-start;
  }

  .category-browser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .filter-group {
    justify-content: flex-start;
  }

  .fulfilment-group {
    padding-left: 0;
    border-left: 0;
  }

  .detail-media,
  .detail-media img {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 24px;
  }

  .product-grid,
  .stage-grid,
  .field-grid,
  .provider-row {
    grid-template-columns: 1fr;
  }

  .account-actions {
    max-width: 100%;
  }

  .account-pill {
    max-width: 160px;
  }

  .featured-showcase {
    min-height: 0;
  }

  .category-browser {
    grid-template-columns: 1fr;
  }

  .featured-overlay {
    align-content: end;
    padding: 22px 18px 72px;
  }

  .featured-card-lead > .featured-add {
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
  }

  .featured-card-small .featured-card-main {
    grid-template-columns: 88px minmax(0, 1fr);
    padding-right: 54px;
  }

  .featured-card-small .featured-image {
    width: 88px;
    height: 70px;
  }

  .product-card {
    display: grid;
  }

  .detail-body {
    padding: 22px;
  }

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

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

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

  .cart-view {
    padding: 22px;
  }

  .cart-title-row,
  .cart-group-head,
  .cart-group-actions,
  .cart-summary-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .cart-thumb {
    width: 64px;
    height: 64px;
  }

  .cart-qty,
  .cart-row > strong,
  .cart-row .ghost-button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

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

  .merchant-order-actions {
    justify-content: stretch;
  }

  .merchant-order-actions > * {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 62px;
    padding: 10px 12px;
  }

  .topnav {
    grid-column: 1;
    grid-row: 3;
  }

  .account-slot {
    grid-column: 1;
    grid-row: 2;
    justify-content: stretch;
    width: 100%;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: clamp(31px, 12vw, 46px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(22px, 8vw, 30px);
  }

  .store-toolbar {
    gap: 12px;
    margin-bottom: 14px;
  }

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

  .account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .cart-button,
  .account-actions > .button,
  .account-pill {
    min-height: 38px;
    width: 100%;
  }

  .account-pill {
    max-width: none;
    padding-left: 8px;
  }

  body.merchant-portal .topbar {
    grid-template-columns: 1fr;
  }

  .merchant-site-nav {
    grid-row: 3;
    padding: 3px;
  }

  body.merchant-portal .account-actions {
    grid-template-columns: 1fr;
  }

  .shell,
  body.merchant-portal .shell {
    width: calc(100% - 18px);
    padding-top: 18px;
    padding-bottom: 54px;
  }

  .shop-brief {
    gap: 10px;
    margin-bottom: 16px;
  }

  .brief-card {
    min-height: 0;
    padding: 12px;
  }

  .merchant-route-copy {
    gap: 13px;
    padding: 20px 16px;
  }

  .merchant-route-copy h2 {
    max-width: none;
    font-size: clamp(32px, 11vw, 44px);
  }

  .merchant-hero-actions > *,
  .merchant-hero-metrics {
    width: 100%;
  }

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

  .featured-card-lead,
  .featured-overlay {
    min-height: 286px;
  }

  .featured-overlay strong {
    font-size: clamp(26px, 10vw, 38px);
  }

  .category-row,
  .category-browser,
  .filter-group {
    width: 100%;
  }

  .category-browser {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .category-tile {
    flex: 0 0 152px;
    scroll-snap-align: start;
  }

  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-group .chip {
    flex: 0 0 auto;
  }

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

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

  .product-card:hover,
  .product-card:focus-within {
    transform: none;
  }

  .product-media .badge {
    left: 7px;
    top: 7px;
    max-width: calc(100% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stock-badge {
    right: 7px;
    bottom: 7px;
  }

  .badge,
  .stock-badge {
    min-height: 22px;
    padding: 0 6px;
    font-size: 11px;
  }

  .product-body {
    gap: 6px;
    padding: 10px;
  }

  .product-title {
    min-height: 38px;
    font-size: 14px;
    line-height: 1.22;
  }

  .product-meta {
    gap: 6px;
    align-items: flex-start;
    font-size: 12px;
  }

  .price {
    font-size: 15px;
  }

  .product-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 10px 10px;
  }

  .product-actions .ghost-button {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 8px 0 0;
  }

  .modal {
    width: 100%;
    max-height: calc(100svh - 8px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .modal-close {
    top: 8px;
    margin: 8px 8px -46px auto;
  }

  .cart-view,
  .detail-body,
  .auth-panel,
  .seller-panel {
    padding: 16px;
  }

  .checkout-line,
  .merchant-money-row,
  .section-mini-head {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-line strong {
    align-self: flex-start;
  }

  .form-actions > *,
  .provider-row > *,
  .merchant-order-actions > * {
    width: 100%;
  }

  .merchant-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .merchant-tabs .chip {
    flex: 0 0 auto;
  }

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

  .merchant-action-card {
    min-height: 112px;
  }
}

@media (max-width: 390px) {
  .brand span {
    max-width: 118px;
  }

  .account-pill span {
    display: none;
  }

  .account-pill {
    padding: 4px;
  }

  .account-pill .small-button {
    padding: 0 8px;
  }

  .cart-button span {
    display: none;
  }

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

  .featured-card-small .featured-card-main {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 9px;
    padding-right: 48px;
  }

  .featured-card-small .featured-image {
    width: 74px;
    height: 64px;
  }
}
