/* PicPick Marketplace — shared styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Single viewport mesh — avoids tiled gradient seams on long pages */
body.mp-page-bg,
body.bg-mesh {
  background-color: #fafaf9;
  background-image: none !important;
}

.dark body.mp-page-bg,
.dark body.bg-mesh {
  background-color: #0a0a0a;
}

body.mp-page-bg::before,
body.bg-mesh::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 40% 18%, rgba(201, 168, 76, 0.12), transparent 58%),
    radial-gradient(ellipse 65% 50% at 82% 4%, rgba(120, 119, 198, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 48%, rgba(201, 168, 76, 0.06), transparent 52%);
  background-repeat: no-repeat;
}

h1,
h2,
h3 {
  font-family: 'DM Serif Display', Georgia, serif;
}

.skel {
  background: linear-gradient(90deg, #f0efed 25%, #e8e6e3 50%, #f0efed 75%);
  background-size: 400px 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 6px;
}

.dark .skel {
  background: linear-gradient(90deg, #1c1c1c 25%, #252525 50%, #1c1c1c 75%);
  background-size: 400px 100%;
}

.ba-wrap {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .9);
  cursor: ew-resize;
  z-index: 10;
}

.ba-handle-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  bottom: 10px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.mp-os-ready .scrollbar-thin,
.mp-os-ready .overflow-x-auto,
.mp-os-ready .overflow-y-auto,
.mp-os-ready .mp-category-strip,
.mp-os-ready .mp-feature-carousel,
.mp-os-ready .mp-product-rail,
.mp-os-ready .pp-gallery-thumbs,
.mp-os-ready .mp-sidebar-sticky {
  scrollbar-width: none;
}

.mp-os-ready .scrollbar-thin::-webkit-scrollbar,
.mp-os-ready .overflow-x-auto::-webkit-scrollbar,
.mp-os-ready .overflow-y-auto::-webkit-scrollbar,
.mp-os-ready .mp-category-strip::-webkit-scrollbar,
.mp-os-ready .mp-feature-carousel::-webkit-scrollbar,
.mp-os-ready .mp-product-rail::-webkit-scrollbar,
.mp-os-ready .pp-gallery-thumbs::-webkit-scrollbar,
.mp-os-ready .mp-sidebar-sticky::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.os-theme-picpick.os-scrollbar {
  --os-size: 9px;
  --os-padding-perpendicular: 2px;
  --os-padding-axis: 2px;
  --os-track-bg: transparent;
  --os-handle-bg: rgba(13, 13, 13, 0.22);
  --os-handle-bg-hover: rgba(13, 13, 13, 0.36);
  --os-handle-bg-active: rgba(13, 13, 13, 0.5);
  --os-handle-border-radius: 999px;
}

.dark .os-theme-picpick.os-scrollbar,
.mp-store-dark .os-theme-picpick.os-scrollbar {
  --os-handle-bg: rgba(240, 239, 237, 0.24);
  --os-handle-bg-hover: rgba(240, 239, 237, 0.42);
  --os-handle-bg-active: rgba(240, 239, 237, 0.56);
}

.mp-atc--added {
  background: #2d6a4f !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  cursor: default;
}

.mp-card h3,
.mp-card .font-medium {
  color: var(--mp-card-title-color, inherit);
  font-family: var(--mp-font-product-title, inherit);
}

.mp-store-scope .mp-card h3,
.mp-store-scope .mp-card .font-medium {
  font-family: var(--mp-font-product-title, var(--mp-font-display, 'DM Serif Display', Georgia, serif));
}

.mp-card .price-tag {
  color: var(--mp-price-color, inherit);
}

.mp-store-scope .mp-card .price-tag {
  font-family: var(--mp-font-product-price, 'DM Serif Display', Georgia, serif);
}

.mp-store-hero h1,
.mp-hero__title {
  color: var(--mp-heading-color, inherit);
}

.mp-card {
  transition: box-shadow .2s ease, transform .2s ease;
}

.mp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.dark .mp-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.mp-inp {
  width: 100%;
  padding: .6rem .875rem;
  font-size: .875rem;
  line-height: 1.5;
  border: 1px solid #e2ddd7;
  border-radius: .625rem;
  background: #fafaf9;
  color: #0d0d0d;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: 'DM Sans', sans-serif;
}

.mp-inp:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}

.dark .mp-inp {
  background: #161616;
  border-color: #2e2e2e;
  color: #f0efed;
}

.dark .mp-inp:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .1);
}

textarea.mp-inp {
  resize: vertical;
}

select.mp-inp {
  cursor: pointer;
}

.mp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .625rem 1.25rem;
  border-radius: .625rem;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  background: #0d0d0d;
  color: #fafaf9;
  transition: background .15s, transform .1s;
}

.mp-btn-primary:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.dark .mp-btn-primary {
  background: #f0efed;
  color: #0d0d0d;
}

.dark .mp-btn-primary:hover:not(:disabled) {
  background: #fff;
}

.mp-btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.mp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .625rem 1.25rem;
  border-radius: .625rem;
  border: 1px solid #e2ddd7;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  background: transparent;
  color: #0d0d0d;
  transition: background .15s, border-color .15s;
}

.mp-btn-ghost:hover:not(:disabled) {
  background: #f5f3f0;
}

.dark .mp-btn-ghost {
  border-color: #2e2e2e;
  color: #f0efed;
}

