/* NexMods — clean catalog / category page.
   Scoped to .nmc.nmx (catalog snippet) so it overrides the legacy nmc rules in nexmods-app.css. */

html#nm .nmc.nmx {
  --nmx-surface: #131317;
  --nmx-line: rgba(255, 255, 255, .07);
  --nmx-line-2: rgba(255, 255, 255, .12);
  --nmx-text: #f5f5f7;
  --nmx-text-2: #a1a1aa;
  --nmx-text-3: #71717a;
  --nmx-a: var(--nm-accent-rgb, 227, 17, 27);
}

/* ---------- Hero ---------- */
html#nm .nmc.nmx .nmc-hero {
  position: relative !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  min-height: 210px !important; margin: 0 0 24px !important; padding: 36px 40px !important;
  border: 1px solid var(--nmx-line) !important; border-radius: 18px !important;
  background:
    radial-gradient(70% 140% at 100% 50%, rgba(var(--nmx-a), .16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent),
    var(--nmx-surface) !important;
  box-shadow: none !important;
}
html#nm .nmc.nmx .nmc-heroCopy { position: relative; z-index: 2; gap: 14px !important; max-width: 60%; }
html#nm .nmc.nmx .nmc-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px !important; color: var(--nmx-text-3) !important; text-transform: none !important; letter-spacing: 0 !important; }
html#nm .nmc.nmx .nmc-crumbs a { color: var(--nmx-text-2) !important; }
html#nm .nmc.nmx .nmc-crumbs a:hover { color: var(--nmx-text) !important; }
html#nm .nmc.nmx .nmc-crumbs i { font-size: 9px; opacity: .6; }
html#nm .nmc.nmx .nmc-crumbCurrent { display: inline-flex; align-items: center; gap: 8px; color: var(--nmx-text) !important; }
html#nm .nmc.nmx .nmc-crumbCurrent[hidden] { display: none; }
html#nm .nmc.nmx .nmc-hero .nmc-title {
  font-size: clamp(30px, 4vw, 44px) !important; font-weight: 700 !important;
  letter-spacing: -.02em !important; line-height: 1.05 !important; text-transform: none !important;
  color: var(--nmx-text) !important;
}
html#nm .nmc.nmx .nmc-meta { display: flex; flex-wrap: wrap; gap: 8px !important; margin: 0 !important; }
html#nm .nmc.nmx .nmc-meta > span {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--nmx-line); background: rgba(255, 255, 255, .03);
  color: var(--nmx-text-2) !important; font-size: 12.5px !important; font-weight: 500 !important;
}
html#nm .nmc.nmx .nmc-meta strong { color: var(--nmx-text) !important; font-weight: 700; }
html#nm .nmc.nmx .nmc-meta i { color: #ff6b61; font-size: 11px; }

/* Category artwork: large, fades into the panel instead of a small boxed image */
html#nm .nmc.nmx .nmc-heroArt {
  position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 46% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; margin: 0 !important; z-index: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
          mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}
html#nm .nmc.nmx .nmc-heroArt[hidden] { display: none !important; }
html#nm .nmc.nmx .nmc-heroArt img {
  width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center 30% !important;
  border-radius: 0 !important; box-shadow: none !important; opacity: .9;
}
@media (max-width: 720px) {
  html#nm .nmc.nmx .nmc-hero { min-height: 170px !important; padding: 24px 20px !important; }
  html#nm .nmc.nmx .nmc-heroCopy { max-width: 72%; }
  html#nm .nmc.nmx .nmc-heroArt { width: 60% !important; opacity: .55; }
}

