/* Shared product cards: homepage, dealstore and category archives. */
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-md);overflow:hidden;transition:border-color .15s;box-shadow:none;color:var(--c-text)}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card:hover{border-color:var(--c-action);transform:none;box-shadow:none}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-thumb,.pbox-shot){position:relative;display:grid;place-items:center;aspect-ratio:5/4;height:auto;margin:0;padding:0;--thumb-pad:16px;border-radius:0;background:var(--plate);border-bottom:1px solid var(--c-line);color:#5B6A80;font-size:40px;font-weight:700;overflow:hidden}
html[data-theme="dark"] :is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-thumb,.pbox-shot){margin:8px 8px 0;border:0;border-radius:8px}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-thumb,.pbox-shot) img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 2*var(--thumb-pad));height:calc(100% - 2*var(--thumb-pad));object-fit:scale-down}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-card-body{flex:1;display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;min-width:0}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-cat,.pbox-cat){display:block;color:var(--c-muted);font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card .pbox-head{margin:0;min-height:0;line-height:1.4}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-title,.pbox-name){margin:0;color:var(--c-ink);font:600 16px/1.35 var(--font-display);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:2.7em}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-title,.pbox-name) a{color:inherit;text-decoration:none}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card:hover :is(.card-title,.pbox-name){color:var(--c-action)}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card .stretch::after{content:"";position:absolute;inset:0}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card:has(:focus-visible){outline:2px solid var(--c-focus);outline-offset:2px}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-price,.pbox-price){display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;font-variant-numeric:tabular-nums}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.price-free,.price-value.is-free,.pbox-now.free){color:var(--c-price-free);font-size:15px;font-weight:700;line-height:1.2}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.price-now,.pbox-now){color:var(--c-price-now);font-size:17px;font-weight:700;line-height:1.2}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.price-was,.pbox-was){color:var(--c-muted);text-decoration:line-through;font-size:13px;line-height:1.2}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-foot,.pbox-foot){display:flex;align-items:center;justify-content:space-between;gap:6px 10px;flex-wrap:wrap;margin-top:auto;padding-top:8px;border:0;color:var(--c-muted);font-size:13px;line-height:1.4}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card .card-saving{font-size:13px;color:var(--c-price-free);font-weight:600}
.wpc-store .wpc-product-card .card-saving{flex-basis:100%}
.wpc-home .wpc-product-card .card-price.is-deal{padding-top:6px}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-meta{display:flex;align-items:center;justify-content:space-between;gap:6px 10px;flex-wrap:wrap}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card .card-flag{position:absolute;top:12px;left:12px;z-index:1;padding:3px 8px;border:1px solid var(--c-line);border-radius:var(--r-xs);background:var(--c-surface);color:var(--c-ink);font-size:12px;font-weight:600;line-height:1.6;pointer-events:none}
.wpc-home .wpc-product-card .feat-tag{background:var(--promo-bg);color:var(--promo-fg);border-color:transparent}
.wpc-home .wpc-product-card .feat-tag::before{content:"★";margin-right:5px;color:var(--c-star)}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.price-value.is-discount,.pbox-off:not(.exp)){background:var(--c-deal);color:var(--c-on-deal);border-color:transparent;font-size:13px}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-off:not(.exp){padding:0 6px;border:0;font-size:12.5px;font-weight:700;line-height:22px}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-off.exp{padding:0 6px;border:0;background:var(--c-muted);color:var(--c-bg);font-size:12.5px;font-weight:700;line-height:22px}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card .has-flag img{top:38px;transform:translateX(-50%);height:calc(100% - 48px);margin:0}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card:is(.is-expired,.expired) :is(.price-free,.price-value.is-free,.pbox-now){color:var(--c-muted)}
:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card:is(.is-expired,.expired) img{filter:grayscale(1)}
:is(.wpc-store,.wpc-category) .wpc-product-card:is(.is-expired,.expired) :is(.card-title,.pbox-name){color:var(--c-muted);font-weight:500}
:is(.wpc-store,.wpc-category) .wpc-product-card:is(.is-expired,.expired):hover :is(.card-title,.pbox-name){color:var(--c-action)}
:is(.wpc-store,.wpc-category) .wpc-product-card:is(.is-expired,.expired) .wpc-card-body :is(.card-cat,.pbox-cat,.pbox-stats){color:var(--c-muted)}
:is(.wpc-store,.wpc-category) .wpc-product-card:is(.is-expired,.expired) img{opacity:.6}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-stats{display:inline-flex;gap:10px;flex-wrap:wrap}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-stats .stat{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:var(--c-muted)}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-stats a{position:relative;z-index:1}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-stats a:hover{color:var(--c-action)}
:is(.wpc-store,.wpc-category) .wpc-product-card .pbox-stats svg{width:14px;height:14px}
.wpc-home #deals .wpc-product-card{border-color:var(--zone-card-line);box-shadow:0 1px 2px rgba(15,23,42,.05),0 12px 28px -18px rgba(15,23,42,.28)}
.wpc-home #deals .wpc-product-card:hover{border-color:var(--c-action)}
.wpc-home #deals .card-thumb{aspect-ratio:4/3;--thumb-pad:8px;border-bottom:1px solid var(--zone-card-line)}
.wpc-home #deals .card-thumb img{max-width:none;max-height:none}
.wpc-home #deals .price-value.is-free{font-size:21px}
.wpc-home #deals .wpc-card-body{gap:2px;padding:12px 14px 14px}
.wpc-home #deals .card-foot{display:none}
@media(max-width:640px){
 :is(.wpc-home,.wpc-store,.wpc-category) .wpc-card-body{padding:12px}
 :is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.card-thumb,.pbox-shot){--thumb-pad:12px}
 :is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.price-now,.pbox-now){font-size:17px}
 :is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card :is(.price-free,.price-value.is-free,.pbox-now.free){font-size:15px}
 .wpc-home #deals .wpc-card-body{padding:10px 12px 12px}
}
@media(prefers-reduced-motion:reduce){:is(.wpc-home,.wpc-store,.wpc-category) .wpc-product-card{transition:none}}
