/* Shared by the public catalogue and the editor preview. */
.machine-card--presentation {
  position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden;
  border: 1px solid #e0d8cf; border-radius: 20px; background: #fff;
  box-shadow: 0 8px 25px rgb(48 32 20 / 6%); color: #171717;
  font-family: 'Manrope', sans-serif; transition: border-color .2s, box-shadow .2s;
}
.machine-card--presentation[hidden], .machine-card--presentation [hidden] { display: none !important; }
.machine-card--presentation:hover { transform: none; border-color: #cfc1b5; box-shadow: 0 12px 30px rgb(48 32 20 / 9%); }
.machine-card--presentation .machine-card__media {
  display: flex; align-items: center; justify-content: center; margin: 0; padding: 20px;
  aspect-ratio: 1.3; border: 0; border-radius: 0; box-shadow: none; background: #f1ece5; overflow: hidden;
}
.machine-card--presentation .machine-card__media > a,
.machine-card--presentation .machine-card__media picture { display: block; width: 100%; height: 100%; }
.machine-card--presentation .machine-card__image { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; transform: none; }
.machine-card--presentation:hover .machine-card__media { transform: none; }
.machine-card--presentation .machine-card__content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 22px; }
.machine-card--presentation .machine-card__category { margin-bottom: 8px; color: #6f6a66; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.machine-card--presentation :is(h2,h3) { display: block; min-height: 0; margin: 0 0 6px; color: #111; font-family: inherit; font-size: 1.65rem; font-weight: 800; line-height: 1.2; letter-spacing: -.035em; overflow: visible; overflow-wrap: anywhere; }
.machine-card--presentation .machine-card__summary { display: block; min-height: 0; margin: 0; color: #48433f; font-size: .9rem; font-weight: 400; line-height: 1.55; overflow: visible; overflow-wrap: anywhere; }
.machine-card__coffee { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: .88rem; line-height: 1.4; }
.machine-card__coffee svg, .machine-card__coffee-icon { flex: 0 0 27px; width: 27px; height: 34px; }
.machine-card__coffee-icon { display: block; object-fit: contain; }
.machine-card__beverages { border-top: 1px solid #e5e0dc; padding: 16px 0 18px; margin-top: 20px; }
[data-preview-coffee]:has(.machine-card__coffee) + .machine-card__beverages { margin-top: 0; }
.machine-card__section-label { display: block; margin-bottom: 12px; color: #706b66; font-size: .78rem; font-weight: 800; }
.machine-card__beverage-list { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 0; margin: 0; list-style: none; font-size: .82rem; line-height: 1.5; }
.machine-card__beverage-list > li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.machine-card__more { display: inline-flex; align-items: center; justify-content: center; padding: 3px 10px; border-radius: 30px; background: #efedeb; color: #57534f; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.machine-card--presentation .machine-card__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e5e0dc; }
.machine-card--presentation .machine-card__actions::before { content: none; }
.machine-card__primary, .machine-card__quote { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; border-radius: 9px; font-size: .88rem; font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none; }
.machine-card__primary { gap: 12px; background: #b01919; color: #fff; }
.machine-card__primary > span { font-size: 1.55em; line-height: 1; }
a.machine-card__primary:hover { background: #901313; color: #fff; }
.machine-card__quote { color: #b01919; background: transparent; }
a.machine-card__quote:hover { background: #fff5f3; color: #901313; }
.machine-card--presentation a:focus-visible { outline: 3px solid #b01919; outline-offset: 3px; }
.machine-card--presentation .machine-card__primary:focus-visible { outline-color: #171717; }
@media (max-width: 400px) { .machine-card--presentation .machine-card__content { padding: 18px; } .machine-card__beverage-list { gap: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { .machine-card--presentation { transition: none; } }
.product-beverages { margin: 22px 0; padding: 20px 0; border-block: 1px solid #e5e0dc; }
.product-beverages h2 { margin: 0 0 14px; font-size: 1rem; }
.product-beverages ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.product-beverages li { padding: 7px 12px; border-radius: 8px; background: #f4f0eb; font-size: .88rem; overflow-wrap: anywhere; max-width: 100%; }
.product-beverages p, [data-product-color-status] { color: #625a53; font-size: .88rem; line-height: 1.6; }

/* Scope public motion to the homepage; the catalogue editor stays unchanged. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .machine-card--presentation .machine-card__image {
    transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
  }
  .home-page .machine-card__primary > span {
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1);
  }
  .home-page .machine-card--presentation:focus-within .machine-card__image { transform: scale(1.035); }
  .home-page .machine-card__primary:focus-visible > span { transform: translateX(4px); }
  @media (hover: hover) and (pointer: fine) {
    .home-page .machine-card--presentation:hover .machine-card__image { transform: scale(1.035); }
    .home-page .machine-card--presentation:hover .machine-card__primary > span { transform: translateX(4px); }
  }
}
