/* =====================================================================
   Bidmania 2026-11 refresh: search-first header (bm-hdr-*) + home page (bmh-*)
   Loaded after marketplace-pop.css.
   ===================================================================== */

/* Header: two rows (brand · search · actions / category links) */
.bm-pop-masthead {
  height: auto;
  border-radius: 26px;
}

/* Rainbow strip: cover the whole card with the card's own corner radius and paint the
   gradient only in the top 4px, so the strip follows the rounded corners instead of a
   5px-tall bar with clamped 30px radii poking past the curve. The card keeps
   overflow: visible so the account and cart dropdowns are not clipped. */
.bm-pop-masthead::before,
.bm-pop-footer.bmf::before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  border-radius: inherit;
  background: var(--masthead-logo-bar) top / 100% 4px no-repeat;
}

.bm-pop-masthead .editorial-masthead__inner {
  height: auto;
  min-height: 88px;
  padding: 14px 22px;
}

.bm-hdr-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  margin: 0 4px;
  overflow: hidden;
  background: #f6f4f1;
  border: 1px solid rgba(55, 45, 38, 0.1);
  border-radius: 999px;
}

.bm-hdr-search:focus-within {
  border-color: #1e6670;
  box-shadow: 0 0 0 3px rgba(30, 102, 112, 0.15);
}

.bm-hdr-search__icon {
  display: flex;
  align-items: center;
  padding-left: 16px;
  color: #746d65;
}

.bm-hdr-search__icon .feather {
  width: 18px;
  height: 18px;
}

.bm-hdr-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 12px;
  color: #221e1a;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  outline: 0;
}

.bm-hdr-search select {
  flex: 0 0 auto;
  max-width: 170px;
  padding: 0 12px;
  color: #655f58;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(55, 45, 38, 0.12);
  outline: 0;
  cursor: pointer;
}

/* Account links, wish list icon, cart (design: Sign up · Sign in pill · icons · Sell) */
.bm-pop-header-actions {
  align-items: center;
}

.bm-hdr-account {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bm-pop-masthead .bm-hdr-account a.bm-hdr-account__link:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: #39342f;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bm-pop-masthead .bm-hdr-account a.bm-hdr-account__pill:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  background: #1e6670;
  border-radius: 999px;
}

.bm-pop-masthead .bm-hdr-account a.bm-hdr-icon:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #39342f;
}

.bm-pop-masthead .bm-hdr-account a:not(.btn):hover,
.bm-pop-masthead .bm-hdr-account a:not(.btn):focus {
  color: #1e6670;
}

.bm-pop-masthead .bm-hdr-account a.bm-hdr-account__pill:not(.btn):hover,
.bm-pop-masthead .bm-hdr-account a.bm-hdr-account__pill:not(.btn):focus {
  color: #fff;
  background: #164e56;
}

.bm-pop-masthead .bm-hdr-cart .cart-dropdown .btn.dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 8px;
  color: #39342f;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.bm-pop-masthead .bm-hdr-cart .cart-dropdown .btn.dropdown-toggle::after,
.bm-pop-masthead .bm-hdr-cart .cart-dropdown .badge-text {
  display: none;
}

.bm-pop-masthead .bm-hdr-cart .feather {
  width: 21px;
  height: 21px;
}

.bm-pop-masthead .bm-hdr-cart .badge-pill {
  min-width: 18px;
  padding: 3px 6px;
  color: #fff;
  font-size: 0.68rem;
  background: #e9784d;
  transform: translate(-6px, -10px);
}