.dark .mp-btn-ghost:hover:not(:disabled) {
  background: #1e1e1e;
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.price-tag {
  font-family: 'DM Serif Display', serif;
}

[data-anim] {
  opacity: 0;
}

[data-anim="up"] {
  transform: translateY(12px);
}

:root {
  --mp-accent: #c9a84c;
  --mp-secondary: #0d0d0d;
}

/* Store scope: fixed light/dark (ignores visitor html.dark for store body) */
.mp-store-scope {
  background: var(--mp-bg, #fafaf9);
  color: var(--mp-body-color, #0d0d0d);
}

.mp-store-scope.mp-store-theme-light {
  color-scheme: light;
  background: var(--mp-bg, #fafaf9);
  color: var(--mp-body-color, #0d0d0d);
}

.mp-store-scope.mp-store-theme-dark {
  color-scheme: dark;
  background: var(--mp-bg, #0a0a0a);
  color: var(--mp-body-color, #f0efed);
}

.mp-store-scope .mp-store-link,
.mp-store-scope .mp-hero__eyebrow,
.mp-store-scope a.mp-store-link {
  color: var(--mp-link-color, var(--mp-accent, #c9a84c));
}

.mp-store-scope.mp-store-theme-light .mp-card {
  background: #fff !important;
  border-color: #efefef !important;
}

.mp-store-scope.mp-store-theme-light h1,
.mp-store-scope.mp-store-theme-light h2,
.mp-store-scope.mp-store-theme-light h3,
.mp-store-scope.mp-store-theme-light .font-display,
.mp-store-scope.mp-store-theme-light .mp-hero__title {
  color: var(--mp-heading-color, #0d0d0d) !important;
}

.mp-store-scope.mp-store-theme-light .mp-hero__sub {
  color: var(--mp-hero-sub-color, var(--mp-muted-color, #737373));
}

.mp-store-scope.mp-store-theme-light p,
.mp-store-scope.mp-store-theme-light .mp-stat-lbl {
  color: var(--mp-muted-color, #737373);
}

.mp-store-scope.mp-store-theme-light .mp-stat-val {
  color: var(--mp-body-color, #0d0d0d);
}

.mp-store-scope.mp-store-theme-dark .mp-card {
  background: #141414 !important;
  border-color: #2a2a2a !important;
}

.mp-store-scope.mp-store-theme-dark h1,
.mp-store-scope.mp-store-theme-dark h2,
.mp-store-scope.mp-store-theme-dark h3,
.mp-store-scope.mp-store-theme-dark .font-display,
.mp-store-scope.mp-store-theme-dark .mp-hero__title {
  color: var(--mp-heading-color, #f0efed) !important;
}

.mp-store-scope.mp-store-theme-dark .mp-hero__sub {
  color: var(--mp-hero-sub-color, var(--mp-muted-color, #a6a6a6));
}

.mp-store-scope.mp-store-theme-dark p,
.mp-store-scope.mp-store-theme-dark .mp-stat-lbl {
  color: var(--mp-muted-color, #a6a6a6);
}

.mp-store-scope.mp-store-theme-dark .mp-stat-val {
  color: var(--mp-body-color, #f0efed);
}

.mp-store-scope.mp-store-theme-dark .mp-hero__split-copy {
  color: #fff;
}

#sel-root,
.mp-store-preview {
  background: var(--mp-bg, transparent);
}

#sel-root {
  border-radius: 1rem;
}

.mp-font-sans h1,
.mp-font-sans h2,
.mp-font-sans h3,
.mp-font-sans .mp-hero__title {
  font-family: 'DM Sans', system-ui, sans-serif !important;
}

.price-tag {
  color: var(--mp-price-color, inherit);
}

.mp-store-widgets .mp-btn-primary,
.mp-store-preview .mp-btn-primary,
.mp-listing-root.mp-store-widgets .mp-btn-primary {
  background: var(--mp-button-bg, var(--mp-accent, #c9a84c)) !important;
  color: var(--mp-button-text, #0d0d0d) !important;
  border-color: transparent;
}

.mp-store-widgets .mp-btn-primary:hover:not(:disabled),
.mp-store-preview .mp-btn-primary:hover:not(:disabled),
.mp-listing-root.mp-store-widgets .mp-btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.mp-store-widgets .mp-hero__cta,
.mp-store-preview .mp-hero__cta {
  background: var(--mp-button-bg, var(--mp-accent, #c9a84c)) !important;
  color: var(--mp-button-text, #0d0d0d) !important;
}

.mp-store-widgets,
.mp-store-preview,
.mp-listing-root.mp-store-widgets {
  color: var(--mp-body-color, inherit);
}

.mp-store-widgets .text-ink-400,
.mp-store-preview .text-ink-400,
.mp-listing-root.mp-store-widgets .text-ink-400 {
  color: var(--mp-muted-color, inherit);
}

.mp-card-nav {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mp-card .mp-heart {
  z-index: 4;
}

.mp-card .mp-card-media {
  position: relative;
  overflow: hidden;
}

.mp-card .mp-card-body {
  position: relative;
  z-index: 2;
  padding: 0.875rem 1rem 1rem;
}

.mp-card-density-compact .mp-card-body {
  padding: 0.625rem 0.75rem 0.75rem;
}

.mp-card-density-compact .mp-atc {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  margin-top: 0.45rem;
}

.mp-card-density-spacious .mp-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.mp-card-density-spacious .mp-atc {
  margin-top: 0.85rem;
}

.mp-preview-card.mp-card-density-compact .mp-preview-card-body {
  padding: 0.625rem 0.75rem 0.75rem;
}

.mp-preview-card.mp-card-density-spacious .mp-preview-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.mp-preview-card.mp-card-density-comfortable .mp-preview-card-body {
  padding: 0.875rem 1rem 1rem;
}

.mp-card .mp-atc {
  width: 100%;
  margin-top: 0.65rem;
  z-index: 3;
  position: relative;
}

.mp-card:hover .mp-atc {
  opacity: 1;
  transform: translateY(0);
}

.mp-listing-root .mp-card:hover {
  box-shadow: 0 12px 40px color-mix(in srgb, var(--mp-accent) 15%, transparent);
}

/* Product grids — pure CSS (Tailwind CDN does not scan JS-injected class names) */
.mp-layout-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .mp-layout-grid.mp-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-layout-grid.mp-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mp-layout-grid.mp-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mp-layout-grid.mp-cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mp-layout-grid.mp-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mp-layout-grid.mp-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.mp-layout-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Horizontal list row (thumb left) — CSS-only, no Tailwind dependency */
.mp-card.mp-card-list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 100%;
}

.mp-card-list-thumb {
  position: relative;
  width: 7rem;
  min-width: 7rem;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efefef;
}

.dark .mp-card-list-thumb {
  background: #262626;
}

.mp-card-list-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .mp-card-list-thumb {
    width: 9rem;
    min-width: 9rem;
  }
}

.mp-card-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.15rem 0;
}

.mp-card-list .mp-heart {
  top: 50%;
  transform: translateY(-50%);
}

.mp-layout-editorial {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .mp-layout-editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mp-layout-masonry {
  column-gap: 1rem;
  columns: 2;
}

.mp-layout-masonry.mp-masonry-cols-2 {
  columns: 2;
}

.mp-layout-masonry.mp-masonry-cols-3 {
  columns: 2;
}

.mp-layout-masonry.mp-masonry-cols-4,
.mp-layout-masonry.mp-masonry-cols-5 {
  columns: 2;
}

@media (min-width: 640px) {
  .mp-layout-masonry.mp-masonry-cols-3 {
    columns: 3;
  }

  .mp-layout-masonry.mp-masonry-cols-4,
  .mp-layout-masonry.mp-masonry-cols-5 {
    columns: 3;
  }
}

@media (min-width: 1024px) {
  .mp-layout-masonry.mp-masonry-cols-4 {
    columns: 4;
  }

  .mp-layout-masonry.mp-masonry-cols-5 {
    columns: 4;
  }
}

@media (min-width: 1280px) {
  .mp-layout-masonry.mp-masonry-cols-5 {
    columns: 5;
  }
}

.mp-layout-masonry .mp-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: inline-block;
  width: 100%;
}

.mp-layout-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .mp-layout-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mp-layout-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mp-layout-compact .mp-card-body {
  padding: 0.5rem 0.65rem 0.65rem;
}

.mp-layout-compact .mp-card-media {
  aspect-ratio: 1;
}

.mp-store-widgets {
  min-width: 0;
}

.mp-seller-section-stack {
  display: grid;
  gap: 1.75rem;
}

.mp-seller-sections {
  margin: 0;
}

.mp-seller-section {
  min-width: 0;
}

/* Card corner styles (store design) */
.mp-card-style-rounded,
.mp-card-style-rounded .mp-card-media {
  border-radius: 1rem;
}

.mp-card-style-sharp,
.mp-card-style-sharp .mp-card-media {
  border-radius: 0.5rem;
}

.mp-card-style-soft,
.mp-card-style-soft .mp-card-media {
  border-radius: 1.5rem;
}

.mp-card-style-rounded .mp-atc {
  border-radius: 0.65rem;
}

.mp-card-style-sharp .mp-atc {
  border-radius: 0.35rem;
}

.mp-card-style-soft .mp-atc {
  border-radius: 999px;
}

.mp-layout-list .mp-card-list {
  align-items: stretch;
}

.mp-layout-list .mp-card-list .mp-heart {
  top: 50%;
  transform: translateY(-50%);
}

.mp-layout-editorial .mp-card-editorial:first-child {
  grid-column: 1 / -1;
}

.mp-layout-editorial .mp-card-editorial:first-child .mp-card-media,
.mp-layout-editorial .mp-card-editorial:first-child .relative {
  aspect-ratio: 21/9;
}

@media (min-width: 640px) {
  .mp-layout-editorial .mp-card-editorial:first-child {
    grid-column: span 2;
  }
}

.mp-store-hero {
  background: var(--mp-hero-bg-image, var(--mp-hero-bg, linear-gradient(135deg, var(--mp-secondary, #0d0d0d) 0%, #1a1510 50%, var(--mp-secondary, #0d0d0d) 100%)));
}

/* Storefront hero variants (CSS-only — Tailwind does not scan JS templates) */
.mp-hero {
  position: relative;
  width: 100%;
}

.mp-hero__eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mp-link-color, var(--mp-accent, #c9a84c));
  margin: 0 0 0.35rem;
}

.mp-hero__title {
  font-family: var(--mp-font-display, 'DM Serif Display', Georgia, serif);
  color: #0d0d0d;
  line-height: 1.15;
  margin: 0;
}

.mp-hero__sub {
  font-size: 0.875rem;
  color: var(--mp-hero-sub-color, #737373);
  margin: 0.5rem 0 0;
  max-width: 32rem;
  line-height: 1.55;
}

.mp-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  text-decoration: none;
}

.mp-hero__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.35);
}

.mp-store-dark .mp-hero__title {
  color: #f0efed;
}

.mp-store-dark .mp-hero__sub {
  color: #a6a6a6;
}

.mp-hero--compact {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid #ebe6df;
}

.mp-store-dark .mp-hero--compact {
  border-bottom-color: #2a2a2a;
}

.mp-hero--compact .mp-hero__compact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mp-hero--compact .mp-hero__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.mp-hero--compact .mp-hero__cta {
  margin-top: 0;
}

.mp-hero--centered {
  text-align: center;
  padding: 2.5rem 1.25rem 2.75rem;
  border-radius: 1.5rem;
  border: 1px solid #ebe6df;
  background: linear-gradient(180deg, #f7f7f7 0%, #fff 100%);
}

.mp-store-dark .mp-hero--centered {
  border-color: #2a2a2a;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

.mp-hero--centered .mp-hero__avatar {
  margin-left: auto;
  margin-right: auto;
}

.mp-hero--centered .mp-hero__title {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.mp-hero--centered .mp-hero__sub {
  margin-left: auto;
  margin-right: auto;
}

.mp-hero--minimal {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #ebe6df;
}

.mp-store-dark .mp-hero--minimal {
  border-bottom-color: #2a2a2a;
}

.mp-hero--minimal .mp-hero__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  max-width: 36rem;
}

.mp-hero--split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .mp-hero--split {
    grid-template-columns: 1fr 1fr;
  }
}

.mp-hero__split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--mp-hero-bg-image, var(--mp-hero-bg, var(--mp-secondary, #0d0d0d)));
  color: #fff;
  min-height: 15rem;
}

@media (max-width: 767px) {
  .mp-hero--split {
    display: block;
    position: relative;
    min-height: 17rem;
    border-radius: 1rem;
    overflow: hidden;
  }

  .mp-hero__split-media {
    position: absolute;
    inset: 0;
    min-height: 17rem;
    border-radius: 0;
  }

  .mp-hero__split-media img {
    min-height: 17rem;
  }

  .mp-hero__split-copy {
    position: relative;
    z-index: 1;
    min-height: 17rem;
    justify-content: flex-end;
    background: linear-gradient(to top, color-mix(in srgb, var(--mp-hero-bg, #0d0d0d) 92%, transparent) 0%, color-mix(in srgb, var(--mp-hero-bg, #0d0d0d) 55%, transparent) 55%, transparent 100%);
    border-radius: 0;
  }
}

.mp-hero__split-copy .mp-hero__title {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.mp-hero__split-copy .mp-hero__sub {
  color: #d4d4d4;
}

.mp-hero__split-media {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 15rem;
  background: #efefef;
}

.mp-store-dark .mp-hero__split-media {
  background: #262626;
}

.mp-hero__split-media img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  display: block;
}

.mp-hero--banner {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 17.5rem;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 640px) {
  .mp-hero--banner {
    min-height: 21rem;
  }
}

.mp-hero__banner-bg {
  position: absolute;
  inset: 0;
  background: var(--mp-hero-bg-image, var(--mp-hero-bg, var(--mp-secondary, #0d0d0d)));
}

.mp-hero__banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-hero__banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .15) 100%);
  pointer-events: none;
}

.mp-hero__banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  width: 100%;
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .mp-hero__banner-content {
    padding: 2.5rem 2.75rem;
  }
}

.mp-hero--banner .mp-hero__avatar {
  width: 5rem;
  height: 5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .mp-hero--banner .mp-hero__avatar {
    width: 6rem;
    height: 6rem;
  }
}

.mp-hero--banner .mp-hero__title {
  color: #fff;
  font-size: clamp(1.65rem, 4.5vw, 2.75rem);
}

.mp-hero--banner .mp-hero__sub {
  color: #e5e5e5;
}

.mp-hero--banner .mp-hero__eyebrow {
  color: var(--mp-link-color, var(--mp-accent, #c9a84c));
}

@media (max-width: 639px) {
  .mp-hero__banner-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-hero--banner .mp-hero__avatar {
    width: 4.5rem;
    height: 4.5rem;
  }

  .mp-hero--split,
  .mp-hero-showcase {
    border-radius: 1rem;
  }

  .mp-hero__split-copy,
  .mp-hero-showcase-text {
    padding: 1.35rem;
  }
}

.mp-hero-showcase {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #ebe6df;
}

.mp-store-dark .mp-hero-showcase {
  border-color: #2a2a2a;
}

.mp-hero-showcase-text {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--mp-secondary, #0d0d0d);
  color: #fff;
}

.mp-hero-showcase-text .mp-hero__title {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.mp-hero-showcase-text .mp-hero__sub {
  color: #d4d4d4;
}

.mp-hero-showcase-media {
  min-height: 12.5rem;
  background: #efefef;
}

.mp-store-dark .mp-hero-showcase-media {
  background: #262626;
}

.mp-hero-showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .mp-hero-showcase {
    grid-template-columns: 2fr 3fr;
  }
}

.mp-font-sans .mp-hero__title {
  font-family: 'DM Sans', system-ui, sans-serif !important;
}

.mp-theme-toggle button[aria-pressed="true"] {
  background: rgba(201, 168, 76, .15);
  color: #c9a84c;
}

@media (min-width: 1024px) {
  .mp-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .mp-upload-grid .mp-upload-span-2 {
    grid-column: span 2;
  }
}

.mp-product-form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .mp-product-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
  }

  .mp-product-form-side {
    position: sticky;
    top: 5.5rem;
  }
}

.mpf-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
  margin-bottom: 0.4rem;
}

.dark .mpf-label {
  color: #a6a6a6;
}

/* Quill editor (product description) */
.mp-wysiwyg--quill .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid #e2ddd7;
  background: #fafaf9;
  border-radius: 0.625rem 0.625rem 0 0;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.dark .mp-wysiwyg--quill .ql-toolbar.ql-snow {
  border-bottom-color: #2e2e2e;
  background: #161616;
}

.mp-wysiwyg--quill .ql-container.ql-snow {
  border: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  min-height: 11rem;
  border-radius: 0 0 0.625rem 0.625rem;
  background: #fafaf9;
  color: #0d0d0d;
}

.dark .mp-wysiwyg--quill .ql-container.ql-snow {
  background: #161616;
  color: #f0efed;
}

.dark .mp-wysiwyg--quill .ql-stroke {
  stroke: #a6a6a6;
}

.dark .mp-wysiwyg--quill .ql-fill {
  fill: #a6a6a6;
}

.dark .mp-wysiwyg--quill .ql-picker-label {
  color: #a6a6a6;
}

.mp-wysiwyg--quill {
  border: 1px solid #e2ddd7;
  border-radius: 0.625rem;
  overflow: hidden;
}

.dark .mp-wysiwyg--quill {
  border-color: #2e2e2e;
}

.mp-atc--owned {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Seller dashboard — review filters & moderation */
.mp-dash-rev-filters .dash-rev-filter {
  border-color: #e2ddd7;
  background: transparent;
  color: #737373;
  font-weight: 500;
}

.dark .mp-dash-rev-filters .dash-rev-filter {
  border-color: #2e2e2e;
  color: #a6a6a6;
}

.mp-dash-rev-filters .dash-rev-filter:hover {
  border-color: #c9a84c;
  color: #0d0d0d;
}

.dark .mp-dash-rev-filters .dash-rev-filter:hover {
  color: #f0efed;
}

.mp-dash-rev-filters .dash-rev-filter.is-active {
  border-color: #c9a84c;
  background: rgba(201, 168, 76, 0.14);
  color: #0d0d0d;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.25);
}

.dark .mp-dash-rev-filters .dash-rev-filter.is-active {
  background: rgba(201, 168, 76, 0.12);
  color: #f5f5f5;
}

/* Product description WYSIWYG (form) */
.mp-wysiwyg {
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.dark .mp-wysiwyg {
  border-color: #2e2e2e;
  background: #141414;
}

.mp-wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #ebebeb;
  background: #fafaf9;
}

.dark .mp-wysiwyg-toolbar {
  border-color: #2e2e2e;
  background: #1a1a1a;
}

.mp-wysiwyg-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  color: #525252;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mp-wysiwyg-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  color: #0d0d0d;
}

.dark .mp-wysiwyg-btn {
  color: #a6a6a6;
}

.dark .mp-wysiwyg-btn:hover {
  color: #f5f5f5;
}

.mp-wysiwyg-sep {
  width: 1px;
  height: 1.25rem;
  margin: 0 0.15rem;
  background: #e5e5e5;
}

.dark .mp-wysiwyg-sep {
  background: #333;
}

.mp-wysiwyg-body {
  min-height: 10rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  border: none !important;
  border-radius: 0 !important;
  outline: none;
  line-height: 1.6;
}

.mp-wysiwyg-body:empty::before {
  content: attr(data-placeholder);
  color: #a3a3a3;
  pointer-events: none;
}

.mp-wysiwyg-body:focus {
  box-shadow: inset 0 0 0 2px rgba(201, 168, 76, 0.35);
}

/* Sanitized HTML on product page */
.mp-product-description {
  max-width: 42rem;
}

.mp-product-description>*:first-child {
  margin-top: 0;
}

.mp-product-description p {
  margin: 0 0 0.75rem;
}

.mp-product-description p:last-child {
  margin-bottom: 0;
}

.mp-product-description h1,
.mp-product-description h2,
.mp-product-description h3,
.mp-product-description h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: inherit;
  margin: 1.35rem 0 0.5rem;
  line-height: 1.25;
  font-weight: 600;
}

.mp-product-description h1 {
  font-size: 1.5rem;
}

.mp-product-description h2 {
  font-size: 1.25rem;
}

.mp-product-description h3 {
  font-size: 1.1rem;
}

.mp-product-description h4 {
  font-size: 1rem;
}

.mp-product-description ul,
.mp-product-description ol {
  margin: 0 0 0.85rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.mp-product-description ul {
  list-style-type: disc !important;
}

.mp-product-description ol {
  list-style-type: decimal !important;
}

.mp-product-description ul ul {
  list-style-type: circle !important;
}

.mp-product-description ol ol {
  list-style-type: lower-alpha !important;
}

.mp-product-description li {
  margin-bottom: 0.35rem;
  display: list-item;
}

.mp-product-description li::marker {
  color: inherit;
}

.mp-product-description li[data-list="bullet"] {
  list-style-type: disc !important;
}

.mp-product-description li[data-list="ordered"] {
  list-style-type: decimal !important;
}

.mp-product-description pre,
.mp-product-description code {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.8125rem;
}

.mp-product-description pre {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #f5f3f0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.dark .mp-product-description pre {
  background: #1a1a1a;
}

.mp-product-description code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.06);
}

.dark .mp-product-description code {
  background: rgba(255, 255, 255, 0.08);
}

.mp-product-description pre code {
  padding: 0;
  background: transparent;
}

.mp-product-description a {
  color: #0369a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dark .mp-product-description a {
  color: #7dd3fc;
}

.mp-product-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 0.75rem 0;
}

.mp-product-description blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid rgba(201, 168, 76, 0.55);
  color: #525252;
  font-style: italic;
}

.dark .mp-product-description blockquote {
  color: #a6a6a6;
}

.mp-product-description strong,
.mp-product-description b {
  font-weight: 600;
  color: inherit;
}

.mp-dash-field-grid--span-2 {
  grid-column: 1 / -1;
}

/* Product gallery swiper */
.pp-gallery-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #f0efed;
  aspect-ratio: 16 / 10;
  isolation: isolate;
}

.dark .pp-gallery-wrap {
  background: #161616;
}

.pp-gallery-swiper {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  overflow: hidden;
  position: relative;
}

.pp-gallery-swiper .swiper-wrapper {
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pp-gallery-swiper .swiper-slide {
  width: 100% !important;
  max-width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.pp-gallery-swiper .mpp-lightbox-item {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.pp-gallery-swiper .pp-gallery-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.pp-gallery-swiper .swiper-button-prev,
.pp-gallery-swiper .swiper-button-next {
  color: #fafaf9;
  z-index: 5;
}

.pp-gallery-swiper .swiper-pagination {
  z-index: 5;
}

.pp-gallery-swiper .swiper-pagination-bullet-active {
  background: #c9a84c;
}

.pp-gallery-swiper.pp-gallery-single .swiper-button-prev,
.pp-gallery-swiper.pp-gallery-single .swiper-button-next,
.pp-gallery-swiper.pp-gallery-single .swiper-pagination {
  display: none !important;
}

.pp-gallery-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pp-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pp-gallery-thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
  padding: 0;
  background: #262626;
}

.pp-gallery-thumb.is-active {
  opacity: 1;
  border-color: #c9a84c;
}

.pp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-product-toolbar {
  padding-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.pp-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.pp-page-col-main {
  order: 1;
}

.pp-page-col-side {
  order: 2;
}

.pp-page-reviews {
  order: 3;
}

@media (min-width: 1024px) {
  .pp-page-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto;
  }

  .pp-page-col-main {
    order: unset;
    grid-column: 1;
    grid-row: 1;
  }

  .pp-page-col-side {
    order: unset;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .pp-page-reviews {
    order: unset;
    grid-column: 1;
    grid-row: 2;
  }
}

.mp-field-help {
  font-size: 0.7rem;
  line-height: 1.45;
  color: #737373;
  margin: 0.35rem 0 0;
}

.dark .mp-field-help {
  color: #a6a6a6;
}

.mp-widget-drag {
  cursor: grab;
  user-select: none;
}

.mp-widget-drag.dragging {
  opacity: 0.5;
}

.mp-widget-drag-over {
  outline: 2px dashed rgba(201, 168, 76, 0.55);
}

.mp-featured-swiper {
  overflow: hidden;
  padding-bottom: 2rem;
}

.mp-featured-swiper .swiper-slide {
  height: auto;
}

.mp-featured-swiper .swiper-pagination-bullet-active {
  background: var(--mp-accent, #c9a84c);
}

/* Storefront widgets */
.mp-store-widgets {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Vertical rhythm inside layout themes (stats, sections, products) */
.mp-store-flow {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.mp-store-flow > * {
  margin-top: 0;
  margin-bottom: 0;
}

.mp-theme-classic > header,
.mp-theme-magazine > header,
.mp-theme-boutique > header {
  margin-bottom: 1.75rem;
}

/* Editorial — stacked by default, split at wide container */
.mp-theme-editorial {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mp-theme-editorial__hero {
  margin-bottom: 0;
  min-width: 0;
}

.mp-theme-editorial__main {
  min-width: 0;
}

/* Magazine — stack all columns in preview / mobile */
.mp-theme-magazine-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mp-theme-magazine__main,
.mp-theme-magazine__aside {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

/* Minimal — header border + title spacing */
.mp-theme-minimal__header {
  border-bottom: 1px solid #e2ddd7;
  padding: 0 0.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.dark .mp-theme-minimal__header {
  border-bottom-color: #2e2e2e;
}

.mp-theme-minimal__header .mp-hero {
  margin-bottom: 0;
}

.mp-theme-minimal__header .mp-hero__title {
  margin-top: 0.35rem;
}

.mp-theme-minimal__stats {
  margin-top: 1.5rem;
}

.mp-theme-minimal > main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.mp-theme-editorial .mp-store-flow,
.mp-theme-magazine .mp-store-flow,
.mp-theme-boutique .mp-store-flow {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mp-theme-boutique main .mp-store-flow {
  gap: 1.75rem;
}

.mp-listing-root>.mp-hero {
  margin-bottom: 2rem;
}

#mp-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.mp-sec:not(:has(.mp-section-head)) h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: #0d0d0d;
  margin: 0 0 0.75rem;
}

.mp-store-dark .mp-sec h2 {
  color: #f0efed;
}

.mp-widget-featured .swiper-slide {
  width: min(85vw, 320px);
}

/* Store design preview — layout mocks */
.mp-preview-products-label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.mp-preview-sort-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.mp-preview-sort-bar__label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #737373;
}

.mp-preview-sort-bar__select {
  max-width: 12rem;
  opacity: 0.92;
}

.mp-store-toolbar {
  min-width: 0;
}

.mp-store-sort,
.mp-store-sort-label {
  flex-shrink: 0;
}

.mp-store-products__body {
  min-width: 0;
}

@media (max-width: 639px) {
  .mp-store-toolbar {
    width: 100%;
  }

  .mp-store-sort {
    flex: 1;
    min-width: 8rem;
  }
}

.mp-store-preview {
  border-radius: 1rem;
  border: 1px solid #ebe6df;
  background: var(--mp-bg, #fafaf9);
  padding: 1rem;
  overflow: hidden;
}

.dark .mp-store-preview:not(.mp-store-theme-light) {
  border-color: #2a2a2a;
}

.dark .mp-store-preview:not(.mp-store-theme-light):not(.mp-store-theme-dark) {
  background: #0f0f0f;
}

.mp-store-preview__stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mp-preview-block {
  min-width: 0;
}

.mp-preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .mp-preview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mp-preview-featured-row {
  display: flex;
  gap: 0.5rem;
  overflow: hidden;
}

.mp-preview-featured-slide {
  flex: 0 0 42%;
  overflow: hidden;
  border: 1px solid #ebe6df;
  background: #fff;
}

.dark .mp-preview-featured-slide {
  border-color: #2a2a2a;
  background: #161616;
}

.mp-preview-stat-tile {
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #ebe6df;
  font-size: 0.5625rem;
  color: #737373;
}

.mp-store-dark .mp-preview-stat-tile {
  border-color: #2a2a2a;
  color: #a6a6a6;
}

.mp-preview-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 0.25rem;
}

.mp-preview-section-row {
  min-width: 0;
}

/* Seller payouts tab */
.mp-payouts-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 72rem;
}

.mp-payouts-grid>.mp-payouts-card {
  min-width: 0;
}

@media (min-width: 1280px) {
  .mp-payouts-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.mp-payout-balances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .mp-payout-balances {
    grid-template-columns: 1fr;
  }
}

.mp-payout-request-row {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .mp-payout-request-row {
    grid-template-columns: 1fr minmax(9rem, 11rem) auto;
    align-items: center;
  }
}

.mp-payout-method-select {
  width: 100%;
}

.mp-payout-submit {
  width: 100%;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .mp-payout-submit {
    width: auto;
  }
}

.mp-preview-card {
  overflow: hidden;
  border: 1px solid #ebe6df;
  background: #fff;
}

.mp-preview-card.mp-card-style-rounded {
  border-radius: 1rem;
}

.mp-preview-card.mp-card-style-sharp {
  border-radius: 0.5rem;
}

.mp-preview-card.mp-card-style-soft {
  border-radius: 1.5rem;
}

.mp-preview-list-row.mp-card-style-rounded {
  border-radius: 1rem;
}

.mp-preview-list-row.mp-card-style-sharp {
  border-radius: 0.5rem;
}

.mp-preview-list-row.mp-card-style-soft {
  border-radius: 1.5rem;
}

.dark .mp-preview-card {
  border-color: #2a2a2a;
  background: #141414;
}

.mp-preview-card-media {
  aspect-ratio: 4 / 3;
  background: #efefef;
}

.dark .mp-preview-card-media {
  background: #262626;
}

.mp-preview-card-body {
  padding: 0.5rem;
}

.mp-preview-line {
  height: 0.5rem;
  border-radius: 999px;
  background: #efefef;
  margin-bottom: 0.35rem;
}

.dark .mp-preview-line {
  background: #262626;
}

.mp-preview-line--short {
  width: 40%;
}

.mp-preview-line--title {
  background: color-mix(in srgb, var(--mp-card-title-color, #0d0d0d) 22%, #efefef);
}

.dark .mp-preview-line--title {
  background: color-mix(in srgb, var(--mp-card-title-color, #f0efed) 22%, #262626);
}

.mp-preview-line--price {
  width: 28%;
  height: 0.65rem;
  background: color-mix(in srgb, var(--mp-price-color, #c9a84c) 40%, #efefef);
}

.dark .mp-preview-line--price {
  background: color-mix(in srgb, var(--mp-price-color, #c9a84c) 40%, #262626);
}

.mp-store-scope.mp-store-theme-dark .mp-preview-card {
  border-color: #2a2a2a;
  background: #141414;
}

.mp-store-scope.mp-store-theme-dark .mp-preview-card-media {
  background: #262626;
}

.mp-store-scope.mp-store-theme-dark .mp-preview-list-row {
  border-color: #2a2a2a;
  background: #141414;
}

.mp-store-preview .mp-preview-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8rem, 38%);
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: visible;
}

.mp-store-preview .mp-preview-product-rail .mp-rail-card {
  min-width: 0;
}

.mp-preview-list-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #ebe6df;
  background: #fff;
  width: 100%;
}

.mp-preview-list-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.dark .mp-preview-list-row {
  border-color: #2a2a2a;
  background: #141414;
}

.mp-preview-list-thumb {
  width: 4.5rem;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  background: #efefef;
}

.dark .mp-preview-list-thumb {
  background: #262626;
}

.mp-preview-editorial-hero {
  grid-column: 1 / -1;
  border-radius: 0.75rem;
  border: 1px solid #ebe6df;
  overflow: hidden;
}

.dark .mp-preview-editorial-hero {
  border-color: #2a2a2a;
}

.mp-preview-editorial-hero .mp-preview-card-media {
  aspect-ratio: 21 / 9;
}

/* Empty / error / loading states */
.mp-state-full {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: transparent;
}

#mp-grid.is-state-panel {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: transparent;
  border: none;
}

.mp-state-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.mp-state-wrap-grid {
  grid-column: 1 / -1;
  width: 100%;
}

/* Flat empty states (no widget card) */
.mp-empty-flat {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  text-align: center;
  animation: fadeIn .3s ease forwards;
}

.mp-empty-flat__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: #f5f3f0;
  color: #a6a6a6;
}

.dark .mp-empty-flat__icon {
  background: #171717;
  color: #737373;
}

.mp-empty-flat__icon svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

.mp-empty-flat__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #0d0d0d;
  margin: 0;
}

.dark .mp-empty-flat__title {
  color: #f0efed;
}

.mp-empty-flat__sub {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #737373;
}

.dark .mp-empty-flat__sub {
  color: #a6a6a6;
}

.mp-empty-flat__actions {
  margin-top: 1.25rem;
}

.mp-empty-flat--error .mp-empty-flat__title {
  color: #991b1b;
}

.dark .mp-empty-flat--error .mp-empty-flat__title {
  color: #fca5a5;
}

.mp-empty-flat--error .mp-empty-flat__sub {
  color: #b91c1c;
}

.dark .mp-empty-flat--error .mp-empty-flat__sub {
  color: #f87171;
}

.mp-state {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid #ebe6df;
  background: #fff;
  box-shadow: 0 4px 24px rgba(13, 13, 13, 0.06);
  animation: fadeIn .3s ease forwards;
}

.dark .mp-state {
  border-color: #2a2a2a;
  background: #141414;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.mp-state-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.dark .mp-state-error {
  border-color: rgba(127, 29, 29, .4);
  background: rgba(69, 10, 10, .25);
}

.mp-state-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0efed;
  color: #737373;
}

.dark .mp-state-icon {
  background: #1c1c1c;
  color: #a6a6a6;
}

.mp-state-error .mp-state-icon {
  background: #fee2e2;
  color: #dc2626;
}

.dark .mp-state-error .mp-state-icon {
  background: rgba(127, 29, 29, .35);
  color: #f87171;
}

.mp-state-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #0d0d0d;
  margin: 0;
}

.dark .mp-state-title {
  color: #f0efed;
}

.mp-state-error .mp-state-title {
  color: #991b1b;
}

.dark .mp-state-error .mp-state-title {
  color: #fca5a5;
}

.mp-state-sub {
  margin: .5rem 0 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: #737373;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.dark .mp-state-sub {
  color: #a6a6a6;
}

.mp-state-error .mp-state-sub {
  color: #b91c1c;
}

.dark .mp-state-error .mp-state-sub {
  color: #f87171;
}

.mp-state-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

/* Motion (Framer-style spring curves, CSS-only) */
@keyframes mpSpringUp {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mpPop {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }

  70% {
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mpGlowPulse {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

.mp-motion-in {
  animation: mpSpringUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mp-motion-pop {
  animation: mpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mp-motion-stagger {
  opacity: 0;
  animation: mpSpringUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mp-page-enter {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mp-page-enter--active {
  opacity: 1;
}

/* Mobile filter drawer — portaled to body (true viewport-fixed) */
.mp-filt-portal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
}

.mp-filt-portal.hidden {
  display: none !important;
}

.mp-filt-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.55);
  backdrop-filter: blur(4px);
}

.mp-filt-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(18rem, 88vw);
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fafaf9;
  border-right: 1px solid #e2ddd7;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
  z-index: 201;
  animation: mpFiltIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .mp-filt-panel {
  background: #0a0a0a;
  border-color: #2e2e2e;
}

.mp-filt-panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.75rem;
  border-bottom: 1px solid #efefef;
}

.dark .mp-filt-panel-head {
  border-color: #262626;
}

.mp-filt-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem 1.5rem;
}

body.mp-filt-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

@keyframes mpFiltIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.mp-state {
  position: relative;
  overflow: hidden;
}

.mp-state-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 50% 30%, rgba(201, 168, 76, 0.18), transparent 55%);
  pointer-events: none;
  animation: mpGlowPulse 4s ease-in-out infinite;
}

.mp-state-glow--error {
  background: radial-gradient(circle at 50% 30%, rgba(248, 113, 113, 0.2), transparent 55%);
}

/* Responsive layout helpers */
@media (max-width: 1023px) {
  .mp-listing-root .flex.gap-7 {
    flex-direction: column;
    gap: 1.25rem;
  }

  #mp-sidebar,
  #sel-sidebar {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .mp-layout-grid {
    gap: 0.75rem !important;
  }

  .mp-card .mp-atc {
    display: flex;
  }
}

#mp-root .overflow-x-auto table {
  min-width: 640px;
}

#mp-root .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Nav links (desktop bar + mobile drawer) */
.mp-nav-link {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0d0d0d;
  transition: background 0.15s ease, color 0.15s ease;
}

.dark .mp-nav-link {
  color: #f0efed;
}

.mp-nav-link:hover {
  background: #f0efed;
}

.dark .mp-nav-link:hover {
  background: #1e1e1e;
}

#mp-mobile-drawer .mp-nav-link {
  width: 100%;
}

@media (min-width: 1024px) {
  #mp-mobile-drawer {
    display: none !important;
  }

  #mp-nav .mp-nav-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}

/* Nav glass on scroll */
#mp-nav nav {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

#mp-nav nav.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.dark #mp-nav nav.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ── Marketplace hero ───────────────────────────── */
.mp-hero-market {
  background: linear-gradient(145deg, #0a0a0a 0%, #14110c 42%, #0d0d0d 100%);
  border: 1px solid rgba(201, 168, 76, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.mp-hero-market__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse 60% 80% at 30% 40%, rgba(201, 168, 76, 0.22), transparent 65%);
  pointer-events: none;
}

.mp-hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.75rem;
}

.mp-hero-stats .mp-stat-tile {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.mp-stat-val {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: #fafaf9;
  line-height: 1.1;
}

.mp-stat-lbl {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250, 250, 249, 0.45);
  margin-top: 0.35rem;
}

.mp-btn-glow {
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35), 0 12px 40px rgba(201, 168, 76, 0.2);
}

.mp-hero-market {
  border-radius: 1.25rem;
  min-height: 22rem;
}

.mp-market-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem;
  align-items: end;
}

@media (min-width: 768px) {
  .mp-market-home {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .mp-market-home {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.8fr);
    min-height: 24rem;
  }
}

.mp-hero-copy {
  max-width: 42rem;
}

.mp-hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  color: #fafaf9;
  font-size: 2.4rem;
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: 0;
}

@media (min-width: 640px) {
  .mp-hero-title {
    font-size: 4rem;
  }
}

.mp-hero-sub {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: rgba(250, 250, 249, 0.72);
  line-height: 1.65;
  font-size: 0.95rem;
}

.mp-hero-market__panel {
  display: none;
  min-width: 0;
  padding: 0.85rem;
  border-radius: 0.875rem;
  background: rgba(250, 250, 249, 0.08);
  border: 1px solid rgba(250, 250, 249, 0.12);
}

@media (min-width: 1024px) {
  .mp-hero-market__panel {
    display: block;
  }
}

.mp-hero-market__panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 0.75rem;
  color: rgba(250, 250, 249, 0.66);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mp-hero-market__mini {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mp-hero-mini-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1.4rem 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 4rem;
  padding: 0.45rem;
  border-radius: 0.625rem;
  background: rgba(250, 250, 249, 0.08);
  color: #fafaf9;
  text-align: left;
  transition: background 0.16s ease, transform 0.16s ease;
}

.mp-hero-mini-row:hover {
  background: rgba(250, 250, 249, 0.14);
  transform: translateY(-1px);
}

.mp-hero-mini-rank {
  color: rgba(201, 168, 76, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.mp-hero-mini-img {
  display: block;
  width: 3.5rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(250, 250, 249, 0.12);
}

.mp-hero-mini-copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.mp-hero-mini-copy span,
.mp-hero-mini-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-hero-mini-copy span {
  font-size: 0.8rem;
  font-weight: 600;
}

.mp-hero-mini-copy small {
  color: rgba(250, 250, 249, 0.54);
  font-size: 0.68rem;
}

.mp-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.mp-category-strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 1rem;
  margin: 0 0 1rem;
}

.mp-market-chip {
  flex: 0 0 auto;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2ddd7;
  background: rgba(255, 255, 255, 0.78);
  color: #404040;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.dark .mp-market-chip {
  border-color: #2e2e2e;
  background: rgba(20, 20, 20, 0.78);
  color: #d9d9d9;
}

.mp-market-chip:hover,
.mp-market-chip.is-active {
  border-color: #0d0d0d;
  background: #0d0d0d;
  color: #fafaf9;
}

.dark .mp-market-chip:hover,
.dark .mp-market-chip.is-active {
  border-color: #f0efed;
  background: #f0efed;
  color: #0d0d0d;
}

.mp-home-stack {
  display: grid;
  gap: 2.25rem;
  overflow-x: visible;
  min-width: 0;
}

.mp-sec {
  min-width: 0;
}

.mp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.mp-section-head h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
  color: #0d0d0d;
  margin: 0;
}

.dark .mp-section-head h2 {
  color: #f0efed;
}

.mp-section-kicker {
  margin: 0 0 0.22rem;
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #9a7a2e;
  font-weight: 700;
}

.dark .mp-section-kicker {
  color: #c9a84c;
}

.mp-section-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.sec-see-all,
.mp-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2ddd7;
  background: rgba(255, 255, 255, 0.72);
  color: #595959;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.dark .sec-see-all,
.dark .mp-carousel-btn {
  border-color: #2e2e2e;
  background: rgba(20, 20, 20, 0.72);
  color: #d9d9d9;
}

.sec-see-all {
  min-height: 2rem;
  padding: 0.42rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.mp-carousel-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.sec-see-all:hover,
.mp-carousel-btn:hover {
  border-color: #0d0d0d;
  background: #0d0d0d;
  color: #fafaf9;
}

.dark .sec-see-all:hover,
.dark .mp-carousel-btn:hover {
  border-color: #f0efed;
  background: #f0efed;
  color: #0d0d0d;
}

.mp-feature-carousel,
.mp-product-rail,
.mp-feature-carousel .os-content,
.mp-product-rail .os-content {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(17rem, 32%);
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  padding-top: 0.35rem;
  padding-bottom: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mp-feature-carousel .os-viewport,
.mp-product-rail .os-viewport {
  -webkit-overflow-scrolling: touch;
}

/* Allow card shadows to escape vertically under OverlayScrollbars */
.mp-feature-carousel.os-host,
.mp-product-rail.os-host {
  overflow-y: visible !important;
}

.mp-feature-carousel.os-host>.os-viewport,
.mp-product-rail.os-host>.os-viewport {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.mp-feature-carousel[data-overlayscrollbars~="host"]>.os-viewport,
.mp-product-rail[data-overlayscrollbars~="host"]>.os-viewport {
  overflow-x: auto !important;
  overflow-y: visible !important;
  --os-viewport-overflow-x: auto !important;
  --os-viewport-overflow-y: visible !important;
}

.mp-feature-carousel.os-host>.os-viewport>.os-content,
.mp-product-rail.os-host>.os-viewport>.os-content {
  overflow: visible !important;
}

.mp-feature-carousel[data-overlayscrollbars~="host"]>.os-viewport>.os-content,
.mp-product-rail[data-overlayscrollbars~="host"]>.os-viewport>.os-content {
  overflow: visible !important;
}

/* Some OS builds use attribute-driven overflow vars on the viewport node */
.mp-feature-carousel [data-overlayscrollbars-viewport],
.mp-product-rail [data-overlayscrollbars-viewport] {
  --os-viewport-overflow-x: auto !important;
  --os-viewport-overflow-y: visible !important;
}

/* OverlayScrollbars: children are moved under .os-viewport > .os-content.
   Force the horizontal grid layout on the actual content node. */
.mp-feature-carousel.os-host .os-viewport>.os-content,
.mp-product-rail.os-host .os-viewport>.os-content,
.mp-feature-carousel .os-viewport>.os-content,
.mp-product-rail .os-viewport>.os-content {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(17rem, 32%) !important;
  gap: 0.9rem !important;
  align-items: stretch;
}

.mp-product-rail {
  grid-auto-columns: minmax(13rem, 22%);
}

.mp-feature-slide {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 11.5rem minmax(10rem, auto);
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #ebe6df;
  background: #fff;
  cursor: pointer;
}

.dark .mp-feature-slide {
  border-color: #2a2a2a;
  background: #141414;
}

.mp-feature-slide__media {
  position: relative;
  min-width: 0;
  background: #efefef;
  overflow: hidden;
}

.dark .mp-feature-slide__media {
  background: #262626;
}

.mp-feature-slide__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.95rem;
}

.mp-feature-slide__body p {
  margin: 0 0 0.35rem;
  color: #9a7a2e;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.mp-feature-slide__body h3 {
  margin: 0 0 0.7rem;
  color: #0d0d0d;
  font-size: 1.05rem;
  line-height: 1.22;
}

.dark .mp-feature-slide__body h3 {
  color: #f0efed;
}

.mp-feature-slide__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
  color: #737373;
  font-size: 0.78rem;
}

.dark .mp-feature-slide__meta {
  color: #a6a6a6;
}

.mp-home-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: clip;
  min-width: 0;
}

@media (min-width: 1024px) {
  .mp-home-split {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.9fr);
  }
}

.mp-editorial-block {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .mp-editorial-block {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  }
}

.mp-editorial-lead,
.mp-editorial-row,
.mp-rank-row {
  cursor: pointer;
}

.mp-editorial-lead {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #ebe6df;
  background: #fff;
}

.dark .mp-editorial-lead {
  border-color: #2a2a2a;
  background: #141414;
}

.mp-editorial-lead__media {
  aspect-ratio: 16 / 10;
  background: #efefef;
}

.dark .mp-editorial-lead__media {
  background: #262626;
}

.mp-editorial-lead__copy {
  padding: 1rem;
}

.mp-editorial-lead__copy p,
.mp-editorial-lead__copy span {
  margin: 0;
  color: #737373;
  font-size: 0.75rem;
}

.dark .mp-editorial-lead__copy p,
.dark .mp-editorial-lead__copy span {
  color: #a6a6a6;
}

.mp-editorial-lead__copy h3 {
  margin: 0.25rem 0 0.55rem;
  color: #0d0d0d;
  font-size: 1.35rem;
  line-height: 1.2;
}

.dark .mp-editorial-lead__copy h3 {
  color: #f0efed;
}

.mp-editorial-list,
.mp-ranked-list {
  display: grid;
  gap: 0.55rem;
}

.mp-editorial-row,
.mp-rank-row {
  display: grid;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  border-radius: 0.625rem;
  border: 1px solid #ebe6df;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.dark .mp-editorial-row,
.dark .mp-rank-row {
  border-color: #2a2a2a;
  background: rgba(20, 20, 20, 0.72);
}

.mp-editorial-row:hover,
.mp-rank-row:hover {
  transform: translateY(-1px);
  border-color: #d4d0ca;
  background: #fff;
}

.dark .mp-editorial-row:hover,
.dark .mp-rank-row:hover {
  border-color: #404040;
  background: #171717;
}

.mp-editorial-row {
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  padding: 0.5rem;
}

.mp-editorial-row>div,
.mp-rank-img {
  width: 4rem;
  height: 3.3rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #efefef;
}

.dark .mp-editorial-row>div,
.dark .mp-rank-img {
  background: #262626;
}

.mp-editorial-row span,
.mp-rank-copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.mp-editorial-row strong,
.mp-rank-copy strong {
  color: #0d0d0d;
  font-size: 0.84rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .mp-editorial-row strong,
.dark .mp-rank-copy strong {
  color: #f0efed;
}

.mp-editorial-row small,
.mp-rank-copy span {
  color: #737373;
  font-size: 0.72rem;
}

.dark .mp-editorial-row small,
.dark .mp-rank-copy span {
  color: #a6a6a6;
}

.mp-editorial-row em,
.mp-rank-row em {
  color: #0d0d0d;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
}

.dark .mp-editorial-row em,
.dark .mp-rank-row em {
  color: #f0efed;
}

.mp-rank-row {
  grid-template-columns: 2.2rem 4rem minmax(0, 1fr) auto;
  padding: 0.5rem 0.65rem 0.5rem 0.45rem;
}

.mp-rank-num {
  color: #9a7a2e;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.dark .mp-rank-num {
  color: #c9a84c;
}

.mp-rail-card {
  min-width: 0;
  scroll-snap-align: start;
}

.mp-rail-card .mp-card {
  height: 100%;
}

@media (max-width: 639px) {
  .mp-market-home {
    padding: 1.5rem;
  }

  .mp-hero-title {
    font-size: 2.1rem;
  }

  /* Use vw-based column sizing so slides never blow past viewport width */
  .mp-feature-carousel,
  .mp-feature-carousel .os-content {
    grid-auto-columns: minmax(min(16rem, 78vw), 85vw);
  }

  .mp-product-rail,
  .mp-product-rail .os-content {
    grid-auto-columns: minmax(min(12rem, 68vw), 76vw);
    gap: 0.75rem !important;
    column-gap: 1.5rem !important;
  }

  .mp-product-rail>.mp-rail-card {
    margin-right: 0.75rem;
  }

  .mp-product-rail>.mp-rail-card:last-child {
    margin-right: 0;
  }

  .mp-product-rail .os-content>.mp-rail-card {
    margin-right: 0.75rem;
  }

  .mp-product-rail .os-content>.mp-rail-card:last-child {
    margin-right: 0;
  }

  .mp-feature-carousel.os-host .os-viewport>.os-content,
  .mp-feature-carousel .os-viewport>.os-content {
    grid-auto-columns: minmax(min(16rem, 78vw), 85vw) !important;
  }

  .mp-product-rail.os-host .os-viewport>.os-content,
  .mp-product-rail .os-viewport>.os-content {
    grid-auto-columns: minmax(min(12rem, 68vw), 76vw) !important;
  }

  .mp-section-head {
    align-items: start;
    flex-direction: column;
  }

  .mp-section-actions {
    width: 100%;
  }

  /* Editorial rows — compact mobile layout */
  .mp-editorial-row {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    row-gap: 0.2rem;
    padding: 0.6rem 0.65rem;
  }

  .mp-editorial-row>div {
    width: 3.25rem;
    min-width: 3.25rem;
    height: 2.75rem;
    align-self: center;
  }

  .mp-editorial-row em {
    grid-column: 2;
    justify-self: start;
    font-size: 0.78rem;
    margin-top: -0.1rem;
  }

  /* Ranked rows — compact mobile layout */
  .mp-rank-row {
    grid-template-columns: 1.8rem 3.25rem minmax(0, 1fr);
    row-gap: 0.2rem;
    padding: 0.6rem 0.65rem 0.55rem 0.5rem;
  }

  .mp-rank-num {
    align-self: center;
  }

  .mp-rank-img {
    width: 3.25rem;
    min-width: 3.25rem;
    height: 2.75rem;
    align-self: center;
  }

  .mp-rank-copy {
    align-self: center;
  }

  .mp-rank-row em {
    grid-column: 3;
    justify-self: start;
    font-size: 0.78rem;
    margin-top: -0.1rem;
  }
}

.mp-store-image-pick img {
  display: block;
}

.mp-admin-products-toolbar {
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.mp-admin-products-toolbar .ap-st {
  flex: 0 0 auto;
}

.mp-admin-product-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.mp-admin-product-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.mp-admin-product-info {
  flex: 1;
  min-width: 0;
}

#admin-content,
#dash-content {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767px) {
  .mp-admin-product-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .mp-admin-product-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    flex: none;
  }

  .mp-admin-product-row .mp-admin-product-thumb {
    align-self: flex-start;
    flex-shrink: 0;
  }

  .mp-admin-product-info {
    flex: 1;
    min-width: 0;
  }

  .mp-admin-row-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0;
    gap: 0.5rem;
  }

  .mp-admin-row-actions .mp-btn-ghost,
  .mp-admin-row-actions .mp-admin-btn {
    flex: 0 1 auto;
  }

  .mp-product-form {
    max-width: 100%;
  }

  .mp-product-form-grid {
    gap: 1rem;
  }

  .mp-dash-field-grid,
  .mp-dash-field-grid--2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ── Filter sidebar ─────────────────────────────── */
.mp-sidebar-sticky {
  position: sticky;
  top: 0;
  max-height: calc(100dvh - 6.5rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.mp-filter-panel {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid #ebe6df;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.dark .mp-filter-panel {
  border-color: #2a2a2a;
  background: rgba(20, 20, 20, 0.75);
}

.mp-filter-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.mp-filter-kicker {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin: 0;
  line-height: 1.3;
}

.mp-filter-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #0d0d0d;
  margin: 0;
}

.dark .mp-filter-title {
  color: #f0efed;
}

/* Admin row actions */
.mp-admin-row-actions .mp-btn-ghost {
  border: 1px solid #ebe6df;
  background: #fff;
  color: #0d0d0d;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dark .mp-admin-row-actions .mp-btn-ghost {
  border-color: #404040;
  background: #1a1a1a;
  color: #f0efed;
}

.mp-admin-row-actions .mp-btn-ghost:hover {
  background: #f5f3f0;
  border-color: #d4d0ca;
}

.dark .mp-admin-row-actions .mp-btn-ghost:hover {
  background: #262626;
  border-color: #525252;
}

.mp-admin-btn {
  font-size: 0.75rem;
  line-height: 1.25;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mp-admin-btn--approve {
  background: #059669;
  color: #fff;
}

.mp-admin-btn--approve:hover:not(:disabled) {
  background: #047857;
}

.mp-admin-btn--reject {
  background: transparent;
  color: #dc2626;
  border-color: #fecaca;
}

.dark .mp-admin-btn--reject {
  border-color: rgba(127, 29, 29, 0.5);
  color: #f87171;
}

.mp-admin-btn--reject:hover:not(:disabled) {
  background: #fef2f2;
}

.dark .mp-admin-btn--reject:hover:not(:disabled) {
  background: rgba(127, 29, 29, 0.2);
}

.mp-cat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  color: #595959;
  transition: background 0.15s ease, color 0.15s ease;
}

.dark .mp-cat {
  color: #a6a6a6;
}

.mp-cat:hover {
  background: #f5f3f0;
  color: #0d0d0d;
}

.dark .mp-cat:hover {
  background: #1a1a1a;
  color: #f0efed;
}

.mp-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9d9d9;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mp-cat--active {
  background: #0d0d0d;
  color: #fafaf9;
  font-weight: 600;
}

.dark .mp-cat--active {
  background: #f0efed;
  color: #0d0d0d;
}

.mp-cat--active .mp-cat-dot {
  background: #c9a84c;
  transform: scale(1.35);
}

.mp-lic-opt {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  font-size: 0.8125rem;
  color: #595959;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dark .mp-lic-opt {
  color: #a6a6a6;
}

.mp-lic-opt--on {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.08);
  color: #0d0d0d;
  font-weight: 600;
}

.dark .mp-lic-opt--on {
  color: #f0efed;
}

/* ── Nav glass ────────────────────────────────────── */
.mp-nav-glass {
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
}

.dark .mp-nav-glass {
  background: rgba(10, 10, 10, 0.82);
}

#mp-nav nav.scrolled {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ── Layout picker (Store Design tab) ─────────────── */
.d-layout-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .d-layout-picker {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.d-layout-preset {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: 1rem;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .d-layout-preset {
  background: #111;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.d-layout-preset:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.dark .d-layout-preset:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.d-layout-preset.is-active {
  border-color: #c9a84c;
  background: rgba(201, 168, 76, 0.04);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.1);
}

.d-layout-preset__thumb {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f5f3f0;
  color: #c4beb6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.dark .d-layout-preset__thumb {
  background: #1c1c1c;
  color: #444;
  border-color: rgba(255, 255, 255, 0.03);
}

.d-layout-preset.is-active .d-layout-preset__thumb {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
}

.d-layout-preset__thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.d-layout-preset__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.d-layout-preset__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0d0d0d;
}

.dark .d-layout-preset__name {
  color: #f0efed;
}

.d-layout-preset__desc {
  font-size: 0.675rem;
  line-height: 1.4;
  color: #888;
}

/* ── Storefront Theme Wrappers & Container Queries ── */
.mp-store-scope, .mp-store-preview {
  container-type: inline-size;
  container-name: storefront;
}

/* Base states (mobile / narrow preview) - stack vertically by default */
.mp-theme-editorial__hero .mp-hero,
.mp-theme-boutique .mp-hero {
  border-radius: 0;
}

/* Advanced Desktop states (trigger only when container > 900px) */
@container storefront (min-width: 900px) {
  /* Editorial: Split screen layout */
  .mp-theme-editorial {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 100vh;
  }

  .mp-theme-editorial__hero {
    width: 33.333%;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 0;
  }

  .mp-theme-editorial__main {
    width: 66.666%;
    flex: 1;
    padding: 3rem;
    min-width: 0;
  }

  .mp-theme-editorial__hero .mp-hero {
    height: 100%;
  }

  .mp-theme-editorial__hero .mp-hero--split {
    flex-direction: column;
  }

  .mp-theme-editorial__hero .mp-hero__split-media,
  .mp-theme-editorial__hero .mp-hero__split-copy {
    width: 100%;
  }

  /* Magazine: Sidebar layout */
  .mp-theme-magazine-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .mp-theme-magazine__main {
    flex: 1;
    min-width: 0;
  }

  .mp-theme-magazine__aside {
    width: 300px;
    flex-shrink: 0;
  }

  /* Boutique: slight overlap — avoid covering stats/sections */
  .mp-theme-boutique > header + main {
    margin-top: -2.5rem;
  }
}



/* ── Seller dashboard studio ────────────────────── */
.mp-dash-studio {
  border-radius: 1.5rem;
  border: 1px solid #ebe6df;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(250, 250, 249, .6) 100%);
  padding: 1.25rem 1.35rem;
}

.dark .mp-dash-studio {
  border-color: #2a2a2a;
  background: linear-gradient(180deg, rgba(22, 22, 22, .95) 0%, rgba(14, 14, 14, .7) 100%);
}

.mp-dash-studio__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #e2ddd7;
}

.dark .mp-dash-studio__head {
  border-bottom-color: #2e2e2e;
}

.mp-dash-studio__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.mp-dash-field-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mp-dash-field-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .mp-dash-field-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mp-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid #e2ddd7;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dark .mp-dash-chip {
  border-color: #333;
}

.mp-dash-chip:has(input:checked) {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.1);
  color: #0d0d0d;
  font-weight: 600;
}

.dark .mp-dash-chip:has(input:checked) {
  color: #f0efed;
}

/* Store Design tab */
.mp-dash-kicker {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin: 0 0 0.35rem;
}

.mp-dash-studio__desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #737373;
  margin: 0.35rem 0 0;
  max-width: 28rem;
}

.dark .mp-dash-studio__desc {
  color: #a6a6a6;
}

.mp-dash-field {
  min-width: 0;
}

.mp-dash-structure-tools {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ebe6df;
}

.dark .mp-dash-structure-tools {
  border-top-color: #2e2e2e;
}

.mp-dash-home-sections {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ebe6df;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dark .mp-dash-home-sections {
  border-top-color: #2e2e2e;
}

.mp-dash-home-sections__note {
  font-size: 0.75rem;
  color: #737373;
  margin: -0.35rem 0 0;
  line-height: 1.45;
}

.dark .mp-dash-home-sections__note {
  color: #a6a6a6;
}

.mp-dash-home-sections__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mp-dash-section-styles-grid {
  margin-top: 0.25rem;
  gap: 1rem 1.25rem !important;
}

.mp-dash-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #525252;
  margin-bottom: 0.4rem;
}

.dark .mp-dash-field__label {
  color: #a6a6a6;
}

.mp-dash-field--span-2 {
  grid-column: 1 / -1;
}

.mp-dash-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #0d0d0d;
}

.dark .mp-dash-check {
  color: #f0efed;
}

.mp-dash-color-groups {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mp-dash-color-group__title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
  margin: 0 0 0.5rem;
}

.dark .mp-dash-color-group__title {
  color: #a6a6a6;
}

.mp-dash-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}

.mp-dash-color-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid #ebe6df;
  background: rgba(255, 255, 255, 0.55);
}

.dark .mp-dash-color-field {
  border-color: #2e2e2e;
  background: rgba(20, 20, 20, 0.5);
}

.mp-dash-color-field__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #525252;
  line-height: 1.2;
}

.dark .mp-dash-color-field__label {
  color: #c4c4c4;
}

.mp-dash-color-field__swatch {
  width: 100%;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0;
}

.mp-dash-color-field__hint {
  font-size: 0.625rem;
  color: #a3a3a3;
  line-height: 1.2;
}

.mp-dash-color-field__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mp-dash-color-field__anchor {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid #d9d4cc;
  cursor: pointer;
  padding: 0;
  background: #fafaf9;
}

.mp-dash-color-field__anchor--sm {
  width: 2rem;
  height: 2rem;
}

.dark .mp-dash-color-field__anchor {
  border-color: #404040;
  background: #1a1a1a;
}

.mp-dash-color-field .pickr {
  position: relative;
}

.mp-dash-color-field .pickr .pcr-button,
.mp-dash-gradient-panel .pickr .pcr-button {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid #d9d4cc !important;
  box-shadow: none !important;
}

.mp-dash-color-field__anchor--sm+.pickr .pcr-button,
.mp-dash-gradient-panel .pickr .pcr-button {
  width: 2rem !important;
  height: 2rem !important;
}

.dark .mp-dash-color-field .pickr .pcr-button,
.dark .mp-dash-gradient-panel .pickr .pcr-button {
  border-color: #404040 !important;
}

.mp-dash-color-field .pcr-button::before {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>') center / auto !important;
}

.mp-dash-color-field .pcr-button::after,
.mp-dash-gradient-panel .pcr-button::after {
  z-index: 1;
}

.mp-dash-gradient-row {
  width: 100%;
}

.mp-dash-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mp-dash-widget-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid #ebe6df;
  background: rgba(250, 250, 249, 0.7);
}

.dark .mp-dash-widget-row {
  border-color: #2e2e2e;
  background: rgba(14, 14, 14, 0.6);
}

.mp-dash-widget-row__grip {
  color: #d4d4d4;
  cursor: grab;
  font-size: 0.75rem;
  user-select: none;
}

.mp-dash-widget-row__name {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 500;
}

.mp-dash-widget-row__toggle {
  font-size: 0.625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mp-dash-widget-row__btn {
  font-size: 0.75rem;
  color: #737373;
  padding: 0 0.25rem;
}

.mp-dash-widget-row__btn:hover:not(:disabled) {
  color: #0d0d0d;
}

.dark .mp-dash-widget-row__btn:hover:not(:disabled) {
  color: #f0efed;
}

.mp-dash-widget-row__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.mp-dash-design-preview__head {
  margin-bottom: 0.85rem;
}

.mp-dash-design-preview__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  margin: 0;
  color: #0d0d0d;
}

.dark .mp-dash-design-preview__title {
  color: #f0efed;
}

.mp-dash-design-preview__note {
  font-size: 0.6875rem;
  color: #737373;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.dark .mp-dash-design-preview__note {
  color: #a6a6a6;
}

.mp-dash-design-preview__note code {
  font-family: ui-monospace, monospace;
  background: rgba(201, 168, 76, 0.12);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

.mp-store-preview .mp-featured-section .mp-section-head h2,
.mp-store-preview .mp-seller-section .mp-section-head h2 {
  font-size: 1rem;
}

.mp-featured-section .mp-section-head,
.mp-seller-section .mp-section-head,
.mp-store-products .mp-section-head {
  margin-bottom: 0.75rem;
}

.mp-store-preview:not(.mp-store-dark) {
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.08);
}

/* ── Creator discovery cards ───────────────────────────────────────────── */
.mp-creator-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.mp-creator-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mp-creator-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mp-creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mp-creator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mp-creator-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
  min-width: 0;
}

.dark .mp-creator-card {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.08);
}

.mp-creator-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mp-creator-card--rail {
  flex: 0 0 min(18rem, 78vw);
}

.mp-creator-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.12);
  color: #8a7340;
  font-weight: 700;
  font-size: 0.95rem;
}

.mp-creator-card--grid .mp-creator-card__avatar {
  width: 3.5rem;
  height: 3.5rem;
}

.mp-creator-card--grid,
.mp-creator-card--stack {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.mp-creator-card__cover {
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: rgba(201, 168, 76, 0.08);
}

.mp-creator-card--grid .mp-creator-card__avatar,
.mp-creator-card--stack .mp-creator-card__avatar {
  width: 3.25rem;
  height: 3.25rem;
}

.mp-creator-card__avatar--overlap {
  margin: -1.6rem 0 0 1rem;
  border: 2px solid #fff;
  position: relative;
  z-index: 1;
}

.mp-creator-card__avatar--inline {
  margin: 1rem 0 0 1rem;
  border: 2px solid transparent;
}

.mp-creator-card--no-cover {
  padding-top: 0.15rem;
}

.mp-creator-card--no-cover .mp-creator-card__body {
  padding: 0.5rem 1rem 1rem;
}

.dark .mp-creator-card__avatar--overlap {
  border-color: #141414;
}

.mp-creator-card--grid .mp-creator-card__body,
.mp-creator-card--stack .mp-creator-card__body {
  padding: 0.35rem 1rem 1rem;
}

.mp-creator-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

.mp-creator-card__body strong {
  font-size: 0.92rem;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .mp-creator-card__body strong {
  color: #f0efed;
}

.mp-creator-card__body small,
.mp-creator-card__body em {
  font-style: normal;
  font-size: 0.72rem;
  color: #8a8a8a;
}

.dark .mp-creator-card__body small,
.dark .mp-creator-card__body em {
  color: #9ca3af;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.35s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Layout fixes (Tailwind CDN safelist gaps) ─────────────────────────── */
.pp-page-wrap {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .pp-page-wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.pp-page-grid {
  min-width: 0;
}

.pp-page-grid>* {
  min-width: 0;
}

.pp-tabs-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 13, 13, 0.28) transparent;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #efefef;
}

.dark .pp-tabs-scroll {
  border-bottom-color: #262626;
  scrollbar-color: rgba(240, 239, 237, 0.28) transparent;
}

.pp-tabs-scroll::-webkit-scrollbar {
  height: 5px;
}

.pp-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(13, 13, 13, 0.25);
  border-radius: 999px;
}

.pp-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

#dash-tabs,
#admin-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: 3.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 13, 13, 0.28) transparent;
}

#dash-tabs[data-mp-scroll-native="1"],
#admin-tabs[data-mp-scroll-native="1"] {
  overflow-y: hidden !important;
}

#dash-tabs .os-scrollbar,
#admin-tabs .os-scrollbar {
  display: none !important;
}

#dash-tabs .dash-tab,
#admin-tabs .admin-tab {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.mp-category-strip {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 13, 13, 0.28) transparent;
}

.mp-category-strip[data-mp-scroll-native="1"] {
  scroll-behavior: smooth;
}

#cart-items {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mp-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}

#cart-items .mp-cart-empty,
#cart-items .mp-cart-line,
.mp-cart-lines .mp-cart-line {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.mp-cart-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e7e5e4;
}

.dark .mp-cart-line {
  background: #171717;
  border-color: #2e2e2e;
}

.mp-cart-line__thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.65rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f4;
  display: block;
}

.dark .mp-cart-line__thumb {
  background: #262626;
}

.mp-cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-cart-line__body {
  flex: 1;
  min-width: 0;
}

.mp-cart-line__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #0d0d0d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.dark .mp-cart-line__title {
  color: #f0efed;
}

.mp-cart-line__title:hover {
  color: var(--mp-accent, #c9a84c);
}

.mp-cart-line__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.mp-cart-line__price {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0d0d0d;
  white-space: nowrap;
}

.dark .mp-cart-line__price {
  color: #f0efed;
}

.mp-cart-lic-badge {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0.35rem;
  background: #f5f5f4;
  color: #57534e;
}

.dark .mp-cart-lic-badge {
  background: #262626;
  color: #a8a29e;
}

.mp-cart-remove,
.mp-cart-rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  background: #fafaf9;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  color: #78716c;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.dark .mp-cart-remove,
.dark .mp-cart-rm {
  border-color: #404040;
  background: #1f1f1f;
  color: #a8a29e;
}

.mp-cart-remove:hover,
.mp-cart-rm:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.mp-cart-remove svg,
.mp-cart-rm svg {
  flex-shrink: 0;
}

.mp-cart-coupon {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.mp-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mp-cart-actions .mp-btn-primary,
.mp-cart-actions .mp-btn-ghost {
  padding: 0.75rem 1rem;
}

.mp-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
}

.mp-payment-section {
  border: 1px solid #e2ddd7;
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.65);
}

.dark .mp-payment-section {
  border-color: #2e2e2e;
  background: rgba(20, 20, 20, 0.55);
}

.mp-payment-section.is-active {
  border-color: var(--mp-accent, #c9a84c);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.25);
}

.mp-list-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mp-list-input-row .mp-inp {
  flex: 1;
}

#mp-cart-drawer .mp-cart-drawer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.mp-atc--in-cart {
  background: #404040 !important;
  color: #fafaf9 !important;
}

.tagify {
  width: 100%;
  --placeholder-color: #78716c;
  --placeholder-color-focus: #57534e;
  --input-color: #0d0d0d;
  --tags-border-color: #e2ddd7;
  --tags-hover-border-color: #d6d3d1;
  --tags-focus-border-color: #c9a84c;
  background: #fafaf9;
  border-radius: .625rem;
  padding: .15rem .35rem;
  min-height: 2.5rem;
  align-items: center;
}

.tagify__input {
  font-size: 0.875rem;
}

.tagify__input::before {
  color: var(--placeholder-color);
}

.dark .tagify {
  --placeholder-color: #a8a29e;
  --placeholder-color-focus: #d6d3d1;
  --input-color: #f0efed;
  --tags-border-color: #2e2e2e;
  --tags-hover-border-color: #404040;
  background: #161616;
}

.mp-checkout-page {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  width: 100%;
}


.mp-checkout-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.mp-checkout-section-title {
  font-family: var(--mp-font-display, 'Fraunces', serif);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.mp-checkout-items-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  padding: 1.25rem 1rem;
}

.dark .mp-checkout-items-card {
  background: #141414;
  border-color: #2e2e2e;
}

.mp-checkout-table-wrap {
  overflow-x: auto;
}

.mp-checkout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.mp-checkout-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e7e5e4;
}

.mp-checkout-table__side,
.mp-checkout-table th:last-child {
  text-align: right;
}

.mp-checkout-line td {
  padding: 1rem 0;
  border-bottom: 1px solid #f5f5f4;
  vertical-align: middle;
}

.dark .mp-checkout-line td {
  border-color: #1f1f1f;
}

.mp-checkout-line__product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}

.mp-checkout-line__info {
  min-width: 0;
  flex: 1;
}

.mp-checkout-line__thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f4;
  display: block;
}

.dark .mp-checkout-line__thumb {
  background: #262626;
}

.mp-checkout-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-checkout-line__title {
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-checkout-line__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 9rem;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}

.mp-checkout-table td:last-child {
  width: 12rem;
}

.mp-checkout-line__price {
  font-weight: 700;
  font-size: 0.875rem;
  color: #0d0d0d;
}

.dark .mp-checkout-line__price {
  color: #f0efed;
}

.mp-checkout-remove,
.mp-checkout-rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  background: #fafaf9;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: #78716c;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.dark .mp-checkout-remove,
.dark .mp-checkout-rm {
  border-color: #404040;
  background: #1f1f1f;
  color: #a8a29e;
}

.mp-checkout-remove:hover,
.mp-checkout-rm:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.mp-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.mp-checkout-summary {
  padding: 1.35rem !important;
}

.mp-checkout-coupon {
  margin-bottom: 0.75rem;
}

.mp-checkout-totals {
  border-top: 1px solid #e7e5e4;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.dark .mp-checkout-totals {
  border-color: #2e2e2e;
}

.mp-totals-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mp-totals-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.mp-totals-row--disc {
  color: #059669;
}

.mp-totals-row--muted {
  color: #78716c;
  font-size: 0.8125rem;
}

.mp-totals-row--total {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  border-top: 1px solid #e7e5e4;
}

.mp-checkout-trust {
  margin: 0.75rem 0 1rem;
  font-size: 11px;
  color: #78716c;
  line-height: 1.45;
}

.mp-checkout-pay {
  padding: 0.85rem !important;
}

.mp-checkout-empty-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: #f5f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #d6d3d1;
}

.mp-checkout-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .mp-checkout-grid {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }

  .mp-checkout-summary {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 639px) {
  .mp-checkout-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mp-checkout-header {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-checkout-items-card {
    padding: 1rem 0.85rem;
  }

  .mp-checkout-table thead {
    display: none;
  }

  .mp-checkout-line {
    display: block;
    border-bottom: 1px solid #f5f5f4;
    padding-bottom: 1rem;
  }

  .dark .mp-checkout-line {
    border-color: #1f1f1f;
  }

  .mp-checkout-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .mp-checkout-line td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .mp-checkout-line__product {
    padding-bottom: 0.75rem;
  }

  .mp-checkout-line__thumb {
    width: 3.75rem;
    height: 3.75rem;
  }

  .mp-checkout-line__side {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f5f5f4;
  }

  .dark .mp-checkout-line__side {
    border-color: #1f1f1f;
  }

  .mp-checkout-line+.mp-checkout-line {
    margin-top: 0;
    padding-top: 1rem;
    border-top: none;
  }

  .mp-checkout-actions {
    gap: 0.75rem;
  }

  .mp-cart-line__foot {
    flex-wrap: wrap;
  }
}

/* Store fonts (scoped to seller storefront) */
.mp-store-widgets,
.mp-store-preview,
.mp-listing-root.mp-store-widgets {
  font-family: var(--mp-font-body, 'DM Sans', system-ui, sans-serif);
}

.mp-store-widgets h1,
.mp-store-widgets h2,
.mp-store-widgets h3,
.mp-store-widgets .mp-hero__title,
.mp-store-widgets .font-display,
.mp-store-preview h1,
.mp-store-preview h2,
.mp-store-preview h3,
.mp-store-preview .mp-hero__title,
.mp-listing-root.mp-store-widgets h1,
.mp-listing-root.mp-store-widgets h2,
.mp-listing-root.mp-store-widgets .mp-hero__title,
.mp-listing-root.mp-store-widgets .font-display {
  font-family: var(--mp-font-display, 'DM Serif Display', Georgia, serif);
  color: var(--mp-heading-color, inherit);
}

.mp-store-widgets .mp-card h3,
.mp-listing-root.mp-store-widgets .mp-card h3 {
  color: var(--mp-card-title-color, inherit);
}

.mp-font-serif,
.mp-store-widgets.mp-font-serif,
.mp-store-preview.mp-font-serif,
.mp-store-scope.mp-font-serif {
  --mp-font-display: 'DM Serif Display', Georgia, serif;
}

.mp-font-playfair,
.mp-store-widgets.mp-font-playfair,
.mp-store-preview.mp-font-playfair {
  --mp-font-display: 'Playfair Display', Georgia, serif;
}

.mp-font-lora,
.mp-store-widgets.mp-font-lora,
.mp-store-preview.mp-font-lora {
  --mp-font-display: 'Lora', Georgia, serif;
}

.mp-font-inter,
.mp-store-widgets.mp-font-inter,
.mp-store-preview.mp-font-inter {
  --mp-font-display: 'Inter', 'DM Sans', system-ui, sans-serif;
  --mp-font-body: 'Inter', 'DM Sans', system-ui, sans-serif;
}

.mp-font-space,
.mp-store-widgets.mp-font-space,
.mp-store-preview.mp-font-space {
  --mp-font-display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
}

.mp-font-sans,
.mp-store-widgets.mp-font-sans,
.mp-store-preview.mp-font-sans {
  --mp-font-display: 'DM Sans', system-ui, sans-serif;
  --mp-font-body: 'DM Sans', system-ui, sans-serif;
}

.mp-font-body-serif,
.mp-store-widgets.mp-font-body-serif {
  --mp-font-body: 'DM Serif Display', Georgia, serif;
}

.mp-font-body-lora,
.mp-store-widgets.mp-font-body-lora {
  --mp-font-body: 'Lora', Georgia, serif;
}

.mp-font-body-inter,
.mp-store-widgets.mp-font-body-inter {
  --mp-font-body: 'Inter', 'DM Sans', system-ui, sans-serif;
}

.mp-font-body-playfair,
.mp-store-widgets.mp-font-body-playfair {
  --mp-font-body: 'Playfair Display', Georgia, serif;
}

.mp-font-body-space,
.mp-store-widgets.mp-font-body-space {
  --mp-font-body: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
}

.mp-font-body-sans,
.mp-store-widgets.mp-font-body-sans {
  --mp-font-body: 'DM Sans', system-ui, sans-serif;
}

/* Seller stats (not inside dark hero) */
.mp-seller-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mp-seller-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mp-seller-stats .mp-stat-tile {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #e2ddd7;
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.dark .mp-seller-stats .mp-stat-tile {
  border-color: #2e2e2e;
  background: rgba(20, 20, 20, 0.75);
}

.mp-seller-stats .mp-stat-val {
  display: block;
  font-family: var(--mp-font-display, 'DM Serif Display', Georgia, serif);
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--mp-heading-color, #0d0d0d);
}

.dark .mp-seller-stats .mp-stat-val {
  color: #f0efed;
}

.mp-seller-stats .mp-stat-lbl {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #737373;
  margin-top: 0.35rem;
}

/* Stats row variants (store design) */
.mp-seller-stats--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-template-columns: unset;
}

.mp-stat-pill {
  flex: 1 1 min(8rem, 45%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mp-accent, #c9a84c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--mp-accent, #c9a84c) 35%, transparent);
  text-align: center;
}

.mp-stat-pill__val {
  display: block;
  font-family: var(--mp-font-display, 'DM Serif Display', Georgia, serif);
  font-size: 1.15rem;
  color: var(--mp-heading-color, #0d0d0d);
}

.mp-stat-pill__lbl {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mp-muted-color, #737373);
  margin-top: 0.2rem;
}

.mp-seller-stats--minimal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e2ddd7;
  border-bottom: 1px solid #e2ddd7;
  grid-template-columns: unset;
}

.dark .mp-seller-stats--minimal {
  border-color: #2e2e2e;
}

.mp-stat-minimal__val {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mp-heading-color, #0d0d0d);
  margin-right: 0.35rem;
}

.mp-stat-minimal__lbl {
  font-size: 0.7rem;
  color: var(--mp-muted-color, #737373);
}

.mp-seller-stats--bold {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .mp-seller-stats--bold {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mp-stat-bold {
  padding: 1.25rem 1rem;
  border-radius: 1.25rem;
  background: var(--mp-hero-bg-image, var(--mp-hero-bg, var(--mp-secondary, #0d0d0d)));
  color: #fff;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.mp-stat-bold__val {
  display: block;
  font-family: var(--mp-font-display, 'DM Serif Display', Georgia, serif);
  font-size: 1.65rem;
  line-height: 1.1;
}

.mp-stat-bold__lbl {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin-top: 0.35rem;
}

/* Homepage section layout variants */
.mp-section-body,
.mp-featured-section-body {
  min-width: 0;
}

.mp-section-grid {
  display: grid;
  gap: 0.9rem;
}

.mp-section-grid.mp-layout-grid {
  width: 100%;
}

.mp-section-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.mp-section-list .mp-card-list {
  min-width: 0;
}

.mp-section-list .mp-card:not(.mp-card-list) {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

/* Store section rails — scoped overrides without !important */
.mp-section-body .mp-product-rail,
.mp-featured-section-body .mp-product-rail {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mp-layout-editorial--compact {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .mp-layout-editorial--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mp-layout-editorial--compact .mp-card-editorial:first-child {
  grid-column: 1 / -1;
}

/* Swiper carousels — horizontal layout before/without JS init */
.mp-store-swiper.swiper {
  width: 100%;
  overflow: hidden;
}

.mp-store-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.mp-store-swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 min(78%, 17rem);
  width: min(78%, 17rem);
  max-width: min(78%, 17rem);
  scroll-snap-align: start;
}

.mp-store-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.mp-swiper-slide-inner {
  height: 100%;
}

.mp-swiper-slide-inner>.mp-card {
  height: 100%;
}

.mp-store-preview-swiper {
  margin-top: 0.25rem;
}

.mp-section-body>.mp-section-grid,
.mp-section-body>.mp-product-rail,
.mp-section-body>.mp-section-list,
.mp-section-body>.swiper,
.mp-featured-section-body>.swiper,
.mp-featured-section-body>.mp-section-grid,
.mp-featured-section-body>.mp-product-rail,
.mp-featured-section-body>.mp-section-list {
  width: 100%;
}

.mp-preview-carousel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10rem, 42%);
  gap: 0.65rem;
  overflow-x: auto;
}

.mp-store-widgets {
  background: var(--mp-bg, transparent);
}

.mp-product-rail>.mp-rail-card .mp-card {
  min-width: 13rem;
}

.mp-section-list .mp-card,
.mp-section-grid .mp-card,
.mp-section-editorial .mp-card {
  min-width: 0;
}

/* Review dialog — native scroll, centered stars */
.picpick-dialog-content-scroll.mp-dialog-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mp-review-form {
  padding-top: 0.25rem;
}

.mp-review-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.mp-review-stars .rv-star {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #d9d9d9;
  transition: color 0.15s ease, transform 0.1s ease;
  padding: 0;
}

.dark .mp-review-stars .rv-star {
  color: #404040;
}

.mp-review-stars .rv-star:hover,
.mp-review-stars .rv-star.is-active {
  color: var(--mp-accent, #c9a84c);
  transform: scale(1.06);
}

/* ── Storefront promo footer (custom domain / brand subdomain) ─────────── */
.mp-store-promo {
  padding: 1.25rem 1rem 1.5rem;
}

.dark .mp-store-promo {}

.mp-store-promo__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.mp-store-promo__copy {
  min-width: min(100%, 20rem);
}

.mp-store-promo__copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
}

.mp-store-promo__copy p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(13, 13, 12, 0.65);
}

.dark .mp-store-promo__copy p {
  color: rgba(245, 245, 244, 0.62);
}

.mp-store-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* ═══════════════════════════════════════════════════════════════
   CART DRAWER  (cd-*)
   ═══════════════════════════════════════════════════════════════ */

/* Backdrop */
.cd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

/* Panel slide */
.cd-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  width: min(24rem, 100vw);
  display: flex;
  flex-direction: column;
  background: #f8f7f5;
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .cd-panel {
  background: #0e0e0e;
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.6);
}

/* Open states (toggled by JS) */
#mp-cart-drawer:not(.translate-x-full) {
  transform: translateX(0);
}

#mp-cart-bd:not(.opacity-0) {
  opacity: 1;
  pointer-events: auto;
}

/* ── Panel header ── */
.cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
  gap: 0.75rem;
}

.dark .cd-head {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.cd-head__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cd-head__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8913a;
  flex-shrink: 0;
}

.dark .cd-head__icon {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.18);
  color: #c9a84c;
}

.cd-head__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  color: #0d0d0d;
}

.dark .cd-head__title {
  color: #f0efed;
}

.cd-head__sub {
  font-size: 0.7rem;
  color: #9a9390;
  margin: 0.1rem 0 0;
}

.dark .cd-head__sub {
  color: #555;
}

.cd-close {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #777;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.cd-close:hover {
  background: #f0ede8;
  color: #0d0d0d;
  border-color: rgba(0, 0, 0, 0.15);
}

.dark .cd-close {
  border-color: rgba(255, 255, 255, 0.08);
  color: #555;
}

.dark .cd-close:hover {
  background: #1e1e1e;
  color: #f0efed;
}

/* ── Body ── */
.cd-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0;
  -webkit-overflow-scrolling: touch;
}

/* ── Empty state ── */
.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 0.5rem;
}

