/*
 * Product tile (Tile::render()): the product shelves and the favourites page. Colours,
 * font, radii and corner smoothing come from the child theme's tokens (style.css :root);
 * the fallbacks keep it usable without them.
 *
 * Text in three steps, so the price leads: price --hs-ink (14.85:1 on white), name a
 * softer navy (10.0:1), review count --hs-muted (6.06:1); sale price --hs-red (4.70:1).
 * The button is --hs-orange-700 with white 13 px text (5.18:1: small text passes).
 */
.hs-tile {
  --hs-tile-ink: var(--hs-ink, #1f2547);
  --hs-tile-title: #3a4064;
  --hs-tile-muted: var(--hs-muted, #5b6180);
  --hs-tile-sale: var(--hs-red, #e11d48);
  --hs-tile-cta: var(--hs-orange-700, #c2410c);
  --hs-tile-cta-hover: #9a3412;
  --hs-tile-star: #f5a524;
  --hs-tile-star-off: #d7dce6;
  --hs-tile-r: var(--hs-r-lg, 20px);

  container: hs-tile / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--hs-tile-ink);
  font-family: var(--hs-font, system-ui, sans-serif);
}

.hs-tile *,
.hs-tile *::before,
.hs-tile *::after {
  box-sizing: border-box;
}

/* ─── Image ──────────────────────────────────────────────────────────────── */

/*
 * Above the name link that covers the tile (z-index 1), so the heart and the button in
 * it stay clickable also while the image lifts on hover (a transform makes it its own
 * stacking layer); clicks on the image itself fall through to the link.
 */
.hs-tile__media {
  position: relative;
  z-index: 2;
  aspect-ratio: 1;
  pointer-events: none;
  margin-bottom: 6px;
  overflow: hidden;
  background: var(--hs-product-backdrop, #ece6df);
  border-radius: var(--hs-tile-r);
  corner-shape: var(--hs-corner-shape, round);
  box-shadow: 0 1px 3px rgb(31 37 71 / 8%);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* A soft shade under the button while it shows. */
.hs-tile__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to bottom, rgb(31 37 71 / 0%), rgb(31 37 71 / 22%));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hs-tile .hs-tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition:
    transform 0.45s ease,
    opacity 0.3s ease;
}

.hs-tile .hs-tile__image--second {
  opacity: 0;
}

/*
 * ─── Loading pictures (tile-images.js, D-086) ───────────────────────────────
 * The box keeps its square on the product backdrop; until the picture is in, a soft light
 * passes over it, then the picture fades in (at once when it was already there: cached,
 * or in before the box was drawn). A picture that fails leaves a quiet gift. Only with
 * the script, which marks <html> and each box: without it pictures show as they come.
 * The light's animation also tells the script a box is drawn waiting (animationstart).
 */
.hs-tile {
  --hs-tile-shine: rgb(255 255 255 / 70%);
  --hs-tile-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='4.5' rx='2'/%3E%3Cpath d='M5 12.5v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6M12 8v12.5'/%3E%3Cpath d='M12 8c-.5-2.5-1.75-4.5-3.5-4.5-1.15 0-1.9.85-1.65 1.9.35 1.55 2.4 2.35 5.15 2.6Zm0 0c.5-2.5 1.75-4.5 3.5-4.5 1.15 0 1.9.85 1.65 1.9-.35 1.55-2.4 2.35-5.15 2.6Z'/%3E%3C/svg%3E");
}

.hs-media-js .hs-tile__media:not(.is-loaded) .hs-tile__image,
.hs-media-js .hs-tile .hs-tile__image--second:not(.is-loaded) {
  visibility: hidden;
}

/* The light: a band that crosses the box (transform only, so it stays off the main thread). */
.hs-media-js .hs-tile__media:not(.is-loaded, .is-broken)::before,
.hs-tile--skeleton .hs-tile__media::before,
.hs-tile__line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--hs-tile-shine) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: hs-tile-shimmer 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hs-tile-shimmer {
  to {
    transform: translateX(100%);
  }
}

/* Reduced motion (below): nothing changes, the animation only starts. */
@keyframes hs-tile-still {
  to {
    opacity: 1;
  }
}

.hs-tile__media.is-fading .hs-tile__image:not(.hs-tile__image--second) {
  animation: hs-tile-image-in 0.35s ease;
}

@keyframes hs-tile-image-in {
  from {
    opacity: 0;
  }
}

/* The picture failed: the store's gift, quiet, in the middle of the box. */
.hs-tile__media.is-broken::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 30%;
  height: 30%;
  margin: auto;
  background: rgb(31 37 71 / 22%);
  -webkit-mask: var(--hs-tile-gift) center / contain no-repeat;
  mask: var(--hs-tile-gift) center / contain no-repeat;
  pointer-events: none;
}

/*
 * The second picture shows on hover only: touch screens never fetch it (a lazy picture
 * without a box does not load); with the script, mouse screens fetch it after the first.
 */
@media (hover: none), (pointer: coarse) {
  .hs-tile .hs-tile__image--second {
    display: none;
  }
}

.hs-media-js .hs-tile__media:not(.is-loaded) .hs-tile__image--second {
  display: none;
}

/* The favourite heart (wishlist module; its look is in wishlist.css). */
.hs-tile .hs-wish {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  width: 32px;
  height: 32px;
  pointer-events: auto;
}

.hs-tile .hs-wish .hs-wish__icon {
  width: 18px;
  height: 18px;
}

/* ─── Name, price, rating ────────────────────────────────────────────────── */

.hs-tile .hs-tile__title {
  display: -webkit-box;
  min-height: 2.7em; /* two lines on every tile, so the prices line up */
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--hs-tile-title);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  transition: color 0.15s ease;
}

