.mg-card{background:var(--mg-card-bg,#fff);color:var(--mg-card-ink,#10069f);font-family:Arial,Helvetica,sans-serif;display:flex;flex-direction:column;height:100%;position:relative;text-align:center}
.mg-card__media{position:relative;overflow:hidden;background:#fff}
.mg-card__image{display:block;aspect-ratio:1/1}
.mg-card__image img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .25s ease}
.mg-card__image:hover img{transform:scale(1.025)}
.mg-card__badge{position:absolute;top:10px;left:10px;border-radius:30px;background:#e60023;color:#fff;font:700 12px/1 Arial,sans-serif;padding:7px 11px;z-index:2;white-space:nowrap}
.mg-card__quick{position:absolute;right:10px;bottom:10px;z-index:2}
.mg-card__quick a{display:inline-block;color:#10069f;background:#fff;border:1px solid #10069f;padding:7px 10px;font-size:12px;text-decoration:none}
.mg-card__quick a:hover,.mg-card__quick a:focus-visible{background:#10069f;color:#fff}
.mg-card__body{display:flex;align-items:center;flex-direction:column;gap:var(--mg-card-gap,12px);padding:var(--mg-card-gap,12px) 8px 14px;flex:1}
.mg-card__title{font-size:var(--mg-card-font,16px);line-height:1.25;font-weight:700;margin:0;letter-spacing:0;text-transform:none}
.mg-card__title a{color:var(--mg-card-ink,#10069f);text-decoration:none}
.mg-card__rating{color:#10069f;line-height:1}.mg-card__rating .star-rating{margin:0 auto}
.mg-card__price{font-size:15px;color:#222;line-height:1.3}.mg-card__price del{color:#666;opacity:1}.mg-card__price ins,.mg-card__price ins .amount{color:#e60023;text-decoration:none}
.mg-card__stock{font-size:13px;color:#444;margin:0}.mg-card__body .button{display:flex;align-items:center;justify-content:center;margin:auto 0 0;min-height:42px;width:100%;padding:8px 12px;border:1px solid var(--mg-card-button,#10069f);background:var(--mg-card-button,#10069f);color:#fff;font-size:14px;font-weight:600;text-transform:lowercase;letter-spacing:0;line-height:1.2}
.mg-card__body .button:hover,.mg-card__body .button:focus-visible{background:#fff;color:var(--mg-card-button,#10069f)}
@media(max-width:600px){.mg-card__body{padding-inline:4px}.mg-card__title{font-size:14px}.mg-card__price{font-size:14px}.mg-card__badge{font-size:11px;padding:6px 9px}.mg-card__quick a{font-size:11px}}
@media(prefers-reduced-motion:reduce){.mg-card__image img{transition:none}}
/* The slot retains native outer hooks; suppress their sale flash only when our card renders its own. Other native badges remain visible. */
.product-small:has(.mg-card) .badge-container .badge:has(.on-sale){display:none}
/* Variable-product sale ranges may contain no <ins>; they still represent the active sale price. */
.product-small.sale:has(.mg-card) .mg-card__price > .amount,
.product-small.sale:has(.mg-card) .mg-card__price > .woocommerce-Price-amount{color:#e60023}
.product-small:has(.mg-card) .badge-container .badge:has(.on-sale){display:none!important}
/* Retain non-sale native labels while keeping them clear of the campaign badge. */
.product-small:has(.mg-card) .badge-container{top:44px!important;left:10px!important}
/* Some imported source images include a top-left “new.” mark in the image itself. */
.mg-card__badge{left:auto;right:10px}