.cd-empty__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px dashed rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  margin-bottom: 0.5rem;
}

.cd-empty__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  color: #0d0d0d;
  margin: 0;
}

.dark .cd-empty__title {
  color: #f0efed;
}

.cd-empty__sub {
  font-size: 0.75rem;
  color: #9a9390;
  margin: 0;
  line-height: 1.5;
  max-width: 18ch;
}

/* ── Item card ── */
.cd-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.15s;
  animation: cd-slide-in 0.25s calc(var(--i, 0)*0.06s) ease both;
}

@keyframes cd-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dark .cd-item {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.cd-item:last-child {
  border-bottom: none;
}

.cd-item:hover {
  background: rgba(201, 168, 76, 0.04);
}

.cd-item__thumb {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 0.625rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e4de;
  position: relative;
}

.dark .cd-item__thumb {
  background: #1c1c1c;
}

.cd-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cd-item__thumb:hover img {
  transform: scale(1.07);
}

.cd-item__thumb--broken {
  background: #e8e4de;
}

.cd-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cd-item__name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0d0d0d;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.dark .cd-item__name {
  color: #f0efed;
}

.cd-item__name:hover {
  color: #c9a84c;
}

.cd-item__lic {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(201, 168, 76, 0.1);
  color: #9a7a2e;
  border: 1px solid rgba(201, 168, 76, 0.2);
  align-self: flex-start;
}

.dark .cd-item__lic {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.15);
}