/* ---------- Category chips ---------- */
html#nm .nmc.nmx .nmc-chips { gap: 8px !important; margin: 0 0 16px !important; padding: 2px 0 4px !important; }
html#nm .nmc.nmx .nmc-chip {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  height: 36px !important; padding: 0 14px !important; border-radius: 999px !important;
  border: 1px solid var(--nmx-line) !important; background: transparent !important;
  color: var(--nmx-text-2) !important; font: 500 13.5px/1 var(--nm-font) !important;
  text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
  transition: border-color .2s, background-color .2s, color .2s !important;
}
html#nm .nmc.nmx .nmc-chip:hover { border-color: var(--nmx-line-2) !important; color: var(--nmx-text) !important; background: rgba(255, 255, 255, .03) !important; }
html#nm .nmc.nmx .nmc-chipCount {
  min-width: 0 !important; height: auto !important; padding: 0 !important; border: 0 !important; background: none !important;
  color: var(--nmx-text-3) !important; font-size: 12px !important; font-weight: 500 !important;
}
html#nm .nmc.nmx .nmc-chip.is-active {
  background: rgba(var(--nmx-a), .14) !important; border-color: rgba(var(--nmx-a), .55) !important; color: #fff !important;
}
html#nm .nmc.nmx .nmc-chip.is-active .nmc-chipCount { color: #ff9a93 !important; }

/* ---------- Search + sort ---------- */
html#nm .nmc.nmx .nmc-bar { margin: 0 0 20px !important; }
html#nm .nmc.nmx .nmc-tools { display: flex !important; gap: 10px !important; align-items: center; }
html#nm .nmc.nmx .nmc-search,
html#nm .nmc.nmx .nmc-sort {
  height: 44px !important; border-radius: 12px !important;
  border: 1px solid var(--nmx-line) !important; background: var(--nmx-surface) !important; box-shadow: none !important;
}
html#nm .nmc.nmx .nmc-bar .nmc-tools { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
html#nm .nmc.nmx .nmc-search { flex: 1 1 auto !important; width: auto !important; max-width: none !important; min-width: 0 !important; display: flex !important; align-items: center; }
html#nm .nmc.nmx .nmc-search input { width: 100% !important; height: 100% !important; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 14px 0 40px !important; }
html#nm .nmc.nmx .nmc-sort select { border: 0 !important; background-color: transparent !important; box-shadow: none !important; height: 100% !important; }
html#nm .nmc.nmx .nmc-search:focus-within, html#nm .nmc.nmx .nmc-sort:focus-within { border-color: rgba(var(--nmx-a), .5) !important; }
html#nm .nmc.nmx .nmc-search input, html#nm .nmc.nmx .nmc-sort select { font-size: 14px !important; color: var(--nmx-text) !important; }
html#nm .nmc.nmx .nmc-search input::placeholder { color: var(--nmx-text-3) !important; }
html#nm .nmc.nmx .nmc-sort { flex: 0 0 auto !important; }

/* ---------- Product cards ---------- */
html#nm .nmc.nmx .nmc-grid { gap: 16px !important; }
html#nm .nmc.nmx .nmc-card {
  display: flex !important; flex-direction: column !important;
  background: var(--nmx-surface) !important; border: 1px solid var(--nmx-line) !important; border-radius: 14px !important;
  overflow: hidden !important; box-shadow: none !important;
  transition: border-color .2s, transform .2s, box-shadow .2s !important;
}
html#nm .nmc.nmx .nmc-card:hover {
  border-color: rgba(var(--nmx-a), .38) !important; transform: translateY(-3px) !important;
  box-shadow: 0 18px 40px -22px rgba(var(--nmx-a), .5) !important;
}
html#nm .nmc.nmx .nmc-media { border-bottom: 1px solid var(--nmx-line); }
html#nm .nmc.nmx .nmc-card:hover .nmc-media img { transform: scale(1.03) !important; }
html#nm .nmc.nmx .nmc-body { display: flex !important; flex-direction: column !important; gap: 6px !important; padding: 14px 16px 16px !important; }
html#nm .nmc.nmx .nmc-name {
  margin: 0 !important; color: var(--nmx-text) !important;
  font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.35 !important; letter-spacing: .005em !important;
  text-transform: none !important; min-height: 0 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html#nm .nmc.nmx .nmc-price { display: flex !important; align-items: baseline !important; gap: 6px !important; flex-wrap: wrap; }
html#nm .nmc.nmx .nmc-price small { color: var(--nmx-text-3) !important; font-size: 12px !important; font-weight: 500 !important; text-transform: none !important; }
html#nm .nmc.nmx .nmc-price b { color: var(--nmx-text) !important; font-size: 16px !important; font-weight: 700 !important; }
html#nm .nmc.nmx .nmc-price s { color: var(--nmx-text-3) !important; font-size: 13px !important; }
html#nm .nmc.nmx .nmc-foot:empty, html#nm .nmc.nmx .nmc-foot:not(:has(*)) { display: none !important; }

