/* Charity auction — /auction/ pages. Builds on theme.css (poster look:
   ink borders, offset shadows, cream / orange / wine / gold). */

.message--info { background: #fdf3dc; color: var(--t-ink); border: 2px solid var(--t-gold); }

.auc-wrap { padding: 40px 0 72px; }

/* ── Intro: how it works + countdown ─────────────────────────────────── */
.auc-intro {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: stretch;
    margin-bottom: 34px;
}
.auc-steps {
    list-style: none; margin: 0; padding: 22px 24px; display: grid; gap: 14px;
    background: var(--t-paper); border: 3px solid var(--t-ink); border-radius: 18px;
    box-shadow: 5px 5px 0 var(--t-ink);
}
.auc-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.auc-steps .n {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--t-orange); color: #fff; border: 2.5px solid var(--t-ink);
    font-family: 'Anton', sans-serif; font-size: 1.25rem;
}
.auc-steps strong { display: block; font-size: 1.02rem; }
.auc-steps p { margin: 2px 0 0; color: var(--t-muted); font-size: .95rem; line-height: 1.5; }

.auc-clock {
    background: var(--t-wine); color: var(--t-cream); border: 3px solid var(--t-ink);
    border-radius: 18px; padding: 22px 24px; box-shadow: 5px 5px 0 var(--t-ink);
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.auc-clock .label { font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    font-size: .78rem; color: var(--t-gold); }
.auc-clock .big { font-family: 'Anton', sans-serif; font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1; letter-spacing: .02em; }
.auc-clock .sub { color: var(--t-wine-muted); font-size: .92rem; }
.auc-clock .me { margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(255,246,230,.35);
    font-size: .92rem; }
.auc-clock .me a { color: var(--t-gold); font-weight: 800; }

/* ── Category chips ───────────────────────────────────────────────────── */
.auc-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.auc-cats a {
    padding: 8px 16px; border: 2.5px solid var(--t-ink); border-radius: 100px;
    color: var(--t-ink); font-weight: 800; font-size: .88rem; background: var(--t-paper);
}
.auc-cats a:hover { text-decoration: none; background: #fdeccf; }
.auc-cats a.on { background: var(--t-ink); color: var(--t-cream); }

/* ── Lot grid ─────────────────────────────────────────────────────────── */
.auc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.auc-card {
    display: flex; flex-direction: column; background: var(--t-paper); color: var(--t-ink);
    border: 3px solid var(--t-ink); border-radius: 18px; overflow: hidden;
    box-shadow: 5px 5px 0 var(--t-ink); transition: transform .15s ease, box-shadow .15s ease;
}
.auc-card:hover { text-decoration: none; transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--t-ink); }
.auc-media { position: relative; aspect-ratio: 4 / 3; background: #f3e3c7; border-bottom: 3px solid var(--t-ink); }
.auc-media img { width: 100%; height: 100%; object-fit: cover; }
.auc-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 16px;
    font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.3rem; color: var(--t-wine);
    background: repeating-linear-gradient(45deg, #fdeccf 0 14px, #f8dfb4 14px 28px);
}
.auc-lot {
    position: absolute; top: 12px; left: 12px; background: var(--t-gold); color: var(--t-ink);
    border: 2.5px solid var(--t-ink); border-radius: 100px; padding: 3px 12px;
    font-weight: 800; font-size: .8rem; letter-spacing: .06em;
}
.auc-flag {
    position: absolute; top: 12px; right: 12px; border: 2.5px solid var(--t-ink); border-radius: 100px;
    padding: 3px 12px; font-weight: 800; font-size: .78rem; background: #2e7d32; color: #fff;
}
.auc-flag--closed { background: var(--t-ink); color: var(--t-cream); }
.auc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.auc-cat { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--t-orange); }
.auc-body h3 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.12rem; line-height: 1.3; margin: 0; }
.auc-donor { color: var(--t-muted); font-size: .88rem; margin: 0; }
.auc-price { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.auc-price .k { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t-muted); }
.auc-price .v { font-family: 'Anton', sans-serif; font-size: 1.9rem; line-height: 1; }
.auc-price .meta { text-align: right; font-size: .85rem; color: var(--t-muted); }