.cd-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.cd-item__price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.9375rem;
  color: #0d0d0d;
  line-height: 1;
}

.dark .cd-item__price {
  color: #f0efed;
}

.cd-item__rm {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.cd-item__rm:hover {
  background: rgba(220, 50, 50, 0.08);
  border-color: rgba(220, 50, 50, 0.25);
  color: #dc3232;
}

.dark .cd-item__rm {
  border-color: rgba(255, 255, 255, 0.08);
  color: #555;
}

.dark .cd-item__rm:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

/* ── Footer ── */
.cd-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.dark .cd-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Coupon */
.cd-coupon {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.cd-coupon__inp {
  flex: 1;
  min-width: 0;
  padding: 0.525rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  color: #0d0d0d;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cd-coupon__inp:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
  background: #fff;
}

.dark .cd-coupon__inp {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f0efed;
}

.dark .cd-coupon__inp:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: #c9a84c;
}

.cd-coupon__btn {
  padding: 0 0.875rem;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  cursor: pointer;
  color: #555;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.cd-coupon__btn:hover {
  background: #f0ede8;
  color: #0d0d0d;
}

.dark .cd-coupon__btn {
  border-color: rgba(255, 255, 255, 0.08);
  color: #777;
}

.dark .cd-coupon__btn:hover {
  background: #1e1e1e;
  color: #f0efed;
}

.cd-coupon__ok {
  font-size: 0.7rem;
  color: #2d8a5f;
  margin: -0.1rem 0 0;
}

.dark .cd-coupon__ok {
  color: #4ade80;
}

/* Totals */
.cd-totals {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.625rem;
  overflow: hidden;
}

.dark .cd-totals {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.cd-totals .mp-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.475rem 0.75rem;
  font-size: 0.78rem;
  gap: 0.75rem;
  color: #555;
}

.dark .cd-totals .mp-totals-row {
  color: #777;
}

.cd-totals .mp-totals-row+.mp-totals-row {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .cd-totals .mp-totals-row+.mp-totals-row {
  border-top-color: rgba(255, 255, 255, 0.04);
}

.cd-totals .mp-totals-row--muted {
  color: #888;
}

.dark .cd-totals .mp-totals-row--muted {
  color: #555;
}

.cd-totals .mp-totals-row--disc {
  color: #2d8a5f;
}

.dark .cd-totals .mp-totals-row--disc {
  color: #4ade80;
}

.cd-totals .mp-totals-row--total {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0d0d0d;
  background: rgba(201, 168, 76, 0.07);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
}

.dark .cd-totals .mp-totals-row--total {
  color: #f0efed;
  background: rgba(201, 168, 76, 0.06);
}

/* Actions */
.cd-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cd-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.8rem 1.125rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  background: #0d0d0d;
  color: #fafaf9;
  transition: background 0.15s, transform 0.1s;
  position: relative;
  overflow: hidden;
}

.cd-pay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.cd-pay:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.dark .cd-pay {
  background: #f0efed;
  color: #0d0d0d;
}

.dark .cd-pay:hover:not(:disabled) {
  background: #fff;
}

.cd-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cd-pay__amt {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}

.cd-full-checkout {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  text-decoration: none;
  padding: 0.35rem;
  border-radius: 0.5rem;
  transition: color 0.15s;
  font-family: 'DM Sans', sans-serif;
}

.cd-full-checkout:hover {
  color: #c9a84c;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE  (cko-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── Root wrapper ── */
.cko-root {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 4rem;
  animation: cko-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cko-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .cko-root {
    padding: 2.25rem 1.5rem 5rem;
  }
}

@media (min-width: 1024px) {
  .cko-root {
    padding: 2.75rem 2rem 5rem;
  }
}

/* ── Header ── */
.cko-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.cko-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 99px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.65rem;
}

.cko-head__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  color: #0d0d0d;
  letter-spacing: -0.02em;
}

