/*
 * One product card design for the whole site (2026-11-23).
 *
 * Every product card now looks and moves like the "Full catalog" tiles on the
 * home page (.hc-feature-link in css/home-catalog.css, "Print, Display & Event
 * Products for Your Business"): a soft tinted card with a 16px radius and a
 * hairline border, the photo edge to edge in a square on top, a white pill,
 * a bold name, a grey line of detail, "From $X per unit" and a "Shop now ->"
 * link. Hover lifts the card 3px with a soft shadow, zooms the photo 3% and
 * nudges the arrow.
 *
 * Cards covered:
 *   .hc-pcard      home page product and line cards  (template-parts/home-catalog.php)
 *   .sc-card       shop page grid                     (inc/shop-catalog.php)
 *   .product-box   category pages                     (home.php)
 *   .related-product  "More {category}" on products   (inc/seo-content.php)
 *   .srp-card      search results                     (search.php)
 *
 * Printed last (priority 130) and every rule starts with html:root
 * body:not(#pc-), so it wins over each card's own stylesheet, the inline
 * <style> in search.php, motion.css and tablet.css without !important.
 * The tints are the five Full catalog tile tints, in the same order.
 */

:root {
  --pc-t1: #eef2fb;
  --pc-t2: #fcf3f3;
  --pc-t3: #e4f3f9;
  --pc-t4: #f1f5f9;
  --pc-t5: #fbf2e2;
  --pc-ink: #0f172a;
  --pc-muted: #475569;
  --pc-link: #146f93;
  --pc-line: rgba(15, 23, 42, 0.06);
  --pc-shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.14);
  --pc-zoom-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Tint cycle ---------- */
html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-grid > li) {
  --pc-tint: var(--pc-t1);
}
html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-grid > li):nth-child(5n + 2) {
  --pc-tint: var(--pc-t2);
}
html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-grid > li):nth-child(5n + 3) {
  --pc-tint: var(--pc-t3);
}
html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-grid > li):nth-child(5n + 4) {
  --pc-tint: var(--pc-t4);
}
html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-grid > li):nth-child(5n + 5) {
  --pc-tint: var(--pc-t5);
}

/* ---------- The card ---------- */
html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: var(--pc-tint, var(--pc-t1));
  box-shadow: none;
  color: #0f172a;
  transform: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

/* The shop's <li> and the related <li> wrappers stay still: the card inside lifts. */
html:root body:not(#pc-) .sc-card,
html:root body:not(#pc-) .sc-card:is(:hover, :focus-within) {
  box-shadow: none;
  transform: none;
}

html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card):is(:hover, :focus-within) {
  border-color: var(--pc-line);
  box-shadow: var(--pc-shadow-hover);
  transform: translateY(-3px);
}

/* The related card's link fills the card, like the Full catalog tile link. */
html:root body:not(#pc-) .related-product > a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0f172a;
  text-decoration: none;
}

