/* Shop page shell, filters, and product card styling. */

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

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

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

.pb-shop-shell {
    --pb-shop-navy: #061d31;
    --pb-shop-navy-2: #0d304d;
    --pb-shop-navy-3: #08263f;
    --pb-shop-gold: #c7a25a;
    --pb-shop-gold-2: #e2c77f;
    --pb-shop-cream: #f2eee7;
    --pb-shop-paper: #fffaf0;
    --pb-shop-panel: #ffffff;
    --pb-shop-text: #172131;
    --pb-shop-muted: #706b62;
    --pb-shop-blue: #4d95dd;
    --pb-shop-blue-dark: #0b4f9f;
    --pb-shop-border: rgba(164, 133, 74, 0.32);
    --pb-shop-border-blue: rgba(77, 149, 221, 0.22);
    --pb-shop-shadow: 0 18px 48px rgba(5, 24, 42, 0.12);
    background:
        linear-gradient(180deg, var(--pb-shop-navy) 0, var(--pb-shop-navy) 270px, var(--pb-shop-cream) 270px, var(--pb-shop-cream) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

.pb-shop-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(290px, 460px);
    overflow: hidden;
    padding: clamp(26px, 4vw, 54px);
    position: relative;
}

.pb-shop-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-shop-hero-copy {
    align-content: center;
    display: grid;
    gap: 12px;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

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

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

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

.pb-shop-demo-note {
    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-shop-hero-stats {
    align-content: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
}

.pb-shop-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-shop-hero-stats strong {
    align-self: end;
    color: #fffaf0;
    font-size: clamp(30px, 3.1vw, 48px);
    letter-spacing: -0.045em;
    line-height: 1;
}

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

.pb-shop-query-chip {
    align-items: center;
    background: rgba(255, 250, 240, 0.1);
    border: 1px solid rgba(226, 199, 127, 0.32);
    border-radius: 999px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
    padding: 10px 14px;
    position: relative;
    width: fit-content;
    z-index: 1;
}

.pb-shop-query-chip span {
    color: rgba(255, 250, 240, 0.74);
    font-size: 13px;
    font-weight: 850;
}

.pb-shop-query-chip strong {
    color: #fffaf0;
    font-size: 14px;
}

.pb-shop-query-chip a {
    color: var(--pb-shop-gold-2);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

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

.pb-shop-filter-stack {
    align-self: start;
    min-width: 0;
    position: sticky;
    top: 106px;
}

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

.pb-shop-filters,
.pb-shop-advanced-filters,
.pb-shop-filter-actions {
    padding: 20px;
}

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

.pb-shop-filter-head {
    border-bottom: 1px solid var(--pb-shop-border);
    padding-bottom: 13px;
}

.pb-shop-filter-head p,
.pb-shop-results-bar p {
    color: var(--pb-shop-blue-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin: 0;
    text-transform: uppercase;
}

.pb-shop-filter-head h2,
.pb-shop-results-bar h2 {
    color: var(--pb-shop-text);
    font-size: 22px;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 4px 0 0;
}

.pb-shop-filter-head a {
    color: var(--pb-shop-blue-dark);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.pb-shop-field {
    display: grid;
    gap: 7px;
}

.pb-shop-field span {
    color: #3c4658;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.pb-shop-field input,
.pb-shop-field select {
    appearance: none;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(13, 48, 77, 0.14);
    border-radius: 13px;
    color: var(--pb-shop-text);
    font-size: 14px;
    min-height: 48px;
    outline: 0;
    padding: 11px 13px;
    width: 100%;
}

.pb-shop-field input:focus,
.pb-shop-field select:focus {
    border-color: rgba(77, 149, 221, 0.6);
    box-shadow: 0 0 0 4px rgba(77, 149, 221, 0.13);
}

.pb-shop-price-pair,
.pb-shop-age-range {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

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

.pb-shop-filter-actions a,
.pb-shop-card-actions a,
.pb-shop-card-actions button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.pb-shop-filter-actions .pb-buyers-primary-btn,
.pb-shop-card-actions .pb-buyers-primary-btn,
.pb-shop-empty .pb-buyers-primary-btn {
    background: linear-gradient(135deg, var(--pb-shop-blue), #1769f5);
    border: 0;
    box-shadow: 0 12px 22px rgba(23, 105, 245, 0.2);
    color: #ffffff;
}

.pb-shop-filter-actions .pb-buyers-outline-btn,
.pb-shop-card-actions .pb-buyers-outline-btn {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(77, 149, 221, 0.45);
    color: var(--pb-shop-blue-dark);
}

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

.pb-shop-view-controls {
    background: rgba(8, 38, 63, 0.07);
    border: 1px solid rgba(13, 48, 77, 0.11);
    border-radius: 999px;
    display: flex;
    padding: 4px;
}

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

.pb-shop-view-controls button.is-active {
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 38, 75, 0.08);
    color: var(--pb-shop-blue-dark);
}

.pb-shop-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

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

.pb-shop-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.pb-shop-card:hover {
    border-color: rgba(199, 162, 90, 0.52);
    box-shadow: 0 22px 54px rgba(5, 24, 42, 0.16);
    transform: translateY(-2px);
}

.pb-shop-grid.is-list-view .pb-shop-card {
    grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
}

.pb-shop-card-media {
    align-items: center;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 76% 22%, rgba(226, 199, 127, 0.26), transparent 28%),
        linear-gradient(135deg, #0d304d, #dfe8f4);
    color: var(--pb-shop-blue-dark);
    display: flex;
    min-height: 230px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.pb-shop-grid.is-list-view .pb-shop-card-media {
    aspect-ratio: auto;
    min-height: 100%;
}

.pb-shop-card-media img {
    display: block;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 0.22s ease;
    width: 100%;
}

.pb-shop-card:hover .pb-shop-card-media img {
    transform: scale(1.025);
}

.pb-shop-card-media > span {
    align-items: center;
    color: #0b4f9f;
    display: flex;
    font-size: 44px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.03em;
    min-height: 230px;
    width: 100%;
}

.pb-shop-card-media em {
    background: rgba(255, 250, 240, 0.94);
    border: 1px solid rgba(199, 162, 90, 0.42);
    border-radius: 999px;
    color: #07365d;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    left: 14px;
    letter-spacing: 0.03em;
    padding: 8px 11px;
    position: absolute;
    text-transform: uppercase;
    top: 14px;
}

.pb-shop-card-body {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    display: grid;
    gap: 12px;
    padding: 18px;
}

.pb-shop-card-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pb-shop-card-topline span {
    background: rgba(77, 149, 221, 0.11);
    border: 1px solid rgba(77, 149, 221, 0.13);
    border-radius: 999px;
    color: var(--pb-shop-blue-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 6px 9px;
    text-transform: uppercase;
}

.pb-shop-card h3 {
    font-size: 19px;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin: 0;
}

.pb-shop-card h3 a {
    color: var(--pb-shop-text);
    text-decoration: none;
}

.pb-shop-card h3 a:hover {
    color: var(--pb-shop-blue-dark);
}

.pb-shop-card p {
    color: var(--pb-shop-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.pb-shop-seller-line {
    align-items: center;
    border-top: 1px solid rgba(13, 48, 77, 0.08);
    display: flex;
    gap: 9px;
    min-width: 0;
    padding-top: 12px;
}

.pb-shop-seller-avatar {
    border-color: rgba(199, 162, 90, 0.45);
    height: 35px;
    width: 35px;
}

.pb-shop-seller-line a {
    color: #24344b;
    font-size: 13px;
    font-weight: 900;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-shop-card-footer,
.pb-shop-card-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.pb-shop-card-footer strong {
    color: var(--pb-shop-blue-dark);
    font-size: 22px;
    letter-spacing: -0.035em;
}

.pb-shop-card-footer strong:empty::before {
    color: var(--pb-shop-muted);
    content: "Price TBD";
    font-size: 14px;
    letter-spacing: 0;
}

.pb-shop-card-footer span {
    color: var(--pb-shop-muted);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
}

.pb-shop-card-actions a,
.pb-shop-card-actions button {
    min-height: 42px;
}

.pb-shop-card-actions .pb-buyers-primary-btn {
    flex: 1;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
}

.pb-shop-card-actions .pb-buyers-outline-btn.is-saved {
    background: rgba(77, 149, 221, 0.12);
    color: var(--pb-shop-blue-dark);
}

.pb-shop-empty {
    align-items: center;
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 64px 20px;
    text-align: center;
}

.pb-shop-empty span {
    align-items: center;
    background: rgba(77, 149, 221, 0.12);
    border: 1px solid rgba(77, 149, 221, 0.22);
    border-radius: 50%;
    color: var(--pb-shop-blue-dark);
    display: flex;
    font-size: 35px;
    height: 78px;
    justify-content: center;
    width: 78px;
}

.pb-shop-empty h2 {
    color: var(--pb-shop-text);
    font-size: 25px;
    letter-spacing: -0.035em;
    margin: 0;
}

.pb-shop-empty p {
    color: var(--pb-shop-muted);
    margin: 0 0 8px;
    max-width: 560px;
}

.pb-shop-pagination {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}

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

.pb-shop-pagination a {
    color: var(--pb-shop-blue-dark);
}

.pb-shop-pagination span {
    color: var(--pb-shop-muted);
}

@media (min-width: 900px) {
    .pb-shop-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .pb-shop-layout {
        grid-template-columns: 1fr;
    }

    .pb-shop-filter-stack {
        position: static;
    }

    .pb-shop-filters,
    .pb-shop-advanced-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pb-shop-filter-head,
    .pb-shop-filter-actions,
    .pb-shop-age-range {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .pb-shop-shell {
        background: var(--pb-shop-cream);
    }

    .pb-shop-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pb-shop-page {
        padding: 10px;
    }

    .pb-shop-hero {
        padding: 26px 20px;
    }

    .pb-shop-hero::after {
        inset: 10px;
    }

    .pb-shop-results-bar,
    .pb-shop-filter-head {
        align-items: start;
    }

    .pb-shop-hero-stats,
    .pb-shop-filters,
    .pb-shop-advanced-filters,
    .pb-shop-grid,
    .pb-shop-grid.is-list-view .pb-shop-card,
    .pb-shop-price-pair,
    .pb-shop-age-range,
    .pb-shop-filter-actions {
        grid-template-columns: 1fr;
    }

    .pb-shop-results-bar {
        display: grid;
    }

    .pb-shop-view-controls {
        width: fit-content;
    }
}

/* Phase 6m: grey out seller items when the seller is not accepting purchases. */
.pb-shop-card.is-paused {
    filter: grayscale(1);
    opacity: 0.52;
}

.pb-shop-card.is-paused .pb-shop-card-media,
.pb-shop-card.is-paused h3,
.pb-shop-card.is-paused .pb-shop-card-footer {
    pointer-events: none;
}

.pb-shop-paused-note {
    background: rgba(6, 29, 49, 0.06);
    border: 1px solid rgba(77, 149, 221, 0.18);
    border-radius: 12px;
    color: var(--pb-shop-muted);
    font-size: 12px;
    font-weight: 800;
    margin: 10px 0 0;
    padding: 9px 10px;
}

.pb-shop-card-actions .pb-buyers-primary-btn.is-disabled,
.pb-shop-card-actions span.pb-buyers-primary-btn {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.72;
}