.dark .cko-head__title {
  color: #f0efed;
}

.cko-head__sub {
  font-size: 0.8125rem;
  color: #9a9390;
  margin: 0;
}

.cko-head__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  margin-top: 0.25rem;
}

.cko-head__edit-btn:hover {
  background: #f5f3f0;
  color: #0d0d0d;
}

.dark .cko-head__edit-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: #666;
}

.dark .cko-head__edit-btn:hover {
  background: #1a1a1a;
  color: #f0efed;
}

/* ── Steps ── */
.cko-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.cko-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cko-step span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bbb;
}

.cko-step--done span,
.cko-step--active span {
  color: #0d0d0d;
}

.dark .cko-step--done span,
.dark .cko-step--active span {
  color: #f0efed;
}

.cko-step__dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #e8e4de;
  border: 2px solid #e8e4de;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s;
}

.dark .cko-step__dot {
  background: #252525;
  border-color: #252525;
}

.cko-step--done .cko-step__dot {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #fff;
}

.cko-step--active .cko-step__dot {
  background: #0d0d0d;
  border-color: #0d0d0d;
}

.dark .cko-step--active .cko-step__dot {
  background: #f0efed;
  border-color: #f0efed;
}

.cko-step__line {
  flex: 1;
  height: 2px;
  background: #e8e4de;
  min-width: 3rem;
  max-width: 6rem;
  margin-bottom: 1.1rem;
}

