:root {
  --marketplace-pink: #df2d75;
  --marketplace-charcoal: #353945;
  --marketplace-ink: #222837;
  --marketplace-muted: #667085;
  --marketplace-line: #e3e7ee;
  --marketplace-soft: #f6f8fb;
  --marketplace-white: #ffffff;
}

.tuaneka-marketplace-public,
.marketplace-seller-page {
  background: var(--marketplace-white);
  color: var(--marketplace-ink);
  font-family: "Montserrat", sans-serif;
}

.marketplace-shell,
.marketplace-seller-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.marketplace-public-topbar {
  background: #2c3240;
  padding: 18px 0;
}

.marketplace-public-nav,
.marketplace-public-footer .marketplace-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.marketplace-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 8px 18px;
}

.marketplace-logo img {
  width: 170px;
  max-width: 42vw;
}

.marketplace-public-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.marketplace-public-links a,
.marketplace-public-footer a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.marketplace-cart-pill,
.marketplace-primary-button,
.marketplace-secondary-button,
.dashboard-primary-action.marketplace-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  min-height: 46px;
  padding: 0 18px;
  cursor: pointer;
}

.marketplace-cart-pill {
  background: var(--marketplace-pink);
  color: #fff;
}

.marketplace-cart-pill strong {
  background: #fff;
  color: var(--marketplace-pink);
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marketplace-primary-button {
  background: var(--marketplace-pink);
  color: #fff;
  box-shadow: 0 14px 30px rgba(223, 45, 117, .25);
}

.marketplace-primary-button:hover,
.marketplace-cart-pill:hover {
  color: #fff;
  text-decoration: none;
}

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

.marketplace-full-button {
  width: 100%;
}

.marketplace-alert {
  margin-top: 18px;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 700;
}

.marketplace-alert--success,
.marketplace-alert--info {
  background: #eefcf5;
  color: #116043;
}

.marketplace-alert--error {
  background: #fff0f4;
  color: #9f164d;
}

.marketplace-hero,
.marketplace-product-detail,
.marketplace-store-hero,
.marketplace-checkout-shell,
.marketplace-order-confirmation,
.marketplace-seller-hero,
.marketplace-upgrade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 28px;
  padding: 48px 0 26px;
}

.marketplace-hero h1,
.marketplace-product-detail h1,
.marketplace-store-hero h1,
.marketplace-checkout-main h1,
.marketplace-page-heading h1,
.marketplace-seller-hero h1,
.marketplace-upgrade-hero h1,
.marketplace-order-confirmation h1 {
  margin: 0 0 14px;
  color: var(--marketplace-ink);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
}

.marketplace-hero p,
.marketplace-product-detail p,
.marketplace-store-hero p,
.marketplace-page-heading p,
.marketplace-upgrade-hero p {
  color: var(--marketplace-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
}

.marketplace-hero-actions,
.marketplace-seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.marketplace-live-store-url {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 18px;
  max-width: 680px;
  font-size: .92rem;
}

.marketplace-live-store-url span {
  color: var(--marketplace-muted);
  font-weight: 800;
}

.marketplace-live-store-url a {
  color: var(--marketplace-pink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.marketplace-search-panel,
.marketplace-summary-panel,
.marketplace-readiness-card,
.marketplace-upgrade-card {
  background: var(--marketplace-charcoal);
  color: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(24, 31, 44, .14);
}

.marketplace-search-panel label,
.marketplace-summary-panel > span,
.marketplace-readiness-card span,
.marketplace-upgrade-card strong {
  color: #cfd6e3;
  font-weight: 800;
  font-size: .85rem;
}

.marketplace-search-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.marketplace-search-row input,
.marketplace-form-grid input,
.marketplace-form-grid select,
.marketplace-form-grid textarea,
.marketplace-add-form input,
.marketplace-add-form select,
.marketplace-inventory-form input,
.marketplace-inventory-form select,
.marketplace-variant-stock-row input,
.marketplace-variant-stock-row select {
  width: 100%;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--marketplace-ink);
  background: #fff;
  font: inherit;
}

.marketplace-search-row button {
  width: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--marketplace-pink);
}

.marketplace-filter-row,
.marketplace-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.marketplace-filter-row a,
.marketplace-category-links a {
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
}

.marketplace-category-links a {
  color: var(--marketplace-ink);
  border-color: var(--marketplace-line);
}

.marketplace-filter-row a.is-active,
.marketplace-category-links a.is-active {
  background: var(--marketplace-pink);
  border-color: var(--marketplace-pink);
  color: #fff;
}

.marketplace-section {
  padding: 26px 0;
}

.marketplace-section-heading,
.marketplace-panel-heading,
.marketplace-page-heading {
  margin-bottom: 18px;
}

.marketplace-section-heading h2,
.marketplace-panel-heading h2,
.marketplace-seller-panel h2,
.marketplace-order-card h2 {
  color: var(--marketplace-ink);
  font-weight: 800;
  margin: 0 0 8px;
}

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

.marketplace-section-heading--split,
.marketplace-panel-heading,
.marketplace-panel-heading--light {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

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

.marketplace-product-card {
  background: var(--marketplace-charcoal);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.marketplace-product-media,
.marketplace-detail-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f4f8;
  color: var(--marketplace-pink);
  min-height: 190px;
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
}

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

.marketplace-product-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  flex: 1;
}

.marketplace-product-title {
  color: #fff;
  display: block;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 7px;
}

.marketplace-product-store,
.marketplace-back-link {
  color: var(--marketplace-pink);
  font-weight: 800;
  text-decoration: none;
}

.marketplace-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marketplace-product-meta span,
.marketplace-order-row em,
.marketplace-listing-row em {
  background: rgba(223, 45, 117, .18);
  color: #ff7caf;
  border-radius: 999px;
  padding: 6px 10px;
  font-style: normal;
  font-size: .78rem;
  font-weight: 800;
}

.marketplace-detail-gallery {
  min-height: 520px;
  border-radius: 8px;
}

.marketplace-detail-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 18px 0;
}

.marketplace-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.marketplace-trust-strip span {
  border: 1px solid var(--marketplace-line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--marketplace-muted);
  font-weight: 700;
}

.marketplace-add-form {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: end;
  max-width: 430px;
}

.marketplace-detail-description,
.marketplace-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 22px;
}

.marketplace-detail-description > div,
.marketplace-detail-description aside,
.marketplace-order-card {
  border: 1px solid var(--marketplace-line);
  border-radius: 8px;
  padding: 24px;
}

