.mall-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 22px);
    clear: both;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mall-product-card {
    --card-motion: 160ms ease;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--site-border, #e0e5ec);
    border-radius: 14px;
    background: #fff;
    color: var(--site-ink, #17243b);
    transition: box-shadow var(--card-motion), border-color var(--card-motion);
}

.mall-product-card:hover,
.mall-product-card:focus-within {
    border-color: #b9c6d8;
    box-shadow: 0 6px 22px rgb(29 43 64 / 8%);
}

.mall-card-link {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    border-radius: 14px 14px 0 0;
    color: inherit;
    text-decoration: none;
}

.mall-card-link:focus-visible,
.mall-card-action:focus-visible { outline: 2px solid var(--site-blue, #0033cc); outline-offset: 3px; }

.mall-card-image {
    display: grid;
    aspect-ratio: 1.12;
    place-items: center;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    background: #f3f5f9;
    color: var(--site-muted, #56637a);
    font-size: .81rem;
    text-align: center;
}

.mall-card-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.mall-card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .45em;
    padding: clamp(11px, 1.8vw, 17px);
}

.mall-card-info :is(h2, h3, p) { margin: 0; }
.mall-card-category { color: var(--site-muted, #56637a); font-size: .77rem; font-weight: 680; overflow-wrap: anywhere; }
.mall-card-name { color: inherit; font-size: clamp(.93rem, 1.6vw, 1.08rem); font-weight: 760; line-height: 1.38; overflow-wrap: anywhere; }
.mall-card-link:hover .mall-card-name { text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.mall-card-composition { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--site-muted, #56637a); font-size: .8rem; }
.mall-card-medication { padding: 2px 5px; border-radius: 5px; background: #eef2fb; color: #334d77; font-size: .73rem; font-weight: 700; }
.mall-card-cost { margin-top: auto; padding-top: 4px; font-variant-numeric: tabular-nums; }
.mall-card-sale { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .8rem; }
.mall-card-sale del { color: var(--site-muted, #56637a); }
.mall-card-discount { color: #a52e2d; font-weight: 820; }
.mall-card-total { color: var(--site-ink, #17243b); font-size: clamp(1.22rem, 2.15vw, 1.57rem); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.mall-card-total span { margin-inline-start: .13em; font-size: .62em; font-weight: 730; }
.mall-card-form, .mall-card-home-action { display: block; margin: 0; padding: 0 clamp(11px, 1.8vw, 17px) clamp(11px, 1.8vw, 17px); }
.mall-card-action {
    display: flex;
    width: 100%;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 7px 5px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    background: #fff;
    color: var(--site-blue, #0033cc);
    font: inherit;
    font-size: .84rem;
    font-weight: 730;
    line-height: 1.25;
    text-align: center;
}

button.mall-card-action { cursor: pointer; }
.mall-card-action:not(.mall-card-disabled):hover,
.mall-card-link:hover .mall-card-action:not(.mall-card-disabled) { background: #f4f5f6; }
.mall-card-action.mall-card-disabled { border-color: #e5e7eb; background: #f2f4f7; color: #465368; }

@media (min-width: 768px) { .mall-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mall-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .mall-product-card { transition: none; } }

.mall-product-card .mall-card-name {min-height:2.76em;word-break:keep-all;}
.mall-product-card .mall-card-composition {margin-top:auto;color:#344760;font-weight:650;}
.mall-product-card .mall-card-medication {font-size:.8rem;}
.mall-product-card .mall-card-cost {min-height:3.2rem;margin-top:0;display:flex;flex-direction:column;justify-content:flex-end;}