.dark .cko-step__line {
  background: #252525;
}

.cko-step__line--done {
  background: #c9a84c;
}

/* ── Main grid ── */
.cko-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 860px) {
  .cko-grid {
    grid-template-columns: 1fr 20rem;
    gap: 1.75rem;
  }
}

@media (min-width: 1080px) {
  .cko-grid {
    grid-template-columns: 1fr 22rem;
    gap: 2.25rem;
  }
}

/* ── Panel shell (shared) ── */
.cko-panel {
  border-radius: 1.125rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eae6e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dark .cko-panel {
  background: #111;
  border-color: #222;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.cko-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f2ede7;
}

.dark .cko-panel__head {
  border-bottom-color: #1c1c1c;
}

.cko-panel__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0a898;
}

.dark .cko-panel__label {
  color: #444;
}

.cko-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(201, 168, 76, 0.12);
  color: #9a7a2e;
  border: 1px solid rgba(201, 168, 76, 0.22);
}

.dark .cko-panel__count {
  background: rgba(201, 168, 76, 0.08);
  color: #c9a84c;
  border-color: rgba(201, 168, 76, 0.15);
}

/* ── Items list (left panel) ── */
.cko-items-list {
  display: flex;
  flex-direction: column;
}

/* ── Single item card ── */
.cko-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f5f2ee;
  transition: background 0.15s;
  position: relative;
}

