/* Marketplace only. Loaded from marketplace.html after the shared sheets. */

body.page-marketplace {
  --mk-pink: #ff3d86;
  --mk-pink-deep: #e4236f;
  --mk-ink: #4a2140;
  --mk-muted: #8a6d7c;
  --mk-line: #f0e4ea;
  --mk-cream: #fff8f4;
  background: var(--mk-cream);
  color: var(--mk-ink);
  font-family: var(--sans);
}

body.page-marketplace h1,
body.page-marketplace h2,
body.page-marketplace h3 {
  font-family: var(--sans);
  letter-spacing: -0.03em;
}

body.page-marketplace .announcement {
  background: #6d2448;
  color: #fff;
  font-size: 13px;
}

body.page-marketplace .announcement__inner {
  display: flex;
  justify-content: center;
  min-height: 38px;
}

body.page-marketplace .site-header,
body.page-marketplace .header-nav {
  background: #fff;
}

body.page-marketplace .header-search {
  height: 48px;
  border: 1px solid #f3d5e2;
  border-radius: 999px;
  background: #fff;
}

body.page-marketplace .header-search > button {
  width: 40px;
  height: 40px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--mk-pink);
  color: #fff;
}

body.page-marketplace .categories-btn {
  border: 0;
  border-radius: 999px;
  background: var(--mk-pink);
  color: #fff;
}

body.page-marketplace .primary-nav a[aria-current="page"] {
  color: var(--mk-pink);
}

body.page-marketplace .header-offer {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff4c8;
  color: #8a6414;
  font-weight: 700;
  text-decoration: none;
}

body.page-marketplace .header-action--cart {
  position: relative;
}

body.page-marketplace .header-action .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--mk-pink);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

/* Hero */
body.page-marketplace .market-hero {
  padding: 28px 0 12px;
  background:
    radial-gradient(circle at 78% 40%, rgba(255, 182, 210, 0.45), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fff6f1 100%);
}

body.page-marketplace .market-hero__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

body.page-marketplace .market-hero__kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe4ef;
  color: var(--mk-pink-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-marketplace .market-hero h1 {
  margin: 0;
  color: #6b2148;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

body.page-marketplace .market-hero__lead {
  max-width: 42ch;
  margin: 16px 0 0;
  color: #6d5564;
  font-size: 1.05rem;
  line-height: 1.55;
}

body.page-marketplace .market-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 26px 0 0;
}

body.page-marketplace .market-hero__stats div {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  background: #fff;
}

body.page-marketplace .market-hero__stats dt {
  color: var(--mk-muted);
  font-size: 13px;
  font-weight: 600;
}

body.page-marketplace .market-hero__stats dd {
  margin: 4px 0 0;
  color: #6b2148;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

body.page-marketplace .market-hero__visual {
  margin-top: 36px;
  align-self: end;
}

body.page-marketplace .market-hero__visual img {
  display: block;
  width: 100%;
  height: min(420px, 48vh);
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
}

/* Sliding categories */
body.page-marketplace .market-cats {
  padding: 28px 0 8px;
}

body.page-marketplace .market-cats h2 {
  margin: 0;
  color: #6b2148;
  font-size: 1.7rem;
  font-weight: 800;
}

body.page-marketplace .market-cats p {
  margin: 4px 0 0;
  color: var(--mk-muted);
}

body.page-marketplace .market-cats__row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
}

body.page-marketplace .market-cat {
  display: grid;
  justify-items: center;
  gap: 8px;
  flex: 0 0 92px;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mk-ink);
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

body.page-marketplace .market-cat__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 50%;
  background: #f4ebe7;
  color: #7a1542;
  border: 1px solid rgba(122, 21, 66, 0.12);
}

body.page-marketplace .market-cat__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-marketplace .market-cat__icon svg {
  width: 28px;
  height: 28px;
}

body.page-marketplace .market-cat__name {
  max-width: 92px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

body.page-marketplace .market-cat[aria-pressed="true"] .market-cat__icon {
  box-shadow: 0 0 0 2px var(--mk-pink);
}

/* Filters left, products right */
body.page-marketplace .market-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 12px;
  padding-bottom: 48px;
}

body.page-marketplace .market-filters {
  position: sticky;
  top: 16px;
  padding: 18px 16px;
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  background: #fff;
}

body.page-marketplace .market-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.page-marketplace .market-filters h2,
body.page-marketplace .market-filters legend {
  margin: 0;
  color: #6b2148;
  font-size: 1rem;
  font-weight: 800;
}

body.page-marketplace .market-filters__clear {
  border: 0;
  background: transparent;
  color: var(--mk-pink);
  font-weight: 700;
  cursor: pointer;
}

body.page-marketplace .market-filters fieldset {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

body.page-marketplace .market-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--mk-ink);
  font-size: 14px;
}

body.page-marketplace .market-filters__price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.page-marketplace .market-filters__price label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

body.page-marketplace .market-filters input[type="number"] {
  width: 100%;
  height: 32px;
  min-height: 32px;
  margin-top: 0;
  padding: 0 10px;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
}

body.page-marketplace .market-toolbar {
  padding: 0;
  border: 0;
  border-bottom: 0;
  background: transparent;
}

body.page-marketplace .market-toolbar__row {
  display: flex;
  gap: 12px;
  align-items: center;
}

body.page-marketplace .market-toolbar .market-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #f3d5e2;
  border-radius: 999px;
  background: #fff;
  overflow: visible;
  z-index: 2;
}