.bm-pop-masthead .bm-pop-header-sell {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.bm-hdr-search button {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e6670, #2e8790);
  border: 0;
  cursor: pointer;
}

.bm-hdr-cats {
  display: flex;
  gap: 2px;
  padding: 0 14px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid rgba(55, 45, 38, 0.07);
  scrollbar-width: thin;
}

.bm-pop-masthead .bm-hdr-cats a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #5f5953;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.bm-pop-masthead .bm-hdr-cats a:not(.btn):hover,
.bm-pop-masthead .bm-hdr-cats a:not(.btn):focus {
  color: #1e6670;
}

.bm-hdr-cats::-webkit-scrollbar {
  display: none;
}

.bm-hdr-cats {
  scrollbar-width: none;
}

@media (max-width: 1199.98px) {
  .bm-pop-masthead .editorial-masthead__brand.editorial-brand {
    width: 140px;
    max-width: 140px;
  }

  .bm-hdr-search select {
    display: none;
  }

  .bm-hdr-search button {
    padding: 0 14px;
  }

  .bmf__identity {
    flex-basis: 100%;
  }

  .bmf__col {
    flex: 1 1 160px;
  }
}

/* Footer card: same width as the header card, rounded, rainbow top (design) */
@media (min-width: 992px) {
  .bm-pop-footer.editorial-footer.bmf {
    width: calc(100% - 70px);
    max-width: 1350px;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid rgba(55, 45, 38, 0.09);
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(43, 36, 31, 0.06);
  }
}

.bmf > .container {
  padding: 0;
}

.bmf__main {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding: 34px 28px 30px;
}

.bmf__identity {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bmf__brand img {
  display: block;
  width: auto;
  height: 42px;
}

.bmf__identity p {
  margin: 0;
  color: #746d65;
  font-size: 0.92rem;
  font-weight: 600;
}

.bmf__col {
  flex: 0 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.bmf__heading {
  color: #221e1a;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bmf .bmf__col a:not(.btn) {
  color: #5f5953;
  font-weight: 700;
  text-decoration: none;
}

.bmf .bmf__col a:not(.btn):hover,
.bmf .bmf__col a:not(.btn):focus {
  color: #1e6670;
}

.bmf__connect {
  flex: 1 1 240px;
  min-width: 0;
  text-align: right;
}

.bmf__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 28px 22px;
  color: #746d65;
  font-size: 0.84rem;
  font-weight: 600;
  border-top: 1px solid rgba(55, 45, 38, 0.08);
}

/* Home page */
/* Same width as the header and footer shells (marketplace-pop.css: 1380px). */
main .container.bmh {
  max-width: 1380px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 15px 0;
  color: #221e1a;
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bmh h1,
.bmh h2 {
  font-family: inherit;
  color: #221e1a;
}

.bmh-eyebrow,
.bmh-mono,
.bmh-tag {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.bmh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1e6670;
  font-size: 0.74rem;
}

/* Beat the theme's `.theme-gray a:not(.btn)` link colour inside the home page. */
.bmh a.bmh-feature__title-link:not(.btn),
.bmh .bmh-feature__head h2 a:not(.btn) {
  color: inherit;
  text-decoration: none;
}

.bmh .bmh-sell__points a:not(.btn) {
  color: #1e6670;
  font-weight: 800;
  text-decoration: underline;
}

.bmh a.bmh-cat:not(.btn),
.bmh a.bmh-card__title:not(.btn) {
  color: #221e1a;
}

.bmh-eyebrow--muted {
  color: #746d65;
}

.bmh-mono {
  color: #746d65;
  font-size: 0.7rem;
}

.bmh-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9784d;
  box-shadow: 0 0 0 4px rgba(233, 120, 77, 0.18);
}

.bmh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bmh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bmh-btn:hover,
.bmh-btn:focus {
  transform: translateY(-1px);
}

.bmh-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #1e6670, #2e8790);
  box-shadow: 0 10px 22px rgba(30, 102, 112, 0.22);
}

.bmh-btn--coral {
  color: #fff !important;
  background: linear-gradient(135deg, #c95a32, #e26940);
  box-shadow: 0 10px 22px rgba(233, 120, 77, 0.25);
}

.bmh-btn--quiet {
  color: #a7482d !important;
  background: #fff;
  border: 1px solid rgba(233, 120, 77, 0.3);
  box-shadow: 0 8px 18px rgba(233, 120, 77, 0.08);
}

.bmh-btn--plain {
  color: #221e1a !important;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.16);
}

.bmh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  color: #1e6670 !important;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none !important;
}

/* Hero */
.bmh-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 56px 5%;
  overflow: hidden;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 32px;
  background:
    radial-gradient(circle at 83% 22%, rgba(244, 203, 101, 0.3), transparent 24%),
    radial-gradient(circle at 71% 75%, rgba(103, 189, 147, 0.2), transparent 26%),
    linear-gradient(125deg, #fffdfb 0%, #fff8ee 52%, #eef8f5 100%);
  box-shadow: 0 24px 62px rgba(43, 36, 31, 0.1);
}

.bmh-hero::before {
  content: "";
  position: absolute;
  top: 64px;
  bottom: 64px;
  left: 0;
  width: 6px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #e9784d, #f4cb65 38%, #67bd93 64%, #4b9db4);
}

.bmh-hero__copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bmh-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.bmh-hero h1 em {
  color: #d85f35;
  font-style: normal;
}

.bmh-hero__lede {
  max-width: 31rem;
  margin: 0;
  color: #5c554f;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
}

.bmh-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.bmh-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #39342f;
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 999px;
}

.bmh-badges svg {
  color: #1e6670;
}

/* Hero feature card */
.bmh-feature {
  position: relative;
  flex: 1 1 380px;
  min-width: 0;
  max-width: 500px;
  margin: 0 auto;
  padding: 18px 0 10px 18px;
}

.bmh-feature__back {
  position: absolute;
  top: 0;
  right: 40px;
  bottom: 40px;
  left: 0;
  border-radius: 28px;
  background: linear-gradient(150deg, #4b9db4, #67bd93);
  opacity: 0.85;
  transform: rotate(-5deg);
}

.bmh-feature__tag {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #a7482d;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(43, 36, 31, 0.12);
}

.bmh-feature__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: #fffdfb;
  border: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 28px;
  box-shadow: 0 26px 50px -18px rgba(43, 36, 31, 0.35);
}

.bmh-feature__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: #f6f4f1;
}

.bmh-feature__media img,
.bmh-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmh-feature__media--empty {
  flex-direction: column;
  gap: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  background:
    radial-gradient(circle at 70% 30%, rgba(244, 203, 101, 0.55), transparent 45%),
    linear-gradient(150deg, #f2a15f, #e9784d);
}

.bmh-feature__media--empty img {
  width: 46%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(120, 50, 20, 0.25));
  transform: rotate(-4deg);
}

.bmh-feature__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.bmh-feature__head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bmh-feature__head h2 a {
  color: inherit;
  text-decoration: none;
}

.bmh-feature__note {
  margin: 0;
  padding: 0 4px;
  color: #5c554f;
  font-weight: 600;
  line-height: 1.5;
}

.bmh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

.bmh-stats > div {
  padding: 10px 12px;
  background: #f6f4f1;
  border-radius: 14px;
}