.dark .cko-item {
  border-bottom-color: #181818;
}

.cko-item:last-child {
  border-bottom: none;
}

.cko-item:hover {
  background: rgba(201, 168, 76, 0.03);
}

/* Cover art */
.cko-item__cover {
  position: relative;
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #ede9e3;
}

.dark .cko-item__cover {
  background: #1c1c1c;
}

.cko-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cko-item:hover .cko-item__cover img {
  transform: scale(1.06);
}

.cko-item__cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.cko-item__cover--broken {
  background: #ede9e3;
}

/* Body */
.cko-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cko-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cko-item__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0d0d0d;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.dark .cko-item__name {
  color: #f0efed;
}

.cko-item__name:hover {
  color: #c9a84c;
}

.cko-item__lic {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(201, 168, 76, 0.1);
  color: #9a7a2e;
  border: 1px solid rgba(201, 168, 76, 0.2);
  align-self: flex-start;
}

.dark .cko-item__lic {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.15);
}

.cko-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.cko-item__price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  color: #0d0d0d;
  line-height: 1;
}

.dark .cko-item__price {
  color: #f0efed;
}

.cko-item__price--free {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d8a5f !important;
}

.dark .cko-item__price--free {
  color: #4ade80 !important;
}

.cko-item__rm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #e2ddd7;
  background: transparent;
  color: #aaa;
  font-size: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.15s;
  white-space: nowrap;
}

