/* ==========================================================================
   Component: product-tag  →  snippets/product-tag.liquid + assets/component-product-tag.css
   The small product card pinned over a photo: Shop The Look's hotspot cards (Figma 1387-2610)
   and the Testimonials product (1164-3161) are the same 303×102 block.
   A 102px image tile and a 200px info box, 1px apart, both white with a 4px radius.
     Info box  title (Body/S) → 8px → price (Body/L) at the top, 16px in; "VIEW PRODUCT" link
               12px off the bottom.
   Markup:
     <div class="product-tag">
       <a class="product-tag__media" href="…" tabindex="-1" aria-hidden="true"><img class="product-tag__image" …></a>
       <div class="product-tag__info">
         <div class="product-tag__text"><h3 class="product-tag__title">…</h3><p class="product-tag__price">…</p></div>
         <a class="button button--tertiary product-tag__link" href="…"><span>VIEW PRODUCT</span>{% render 'icon-arrow-up-right' %}</a>
       </div>
     </div>
   Image settings on .product-tag__image: --focal-x / --focal-y / --zoom (cover photo, the hero
   model), or .product-tag__image--cutout + --img-x / --img-y / --img-w / --img-h / --img-shadow
   (a cut-out placed in the tile, the product-card model).
   ========================================================================== */
.product-tag {
  display: flex;
  gap: 1px;
}

.product-tag__media {
  position: relative;
  flex: none;
  width: 102px;
  height: 102px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-white);
}

.product-tag__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-x, 50%) var(--focal-y, 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focal-x, 50%) var(--focal-y, 50%);
}

/* Figma's cut-out: 92×119 at (5, 4), so its lower part runs past the tile and is cropped */
.product-tag__image--cutout {
  inset: auto;
  top: var(--img-y, 0);
  left: var(--img-x, 0);
  width: var(--img-w, 100%);
  max-width: none;
  height: var(--img-h, auto);
  object-fit: fill;
  transform: none;
  filter: var(--img-shadow, none);
}

/* Text 16px from the top, link 12px from the bottom. The tertiary button's 1px hover underline
   sits under the link, so the padding gives that pixel back. */
.product-tag__info {
  display: flex;
  flex-direction: column;
  width: 200px;
  min-height: 102px;
  padding: 16px 12px 11px;
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text-primary);
}

.product-tag__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-tag__title {
  overflow: hidden;
  font-size: var(--text-body-s-size);
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Figma Body/L: Inter 500 16px / 1.6 */
.product-tag__price {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* Figma Button/M carries 4% tracking */
.product-tag__link {
  align-self: flex-start;
  margin-top: auto;
  letter-spacing: 0.04em;
}