body.page-marketplace .market-search svg {
  width: 18px;
  height: 18px;
  color: var(--mk-pink);
}

body.page-marketplace .market-search input,
body.page-marketplace .sort-select {
  border: 0;
  background: transparent;
  color: var(--mk-ink);
  font: inherit;
}

body.page-marketplace .market-toolbar .sort-select {
  height: 48px;
  min-height: 48px;
  padding: 0 36px 0 16px;
  border: 1px solid #f3d5e2;
  border-radius: 999px;
  background-color: #fff;
}

body.page-marketplace .results-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: var(--mk-muted);
  font-size: 14px;
}

body.page-marketplace .results-bar strong {
  color: #6b2148;
}

body.page-marketplace .market-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-marketplace .market-grid > .product-card,
body.page-marketplace .market-grid > .skeleton-card {
  grid-column: auto;
  width: auto;
  min-width: 0;
}

body.page-marketplace .product-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

body.page-marketplace .market-grid .product-card__frame {
  box-sizing: border-box;
  width: 200px;
  aspect-ratio: 1 / 1;
  padding: 4px;
  background: #fff;
}

body.page-marketplace .market-grid .product-card__media {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #fff8f4;
  overflow: hidden;
}

body.page-marketplace .market-grid .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

body.page-marketplace .market-grid .product-card__badge {
  top: auto;
  right: 8px;
  bottom: 8px;
  left: 8px;
  justify-content: center;
  max-width: none;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

body.page-marketplace .market-grid .card-wish {
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
}

/* Wishlist button is now inside product-card__frame (image area) — always absolute */
body.page-marketplace .m-grid .card-wish,
body.page-marketplace .m-list .card-wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  z-index: 3;
}

/* Hide the old card-wish--title if any stale markup remains */
body.page-marketplace .card-wish--title {
  display: none !important;
}

body.page-marketplace .product-card__badge,
body.page-marketplace .product-card__actions .btn--dark {
  border: 0;
  border-radius: 999px;
  background: var(--mk-pink);
  color: #fff;
}

body.page-marketplace .product-card__body {
  padding: 14px 18px 14px 6px;
}

body.page-marketplace .product-card__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
}

body.page-marketplace .product-card__actions .btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 44px;
  border-radius: 999px;
}

body.page-marketplace .product-card__title a {
  color: var(--mk-ink);
  text-decoration: none;
}

body.page-marketplace .product-card__reviews {
  color: var(--mk-pink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.page-marketplace .product-card__reviews span {
  color: #f0b429;
  letter-spacing: 0.04em;
}

body.page-marketplace .market-assurance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

body.page-marketplace .market-assurance__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

body.page-marketplace .market-assurance__item svg {
  width: 22px;
  height: 22px;
  color: var(--mk-pink);
}

@media (max-width: 980px) {
  body.page-marketplace .market-hero__inner,
  body.page-marketplace .market-layout {
    grid-template-columns: 1fr;
  }

  body.page-marketplace .market-filters {
    position: static;
  }

  body.page-marketplace .market-hero__visual img {
    height: 280px;
  }
}

@media (max-width: 640px) {
  body.page-marketplace .market-grid > .product-card {
    grid-template-columns: 1fr;
  }

  body.page-marketplace .market-grid .product-card__frame {
    width: min(100%, 220px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  body.page-marketplace .market-assurance {
    grid-template-columns: 1fr;
  }
}

/* Phone-first shop: promo, search, portrait banners, swipe categories, then the three lists. */
body.page-marketplace {
  background: #f7f4f5;
}

body.page-marketplace #main {
  padding: 0 0 28px;
}

body.page-marketplace .announcement {
  background: var(--burgundy-700, #7a1542);
  color: #fff;
  font-size: 13px;
}

body.page-marketplace .announcement__item:not(.announcement__item--center) {
  display: none;
}

body.page-marketplace .announcement__inner {
  display: block;
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
}

body.page-marketplace .announcement__item--center,
body.page-marketplace .announcement a {
  color: #fff;
}

/* The banner is a normal section, not a hero overlay: the header keeps its
   full-height bar, the desktop nav row, and every action button. */
body.page-marketplace .site-header {
  position: relative;
  z-index: 60;
  background: #ffffff;
  margin-bottom: 0;
  border-bottom: 1px solid #f0e6ec;
  box-shadow: 0 2px 8px rgba(12, 5, 9, 0.04);
}

body.page-marketplace .header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 0;
  padding-bottom: 0;
}

body.page-marketplace .brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

body.page-marketplace .brand img {
  height: 36px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
}

body.page-marketplace .header-search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 540px;
  height: 46px;
  margin: 0 auto;
  border: 1.5px solid #ecdfe6;
  border-radius: 999px;
  background: #faf7f9;
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

body.page-marketplace .header-search:focus-within {
  border-color: #8a2547;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(138, 37, 71, 0.12);
}

body.page-marketplace .header-search input {
  flex: 1 1 auto;
  height: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: #1a0f14;
  outline: none;
}

body.page-marketplace .header-search > button {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #8a2547;
  color: #ffffff;
  cursor: pointer;
  border-radius: 0 999px 999px 0;
  transition: background 150ms ease;
}

body.page-marketplace .header-search > button:hover {
  background: #731e3a;
}

body.page-marketplace .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

body.page-marketplace .header-actions .header-search-toggle {
  display: none !important;
}

body.page-marketplace .header-action,
body.page-marketplace .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #f3d5e2;
  border-radius: 50%;
  background: #ffffff;
  color: #7a1542;
  box-shadow: 0 1px 3px rgba(12, 5, 9, 0.04);
  transition: background 150ms ease, border-color 150ms ease;
}

body.page-marketplace .header-action:hover,
body.page-marketplace .menu-toggle:hover {
  background: #fdf5f8;
  border-color: #8a2547;
}

body.page-marketplace .header-action svg,
body.page-marketplace .header-action--logo svg {
  width: 18px;
  height: 18px;
}

body.page-marketplace .header-action > span:not(.note-count):not(.cart-count) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.page-marketplace .account-btn.has-notes::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #7a1542;
}

/* ── Notification badge: small pill at top-right of each icon circle ── */
body.page-marketplace .header-action,
body.page-marketplace .header-notes,
body.page-marketplace [data-wishlist-link] {
  position: relative;
}

body.page-marketplace .note-count,
body.page-marketplace .cart-count {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  left: auto !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: #e4236f !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  text-align: center !important;
  border: 1.5px solid #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
  z-index: 5;
}

body.page-marketplace .note-count[data-empty="true"] {
  display: none !important;
}

/* Full-banner slider: one promo image per slide, artwork ratio preserved. */
body.page-marketplace .m-banners {
  position: relative;
  width: 100%;
  padding: 10px 0 0;
  overflow: hidden;
  background: #ffe9f1;
  isolation: isolate;
}

body.page-marketplace .m-banners__track {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0;
}

body.page-marketplace .m-banners__slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  aspect-ratio: 1024 / 424;
  height: auto;
  max-height: 520px;
  min-height: 0;
  scroll-snap-align: start;
  border-radius: 0;
  overflow: hidden;
  background: #ffe9f1;
}