.bmh-stats small {
  display: block;
  color: #746d65;
  font-size: 0.76rem;
  font-weight: 700;
}

.bmh-stats strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bmh-stats .bmh-stats__time {
  background: #fff1df;
}

.bmh-stats .bmh-stats__time small {
  color: #8a3a1f;
}

.bmh-stats .bmh-stats__time strong {
  color: #a7482d;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 500;
}

.bmh-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bmh-feature__actions .bmh-btn {
  flex: 1 1 150px;
  min-height: 50px;
}

/* Panels */
.bmh-panel {
  padding: 34px 30px;
  background: #fffdfb;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(43, 36, 31, 0.06);
}

.bmh-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.bmh-panel__head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bmh-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.bmh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bmh-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: #39342f !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  background: #f6f4f1;
  border-radius: 999px;
}

.bmh-pill.is-active {
  color: #fff !important;
  font-weight: 800;
  background: #1e6670;
}

/* Listing cards */
.bmh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.bmh-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(43, 36, 31, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bmh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(43, 36, 31, 0.09);
}

.bmh-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f6f4f1;
}

.bmh-card__media img,
.bmh-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmh-card__chip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 5px 10px;
  color: #221e1a;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  background: #fff;
  border-radius: 999px;
}

.bmh-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.bmh-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: #221e1a !important;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bmh-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.bmh-card__price strong {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bmh-card__price span {
  color: #746d65;
  font-size: 0.8rem;
  font-weight: 700;
}

.bmh-card__time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a7482d;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

/* Founding sellers (empty marketplace) */
.bmh-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.bmh-launch__copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bmh-launch__copy p {
  max-width: 36rem;
  margin: 0;
  color: #5c554f;
  font-weight: 600;
  line-height: 1.6;
}

.bmh-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #8a3a1f;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: #fff1df;
  border-radius: 999px;
}

.bmh-steps {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bmh-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #f6f4f1;
  border-radius: 18px;
}

.bmh-steps li > span {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  background: #1e6670;
  border-radius: 50%;
}

.bmh-steps strong,
.bmh-steps small {
  display: block;
}

.bmh-steps strong {
  font-weight: 800;
}

.bmh-steps small {
  color: #746d65;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Category tiles */
.bmh-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.bmh-cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 10px 14px;
  color: #221e1a !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bmh-cat:hover,
.bmh-cat:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(43, 36, 31, 0.08);
}

.bmh-cat__art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.bmh-cat__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  font-weight: 800;
}

.bmh-cat__name span {
  color: #1e6670;
}

.bmh-cat__art img {
  width: 62%;
  height: auto;
  transition: transform 0.2s ease;
}

.bmh-cat:hover .bmh-cat__art img,
.bmh-cat:focus .bmh-cat__art img {
  transform: translateY(-3px) rotate(-3deg);
}

/* =====================================================================
   Members area (bmm-*)
   ===================================================================== */
main.container:has(.bmm) {
  max-width: 1380px;
}

.bmm {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
  margin-top: 8px;
  color: #221e1a;
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bmm h1,
.bmm h2 {
  font-family: inherit;
  color: #221e1a;
}

.bmm-side {
  flex: 0 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #fffdfb;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(43, 36, 31, 0.06);
}

.bmm-main {
  flex: 999 1 600px;
  min-width: 0;
}

.bmm-id {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 16px;
  border-bottom: 1px solid rgba(55, 45, 38, 0.08);
}

.bmm-id__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1e6670, #2e8790);
  border-radius: 50%;
}

.bmm-id__text {
  min-width: 0;
}

.bmm-id__text strong {
  display: block;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bmm-id__text small {
  color: #746d65;
  font-size: 0.82rem;
  font-weight: 700;
}

.bmm-menu__toggle {
  display: none;
}

.bmm-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bmm-nav__group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 12px;
}

.bmm-nav__heading {
  margin: 0 12px 4px;
  color: #746d65;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bmm .bmm-nav a:not(.btn),
.bmm .bmm-nav summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #4f4842;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
}

.bmm .bmm-nav a.bmm-nav__top:not(.btn) {
  min-height: 44px;
  color: #39342f;
  font-weight: 800;
  border-radius: 14px;
}

.bmm .bmm-nav a:not(.btn):hover,
.bmm .bmm-nav a:not(.btn):focus,
.bmm .bmm-nav summary:hover {
  color: #1e6670;
  background: #f3eee7;
}

.bmm .bmm-nav a.is-active:not(.btn) {
  color: #fff;
  font-weight: 800;
  background: #1e6670;
}

.bmm .bmm-nav a.bmm-nav__link--sub:not(.btn) {
  padding-left: 26px;
  font-size: 0.9rem;
}

.bmm-nav__sub > summary {
  list-style: none;
  justify-content: space-between;
}

.bmm-nav__sub > summary::-webkit-details-marker {
  display: none;
}

.bmm-nav__sub > summary::after {
  content: "+";
  color: #746d65;
  font-weight: 800;
}

.bmm-nav__sub[open] > summary::after {
  content: "–";
}

