/* Anahata v2 — product cell. v1 collection look (2026-09-28): photo fills the
   cell, Aboreto caps name + bold price centred, 44px (phones) / 32px above
   the bottom. */

.product-cell {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--a-photo-ground);
  color: var(--a-ink-pure);
  text-decoration: none;
}

.product-cell__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-cell:hover .product-cell__img {
  transform: scale(1.03);
}

.product-cell__info {
  position: absolute;
  left: var(--a-space-6);
  right: var(--a-space-6);
  bottom: calc(var(--a-space-6) + var(--a-space-5) - 1px);   /* 44px */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* same rule as every card (designer review 2026-09-28): two lines, then "…" */
.product-cell__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--a-font-display);
  font-size: var(--a-fs-tile);
  letter-spacing: var(--a-ls-caps);
  line-height: 1.3;
  text-transform: uppercase;
}

/* dark photo behind the text: cream instead of ink (assets/product-cell-contrast.js
   measures the photo under the name + price) */
.product-cell--on-dark {
  color: var(--a-on-dark);
  text-shadow: var(--a-shadow-text-on-photo);
}

.product-cell__price {
  font-family: var(--a-font-body);
  font-weight: 700;
  font-size: var(--a-fs-cell-price);
  line-height: 24px;
}

.product-cell:focus-visible {
  outline: 2px solid var(--a-ink);
  outline-offset: -4px;
}

@media screen and (min-width: 750px) {
  .product-cell__info {
    bottom: calc(var(--a-space-6) + var(--a-space-2) + 2px);   /* 32px */
  }

  .product-cell__title {
    font-size: var(--a-fs-tile-l);
  }

  .product-cell__price {
    font-size: var(--a-fs-cell-price-l);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-cell__img {
    transition: none;
  }
}