.marketplace-store-hero,
.marketplace-order-confirmation {
  grid-template-columns: 160px 1fr;
  align-items: center;
}

.marketplace-storefront {
  --store-accent: var(--marketplace-pink);
  background: #fff;
}

.marketplace-storefront .marketplace-primary-button,
.marketplace-storefront .marketplace-product-meta span,
.marketplace-storefront .marketplace-product-store {
  background-color: var(--store-accent);
}

.marketplace-storefront .marketplace-product-store {
  background: transparent;
  color: var(--store-accent);
}

.marketplace-storefront .marketplace-back-link,
.marketplace-storefront .marketplace-trust-strip i {
  color: var(--store-accent);
}

.marketplace-storefront--boutique .marketplace-product-card:nth-child(3n+1),
.marketplace-storefront--editorial .marketplace-product-card:nth-child(4n+1) {
  min-height: 380px;
}

.marketplace-storefront-cover {
  min-height: 520px;
  position: relative;
  display: grid;
  align-items: end;
  background: var(--marketplace-charcoal);
  overflow: hidden;
}

.marketplace-storefront-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
}

.marketplace-storefront-cover-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 72px 0;
}

.marketplace-storefront-cover-inner h1,
.marketplace-catalogue-hero h1,
.marketplace-editorial-hero h1 {
  color: inherit;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  margin: 18px 0;
}

.marketplace-storefront-cover-inner p {
  max-width: 650px;
  color: rgba(255,255,255,.86);
  font-size: 1.1rem;
  line-height: 1.7;
}

.marketplace-catalogue-hero,
.marketplace-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 28px;
  padding: 52px 0 18px;
  align-items: stretch;
}

.marketplace-catalogue-hero {
  border-bottom: 1px solid var(--marketplace-line);
}

.marketplace-catalogue-stats,
.marketplace-editorial-panel {
  background: var(--marketplace-charcoal);
  color: #fff;
  border-radius: 8px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.marketplace-catalogue-stats span,
.marketplace-editorial-panel span {
  color: #cfd6e3;
  font-weight: 800;
}

.marketplace-catalogue-stats strong,
.marketplace-editorial-panel strong {
  font-size: 2.4rem;
}

.marketplace-editorial-copy {
  border-left: 8px solid var(--store-accent);
  padding-left: 26px;
}

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

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

.marketplace-store-mark {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--marketplace-charcoal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 2rem;
}

.marketplace-store-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketplace-checkout-main,
.marketplace-seller-panel {
  background: var(--marketplace-charcoal);
  color: #fff;
  border-radius: 8px;
  padding: 28px;
}

.marketplace-checkout-main h1,
.marketplace-seller-panel h2 {
  color: #fff;
}

.marketplace-cart-list,
.marketplace-order-list,
.marketplace-listing-table {
  display: grid;
  gap: 12px;
}

.marketplace-cart-item,
.marketplace-order-row,
.marketplace-listing-row,
.marketplace-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  text-decoration: none;
}

.marketplace-cart-item form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketplace-cart-item input {
  width: 76px;
  border-radius: 8px;
  border: 1px solid var(--marketplace-line);
  padding: 8px;
}

.marketplace-cart-item button,
.marketplace-icon-danger {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
}

.marketplace-icon-danger {
  color: #fff;
  background: var(--marketplace-pink);
}

.marketplace-summary-panel {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.marketplace-summary-panel strong {
  display: block;
  font-size: 1.35rem;
  margin: 8px 0 18px;
}

.marketplace-summary-panel p {
  color: #cfd6e3;
  font-size: .9rem;
  margin: 14px 0 0;
}

.marketplace-summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(255,255,255,.1);
}

.marketplace-summary-total {
  border-color: rgba(223, 45, 117, .5);
}

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

.marketplace-form-grid label {
  color: #fff;
  font-weight: 800;
  display: grid;
  gap: 8px;
}

.marketplace-form-grid--single,
.marketplace-form-wide {
  grid-column: 1 / -1;
}

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

.marketplace-check input {
  width: auto;
}

.marketplace-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.marketplace-form-button {
  width: fit-content;
}

.marketplace-url-input {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
}

.marketplace-url-input strong {
  background: #202633;
  border: 1px solid #d7dde8;
  border-right: 0;
  color: #fff;
  padding: 13px 12px;
  white-space: nowrap;
}

.marketplace-url-input input {
  border-radius: 0 8px 8px 0 !important;
}

.marketplace-design-picker {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 18px;
}

.marketplace-design-picker p {
  color: #cfd6e3;
  margin: 0;
}

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

.marketplace-theme-option {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
}

.marketplace-theme-option input {
  width: auto;
  margin-bottom: 10px;
}

.marketplace-theme-option > span,
.marketplace-theme-copy {
  display: grid;
  gap: 8px;
}

.marketplace-theme-option > span > strong,
.marketplace-theme-copy > strong {
  color: #fff;
}

