/* ==========================================================================
   nexus-store — "MM420" product card (prototype 2026-10-05, from the team's Photoshop mock; original code).
   r8–r9 (2026-10-06, team's second mock): no MM420 watermark, no certificate footer; larger green line-art head
   (assets/img/nx-head-line.r2.svg, cut from the mock screenshot until the team sends the file); smaller product
   image lower down; name = light line + bold last word (+ small "(brand)" line); more room under the pill.
   Active when the miniature template's $nxCardStyle is 'mm420' (article.nx-card--mm420). Loaded after custom.css.
   Images: .nx-card--cutout = a background-removed cover (img/nx-cutouts/<id_image>.webp) floats on the card;
           .nx-card--plate  = an ordinary white-background photo, shown on a soft light plate.
   Scope: every rule starts with .product-miniature.nx-card--mm420 so it outranks custom.css's card rules
   (.product-miniature .thumbnail-container .product-thumbnail img is 0,3,1). !important is used only where the
   CE home's ID-scoped rules (body#index [data-elementor-type="page-index"] .product-miniature …, 1,2,1) would win.
   ========================================================================== */
.product-miniature.nx-card--mm420 {
  /* colours sampled from the team's mock (Cherry Dumbbell close-up, 2026-10-05) */
  --mm-hi: #62834b;          /* top-centre highlight */
  --mm-hi-2: #48653a;
  --mm-side: #2f3a2c;        /* top corners */
  --mm-low: #161b15;
  --mm-black: #0b0b0b;
  --mm-rim: rgba(160, 200, 130, 0.55);
  --mm-glow: rgba(95, 140, 70, 0.30);
  --mm-edge: rgba(130, 170, 105, 0.22);
  --mm-ink: #f3f3f1;
  --mm-muted: #6b7466;
  --mm-accent: #9be06a;
  --mm-font: 'Montserrat', var(--nx-font, Poppins), sans-serif;
  container-type: inline-size;
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0 !important;
  /* r15 (team 11-12 "remove the green background, make them stand out"; Rich 11-13: both home + shop pages):
     neutral near-black surface instead of the green top wash; a brighter neutral edge and a deep drop shadow so the
     card lifts off the dark-green page texture. Green stays for the hover rim/glow and the accents. */
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(16px, 7cqw, 34px) !important;
  background:
    radial-gradient(120% 45% at 50% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #1c1d1c 0%, #121312 38%, #0a0a0a 70%, #050505 100%) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden !important;
  color: var(--mm-ink) !important;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.product-miniature.nx-card--mm420:hover,
.product-miniature.nx-card--mm420:focus-within {
  border-color: rgba(155, 224, 106, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75), 0 0 26px rgba(142, 179, 100, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  .product-miniature.nx-card--mm420, .product-miniature.nx-card--mm420:hover, .product-miniature.nx-card--mm420:focus-within { transform: none; transition: none; }
}

/* ---- media box: head mark behind, image in front ---- */
.product-miniature.nx-card--mm420 .thumbnail-container {
  position: relative; flex: 0 0 auto;
  width: 100%; height: auto; aspect-ratio: 1 / 0.63; margin: 0; padding: 0;
  background: transparent !important; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
.product-miniature.nx-card--mm420 .nx-card__headmark {
  position: absolute; top: 3cqw; left: 50%; z-index: 1; width: 12cqw; height: 16cqw; transform: translateX(-50%);
  background: url("../img/nx-head-line.r2.svg") center / contain no-repeat;
}
.product-miniature.nx-card--mm420 .thumbnail-container .thumbnail-top {
  position: absolute; inset: 0; z-index: 2; width: auto; height: auto; aspect-ratio: auto; margin: 0;
  background: transparent !important; overflow: visible;
}
.product-miniature.nx-card--mm420 .thumbnail-container .product-thumbnail {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 23cqw 13.5% 3cqw; height: auto; background: transparent !important;
}
.product-miniature.nx-card--mm420 .thumbnail-container .product-thumbnail picture,
.product-miniature.nx-card--mm420 .thumbnail-container .product-thumbnail .nx-card__img {
  position: static; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%;
}
.product-miniature.nx-card--mm420 .thumbnail-container .product-thumbnail img {
  position: static !important; width: 100% !important; height: 100% !important; max-width: 100%;
  object-fit: contain !important; object-position: center; background: transparent;
  border-radius: 0; transform: none; opacity: 1;
}
.product-miniature.nx-card--mm420 .thumbnail-container .product-thumbnail .nx-card__img--hover { display: none !important; }
.product-miniature.nx-card--mm420.nx-card--cutout .thumbnail-container .product-thumbnail img {
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}
.product-miniature.nx-card--mm420.nx-card--cutout:hover .thumbnail-container .product-thumbnail img { transform: scale(1.04); }
/* no cut-out yet: a soft light plate, so the white photo background reads as part of the design */
.product-miniature.nx-card--mm420.nx-card--plate .thumbnail-container .product-thumbnail { padding: 22cqw 15% 3cqw; }
.product-miniature.nx-card--mm420.nx-card--plate .thumbnail-container .product-thumbnail img {
  object-position: center; border-radius: 14px !important;
  -webkit-mask: radial-gradient(closest-side, #000 76%, transparent 100%); mask: radial-gradient(closest-side, #000 76%, transparent 100%);
}

/* blockwishlist's own listing heart (product.bundle.js appends it to .thumbnail-container): the design puts the
   heart in the pill bar, which carries the hook's button — hide the corner one */
.product-miniature.nx-card--mm420 .thumbnail-container > .wishlist-button-add { display: none !important; }

/* quick view + compare: small round icons, top right, shown on hover/focus (touch: always) */
.product-miniature.nx-card--mm420 .nx-card__actions {
  position: absolute; top: 10px; right: 10px; left: auto; bottom: auto; z-index: 4;
  flex-direction: column; gap: 6px; width: auto; height: auto; padding: 0;
  background: transparent; box-shadow: none; border: 0; transform: translateX(6px);
}
.product-miniature.nx-card--mm420:hover .nx-card__actions,
.product-miniature.nx-card--mm420:focus-within .nx-card__actions,
.product-miniature.nx-card--mm420 .nx-card__actions.is-touch { transform: none; }
.product-miniature.nx-card--mm420 .nx-card__actions .nx-card__action {
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  background: rgba(20, 22, 20, 0.85); color: var(--mm-ink); border: 1px solid rgba(255, 255, 255, 0.14);
}
.product-miniature.nx-card--mm420 .nx-card__actions .nx-card__action:hover { color: var(--mm-accent); border-color: rgba(155, 224, 106, 0.5); }
.product-miniature.nx-card--mm420 .nx-card__actions .nx-card__action > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.product-miniature.nx-card--mm420 .nx-card__actions .nx-card__action .material-icons { font-size: 17px; color: inherit; }
.product-miniature.nx-card--mm420 .product-flags { z-index: 5; top: 10px; left: 10px; }

/* ---- body: name, pill bar ---- */
.product-miniature.nx-card--mm420 .product-description {
  position: relative; z-index: 3; display: flex; flex-direction: column; flex: 1 1 auto;
  margin: 0 !important; padding: 3cqw 8cqw 16cqw !important; text-align: center; background: transparent !important;
}
.product-miniature.nx-card--mm420 .nx-card__cat { color: var(--mm-muted) !important; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 2px; }
.product-miniature.nx-card--mm420 .product-description .product-title {
  display: block; margin: 2cqw 0 8cqw; min-height: 2.84em; padding: 0; text-align: center; overflow: visible;   /* min-height: 2 name lines + the "(brand)" line, so pills line up across a row */
  font-family: var(--mm-font); font-size: clamp(14px, 11.5cqw, 56px); line-height: 1.05;
}
.product-miniature.nx-card--mm420 .product-description .product-title a {
  color: var(--mm-ink) !important; font-family: var(--mm-font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: inherit; line-height: inherit; text-decoration: none; display: block;
}
/* name lines (template): light part (≤2 lines), bold last word, small "(brand)" — each clips rather than overflows */
.product-miniature.nx-card--mm420 .product-title .nx-card__name-light {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 300; letter-spacing: 0.03em;
}
.product-miniature.nx-card--mm420 .product-title .nx-card__name-bold { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-miniature.nx-card--mm420 .product-title .nx-card__name-sub {
  display: block; margin-top: 0.4em; font-size: max(10px, 0.28em); font-weight: 500; letter-spacing: 0.12em; line-height: 1.2;
  color: var(--mm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-miniature.nx-card--mm420 .product-description .product-title a:hover { color: #b8ec8f !important; }

.product-miniature.nx-card--mm420 .nx-card__buy {
  display: flex; align-items: center; gap: 6px; margin-top: auto;
  min-height: clamp(36px, 12cqw, 58px); padding: 0 clamp(12px, 5cqw, 24px) 0 clamp(4px, 3cqw, 16px); border-radius: 999px;
  background: linear-gradient(180deg, #1d1f1c 0%, #0f100f 100%);
  border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.5);
}
/* wishlist heart */
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action--wishlist {
  flex: 0 0 auto; display: inline-flex; width: auto; height: auto; padding: 0; background: transparent; border: 0;
}
.product-miniature.nx-card--mm420 .nx-card__buy .wishlist-button-add {
  position: static; width: 30px; height: 30px; margin: 0; padding: 0; box-shadow: none; background: transparent; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.product-miniature.nx-card--mm420 .nx-card__buy .wishlist-button-add .material-icons { color: var(--mm-ink) !important; font-size: clamp(19px, 5.4cqw, 26px); }
.product-miniature.nx-card--mm420 .nx-card__buy .wishlist-button-add:hover .material-icons { color: var(--mm-accent) !important; }
/* add to cart / choose options: a text button that takes the free space */
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action.add-to-cart,
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action--options {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  width: auto; height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none;
  color: var(--mm-ink) !important; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action > span {
  position: static; width: auto; height: auto; clip: auto; overflow: hidden; text-overflow: ellipsis; margin: 0; padding: 0;
  font-family: var(--mm-font); font-size: clamp(12px, 3.9cqw, 19px); font-weight: 500; text-transform: none; letter-spacing: 0;
  color: inherit !important; background: transparent !important; box-shadow: none; border: 0;
  opacity: 1; visibility: visible; transform: none; pointer-events: none;
}
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action:not(.nx-card__action--wishlist) .material-icons { display: none; }
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action:hover { color: #b8ec8f !important; }
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action[disabled] { opacity: 0.45; cursor: not-allowed; }
/* price */
.product-miniature.nx-card--mm420 .nx-card__buy .product-price-and-shipping {
  flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 5px; margin: 0;
}
.product-miniature.nx-card--mm420 .nx-card__buy .price { color: var(--mm-ink) !important; font-family: var(--mm-font); font-weight: 700; font-size: clamp(13px, 4.1cqw, 20px); }
.product-miniature.nx-card--mm420 .nx-card__buy .regular-price { color: var(--mm-muted) !important; font-size: 11px; }
.product-miniature.nx-card--mm420 .nx-card__buy .discount-product,
.product-miniature.nx-card--mm420 .nx-card__buy .discount-percentage,
.product-miniature.nx-card--mm420 .nx-card__buy .discount-amount { display: none; }

.product-miniature.nx-card--mm420 .nx-card__desc,
.product-miniature.nx-card--mm420 .product-list-reviews,
.product-miniature.nx-card--mm420 .highlighted-informations { display: none !important; }

/* narrow cards (desktop category grid ~200px, phones 2 per row): icon-only cart */
@container (max-width: 230px) {
  .product-miniature.nx-card--mm420 .nx-card__buy { padding: 0 12px 0 4px; gap: 2px; min-height: 36px; }
  .product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action > span { display: none; }
  .product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action:not(.nx-card__action--wishlist) .material-icons { display: inline-block; font-size: 19px; color: inherit; }
  .product-miniature.nx-card--mm420 .nx-card__buy .wishlist-button-add { width: 28px; height: 28px; }
  .product-miniature.nx-card--mm420 .nx-card__buy .price { font-size: 13px; }
}

/* the theme's hover tooltip on .nx-card__action (span + ::after) — not in the pill */
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action::before,
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action::after,
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action > span::before,
.product-miniature.nx-card--mm420 .nx-card__buy .nx-card__action > span::after { display: none !important; content: none !important; }

/* sliders: Swiper's overflow:hidden would clip the card glow into hard square corners — give it room */
.nx-slider.swiper:has(.nx-card--mm420) { padding: 18px 12px 42px; margin: -18px -12px -42px; }   /* r15: room for the drop shadow + 4px hover lift (swiper clips) */

/* ---- card / crypto prices (mmpaymentprices, weight hook) — a row under the pill, crypto as the highlighted deal ---- */
.product-miniature.nx-card--mm420 .mm-payment-prices {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 8px; margin: 8px 0 0; font-family: var(--mm-font); font-size: clamp(10px, 3.3cqw, 15px); line-height: 1.2;
}
.product-miniature.nx-card--mm420 .mm-payment-prices__card { color: var(--mm-muted) !important; font-weight: 500; }
.product-miniature.nx-card--mm420 .mm-payment-prices__card strong { color: var(--mm-ink); font-weight: 600; }
.product-miniature.nx-card--mm420 .mm-payment-prices__crypto {
  padding: 2px 9px; border-radius: 999px; color: var(--mm-accent) !important; font-weight: 600;
  background: rgba(155, 224, 106, 0.1); border: 1px solid rgba(155, 224, 106, 0.35);
}
.product-miniature.nx-card--mm420 .mm-payment-prices__crypto strong { color: #b8ec8f; font-weight: 700; }

/* r13 (sandbox #131; r12 briefly hid the heart, never reuse r12), 2026-11-03): the card heart (.nx-card__action--wishlist > button.wishlist-button-product > i.material-icons)
   inherited Montserrat, so the Material Icons ligature printed as the word "favorite_border" across the price row
   (Rich 11-03). Give the glyph its icon font back and a fixed icon box so it can never spill into text. */
.nx-card .wishlist-button-product i.material-icons {
  font-family: 'Material Icons' !important;
  font-size: 20px !important;
  line-height: 1 !important;
  width: 20px; height: 20px;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  font-feature-settings: 'liga' !important;
  -webkit-font-feature-settings: 'liga';
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* r14 (Rich 11-13: "front page item boxes are different sizes"): product names wrap to 1-3 lines, and the CE product
 * grid's cells carry align-self:flex-start, so each card was as tall as its own name. Stretch the cells, let the card
 * fill its cell (the buy pill already sits at the bottom via margin-top:auto) and make every row as tall as the tallest. */
.ce-product-grid { grid-auto-rows: 1fr; }
.ce-product-grid > .js-product { align-self: stretch !important; display: flex; flex-direction: column; }
.ce-product-grid > .js-product > .product-miniature { flex: 1 1 auto; }
.featured-products .products > .js-product { display: flex; flex-direction: column; }
.featured-products .products > .js-product > .product-miniature { flex: 1 1 auto; }