/* ---------- Photo: a square, edge to edge ---------- */
html:root body:not(#pc-) :is(.hc-pcard-media, .sc-grid:not(.sc-grid--list) .sc-card-media, .product-box .pb-image-top, .related-product-image, .srp-card__media) {
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

html:root body:not(#pc-) :is(.hc-pcard-media .hc-gal-slide img, .sc-card-media img, .product-box .pb-image-top img, .related-product-image img, .srp-card__img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--pc-zoom-ease);
}

html:root body:not(#pc-) :is(.hc-pcard:hover .hc-gal-slide img, .sc-card-inner:hover .sc-card-media img, .product-box:hover .pb-image-top img, .related-product:hover .related-product-image img, .srp-card:hover .srp-card__img) {
  transform: scale(1.03);
}

/* ---------- Copy block ---------- */
html:root body:not(#pc-) :is(.hc-pcard-body, .sc-card-body, .product-box .pb-details, .srp-card__body) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px 18px;
  background: transparent;
  color: #0f172a;
  text-decoration: none;
}

html:root body:not(#pc-) .product-box > a:not(.sfs-edit-pencil) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: #0f172a;
  text-decoration: none;
}

html:root body:not(#pc-) .product-box {
  display: flex;
  flex-direction: column;
}

html:root body:not(#pc-) .product-box .pb-details {
  height: 100%;
}

html:root body:not(#pc-) .related-product > a > :not(.related-product-image) {
  margin-right: 18px;
  margin-left: 18px;
  padding-right: 0;
  padding-left: 0;
}

html:root body:not(#pc-) .related-product > a > .related-product-image {
  margin-bottom: 10px;
}

/* White pill: product count on home line cards, the category on shop cards. */
html:root body:not(#pc-) :is(.hc-pcard-kicker, .sc-card-cat) {
  order: -1;
  align-self: flex-start;
  margin: 0 0 2px;
  padding: 2px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--pc-muted);
  font-family: var(--font-sans, inherit);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Name */
html:root body:not(#pc-) :is(.hc-pcard-name, .sc-card-title, .product-box .pb-title, .related-product-name, .srp-card__title) {
  display: block;
  margin: 2px 0 0;
  overflow: visible;
  color: var(--pc-ink);
  font-family: var(--font-display, inherit);
  font-size: 18px !important; /* .pb-title carries Bootstrap's .fs-6 (!important). */
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  -webkit-line-clamp: unset;
}

html:root body:not(#pc-) :is(.sc-card-title a, .srp-card__title a) {
  color: inherit;
  text-decoration: none;
}

html:root body:not(#pc-) :is(.hc-pcard:hover .hc-pcard-name, .srp-card:hover .srp-card__title) {
  color: var(--pc-ink);
}

/* The grey line of detail */
html:root body:not(#pc-) :is(.hc-pcard-desc, .sc-card-features, .product-box .pb-description-list, .srp-card__excerpt) {
  margin: 0;
  padding: 0;
  color: var(--pc-muted);
  font-size: 14px;
  line-height: 1.45;
}

html:root body:not(#pc-) :is(.sc-card-features li, .product-box .pb-description-list li) {
  padding-left: 0;
  overflow: visible;
  color: var(--pc-muted);
  font-size: 14px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

html:root body:not(#pc-) :is(.sc-card-features li, .product-box .pb-description-list li)::before {
  display: none;
}

html:root body:not(#pc-) .product-box .pb-description-list :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Lines the Full catalog tiles do not have. The owner kept the trust badges
   (UL listed, warranty, shipping) but not the turnaround: the clock line and
   the clock pill stay hidden (2026-11-23). */
html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) :is(.hc-pcard-meta, .pc-t--clock, .pb-details > hr) {
  display: none;
}

/* Trust badges sit between the detail line and the price. A row left with
   only the clock pill collapses. */
html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-trust {
  margin: 6px 0 2px;
}

html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-trust:not(:has(> :not(.pc-t--clock))) {
  display: none;
}

/* ---------- Price: "From $was $price per unit" ---------- */
html:root body:not(#pc-) :is(.hc-pcard-foot, .sc-card-foot, .srp-card__foot) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: auto;
  padding: 4px 0 0;
  border: 0;
}

html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .product-box .pb-price-summary, .related-product-price, .srp-price) {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pc-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

html:root body:not(#pc-) .product-box .start-at-pricing {
  margin-top: auto;
  padding-top: 4px;
}

/* Related cards: the price sits at the bottom too, so prices line up. */
html:root body:not(#pc-) .related-product-price {
  margin-top: auto;
}

html:root body:not(#pc-) :is(.sc-card-price-label, .sc-card-price-value) {
  display: inline;
}

html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(strong, ins, .pb-price) {
  color: var(--pc-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

/* "From", the unit and the struck-through price: small grey type. */
html:root body:not(#pc-) :is(.hc-pcard-price > small, .sc-card-price-label, .sc-card-price small, .product-box .pb-title-short, .related-product-price > small, .srp-price > small) {
  margin: 0;
  color: var(--pc-muted);
  font-size: 12px !important; /* .pb-title-short carries .fs-6 (!important). */
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) del {
  color: var(--pc-ink);
  font-size: 15px;
  font-weight: 800;
  opacity: 1;
}

html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(.pb-price small, strong + small, sup) {
  color: var(--pc-ink);
  font-weight: 800;
}

html:root body:not(#pc-) .product-box :is(.pb-price, .pb-title-short) {
  display: inline;
}

/* Category pages: one "From" line instead of the size table, as on phones. */
html:root body:not(#pc-) .product-box .start-at-pricing--table {
  display: block;
}

html:root body:not(#pc-) .product-box .start-at-pricing--table table {
  display: none;
}

/* ---------- "Shop now ->" link ---------- */
html:root body:not(#pc-) :is(.hc-pcard-button, .sc-card-cta, .product-box .pb-shop-cta, .product-box .pb-cta, .related-product-cta, .srp-more) {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 0;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pc-link); /* 5.3:1+ on every tint */
  font-family: var(--font-sans, inherit);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card):hover :is(.hc-pcard-button, .sc-card-cta, .pb-shop-cta, .pb-cta, .related-product-cta, .srp-more) {
  background: transparent;
  color: var(--pc-link);
}

html:root body:not(#pc-) :is(.hc-pcard-button, .sc-card-cta, .pb-shop-cta, .pb-cta, .related-product-cta, .srp-more) svg {
  width: 16px;
  height: 16px;
  transform: none;
  transition: transform 0.2s;
}

html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card):hover :is(.hc-pcard-button, .sc-card-cta, .pb-shop-cta, .pb-cta, .related-product-cta, .srp-more) svg {
  transform: translateX(3px);
}

html:root body:not(#pc-) .hc-pcard-button .hc-pcard-button-text {
  display: inline;
}

/* ---------- Keyboard focus, as on the Full catalog tiles ---------- */
html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card):has(:focus-visible) {
  outline: 3px solid #1fa8de;
  outline-offset: 3px;
}

html:root body:not(#pc-) :is(.hc-pcard-body, .sc-card-title a, .product-box > a, .related-product > a, .srp-card__title a):focus-visible {
  outline: 0;
}

/* ---------- Tablets (768-1199px): 3 cards a row, tidy copy ---------- */
@media (min-width: 768px) and (max-width: 1199.98px) {
  html:root body:not(#pc-) :is(.hc-pcard-body, .sc-card-body, .product-box .pb-details, .srp-card__body) {
    padding: 14px 16px 16px;
  }

  html:root body:not(#pc-) .related-product > a > :not(.related-product-image) {
    margin-right: 16px;
    margin-left: 16px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-name, .sc-card-title, .product-box .pb-title, .related-product-name, .srp-card__title) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* Detail line: two lines at most. */
  html:root body:not(#pc-) :is(.hc-pcard-desc, .sc-card-features, .product-box .pb-description-list, .srp-card__excerpt) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13.5px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html:root body:not(#pc-) :is(.sc-card-features li, .product-box .pb-description-list li) {
    display: inline;
    font-size: 13.5px;
  }

  html:root body:not(#pc-) :is(.sc-card-features li, .product-box .pb-description-list li):not(:last-child)::after {
    content: " · ";
  }

  /* Price on one line: the amounts bold, "From" and the unit small and grey. */
  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .product-box .pb-price-summary, .related-product-price, .srp-price) {
    overflow: hidden;
    color: var(--pc-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(strong, ins, .pb-price strong) {
    font-size: 15.5px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) del {
    color: var(--pc-muted);
    font-size: 12.5px;
    font-weight: 600;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(.pb-price small, strong + small, sup, .pb-price) {
    color: var(--pc-muted);
    font-size: 12.5px !important;
    font-weight: 600;
  }

  html:root body:not(#pc-) :is(.sc-card-price small, .sc-card-price-label, .sc-card-price-value) {
    display: inline;
  }

  /* Trust badges: small; a badge that does not fit moves to a second row. */
  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-trust {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
  }

  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-t {
    min-width: 0;
    padding: 3px 8px 3px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Pills never wrap. */
@media (max-width: 1199.98px) {
  html:root body:not(#pc-) :is(.hc-pcard-kicker, .sc-card-cat) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---------- Phones (<768px): minimal two-up cards ----------
   Photo, pill, name, one trust badge, price and "Shop now". The detail line
   goes (the Full catalog tiles drop it on phones too) and the struck-through
   price goes: the photo's sale badge already says "15% off", and the price
   now fits on one line instead of wrapping into three. */
@media (max-width: 767.98px) {
  html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card) {
    border-radius: 14px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-body, .sc-card-body, .product-box .pb-details, .srp-card__body) {
    gap: 3px;
    padding: 10px 12px 12px;
  }

  html:root body:not(#pc-) .related-product > a {
    gap: 3px;
    padding-bottom: 12px;
  }

  html:root body:not(#pc-) .related-product > a > :not(.related-product-image) {
    margin-right: 12px;
    margin-left: 12px;
  }

  html:root body:not(#pc-) .related-product > a > .related-product-image {
    margin-bottom: 7px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-kicker, .sc-card-cat) {
    max-width: 100%;
    margin-bottom: 1px;
    padding: 1px 7px;
    overflow: hidden;
    font-size: 9.5px;
    letter-spacing: 0.05em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html:root body:not(#pc-) :is(.hc-pcard-name, .sc-card-title, .product-box .pb-title, .related-product-name, .srp-card__title) {
    display: -webkit-box;
    margin-top: 1px;
    overflow: hidden;
    font-size: 14.5px !important;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html:root body:not(#pc-) :is(.hc-pcard-desc, .sc-card-features, .product-box .pb-description-list, .srp-card__excerpt, .sc-card-rating, .product-box .pb-details .product-rating) {
    display: none;
  }

  /* Trust: the first badge only, small. */
  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-trust {
    flex-wrap: nowrap;
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 10.5px;
  }

  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-trust > .pc-t:not(.pc-t--clock) ~ .pc-t {
    display: none;
  }

  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-t {
    min-width: 0;
    padding: 2px 7px 2px 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .related-product, .srp-card) .pc-t::before {
    width: 12px;
    height: 12px;
  }

  /* Price: "From $1.34 per ft²" on one line, the amount the only bold part. */
  html:root body:not(#pc-) :is(.hc-pcard-foot, .sc-card-foot, .srp-card__foot) {
    gap: 2px;
    padding-top: 6px;
  }

  html:root body:not(#pc-) .product-box .start-at-pricing {
    padding-top: 6px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .product-box .pb-price-summary, .related-product-price, .srp-price) {
    margin-top: auto;
    overflow: hidden;
    color: var(--pc-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Sale cards: "From ~~$1.58~~ $1.34/ft²" on one line (owner 2026-11-23).
     The old price is small and grey so the line fits a two-up phone card. */
  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) del {
    display: inline;
    margin-right: 1px;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-color: #94a3b8;
    text-decoration-thickness: 1px;
  }

  /* Older phone rules turn this into a line break; keep everything on one line. */
  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) del::after {
    content: none;
    display: none;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .product-box .start-at-pricing) :is(del, strong) {
    margin: 0;
  }

  /* Related and search prices are plain text (no <strong>): the whole line
     is the price, so it is the bold part; "From" and the old price stay grey. */
  html:root body:not(#pc-) :is(.related-product .related-product-price, .srp-card .srp-price) {
    color: var(--pc-ink);
    font-size: 14px;
    font-weight: 800;
  }

  html:root body:not(#pc-) .related-product-price > small {
    font-size: 11.5px !important;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price):has(del) {
    line-height: 1.45;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(strong, ins, .pb-price strong) {
    color: var(--pc-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(small, .pb-price small, strong + small, sup, .pb-price) {
    color: var(--pc-muted);
    font-size: 11.5px !important;
    font-weight: 600;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) sup {
    font-size: 8px !important;
  }

  html:root body:not(#pc-) :is(.sc-card-price small, .sc-card-price-label, .sc-card-price-value) {
    display: inline;
  }

  /* Search results: two cards a row like every other grid, "Shop now" spelled out. */
  html:root body:not(#pc-) .srp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  html:root body:not(#pc-) .srp-more > span {
    display: inline;
  }

  html:root body:not(#pc-) :is(.hc-pcard-button, .sc-card-cta, .product-box .pb-shop-cta, .product-box .pb-cta, .related-product-cta, .srp-more) {
    gap: 4px;
    margin-top: 4px;
    font-size: 13px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-button, .sc-card-cta, .pb-shop-cta, .pb-cta, .related-product-cta, .srp-more) svg {
    width: 14px;
    height: 14px;
  }

  /* Photo badges: smaller so they never cover the product. */
  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .srp-card) :is(.hc-gal-flags, .sale-badge) {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  html:root body:not(#pc-) .hc-pcard .hc-gal-flag {
    padding: 2px 8px;
    font-size: 10.5px;
    line-height: 1.5;
  }

  html:root body:not(#pc-) .hc-pcard .hc-gal-flag svg {
    width: 10px;
    height: 10px;
  }

  html:root body:not(#pc-) :is(.hc-pcard, .sc-card, .product-box, .srp-card) .sale-badge {
    font-size: 10px;
  }

  html:root body:not(#pc-) :is(.hc-pcard .hc-gal-count, .sc-card .sc-gal-count) {
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    font-size: 10.5px;
  }

  html:root body:not(#pc-) .hc-pcard .hc-gal-dots {
    display: none;
  }
}

/* Small phones: tighter still. */
@media (max-width: 374.98px) {
  html:root body:not(#pc-) :is(.hc-pcard-body, .sc-card-body, .product-box .pb-details, .srp-card__body) {
    padding: 9px 10px 11px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-name, .sc-card-title, .product-box .pb-title, .related-product-name, .srp-card__title) {
    font-size: 13.5px !important;
  }
}

/* Touch screens: no lift, just the press feedback motion.css gives. */
@media (hover: none) {
  html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card):is(:hover, :focus-within) {
    box-shadow: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:root body:not(#pc-) :is(.hc-pcard, .sc-card-inner, .product-box, .related-product, .srp-card),
  html:root body:not(#pc-) :is(.hc-pcard-media .hc-gal-slide img, .sc-card-media img, .product-box .pb-image-top img, .related-product-image img, .srp-card__img) {
    transition: none;
  }
}

/* ---------- The ² in "/ft²": a small raised digit at every width ----------
   Matches the "/ft" beside it in colour and weight. The extra :not(#pc-) on
   the sup outranks the older size rules above and in the card stylesheets. */
html:root body:not(#pc-) :is(.hc-pcard-price, .hc-feature-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price, .sf-type-price) sup:not(#pc-) {
  position: static;
  top: auto;
  margin-left: 1px;
  color: inherit;
  font-size: 0.62em !important;
  font-weight: inherit;
  line-height: 0;
  vertical-align: 0.5em;
}

/* ---------- Price fallback on phones and tablets ----------
   Regular and sale price share one line. A price too long for the card
   (e.g. "From $112.52 $95.64/item" on a 360px phone) wraps before the sale
   price instead of being cut off with "...": "$95.64/item" has no spaces, so
   it always moves as one piece. */
@media (max-width: 1199.98px) {
  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .product-box .pb-price-summary, .related-product-price, .srp-price) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(del, strong, ins, sup) {
    white-space: nowrap;
  }
}

/* Phones: sizes that keep "From ~~$43.98~~ $37.38/item" on one line in a
   two-up card on a 360px screen. */
@media (max-width: 767.98px) {
  html:root body:not(#pc-) :is(.hc-pcard-body, .sc-card-body, .product-box .pb-details, .srp-card__body) {
    padding-right: 10px;
    padding-left: 10px;
  }

  html:root body:not(#pc-) .related-product > a > :not(.related-product-image) {
    margin-right: 10px;
    margin-left: 10px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .product-box .pb-price-summary, .related-product-price, .srp-price) {
    font-size: 10.5px;
    word-spacing: -0.5px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(small, del, .pb-price small, strong + small, .pb-price, .pb-title-short) {
    font-size: 10.5px !important;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(strong, ins) {
    font-size: 14px;
    word-spacing: 0;
  }

  html:root body:not(#pc-) :is(.related-product .related-product-price, .srp-card .srp-price) {
    font-size: 13px;
  }
}

/* ---------- Phones: "From ~~$43.98~~ $37.38/item" on one line ----------
   Owner 2026-11-23: keep "From" on sale cards and make the price type smaller
   instead. "From", the old price and the unit are 9px grey; the sale price
   is the one bold figure. These rules come last and carry :not(#pc-) on the
   inner elements so they outrank every earlier price size. */
@media (max-width: 767.98px) {
  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .product-box .pb-price-summary, .related-product-price, .srp-price) {
    font-size: 9px;
    letter-spacing: 0;
    word-spacing: -1px;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(small, del, .pb-title-short, .sc-card-price-label, .pb-price):not(#pc-) {
    display: inline;
    margin: 0;
    font-size: 9px !important;
    letter-spacing: 0;
  }

  html:root body:not(#pc-) :is(.hc-pcard-price, .sc-card-price, .product-box .start-at-pricing, .related-product-price, .srp-price) :is(strong, ins):not(#pc-) {
    margin: 0;
    font-size: 12.5px;
    letter-spacing: -0.01em;
    word-spacing: 0;
  }

  /* Search and related: the price is plain bold text, so size the line itself. */
  html:root body:not(#pc-) :is(.related-product .related-product-price, .srp-card .srp-price):not(#pc-) {
    font-size: 11.5px;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 379.98px) {
  html:root body:not(#pc-) :is(.related-product .related-product-price, .srp-card .srp-price):not(#pc-) {
    font-size: 10.5px;
  }
}

/* Small phones (under 380px): 8px side padding gives six-figure sale prices
   ("From ~~$269.50~~ $229.08/item") the last few pixels they need. */
@media (max-width: 379.98px) {
  html:root body:not(#pc-) :is(.hc-pcard-body, .sc-card-body, .product-box .pb-details, .srp-card__body):not(#pc-) {
    padding-right: 8px;
    padding-left: 8px;
  }

  html:root body:not(#pc-) .related-product > a > :not(.related-product-image):not(#pc-) {
    margin-right: 8px;
    margin-left: 8px;
  }
}
