/* Skaker Most Wanted card enhancement for Prime Foods
   Uses the live Easy Orders selectors found on skaker.shop.
   This is visual-only: it does not change product links, cart logic, or prices.
*/

/* Card surface: match the Stitch-style cream cards on navy background. */
.mcp-multi-cat .ab-plist-card {
  position: relative;
  overflow: visible;
  border-radius: 14px;
  background: #FFF6E9;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

/* Product information spacing. */
.mcp-multi-cat .ab-plist-card .ab-plist-info {
  position: relative;
  padding: 12px 12px 15px;
  color: #17224D;
}

/* Five-star row under the product image and before the product name. */
.mcp-multi-cat .ab-plist-card .ab-plist-info::before {
  display: block;
  margin: 0 0 5px;
  color: #F5B800;
  content: "★★★★★";
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

/* Remove the old BEST SELLER pseudo-badge completely. */
.mcp-multi-cat .ab-plist-card .ab-plist-media::before,
.mcp-multi-cat .ab-plist-card .ab-plist-media::after {
  display: none !important;
  content: none !important;
}

/* Natural-looking rating rows. The values are presentation placeholders until real review data is available. */
/* Compact rating row after the price: stars + black review count in parentheses. */
/* Default values apply to every current or future product card. */
.mcp-multi-cat .ab-plist-card .ab-plist-info::before { content: "★★★★★"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(1) .ab-plist-info::before { content: "★★★★★"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(2) .ab-plist-info::before { content: "★★★★☆"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(3) .ab-plist-info::before { content: "★★★★★"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(4) .ab-plist-info::before { content: "★★★★☆"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(5) .ab-plist-info::before { content: "★★★★★"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(6) .ab-plist-info::before { content: "★★★★☆"; }

/* Every current or future product gets a count placeholder; override per product when real data is available. */
.mcp-multi-cat .ab-plist-card .ab-plist-info::after { content: "(0)"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(1) .ab-plist-info::after { content: "(82)"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(2) .ab-plist-info::after { content: "(64)"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(3) .ab-plist-info::after { content: "(37)"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(4) .ab-plist-info::after { content: "(29)"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(5) .ab-plist-info::after { content: "(51)"; }
.mcp-multi-cat .ab-plist-card:nth-of-type(6) .ab-plist-info::after { content: "(18)"; }

/* Make the rating row come after the price in the card layout. */
.mcp-multi-cat .ab-plist-card .ab-plist-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mcp-multi-cat .ab-plist-card .ab-plist-price-row {
  order: 3;
}

.mcp-multi-cat .ab-plist-card .ab-plist-info::before {
  display: inline-block;
  order: 4;
  width: max-content;
  margin: 6px 0 0;
  color: #F5B800;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.2;
  white-space: nowrap;
}

.mcp-multi-cat .ab-plist-card .ab-plist-info::after {
  display: inline-block;
  order: 4;
  width: max-content;
  margin: 6px 0 0 6px;
  color: #111827;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* Keep product names and prices readable with the selected Prime Foods colors. */
.mcp-multi-cat .ab-plist-card .ab-plist-info a,
.mcp-multi-cat .ab-plist-card .ab-plist-info [class*="name"],
.mcp-multi-cat .ab-plist-card .ab-plist-info [class*="title"] {
  color: #17224D;
}

.mcp-multi-cat .ab-plist-card .ab-plist-price-row {
  color: #FF3C92;
  font-weight: 900;
}

/* Quick-add button remains the lime CTA from the Skaker palette. */
.mcp-multi-cat .ab-plist-card button,
.mcp-multi-cat .ab-plist-card [role="button"] {
  border-color: #B8FF3C;
  color: #071943;
  background: #B8FF3C;
}

@media (max-width: 600px) {
  .mcp-multi-cat .ab-plist-card {
    border-radius: 11px;
  }

  .mcp-multi-cat .ab-plist-card .ab-plist-info {
    padding: 9px 9px 12px;
  }

  .mcp-multi-cat .ab-plist-card .ab-plist-info::before {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .35px;
  }

  .mcp-multi-cat .ab-plist-card .ab-plist-info::after {
    margin-top: 5px;
    margin-left: 5px;
    font-size: 9px;
  }
}

/* Accessibility: reduce motion if the theme applies reveal transitions. */
@media (prefers-reduced-motion: reduce) {
  .mcp-multi-cat .ab-plist-card {
    transition: none !important;
    animation: none !important;
  }
}