/* Badges: one style — sale = solid accent pill, status = glass pill */
html#nm .nmc.nmx .nmc-badges { top: 10px !important; right: 10px !important; left: auto !important; gap: 6px !important; }
html#nm .nmc.nmx .nmc-badge {
  height: 22px !important; padding: 0 9px !important; border-radius: 999px !important;
  display: inline-flex !important; align-items: center !important; gap: 5px !important;
  background: rgb(var(--nmx-a)) !important; border: 0 !important; color: #fff !important;
  font-size: 11px !important; font-weight: 700 !important; letter-spacing: .01em !important; text-transform: none !important;
  box-shadow: 0 4px 12px -4px rgba(var(--nmx-a), .7) !important;
}
html#nm .nmc.nmx .nmc-badge::before { display: none !important; }
html#nm .nmc.nmx .nmc-badge--hold { background: #f59e0b !important; color: #1a1205 !important; box-shadow: none !important; }
html#nm .nmc.nmx .nmc-badge--out { background: rgba(10, 10, 12, .85) !important; color: var(--nmx-text-2) !important; border: 1px solid var(--nmx-line-2) !important; box-shadow: none !important; }
html#nm .nmc.nmx .nm-undetected {
  top: 10px !important; left: 10px !important; height: 22px !important; padding: 0 9px 0 8px !important;
  border-radius: 999px !important; background: rgba(10, 10, 12, .78) !important;
  border: 1px solid color-mix(in srgb, var(--nm-ud, #34d399) 45%, transparent) !important;
  color: color-mix(in srgb, var(--nm-ud, #34d399) 35%, #fff) !important; font-size: 11px !important; font-weight: 600 !important;
}
html#nm .nmc.nmx .nm-undetected-dot, html#nm .nmc.nmx .nm-undetected-dot::after { background: var(--nm-ud, #34d399) !important; }

/* Empty state */
html#nm .nmc.nmx .nmc-empty { padding: 56px 16px !important; border: 1px dashed var(--nmx-line-2) !important; border-radius: 14px !important; color: var(--nmx-text-2) !important; }

/* =====================================================================
   Product page — description ("bio") typography
   The SellAuth editor output had oversized headings, tiny body text, empty
   paragraphs and big <hr> gaps. One readable scale, tight rhythm.
   ===================================================================== */
html#nm .nm-pdp-description .editor {
  font-size: 14px !important; line-height: 1.6 !important; color: #b4b4bd !important;
  max-width: 68ch; margin-top: 10px;
}
html#nm .nm-pdp-description .editor * { font-size: inherit; }
html#nm .nm-pdp-description .editor [style*="font-size"] { font-size: inherit !important; }
html#nm .nm-pdp-description .editor > :first-child { margin-top: 0 !important; }
html#nm .nm-pdp-description .editor > :last-child { margin-bottom: 0 !important; }

html#nm .nm-pdp-description .editor :is(h1, h2, h3, h4, h5, h6) {
  color: #f5f5f7 !important; font-family: var(--nm-font) !important; font-weight: 700 !important;
  letter-spacing: -.01em !important; line-height: 1.3 !important; text-transform: none !important;
  margin: 18px 0 6px !important;
}
html#nm .nm-pdp-description .editor h1 { font-size: 17px !important; }
html#nm .nm-pdp-description .editor h2 { font-size: 16px !important; }
html#nm .nm-pdp-description .editor h3 { font-size: 15px !important; }
html#nm .nm-pdp-description .editor :is(h4, h5, h6) { font-size: 14px !important; }

html#nm .nm-pdp-description .editor :is(p, li, blockquote) { font-size: 14px !important; line-height: 1.6 !important; }
html#nm .nm-pdp-description .editor p { margin: 0 0 4px !important; }
/* Blank lines typed in the editor (<p><br></p>, &nbsp;) created huge gaps */
html#nm .nm-pdp-description .editor p:empty,
html#nm .nm-pdp-description .editor p:has(> br:only-child),
html#nm .nm-pdp-description .editor :is(h1, h2, h3, h4):empty { display: none !important; }
html#nm .nm-pdp-description .editor :is(strong, b) { color: #ececf0 !important; font-weight: 600 !important; }

html#nm .nm-pdp-description .editor :is(ul, ol) { margin: 0 0 12px !important; padding-left: 1.15rem !important; }
html#nm .nm-pdp-description .editor li { margin: 4px 0 !important; padding-left: 2px; }
html#nm .nm-pdp-description .editor li > p { margin: 0 !important; }
/* Checklist-style lines that already start with an emoji: no extra bullet */
html#nm .nm-pdp-description .editor ul:has(> li:first-child:is([data-list="checked"], [data-list="unchecked"])) { list-style: none !important; padding-left: 0 !important; }

html#nm .nm-pdp-description .editor hr {
  height: 1px !important; margin: 14px 0 !important; border: 0 !important; border-radius: 0 !important;
  background: rgba(255, 255, 255, .07) !important;
}
html#nm .nm-pdp-description .editor hr + :is(h1, h2, h3, h4) { margin-top: 0 !important; }

