/* Public Auctions page shell and card system. */

body.pb-buyers-auctions-page header.site-header,
body.pb-buyers-auctions-page #masthead,
body.pb-buyers-auctions-page .site-header,
body.pb-buyers-auctions-page .main-header-bar,
body.pb-buyers-auctions-page .ast-primary-header-bar,
body.pb-buyers-auctions-page .ast-mobile-header-wrap,
body.pb-buyers-auctions-page footer.site-footer,
body.pb-buyers-auctions-page #colophon,
body.pb-buyers-auctions-page .site-footer,
body.pb-buyers-auctions-page .entry-header,
body.pb-buyers-auctions-page .page-title,
body.pb-buyers-auctions-page .entry-title,
body.pb-buyers-auctions-page .wp-block-post-title,
body.pb-buyers-auctions-page .ast-archive-description {
    display: none !important;
}

body.pb-buyers-auctions-page #page,
body.pb-buyers-auctions-page .site,
body.pb-buyers-auctions-page #content,
body.pb-buyers-auctions-page .site-content,
body.pb-buyers-auctions-page .site-content .ast-container,
body.pb-buyers-auctions-page .ast-container,
body.pb-buyers-auctions-page #primary,
body.pb-buyers-auctions-page .content-area,
body.pb-buyers-auctions-page main.site-main,
body.pb-buyers-auctions-page article,
body.pb-buyers-auctions-page .entry-content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.pb-buyers-auctions-page .entry-content > *,
body.pb-buyers-auctions-page .wp-site-blocks > * {
    max-width: none !important;
}

.pb-auctions-shell {
    --pb-auction-navy: #061d31;
    --pb-auction-navy-2: #0d304d;
    --pb-auction-gold: #c7a25a;
    --pb-auction-gold-2: #e2c77f;
    --pb-auction-cream: #f2eee7;
    --pb-auction-paper: #fffaf0;
    --pb-auction-text: #172131;
    --pb-auction-muted: #706b62;
    --pb-auction-blue: #4d95dd;
    --pb-auction-blue-dark: #0b4f9f;
    --pb-auction-border: rgba(164, 133, 74, 0.32);
    --pb-auction-shadow: 0 18px 48px rgba(5, 24, 42, 0.12);
    background: var(--pb-auction-cream);
    color: var(--pb-auction-text);
    min-height: 100vh;
    overflow-x: hidden;
}

.pb-auctions-shell .pb-buyers-card {
    background: var(--pb-auction-paper);
    border: 1px solid var(--pb-auction-border);
    border-radius: 20px;
    box-shadow: var(--pb-auction-shadow);
}

.pb-auctions-page {
    margin: 0 auto;
    max-width: 1580px;
    padding: clamp(14px, 1.5vw, 22px) clamp(12px, 2vw, 30px) 48px;
    width: 100%;
}