.auc-empty {
    text-align: center; padding: 48px 24px; background: var(--t-paper); border: 3px dashed var(--t-ink);
    border-radius: 18px;
}
.auc-empty h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); text-transform: uppercase; }
.auc-empty p { color: var(--t-muted); max-width: 560px; margin: 0 auto 8px; }

.auc-rules { margin-top: 48px; max-width: 860px; }
.auc-rules h2 { text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.auc-rules ul { padding-left: 1.2em; color: var(--t-muted); line-height: 1.75; }
.auc-rules li strong { color: var(--t-ink); }

/* ── Lot page ─────────────────────────────────────────────────────────── */
.auc-back { display: inline-block; margin-bottom: 18px; font-weight: 800; }
.auc-item { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.auc-gallery .main {
    border: 3px solid var(--t-ink); border-radius: 18px; overflow: hidden; background: #f3e3c7;
    box-shadow: 5px 5px 0 var(--t-ink); aspect-ratio: 1 / 1;
}
.auc-gallery .main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.auc-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.auc-thumbs button { padding: 0; border: 2.5px solid var(--t-ink); border-radius: 10px; overflow: hidden;
    width: 74px; height: 74px; cursor: pointer; background: #fff; }
.auc-thumbs button[aria-current="true"] { outline: 3px solid var(--t-orange); outline-offset: 2px; }
.auc-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.auc-info .auc-cat { font-size: .8rem; }
.auc-info h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); text-transform: uppercase; line-height: 1; margin: 6px 0 10px; }
.auc-info .auc-donor { font-size: 1rem; margin-bottom: 18px; }
.auc-desc p { color: var(--t-muted); line-height: 1.75; margin: 0 0 12px; }
.auc-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 18px; font-size: .92rem; color: var(--t-muted); }
.auc-facts strong { color: var(--t-ink); }

