/* Auction cards. Scoped to the shared lot card; bidding controls keep their existing hooks. */
.lot-card.lot-card-refined,
.marketplace-design .catalog-grid .lot-card.lot-card-refined {
    --card-ink: #102333;
    --card-muted: #5a6672;
    --card-line: #e1e6ea;
    container-type: inline-size;
    border: 1px solid var(--card-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 7px #10233306;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lot-card.lot-card-refined:hover,
.marketplace-design .catalog-grid .lot-card.lot-card-refined:hover {
    border-color: #b9c5ce;
    box-shadow: 0 8px 24px #10233310;
    transform: translateY(-2px);
}
.lot-card.lot-card-refined:focus-within { border-color: var(--brand-link); }
.lot-card-refined a:focus-visible,
.lot-card-refined button:focus-visible { outline: 3px solid var(--brand-link); outline-offset: 3px; }
.lot-card-refined .lot-photo:focus-visible { outline-offset: -4px; }
.lot-card.lot-card-refined .lot-photo { aspect-ratio: 1.5; background: #eef1f3; }
.lot-card.lot-card-refined .lot-photo > img { display: block; object-fit: cover; }
.lot-card.lot-card-refined .lot-photo .auction-state {
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid #ffffff36;
    border-radius: 5px;
    background: #102333ed;
    color: #fff;
    box-shadow: 0 1px 5px #00000014;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.lot-card.lot-card-refined .lot-photo .auction-state.live .pulse-dot {
    width: 6px;
    height: 6px;
    background: #77e0a5;
    box-shadow: none;
    animation: none;
}
.lot-card.lot-card-refined .lot-photo .auction-state.ending-soon { background: #8b3b0d; }
.lot-card.lot-card-refined .lot-photo .auction-state.upcoming { background: #194d73; }
.lot-card.lot-card-refined .lot-photo .auction-state.ended { background: #4b5965; }
.lot-card.lot-card-refined .favorite-control-compact { top: 10px; right: 10px; }
.lot-card.lot-card-refined .favorite-control-compact .favorite-button {
    width: 44px;
    min-height: 44px;
    border: 1px solid #dce3e9;
    background: #ffffffed;
    color: var(--card-ink);
    box-shadow: 0 1px 5px #10233312;
}
.lot-card.lot-card-refined .favorite-control-compact .favorite-button svg { width: 20px; height: 20px; }
.lot-card.lot-card-refined .favorite-control-compact .favorite-button.is-saved { color: var(--brand-link); border-color: var(--brand-primary); }
.lot-card.lot-card-refined .lot-condition {
    inset: auto auto 12px 12px;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 8px;
    font-size: 10px;
    color: var(--card-ink);
    background: #fffffff2;
}
.lot-card-refined .lot-media-summary {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid #ffffff26;
    border-radius: 5px;
    background: #102333e8;
    color: #fff;
}
.lot-card.lot-card-refined .photo-count-badge,
.lot-card.lot-card-refined .media-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: none;
    border-radius: 0;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}
.lot-card-refined .photo-count-badge + .media-badge { border-left: 1px solid #ffffff40; padding-left: 8px; }
.lot-card.lot-card-refined .lot-media-summary svg { width: 13px; height: 13px; }
.lot-card.lot-card-refined .lot-card-body { padding: 18px; }
.lot-card.lot-card-refined .lot-category {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.lot-card-refined .lot-category > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--brand-link);
}
.lot-card-refined .lot-stock { flex: none; color: var(--card-muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lot-card.lot-card-refined h3 {
    min-height: 2.8em;
    margin: 8px 0 0;
    color: var(--card-ink);
    font-family: var(--brand-font-body, 'Plus Jakarta Sans'), sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.025em;
}
.lot-card-refined h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.lot-card.lot-card-refined .lot-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
    min-height: 18px;
    margin: 8px 0 14px;
    padding: 0;
    color: var(--card-muted);
}
.lot-card.lot-card-refined .lot-specs li { padding: 0; background: none; color: inherit; font-size: 11px; line-height: 1.6; white-space: normal; }
.lot-card.lot-card-refined .lot-specs li + li::before { display: inline; content: '·'; margin-right: 10px; color: #8b959f; }
.lot-card-refined .lot-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--card-line);
    font-variant-numeric: tabular-nums;
}
.lot-card-refined .lot-current-bid { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.lot-card-refined .lot-current-bid small,
.lot-card.lot-card-refined .lot-buy-now-price > span { color: var(--card-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.lot-card-refined .lot-current-bid > strong {
    color: var(--card-ink);
    font-family: var(--brand-font-body, 'Plus Jakarta Sans'), sans-serif;
    font-size: 26px;
    font-size: clamp(22px, 8.2cqi, 29px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.lot-card.lot-card-refined .lot-buy-now-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: none;
    gap: 5px;
    margin: 0 0 2px auto;
    line-height: 1.5;
}
.lot-card.lot-card-refined .lot-buy-now-price strong { color: var(--card-ink); font-size: 14px; font-size: clamp(12px, 4.6cqi, 16px); font-weight: 600; white-space: nowrap; }
.lot-card-refined .lot-own-bid {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin: -4px 0 12px;
    border-radius: 5px;
    background: var(--brand-soft, #f6f1e8);
    color: var(--brand-link);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.lot-card-refined .lot-timing { padding: 10px 11px; border: 1px solid #e7ebee; border-radius: 7px; background: #f5f7f9; }
.lot-card.lot-card-refined .lot-countdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--card-ink);
}
.lot-card.lot-card-refined .lot-countdown > span { gap: 5px; color: var(--card-muted); text-transform: none; letter-spacing: 0; }
.lot-card-refined .lot-countdown [data-timer-label] { font-size: 10px; line-height: 1.5; }
.lot-card.lot-card-refined .lot-countdown svg { width: 13px; height: 13px; }
.lot-card.lot-card-refined .lot-countdown strong {
    color: var(--card-ink);
    font-family: var(--brand-font-body, 'Plus Jakarta Sans'), sans-serif;
    font-size: 13px;
    font-size: clamp(12px, 4.1cqi, 15px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    word-spacing: 1px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.lot-card-refined .lot-close-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin-top: 5px; color: var(--card-muted); font-size: 10px; line-height: 1.5; }
.lot-card-refined .lot-close-line time { font-variant-numeric: tabular-nums; }
.lot-card-refined .lot-timing:has(.is-closing) { border-color: #ebc7bd; background: #fff3ed; }
.lot-card.lot-card-refined .lot-countdown.is-closing strong { color: #a32d12; }
.lot-card.lot-card-refined .button[data-lot-action] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 14px;
    margin-top: 14px;
    border: 1px solid #cbd4db;
    border-radius: 7px;
    background: #fff;
    color: var(--card-ink);
    box-shadow: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    transition: background .18s ease, border-color .18s ease;
}
.lot-card.lot-card-refined .button[data-lot-action].button-primary {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-on-primary, #102333);
}
.lot-card.lot-card-refined .button[data-lot-action]:hover { background: #edf1f4; border-color: #a9b7c2; transform: none; filter: none; box-shadow: none; }
.lot-card.lot-card-refined .button[data-lot-action].button-primary:hover { background: color-mix(in srgb, var(--brand-primary) 91%, #102333); border-color: color-mix(in srgb, var(--brand-primary) 91%, #102333); }
.lot-card.lot-card-refined .button.bid-now-cta .bid-cta-icon { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 0; background: none; }
.lot-card-refined .bid-cta-icon::before { width: 17px; height: 17px; }
@media (max-width: 600px) {
    .lot-card.lot-card-refined .lot-card-body { padding: 18px; }
    .lot-card.lot-card-refined h3 { min-height: 0; font-size: 18px; }
    .lot-card.lot-card-refined .lot-category { font-size: 10px; }
    .lot-card.lot-card-refined .lot-specs li { font-size: 12px; }
    .lot-card.lot-card-refined .button[data-lot-action] { min-height: 46px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .lot-card.lot-card-refined,
    .marketplace-design .catalog-grid .lot-card.lot-card-refined,
    .lot-card.lot-card-refined .lot-photo > img,
    .lot-card.lot-card-refined .button[data-lot-action] { transition: none; }
    .lot-card.lot-card-refined:hover,
    .marketplace-design .catalog-grid .lot-card.lot-card-refined:hover,
    .lot-card.lot-card-refined:hover .lot-photo > img { transform: none; }
}