html#nm .nm-pdp-description .editor blockquote {
  margin: 0 0 12px !important; padding: 10px 14px !important; border-left: 2px solid rgba(var(--nm-accent-rgb, 227, 17, 27), .7) !important;
  background: rgba(255, 255, 255, .02); border-radius: 0 8px 8px 0; color: #c4c4cc !important;
}
html#nm .nm-pdp-description .editor :is(iframe, video) {
  max-width: 100% !important; margin: 16px 0 !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, .08);
}
html#nm .nm-pdp-description .editor img { margin: 16px 0 !important; border-radius: 12px !important; }
@media (max-width: 640px) {
  html#nm .nm-pdp-description .editor { font-size: 13.5px !important; }
  html#nm .nm-pdp-description .editor h1 { font-size: 16px !important; }
  html#nm .nm-pdp-description .editor h2 { font-size: 15px !important; }
}

/* =====================================================================
   Product page — compact layout + single "Payment & delivery" card
   ===================================================================== */
html#nm .nm-pdp-page .nm-pdp-container { max-width: 1080px !important; margin-left: auto !important; margin-right: auto !important; }
html#nm .nm-pdp-page .nm-pdp-grid { gap: 20px !important; align-items: start !important; }
html#nm .nm-pdp-page .nm-pdp-backLink { font-size: 13px !important; margin-bottom: 12px !important; }
html#nm .nm-pdp-page .nm-pdp-imageCard { border-radius: 14px !important; }
html#nm .nm-pdp-page .nm-pdp-description { margin-top: 16px !important; padding: 18px 20px !important; border-radius: 14px !important; }