.hs-tile .hs-tile__link {
  color: inherit;
  text-decoration: none;
}

/* The name link covers the tile: one link; the heart and the button sit above it. */
.hs-tile__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hs-tile .hs-tile__link:focus-visible {
  outline: none;
}

.hs-tile:has(.hs-tile__link:focus-visible) .hs-tile__media {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 2px;
}

.hs-tile .hs-tile__price {
  margin: 0;
  color: var(--hs-tile-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.hs-tile .hs-tile__price .woocommerce-Price-currencySymbol {
  font-size: 0.85em;
}

.hs-tile .hs-tile__price del {
  margin-right: 4px;
  color: var(--hs-tile-muted);
  font-size: 12px;
  font-weight: 500;
  opacity: 1;
}

.hs-tile .hs-tile__price ins {
  color: var(--hs-tile-sale);
  text-decoration: none;
  background: none;
}

.hs-tile .hs-tile__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--hs-tile-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

/* Five stars, filled up to the average (--hs-tile-stars, set per tile). */
.hs-tile__stars {
  --hs-tile-star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 .8l2.8 5.6 6.2.9-4.5 4.4 1.1 6.2L10 15l-5.6 2.9 1.1-6.2L1 7.3l6.2-.9Z'/%3E%3C/svg%3E");

  flex: none;
  width: 66px;
  height: 12px;
  background: linear-gradient(
    90deg,
    var(--hs-tile-star) var(--hs-tile-stars, 0%),
    var(--hs-tile-star-off) var(--hs-tile-stars, 0%)
  );
  -webkit-mask: var(--hs-tile-star-shape) left center / 13.2px 12px repeat-x;
  mask: var(--hs-tile-star-shape) left center / 13.2px 12px repeat-x;
}

.hs-tile__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── Button ─────────────────────────────────────────────────────────────── */

.hs-tile__actions {
  position: absolute;
  inset: auto 8px 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.hs-tile .hs-tile__cta {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  background: var(--hs-tile-cta);
  border: 0;
  border-radius: var(--hs-r-pill, 999px); /* pills stay round */
  box-shadow: 0 8px 18px -8px rgb(154 52 18 / 70%);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.hs-tile .hs-tile__cta:hover,
.hs-tile .hs-tile__cta:focus-visible {
  color: #fff;
  background: var(--hs-tile-cta-hover);
}

.hs-tile .hs-tile__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--hs-focus, #1f2547);
}

.hs-tile__cta-icon {
  flex: none;
}

/* Narrow tiles: the text alone. */
@container hs-tile (max-width: 132px) {
  .hs-tile__cta-icon {
    display: none;
  }
}

/* Big tiles (shelf layout v2, favourites page): larger type, heart and button. */
@container hs-tile (min-width: 220px) {
  .hs-tile .hs-tile__title {
    font-size: 15.5px;
  }

  .hs-tile .hs-tile__price {
    font-size: 18px;
  }

  .hs-tile .hs-tile__price del {
    font-size: 13.5px;
  }

  .hs-tile .hs-tile__rating {
    font-size: 13px;
  }

  .hs-tile__stars {
    width: 77px;
    height: 14px;
    -webkit-mask-size: 15.4px 14px;
    mask-size: 15.4px 14px;
  }

  .hs-tile .hs-wish {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .hs-tile .hs-wish .hs-wish__icon {
    width: 21px;
    height: 21px;
  }

  .hs-tile__actions {
    inset: auto 12px 12px;
  }

  .hs-tile .hs-tile__cta {
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    font-size: 15px;
  }
}

/*
 * Wide screens (≥ 2400 px, the theme's widest content step): big tiles get one step
 * larger type again. Only there: stacked shelves on small desktops have wide tiles too.
 */
@media (min-width: 2400px) {
  @container hs-tile (min-width: 300px) {
    .hs-tile .hs-tile__title {
      font-size: 16.5px;
    }

    .hs-tile .hs-tile__price {
      font-size: 19.5px;
    }

    .hs-tile .hs-tile__price del {
      font-size: 14px;
    }

    .hs-tile .hs-tile__rating {
      font-size: 13.5px;
    }
  }
}

/*
 * WooCommerce's add-to-cart states. Loading: the cart rocks on its wheels. Added: the
 * cart turns into a check (a morph, CardParts::cart_icon() and cart-toast.js, which
 * also pops the button) and the button turns blue (the site's second colour, apart from
 * the orange "add"); its "View cart" link is not shown in a tile. Also the card's round
 * button, whose own background and hover come later in this file. The focus ring's
 * shadow stays.
 */
.hs-tile .hs-tile__cta.loading {
  opacity: 0.85;
  pointer-events: none;
}

.hs-tile .hs-tile__cta.loading .hs-tile__cta-morph {
  transform-origin: 50% 80%;
  animation: hs-tile-cart-rock 0.35s ease-in-out infinite alternate;
}

@keyframes hs-tile-cart-rock {
  from {
    transform: translateX(-1.5px) rotate(-8deg);
  }

  to {
    transform: translateX(1.5px) rotate(8deg);
  }
}

.hs-tile .hs-tile__cta.added,
.hs-tile.hs-tile--card .hs-tile__cta.added {
  background: var(--hs-blue-600, #0070e0);
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.hs-tile .hs-tile__cta.added:not(:focus-visible) {
  box-shadow: 0 10px 18px -10px rgb(0 112 224 / 75%);
}

.hs-tile .hs-tile__cta.added:is(:hover, :focus-visible),
.hs-tile.hs-tile--card .hs-tile__cta.added:is(:hover, :focus-visible) {
  background: var(--hs-blue-700, #185c9f);
}

.hs-tile .added_to_cart {
  display: none;
}

/*
 * ─── Mouse: the button slides in on hover and on keyboard focus ─────────────
 * The whole tile is the hover target, so the pointer can travel to the button.
 */
@media (hover: hover) and (pointer: fine) {
  .hs-tile__actions {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.2s ease,
      transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  /* Also while WooCommerce adds it to the cart and after: the result stays in view. */
  .hs-tile:hover .hs-tile__actions,
  .hs-tile:has(:focus-visible) .hs-tile__actions,
  .hs-tile:has(.hs-tile__cta.loading, .hs-tile__cta.added) .hs-tile__actions {
    opacity: 1;
    transform: none;
  }

  .hs-tile:hover .hs-tile__media,
  .hs-tile:has(:focus-visible) .hs-tile__media {
    box-shadow: 0 18px 32px -16px rgb(31 37 71 / 45%);
    transform: translateY(-4px);
  }

  .hs-tile:hover .hs-tile__media::after,
  .hs-tile:has(:focus-visible) .hs-tile__media::after {
    opacity: 1;
  }

  .hs-tile:hover .hs-tile__image {
    transform: scale(1.06);
  }

  .hs-tile.has-second-image:hover .hs-tile__image:not(.hs-tile__image--second) {
    opacity: 0;
  }

  .hs-tile.has-second-image:hover .hs-tile__image--second {
    opacity: 1;
  }

  /* With the script: the first picture stays until the second one is in. */
  .hs-media-js .hs-tile.has-second-image:hover .hs-tile__media:not(.is-second-loaded) .hs-tile__image {
    opacity: 1;
  }

  .hs-tile:hover .hs-tile__title {
    color: var(--hs-tile-cta);
  }
}

/* ─── Touch: a round icon button, always shown ───────────────────────────── */
@media (hover: none), (pointer: coarse) {
  .hs-tile__actions {
    inset: auto 8px 8px auto;
  }

  .hs-tile .hs-tile__cta {
    flex: none;
    width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .hs-tile .hs-tile__cta-icon {
    display: block;
  }

  .hs-tile .hs-tile__cta-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-tile .hs-tile__cta.loading .hs-tile__cta-morph {
    animation: none;
  }

  .hs-tile__media,
  .hs-tile__media::after,
  .hs-tile .hs-tile__image,
  .hs-tile__actions,
  .hs-tile .hs-tile__cta {
    transition: none !important;
  }

  .hs-tile:hover .hs-tile__image,
  .hs-tile:hover .hs-tile__media,
  .hs-tile:has(:focus-visible) .hs-tile__media {
    transform: none;
  }

  /*
   * Loading pictures: no light, the box and the skeleton's lines stay still, pictures
   * come at once. A still animation (no change) keeps telling the script a box is drawn.
   */
  .hs-media-js .hs-tile__media:not(.is-loaded, .is-broken)::before,
  .hs-tile--skeleton .hs-tile__media::before,
  .hs-tile__line::before {
    background: none;
    transform: none;
    animation: hs-tile-still 1ms;
  }

  .hs-tile__media.is-fading .hs-tile__image:not(.hs-tile__image--second) {
    animation: none;
  }
}

/*
 * ─── Badge (tiles given badges: the catalogue's cards) ──────────────────────
 * One per tile (Badge::for_product()). White text on each colour ≥ 4.5:1.
 */
.hs-tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  max-width: calc(100% - 56px);
  padding: 4px 9px;
  overflow: hidden;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--hs-tile-badge, var(--hs-orange-700, #c2410c));
  border-radius: var(--hs-r-pill, 999px);
  box-shadow: 0 4px 10px -4px rgb(31 37 71 / 35%);
  pointer-events: none;
}

.hs-tile__badge--sale {
  --hs-tile-badge: var(--hs-red, #e11d48); /* 4.70:1 */
}

.hs-tile__badge--low-stock {
  --hs-tile-badge: #b45309; /* 5.02:1 */
}

.hs-tile__badge--new {
  --hs-tile-badge: var(--hs-blue-600, #0070e0); /* 4.78:1 */
}

.hs-tile__badge--personalized {
  --hs-tile-badge: #7e22ce; /* 6.88:1 */
}

/*
 * ─── Card variant (the catalogue) ───────────────────────────────────────────
 * A white card; the image sits p inside it with radius R − p (concentric). The name and
 * the rating, then the price over the colours with the round button beside them. The
 * button is always shown (no slide-in): the list is for choosing and buying.
 */
.hs-tile--card {
  --hs-card-r: var(--hs-r-lg, 20px);
  --hs-card-p: 8px;
  --hs-tile-r: max(calc((var(--hs-card-r) - var(--hs-card-p)) * var(--hs-corner-scale, 1)), var(--hs-r-min, 4px));

  gap: 0;
  height: 100%;
  padding: var(--hs-card-p);
  background: var(--hs-surface, #fff);
  border: 1px solid var(--hs-line, #e6e9f0);
  border-radius: var(--hs-card-r);
  corner-shape: var(--hs-corner-shape, round);
  box-shadow: 0 10px 24px -18px rgb(31 37 71 / 35%);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.hs-tile--card .hs-tile__media {
  margin-bottom: 0;
  box-shadow: none;
}

.hs-tile--card .hs-tile__media::after {
  content: none;
}

.hs-tile--card:has(.hs-tile__link:focus-visible) {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 2px;
}

.hs-tile--card:has(.hs-tile__link:focus-visible) .hs-tile__media {
  outline: none;
}

.hs-tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 10px 6px 4px;
}

.hs-tile--card .hs-tile__title {
  color: var(--hs-tile-ink);
  font-size: 14px;
}

.hs-tile .hs-tile__score {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--hs-tile-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 16px;
}

.hs-tile__score-star {
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--hs-tile-star);
  -webkit-mask: var(
      --hs-tile-star-one,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 .8l2.8 5.6 6.2.9-4.5 4.4 1.1 6.2L10 15l-5.6 2.9 1.1-6.2L1 7.3l6.2-.9Z'/%3E%3C/svg%3E")
    )
    center / contain no-repeat;
  mask: var(
      --hs-tile-star-one,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 .8l2.8 5.6 6.2.9-4.5 4.4 1.1 6.2L10 15l-5.6 2.9 1.1-6.2L1 7.3l6.2-.9Z'/%3E%3C/svg%3E")
    )
    center / contain no-repeat;
}

.hs-tile__score-value {
  color: var(--hs-tile-ink);
  font-weight: 800;
}

/*
 * The price row at the card's foot on every card. `.hs-tile` in front: inside a page's
 * content area the theme's `.single-content h3 + *` would take the auto margin away
 * (the account's and the thank-you page's rails), and `.single-content p` would give the
 * rating and the colours a paragraph's margin.
 */
.hs-tile .hs-tile__buy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.hs-tile__offer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

/* Every price orange: --hs-orange-700 on white is 5.18:1. */
.hs-tile--card .hs-tile__price,
.hs-tile--card .hs-tile__price ins {
  color: var(--hs-orange-700, #c2410c);
}

.hs-tile--card .hs-tile__price {
  font-size: 16px;
}

.hs-tile .hs-tile__swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  line-height: 14px;
}

.hs-tile__swatch {
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--hs-swatch, #ccc);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(31 37 71 / 18%);
}

.hs-tile__swatch-more {
  color: var(--hs-tile-muted);
  font-size: 11.5px;
  font-weight: 700;
}

/* The round button: --hs-orange-600 with a white icon (3.33:1, non-text ≥ 3:1). */
.hs-tile.hs-tile--card .hs-tile__cta {
  position: relative;
  z-index: 2;
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: var(--hs-orange-600, #e06c00);
  border-radius: 50%;
  box-shadow: 0 10px 18px -10px rgb(194 65 12 / 80%);
}

.hs-tile.hs-tile--card .hs-tile__cta:hover,
.hs-tile.hs-tile--card .hs-tile__cta:focus-visible {
  background: var(--hs-orange-700, #c2410c);
}

.hs-tile.hs-tile--card .hs-tile__cta-icon {
  display: block;
}

.hs-tile.hs-tile--card .hs-tile__cta-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .hs-tile--card:hover,
  .hs-tile--card:has(:focus-visible) {
    border-color: transparent;
    box-shadow: 0 22px 40px -22px rgb(31 37 71 / 45%);
    transform: translateY(-3px);
  }

  .hs-tile--card:hover .hs-tile__media,
  .hs-tile--card:has(:focus-visible) .hs-tile__media {
    box-shadow: none;
    transform: none;
  }

  .hs-tile--card:hover .hs-tile__title {
    color: var(--hs-orange-700, #c2410c);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-tile--card {
    transition: none;
  }

  .hs-tile--card:hover,
  .hs-tile--card:has(:focus-visible) {
    transform: none;
  }
}

/*
 * ─── Skeleton tile (a list loading: the catalogue while its script fetches a page, the
 * favourites while their tiles come) ──
 * The tile's shape with the image box and two lines (name, price) on the product
 * backdrop, the same light passing over them as over a picture on its way: the tile that
 * takes its place carries on with the same look. Screen readers skip it (aria-hidden).
 * The card variant (the catalogue) gets its card's measured height from the script; the
 * plain one (the favourites) keeps the tile's own name, price and rating boxes, so it is
 * as tall as its tile at every size (a product without a price gets an empty price box,
 * one without ratings no rating box: as on the tile).
 */
.hs-tile--skeleton {
  pointer-events: none;
  box-shadow: none;
}

.hs-tile--skeleton .hs-tile__title {
  display: block;
  padding-top: 0.2em;
}

.hs-tile--skeleton .hs-tile__price:not(:empty) {
  display: flex;
  align-items: center;
  height: 1.3em;
}

.hs-tile--skeleton .hs-tile__rating {
  height: 16px;
}

.hs-tile--skeleton:not(.hs-tile--card) .hs-tile__line--short {
  height: 0.9em;
  margin-top: 0;
}

.hs-tile--skeleton .hs-tile__body {
  gap: 10px;
  min-height: var(--hs-tile-skeleton-body, 104px);
  padding-top: 14px;
}

.hs-tile__line {
  position: relative;
  display: block;
  width: 88%;
  height: 13px;
  overflow: hidden;
  background: var(--hs-product-backdrop, #ece6df);
  border-radius: var(--hs-r-pill, 999px);
}

.hs-tile__line--short {
  width: 42%;
  height: 18px;
  margin-top: auto;
}