.bmm .bmm-nav a.bmm-nav__signout:not(.btn) {
  margin-top: 12px;
  color: #a7482d;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .bmm-side {
    flex-basis: 100%;
  }

  .bmm-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 12px;
    color: #221e1a;
    font-weight: 800;
    list-style: none;
    background: #f6f4f1;
    border-radius: 14px;
    cursor: pointer;
  }

  .bmm-menu__toggle::-webkit-details-marker {
    display: none;
  }

  .bmm-menu__toggle::after {
    content: "+";
    font-weight: 900;
  }

  .bmm-menu[open] > .bmm-menu__toggle::after {
    content: "–";
  }

  .bmm-menu[open] > .bmm-menu__toggle {
    margin-bottom: 8px;
  }
}

/* Inner pages: content card */
.bmm-card {
  padding: 28px 30px;
  background: #fffdfb;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(43, 36, 31, 0.06);
}

/* Dashboard */
.bmm-dash {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bmm-welcome {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(244, 203, 101, 0.32), transparent 26%),
    linear-gradient(125deg, #fffdfb 0%, #fff8ee 55%, #eef8f5 100%);
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(43, 36, 31, 0.08);
}

.bmm-welcome::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 0;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #e9784d, #f4cb65 38%, #67bd93 64%, #4b9db4);
}

.bmm-welcome__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bmm-welcome h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bmm-welcome p {
  margin: 0;
  color: #5c554f;
  font-weight: 600;
  line-height: 1.55;
}

.bmm-welcome p strong {
  color: #a7482d;
}

.bmm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.bmm a.bmm-stat:not(.btn) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  color: #221e1a;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(43, 36, 31, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bmm a.bmm-stat:not(.btn):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(43, 36, 31, 0.09);
}

.bmm-stat strong {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bmm-stat small {
  color: #746d65;
  font-size: 0.84rem;
  font-weight: 700;
}

.bmm-stat small.is-alert {
  color: #a7482d;
}

.bmm-panel {
  padding: 28px;
  background: #fffdfb;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(43, 36, 31, 0.06);
}

.bmm-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bmm-panel__head > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bmm-panel h2,
.bmm-account h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.bmm-eyebrow--alert {
  color: #a7482d;
}

.bmm-todo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bmm-todo li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f6f4f1;
  border-radius: 18px;
}

.bmm-todo__mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-weight: 900;
  border-radius: 12px;
}

.bmm-todo__text {
  flex: 1 1 240px;
  min-width: 0;
}

.bmm-todo__text strong,
.bmm-todo__text small {
  display: block;
}

.bmm-todo__text strong {
  font-weight: 800;
}

.bmm-todo__text small {
  color: #746d65;
  font-size: 0.9rem;
  font-weight: 600;
}

.bmm .bmm-todo__action {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.bmm-empty {
  margin: 0;
  padding: 16px;
  color: #5c554f;
  font-weight: 700;
  background: #f6f4f1;
  border-radius: 18px;
}

.bmm-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
}

.bmm-activity {
  flex: 3 1 420px;
  min-width: 0;
}

.bmm-tabs {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.bmm .bmm-tabs .nav-link.bmh-pill {
  border: 0;
}

.bmm .bmm-tabs .nav-link.bmh-pill.active {
  color: #fff !important;
  font-weight: 800;
  background: #1e6670;
}

.bmm-tab-content .table {
  margin-bottom: 12px;
}

.bmm-account {
  flex: 2 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: linear-gradient(140deg, #ffe2cf 0%, #fff1c9 55%, #d8f0e5 100%);
  border: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 30px;
}

.bmm-account__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
}

.bmm-account__status {
  display: block;
}

.bmm .bmm-account a:not(.btn):not(.bmh-btn) {
  color: #1e6670;
  font-weight: 800;
}

.bmm-ok {
  color: #24684f;
  font-weight: 800;
}

.bmm-account__credit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
}

.bmm-account__credit label {
  margin: 0;
  font-weight: 800;
}

.bmm-account__credit-row {
  display: flex;
  gap: 8px;
}

.bmm-account__credit-row .form-control {
  min-width: 0;
  border-radius: 999px;
}

.bmm-account__credit-row .bmh-btn {
  flex: 0 0 auto;
  min-height: 44px;
}

.bmm-account__store {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 767.98px) {
  .bmm-welcome,
  .bmm-panel,
  .bmm-account,
  .bmm-card {
    padding: 22px 18px;
    border-radius: 24px;
  }
}

/* =====================================================================
   Shared components on legacy pages: pills, buttons, badges (bmx)
   ===================================================================== */
.editorial-listing-details .nav-pills .nav-link,
.bmm-card .nav-pills .nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #39342f !important;
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  background: #f6f4f1;
  border-radius: 999px;
}

.editorial-listing-details .nav-pills .nav-link.active,
.bmm-card .nav-pills .nav-link.active {
  color: #fff !important;
  font-weight: 800;
  background: #1e6670;
}

.editorial-listing-details .nav-pills,
.bmm-card .nav-pills {
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 0 !important;
  border: 0;
}

.editorial-listing-details .btn,
.bmm-card .btn {
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: none;
}

