/* The surrounding list owns its column count. The same card fills a grid cell or a carousel slot. */
article.hmpc-store-card[data-hmpc-store-card] {
    --card-blue: var(--hmpc-store-primary, #174bd9);
    --card-ink: var(--hmpc-store-text, #17253d);
    box-sizing: border-box;
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e7ebf2;
    border-radius: 9px;
    background: #fff;
    color: var(--card-ink);
    box-shadow: 0 2px 7px rgb(31 53 92 / 5%);
    font-family: inherit;
    text-align: start;
    transition: border-color .16s, box-shadow .16s;
}
article.hmpc-store-card[data-hmpc-store-card][hidden] { display: none; }
article.hmpc-store-card[data-hmpc-store-card] :is(a, button) { font-family: inherit; }
article.hmpc-store-card[data-hmpc-store-card] a { text-decoration: none; }
article.hmpc-store-card[data-hmpc-store-card] :is(a, button):focus-visible {
    outline: 2px solid var(--card-blue);
    outline-offset: -2px;
}
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__media, .hmpc-home-config__media) {
    position: relative;
    display: grid;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 9px;
    place-items: center;
    overflow: hidden;
    background: #fff;
}
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__media, .hmpc-home-config__media) img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__placeholder, .hmpc-home-config__placeholder) svg {
    width: 32px; height: 32px; color: #7688a3;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__badges {
    position: absolute;
    inset: 8px 8px auto;
    display: flex;
    gap: 5px;
    align-items: flex-start;
    pointer-events: none;
}
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__discount, .hmpc-home-config__discount) {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--hmpc-store-discount-gradient, #254cc0);
    color: white;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-config__discount { position: absolute; inset: 8px auto auto 8px; }
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__hot {
    margin-left: auto;
    padding: 4px 6px;
    border-radius: 4px;
    background: var(--hmpc-store-danger-gradient, #d92548);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
}
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__body, .hmpc-home-config__body) {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0;
    padding: 9px 11px 11px;
}
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__name, .hmpc-home-config__name) {
    display: -webkit-box;
    box-sizing: content-box;
    flex: none;
    height: 2.84em;
    min-height: 0;
    max-height: 2.84em;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--card-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.42;
    text-align: start;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-config__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 6px 0 0;
    min-height: 0;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-config__spec {
    overflow: hidden; padding: 3px 5px; border-radius: 4px; background: #f3f5f8;
    color: #475671; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-price-row {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: baseline;
    gap: 2px 7px;
    min-height: 2.45em;
    margin: auto 0 0;
    padding-top: 8px;
    text-align: start;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-price {
    color: var(--card-blue);
    font-size: clamp(16px, 1.24vw, 20px);
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-price {
        background-image: var(--hmpc-store-price-gradient, linear-gradient(var(--card-blue),var(--card-blue)));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-list-price {
    color: #657187; font-size: 12px; line-height: 1.3; text-decoration: line-through; white-space: nowrap;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__marketplace-row {
    display: flex;
    min-height: 24px;
    margin: 3px 0 6px;
    align-items: center;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__marketplace-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border-radius: 4px;
    background: #fff3ed; color: #a73618; font-size: 11px; font-weight: 700; line-height: 1.25;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__marketplace-link svg { width: 14px; height: 14px; }
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-cart-form { margin: 0; }
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-config__link, .hmpc-home-product__cart) {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 44px;
    gap: 7px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    box-shadow: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
    text-align: center;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__cart {
    background: var(--hmpc-store-action-gradient, #2254da);
    color: white;
}
article.hmpc-store-card[data-hmpc-store-card]:not([data-hmpc-store-card="pc"]) .hmpc-home-config__link {
    margin-top: 7px;
    border-color: #c9d9f8;
    background: #f1f6ff;
    color: var(--card-blue) !important;
}
article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__cart, .hmpc-home-config__link) svg { flex: none; width: 17px; height: 17px; }
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__cart-label--compact { display: none; }
article.hmpc-store-card[data-hmpc-store-card] button:disabled { opacity: .65; cursor: wait; }
@media (hover: hover) {
    article.hmpc-store-card[data-hmpc-store-card]:hover { border-color: #c7d6ed; box-shadow: 0 5px 15px rgb(31 53 92 / 9%); transform: none; }
    article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__name,.hmpc-home-config__name):hover { color: var(--card-blue); }
    article.hmpc-store-card[data-hmpc-store-card]:not([data-hmpc-store-card="pc"]) .hmpc-home-config__link:hover { border-color: #a8c3f1; background: #e5eeff; }
}
/* Configuration badges have a compact face inside a full touch target. */
article.hmpc-store-card[data-hmpc-store-card="pc"] a.hmpc-home-config__link {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    align-self: flex-start;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #fff !important;
    transform: none;
    transition: none;
}
article.hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-build-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #ec5262;
    border-radius: 6px;
    background: linear-gradient(112deg, #d92340, #bd102a 56%, #970d22);
    box-shadow: inset 0 1px 0 #ffbec5, inset 0 -1px 0 #860c1c, 0 2px 6px rgb(179 15 42 / 24%);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .025em;
    text-transform: uppercase;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
article.hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-build-badge svg { width: 14px; height: 14px; }
article.hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-build-count {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@media (hover: hover) {
    .hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-home-config__link:hover .hmpc-build-badge {
        transform: translateY(-1px);
        box-shadow: inset 0 1px 0 #ffd5da, inset 0 -1px 0 #860c1c, 0 3px 9px rgb(179 15 42 / 32%);
    }
}
article.hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-home-config__link:focus-visible {
    outline: 0;
}
.hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-home-config__link:focus-visible .hmpc-build-badge {
    outline: 2px solid var(--card-blue, #2455db);
    outline-offset: 3px;
}
.hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-home-config__link:active .hmpc-build-badge {
    transform: translateY(1px);
}
@media (prefers-reduced-motion: reduce) {
    article.hmpc-store-card[data-hmpc-store-card="pc"] .hmpc-build-badge {
        transform: none !important;
        transition: none;
    }
}
@media (max-width: 600px) {
    article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__body,.hmpc-home-config__body) { padding: 8px; }
    article.hmpc-store-card[data-hmpc-store-card] :is(.hmpc-home-product__name,.hmpc-home-config__name) { font-size: 13px; }
    article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__marketplace-row { min-height: 32px; }
    article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__marketplace-link { min-height: 30px; }
    article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__cart-label--full { display: none; }
    article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__cart-label--compact { display: inline; }
}
@media (prefers-reduced-motion: reduce) { article.hmpc-store-card[data-hmpc-store-card] { transition: none; } }
.hmpc-store-card-slot { display: flex; margin-bottom: 12px; }
.hmpc-store-card-slot > article.hmpc-store-card { width: 100%; }
article.hmpc-store-card[data-hmpc-store-card] .hmpc-store-card__quick {
    position: absolute; z-index: 1; inset: 8px 8px auto auto; display: grid; place-items: center;
    width: 36px; height: 36px; border: 1px solid #dbe2ee; border-radius: 50%; background: #fff; color: #344a69; cursor: pointer;
}
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__cart.is-success { background: #13724e; }
article.hmpc-store-card[data-hmpc-store-card] .hmpc-home-product__cart.is-error { background: #a73232; }