.marketplace-theme-option > span > em,
.marketplace-theme-copy > em {
  color: #cfd6e3;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.marketplace-theme-option > span > a,
.marketplace-theme-copy > a {
  color: var(--marketplace-pink);
}

.marketplace-theme-grid--visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.marketplace-theme-option--visual {
  background: #252b38;
  border-color: rgba(255,255,255,.16);
  display: grid;
  gap: 14px;
  padding: 12px;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.marketplace-theme-option--visual:hover {
  border-color: rgba(223,45,117,.72);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transform: translateY(-2px);
}

.marketplace-theme-option--visual > input {
  height: 1px;
  left: 16px;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 16px;
  width: 1px;
}

.marketplace-theme-option--visual::before {
  align-items: center;
  background: #fff;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  color: #fff;
  content: "";
  display: flex;
  height: 18px;
  justify-content: center;
  left: 18px;
  position: absolute;
  top: 18px;
  width: 18px;
  z-index: 2;
}

.marketplace-theme-option--visual.is-selected,
.marketplace-theme-option--visual:has(input:checked) {
  border-color: var(--marketplace-pink);
  box-shadow: 0 22px 50px rgba(223,45,117,.16);
}

.marketplace-theme-option--visual.is-selected::before,
.marketplace-theme-option--visual:has(input:checked)::before {
  background: var(--marketplace-pink);
  border-color: var(--marketplace-pink);
  box-shadow: inset 0 0 0 4px #fff;
}

.marketplace-theme-copy {
  padding: 0 2px 2px;
}

.marketplace-theme-copy a {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marketplace-theme-preview-card {
  --preview-accent: var(--marketplace-pink);
  background: #f6f8fb;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #18202d;
  overflow: hidden;
}

.marketplace-preview-browser {
  align-items: center;
  background: #111722;
  color: rgba(255,255,255,.7);
  display: flex;
  gap: 5px;
  min-height: 28px;
  padding: 7px 10px;
}

.marketplace-preview-browser span {
  background: #fff;
  border-radius: 50%;
  display: block;
  height: 6px;
  opacity: .45;
  width: 6px;
}

.marketplace-preview-browser small {
  font-size: .62rem;
  font-weight: 800;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-preview-stage {
  background: #fff;
  display: grid;
  gap: 10px;
  min-height: 272px;
  padding: 14px;
}

.marketplace-preview-hero {
  align-items: end;
  background: linear-gradient(135deg, #2f3544 0%, #1f2531 100%);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 88px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.marketplace-preview-hero::after {
  background-image: var(--preview-hero);
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0 0 0 58%;
  opacity: .52;
  position: absolute;
}

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

.marketplace-preview-logo {
  align-items: center;
  background: var(--preview-accent);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: .58rem;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  margin-bottom: 8px;
  width: 32px;
}

.marketplace-preview-hero h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
}

.marketplace-preview-hero p {
  color: rgba(255,255,255,.72);
  font-size: .66rem;
  line-height: 1.35;
  margin: 6px 0 0;
  max-width: 250px;
}

.marketplace-preview-hero strong {
  background: var(--preview-accent);
  border-radius: 999px;
  color: #fff;
  font-size: .66rem;
  padding: 8px 11px;
  white-space: nowrap;
}

.marketplace-preview-strip {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketplace-preview-strip span {
  background: #f0f3f8;
  border-radius: 6px;
  color: #4c5668;
  display: block;
  font-size: .58rem;
  font-weight: 900;
  padding: 7px 6px;
  text-align: center;
}

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

.marketplace-preview-products article {
  background: #fff;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  overflow: hidden;
}

.marketplace-preview-products img {
  aspect-ratio: 1 / .78;
  background: #f2f4f8;
  display: block;
  object-fit: cover;
  width: 100%;
}

.marketplace-preview-products article > div {
  display: grid;
  gap: 4px;
  padding: 0 8px 9px;
}

.marketplace-preview-products small {
  color: var(--preview-accent);
  font-size: .52rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marketplace-preview-products strong {
  color: #1f2633;
  font-size: .66rem;
  line-height: 1.25;
}

.marketplace-preview-products span {
  color: #606b7d;
  font-size: .62rem;
  font-weight: 900;
}

.marketplace-theme-preview-card--boutique .marketplace-preview-stage {
  background: #fff7fb;
}

.marketplace-theme-preview-card--boutique .marketplace-preview-hero {
  min-height: 128px;
}

.marketplace-theme-preview-card--boutique .marketplace-preview-hero::after {
  inset: 0;
  opacity: .34;
}

.marketplace-theme-preview-card--boutique .marketplace-preview-products article:first-child {
  grid-column: span 2;
}

.marketplace-theme-preview-card--catalogue .marketplace-preview-hero {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e7f0;
  color: #1f2633;
  min-height: 64px;
}

.marketplace-theme-preview-card--catalogue .marketplace-preview-hero::after {
  display: none;
}

.marketplace-theme-preview-card--catalogue .marketplace-preview-hero h3 {
  color: #1f2633;
}

.marketplace-theme-preview-card--catalogue .marketplace-preview-hero p {
  color: #6b7483;
}

.marketplace-theme-preview-card--catalogue .marketplace-preview-products {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.marketplace-theme-preview-card--catalogue .marketplace-preview-products article:nth-child(n+5) {
  display: none;
}

.marketplace-theme-preview-card--editorial .marketplace-preview-stage {
  background: #f4f0ea;
}

.marketplace-theme-preview-card--editorial .marketplace-preview-hero {
  background: #222833;
  grid-template-columns: 1fr;
  min-height: 118px;
}

.marketplace-theme-preview-card--editorial .marketplace-preview-hero::after {
  inset: 12px 12px 12px 64%;
  opacity: .8;
}

.marketplace-theme-preview-card--editorial .marketplace-preview-products {
  grid-template-columns: 1.1fr .9fr .9fr;
}

.marketplace-theme-preview-card--editorial .marketplace-preview-products article:nth-child(n+4) {
  display: none;
}

.marketplace-cover-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.marketplace-seller-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 10px;
  background: var(--marketplace-charcoal);
  border-radius: 8px;
}

.marketplace-seller-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 800;
}

.marketplace-seller-nav a.is-active,
.marketplace-seller-nav a:hover {
  background: var(--marketplace-pink);
  border-color: var(--marketplace-pink);
  color: #fff;
}

.marketplace-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketplace-filter-tabs a {
  border: 1px solid var(--marketplace-line);
  border-radius: 999px;
  color: var(--marketplace-ink);
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.marketplace-filter-tabs a.is-active {
  background: var(--marketplace-pink);
  border-color: var(--marketplace-pink);
  color: #fff;
}

.marketplace-inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin: 34px 0 22px;
}

.marketplace-inventory-toolbar h1 {
  margin: 8px 0 4px;
}

.marketplace-inventory-toolbar > div:first-child > p:last-child {
  color: var(--marketplace-muted);
  margin: 0;
  max-width: 680px;
}

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

.marketplace-inventory-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.marketplace-inventory-stats > a,
.marketplace-inventory-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--marketplace-line);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
  color: var(--marketplace-ink);
  text-decoration: none;
}

.marketplace-inventory-stats > a:hover,
.marketplace-inventory-stats > a.is-active {
  border-color: var(--marketplace-pink);
  box-shadow: 0 8px 20px rgba(224, 45, 112, .10);
}

.marketplace-inventory-stats span {
  color: var(--marketplace-muted);
  font-size: .8rem;
  font-weight: 800;
}

.marketplace-inventory-stats strong {
  font-size: 1.35rem;
}

.marketplace-inventory-filters {
  margin-bottom: 20px;
  padding: 20px;
}

.marketplace-inventory-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.marketplace-inventory-filter-form label,
.marketplace-quick-stock-form label,
.marketplace-variant-quick-form label {
  display: grid;
  gap: 6px;
  color: #cfd6e3;
  font-size: .76rem;
  font-weight: 800;
}

.marketplace-inventory-filter-form input,
.marketplace-inventory-filter-form select,
.marketplace-quick-stock-form input,
.marketplace-quick-stock-form select,
.marketplace-variant-quick-form input,
.marketplace-variant-quick-form select {
  min-width: 0;
  border: 1px solid var(--marketplace-line);
  border-radius: 6px;
  background: #fff;
  color: var(--marketplace-ink);
  padding: 10px 11px;
  font: inherit;
}

.marketplace-inventory-search > div {
  position: relative;
}

.marketplace-inventory-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--marketplace-pink);
}

.marketplace-inventory-search input {
  width: 100%;
  padding-left: 34px;
}

.marketplace-inventory-filter-actions {
  display: flex;
  gap: 8px;
}

.marketplace-inventory-filter-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #cfd6e3;
  font-size: .9rem;
}

