/* Product card extras (class-product-cards.php): badges in the photo's top-left corner (under the red sale badge when
   there is one), the wishlist heart top right and the "by [maker]" line above the name. Loaded only when a shop
   switches one of them on. Theme-independent; colours come from the theme palette where it makes sense. */
ul.products li.product,.em-category-card{position:relative}
.em-category-card{--em-card-inset:10px}
ul.products li.product{--em-card-inset:20px}

.em-card-badges{position:absolute;top:var(--em-card-inset);left:var(--em-card-inset);z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:5px;pointer-events:none}
.em-category-picture .em-card-badges{top:10px;left:10px}
.em-card-badges.em-card-badges-after-sale{top:calc(var(--em-card-inset) + 32px)}
.em-category-picture .em-card-badges.em-card-badges-after-sale{top:42px}
.em-card-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.2;letter-spacing:.01em;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.em-card-badge-new{background:var(--em-purple,#76528d);color:#fff}
.em-card-badge-low{background:#fff3d6;color:#7a4b00;border:1px solid #f0d08a}
.em-card-badge-sold{background:#5f5a60;color:#fff}

/* Heart: a white circle on the photo. The guest version is a link to the login page. */
.em-card-heart-form,a.em-card-heart{position:absolute;top:var(--em-card-inset);right:var(--em-card-inset);z-index:4;margin:0}
.em-card-heart-form{display:block!important}
.em-card-heart{display:flex!important;align-items:center;justify-content:center;width:36px;height:36px;min-height:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:var(--em-charcoal,#382b40)!important;box-shadow:0 3px 10px rgba(0,0,0,.14)!important;cursor:pointer;transition:transform .15s ease,color .15s ease}
.em-card-heart:hover{transform:scale(1.08);color:var(--em-wish,#c62828)!important}
.em-card-heart:focus-visible{outline:2px solid var(--em-purple,#76528d);outline-offset:2px}
.em-card-heart .em-wishlist-heart{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.em-card-heart[aria-pressed=true]{color:var(--em-wish,#c62828)!important}
.em-card-heart[aria-pressed=true] .em-wishlist-heart{fill:currentColor}
.em-card-heart[aria-busy=true]{opacity:.6;cursor:progress}

.em-card-maker{margin:0 0 3px!important;padding:0!important;font-size:12.5px!important;line-height:1.35!important;color:var(--em-sub,#625961)!important}

@media(max-width:600px){ul.products li.product{--em-card-inset:14px}.em-card-heart{width:32px;height:32px}.em-card-badge{padding:3px 8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.em-card-heart{transition:none}.em-card-heart:hover{transform:none}}