/* Right column */
html#nm .nm-pdp-page .nm-pdp-infoSection { padding: 22px !important; border-radius: 14px !important; position: sticky; top: calc(var(--nm-header-h, 72px) + 16px); }
html#nm .nm-pdp-page .nm-pdp-title { font-size: 24px !important; line-height: 1.2 !important; margin: 0 0 6px !important; letter-spacing: -.01em !important; }
html#nm .nm-pdp-page .nm-pdp-meta { font-size: 12.5px !important; gap: 12px !important; margin: 0 0 10px !important; }
html#nm .nm-pdp-page .nm-pdp-priceTag { font-size: 26px !important; line-height: 1.1 !important; margin: 4px 0 14px !important; }
html#nm .nm-pdp-page .nm-pdp-priceTag * { font-size: inherit !important; }
html#nm .nm-pdp-page .form-label { font-size: 12.5px !important; margin-bottom: 6px !important; color: #a1a1aa !important; }
html#nm .nm-pdp-page .variants { gap: 6px !important; }
html#nm .nm-pdp-page .variants .variant { padding: 9px 12px !important; min-height: 0 !important; border-radius: 10px !important; }
html#nm .nm-pdp-page .variants .variant .name { font-size: 13.5px !important; margin: 0 !important; }
html#nm .nm-pdp-page .variants .variant .stock { font-size: 11.5px !important; margin: 0 !important; }
html#nm .nm-pdp-page .variants .variant .price { font-size: 13.5px !important; }
html#nm .nm-pdp-page .buy-buttons { margin-top: 16px !important; gap: 8px !important; }
html#nm .nm-pdp-page .buy-buttons .btn { height: 44px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 14px !important; border-radius: 10px !important; }
@media (max-width: 991px) { html#nm .nm-pdp-page .nm-pdp-infoSection { position: static; } }

/* Payment & delivery card (left column, under the description) */
html#nm .nmp-pay {
  margin-top: 16px; padding: 18px 20px; border-radius: 14px;
  background: var(--nm-surface-1, #131317); border: 1px solid rgba(255, 255, 255, .07);
}
html#nm .nmp-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
html#nm .nmp-pay-head h2 { margin: 0 !important; font-size: 15px !important; font-weight: 700 !important; color: #f5f5f7 !important; letter-spacing: 0 !important; }
html#nm .nmp-pay .nm-payment-logo-strip { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; width: auto !important; flex: 0 0 auto !important; display: block !important; }
html#nm .nmp-pay .nm-payment-logo-icons { display: flex !important; gap: 6px !important; flex-wrap: wrap; justify-content: flex-end !important; }
html#nm .nmp-pay .nm-payment-pill { height: 26px !important; padding: 0 6px !important; border-radius: 6px !important; }
html#nm .nmp-pay .nm-payment-pill img { height: 16px !important; width: auto !important; }
html#nm .nmp-pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
html#nm .nmp-pay-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
html#nm .nmp-pay-icon {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(var(--nm-accent-rgb, 227, 17, 27), .12); border: 1px solid rgba(var(--nm-accent-rgb, 227, 17, 27), .28);
  color: #ff6b61; font-size: 13px;
}
html#nm .nmp-pay-list li > span:last-child { font-size: 13.5px; line-height: 1.55; color: #a1a1aa; }
html#nm .nmp-pay-list strong { display: block; color: #f5f5f7; font-size: 14px; font-weight: 600; margin-bottom: 1px; }
html#nm .nmp-pay-list a { color: #ff6b61 !important; text-decoration: underline; text-underline-offset: 2px; }
html#nm .nmp-pay-list a:hover { color: #ff8a82 !important; }

/* Product page: "other payment methods" bar right under the buy buttons */
html#nm .nmp-otherpay {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px;
  border-radius: 12px; text-decoration: none !important;
  background: linear-gradient(100deg, rgba(88, 101, 242, .16), rgba(88, 101, 242, .05));
  border: 1px solid rgba(88, 101, 242, .38);
  color: #f5f5f7 !important; transition: border-color .2s, background-color .2s, transform .2s;
}
html#nm .nmp-otherpay:hover { border-color: rgba(88, 101, 242, .7); background-color: rgba(88, 101, 242, .08); transform: translateY(-1px); }
html#nm .nmp-otherpay-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #5865f2; color: #fff; font-size: 16px; }
html#nm .nmp-otherpay-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html#nm .nmp-otherpay-copy strong { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
html#nm .nmp-otherpay-copy span { font-size: 12.5px; line-height: 1.4; color: #b8bcf5; }
html#nm .nmp-otherpay-cta {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px;
  background: #5865f2; color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
html#nm .nmp-otherpay-cta i { font-size: 11px; }
@media (max-width: 420px) { html#nm .nmp-otherpay-cta { display: none; } }

/* Description: small "Description" label + collapsed when long */
html#nm .nm-pdp-description .editor.nm-desc-collapsed { max-height: 420px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
html#nm .nm-desc-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 34px; padding: 0 14px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: #f5f5f7; font: 600 13px/1 var(--nm-font); cursor: pointer;
}
html#nm .nm-desc-toggle:hover { border-color: rgba(var(--nm-accent-rgb, 227, 17, 27), .55); background: rgba(var(--nm-accent-rgb, 227, 17, 27), .08); }
html#nm .nm-desc-toggle i { font-size: 11px; color: #ff6b61; transition: transform .2s; }
html#nm .nm-desc-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
html#nm .nm-pdp-page .nm-pdp-description::before {
  font-size: 11.5px !important; letter-spacing: .12em !important; text-transform: uppercase !important;
  color: #71717a !important; font-weight: 700 !important; margin-bottom: 2px !important;
}