body.page-marketplace .m-banners__slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

body.page-marketplace .m-banners__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 244, 0.88);
  color: #4a2140;
  box-shadow: 0 4px 16px rgba(12, 5, 9, 0.32);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 160ms ease, opacity 160ms ease;
}

body.page-marketplace .m-banners__arrow:hover,
body.page-marketplace .m-banners__arrow:focus-visible {
  background: #fff;
}

body.page-marketplace .m-banners__arrow svg {
  width: 22px;
  height: 22px;
}

body.page-marketplace .m-banners__arrow--prev {
  left: max(16px, calc((100% - 1440px) / 2 + 16px));
}

body.page-marketplace .m-banners__arrow--next {
  right: max(16px, calc((100% - 1440px) / 2 + 16px));
}

body.page-marketplace .m-banners__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  transform: translateX(-50%);
}

body.page-marketplace .m-banners__dots button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

body.page-marketplace .m-banners__dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(12, 5, 9, 0.5);
  transition: width 180ms ease, background-color 180ms ease;
}

body.page-marketplace .m-banners__dots button[aria-current="true"]::before {
  width: 26px;
  background: #fff;
}

body.page-marketplace .m-banners__dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  border-radius: 999px;
}

body.page-marketplace .m-cats__row {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 12px 16px 4px;
  -webkit-overflow-scrolling: touch;
}

body.page-marketplace .m-banners__track::-webkit-scrollbar,
body.page-marketplace .m-cats__row::-webkit-scrollbar {
  display: none;
}

body.page-marketplace .m-cats .market-cat {
  flex: none;
  width: 72px;
  scroll-snap-align: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: #3f2434;
  text-align: center;
}

body.page-marketplace .m-cats .market-cat__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  overflow: hidden;
  border-radius: 50%;
  background: #f7f1ec;
  color: #7a1542;
  border: 1px solid rgba(122, 21, 66, 0.14);
  box-shadow: 0 1px 2px rgba(36, 20, 27, 0.06);
}

body.page-marketplace .m-cats .market-cat__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-marketplace .m-cats .market-cat__icon svg {
  width: 26px;
  height: 26px;
}

