/* ============================================================
   PRODUCT CARD — used in Bestsellers + Shop grids on the home
   page and the catalogue. Comic-flavoured: cream surface,
   pink "BESTSELLER" tag, translucent ink "Add to cart" button
   pinned to the bottom of the card body.
============================================================ */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
.grid--four { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--cream);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--line);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    min-width: 0;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -20px oklch(16.5% 0.007 50 / 0.25);
    border-color: oklch(16.5% 0.007 50 / 0.25);
}

.card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--cream-2);
}
.card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card__media img {
    transform: scale(1.04) rotate(-1.5deg);
}

.card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ink);
    color: var(--cream);
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 999px;
    z-index: 2;
    text-transform: uppercase;
}
.card__tag--pink { background: var(--pink); }
.card__tag--oos { background: var(--ink-soft); }

.card__quick {
    width: 100%;
    background: oklch(16.5% 0.007 50 / 0.85);
    color: var(--cream);
    border: none;
    padding: 11px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    cursor: pointer;
}
.card__quick:hover { background: var(--pink); }
.card__quick--disabled,
.card__quick:disabled {
    background: oklch(35.5% 0.014 50 / 0.6);
    cursor: not-allowed;
}
.card__quick--disabled:hover { background: oklch(35.5% 0.014 50 / 0.6); }

.card__body {
    padding: 14px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.card__name {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.002em;
    margin: 0;
    line-height: 1.15;
    word-break: break-word;
}
.card__name a { color: inherit; }
.card__price {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--pink-deep);
    white-space: nowrap;
}
/* Marked-down headline: "was £8.95 · now £6.95 · -22%". The saving pill is
   pushed to the right edge of the price line; the was/now labels are real text,
   not decoration, because <s> alone is not reliably announced. */
.card__price--sale {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    white-space: normal;
    width: 100%;
}
.card__price-was,
.card__price-now {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.card__price-was {
    color: var(--ink-soft);
    font-weight: 400;
    font-size: 12px;
}
.card__price-was s { text-decoration-thickness: 1.5px; }
.card__price-now { color: var(--pink-deep); }
.card__price-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.card__price-off {
    margin-left: auto;
    background: var(--pink);
    color: var(--cream);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 7px;
    border-radius: 999px;
}

.card__notes {
    font-size: 12px;
    color: var(--ink-soft);
    margin: 0;
    font-style: italic;
}
.card__meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}
.card__chip {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    line-height: 1.4;
    border-radius: 12px;
    background: var(--cream-2);
    color: var(--ink-soft);
}
.card__chip--ghost {
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

@media (min-width: 640px) {
    .grid { gap: 22px; }
}

@media (min-width: 960px) {
    .grid { gap: 26px; }
    .grid--four { grid-template-columns: repeat(4, 1fr); }
    .card__body { padding: 18px 18px 22px; }
    .card__name { font-size: 16px; }
    .card__price { font-size: 14px; }
    .card__notes { font-size: 13px; }
    .card__quick { font-size: 13px; padding: 12px; }
    .card__chip { font-size: 10px; padding: 4px 10px; }
}