.pb-auctions-hero {
    align-items: stretch;
    background: radial-gradient(circle at 88% 16%, rgba(226, 199, 127, 0.22), transparent 26%), radial-gradient(circle at 12% 105%, rgba(77, 149, 221, 0.22), transparent 32%), linear-gradient(120deg, rgba(6, 29, 49, 0.98), rgba(13, 48, 77, 0.94));
    border: 1px solid rgba(226, 199, 127, 0.28);
    color: #fffaf0;
    display: grid;
    gap: clamp(20px, 3vw, 40px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    overflow: hidden;
    padding: clamp(26px, 4vw, 54px);
    position: relative;
}

.pb-auctions-hero::after {
    border: 1px solid rgba(226, 199, 127, 0.18);
    border-radius: 18px;
    bottom: 16px;
    content: "";
    left: 16px;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 16px;
}

.pb-auctions-hero-copy {
    align-content: center;
    display: grid;
    gap: 12px;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

.pb-auctions-kicker {
    color: var(--pb-auction-gold-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    margin: 0;
    text-transform: uppercase;
}

.pb-auctions-hero h1 {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.7vw, 76px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.95;
    margin: 0;
    max-width: 920px;
}

.pb-auctions-hero p {
    color: rgba(255, 250, 240, 0.82);
    font-size: 16px;
    line-height: 1.68;
    margin: 0;
    max-width: 760px;
}

.pb-auctions-demo-note,
.pb-auctions-query-chip {
    background: rgba(226, 199, 127, 0.12);
    border: 1px solid rgba(226, 199, 127, 0.42);
    border-radius: 999px;
    color: #fff5d7;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
    padding: 9px 14px;
    width: fit-content;
}

.pb-auctions-query-chip {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pb-auctions-query-chip span {
    color: rgba(255, 250, 240, 0.74);
}

.pb-auctions-query-chip a {
    color: var(--pb-auction-gold-2);
    font-weight: 900;
    text-decoration: none;
}

.pb-auctions-hero-stats {
    align-content: center;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.pb-auctions-hero-stats div {
    background: rgba(255, 250, 240, 0.08);
    border: 1px solid rgba(226, 199, 127, 0.28);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 18px 20px;
}

.pb-auctions-hero-stats strong {
    align-self: end;
    color: #fffaf0;
    font-size: clamp(30px, 3.1vw, 48px);
    letter-spacing: -0.045em;
    line-height: 1;
}

.pb-auctions-hero-stats span {
    color: var(--pb-auction-gold-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.pb-auctions-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 320px minmax(0, 1fr);
    margin-top: 0;
}

.pb-auctions-recent-sellers + .pb-auctions-layout {
    margin-top: 0;
}

.pb-auctions-page--compact {
    padding-top: clamp(14px, 1.5vw, 22px);
}

.pb-auctions-filters {
    padding: 20px;
    position: sticky;
    top: 106px;
}

.pb-auctions-filters form,
.pb-auctions-results {
    display: grid;
    gap: 15px;
    min-width: 0;
}

.pb-auctions-filter-head,
.pb-auctions-results-bar {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.pb-auctions-filter-head span,
.pb-auctions-results-bar span,
.pb-auctions-filters label > span {
    color: var(--pb-auction-blue-dark);
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pb-auctions-filter-head h2,
.pb-auctions-results-bar h2 {
    color: var(--pb-auction-text);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.03em;
    margin: 4px 0 0;
}

.pb-auctions-filter-head a {
    color: #1769f5;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.pb-auctions-filters label {
    display: grid;
    gap: 7px;
}

.pb-auctions-filters input,
.pb-auctions-filters select {
    background: #fff;
    border: 1px solid rgba(13, 48, 77, 0.16);
    border-radius: 12px;
    color: var(--pb-auction-text);
    font: inherit;
    font-size: 14px;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.pb-auctions-filter-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.pb-auctions-filter-actions a,
.pb-auctions-filter-actions button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 48px;
    text-align: center;
    text-decoration: none;
}

.pb-auctions-results-bar {
    padding: 18px 20px;
}

.pb-auctions-results-note {
    color: var(--pb-auction-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    margin: 0;
    text-align: right;
}

.pb-auctions-view-toggle {
    background: #eef2f8;
    border: 1px solid rgba(13, 48, 77, 0.12);
    border-radius: 999px;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
}

.pb-auctions-view-toggle button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--pb-auction-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    padding: 9px 13px;
}

.pb-auctions-view-toggle button.is-active {
    background: #fff;
    color: #1769f5;
    box-shadow: 0 6px 16px rgba(5, 24, 42, 0.10);
}

.pb-auctions-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.pb-auction-card {
    align-items: start;
    background: #fff;
    border: 1px solid rgba(13, 48, 77, 0.14);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(5, 24, 42, 0.06);
    display: grid;
    gap: 18px;
    grid-template-columns: 220px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    padding: 16px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pb-auction-card:hover {
    border-color: rgba(23, 105, 245, 0.24);
    box-shadow: 0 14px 30px rgba(5, 24, 42, 0.10);
    transform: translateY(-1px);
}

.pb-auction-media {
    align-self: start;
    background: #f7f8fa;
    border: 1px solid rgba(13, 48, 77, 0.08);
    border-radius: 14px;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.pb-auction-media > a,
.pb-auction-media > div {
    display: block;
    height: 100%;
}

.pb-auction-media img {
    display: block;
    height: 220px;
    object-fit: contain;
    width: 100%;
}

.pb-auction-placeholder {
    align-items: center;
    color: var(--pb-auction-blue-dark);
    display: flex;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 950;
    height: 220px;
    justify-content: center;
    letter-spacing: -0.06em;
}

.pb-auction-status {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 48, 77, 0.12);
    border-radius: 999px;
    color: var(--pb-auction-blue-dark);
    font-size: 11px;
    font-weight: 900;
    left: 12px;
    padding: 7px 10px;
    position: absolute;
    top: 12px;
}

.pb-auction-badge {
    display: none;
}

.pb-auction-card--closed .pb-auction-status {
    color: #72521d;
}

.pb-auction-card--upcoming .pb-auction-status {
    color: #1769f5;
}

.pb-auction-body {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 2px 0;
}

.pb-auction-head-row {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.pb-auction-head-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.pb-auction-tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pb-auction-tags span {
    background: #f3f7fd;
    border-radius: 999px;
    color: var(--pb-auction-blue-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
}

.pb-auction-card h3 {
    color: var(--pb-auction-text);
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin: 0;
}

.pb-auction-card h3 a {
    color: inherit;
    text-decoration: none;
}

.pb-auction-card h3 a:hover {
    color: #1769f5;
}

.pb-auction-byline {
    display: grid;
    gap: 5px;
}

.pb-auction-byline a,
.pb-auction-byline span {
    color: #4d5e76;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.pb-auction-byline small {
    color: var(--pb-auction-muted);
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.pb-auction-watch-icon {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 24px;
    font-weight: 400;
    height: 44px;
    justify-content: center;
    line-height: 1;
    min-height: 44px;
    padding: 0;
    width: 44px;
}

.pb-auction-price-block {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
}

.pb-auction-price-main,
.pb-auction-price-secondary {
    display: grid;
    gap: 3px;
}

.pb-auction-price-main span,
.pb-auction-price-secondary span {
    color: var(--pb-auction-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pb-auction-price-main strong {
    color: var(--pb-auction-text);
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
}

.pb-auction-price-secondary strong {
    color: var(--pb-auction-text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.pb-auction-supporting-lines {
    display: grid;
    gap: 7px;
}

.pb-auction-supporting-line {
    color: #3d4d60;
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
}

.pb-auction-supporting-line strong {
    color: var(--pb-auction-text);
    font-weight: 800;
}

.pb-auction-supporting-line span {
    color: #59697d;
}

.pb-auction-shipping {
    color: #1f5da8;
}

.pb-auction-time {
    display: grid;
    gap: 0;
}

.pb-auction-time i {
    background: #e8edf3;
    border-radius: 999px;
    display: block;
    height: 7px;
    overflow: hidden;
}

.pb-auction-time em {
    background: linear-gradient(90deg, var(--pb-auction-blue-dark), #5ba0e6);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.pb-auction-meta-row,
.pb-auction-seller-row,
.pb-auction-bid-panel {
    display: none;
}

.pb-auction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-auction-actions a,
.pb-auction-actions button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 138px;
    text-align: center;
    text-decoration: none;
}

.pb-auctions-empty {
    align-items: center;
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 56px 24px;
    text-align: center;
}

.pb-auctions-empty span {
    align-items: center;
    background: #edf4ff;
    border-radius: 999px;
    color: var(--pb-auction-blue-dark);
    display: flex;
    font-size: 28px;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.pb-auctions-empty h2,
.pb-auctions-empty p {
    margin: 0;
}

.pb-auctions-empty p {
    color: var(--pb-auction-muted);
    max-width: 620px;
}

.pb-auctions-pagination {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 18px;
}

.pb-auctions-pagination a,
.pb-auctions-pagination span,
.pb-auctions-pagination strong {
    color: var(--pb-auction-text);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.pb-auctions-pagination span {
    opacity: 0.45;
}

.pb-auctions-grid.is-list-view {
    grid-template-columns: 1fr;
}

.pb-auctions-grid.is-list-view .pb-auction-card {
    grid-template-columns: 220px minmax(0, 1fr);
}

@media (max-width: 1020px) {
    .pb-auctions-hero,
    .pb-auctions-layout {
        grid-template-columns: 1fr;
    }

    .pb-auctions-filters {
        position: static;
    }

    .pb-auction-card,
    .pb-auctions-grid.is-list-view .pb-auction-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .pb-auction-media,
    .pb-auction-media img,
    .pb-auction-placeholder {
        min-height: 180px;
        height: 180px;
    }
}

@media (max-width: 720px) {
    .pb-auctions-page {
        padding: 12px 10px 34px;
    }

    .pb-auctions-hero {
        padding: 26px 22px;
    }

    .pb-auctions-hero-stats,
    .pb-auctions-grid,
    .pb-auction-actions,
    .pb-auctions-filter-actions {
        grid-template-columns: 1fr;
    }

    .pb-auctions-results-bar,
    .pb-auctions-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .pb-auctions-results-note {
        text-align: left;
    }

    .pb-auction-card,
    .pb-auctions-grid.is-list-view .pb-auction-card {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .pb-auction-media,
    .pb-auction-media img,
    .pb-auction-placeholder {
        height: 220px;
        min-height: 220px;
    }

    .pb-auction-head-row {
        grid-template-columns: 1fr;
    }

    .pb-auction-watch-icon {
        justify-self: start;
    }

    .pb-auction-price-main strong {
        font-size: 32px;
    }
}

/* Phase 6m: grey out auction cards for sellers who are away. */
.pb-auction-card.is-paused {
    filter: grayscale(1);
    opacity: 0.52;
}

.pb-auction-card.is-paused a {
    pointer-events: none;
}

.pb-auction-paused-note {
    background: rgba(6, 29, 49, 0.06);
    border: 1px solid rgba(164, 133, 74, 0.22);
    border-radius: 12px;
    color: var(--pb-auction-muted, #706b62);
    font-size: 12px;
    font-weight: 800;
    margin: 10px 0 0;
    padding: 9px 10px;
}