body.page-marketplace .m-cats .market-cat__name {
  display: block;
  max-width: 100%;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-marketplace .m-cats .market-cat[aria-pressed="true"] .market-cat__icon {
  outline: 2px solid var(--burgundy-700, #7a1542);
  outline-offset: 2px;
  border-color: var(--burgundy-700, #7a1542);
  box-shadow: 0 0 0 1px rgba(122, 21, 66, 0.2);
}

body.page-marketplace .m-cats .market-cat[aria-pressed="true"] .market-cat__icon img {
  transform: scale(1.04);
}

body.page-marketplace .m-block {
  padding: 6px 16px 2px;
}

body.page-marketplace .m-block h2 {
  margin: 12px 0 8px;
  font-size: clamp(16px, 1.1vw + 12px, 18px);
  font-weight: 750;
  line-height: 1.25;
}

body.page-marketplace .m-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body.page-marketplace .m-grid {
  scrollbar-width: thin;
  scrollbar-color: #e8a3c0 transparent;
}

body.page-marketplace .m-grid::-webkit-scrollbar {
  display: block;
  height: 6px;
}

body.page-marketplace .m-grid::-webkit-scrollbar-track {
  background: transparent;
}

body.page-marketplace .m-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #e8a3c0;
}

body.page-marketplace .m-grid > .product-card,
body.page-marketplace .m-grid > .product-card:nth-child(n) {
  display: flex;
  flex: 0 0 calc((100% - 24px) / 4);
  flex-grow: 0;
  flex-shrink: 0;
  flex-direction: column;
  grid-column: auto;
  grid-template-columns: none;
  width: calc((100% - 24px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #f0e4ea;
  border-radius: 12px;
  background: #fff;
}

body.page-marketplace .m-grid .product-card__frame {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 8px 0;
  background: #fff;
}

body.page-marketplace .m-grid .product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

body.page-marketplace .m-grid .product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-marketplace .m-grid .product-card__flags {
  top: auto;
  right: 8px;
  bottom: 8px;
  left: 8px;
  flex-direction: row;
  flex-wrap: wrap;
}

body.page-marketplace .m-grid .product-card__meta,
body.page-marketplace .m-grid .product-card__facts,
body.page-marketplace .m-grid .product-card__actions {
  display: none;
}

body.page-marketplace .m-grid .product-card__quick {
  display: flex;
  left: 16px;
  right: 16px;
  bottom: 16px;
  opacity: 0;
  pointer-events: none;
}

body.page-marketplace .m-grid .product-card:hover .product-card__quick,
body.page-marketplace .m-grid .product-card:focus-within .product-card__quick {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.page-marketplace .m-grid .product-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px 12px;
}

body.page-marketplace .m-grid .product-card__tag,
body.page-marketplace .m-list .listing-row__tag {
  grid-column: 1 / -1;
  display: block;
  margin: 0 0 2px;
  color: #7a1542;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

body.page-marketplace .m-grid .product-card__title-row {
  grid-column: 1 / -1;
  width: 100%;
}

body.page-marketplace .m-grid .product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  grid-column: 1;
  width: auto;
  margin: 2px 0 0;
  color: #161616;
  font-size: 17px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

body.page-marketplace .m-grid .product-card__buy {
  grid-column: 1 / -1;
  margin-top: 8px;
}

body.page-marketplace .m-grid .product-card__buy .btn {
  width: 100%;
  min-height: 44px;
  height: 44px;
}

body.page-marketplace .m-grid .product-card__details {
  grid-column: 2;
  width: auto;
  margin: 2px 0 0;
  color: #7a1542;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

body.page-marketplace .m-grid .product-card__title {
  color: #161616;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

body.page-marketplace .m-grid .product-card__title a {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  padding-block: 8px;
  color: #161616;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-marketplace .m-grid .product-card__was {
  margin-left: 0;
  color: #8a756c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.page-marketplace .m-grid .product-card__off {
  margin-left: 0;
  background: var(--burgundy-700, #7a1542);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.page-marketplace .m-grid .product-card__price strong {
  color: #d81b60;
}

body.page-marketplace .m-grid .product-card__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #6d4452;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

body.page-marketplace .m-grid .product-card__social-sep {
  color: #b9a3ad;
}

body.page-marketplace .m-grid .product-card__social-reviews {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 2px;
  color: #d81b60;
  font-weight: 600;
  text-decoration: none;
}

body.page-marketplace .m-grid .product-card__social-reviews:hover,
body.page-marketplace .m-grid .product-card__social-reviews:focus-visible {
  text-decoration: underline;
}

body.page-marketplace .m-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.page-marketplace .m-list .listing-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border-color: #f0e4ea;
  box-shadow: none;
}

body.page-marketplace .m-list .listing-row__media {
  position: relative;
  align-self: flex-start;
  flex: none;
  width: 108px;
  height: 112px;
}

/* Wishlist button overlaid on top-right of list card image */
body.page-marketplace .m-list .listing-row__wish {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #7a1542;
  box-shadow: 0 2px 6px rgba(37,35,41,0.12);
  cursor: pointer;
}

body.page-marketplace .m-list .listing-row__wish svg {
  width: 15px;
  height: 15px;
}

body.page-marketplace .m-list .listing-row__wish[aria-pressed="true"] {
  border-color: #e4236f;
  background: #e4236f;
  color: #fff;
}

body.page-marketplace .m-list .listing-row__media img {
  width: 108px;
  height: 112px;
}

body.page-marketplace .m-list .listing-row__media .product-card__flags {
  top: auto;
  right: 4px;
  bottom: 4px;
  left: 4px;
  flex-direction: row;
  flex-wrap: wrap;
}

body.page-marketplace .m-list .listing-row__facts,
body.page-marketplace .m-list .listing-row__brand {
  display: none;
}

body.page-marketplace .m-list .listing-row__desc {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: #5c4a54;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-marketplace .m-list .listing-row__copy h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

body.page-marketplace .m-list .listing-row__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

body.page-marketplace .m-list .listing-row__offer {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  text-align: right;
}

body.page-marketplace .m-list .listing-row__social {
  display: flex;
}

body.page-marketplace .m-list .listing-row__actions {
  margin-top: auto;
}

body.page-marketplace .m-list .listing-row__ship {
  display: none;
}

body.page-marketplace .m-note,
body.page-marketplace .m-results p {
  margin: 0;
  color: #5c4a54;
  font-size: 14px;
}

body.page-marketplace .m-note a {
  color: #a3134f;
  font-weight: 700;
  text-underline-offset: 3px;
}

body.page-marketplace .m-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}

body.page-marketplace .m-split {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
}

body.page-marketplace .m-filters {
  margin: 0;
  padding: 12px;
  border: 1px solid #f0e4ea;
  border-radius: 12px;
  background: #fff;
}

body.page-marketplace .m-filters fieldset {
  margin: 8px 0;
  padding: 0;
  border: 0;
}

body.page-marketplace .m-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

body.page-marketplace .m-filters select,
body.page-marketplace .m-filters input[type="number"] {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid #f0e4ea;
  border-radius: 8px;
}

body.page-marketplace .m-filters__price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.page-marketplace .m-filters__price label {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 0;
}

body.page-marketplace .m-stores {
  min-width: 0;
  max-width: 100%;
  padding: 4px 16px 8px;
}

body.page-marketplace .m-stores h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 750;
}

body.page-marketplace .m-stores__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.page-marketplace .m-stores__row::-webkit-scrollbar {
  display: none;
}

body.page-marketplace .m-stores__row.is-moving {
  scroll-snap-type: none;
}

body.page-marketplace .m-store {
  display: flex;
  flex: 0 0 220px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 148px;
  padding: 0 0 12px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  background: #fff;
  color: #050505;
  text-decoration: none;
}

body.page-marketplace .m-store__cover {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
  background: #e4e6eb;
}

body.page-marketplace .m-store__cover--fallback {
  background-color: var(--store-accent, #7a1542);
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(20, 10, 15, 0.34));
}

body.page-marketplace .m-store__logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 8px 12px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #7a1542;
  font-size: 26px;
  font-weight: 700;
}

body.page-marketplace .m-store__logo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

body.page-marketplace .m-store__initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #f3e4ea;
  color: #7a1542;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

body.page-marketplace .m-store__name {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 0 12px;
}

body.page-marketplace .m-store strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-marketplace .m-list .m-msg {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: auto;
  min-height: auto !important;
  height: auto !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #7a1542 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  cursor: pointer !important;
  transition: color 150ms ease, opacity 150ms ease !important;
}

body.page-marketplace .m-list .m-msg:hover {
  color: #a31d57 !important;
  background: transparent !important;
  background-color: transparent !important;
  opacity: 0.85 !important;
}

body.page-marketplace .product-card__quick,
a.product-card__quick {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: #fff !important;
  background-color: #fff !important;
  border: 1px solid rgba(122, 21, 66, 0.14) !important;
  box-shadow: 0 4px 14px rgba(59, 10, 30, 0.12) !important;
  color: #3b0a1e !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: color 150ms ease, background-color 150ms ease, opacity 150ms ease !important;
}

body.page-marketplace .product-card__quick:hover,
a.product-card__quick:hover {
  color: #7a1542 !important;
  background: #fff !important;
  background-color: #fff !important;
  opacity: 1 !important;
}

@media (max-width: 374px) {
  body.page-marketplace .header-main {
    gap: 6px;
  }

  body.page-marketplace .header-actions {
    gap: 4px;
  }
}

@media (max-width: 800px) {
  body.page-marketplace .m-split {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-marketplace .m-filters,
  body.page-marketplace .m-filters fieldset,
  body.page-marketplace .m-filters label,
  body.page-marketplace .m-filters select {
    min-width: 0;
    max-width: 100%;
  }
}

@media (min-width: 1000px) {
  body.page-marketplace .m-grid > .product-card,
  body.page-marketplace .m-grid > .product-card:nth-child(n) {
    flex-basis: calc((100% - 24px) / 4);
    width: calc((100% - 24px) / 4);
  }
}

@media (min-width: 1100px) {
  body.page-marketplace .m-cats__row,
  body.page-marketplace .m-block,
  body.page-marketplace .m-results,
  body.page-marketplace .m-split,
  body.page-marketplace .m-stores {
    padding-left: max(16px, calc((100% - 1120px) / 2));
    padding-right: max(16px, calc((100% - 1120px) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-marketplace .m-banners__track {
    scroll-behavior: auto;
  }
}

/* Screen fit. Laptop (1024–1439) keeps the rail and the left filter column. */
body.page-marketplace {
  overflow-x: clip;
}

.m-filters-toggle,
.m-filters-scrim {
  display: none;
}

.m-filters__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.m-filters__head {
  display: none;
}

.m-filters__actions .btn {
  flex: 1;
}

@media (min-width: 1440px) {
  body.page-marketplace .m-cats__row,
  body.page-marketplace .m-block,
  body.page-marketplace .m-results,
  body.page-marketplace .m-split,
  body.page-marketplace .m-stores {
    padding-left: max(24px, calc((100% - 1320px) / 2));
    padding-right: max(24px, calc((100% - 1320px) / 2));
  }

}

@media (min-width: 1920px) {
  body.page-marketplace .m-cats__row,
  body.page-marketplace .m-block,
  body.page-marketplace .m-results,
  body.page-marketplace .m-split,
  body.page-marketplace .m-stores {
    padding-left: max(32px, calc((100% - 1520px) / 2));
    padding-right: max(32px, calc((100% - 1520px) / 2));
  }

}

@media (max-width: 1023px) {
  body.page-marketplace .announcement__item--center {
    display: block;
  }

  body.page-marketplace .announcement__inner {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
  }

  body.page-marketplace .announcement__inner span {
    max-width: none;
    color: #fff;
  }

  body.page-marketplace .announcement__item--center {
    overflow: hidden;
  }

  body.page-marketplace .announcement__marquee {
    display: flex;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    --marquee-duration: 14s;
    animation: announcement-marquee var(--marquee-duration) linear infinite;
  }

  body.page-marketplace .announcement__marquee > span {
    width: auto;
    max-width: none;
    white-space: nowrap;
    padding-right: 40px;
    font-size: clamp(12px, 2.45vw, 13px);
    line-height: 1.2;
  }

  body.page-marketplace .announcement__marquee > span[aria-hidden="true"] {
    display: inline;
  }

  body.page-marketplace .header-nav {
    display: none;
  }

  body.page-marketplace .menu-toggle {
    display: flex;
    flex: none;
    order: 4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }

  body.page-marketplace .menu-toggle span {
    position: static;
    width: 13px;
    height: 1.5px;
  }

  body.page-marketplace .menu-toggle[aria-expanded="true"] span:nth-child(1),
  body.page-marketplace .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  body.page-marketplace .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }


  body.page-marketplace .m-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 12px 16px 0;
    padding: 0 16px;
    border: 1px solid #f0e4ea;
    border-radius: 999px;
    background: #fff;
    color: #7a1542;
    font-size: 14px;
    font-weight: 700;
  }

  body.page-marketplace .m-split {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-marketplace .m-filters {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    max-height: min(78vh, 640px);
    margin: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    overflow: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 40px rgba(22, 10, 16, 0.18);
    transform: translateY(110%);
    visibility: hidden;
  }

  body.page-marketplace .m-filters.is-open {
    transform: none;
    visibility: visible;
  }

  body.page-marketplace .m-filters__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e4ea;
  }

  body.page-marketplace .m-filters__grab {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #e8d6df;
    transform: translateX(-50%);
  }

  body.page-marketplace .m-filters__head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.01em;
  }

  body.page-marketplace .m-filters__close {
    display: grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #f0e4ea;
    border-radius: 50%;
    background: #fff;
    color: #7a1542;
    cursor: pointer;
  }

  body.page-marketplace .m-filters__close svg {
    width: 18px;
    height: 18px;
  }

  body.page-marketplace .m-filters__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 12px -16px 0;
    padding: 12px 16px 0;
    background: #fff;
    box-shadow: 0 -8px 18px rgba(22, 10, 16, 0.08);
  }

  body.m-filters-open .m-filters-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 89;
    border: 0;
    background: rgba(22, 10, 16, 0.45);
  }

  body.page-marketplace .m-grid {
    display: flex;
    overflow-x: auto;
  }

  body.page-marketplace .m-grid > .product-card,
  body.page-marketplace .m-grid > .product-card:nth-child(n) {
    flex: 0 0 calc((100% - 16px) / 3);
    width: calc((100% - 16px) / 3);
    min-height: 0;
  }

  body.page-marketplace .m-grid .product-card__title {
    min-height: 2.5em;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  body.page-marketplace .site-header {
    background: #fff;
  }

  body.page-marketplace .header-main {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 12px;
    padding-block: 8px;
  }

  body.page-marketplace .brand {
    order: 1;
    display: inline-flex;
    align-items: center;
  }

  body.page-marketplace .brand img {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
  }

  body.page-marketplace .header-search {
    order: 2;
    display: flex;
    flex: 1 1 auto;
    width: auto;
    max-width: 480px;
    min-width: 0;
    height: 42px;
    margin: 0 10px;
  }

  body.page-marketplace .header-search input {
    height: 40px;
    font-size: 15px;
    padding: 0 14px;
  }

  body.page-marketplace .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  body.page-marketplace .header-actions > [data-wishlist-link] {
    display: inline-flex !important;
  }

  body.page-marketplace .header-action,
  body.page-marketplace .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

/* Desktop and laptop: one full-height bar, then the category/nav row. */
@media (min-width: 1024px) {
  body.page-marketplace .header-main {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
  }

  body.page-marketplace .brand {
    width: auto;
    min-height: 0;
  }

  body.page-marketplace .brand img {
    width: auto;
    height: 36px;
    max-width: 148px;
    object-fit: contain;
  }

  body.page-marketplace .header-search {
    flex: 1 1 auto;
    width: auto;
    max-width: 540px;
    min-width: 0;
    margin: 0 16px;
  }

  body.page-marketplace .header-search input {
    font-size: 15px;
  }

  body.page-marketplace .header-actions {
    margin-left: 0;
  }

  body.page-marketplace .menu-toggle {
    display: none;
  }
}

@media (max-width: 699px) {
  body.page-marketplace .header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding-block: 8px;
  }

  body.page-marketplace .brand {
    flex: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
    min-height: 0;
  }

  body.page-marketplace .brand img {
    height: 28px;
    min-height: 0;
    width: auto;
    max-width: 120px;
    object-fit: contain;
  }

  body.page-marketplace .header-actions {
    flex: none;
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 6px;
  }

  body.page-marketplace .header-action,
  body.page-marketplace .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #f3d5e2;
    border-radius: 50%;
    background: #fff;
    color: #7a1542;
    box-shadow: none;
  }

  body.page-marketplace .header-actions .header-action svg,
  body.page-marketplace .header-actions .header-action--logo svg {
    width: 21px;
    height: 21px;
  }

  body.page-marketplace .header-search {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: none;
    height: 46px;
    margin: 2px 0 0;
    border: 1px solid #f3d5e2;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
  }

  body.page-marketplace .header-search input {
    height: 44px;
    min-width: 0;
    padding: 0 14px;
    font-size: 16px;
  }

  body.page-marketplace .header-search > button {
    width: 38px;
    height: 38px;
    margin: 0 4px 0 0;
    border-radius: 50%;
  }

  body.page-marketplace .header-search > button svg {
    width: 18px;
    height: 18px;
  }

  body.page-marketplace .announcement__inner,
  body.page-marketplace .announcement__inner span {
    max-width: none;
  }

  body.page-marketplace .m-banners__arrow {
    display: none;
  }

  body.page-marketplace .m-grid .product-card__body {
    row-gap: 4px;
    padding: 8px 8px 10px;
  }

  body.page-marketplace .m-grid .card-wish--title {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  body.page-marketplace .m-grid .product-card__title {
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body.page-marketplace .m-grid .product-card__price,
  body.page-marketplace .m-grid .product-card__details {
    grid-column: 1 / -1;
    margin: 0;
  }

  body.page-marketplace .m-grid .product-card__price {
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.3;
    white-space: normal;
  }

  body.page-marketplace .m-grid .product-card__details {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    line-height: 1.3;
  }

  body.page-marketplace .m-grid .product-card__social {
    margin-top: 2px;
  }

  body.page-marketplace .m-grid {
    display: flex;
    overflow-x: auto;
  }

  body.page-marketplace .m-grid > .product-card,
  body.page-marketplace .m-grid > .product-card:nth-child(n) {
    flex: 0 0 calc((100% - 8px) / 2);
    width: calc((100% - 8px) / 2);
    min-height: 0;
  }

  body.page-marketplace .m-list .listing-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px;
  }

  body.page-marketplace .m-list .listing-row__media,
  body.page-marketplace .m-list .listing-row__media img {
    width: 88px;
    height: 88px;
    object-fit: cover;
  }

  body.page-marketplace .m-list .listing-row__media .product-card__flags {
    gap: 2px;
    right: 3px;
    bottom: 3px;
    left: 3px;
  }

  body.page-marketplace .m-list .listing-row__media .product-card__flag {
    min-height: 0;
    max-width: 100%;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }

  body.page-marketplace .m-list .listing-row__copy {
    min-width: 0;
    overflow: hidden;
  }

  body.page-marketplace .m-list .listing-row__copy h3 {
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body.page-marketplace .m-list .listing-row__desc {
    -webkit-line-clamp: 2;
    font-size: clamp(13px, 3.2vw, 14px);
    line-height: 1.35;
  }

  body.page-marketplace .m-list .m-msg {
    min-height: 32px;
    height: 32px;
    margin-top: 6px;
  }

  body.page-marketplace .m-list .listing-row__offer {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto;
    max-width: none;
    text-align: left;
  }

  body.page-marketplace .m-list .listing-row__actions {
    flex: 1 1 160px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.page-marketplace .m-list .listing-row__price {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.3;
    white-space: normal;
  }

  body.page-marketplace .m-list .listing-row .btn,
  body.page-marketplace .m-list .listing-row__wish {
    min-height: 44px;
    height: 44px;
  }

  body.page-marketplace .m-list .listing-row .btn {
    flex: 1 1 auto;
    padding: 0 14px;
    font-size: clamp(13px, 3.4vw, 15px);
    white-space: normal;
  }

  body.page-marketplace .m-list .listing-row__wish {
    width: 44px;
    min-width: 44px;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator).page-marketplace #main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.page-marketplace .site-footer {
    padding-top: 16px;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator).page-marketplace .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  body.page-marketplace .footer-brand p,
  body.page-marketplace .footer-contact {
    margin-top: 6px;
  }

  body.page-marketplace .footer-brand p {
    font-size: 13px;
    line-height: 1.35;
  }

}

@media (max-width: 374px) {
  body.page-marketplace .m-block,
  body.page-marketplace .m-cats__row,
  body.page-marketplace .m-stores {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.page-marketplace .m-grid .product-card__title {
    font-size: 13px;
  }

  body.page-marketplace .m-grid .product-card__price {
    font-size: 15px;
  }
}

.m-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(22, 10, 16, 0.45);
}

.m-pop[hidden] {
  display: none;
}

.m-pop__card {
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(36, 20, 27, 0.16);
}

.m-pop__card p {
  margin: 0 0 16px;
  color: #161616;
  font-size: 16px;
  font-weight: 700;
}

.m-pop__card button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #7a1542;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Narrow phones: keep the logo, header icons, and search inside two rows. */
@media (max-width: 379px) {
  body.page-marketplace .header-actions {
    gap: 4px;
  }

  body.page-marketplace .header-action,
  body.page-marketplace .menu-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  body.page-marketplace .header-actions .header-action svg,
  body.page-marketplace .header-actions .header-action--logo svg {
    width: 19px;
    height: 19px;
  }
}

/* The marketplace header carries the three icons shoppers use most:
   cart, notifications and profile. Wishlist and messages live in the menu. */
body.page-marketplace .header-actions > [data-wishlist-link],
body.page-marketplace .header-actions > a[href="messages.html"] {
  display: none !important;
}

/* Category tiles step down with the screen so more categories fit a row. */
@media (max-width: 1023px) {
  body.page-marketplace .m-cats .market-cat {
    width: 64px;
  }

  body.page-marketplace .m-cats .market-cat__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
  }

  body.page-marketplace .m-cats .market-cat__icon img {
    width: 48px;
    height: 48px;
  }

  body.page-marketplace .m-cats .market-cat__icon svg {
    width: 22px;
    height: 22px;
  }

  body.page-marketplace .m-cats .market-cat__name {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  body.page-marketplace .m-cats__row {
    gap: 10px;
  }

  body.page-marketplace .m-cats .market-cat {
    width: 64px;
  }

  body.page-marketplace .m-cats .market-cat__icon {
    width: 44px;
    height: 44px;
  }

  body.page-marketplace .m-cats .market-cat__icon img {
    width: 44px;
    height: 44px;
  }

  body.page-marketplace .m-cats .market-cat__icon svg {
    width: 20px;
    height: 20px;
  }

  body.page-marketplace .m-cats .market-cat__name {
    font-size: 12px;
  }
}

@media (max-width: 379px) {
  body.page-marketplace .m-cats .market-cat {
    width: 58px;
  }

  body.page-marketplace .m-cats .market-cat__icon {
    width: 40px;
    height: 40px;
  }

  body.page-marketplace .m-cats .market-cat__icon img {
    width: 40px;
    height: 40px;
  }

  body.page-marketplace .m-cats .market-cat__icon svg {
    width: 18px;
    height: 18px;
  }

  body.page-marketplace .m-cats .market-cat__name {
    font-size: 12px;
  }
}

/* ── Marketplace stores row: the heading opens the store directory, and the
   online businesses stay in a single row of cards. ── */
body.page-marketplace .m-stores__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.page-marketplace .m-stores__head h2 a {
  color: inherit;
  text-decoration: none;
}

body.page-marketplace .m-stores__head h2 a:hover {
  color: #a31d57;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-marketplace .m-stores__all {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 10px 2px;
  color: #7a1542;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-sizing: border-box;
}

body.page-marketplace .m-stores__all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Marketplace header steps down with the screen: phones carry
   notifications, profile and the menu; tablets add the cart. ── */
@media (max-width: 699px) {
  body.page-marketplace .header-actions > .header-action--cart {
    display: none !important;
  }

  body.page-marketplace .header-main {
    gap: 6px;
    padding-block: 6px;
  }

  body.page-marketplace .header-actions {
    gap: 4px;
  }

  body.page-marketplace .brand img {
    height: 26px;
    max-width: 112px;
  }

  body.page-marketplace .header-action,
  body.page-marketplace .menu-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  body.page-marketplace .header-actions .header-action svg,
  body.page-marketplace .header-actions .header-action--logo svg {
    width: 18px;
    height: 18px;
  }

  body.page-marketplace .header-search {
    height: 42px;
    margin-top: 0;
  }

  body.page-marketplace .header-search input {
    height: 40px;
    font-size: 16px;
  }

  body.page-marketplace .header-search > button {
    width: 34px;
    height: 34px;
    margin-right: 4px;
  }
}

@media (min-width: 380px) and (max-width: 699px) {
  body.page-marketplace .header-action,
  body.page-marketplace .menu-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  body.page-marketplace .header-main {
    gap: 10px;
    min-height: 58px;
    padding-block: 6px;
  }

  body.page-marketplace .brand img {
    height: 26px;
    max-width: 112px;
  }

  body.page-marketplace .header-action,
  body.page-marketplace .menu-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  body.page-marketplace .header-actions .header-action svg,
  body.page-marketplace .header-actions .header-action--logo svg {
    width: 17px;
    height: 17px;
  }

  body.page-marketplace .header-search {
    height: 38px;
  }

  body.page-marketplace .header-search input {
    height: 36px;
    font-size: 14px;
  }
}

/* For you keeps the laptop listing-row shape on phones, and its action stays
   an outline that only fills with a light pink on hover and press. Other
   marketplace rows and shelves keep their own styles. */
body.page-marketplace [data-for-you] .listing-row__buy-btn {
  background: #ffffff;
  border: 1px solid #f0cddc;
  color: #7a1542;
  box-shadow: none;
}

body.page-marketplace [data-for-you] .listing-row__buy-btn:hover,
body.page-marketplace [data-for-you] .listing-row__buy-btn:focus-visible {
  background: #fdf0f5;
  border-color: #e8b9cc;
  color: #61102f;
  box-shadow: none;
}

body.page-marketplace [data-for-you] .listing-row__buy-btn:active {
  background: #fbe1ec;
  border-color: #e8b9cc;
  color: #4a0b23;
  box-shadow: none;
}

@media (max-width: 699px) {
  body.page-marketplace [data-rec-rail="forYou"].listing-row {
    display: flex;
    grid-template-columns: none;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__media,
  body.page-marketplace [data-rec-rail="forYou"] .listing-row__media img {
    width: clamp(84px, 25vw, 108px);
    height: clamp(90px, 27vw, 112px);
    object-fit: cover;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__copy {
    min-width: 0;
    overflow: hidden;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__copy h3 {
    font-size: clamp(14px, 3.6vw, 15px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__desc {
    font-size: 12.5px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__offer {
    grid-column: auto;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    max-width: none;
    text-align: right;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__actions {
    flex: none;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-top: auto;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__price {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.25;
    white-space: nowrap;
  }

  body.page-marketplace #main [data-rec-rail="forYou"] .btn {
    flex: none;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__wish {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
}

/* The same For-you row still has to fit a 320px phone. Shrink the thumbnail
   and action, keep the three-part laptop shape, and drop the secondary social
   line that would otherwise squeeze the title into two letters per line. */
@media (max-width: 374px) {
  body.page-marketplace [data-rec-rail="forYou"].listing-row {
    gap: 8px;
    padding: 8px;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__media,
  body.page-marketplace [data-rec-rail="forYou"] .listing-row__media img {
    width: 64px;
    height: 72px;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__copy h3 {
    font-size: 13px;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__desc {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
  }

  body.page-marketplace [data-rec-rail="forYou"] .m-msg {
    font-size: 12px;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__social {
    display: none;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__price {
    font-size: 13px;
  }

  body.page-marketplace #main [data-rec-rail="forYou"] .btn {
    min-height: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 11.5px;
  }

  body.page-marketplace [data-rec-rail="forYou"] .listing-row__wish {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
}
