/* ==========================================================================
   Products — loop & single, colour/type only (layout left to Storefront)
   ========================================================================== */

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.single-product div.product .woocommerce-product-gallery img {
  border-radius: var(--jl-r-media);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--jl-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  color: var(--jl-ink);
}
.woocommerce ul.products li.product .price,
.single-product div.product p.price,
.single-product div.product span.price {
  color: var(--jl-bordeaux);
  font-weight: 500;
}
.woocommerce ul.products li.product .price del { color: var(--jl-text-40); font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* ==========================================================================
   Loop card (JulilovaCard.dc.html) — square cream media with a hover add-to-cart
   pill, then a serif title + bordeaux price. Markup split into .jl-card__media +
   .jl-card__body by products.php so the button can overlay the photo.
   ========================================================================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  text-align: left;
}

.jl-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: var(--jl-r-media);
  overflow: hidden;
  background: var(--jl-cream-pale);
}
.jl-card__media-link { display: block; width: 100%; height: 100%; }
.woocommerce ul.products li.product .jl-card__media img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 0; /* the media box clips */
  transition: transform .4s ease;
}
.woocommerce ul.products li.product:hover .jl-card__media img { transform: scale(1.05); }

/* add-to-cart pill: centered on the photo, revealed on hover / keyboard focus */
.woocommerce ul.products li.product .jl-card__media .button {
  position: absolute;
  left: 50%;
  bottom: 16px;
  margin: 0;
  padding: 11px 22px;
  font-size: 12.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.woocommerce ul.products li.product:hover .jl-card__media .button,
.woocommerce ul.products li.product:focus-within .jl-card__media .button {
  opacity: 1;
  transform: translate(-50%, 0);
}
.woocommerce ul.products li.product .jl-card__media .button::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M11%205h2v6h6v2h-6v6h-2v-6H5v-2h6z'%20fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M11%205h2v6h6v2h-6v6h-2v-6H5v-2h6z'%20fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* post-add "Voir le panier" link — sit above the pill, always visible */
.woocommerce ul.products li.product .jl-card__media .added_to_cart {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
}

/* body: serif title + bordeaux price, left aligned */
.jl-card__body { display: block; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  margin: 0;
  font-size: 19px;
}
.woocommerce ul.products li.product .price { display: block; margin: 8px 0 0; font-size: 15px; }

/* touch / no-hover devices: keep the CTA visible since there's no hover to reveal it */
@media (hover: none) {
  .woocommerce ul.products li.product .jl-card__media .button { opacity: 1; transform: translate(-50%, 0); }
}