.marketplace-inventory-filter-meta strong {
  color: #fff;
}

.marketplace-inventory-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--marketplace-charcoal);
  box-shadow: 0 20px 45px rgba(24, 31, 44, .14);
}

.marketplace-inventory-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  color: #fff;
}

.marketplace-inventory-table th {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #cfd6e3;
  font-size: .76rem;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}

.marketplace-inventory-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  vertical-align: top;
}

.marketplace-inventory-table tbody tr:last-child td {
  border-bottom: 0;
}

.marketplace-inventory-table-actions {
  width: 150px;
}

.marketplace-inventory-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
}

.marketplace-inventory-product img,
.marketplace-inventory-product-placeholder {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 6px;
  object-fit: cover;
}

.marketplace-inventory-product-placeholder {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  color: #cfd6e3;
}

.marketplace-inventory-product strong,
.marketplace-inventory-product span,
.marketplace-inventory-product small {
  display: block;
}

.marketplace-inventory-product strong {
  color: #fff;
}

.marketplace-inventory-product span,
.marketplace-inventory-product small,
.marketplace-inventory-muted {
  color: #aeb8c8;
  font-size: .78rem;
}

.marketplace-inventory-product b {
  color: #e9edf4;
  font-weight: 700;
}

.marketplace-inventory-badge {
  display: inline-block;
  border-radius: 999px;
  background: rgba(100, 210, 155, .18);
  color: #a8f0c8;
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
}

.marketplace-inventory-badge.is-warning {
  background: rgba(255, 196, 87, .22);
  color: #ffd88b;
}

.marketplace-inventory-badge.is-danger {
  background: rgba(255, 91, 91, .18);
  color: #ffb0b0;
}

.marketplace-inventory-badge.is-draft {
  background: rgba(255,255,255,.12);
  color: #d9dfeb;
}

.marketplace-inventory-table td > .marketplace-inventory-muted {
  display: block;
  margin-top: 6px;
}

.marketplace-stock-number {
  display: block;
  font-size: 1.1rem;
}

.marketplace-quick-stock-form {
  min-width: 420px;
}

.marketplace-quick-stock-fields {
  display: grid;
  grid-template-columns: 72px 72px minmax(110px, 1fr);
  gap: 6px;
}

.marketplace-quick-stock-form > input {
  width: 100%;
  margin-top: 7px;
}

.marketplace-track-toggle {
  display: inline-flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 6px !important;
  margin-top: 8px;
}

.marketplace-track-toggle input {
  accent-color: var(--marketplace-pink);
}

.marketplace-compact-button {
  margin-top: 8px;
  padding: 9px 12px;
}

.marketplace-inventory-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.marketplace-inventory-row-actions .dashboard-secondary-action {
  padding: 8px 10px;
  white-space: nowrap;
}

.marketplace-icon-link,
.marketplace-danger-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.marketplace-danger-link {
  background: rgba(255, 91, 91, .15);
  color: #ffb0b0;
}

.marketplace-inventory-variants-row td {
  padding-top: 0;
  background: rgba(0,0,0,.08);
}

.marketplace-inventory-variants-row details summary {
  padding: 4px 0 10px;
  color: #ff9ec2;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.marketplace-inventory-variants-row details summary::-webkit-details-marker {
  display: none;
}

.marketplace-inventory-variants {
  display: grid;
  gap: 8px;
}

.marketplace-variant-quick-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 80px 80px 120px minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
}

.marketplace-variant-quick-form > div {
  min-width: 0;
}

.marketplace-variant-quick-form > div strong,
.marketplace-variant-quick-form > div span {
  display: block;
}