.cko-item__rm:hover {
  border-color: rgba(220, 50, 50, 0.35);
  background: rgba(220, 50, 50, 0.07);
  color: #dc3232;
}

.dark .cko-item__rm {
  border-color: #2a2a2a;
  color: #555;
}

.dark .cko-item__rm:hover {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(220, 50, 50, 0.1);
  color: #f87171;
}

/* Mobile: bigger touch targets */
@media (max-width: 479px) {
  .cko-item {
    grid-template-columns: 4rem 1fr;
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .cko-item__cover {
    width: 4rem;
    height: 4rem;
  }

  .cko-item__name {
    font-size: 0.875rem;
  }

  .cko-item__price {
    font-size: 1rem;
  }
}

/* ── Summary panel (right) ── */
.cko-panel--summary {
  display: flex;
  flex-direction: column;
}

@media (min-width: 860px) {
  .cko-panel--summary {
    position: sticky;
    top: 4.5rem;
  }
}

/* Coupon section */
.cko-coupon-wrap {
  padding: 1rem 1.25rem 0.875rem;
  border-bottom: 1px solid #f2ede7;
}

.dark .cko-coupon-wrap {
  border-bottom-color: #1c1c1c;
}

.cko-coupon-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.55rem;
}

.dark .cko-coupon-label {
  color: #444;
}

.cko-coupon {
  display: flex;
  gap: 0.4rem;
}

.cko-coupon__inp {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.875rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  background: #f5f3f0;
  border: 1px solid #e2ddd7;
  border-radius: 0.5rem;
  color: #0d0d0d;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.cko-coupon__inp:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
  background: #fff;
}

.dark .cko-coupon__inp {
  background: #181818;
  border-color: #2a2a2a;
  color: #f0efed;
}

.dark .cko-coupon__inp:focus {
  background: #1f1f1f;
  border-color: #c9a84c;
}

.cko-coupon__btn {
  padding: 0 1rem;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  background: #0d0d0d;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  color: #f0efed;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
}

.cko-coupon__btn:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.dark .cko-coupon__btn {
  background: #f0efed;
  color: #0d0d0d;
}

.dark .cko-coupon__btn:hover:not(:disabled) {
  background: #fff;
}

.cko-coupon__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cko-coupon__ok {
  font-size: 0.7rem;
  color: #2d8a5f;
  margin: 0.4rem 0 0;
}

.dark .cko-coupon__ok {
  color: #4ade80;
}

/* Totals */
.cko-totals {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.cko-totals .mp-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  gap: 1rem;
  color: #7a7570;
}

.dark .cko-totals .mp-totals-row {
  color: #666;
}

.cko-totals .mp-totals-row--muted {
  color: #9a9390;
  font-size: 0.78rem;
}

.dark .cko-totals .mp-totals-row--muted {
  color: #555;
}

.cko-totals .mp-totals-row--disc {
  color: #2d8a5f;
}

.dark .cko-totals .mp-totals-row--disc {
  color: #4ade80;
}

.cko-totals .mp-totals-row--total {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0d0d0d;
  border-top: 1.5px solid #ede9e3;
  background: rgba(201, 168, 76, 0.05);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  margin-top: 0.25rem;
}

.dark .cko-totals .mp-totals-row--total {
  color: #f0efed;
  border-top-color: #222;
  background: rgba(201, 168, 76, 0.04);
}

.cko-totals .mp-totals-row--total .price-tag {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
}

/* Trust row */
.cko-trust {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f2ede7;
  flex-wrap: wrap;
}

.dark .cko-trust {
  border-top-color: #1c1c1c;
}

.cko-trust__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.675rem;
  color: #aaa;
  font-weight: 500;
}

.dark .cko-trust__item {
  color: #555;
}

/* CTA */
.cko-cta {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cko-cta__pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  background: #0d0d0d;
  color: #fafaf9;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cko-cta__pay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.cko-cta__pay:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.dark .cko-cta__pay {
  background: #f0efed;
  color: #0d0d0d;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.dark .cko-cta__pay:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cko-cta__pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cko-cta__pay-label {
  font-size: 0.875rem;
  font-weight: 700;
}

.cko-cta__pay-amt {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 400;
}

.cko-cta__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cko-cta__back:hover {
  background: #f5f3f0;
  color: #0d0d0d;
}

.dark .cko-cta__back {
  border-color: rgba(255, 255, 255, 0.08);
  color: #555;
}

.dark .cko-cta__back:hover {
  background: #1a1a1a;
  color: #f0efed;
}

/* ── Empty checkout ── */
.cko-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  text-align: center;
  padding: 2rem 1.5rem;
}

.cko-empty__icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1.5px dashed rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  margin-bottom: 1.25rem;
}

.cko-empty__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #0d0d0d;
  margin: 0 0 0.5rem;
}

.dark .cko-empty__title {
  color: #f0efed;
}

.cko-empty__sub {
  font-size: 0.875rem;
  color: #9a9390;
  margin: 0 0 1.5rem;
  max-width: 30ch;
  line-height: 1.55;
}

.cko-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  background: #0d0d0d;
  color: #f0efed;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}

.cko-empty__cta:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.dark .cko-empty__cta {
  background: #f0efed;
  color: #0d0d0d;
}

.dark .cko-empty__cta:hover {
  background: #fff;
}