/* ezpet-home-b.css — only what reference.css lacks for compare / recipes / shopcat. */

/* compare: the draft cropped each tile photo with an <svg viewBox>; a merchant photo is an <img> */
.cmpick__media { background: var(--c-surface); }
.cmpick__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.cmpick__tile:hover .cmpick__media img { transform: scale(1.04); }
img.cmp__thumb { object-fit: cover; }
/* the head's Add to cart sits in EasyStore's add-to-cart-button (transplant.css .card__addwrap) */
.cmp__addwrap { margin-top: .75rem; }
.cmp__addwrap .cmp__buy { margin-top: 0; }
.cmp__buy.transparent { color: transparent; }

/* recipes: the round add button keeps its corner; its add-to-cart-button wrapper takes the position */
.flip .flip__addwrap { position: absolute; top: .75rem; right: .75rem; z-index: 2; }
.flip__addwrap .flip__add { position: static; }
.flip__add.transparent > * { visibility: hidden; }

/* shopcat: the skeleton a lazy tab shows until its products arrive */
.shopcat__ghosts { overflow: hidden; }
.shopcat__ghosts > li { aspect-ratio: var(--card-ratio, 1); border-radius: var(--radius-card); background: var(--c-surface-2); animation: shopcat-pulse 1.2s ease-in-out infinite alternate; }
@keyframes shopcat-pulse { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .shopcat__ghosts > li { animation: none; } }

/* prices come from snippets/price (a flex row): centre them where the draft centres the text */
.cmpick__price, .cmp__price { display: block; }
.cmpick__price .price-container, .cmp__price .price-container { justify-content: center; }
.flip__price .price-container { display: inline-flex; }
/* the spinner sits above the round button (.flip__add carries z-index 2) */
.flip .flip__addwrap .loading-overlay { z-index: 3; }