.editorial-listing-details .btn-primary,
.editorial-listing-details .btn-success,
.bmm-card .btn-primary,
.bmm-card .btn-success {
  color: #fff !important;
  background: linear-gradient(135deg, #1e6670, #2e8790);
  border: 0;
}

.editorial-listing-details .btn-default,
.editorial-listing-details .btn-secondary,
.editorial-listing-details .btn-light,
.bmm-card .btn-default,
.bmm-card .btn-secondary,
.bmm-card .btn-light,
.bmm-card .btn-outline-secondary {
  color: #221e1a !important;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.16);
}

.bmm-card .btn-warning,
.bmm-card .btn-gold {
  color: #5c3d06 !important;
  background: #fff1c9;
  border: 1px solid rgba(122, 91, 18, 0.25);
}

.bmm-card .btn-danger {
  color: #a7482d !important;
  background: #fff;
  border: 1px solid rgba(167, 72, 45, 0.35);
}

.editorial-listing-details .badge,
.bmm-card .badge {
  padding: 5px 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.editorial-listing-details .badge-light,
.bmm-card .badge-light {
  color: #746d65;
  background: #f6f4f1;
}

.editorial-listing-details .badge-open,
.bmm-card .badge-open,
.bmm-card .badge-success {
  color: #24684f;
  background: #ddf1e7;
}

.bmm-card .badge-closed,
.bmm-card .badge-danger {
  color: #a7482d;
  background: #ffe6d8;
}

.bmm-card .badge-warning,
.bmm-card .badge-scheduled {
  color: #7a5b12;
  background: #fff1c9;
}

/* =====================================================================
   Listing page (editorial-listing-details)
   ===================================================================== */
main.container:has(.editorial-listing-details) {
  max-width: 1380px;
}

.editorial-listing-details {
  margin-top: 8px;
  color: #221e1a;
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.editorial-listing-details__masthead {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editorial-listing-details .breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 700;
  background: transparent;
}

.editorial-listing-details .breadcrumb a {
  color: #5f5953 !important;
}

.editorial-listing-details__gallery,
.editorial-listing-details__summary-card,
.editorial-listing-details__content-card {
  padding: 22px;
  background: #fffdfb;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(43, 36, 31, 0.06);
}

.editorial-listing-details__gallery .img-thumbnail {
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 14px;
}

.editorial-listing-details .title {
  margin: 4px 0 10px;
  color: #221e1a;
  font-family: inherit;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.editorial-listing-details .short-description {
  color: #746d65;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.editorial-listing-details .editorial-listing-details__price,
.editorial-listing-details .editorial-listing-details__price .text-buyout {
  color: #221e1a !important;
  font-family: inherit;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.editorial-listing-details .editorial-key-fact dt,
.editorial-listing-details .editorial-data-list dt {
  color: #746d65;
  font-weight: 700;
}

.editorial-listing-details .editorial-key-fact dd,
.editorial-listing-details .editorial-data-list dd {
  color: #221e1a;
  font-weight: 700;
}

.editorial-listing-details .editorial-tab-pane ul {
  padding-left: 1.1rem;
}

.editorial-listing-details .editorial-tab-pane li {
  margin-bottom: 4px;
}

.editorial-listing-details .editorial-tab-pane a:not(.btn) {
  color: #1e6670;
}

/* =====================================================================
   Members area tables (My listings, purchases, sales, ...)
   ===================================================================== */
.bmm-card .navbar .form-control,
.bmm-card .form-inline .form-control,
.bmm-card .form-inline select {
  min-height: 42px;
  font-weight: 600;
  border: 1px solid rgba(55, 45, 38, 0.14);
  border-radius: 999px;
}

.bmm-card .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.bmm-card .table thead th,
.bmm-card .table .thead-light th {
  padding: 4px 14px;
  color: #746d65;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
}

.bmm-card .table tbody td {
  padding: 16px 14px;
  vertical-align: middle;
  background: #fff;
  border-top: 1px solid rgba(55, 45, 38, 0.08);
  border-bottom: 1px solid rgba(55, 45, 38, 0.08);
}

.bmm-card .table tbody td:first-child {
  border-left: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 18px 0 0 18px;
}

.bmm-card .table tbody td:last-child {
  border-right: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 0 18px 18px 0;
}

.bmm-card .table-hover tbody tr:hover td {
  background: #fffaf4;
}

.bmm-card .media img,
.bmm-card .media .img-md {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f6f4f1;
  border-radius: 12px;
}

.bmm-card .media-body h6 {
  gap: 12px;
  font-family: inherit;
  font-size: 1rem;
}

.bmm-card .media-body h6 a {
  color: #221e1a !important;
  font-weight: 800;
  line-height: 1.3;
}

.bmm-card .media-body .au-price {
  color: #221e1a;
  font-weight: 900;
  white-space: nowrap;
}

.bmm-card .media-body small,
.bmm-card .media-body .dl-variable {
  color: #746d65;
  font-size: 0.82rem;
}

.bmm-card .buttons-sticky-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 253, 251, 0.96);
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 18px;
  box-shadow: 0 -8px 24px rgba(43, 36, 31, 0.06);
}

.bmm-card .pagination .page-link {
  color: #39342f;
  border: 0;
  border-radius: 999px;
}

.bmm-card .pagination .active .page-link {
  color: #fff;
  background: #1e6670;
}

/* =====================================================================
   Category / search results (editorial-browse)
   ===================================================================== */
main.container:has(.editorial-browse) {
  max-width: 1380px;
}

.editorial-browse {
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Headline: readable size, dark links instead of Bootstrap blue */
.editorial-browse__headline h1 {
  margin: 4px 0 0;
  color: #221e1a;
  font-family: inherit;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.editorial-browse__headline h1 a,
.editorial-browse__headline h1 a:not(.btn) {
  color: #221e1a !important;
  text-decoration: none;
}

.editorial-browse__headline h1 a:hover {
  color: #1e6670 !important;
}

/* Toolbar: result count + sort / page-size as quiet pills */
.editorial-browse__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editorial-browse__results-copy {
  color: #746d65;
  font-weight: 700;
}

.editorial-browse__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.editorial-browse .editorial-filter-group .btn,
.editorial-browse__controls .btn {
  min-height: 40px;
  padding: 0 14px;
  color: #221e1a !important;
  font-size: 0.86rem;
  font-weight: 800;
  background: #fff !important;
  border: 1px solid rgba(55, 45, 38, 0.16) !important;
  box-shadow: none !important;
}

.editorial-browse .editorial-filter-group .btn:first-child {
  border-radius: 999px 0 0 999px;
}

.editorial-browse .editorial-filter-group .btn:last-child {
  border-radius: 0 999px 999px 0;
}

.editorial-browse .editorial-filter-group .btn:only-child,
.editorial-browse__controls > .btn {
  border-radius: 999px;
}

.editorial-browse__controls .btn.active,
.editorial-browse__controls .btn[aria-pressed="true"] {
  color: #fff !important;
  background: #1e6670 !important;
  border-color: #1e6670 !important;
}

/* Results grid: 4 per row on wide screens, real spacing between rows */
.editorial-browse__listings .listings-cards > .card-grid {
  margin-bottom: 18px;
}

@media (min-width: 1200px) {
  .editorial-browse__listings .listings-cards > .card-grid {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.editorial-browse__listings .listing-card {
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
}

.editorial-browse__listings .listing-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
}

.editorial-browse__listings .listing-card .card-title {
  margin: 0;
  min-height: 2.6em;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.editorial-browse__listings .listing-card .card-title a,
.editorial-browse__listings .listing-card .card-title a:not(.btn) {
  display: -webkit-box;
  overflow: hidden;
  color: #221e1a !important;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.editorial-browse__listings .listing-card .card-short-description:empty {
  display: none;
}

.editorial-browse__listings .listing-card .price,
.editorial-browse__listings .listing-card .text-buyout {
  color: #221e1a !important;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.editorial-browse__listings .listing-card .card-footer {
  margin-top: auto;
  padding-top: 4px;
  background: transparent;
  border: 0;
}

.editorial-browse__listings .listing-card .card-footer .btn {
  width: 100%;
  min-height: 42px;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e6670, #2e8790) !important;
  border: 0 !important;
  border-radius: 999px;
}

/* The old theme hides button labels on small screens; keep "Add to Cart" readable on the full-width button. */
.editorial-browse__listings .listing-card .card-footer .btn .button-text {
  display: inline !important;
  margin-left: 6px;
}

/* Filter sidebar */
.editorial-sidebar-filters .nav-dropdown-toggle {
  color: #221e1a !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editorial-sidebar-filters ul.overflow-y {
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
}

.editorial-sidebar-filters .form-check,
.editorial-sidebar-filters ul.overflow-y li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editorial-sidebar-filters .form-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #39342f;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.editorial-sidebar-filters .form-check {
  padding-left: 0;
}

/* Bootstrap absolutely positions .form-check-input; keep it in the flow next to its label. */
.editorial-sidebar-filters input[type="checkbox"],
.editorial-sidebar-filters .form-check-input {
  position: static;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1e6670;
}

.editorial-sidebar-filters a:not(.btn):not(.nav-dropdown-toggle) {
  color: #1e6670 !important;
  font-weight: 700;
}

.editorial-sidebar-filters li.nav-item:has(> input[name^="price"]),
.editorial-sidebar-filters li.nav-item:has(> input.input-tiny) {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #746d65;
  font-weight: 700;
}

.editorial-sidebar-filters input.input-tiny {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 42px;
  border-radius: 12px;
}

.editorial-sidebar-filters select.form-control {
  height: 42px;
  border-radius: 12px;
}

.editorial-sidebar-filters .btn,
.editorial-browse__sidebar .btn-primary {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
}

/* All-categories page (bmc-*): same width as the header card. */
main.container:has(.bmc) {
  max-width: 1380px;
}

/* All-categories page (bmc-*) */
.bmc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bmc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(43, 36, 31, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bmc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(43, 36, 31, 0.09);
}

.bmc-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  margin: 8px 8px 0;
  border-radius: 16px;
}

.bmc-card__art img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.bmc-card:hover .bmc-card__art img {
  transform: translateY(-3px) rotate(-3deg);
}

.bmc-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.bmc-card__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bmc .bmc-card__title a:not(.btn) {
  color: #221e1a;
  text-decoration: none;
}

.bmc-card__title small {
  color: #746d65;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.bmc-card__subs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bmc .bmc-card__subs a:not(.btn) {
  color: #5f5953;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.bmc .bmc-card__subs a:not(.btn):hover,
.bmc .bmc-card__subs a:not(.btn):focus,
.bmc .bmc-card__title a:not(.btn):hover {
  color: #1e6670;
}

.bmc .bmc-card__more:not(.btn) {
  margin-top: auto;
  padding-top: 4px;
  color: #1e6670;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .bmc-card,
  .bmc-card__art img,
  .bmh-cat__art img {
    transition: none;
  }

  .bmc-card:hover,
  .bmc-card:hover .bmc-card__art img,
  .bmh-cat:hover .bmh-cat__art img {
    transform: none;
  }
}

.bmh-tone--coral { color: #a7482d; background: #ffe6d8; }
.bmh-tone--blue { color: #2f6e80; background: #ddeff4; }
.bmh-tone--violet { color: #5a4a80; background: #ece6f6; }
.bmh-tone--gold { color: #7a5b12; background: #fff1c9; }
.bmh-tone--mint { color: #24684f; background: #ddf1e7; }
.bmh-tone--sky { color: #3a5a7c; background: #e4ecf6; }

/* Fair bidding */
.bmh-fair {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 28px;
  background: linear-gradient(125deg, #fffdfb 0%, #fff8ee 60%, #eef8f5 100%);
}

.bmh-fair__copy {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bmh-fair__copy p {
  max-width: 26rem;
  margin: 0;
  color: #5c554f;
  font-weight: 600;
  line-height: 1.6;
}

.bmh-fair__steps {
  flex: 2 1 540px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.bmh-fair__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 22px;
}

.bmh-fair__step strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.bmh-fair__step small {
  color: #746d65;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.bmh-fair__step--clock {
  color: #fff;
  background: #1e6670;
  border-color: #1e6670;
}

.bmh-fair__step--clock .bmh-mono {
  color: #cde6e3;
}

.bmh-fair__step--clock small {
  color: #e3f1ef;
}

.bmh-fair__clock {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 2rem !important;
  font-weight: 500 !important;
  line-height: 1;
}

/* Seller pitch */
.bmh-sell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 28px;
  padding: 40px 34px;
  background: linear-gradient(110deg, #ffe2cf 0%, #fff1c9 45%, #d8f0e5 100%);
  border: 1px solid rgba(55, 45, 38, 0.08);
  border-radius: 30px;
}

.bmh-sell__mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: #e9784d;
  border-radius: 50%;
}

.bmh-sell__copy {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bmh-sell__copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.bmh-sell__copy p {
  max-width: 32rem;
  margin: 0;
  color: #4f4842;
  font-weight: 600;
  line-height: 1.6;
}

.bmh-sell__copy .bmh-eyebrow--muted {
  color: #5f5953;
}

.bmh-sell__points {
  flex: 1 1 320px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .bmh-sell__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bmh-sell__points li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
}

.bmh-sell__points strong,
.bmh-sell__points small {
  display: block;
}

.bmh-sell__points strong {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.bmh-sell__points small {
  color: #5f5953;
  font-size: 0.84rem;
  font-weight: 700;
}

.bmh-sell__points a {
  color: #1e6670;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .bmh-hero {
    padding: 40px 22px;
  }

  .bmh-panel,
  .bmh-sell {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .bmh-feature {
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bmh-btn,
  .bmh-card,
  .bmh-cat {
    transition: none;
  }

  .bmh-btn:hover,
  .bmh-card:hover,
  .bmh-cat:hover {
    transform: none;
  }
}

/* =====================================================================
   Site-wide page width + page headline
   Every page uses the same 1380px width as the header card.
   ===================================================================== */
main.container {
  max-width: 1380px;
}

@media (max-width: 767.98px) {
  /* Bootstrap rows use -15px gutters; matching padding stops the 1px sideways scroll on phones. */
  main.container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.editorial-section-heading h1 {
  margin: 0;
  color: #221e1a;
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* =====================================================================
   Page card (bm-card-page): forms, help/policy pages, fees, stores,
   feedback, cart and 404 sit on one clean white card.
   ===================================================================== */
main.bm-card-page {
  margin-top: 22px;
  margin-bottom: 8px;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4.5vw, 56px) clamp(28px, 4vw, 52px);
  color: #3b3530;
  font-family: "Nunito Sans", Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid rgba(55, 45, 38, 0.09);
  border-radius: 26px;
  box-shadow: 0 14px 38px rgba(43, 36, 31, 0.06);
}

main.bm-card-page > .editorial-section-heading:first-child {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid #efe9e3;
}

main.bm-card-page a:not(.btn) {
  color: #1e6670;
}

main.bm-card-page a:not(.btn):hover,
main.bm-card-page a:not(.btn):focus {
  color: #144c54;
}

/* Readable line length for text content */
main.bm-card-page > p,
main.bm-card-page > ul,
main.bm-card-page > ol,
main.bm-card-page > h2,
main.bm-card-page > h3,
main.bm-card-page > h4,
main.bm-card-page > h5,
main.bm-card-page > dl,
main.bm-card-page--prose > div:not(.editorial-section-heading) {
  max-width: 860px;
}

main.bm-card-page p,
main.bm-card-page li {
  line-height: 1.7;
}

main.bm-card-page h2,
main.bm-card-page h3,
main.bm-card-page h4,
main.bm-card-page h5 {
  color: #221e1a;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: -0.01em;
}

main.bm-card-page h2 {
  margin: 34px 0 10px;
  font-size: 1.4rem;
}

main.bm-card-page h3 {
  margin: 24px 0 6px;
  font-size: 1.08rem;
}

main.bm-card-page h4 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

main.bm-card-page h5,
main.bm-card-page .subtitle {
  margin: 28px 0 12px;
  color: #8a8179;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main.bm-card-page > .editorial-section-heading + h2,
main.bm-card-page > .editorial-section-heading + h3,
main.bm-card-page > .editorial-section-heading + h4 {
  margin-top: 0;
}

/* Section headings inside content (e.g. "New Users", "Open a Store") */
main.bm-card-page .editorial-section-heading--compact h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* Forms: one tidy column, labels on the left on desktop, stacked on phones */
main.bm-card-page form .form-group.row {
  max-width: 860px;
  margin-bottom: 18px;
}

main.bm-card-page .col-form-label {
  color: #3b3530;
  font-weight: 800;
}

main.bm-card-page .form-control {
  min-height: 44px;
  color: #221e1a;
  border: 1px solid #ddd5cd;
  border-radius: 12px;
  box-shadow: none;
}

main.bm-card-page .form-control:focus {
  border-color: #2e8790;
  box-shadow: 0 0 0 3px rgba(46, 135, 144, 0.15);
}

main.bm-card-page .col-form-input .form-control,
main.bm-card-page .col-form-input .password-eye,
main.bm-card-page form .form-group > div > .form-control {
  width: 100%;
  max-width: 480px;
}

main.bm-card-page .form-text {
  max-width: 560px;
  margin-top: 6px;
  color: #857b72 !important;
  font-size: 0.8rem;
  line-height: 1.5;
}

main.bm-card-page .form-check {
  padding-left: 0;
}

main.bm-card-page .form-check-input {
  position: static;
  margin: 0 8px 0 0;
  vertical-align: -1px;
}

main.bm-card-page .form-check-label {
  color: #3b3530;
}

main.bm-card-page .btn-lg,
main.bm-card-page input[type="submit"].btn {
  min-width: 160px;
  border-radius: 999px;
  font-weight: 800;
}

/* Sign-in page: fixed-width form column */
main.bm-card-page .form-sign-in {
  max-width: 440px;
}

main.bm-card-page .form-sign-in .form-label-group {
  margin-bottom: 14px;
}

/* Definition lists (site fees, seller details) */
main.bm-card-page dl.row dt {
  color: #3b3530;
  font-weight: 800;
}

main.bm-card-page dl.row dt,
main.bm-card-page dl.row dd {
  margin-bottom: 0;
  padding-top: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid #f2ede8;
}

/* Tables (feedback, cart) */
main.bm-card-page .table {
  color: #3b3530;
}

main.bm-card-page .table th,
main.bm-card-page .table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-color: #f0eae4;
}

main.bm-card-page .table thead th,
main.bm-card-page .table caption {
  color: #8a8179;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main.bm-card-page .nav-pills .nav-link {
  color: #3b3530;
  font-weight: 800;
  border-radius: 999px;
}

main.bm-card-page .nav-pills .nav-link.active {
  color: #fff;
  background: #1e6670;
}

main.bm-card-page .btn-default,
main.bm-card-page .btn-outline-secondary {
  color: #221e1a;
  background: #fff;
  border: 1px solid #ddd5cd;
  border-radius: 999px;
  font-weight: 800;
}

main.bm-card-page .navbar .form-control {
  max-width: 280px;
}

@media (max-width: 991.98px) {
  main.bm-card-page .col-form-label {
    padding-bottom: 4px;
  }
}

@media (max-width: 767.98px) {
  main.bm-card-page {
    margin-top: 0;
    border-radius: 20px;
  }

  /* Wide tables scroll inside the card instead of pushing the page sideways */
  main.bm-card-page .table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  main.bm-card-page .col-form-input .form-control,
  main.bm-card-page .col-form-input .password-eye {
    max-width: none;
  }
}

/* =====================================================================
   Trading card game catalog (bm-catalog-*): full width, readable text
   ===================================================================== */
.bm-catalog-page {
  padding-top: 6px;
}

.bm-catalog-shell {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.bm-catalog-breadcrumbs {
  margin-left: 4px;
  font-size: 0.8rem;
}

@media (min-width: 1200px) {
  .bm-catalog-game-grid,
  .bm-catalog-set-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

.bm-catalog-game__copy small,
.bm-catalog-set__topline small,
.bm-catalog-set__topline b,
.bm-catalog-product__body > small {
  font-size: 0.66rem;
}

.bm-catalog-game__copy strong {
  display: -webkit-box;
  font-size: 0.98rem;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bm-catalog-game__copy span,
.bm-catalog-set > span,
.bm-catalog-product__body > span {
  font-size: 0.76rem;
}

.bm-catalog-set > strong {
  font-size: 1.08rem;
}

.bm-catalog-set > em,
.bm-catalog-product__actions a {
  font-size: 0.8rem;
}

.bm-catalog-product__body h3 {
  font-size: 0.95rem;
}

.bm-catalog-section-head p {
  font-size: 0.92rem;
}

.bm-catalog-section-head > div > span,
.bm-catalog-scoreboard__status,
.bm-catalog-scoreboard > small,
.bm-catalog-scoreboard__stats span {
  font-size: 0.68rem;
}

.bm-catalog-handoff p {
  font-size: 0.9rem;
}

/* After a game is chosen, keep the hero short so the sets/products are in view */
.bm-catalog-hero--compact {
  grid-template-columns: 1fr;
  min-height: 0;
  padding-top: 30px;
  padding-bottom: 30px;
}

.bm-catalog-hero--compact .bm-catalog-scoreboard,
.bm-catalog-hero--compact .bm-catalog-hero__copy > p,
.bm-catalog-hero--compact .bm-catalog-hero__actions {
  display: none;
}

.bm-catalog-hero--compact h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* Marketplace preview pages fill the same width */
main .container.bm-marketplace-shell,
main .container.bm-listing-shell {
  max-width: none;
}

.bm-catalog-hero--compact::before {
  top: 24px;
  height: calc(100% - 48px);
}