.auc-bidbox {
    background: var(--t-paper); border: 3px solid var(--t-ink); border-radius: 18px;
    box-shadow: 5px 5px 0 var(--t-ink); padding: 22px 22px 20px; margin: 4px 0 26px;
}
.auc-bidbox .row { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.auc-bidbox .k { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }
.auc-bidbox .now { font-family: 'Anton', sans-serif; font-size: 3rem; line-height: 1; }
.auc-bidbox .ends { text-align: right; }
.auc-bidbox .ends .t { font-weight: 800; font-size: 1.15rem; }
.auc-status { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-weight: 700; border: 2px solid var(--t-ink); }
.auc-status--lead { background: #e6f4e8; }
.auc-status--out { background: #fdecea; }
.auc-status--closed { background: #f1ebe2; }

.auc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.auc-quick button {
    flex: 1 1 0; min-width: 84px; padding: 10px 8px; border: 2.5px solid var(--t-ink); border-radius: 12px;
    background: #fdf3dc; font-weight: 800; font-size: 1.02rem; cursor: pointer; color: var(--t-ink);
}
.auc-quick button:hover { background: var(--t-gold); }
.auc-bidform { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; }
.auc-bidform .dollar { position: relative; flex: 1; }
.auc-bidform .dollar::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-weight: 800; font-size: 1.2rem; color: var(--t-muted); }
.auc-bidform input { width: 100%; height: 100%; min-height: 54px; padding: 10px 12px 10px 30px;
    border: 2.5px solid var(--t-ink); border-radius: 12px; font-size: 1.3rem; font-weight: 800; font-family: inherit; }
.auc-bidform .btn { padding: 12px 26px; white-space: nowrap; }
.auc-note { margin: 10px 0 0; font-size: .86rem; color: var(--t-muted); }
.auc-note a { font-weight: 700; }
.auc-bidbox .error { margin: 8px 0 0; }

.auc-history h2 { font-family: 'Manrope', sans-serif; font-weight: 800; text-transform: none; font-size: 1.1rem; }
.auc-history ol { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--t-ink); }
.auc-history li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed #d9c7a8; font-size: .95rem; }
.auc-history li.me { font-weight: 800; }
.auc-history .amt { font-weight: 800; }
.auc-history time { color: var(--t-muted); font-size: .85rem; }

/* ── Register / pay / my ──────────────────────────────────────────────── */
.auc-narrow { max-width: 760px; }
.auc-card-box { padding: 14px 0 4px; min-height: 90px; }
.auc-sim { padding: 14px 16px; border: 2.5px dashed var(--t-ink); border-radius: 12px; background: #fdf3dc; font-size: .92rem; }
.auc-sim strong { display: block; }
.auc-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 16px 0 4px; font-size: .95rem; }
.auc-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--t-orange); }
.auc-secure { display: flex; gap: 10px; align-items: start; font-size: .88rem; color: var(--t-muted); margin: 12px 0 0; }
.auc-form-errors { margin: 12px 0 0; padding: 12px 14px; border: 2px solid var(--t-wine); border-radius: 12px; background: #fdecea; font-weight: 700; color: var(--t-wine); }
.auc-form-errors:empty { display: none; }
.auc-lost { margin-top: 30px; font-size: .95rem; }
.auc-lost summary { cursor: pointer; font-weight: 800; color: var(--t-wine); }
.auc-lost form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.auc-lost input { flex: 1 1 240px; }
.auc-lost .btn { padding: 10px 22px; font-size: .85rem; }

.auc-paddle {
    display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
    background: var(--t-gold); border: 3px solid var(--t-ink); border-radius: 18px; padding: 18px 22px;
    box-shadow: 5px 5px 0 var(--t-ink); margin-bottom: 26px;
}
.auc-paddle .num { font-family: 'Anton', sans-serif; font-size: 3.2rem; line-height: 1; background: var(--t-paper);
    border: 3px solid var(--t-ink); border-radius: 14px; padding: 6px 16px; }
.auc-paddle p { margin: 2px 0; }
.auc-paddle form { margin-left: auto; }
.auc-linkbtn { background: none; border: 0; padding: 0; color: var(--t-wine); font-weight: 800; cursor: pointer; font: inherit; text-decoration: underline; }

.auc-mytable { width: 100%; border-collapse: collapse; background: var(--t-paper); border: 3px solid var(--t-ink); border-radius: 14px; overflow: hidden; }
.auc-mytable th, .auc-mytable td { padding: 12px 14px; text-align: left; border-bottom: 1px dashed #d9c7a8; vertical-align: top; }
.auc-mytable th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: #fdf3dc; border-bottom: 2px solid var(--t-ink); }
.auc-chip { display: inline-block; padding: 3px 10px; border-radius: 100px; font-weight: 800; font-size: .8rem; border: 2px solid var(--t-ink); white-space: nowrap; }
.chip-leading, .chip-won_paid { background: #e6f4e8; }
.chip-outbid, .chip-won_failed { background: #fdecea; }
.chip-won_pending { background: #fdf3dc; }
.chip-lost { background: #eee; }
.auc-code { font-family: 'Anton', sans-serif; font-size: 1.5rem; letter-spacing: .04em; }

@media (max-width: 860px) {
    .auc-intro, .auc-item { grid-template-columns: 1fr; }
    .auc-item { gap: 24px; }
    .auc-mytable thead { display: none; }
    .auc-mytable tr { display: block; border-bottom: 2px solid var(--t-ink); }
    .auc-mytable td { display: block; border: 0; padding: 6px 14px; }
    .auc-mytable td:first-child { padding-top: 14px; }
    .auc-mytable td:last-child { padding-bottom: 14px; }
}
@media (max-width: 480px) {
    .auc-bidform { flex-direction: column; }
    .auc-bidbox .now { font-size: 2.5rem; }
}