.marketplace-variant-quick-form > div span {
  color: #aeb8c8;
  font-size: .78rem;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .marketplace-inventory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketplace-inventory-actions {
    justify-content: flex-start;
  }

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

  .marketplace-inventory-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-inventory-search {
    grid-column: 1 / -1;
  }

  .marketplace-inventory-filter-actions {
    align-self: center;
  }

  .marketplace-inventory-table-wrap {
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .marketplace-inventory-table,
  .marketplace-inventory-table tbody,
  .marketplace-inventory-table tr,
  .marketplace-inventory-table td {
    display: block;
    min-width: 0;
  }

  .marketplace-inventory-table {
    width: 100%;
  }

  .marketplace-inventory-table thead {
    display: none;
  }

  .marketplace-inventory-table tbody > tr:not(.marketplace-inventory-variants-row) {
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: var(--marketplace-charcoal);
  }

  .marketplace-inventory-table td {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .marketplace-inventory-table td[data-label]::before {
    display: block;
    margin-bottom: 7px;
    color: #aeb8c8;
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .marketplace-inventory-table td[data-label="Product"]::before,
  .marketplace-inventory-table td[data-label="Quick update"]::before {
    display: none;
  }

  .marketplace-inventory-table td:last-child {
    border-bottom: 0;
  }

  .marketplace-quick-stock-form {
    min-width: 0;
  }

  .marketplace-inventory-variants-row {
    margin-top: -12px;
  }

  .marketplace-inventory-variants-row td {
    border: 0;
    padding: 0 10px 12px;
  }

  .marketplace-variant-quick-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-variant-quick-form > div,
  .marketplace-variant-quick-form > input,
  .marketplace-variant-quick-form > button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .marketplace-inventory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-inventory-filter-form {
    grid-template-columns: 1fr;
  }

  .marketplace-inventory-search {
    grid-column: auto;
  }

  .marketplace-inventory-filter-actions {
    align-self: stretch;
  }

  .marketplace-inventory-filter-actions .dashboard-primary-action,
  .marketplace-inventory-filter-actions .dashboard-secondary-action {
    flex: 1;
    text-align: center;
  }

  .marketplace-quick-stock-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-quick-stock-fields label:last-child {
    grid-column: 1 / -1;
  }

  .marketplace-inventory-row-actions {
    flex-wrap: wrap;
  }

  .marketplace-inventory-row-actions .dashboard-secondary-action {
    flex: 1;
    text-align: center;
  }
}

.marketplace-variant-editor {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 18px;
}

.marketplace-variant-editor p {
  color: #cfd6e3;
  margin: 0;
}

.marketplace-variant-grid,
.marketplace-inventory-list,
.marketplace-variant-stock-list {
  display: grid;
  gap: 14px;
}

.marketplace-variant-row,
.marketplace-inventory-form,
.marketplace-variant-stock-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 14px;
}

.marketplace-check-danger {
  color: #ffabc9 !important;
}

.marketplace-inventory-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.marketplace-inventory-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.marketplace-inventory-head strong,
.marketplace-variant-stock-row strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.marketplace-inventory-head span,
.marketplace-variant-stock-row span {
  color: #cfd6e3;
  font-size: .9rem;
}

.marketplace-inventory-head em {
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.marketplace-inventory-head em.is-warning {
  background: rgba(255, 196, 87, .22);
  color: #ffd88b;
}

.marketplace-inventory-head em.is-danger {
  background: rgba(255, 91, 91, .18);
  color: #ffb0b0;
}

.marketplace-adjustment-log {
  margin-top: 22px;
}

.marketplace-delivery-row {
  grid-template-columns: minmax(130px, .8fr) minmax(0, 1fr) auto auto auto;
}

.marketplace-public-footer {
  background: #2c3240;
  color: #fff;
  padding: 22px 0;
  margin-top: 60px;
}

.marketplace-seller-page {
  padding: 32px 0 70px;
}

.marketplace-seller-kicker {
  color: var(--marketplace-pink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .82rem;
}

.marketplace-upgrade-card,
.marketplace-readiness-card {
  display: grid;
  gap: 12px;
}

.marketplace-upgrade-card span {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.marketplace-seller-hero {
  padding-top: 0;
}

.marketplace-readiness-card strong {
  font-size: 2rem;
}

.marketplace-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.marketplace-stat-grid > div {
  background: var(--marketplace-charcoal);
  color: #fff;
  border-radius: 8px;
  padding: 20px;
}

.marketplace-stat-grid span {
  color: #cfd6e3;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.marketplace-stat-grid strong {
  font-size: 1.6rem;
}

.marketplace-panel-heading a {
  color: var(--marketplace-pink);
  font-weight: 800;
}

.marketplace-panel-heading--light h1,
.marketplace-page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.marketplace-listing-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.marketplace-image-strip {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
}

.marketplace-image-strip img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.marketplace-empty-state {
  border: 1px dashed var(--marketplace-line);
  border-radius: 8px;
  padding: 44px 24px;
  text-align: center;
}

.marketplace-empty-state i {
  color: var(--marketplace-pink);
  font-size: 2rem;
  margin-bottom: 12px;
}

.marketplace-empty-state--dark {
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.marketplace-pagination {
  margin-top: 24px;
}

.marketplace-order-status {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--marketplace-pink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.marketplace-onboarding-page {
  display: grid;
  gap: 22px;
}

.marketplace-onboarding-hero,
.marketplace-onboarding-success {
  background: var(--marketplace-charcoal);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  padding: 34px;
  box-shadow: 0 20px 45px rgba(24, 31, 44, .14);
}

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

.marketplace-onboarding-hero h1,
.marketplace-onboarding-success h1,
.marketplace-onboarding-card h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 14px;
}

.marketplace-onboarding-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.marketplace-onboarding-hero p,
.marketplace-onboarding-success p,
.marketplace-onboarding-card p,
.marketplace-onboarding-next p {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.marketplace-onboarding-trial,
.marketplace-onboarding-url,
.marketplace-onboarding-next > div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.marketplace-onboarding-trial span,
.marketplace-onboarding-url span,
.marketplace-onboarding-next span {
  color: #cfd6e3;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marketplace-onboarding-trial strong,
.marketplace-onboarding-url strong,
.marketplace-onboarding-next strong {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.marketplace-onboarding-steps {
  counter-reset: onboarding-step;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.marketplace-onboarding-steps li {
  align-items: center;
  background: #fff;
  border: 1px solid var(--marketplace-line);
  border-radius: 8px;
  color: var(--marketplace-muted);
  display: flex;
  font-weight: 800;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
}

.marketplace-onboarding-steps li::before {
  align-items: center;
  background: var(--marketplace-soft);
  border-radius: 50%;
  color: var(--marketplace-ink);
  content: counter(onboarding-step);
  counter-increment: onboarding-step;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.marketplace-onboarding-steps li.is-active,
.marketplace-onboarding-steps li.is-complete {
  background: var(--marketplace-charcoal);
  border-color: var(--marketplace-charcoal);
  color: #fff;
}

.marketplace-onboarding-steps li.is-active::before,
.marketplace-onboarding-steps li.is-complete::before {
  background: var(--marketplace-pink);
  color: #fff;
}

.marketplace-onboarding-card {
  color: #fff;
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.marketplace-onboarding-card label {
  color: #fff;
  font-weight: 800;
}

.marketplace-onboarding-card input {
  margin-top: 8px;
}

.marketplace-onboarding-check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 0;
}

.marketplace-onboarding-check input {
  margin-top: 4px;
  width: auto;
}

.marketplace-onboarding-theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketplace-theme-copy > small {
  color: rgba(255,255,255,.58);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marketplace-onboarding-card--wide {
  max-width: 1180px;
}

.marketplace-onboarding-preview-page {
  display: grid;
  gap: 24px;
}

.marketplace-preview-toolbar {
  align-items: center;
  background: var(--marketplace-charcoal);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 24px;
}

.marketplace-preview-toolbar h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 4px 0 8px;
}

.marketplace-preview-toolbar p {
  color: rgba(255,255,255,.72);
  margin: 0;
}

.marketplace-theme-preview-card--full {
  box-shadow: 0 24px 70px rgba(24, 31, 44, .16);
}

.marketplace-theme-preview-card--full .marketplace-preview-browser {
  min-height: 42px;
  padding: 12px 18px;
}

.marketplace-theme-preview-card--full .marketplace-preview-browser span {
  height: 9px;
  width: 9px;
}

.marketplace-theme-preview-card--full .marketplace-preview-browser small {
  font-size: .82rem;
}

.marketplace-theme-preview-card--full .marketplace-preview-stage {
  gap: 20px;
  min-height: 720px;
  padding: 28px;
}

.marketplace-theme-preview-card--full .marketplace-preview-hero {
  min-height: 260px;
  padding: 32px;
}

.marketplace-theme-preview-card--full .marketplace-preview-logo {
  font-size: .82rem;
  height: 44px;
  width: 58px;
}

.marketplace-theme-preview-card--full .marketplace-preview-hero h3 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  max-width: 680px;
}

.marketplace-theme-preview-card--full .marketplace-preview-hero p {
  font-size: 1rem;
  max-width: 560px;
}

.marketplace-theme-preview-card--full .marketplace-preview-hero strong {
  font-size: .95rem;
  padding: 13px 18px;
}

.marketplace-theme-preview-card--full .marketplace-preview-strip {
  gap: 12px;
}

.marketplace-theme-preview-card--full .marketplace-preview-strip span {
  font-size: .86rem;
  padding: 14px;
}

.marketplace-theme-preview-card--full .marketplace-preview-products {
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketplace-theme-preview-card--full .marketplace-preview-products img {
  aspect-ratio: 1 / .72;
}

.marketplace-theme-preview-card--full .marketplace-preview-products article > div {
  padding: 0 14px 16px;
}

.marketplace-theme-preview-card--full .marketplace-preview-products small {
  font-size: .7rem;
}

.marketplace-theme-preview-card--full .marketplace-preview-products strong {
  font-size: 1rem;
}

.marketplace-theme-preview-card--full .marketplace-preview-products span {
  font-size: .9rem;
}

.marketplace-theme-preview-card--full.marketplace-theme-preview-card--catalogue .marketplace-preview-products {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.marketplace-theme-preview-card--full.marketplace-theme-preview-card--catalogue .marketplace-preview-products article:nth-child(n+5) {
  display: grid;
}

.marketplace-theme-preview-card--full.marketplace-theme-preview-card--editorial .marketplace-preview-products {
  grid-template-columns: 1.2fr .9fr .9fr 1fr;
}

.marketplace-theme-preview-card--full.marketplace-theme-preview-card--editorial .marketplace-preview-products article:nth-child(n+4) {
  display: grid;
}

.marketplace-onboarding-publish {
  max-width: 980px;
}

.marketplace-import-heading {
  align-items: flex-end;
}

.marketplace-import-heading p {
  color: var(--marketplace-muted);
  margin: 12px 0 0;
  max-width: 700px;
}

.marketplace-import-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.marketplace-import-card {
  min-width: 0;
}

.marketplace-import-card h2 {
  color: #fff;
  margin: 6px 0 10px;
}

.marketplace-import-card > p {
  color: #cbd2dd;
  line-height: 1.65;
}

.marketplace-import-form {
  margin-top: 22px;
}

.marketplace-import-form select,
.marketplace-import-form input[type="file"],
.marketplace-import-card input[type="url"],
.marketplace-import-card input[type="text"],
.marketplace-import-card input[type="password"],
.marketplace-import-card select {
  min-height: 46px;
  width: 100%;
}

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

.marketplace-import-form-actions {
  grid-column: 1 / -1;
  justify-content: space-between;
}

.marketplace-import-form-actions span,
.marketplace-import-muted,
.marketplace-import-confirm p,
.marketplace-connection-options summary small,
.marketplace-integration-row small {
  color: #aeb7c5;
  font-size: .78rem;
}

.marketplace-connection-options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.marketplace-connection-options details {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 14px;
}

.marketplace-connection-options summary {
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.marketplace-connection-options summary::-webkit-details-marker {
  display: none;
}

.marketplace-connection-options form {
  margin-top: 18px;
}

.marketplace-connection-options label {
  color: #fff;
}

.marketplace-connection-options label small {
  color: #aeb7c5;
  display: block;
  font-weight: 400;
  margin: -2px 0 3px;
}

.marketplace-integration-list,
.marketplace-import-job-list {
  display: grid;
  gap: 10px;
}

.marketplace-integration-row {
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 16px;
}

.marketplace-integration-row > div {
  display: grid;
  gap: 4px;
}

.marketplace-integration-row strong,
.marketplace-integration-row span {
  color: #fff;
}

.marketplace-integration-row > div > span:not(.marketplace-integration-status) {
  color: #aeb7c5;
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-integration-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: .7rem;
  font-weight: 800;
  justify-content: center;
  padding: 5px 9px;
  width: fit-content;
}

.marketplace-integration-status--connected {
  background: #d9f7e9;
  color: #116043 !important;
}

.marketplace-integration-status--error {
  background: #ffe2eb;
  color: #9f164d !important;
}

.marketplace-danger-action {
  background: transparent;
  border: 0;
  color: #ff9abb;
  cursor: pointer;
  font-weight: 800;
  padding: 10px;
}

.marketplace-import-job-list a {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 0;
  text-decoration: none;
}

.marketplace-import-job-list a span {
  color: #aeb7c5;
  font-size: .78rem;
}

.marketplace-import-job-list a em {
  color: #ff8fbc;
  font-size: .76rem;
  font-style: normal;
  font-weight: 800;
}

.marketplace-import-preview-table {
  overflow-x: auto;
}

.marketplace-import-preview-row {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(90px, 1fr));
  min-width: 680px;
  padding: 14px 0;
}

.marketplace-import-preview-row > * {
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-import-preview-head > * {
  color: #aeb7c5;
  font-size: .72rem;
  text-transform: uppercase;
}

.marketplace-import-confirm {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 22px;
  padding-top: 22px;
}

.marketplace-import-confirm .marketplace-check {
  color: #fff;
}

.marketplace-import-progress {
  background: #252b38;
  border-radius: 999px;
  height: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}

.marketplace-import-progress span {
  background: var(--marketplace-pink);
  display: block;
  height: 100%;
  transition: width .3s ease;
}

.marketplace-import-status-card > strong {
  color: #fff;
  display: block;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .marketplace-import-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .marketplace-import-form-actions,
  .marketplace-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .marketplace-import-form-actions > *,
  .marketplace-form-actions > * {
    width: 100%;
  }
}

.marketplace-onboarding-success-actions,
.marketplace-onboarding-next {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .marketplace-hero,
  .marketplace-product-detail,
  .marketplace-checkout-shell,
  .marketplace-seller-hero,
  .marketplace-upgrade-hero,
  .marketplace-detail-description,
  .marketplace-order-grid,
  .marketplace-catalogue-hero,
  .marketplace-editorial-hero,
  .marketplace-onboarding-hero,
  .marketplace-onboarding-success {
    grid-template-columns: 1fr;
  }

  .marketplace-product-grid,
  .marketplace-stat-grid,
  .marketplace-product-grid--catalogue,
  .marketplace-product-grid--editorial,
  .marketplace-theme-grid,
  .marketplace-theme-preview-card--full .marketplace-preview-products,
  .marketplace-theme-preview-card--full.marketplace-theme-preview-card--catalogue .marketplace-preview-products,
  .marketplace-theme-preview-card--full.marketplace-theme-preview-card--editorial .marketplace-preview-products,
  .marketplace-onboarding-success-actions,
  .marketplace-onboarding-next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .marketplace-summary-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .marketplace-shell,
  .marketplace-seller-page {
    width: min(100% - 22px, 1180px);
  }

  .marketplace-public-nav,
  .marketplace-public-footer .marketplace-shell,
  .marketplace-section-heading--split,
  .marketplace-panel-heading,
  .marketplace-panel-heading--light {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketplace-product-grid,
  .marketplace-stat-grid,
  .marketplace-form-grid,
  .marketplace-onboarding-steps,
  .marketplace-onboarding-theme-grid,
  .marketplace-onboarding-success-actions,
  .marketplace-onboarding-next,
  .marketplace-product-grid--catalogue,
  .marketplace-product-grid--editorial,
  .marketplace-theme-grid,
  .marketplace-preview-strip,
  .marketplace-preview-products,
  .marketplace-theme-preview-card--catalogue .marketplace-preview-products,
  .marketplace-theme-preview-card--editorial .marketplace-preview-products,
  .marketplace-theme-preview-card--full .marketplace-preview-products,
  .marketplace-theme-preview-card--full.marketplace-theme-preview-card--catalogue .marketplace-preview-products,
  .marketplace-theme-preview-card--full.marketplace-theme-preview-card--editorial .marketplace-preview-products {
    grid-template-columns: 1fr;
  }

  .marketplace-preview-hero,
  .marketplace-theme-preview-card--full .marketplace-preview-hero {
    grid-template-columns: 1fr;
    min-height: 220px;
  }

  .marketplace-theme-preview-card--catalogue .marketplace-preview-products article:nth-child(n+5),
  .marketplace-theme-preview-card--editorial .marketplace-preview-products article:nth-child(n+4) {
    display: grid;
  }

  .marketplace-cart-item,
  .marketplace-order-row,
  .marketplace-listing-row,
  .marketplace-variant-row,
  .marketplace-inventory-form,
  .marketplace-variant-stock-row,
  .marketplace-delivery-row {
    grid-template-columns: 1fr;
  }

  .marketplace-store-hero,
  .marketplace-order-confirmation {
    grid-template-columns: 1fr;
  }

  .marketplace-detail-gallery {
    min-height: 320px;
  }

  .marketplace-add-form {
    grid-template-columns: 1fr;
  }
}
/* Pricing and promotion controls */
.marketplace-pricing-panel { background: #252b37; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 22px; }
.marketplace-pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.marketplace-pricing-grid label, .marketplace-inline-pricing-grid label { display: grid; gap: 7px; }
.marketplace-field-note { color: #aeb7c5; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.marketplace-promotion-channels { display: flex; flex-wrap: wrap; gap: 18px; border: 0; margin: 18px 0 0; padding: 0; }
.marketplace-promotion-channels legend { flex-basis: 100%; color: #d9deea; font-weight: 700; margin-bottom: 2px; }
.marketplace-sale-price { color: #df2d75; }
.marketplace-promotion-warning { display: block; color: #e5a63e; font-size: .78rem; font-weight: 700; }
.marketplace-regular-price, .marketplace-inventory-muted { display: block; color: #8e98aa; font-size: .8rem; }
.marketplace-discount-badge { display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 999px; background: rgba(223,45,117,.14); color: #df2d75; font-weight: 700; }
.marketplace-inline-pricing { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.marketplace-inline-pricing summary { cursor: pointer; color: #f37aa8; font-weight: 700; }
.marketplace-inline-pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.marketplace-inline-pricing-grid input { min-width: 0; }
.marketplace-inline-channel-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; color: #d9deea; font-size: .85rem; }
.marketplace-inline-channel-list label { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 900px) {
    .marketplace-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketplace-inline-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .marketplace-pricing-grid, .marketplace-inline-pricing-grid { grid-template-columns: 1fr; }
    .marketplace-promotion-channels { display: grid; gap: 10px; }
}

/* Variant matrix and product media */
.marketplace-variant-matrix-editor,
.marketplace-media-editor { background: #292f3c; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 22px; }
.marketplace-option-builder { display: grid; gap: 10px; margin: 18px 0; }
.marketplace-option-row { display: grid; grid-template-columns: minmax(140px,.35fr) minmax(0,1fr); gap: 12px; }
.marketplace-variant-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
.marketplace-variant-matrix { width: 100%; min-width: 920px; border-collapse: collapse; }
.marketplace-variant-matrix th { color: #aeb7c5; font-size: .72rem; text-align: left; text-transform: uppercase; padding: 10px; }
.marketplace-variant-matrix td { border-top: 1px solid rgba(255,255,255,.1); padding: 9px; vertical-align: middle; }
.marketplace-variant-matrix td:first-child { min-width: 170px; }
.marketplace-variant-matrix input { min-width: 90px; width: 100%; }
.marketplace-switch { display: inline-flex; align-items: center; }
.marketplace-switch input { position: absolute; opacity: 0; pointer-events: none; }
.marketplace-switch span { width: 38px; height: 22px; border-radius: 999px; background: #667085; position: relative; transition: background .18s ease; }
.marketplace-switch span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.marketplace-switch input:checked + span { background: var(--marketplace-pink); }
.marketplace-switch input:checked + span::after { transform: translateX(16px); }
.marketplace-archive-variant { color: #ff9bbb; font-size: .78rem; white-space: nowrap; }
.marketplace-variant-empty { display: grid; place-items: center; gap: 5px; min-height: 130px; color: #aeb7c5; text-align: center; }
.marketplace-variant-empty i { color: var(--marketplace-pink); font-size: 1.5rem; }
.marketplace-media-library { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.marketplace-media-item { display: grid; gap: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 10px; }
.marketplace-media-item label { font-size: .78rem; }
.marketplace-media-preview { aspect-ratio: 4 / 3; background: #171b24; border-radius: 6px; overflow: hidden; display: grid; place-items: center; color: #d5dbea; }
.marketplace-media-preview img,
.marketplace-media-preview video { width: 100%; height: 100%; object-fit: cover; }
.marketplace-media-upload-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.marketplace-media-upload-grid > div { display: grid; align-content: start; gap: 9px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }

.marketplace-rich-gallery { display: grid; align-content: start; gap: 10px; background: #f4f5f7; padding: 12px; }
.marketplace-gallery-stage { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; display: grid; place-items: center; }
.marketplace-gallery-slide { width: 100%; height: 100%; }
.marketplace-gallery-slide img,
.marketplace-gallery-slide video,
.marketplace-gallery-slide iframe { width: 100%; height: 100%; object-fit: contain; border: 0; background: #fff; }
.marketplace-gallery-thumbs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.marketplace-gallery-thumbs button { aspect-ratio: 1; border: 2px solid transparent; background: #fff; padding: 3px; border-radius: 6px; overflow: hidden; color: var(--marketplace-pink); }
.marketplace-gallery-thumbs button.is-active { border-color: var(--marketplace-pink); }
.marketplace-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-option-selectors { display: grid; gap: 15px; }
.marketplace-option-selectors fieldset { border: 0; margin: 0; padding: 0; }
.marketplace-option-selectors legend { color: var(--marketplace-ink); font-weight: 800; margin-bottom: 8px; }
.marketplace-option-selectors legend span { color: var(--marketplace-muted); font-weight: 500; margin-left: 6px; }
.marketplace-option-selectors fieldset > div { display: flex; flex-wrap: wrap; gap: 8px; }
.marketplace-option-selectors button { min-width: 46px; min-height: 42px; padding: 8px 13px; border: 1px solid #cfd5df; border-radius: 6px; background: #fff; color: var(--marketplace-ink); font-weight: 700; }
.marketplace-option-selectors button.is-selected { background: var(--marketplace-charcoal); border-color: var(--marketplace-charcoal); color: #fff; }
.marketplace-option-selectors button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.marketplace-variant-status { color: var(--marketplace-muted); font-size: .88rem; margin: -2px 0 4px; }

@media (max-width: 900px) {
  .marketplace-media-library,
  .marketplace-media-upload-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .marketplace-option-row,
  .marketplace-media-library,
  .marketplace-media-upload-grid { grid-template-columns: 1fr; }
  .marketplace-variant-matrix { min-width: 0; }
  .marketplace-variant-matrix thead { display: none; }
  .marketplace-variant-matrix tbody,
  .marketplace-variant-matrix tr,
  .marketplace-variant-matrix td { display: block; width: 100%; }
  .marketplace-variant-matrix tr { padding: 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .marketplace-variant-matrix td { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 8px; align-items: center; border: 0; padding: 5px 0; }
  .marketplace-variant-matrix td::before { content: attr(data-label); color: #aeb7c5; font-size: .72rem; text-transform: uppercase; }
  .marketplace-gallery-thumbs { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
/* Seller social sharing and storefront banner product */
.marketplace-listing-row.marketplace-listing-row--managed { grid-template-columns: minmax(0, 1fr) auto auto; }
.marketplace-listing-main { display: grid; gap: 4px; min-width: 0; color: #fff; text-decoration: none; }
.marketplace-listing-main span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-listing-main small { color: #c7ccda; }
.marketplace-listing-actions,
.marketplace-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.marketplace-banner-product-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 24px; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
.marketplace-banner-product-picker h2 { margin: 4px 0 8px; }
.marketplace-banner-product-control { display: grid; gap: 12px; }
.marketplace-banner-product-control > a { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #fff; }
.marketplace-banner-product-control img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-banner-product-control a span { position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 6px; background: rgba(26,31,43,.9); font-size: .8rem; font-weight: 800; }

.marketplace-share-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.marketplace-share-preview { overflow: hidden; border: 1px solid var(--marketplace-line); border-radius: 8px; background: #fff; box-shadow: 0 18px 45px rgba(18,24,38,.1); }
.marketplace-share-preview__image { display: block; aspect-ratio: 4 / 5; background: #eef0f4; }
.marketplace-share-preview img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-share-preview > div { display: grid; gap: 6px; padding: 20px; }
.marketplace-share-preview h2 { margin: 0; color: #1a1f2b; }
.marketplace-share-preview strong,
.marketplace-share-preview small { color: var(--marketplace-pink); }
.marketplace-share-workspace { display: grid; gap: 22px; }
.marketplace-share-platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.marketplace-share-platform { display: grid; place-items: center; gap: 8px; min-height: 92px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: #2d3342; color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.marketplace-share-platform i { font-size: 1.6rem; }
.marketplace-share-platform.is-whatsapp i { color: #25d366; }
.marketplace-share-platform.is-facebook i { color: #5a8dee; }
.marketplace-share-platform.is-instagram i { color: #f04d86; }
.marketplace-share-platform.is-tiktok i { color: #69c9d0; }
.marketplace-share-caption { display: grid; gap: 8px; color: #fff; font-weight: 700; }
.marketplace-share-caption textarea { width: 100%; resize: vertical; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #242a38; color: #fff; line-height: 1.55; }
.marketplace-share-status { min-height: 22px; margin: 0; color: #ff88b8; }
.marketplace-selected-banner { display: block; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.marketplace-selected-banner img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-public-share { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.marketplace-public-share > span { margin-right: 4px; font-weight: 800; }
.marketplace-public-share a,
.marketplace-public-share button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--marketplace-line); border-radius: 50%; background: #fff; color: #202635; cursor: pointer; }
.marketplace-public-share .fa-whatsapp { color: #159447; }
.marketplace-public-share .fa-facebook-f { color: #4267b2; }

@media (max-width: 760px) {
  .marketplace-listing-row--managed,
  .marketplace-banner-product-picker,
  .marketplace-share-layout { grid-template-columns: 1fr; }
  .marketplace-listing-actions a { flex: 1; justify-content: center; }
  .marketplace-share-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-share-preview { max-width: 460px; }
}
