/*
 * Pair Choices — self-contained stylesheet.
 * All rules are scoped to .pc-wrap so nothing leaks in or out.
 * Brand colours come from CSS custom properties set by PHP (class-assets.php).
 * WCAG AA: 4.5:1 contrast minimum, visible focus on all interactive elements.
 */

/* ── Reset within our wrapper ─────────────────────────────────────────────── */
.pc-wrap,
.pc-wrap * {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

.pc-wrap {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size:   1.125rem;        /* 18 px — dyslexia-friendly large base */
  line-height: 1.75;
  letter-spacing: 0.015em;
  color:       var(--pc-text,    #1A202C);
  background:  var(--pc-bg,     #F7FAFC);
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.pc-layout {
  display:               grid;
  grid-template-columns: 260px 1fr;
  gap:                   2rem;
  align-items:           start;
  padding:               1.5rem 0;
}
@media (max-width: 860px) {
  .pc-layout {
    grid-template-columns: 1fr;
  }
}

.pc-sidebar {
  background: var(--pc-surface, #FFFFFF);
  border:     1px solid var(--pc-border, #E2E8F0);
  border-radius: 8px;
  padding:    1.25rem;
}
.pc-main {
  min-width: 0;
}

/* ── Nonprofit / Chapter header ──────────────────────────────────────────── */
.pc-np-header {
  display:     flex;
  align-items: center;
  gap:         1.25rem;
  padding:     1.5rem;
  background:  var(--pc-primary, #1B6CA8);
  color:       #fff;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.pc-np-logo img {
  width:  80px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.pc-np-name {
  font-size:   1.6rem;
  font-weight: 700;
  color:       #fff;
  line-height: 1.2;
  margin-bottom: .25rem;
}
.pc-np-cause {
  color:     rgba(255,255,255,.9);
  font-size: .9rem;
}

.pc-chapter-banner {
  border-radius: 8px;
  overflow:      hidden;
  margin-bottom: 1rem;
  max-height:    260px;
}
.pc-chapter-banner-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.pc-chapter-header {
  display:         flex;
  flex-wrap:       wrap;
  align-items:     flex-start;
  gap:             1rem;
  padding-bottom:  1rem;
  border-bottom:   1px solid var(--pc-border, #E2E8F0);
  margin-bottom:   1.25rem;
}
.pc-chapter-identity {
  flex: 1 1 200px;
}
.pc-chapter-name {
  font-size:   1.8rem;
  font-weight: 700;
  color:       var(--pc-text, #1A202C);
  line-height: 1.2;
}
.pc-chapter-location {
  color:       var(--pc-text-muted, #718096);
  font-size:   .9rem;
  margin-top:  .25rem;
}
.pc-chapter-actions {
  display:     flex;
  align-items: center;
  gap:         .75rem;
  flex-wrap:   wrap;
}
.pc-chapter-socials {
  display: flex;
  gap:     .5rem;
  flex-wrap: wrap;
  width:   100%;
}
.pc-social-link {
  display:     inline-flex;
  align-items: center;
  justify-content: center;
  width:       36px;
  height:      36px;
  border-radius: 50%;
  background:  var(--pc-primary, #1B6CA8);
  color:       #fff;
  text-decoration: none;
  font-size:   .9rem;
  font-weight: 700;
  transition:  background .15s;
}
.pc-social-link:hover,
.pc-social-link:focus-visible {
  background: var(--pc-primary-dark, #154E7A);
}

/* ── Filters ──────────────────────────────────────────────────────────────── */
.pc-filter-group {
  margin-bottom: 1rem;
}
.pc-filter-label {
  display:     block;
  font-weight: 600;
  font-size:   .875rem;
  margin-bottom: .35rem;
  color:       var(--pc-text, #1A202C);
}
.pc-input,
.pc-select,
.pc-textarea {
  display:     block;
  width:       100%;
  padding:     .5rem .75rem;
  border:      1px solid var(--pc-border, #E2E8F0);
  border-radius: 6px;
  font-size:   1rem;
  font-family: inherit;
  line-height: 1.5;
  color:       var(--pc-text, #1A202C);
  background:  var(--pc-surface, #FFFFFF);
  transition:  border-color .15s;
}
.pc-input:focus,
.pc-select:focus,
.pc-textarea:focus {
  outline:     3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
  border-color: var(--pc-accent, #E8623A);
}
.pc-textarea {
  resize: vertical;
  min-height: 100px;
}
.pc-filter-actions {
  display:   flex;
  gap:       .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.pc-btn {
  display:     inline-flex;
  align-items: center;
  justify-content: center;
  padding:     .55rem 1.25rem;
  border:      2px solid transparent;
  border-radius: 6px;
  font-size:   1rem;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor:      pointer;
  text-decoration: none;
  transition:  background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
/* .pc-btn's display would otherwise override the UA [hidden] rule, leaving
   JS-hidden nav buttons (Next/Back/Submit) visible. Make hidden win. */
.pc-btn[hidden] { display: none !important; }
.pc-btn:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 3px;
}
.pc-btn--primary {
  background: var(--pc-primary, #1B6CA8);
  color:      #fff;
  border-color: var(--pc-primary, #1B6CA8);
}
.pc-btn--primary:hover,
.pc-btn--primary:focus-visible {
  background:  var(--pc-primary-dark, #154E7A);
  border-color: var(--pc-primary-dark, #154E7A);
}
.pc-btn--secondary {
  background:  var(--pc-surface, #FFFFFF);
  color:       var(--pc-primary, #1B6CA8);
  border-color: var(--pc-primary, #1B6CA8);
}
.pc-btn--secondary:hover,
.pc-btn--secondary:focus-visible {
  background:  var(--pc-primary, #1B6CA8);
  color:       #fff;
}
.pc-btn--ghost {
  background:  transparent;
  color:       var(--pc-text-muted, #718096);
  border-color: var(--pc-border, #E2E8F0);
}
.pc-btn--ghost:hover,
.pc-btn--ghost:focus-visible {
  background:  var(--pc-border, #E2E8F0);
  color:       var(--pc-text, #1A202C);
}
.pc-btn--large {
  padding:   .75rem 1.75rem;
  font-size: 1.1rem;
}

/* ── Product grid ─────────────────────────────────────────────────────────── */
.pc-product-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:                   1.5rem;
}
.pc-results-count {
  font-size:     .875rem;
  color:         var(--pc-text-muted, #718096);
  margin-bottom: 1rem;
}
.pc-no-results {
  color:       var(--pc-text-muted, #718096);
  font-style:  italic;
  padding:     2rem 0;
}

/* ── Product card ─────────────────────────────────────────────────────────── */
.pc-product-card {
  background:    var(--pc-surface, #FFFFFF);
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 10px;
  overflow:      hidden;
  display:       flex;
  flex-direction: column;
  transition:    box-shadow .2s, transform .15s;
}
.pc-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform:  translateY(-2px);
}
.pc-product-card--sold {
  opacity: .75;
}

.pc-card-image {
  position:      relative;
  aspect-ratio:  4/3;
  overflow:      hidden;
  background:    var(--pc-border, #E2E8F0);
}
.pc-card-thumb {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}
.pc-card-thumb--placeholder {
  width:      100%;
  height:     100%;
  background: repeating-linear-gradient(
    45deg, var(--pc-border,#E2E8F0) 0, var(--pc-border,#E2E8F0) 10px,
    var(--pc-bg,#F7FAFC) 10px, var(--pc-bg,#F7FAFC) 20px
  );
}

.pc-card-body {
  padding:  1rem;
  display:  flex;
  flex-direction: column;
  gap:      .5rem;
  flex:     1;
}
.pc-card-title {
  font-size:   1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.pc-card-title .pc-view-detail-btn {
  background:  none;
  border:      none;
  padding:     0;
  font:        inherit;
  font-size:   inherit;
  font-weight: inherit;
  color:       var(--pc-primary, #1B6CA8);
  cursor:      pointer;
  text-align:  left;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition:  text-decoration-color .15s;
}
.pc-card-title .pc-view-detail-btn:hover,
.pc-card-title .pc-view-detail-btn:focus-visible {
  text-decoration-color: currentColor;
}
.pc-card-title .pc-view-detail-btn:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
  border-radius:  2px;
}

.pc-card-price {
  font-size:   1.15rem;
  font-weight: 700;
  color:       var(--pc-text, #1A202C);
}
.pc-card-excerpt {
  font-size:    .9rem;
  color:        var(--pc-text-muted, #718096);
  display:      -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:     hidden;
  line-height:  1.5;
}
.pc-card-meta {
  display:  flex;
  flex-wrap: wrap;
  gap:      .35rem;
  font-size: .8rem;
}
.pc-card-seller {
  font-size: .85rem;
  color:     var(--pc-text-muted, #718096);
}

/* ── Business-seller name band (one line, bottom of the item image) ────────── */
.pc-biz-band {
  position:      absolute;
  left:          0;
  right:         0;
  bottom:        0;
  padding:       .4rem .6rem;
  background:    linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 65%, rgba(0,0,0,0));
  color:         #fff;
  font-size:     .9rem;
  font-weight:   600;
  line-height:   1.2;
  text-align:    center;
  white-space:   nowrap;   /* one line only */
  overflow:      hidden;
  text-overflow: ellipsis; /* safety net if a name still overruns */
  pointer-events: none;
}
.pc-biz-band--detail {
  font-size: 1rem;
  padding:   .5rem .75rem;
}

/* Open-a-Store: hide the separate "Store banner" upload some setups inject —
   the shared banner base is applied automatically; owners only add a Hero Shot. */
.pc-intake-form .pc-form-row:has(> #pd_store_banner),
.pc-intake-form .pc-form-row:has(> [name="pd_store_banner"]) {
  display: none !important;
}

/* Seller-registration: account-type radios */
.pc-sreg-selltype .pc-sreg-radio {
  display:      inline-flex;
  align-items:  center;
  gap:          .35rem;
  margin-right: 1.25rem;
  font-weight:  500;
}
.pc-card-body .pc-btn {
  margin-top: auto;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.pc-badge {
  display:     inline-block;
  padding:     .2em .55em;
  border-radius: 4px;
  font-size:   .75rem;
  font-weight: 600;
  line-height: 1.2;
}
.pc-badge--sold {
  position:   absolute;
  top:        .5rem;
  left:       .5rem;
  background: var(--pc-sold, #C53030);
  color:      #fff;
  font-size:  .85rem;
  z-index:    2;
}
.pc-badge--new          { background: #C6F6D5; color: #276749; }
.pc-badge--used         { background: #FEF3C7; color: #92400E; }
.pc-badge--gently_used  { background: #DBEAFE; color: #1E40AF; }
.pc-badge--shipping     { background: var(--pc-border,#E2E8F0); color: var(--pc-text-muted,#718096); }

/* ── Wishlist button ──────────────────────────────────────────────────────── */
.pc-wishlist-btn {
  position:    absolute;
  top:         .5rem;
  right:       .5rem;
  background:  rgba(255,255,255,.9);
  border:      none;
  border-radius: 50%;
  width:       36px;
  height:      36px;
  display:     flex;
  align-items: center;
  justify-content: center;
  cursor:      pointer;
  font-size:   1.1rem;
  color:       var(--pc-text-muted, #718096);
  transition:  color .15s, background .15s;
  z-index:     2;
}
.pc-wishlist-btn:hover,
.pc-wishlist-btn:focus-visible {
  background: #fff;
  color:      var(--pc-accent, #E8623A);
}
.pc-wishlist-btn:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
}
.pc-wishlist-btn--active {
  color: var(--pc-accent, #E8623A);
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.pc-modal {
  position: fixed;
  inset:    0;
  z-index:  9999;
  display:  flex;
  align-items: center;
  justify-content: center;
}
.pc-modal[hidden] {
  display: none;
}
.pc-modal-backdrop {
  position:   absolute;
  inset:      0;
  background: rgba(0,0,0,.55);
}
.pc-modal-box {
  position:      relative;
  z-index:       1;
  background:    var(--pc-surface, #FFFFFF);
  border-radius: 12px;
  width:         min(92vw, 960px);
  max-height:    90vh;
  overflow-y:    auto;
  padding:       2rem;
  box-shadow:    0 20px 60px rgba(0,0,0,.3);
}
.pc-modal-close {
  position:    absolute;
  top:         .75rem;
  right:       .75rem;
  background:  none;
  border:      2px solid var(--pc-border, #E2E8F0);
  border-radius: 50%;
  width:       36px;
  height:      36px;
  font-size:   1.2rem;
  line-height: 1;
  cursor:      pointer;
  color:       var(--pc-text-muted, #718096);
  display:     flex;
  align-items: center;
  justify-content: center;
  transition:  background .15s;
}
.pc-modal-close:hover,
.pc-modal-close:focus-visible {
  background: var(--pc-border, #E2E8F0);
  color:      var(--pc-text, #1A202C);
}
.pc-modal-close:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
}
/* Back-to-items control on the detail view (returns to the grid). */
.pc-modal-back {
  position:      absolute;
  top:           .75rem;
  left:          .75rem;
  display:       inline-flex;
  align-items:   center;
  gap:           2px;
  background:    none;
  border:        2px solid var(--pc-border, #E2E8F0);
  border-radius: 999px;
  padding:       .3rem .85rem;
  font-family:   'Poppins', system-ui, sans-serif;
  font-weight:   600;
  font-size:     .9rem;
  line-height:   1;
  color:         var(--pc-mkt-blue, #1f52d8);
  cursor:        pointer;
}
.pc-modal-back > span { font-size: 1.15rem; line-height: 0; margin-top: -1px; }
.pc-modal-back:hover,
.pc-modal-back:focus-visible {
  background: var(--pc-border, #E2E8F0);
  color:      var(--pc-text, #1A202C);
}
.pc-modal-back:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
}
/* Give the modal body room so the Back/Close controls never overlap content. */
.pc-modal-box { padding-top: 3.25rem; }

/* ── Product detail ──────────────────────────────────────────────────────── */
.pc-detail-sold-notice {
  background:    var(--pc-sold, #C53030);
  color:         #fff;
  padding:       .75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight:   600;
}
.pc-detail-layout {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   2rem;
}
@media (max-width: 640px) {
  .pc-detail-layout {
    grid-template-columns: 1fr;
  }
}

.pc-detail-gallery {}
.pc-gallery-main-img {
  width:         100%;
  aspect-ratio:  4/3;
  object-fit:    cover;
  border-radius: 8px;
  display:       block;
}
.pc-gallery-placeholder {
  width:         100%;
  aspect-ratio:  4/3;
  background:    var(--pc-border, #E2E8F0);
  border-radius: 8px;
}
.pc-gallery-thumbs {
  display:   flex;
  flex-wrap: wrap;
  gap:       .5rem;
  margin-top: .75rem;
}
.pc-gallery-thumb {
  width:         64px;
  height:        64px;
  border:        2px solid var(--pc-border, #E2E8F0);
  border-radius: 4px;
  overflow:      hidden;
  cursor:        pointer;
  background:    none;
  padding:       0;
  transition:    border-color .15s;
}
.pc-gallery-thumb img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}
.pc-gallery-thumb--active,
.pc-gallery-thumb:hover,
.pc-gallery-thumb:focus-visible {
  border-color: var(--pc-primary, #1B6CA8);
}
.pc-gallery-thumb:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
}

.pc-detail-info {
  display:        flex;
  flex-direction: column;
  gap:            1rem;
}
.pc-detail-title {
  font-size:   1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.pc-detail-price {
  font-size:   1.4rem;
  font-weight: 700;
  color:       var(--pc-primary, #1B6CA8);
}
.pc-detail-short-desc {
  color:      var(--pc-text, #1A202C);
  font-size:  1rem;
  line-height: 1.7;
}
.pc-detail-long-desc {
  color:       var(--pc-text, #1A202C);
  font-size:   .95rem;
  line-height: 1.8;
  border-top:  1px solid var(--pc-border, #E2E8F0);
  padding-top: .75rem;
}
.pc-toggle-desc-btn {
  background:  none;
  border:      none;
  color:       var(--pc-primary, #1B6CA8);
  cursor:      pointer;
  font-size:   .875rem;
  font-family: inherit;
  padding:     0;
  text-decoration: underline;
}
.pc-toggle-desc-btn:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
  border-radius:  2px;
}

.pc-detail-meta {
  background:    var(--pc-bg, #F7FAFC);
  border-radius: 6px;
  padding:       .75rem 1rem;
  font-size:     .9rem;
}
.pc-meta-row {
  display:   flex;
  gap:       .5rem;
  padding:   .25rem 0;
  flex-wrap: wrap;
}
.pc-meta-row dt {
  font-weight: 600;
  min-width:   80px;
  color:       var(--pc-text-muted, #718096);
}
.pc-meta-row dd {
  color: var(--pc-text, #1A202C);
}

.pc-detail-chapters {
  font-size: .9rem;
}
.pc-detail-chapters-label {
  font-weight: 600;
  color:       var(--pc-text-muted, #718096);
  margin-bottom: .25rem;
}
.pc-chapter-list {
  list-style: none;
  display:    flex;
  flex-wrap:  wrap;
  gap:        .35rem;
}
.pc-chapter-list-item {
  background:   var(--pc-border, #E2E8F0);
  color:        var(--pc-text, #1A202C);
  padding:      .2em .6em;
  border-radius: 4px;
  font-size:    .8rem;
}

.pc-detail-cta {
  margin-top: .5rem;
}
/* Mobile: full-width, sticky Add-to-Cart so it's always reachable. */
@media (max-width: 640px) {
  .pc-detail-cta {
    position: sticky; bottom: 0; z-index: 5;
    margin-top: .5rem; padding: .6rem 0;
    background: #fff; border-top: 1px solid var(--pc-border, #E2E8F0);
  }
  .pc-detail-cta .pc-btn,
  .pc-detail-cta .pc-btn--large { width: 100%; justify-content: center; }
}

/* ── Email relay form ─────────────────────────────────────────────────────── */
.pc-message-section {
  border-top:  1px solid var(--pc-border, #E2E8F0);
  padding-top: 1rem;
}
.pc-message-heading {
  font-size:     1.1rem;
  font-weight:   700;
  margin-bottom: .75rem;
}
.pc-message-login-notice {
  color:     var(--pc-text-muted, #718096);
  font-size: .9rem;
}
.pc-relay-form {
  display:        flex;
  flex-direction: column;
  gap:            .75rem;
}
.pc-form-row {
  display:        flex;
  flex-direction: column;
  gap:            .25rem;
}
.pc-label {
  font-weight: 600;
  font-size:   .9rem;
}
.pc-relay-privacy-note {
  font-size:  .8rem;
  color:      var(--pc-text-muted, #718096);
  font-style: italic;
}
.pc-relay-feedback {
  font-size:   .9rem;
  padding:     .5rem .75rem;
  border-radius: 4px;
}
.pc-relay-feedback--success {
  background: #C6F6D5;
  color:      #276749;
}
.pc-relay-feedback--error {
  background: #FED7D7;
  color:      #C53030;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pc-pagination {
  display:         flex;
  flex-wrap:       wrap;
  gap:             .35rem;
  margin-top:      2rem;
  justify-content: center;
}
.pc-pagination .page-numbers {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  min-width:     36px;
  height:        36px;
  padding:       0 .6rem;
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 6px;
  text-decoration: none;
  color:         var(--pc-text, #1A202C);
  font-size:     .875rem;
  transition:    background .15s;
}
.pc-pagination .page-numbers.current {
  background:  var(--pc-primary, #1B6CA8);
  color:       #fff;
  border-color: var(--pc-primary, #1B6CA8);
}
.pc-pagination .page-numbers:hover:not(.current),
.pc-pagination .page-numbers:focus-visible:not(.current) {
  background:  var(--pc-border, #E2E8F0);
}
.pc-pagination .page-numbers:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
}

/* ── Rating stars ─────────────────────────────────────────────────────────── */
.pc-rating {
  display:   inline-flex;
  gap:       .1em;
  font-size: 1.1rem;
  align-items: center;
}
.pc-star--full  { color: #D97706; }
.pc-star--empty { color: var(--pc-border, #E2E8F0); }
.pc-rating-count {
  font-size: .8em;
  color:     var(--pc-text-muted, #718096);
  margin-left: .25em;
}

/* ── Loading + misc ──────────────────────────────────────────────────────── */
.pc-loading {
  color:       var(--pc-text-muted, #718096);
  font-style:  italic;
  padding:     1rem 0;
}
.pc-error {
  background:    #FED7D7;
  color:         #C53030;
  padding:       .75rem 1rem;
  border-radius: 6px;
}
.pc-link {
  color:           var(--pc-primary, #1B6CA8);
  text-decoration: underline;
}
.pc-link:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
  border-radius:  2px;
}
.pc-visually-hidden {
  position: absolute;
  width:    1px;
  height:   1px;
  padding:  0;
  margin:   -1px;
  overflow: hidden;
  clip:     rect(0,0,0,0);
  white-space: nowrap;
  border:   0;
}

/* ── Copy-link feedback ──────────────────────────────────────────────────── */
.pc-copy-link-btn[data-copied="true"] {
  background:  var(--pc-success, #276749);
  color:       #fff;
  border-color: var(--pc-success, #276749);
}

/* ════════════════════════════════════════════════════════════════════════════
   Marketplace redesign (full-width "Shop by Category" storefront)
   Scoped to .pc-marketplace so the chapter storefront keeps the old layout.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --pc-mkt-navy:  #17356B;   /* headings / titles / category text */
  --pc-mkt-blue:  #1F62C2;   /* prices / active category / links */
}

/* Full-bleed: break out of the theme's constrained content column. overflow-x
   must stay visible here — 'hidden' would clip the full-bleed hero banner back
   to this container's content width. The page-level overshoot from the 100vw
   breakouts is instead clipped on <html> below. */
.pc-marketplace {
  width:         100%;
  max-width:     100vw;
  margin-left:   calc(50% - 50vw);
  margin-right:  calc(50% - 50vw);
  background:    #fff;
  padding:       2.5rem clamp(1rem, 4vw, 3.5rem) 3.5rem;
  overflow-x:    visible;
}

/* Clip the few-px overshoot the 100vw full-bleed breakouts create (100vw
   includes the scrollbar). 'clip' (not 'hidden') avoids creating a scroll
   container, so position:sticky etc. keep working. */
html { overflow-x: clip; }

/* Centered header */
/* Hide the theme's duplicate page title on pages that render the plugin's own
   masthead (marketplace + single store storefronts). Scoped to the
   pc-hide-post-title body class so no other page is affected. Covers block
   themes (.wp-block-post-title) and classic themes (.entry-title / .page-title),
   plus the date/author byline the single-post template prints on store pages. */
.pc-hide-post-title .wp-block-post-title,
.pc-hide-post-title .entry-title,
.pc-hide-post-title .page-title,
.pc-hide-post-title .wp-block-post-date,
.pc-hide-post-title .wp-block-post-author,
.pc-hide-post-title .wp-block-post-author-name {
  display: none !important;
}
/* Hide the whole byline row (date · by · author) the single-post template
   prints — a flex group that directly wraps the post-date. Scoped by direct
   child so it never matches an outer content wrapper. */
.pc-hide-post-title .wp-block-group:has(> .wp-block-post-date) {
  display: none !important;
}

.pc-mkt-head {
  text-align:    center;
  margin-bottom: 2rem;
}
/* Optional hero banner image (set via Settings → Marketplace Hero Image URL). */
.pc-mkt-head--banner {
  margin-bottom: 1.5rem;
}
.pc-mkt-hero-banner {
  display:       block;
  width:         100%;
  height:        auto;
  border-radius: 14px;
  box-shadow:    0 6px 24px rgba(23, 53, 107, .10);
}
/* Home masthead: full-bleed (edge-to-edge) row spanning both columns of the
   centered .pc-sreg grid, above the sidebar/main. The 100vw breakout resolves
   against the centered grid; the page-level overshoot is clipped on <html>. */
.pc-home-banner {
  grid-column:   1 / -1;
  display:       block;
  width:         100vw;
  max-width:     100vw;
  height:        auto;
  margin-left:   calc(50% - 50vw);
  margin-right:  calc(50% - 50vw);
  margin-bottom: 1.5rem;
  border-radius: 0;
  box-shadow:    none;
}

/* Marketplace hero banner runs full-bleed (edge-to-edge), breaking out of the
   centered content column so it spans the viewport like a masthead. */
.pc-marketplace .pc-mkt-head--banner {
  width:         100vw;
  max-width:     100vw;
  margin-left:   calc(50% - 50vw);
  margin-right:  calc(50% - 50vw);
}
.pc-marketplace .pc-mkt-head--banner .pc-mkt-hero-banner {
  border-radius: 0;
  box-shadow:    none;
}
/* Community Partner Stores™ — small eyebrow above the title */
.pc-mkt-eyebrow {
  color:         var(--pc-mkt-navy);
  font-weight:   700;
  font-size:     clamp(1rem, 1.8vw, 1.35rem);
  margin:        0 0 .15rem;
}
/* Marketplace — dominant */
.pc-mkt-title {
  color:         var(--pc-mkt-navy);
  font-size:     clamp(2.6rem, 7vw, 4.5rem);
  font-weight:   800;
  line-height:   1.02;
  margin:        0;
}
/* Empowering — smaller, centered, sits under the title */
.pc-mkt-empower {
  color:         var(--pc-mkt-navy);
  font-weight:   600;
  font-size:     clamp(1.15rem, 2vw, 1.5rem);
  margin:        .3rem 0 0;
}
/* (Girls & Boys Youthclubs) — red tagline, larger than "Empowering" */
.pc-mkt-tagline {
  color:         var(--pc-mkt-red, #b3231f);
  font-weight:   800;
  font-size:     clamp(1.5rem, 3.2vw, 2.25rem);
  line-height:   1.1;
  margin:        .1rem 0 0;
}
.pc-mkt-sub {
  color:         var(--pc-mkt-blue);
  font-weight:   600;
  font-size:     1rem;
  margin-top:    .5rem;
}

/* Quick-nav: prominent Shop-by-Category / Shop-by-Store / Coming-Soon buttons */
.pc-mkt-quicknav {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             .6rem;
  margin:          0 0 1.75rem;
}
.pc-mkt-quickbtn {
  display:         inline-flex;
  align-items:     center;
  gap:             .5rem;
  padding:         .6rem 1.15rem;
  border-radius:   999px;
  border:          2px solid var(--pc-mkt-blue, #1F62C2);
  background:      #fff;
  color:           var(--pc-mkt-navy, #17356B);
  font-weight:     700;
  font-size:       .98rem;
  text-decoration: none;
  cursor:          pointer;
  transition:      background .15s, color .15s, transform .1s;
}
.pc-mkt-quickbtn:hover {
  background:  var(--pc-mkt-blue, #1F62C2);
  color:       #fff;
  transform:   translateY(-1px);
}
.pc-mkt-quickbtn-ico { font-size: 1.05rem; line-height: 1; }
/* Coming-soon button gets a warm accent so it stands out as "new". */
.pc-mkt-quickbtn--soon {
  border-color: var(--pc-mkt-red, #b3231f);
  color:        var(--pc-mkt-red, #b3231f);
}
.pc-mkt-quickbtn--soon:hover {
  background:   var(--pc-mkt-red, #b3231f);
  color:        #fff;
}
/* Become-a-Seller CTA — filled primary so it reads as the marketplace's action. */
.pc-mkt-quickbtn--seller {
  background:   var(--pc-mkt-blue, #1F62C2);
  border-color: var(--pc-mkt-blue, #1F62C2);
  color:        #fff;
}
.pc-mkt-quickbtn--seller:hover {
  background:   var(--pc-mkt-navy, #17356B);
  border-color: var(--pc-mkt-navy, #17356B);
  color:        #fff;
}

/* Quick-nav jump targets: keep a little breathing room from the top when scrolled
   to, and flash briefly so the jump is obvious. */
#pc-shop-category,
#pc-shop-store,
#pc-coming-soon { scroll-margin-top: 20px; }
.pc-jump-flash {
  animation:     pcJumpFlash 1.4s ease-out;
  border-radius: 6px;
}
@keyframes pcJumpFlash {
  0%, 100% { background-color: transparent; }
  18%      { background-color: rgba(31, 98, 194, .16); }
}

/* Quick-nav filter dropdowns (Shop by Category / Shop by Store). */
.pc-mkt-quickdd { position: relative; display: inline-flex; }
.pc-mkt-quickdd-toggle { cursor: pointer; }
.pc-dd-caret { font-size: .7rem; margin-left: .05rem; }
.pc-mkt-quickdd.is-open .pc-dd-caret { transform: rotate(180deg); }
.pc-mkt-quickdd-menu {
  position:      absolute;
  top:           calc(100% + 6px);
  left:          50%;
  transform:     translateX(-50%);
  min-width:     220px;
  max-height:    336px;
  overflow-y:    auto;
  background:    #fff;
  border:        1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow:    0 12px 34px rgba(23, 53, 107, .18);
  padding:       .4rem;
  z-index:       60;
}
.pc-mkt-quickdd-menu:not([hidden]) { display: grid; gap: 1px; }
.pc-mkt-quickdd-menu a {
  display:         block;
  padding:         .5rem .85rem;
  border-radius:   8px;
  color:           var(--pc-mkt-navy, #17356B);
  font-weight:     600;
  font-size:       .95rem;
  text-decoration: none;
  white-space:     nowrap;
}
.pc-mkt-quickdd-menu a:hover,
.pc-mkt-quickdd-menu a:focus-visible { background: #eef4ff; }
.pc-mkt-quickdd-menu a.is-active {
  background: var(--pc-mkt-blue, #1F62C2);
  color:      #fff;
}
/* Cascading "Shop by Store" panel — State → City → County + matching stores. */
.pc-mkt-quickdd-menu--store { min-width: 262px; }
.pc-dd-storeform { display: grid; gap: .5rem; padding: .35rem .5rem .55rem; }
.pc-dd-field { display: grid; gap: .2rem; }
.pc-dd-flabel {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #64748b;
}
.pc-dd-storeform .pc-select {
  width: 100%; padding: .5rem .6rem; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: .95rem; background: #fff; color: var(--pc-mkt-navy, #17356B);
}
.pc-dd-stores { border-top: 1px solid #edf1f7; margin-top: .25rem; padding-top: .3rem; }
.pc-dd-stores-head {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #64748b; padding: .25rem .85rem;
}
.pc-mkt-quickdd-menu a.pc-dd-store { display: grid !important; gap: 1px; white-space: normal; }
.pc-dd-store-name { font-weight: 700; }
.pc-dd-store-addr { font-size: .8rem; color: #64748b; font-weight: 500; }
.pc-dd-empty { padding: .5rem .85rem; color: #64748b; font-size: .9rem; }
.pc-dd-clear {
  display: block; padding: .5rem .85rem; margin-top: .15rem;
  color: var(--pc-mkt-blue, #1F62C2); font-weight: 600; font-size: .88rem; text-decoration: none;
}
.pc-dd-clear:hover { text-decoration: underline; }
/* Phones: show the whole Shop by Store panel (no cramped inner scroll); the
   category list scrolls within most of the screen height. JS keeps both on-screen. */
@media (max-width: 600px) {
  .pc-mkt-quickdd-menu { max-height: 70vh; }
  .pc-mkt-quickdd-menu--store { max-height: none; overflow-y: visible; }
}

/* Stores that haven't opted into the finder-fee display program: shown disabled
   in the seller's display-store pickers (dashboard + post-item), with a note. */
.pc-store-optout {
  opacity: .55;
  cursor:  not-allowed;
}
.pc-store-optout input {
  cursor: not-allowed;
}
.pc-store-optout-note {
  color:       var(--pc-mkt-muted, #718096);
  font-size:   .85em;
  font-style:  italic;
}

/* Sidebar + grid */
.pc-mkt-layout {
  display:               grid;
  grid-template-columns: 190px 1fr;
  gap:                   2.5rem;
  align-items:           start;
  max-width:             1500px;
  margin:                0 auto;
}
@media (max-width: 900px) {
  .pc-mkt-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

.pc-mkt-cat-heading {
  color:         var(--pc-mkt-blue);
  font-size:     1.1rem;
  font-weight:   700;
  margin-bottom: .75rem;
}
.pc-cat-list { list-style: none; }
.pc-cat-link {
  display:         block;
  padding:         .3rem 0;
  color:           var(--pc-mkt-navy);
  text-decoration: none;
  font-size:       1rem;
  transition:      color .12s;
}
.pc-cat-link:hover,
.pc-cat-link:focus-visible {
  color:           var(--pc-mkt-blue);
  text-decoration: underline;
}
.pc-cat-link.is-active {
  color:       var(--pc-mkt-blue);
  font-weight: 700;
}
.pc-cat-link:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
}

/* Condensed category list — show max 10, reveal the rest with the toggle. */
.pc-cat-list--collapsible .pc-cat-hidden { display: none; }
.pc-cat-list--collapsible.is-expanded .pc-cat-hidden { display: list-item; }
.pc-cat-more {
  display: inline-block; margin: .35rem 0 .25rem; padding: .2rem 0;
  font: inherit; font-size: .95rem; font-weight: 700;
  color: var(--pc-mkt-blue, #1F62C2);
  background: none; border: 0; cursor: pointer; text-decoration: underline;
}
.pc-cat-more:hover { color: var(--pc-mkt-navy, #17356B); }

.pc-mkt-grid {
  display:               grid;
  grid-template-columns: repeat(5, 1fr);
  gap:                   1.75rem 1.25rem;
}
@media (max-width: 1200px) { .pc-mkt-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .pc-mkt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .pc-mkt-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem .9rem; } }

/* ── Mobile filter drawer (Shopify-style) ─────────────────────────────── */
.pc-mkt-toolbar    { display: none; }
.pc-mkt-drawer-close { display: none; }
.pc-mkt-backdrop   { display: none; }

@media (max-width: 900px) {
  /* A tappable "Filters" bar above the grid. */
  .pc-mkt-toolbar { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; }
  .pc-mkt-filter-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px; padding: .55rem 1.1rem;
    font: inherit; font-weight: 700; font-size: 1rem;
    color: var(--pc-mkt-navy, #17356B);
    background: #fff; border: 1px solid var(--pc-border, #E2E8F0);
    border-radius: 10px; cursor: pointer;
  }
  .pc-mkt-filter-toggle:active { background: var(--pc-bg, #F7FAFC); }
  .pc-mkt-filter-ico { font-size: 1.15rem; line-height: 1; }

  /* Sidebar becomes an off-canvas drawer. */
  .pc-mkt-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(86vw, 340px); z-index: 1001;
    background: #fff; padding: 3.25rem 1.25rem 2rem;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.25);
  }
  .pc-mkt-sidebar.is-open { transform: translateX(0); }
  .pc-mkt-drawer-close {
    display: block; position: absolute; top: .4rem; right: .6rem;
    width: 40px; height: 40px; font-size: 2rem; line-height: 1;
    color: var(--pc-mkt-navy, #17356B);
    background: none; border: 0; cursor: pointer;
  }
  .pc-mkt-backdrop.is-open {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 1000;
  }
  /* Prevent body scroll under the open drawer. */
  body.pc-mkt-drawer-open { overflow: hidden; }
}

/* Minimal card: image · price · title */
.pc-mcard-btn {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            .45rem;
  width:          100%;
  padding:        0;
  border:         none;
  background:     none;
  font:           inherit;
  text-align:     left;
  cursor:         pointer;
}
.pc-mcard-img {
  position:      relative;
  display:       block;
  width:         100%;
  aspect-ratio:  1 / 1;
  border-radius: 10px;
  overflow:      hidden;
  background:    #eef1f5;
}
.pc-mcard-img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform .2s;
}
.pc-mcard-btn:hover .pc-mcard-img img { transform: scale(1.03); }
.pc-mcard-img--placeholder {
  display:    block;
  width:      100%;
  height:     100%;
  background: repeating-linear-gradient(45deg,#e4e8ee 0,#e4e8ee 12px,#eef1f5 12px,#eef1f5 24px);
}
.pc-mcard-price {
  color:       var(--pc-mkt-blue);
  font-weight: 700;
  font-size:   1.05rem;
  line-height: 1.2;
}
.pc-mcard-price .amount,
.pc-mcard-price bdi { color: inherit; }
.pc-mcard-title {
  color:       var(--pc-mkt-navy);
  font-size:   .95rem;
  line-height: 1.35;
}
.pc-mcard-btn:hover .pc-mcard-title { text-decoration: underline; }
.pc-mcard-btn:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 3px;
  border-radius:  4px;
}
.pc-mcard--sold .pc-mcard-btn { opacity: .72; }

/* Category filter / pagination swap loading state */
.pc-mkt-main {
  transition: opacity .15s ease;
}
.pc-mkt-main--loading {
  opacity:        .45;
  pointer-events: none;
}

/* ── Chapter onboarding / intake form ─────────────────────────────────────── */
.pc-intake {
  max-width: 820px;
  margin:    0 auto;
  padding:   1.5rem 0 3rem;
}
.pc-intake-head { margin-bottom: 1.5rem; }
.pc-intake-title {
  color:       var(--pc-mkt-navy, #17356B);
  font-size:   clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
}
.pc-intake-sub {
  color:     var(--pc-text-muted, #718096);
  font-size: 1rem;
}
.pc-intake-section {
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 10px;
  padding:       1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  background:    var(--pc-surface, #FFFFFF);
}
.pc-intake-section > legend {
  font-weight: 700;
  color:       var(--pc-mkt-navy, #17356B);
  padding:     0 .5rem;
  font-size:   1.05rem;
}
.pc-intake .pc-form-row { margin-bottom: 1rem; }
.pc-intake .pc-label { display: block; margin-bottom: .3rem; }
.pc-req      { color: var(--pc-accent, #E8623A); }
.pc-optional { color: var(--pc-text-muted, #718096); font-weight: 400; font-size: .85rem; }
.pc-intake-social-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   0 1.5rem;
}
@media (max-width: 600px) { .pc-intake-social-grid { grid-template-columns: 1fr; } }
.pc-intake-actions { margin-top: .5rem; }
.pc-intake-success {
  background:    #C6F6D5;
  border-radius: 10px;
  padding:       1.5rem 1.75rem;
  color:         #22543D;
}
.pc-intake-success h2 { color: #22543D; margin-bottom: .35rem; }

/* ── "Post an Item" trigger + multi-step modal ────────────────────────────── */
.pc-mkt-postbar { text-align: center; margin: 0 0 1.75rem; }

.pc-pai-box { width: min(94vw, 640px); }
.pc-pai-title {
  color:         var(--pc-mkt-navy, #17356B);
  font-size:     1.4rem;
  font-weight:   800;
  margin-bottom: 1rem;
}
.pc-pai-login { color: var(--pc-text-muted, #718096); }

.pc-pai-steps {
  display:       flex;
  gap:           .5rem;
  list-style:    none;
  margin:        0 0 1.25rem;
  padding:       0;
  flex-wrap:     wrap;
}
.pc-pai-steps li {
  display:     flex;
  align-items: center;
  gap:         .4rem;
  font-size:   .85rem;
  color:       var(--pc-text-muted, #718096);
  flex:        1 1 0;
  min-width:   120px;
}
.pc-pai-steps li span {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           24px;
  height:          24px;
  border-radius:   50%;
  background:      var(--pc-border, #E2E8F0);
  color:           #fff;
  font-weight:     700;
  font-size:       .8rem;
  flex:            0 0 auto;
}
.pc-pai-steps li.is-active { color: var(--pc-mkt-navy, #17356B); font-weight: 700; }
.pc-pai-steps li.is-active span,
.pc-pai-steps li.is-done span { background: var(--pc-mkt-blue, #1F62C2); }

.pc-pai-panel .pc-form-row { margin-bottom: 1rem; }
.pc-pai-panel .pc-label { display: block; margin-bottom: .3rem; font-weight: 600; }
.pc-input--error { outline: 2px solid #C53030 !important; border-color: #C53030 !important; }

/* "+ Add new…" text box revealed under a Category/Brand select. */
.pc-addable-new { margin-top: .5rem; }
.pc-addable-new[hidden] { display: none; }

.pc-pai-review {
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 8px;
  padding:       .5rem 1rem;
  margin-bottom: 1rem;
}
.pc-pai-review-row {
  display:               grid;
  grid-template-columns: 1fr auto auto;
  align-items:           center;
  gap:                   .6rem;
  padding:               .4rem 0;
  border-bottom:         1px solid var(--pc-border, #E2E8F0);
  font-size:             .95rem;
}
.pc-pai-review-row:last-child { border-bottom: 0; }
.pc-pai-review-k { color: var(--pc-text-muted, #718096); }
.pc-pai-review-v { font-weight: 600; text-align: right; }
/* Inline per-field editing on the Review step: each row gets an Edit link that
   swaps the value cell for an input; missing required fields flag red. */
.pc-pai-review-row.is-missing { background: #fdf1ef; border-radius: 7px; }
.pc-pai-missing { color: #c0392b; font-weight: 700; font-style: normal; }
.pc-pai-edit {
  background:      none;
  border:         0;
  padding:        4px 6px;
  cursor:         pointer;
  color:          var(--pc-mkt-blue, #1F62C2);
  font-weight:    700;
  font-size:      .82rem;
  text-decoration: underline;
}
.pc-pai-edit:hover { color: var(--pc-mkt-navy, #17356B); }
.pc-pai-inline-input {
  width:         100%;
  max-width:     220px;
  padding:       6px 8px;
  border:        1.5px solid var(--pc-mkt-blue, #1F62C2);
  border-radius: 6px;
  font-size:     .85rem;
  background:    #fff;
}
textarea.pc-pai-inline-input { max-width: 100%; resize: vertical; }
.pc-pai-review-row.is-editing .pc-pai-review-v { text-align: left; }
.pc-pai-agree { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }

.pc-pai-feedback {
  padding:       .5rem .75rem;
  border-radius: 6px;
  margin:        .75rem 0;
  font-size:     .9rem;
}
.pc-pai-feedback--error { background: #FED7D7; color: #C53030; }

.pc-pai-nav {
  display:         flex;
  justify-content: space-between;
  gap:             .75rem;
  margin-top:      1.25rem;
}
.pc-pai-nav #pc-pai-back { margin-right: auto; }
.pc-pai-success {
  background:    #C6F6D5;
  color:         #22543D;
  border-radius: 8px;
  padding:       1.5rem;
  text-align:    center;
  font-weight:   600;
}

/* Chapter onboarding wizard — reuses .pc-pai-* ; JS gates panel visibility. */
.pc-intake-form.pc-js .pc-pai-panel:not(.is-active) { display: none; }
.pc-intake-review-head {
  margin:      0 0 .25rem;
  font-size:   1.15rem;
  font-weight: 800;
  color:       var(--pc-mkt-navy, #17356B);
}
.pc-intake-review-sub {
  color:     var(--pc-text-muted, #718096);
  font-size: .9rem;
  margin:    0 0 1rem;
}
.pc-pai-review-group { margin-bottom: 1.1rem; }
.pc-pai-review-group:last-child { margin-bottom: 0; }
.pc-pai-review-grouphead {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             1rem;
  font-weight:     700;
  color:           var(--pc-mkt-navy, #17356B);
  border-bottom:   2px solid var(--pc-border, #E2E8F0);
  padding-bottom:  .3rem;
  margin-bottom:   .2rem;
}
.pc-review-edit {
  background:      none;
  border:          none;
  padding:         0;
  cursor:          pointer;
  font:            inherit;
  font-size:       .85rem;
  font-weight:     600;
  color:           var(--pc-mkt-blue, #1F62C2);
  text-decoration: underline;
}
.pc-review-edit:hover,
.pc-review-edit:focus-visible { color: var(--pc-mkt-navy, #17356B); }

/* ════════════════════════════════════════════════════════════════════════════
   Chapter store (Part 2) — org band + dynamic black bar + data-driven footer.
   Reuses the marketplace shop internals (.pc-mkt-layout / grid / cards).
   ════════════════════════════════════════════════════════════════════════════ */

/* Full-bleed, same as the marketplace. */
.pc-chapter-store {
  width:        100%;
  max-width:    100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:   #fff;
  padding:      0 0 0;
  overflow-x:   hidden;
}
/* Inner shop sections get the marketplace's horizontal padding. */
.pc-chapter-store .pc-mkt-postbar,
.pc-chapter-store .pc-mkt-layout {
  padding-left:  clamp(1rem, 4vw, 3.5rem);
  padding-right: clamp(1rem, 4vw, 3.5rem);
}
.pc-chapter-store .pc-mkt-postbar { margin-top: 1.75rem; }

/* Banner hero (optional) sits above the band. */
.pc-chapter-store .pc-chapter-banner { margin: 0; }
.pc-chapter-store .pc-chapter-banner-img {
  width:      100%;
  max-height: 300px;
  object-fit: cover;
  display:    block;
}

/* ── Org header band ─────────────────────────────────────────────────────── */
.pc-cstore-band {
  position:    relative;
  /* Soft blue "cloud" shading over a deep-navy base — the standard banner look. */
  background:
    radial-gradient(60% 130% at 14% -10%, rgba(74,130,235,.28) 0%, rgba(74,130,235,0) 60%),
    radial-gradient(55% 130% at 86% 8%,  rgba(74,130,235,.24) 0%, rgba(74,130,235,0) 62%),
    radial-gradient(70% 150% at 78% 118%, rgba(46,96,200,.16) 0%, rgba(16,29,58,0) 60%),
    linear-gradient(160deg, #17295a 0%, #101d3d 100%);
  color:       #fff;
  text-align:  center;
  padding:     clamp(1.75rem, 4vw, 3rem) 1.5rem;
}
/* Store contact under the name — thin white, no black pill. */
.pc-cstore-contact {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            2px;
  margin-top:     .55rem;
  color:          rgba(255, 255, 255, .92);
  font-weight:    300;
  line-height:    1.45;
}
.pc-cstore-addr           { font-size: .9rem; }
.pc-cstore-contact-links  { font-size: .8rem; color: rgba(255, 255, 255, .8); }
.pc-cstore-contact a      { color: #fff; text-decoration: none; }
.pc-cstore-contact a:hover{ text-decoration: underline; }

/* Category sidebar windowed pager — fixed light-grey box, 10 categories at a time,
   Show more/less slide the window in place (page height never changes). */
.pc-catbox {
  background: #eceef4; border: 1px solid #d5d9e3; border-radius: 10px;
  padding: 8px 10px; margin: 4px 0 0; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(28, 40, 80, .06);
}
.pc-catbox-vp { overflow: hidden; }
.pc-catbox-track { transition: transform .35s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.pc-catbox .pc-cat-list, .pc-catbox ul { margin: 0; padding: 0; list-style: none; }
.pc-catbox li { list-style: none; margin: 0; }
.pc-catbox .pc-cat-link {
  display: block; padding: 7px 6px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px;
}
.pc-catbox .pc-cat-link:hover { background: #e2e5ef; }
.pc-catbox .pc-cat-link.is-active { background: #dfe4f4; }
.pc-catbox .pc-sreg-cats li { padding: 5px 6px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; }
.pc-catbox .pc-sreg-cats li:hover { background: #e2e5ef; }
.pc-catmore-controls { display: flex; gap: 18px; margin: 9px 2px 0; }
.pc-catmore-controls[hidden] { display: none; }
.pc-catmore-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 4px 0;
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: .9rem;
  color: var(--pc-mkt-blue, #1f52d8); cursor: pointer;
}
.pc-catmore-btn[hidden] { display: none; }
.pc-catmore-btn:hover { text-decoration: underline; }
.pc-cstore-auth {
  position:    absolute;
  top:         1rem;
  right:       1.25rem;
  display:     flex;
  gap:         .5rem;
  align-items: center;
}
.pc-cstore-auth-link {
  display:         inline-block;
  padding:         .4rem 1rem;
  border-radius:   6px;
  border:          1.5px solid rgba(255, 255, 255, .8);
  color:           #fff;
  text-decoration: none;
  font-size:       .9rem;
  font-weight:     600;
  line-height:     1.2;
  transition:      background .15s, color .15s;
}
.pc-cstore-auth-link:hover,
.pc-cstore-auth-link:focus-visible {
  background: rgba(255, 255, 255, .15);
}
.pc-cstore-auth-link--solid {
  background:    #fff;
  color:         var(--pc-mkt-navy, #17356B);
  border-color:  #fff;
}
.pc-cstore-auth-link--solid:hover,
.pc-cstore-auth-link--solid:focus-visible {
  background: rgba(255, 255, 255, .88);
  color:      var(--pc-mkt-navy, #17356B);
}
@media (max-width: 640px) {
  .pc-cstore-auth { position: static; justify-content: center; margin-bottom: 1rem; }
}

/* ── Seller registration wizard ───────────────────────────────────────────── */
.pc-sreg {
  display:               grid;
  grid-template-columns: 280px 1fr;
  gap:                   2.5rem;
  max-width:             1200px;
  margin:                0 auto;
  padding:               1.5rem 0 3rem;
}
@media (max-width: 860px) { .pc-sreg { grid-template-columns: 1fr; } }

.pc-sreg-side-title { color: var(--pc-mkt-navy, #17356B); font-size: 1.6rem; font-weight: 800; }
.pc-sreg-side-lead  { color: var(--pc-mkt-blue, #1F62C2); font-weight: 600; margin-bottom: .75rem; }
.pc-sreg-side hr    { border: 0; border-top: 1px solid var(--pc-border, #E2E8F0); margin: 1rem 0; }
.pc-sreg-side-sub   { color: var(--pc-mkt-navy, #17356B); font-weight: 700; margin-bottom: .35rem; }
.pc-sreg-cats       { list-style: none; padding: 0; margin: .5rem 0; }
.pc-sreg-cats li    { padding: .15rem 0; color: var(--pc-text, #1A202C); }
.pc-sreg-help {
  margin-top:    1rem;
  background:    var(--pc-bg, #F7FAFC);
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 8px;
  padding:       .75rem 1rem;
  font-size:     .9rem;
}

.pc-sreg-title { color: var(--pc-mkt-navy, #17356B); font-size: 1.7rem; font-weight: 800; }
.pc-sreg-sub   { color: var(--pc-text-muted, #718096); margin-bottom: 1.5rem; }

.pc-sreg-steps {
  display:    flex;
  gap:        .5rem;
  list-style: none;
  margin:     0 0 1.25rem;
  padding:    0;
  flex-wrap:  wrap;
}
.pc-sreg-steps li { display: flex; align-items: center; gap: .4rem; color: var(--pc-text-muted, #718096); font-size: .85rem; flex: 1 1 0; min-width: 120px; }
.pc-sreg-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pc-border, #E2E8F0); color: #fff; font-weight: 700; font-size: .8rem;
}
.pc-sreg-steps li.is-active { color: var(--pc-mkt-navy, #17356B); font-weight: 700; }
.pc-sreg-steps li.is-active .pc-sreg-step-num,
.pc-sreg-steps li.is-done .pc-sreg-step-num { background: var(--pc-mkt-blue, #1F62C2); }

.pc-sreg-panel { max-width: 620px; }
.pc-sreg-panel h2 { display: none; } /* step name is shown in the dynamic form heading */
.pc-sreg-note { color: var(--pc-text-muted, #718096); font-size: .9rem; margin-bottom: 1rem; }
.pc-sreg-panel .pc-form-row { margin-bottom: 1rem; }
.pc-sreg-panel .pc-label { display: block; margin-bottom: .3rem; font-weight: 600; }
.pc-sreg-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .pc-sreg-row3 { grid-template-columns: 1fr; } }

.pc-sreg-chapters {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px; padding: .75rem; margin-top: .5rem;
}
.pc-sreg-chapter-opt { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.pc-sreg-chapter-search { margin-bottom: .25rem; }

/* Club picker: list across from an "About Our Club" panel */
.pc-sreg-chapter-split { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: .5rem; }
@media (min-width: 760px) {
  .pc-sreg-chapter-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .pc-sreg-chapter-split .pc-sreg-chapters { margin-top: 0; grid-template-columns: 1fr; max-height: 360px; }
}
.pc-sreg-chapter-split .pc-sreg-chapter-opt {
  justify-content: space-between; align-items: center;
  padding: .35rem .4rem; border-radius: 6px;
}
.pc-sreg-chapter-opt.is-about-open { background: var(--pc-bg, #F7FAFC); outline: 2px solid var(--pc-primary, #1B6CA8); }
.pc-sreg-chapter-check { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; flex: 1 1 auto; }
.pc-sreg-about-btn {
  flex: 0 0 auto; cursor: pointer; font-size: .78rem; font-weight: 600;
  color: var(--pc-primary, #1B6CA8); background: transparent;
  border: 1px solid var(--pc-primary, #1B6CA8); border-radius: 999px;
  padding: .18rem .7rem; line-height: 1.4; white-space: nowrap;
}
.pc-sreg-about-btn:hover, .pc-sreg-about-btn[aria-expanded="true"] {
  color: #fff; background: var(--pc-primary, #1B6CA8);
}
.pc-sreg-about-panel {
  border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px;
  padding: 1rem 1.15rem; background: var(--pc-surface, #FFFFFF);
  position: relative; min-height: 120px;
}
@media (min-width: 760px) { .pc-sreg-about-panel { position: sticky; top: 1rem; } }
.pc-sreg-about-empty { color: var(--pc-text-muted, #718096); font-size: .9rem; line-height: 1.5; }
.pc-sreg-about-name { margin: 0 1.5rem .1rem 0; font-size: 1.1rem; color: var(--pc-text, #1A202C); }
.pc-sreg-about-loc { margin: 0 0 .75rem; font-size: .82rem; color: var(--pc-text-muted, #718096); }
.pc-sreg-about-block { margin-bottom: .9rem; }
.pc-sreg-about-block h4 {
  margin: 0 0 .2rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--pc-primary, #1B6CA8);
}
.pc-sreg-about-block p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--pc-text, #1A202C); }
.pc-sreg-about-none { margin: .25rem 0 0; font-size: .9rem; font-style: italic; color: var(--pc-text-muted, #718096); }
.pc-sreg-about-close {
  position: absolute; top: .5rem; right: .6rem; cursor: pointer;
  border: 0; background: transparent; font-size: 1.35rem; line-height: 1;
  color: var(--pc-text-muted, #718096); padding: 0 .25rem;
}
.pc-sreg-about-close:hover { color: var(--pc-text, #1A202C); }

/* Storefront "About Our Club" (buyer-facing) */
.pc-cstore-about {
  margin: 1.5rem clamp(1rem, 4vw, 3.5rem) 0;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  background: var(--pc-surface, #FFFFFF);
  border: 1px solid var(--pc-border, #E2E8F0); border-radius: 12px;
}
.pc-cstore-about-head {
  margin: 0 0 1rem; font-size: 1.3rem; font-weight: 800;
  color: var(--pc-mkt-navy, #17356B);
}
.pc-cstore-about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem;
}
.pc-cstore-about-block h3 {
  margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--pc-primary, #1B6CA8);
}
.pc-cstore-about-block p { margin: 0; line-height: 1.6; color: var(--pc-text, #1A202C); }

.pc-sreg-stripe-needs { color: var(--pc-text-muted, #718096); font-size: .9rem; margin-top: 1rem; }
.pc-sreg-stripe-status { margin-top: .5rem; font-size: .9rem; }
.pc-sreg-stripe-status--info { color: #92400E; }
.pc-sreg-stripe-status--ok { color: #276749; font-weight: 600; }

.pc-sreg-restricted { border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.pc-sreg-restricted-list { margin: .5rem 0 0 1.1rem; }
.pc-sreg-check { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: 1rem; font-size: .92rem; }

.pc-sreg-review-grp { border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; }
.pc-sreg-review-head { display: flex; justify-content: space-between; align-items: center; }
.pc-sreg-review-head h3 { color: var(--pc-mkt-navy, #17356B); font-size: 1rem; margin: 0; }
.pc-sreg-edit { background: none; border: none; color: var(--pc-mkt-blue, #1F62C2); cursor: pointer; font-weight: 600; }
.pc-sreg-review-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px solid var(--pc-border, #E2E8F0); font-size: .92rem; }
.pc-sreg-review-row span:first-child { color: var(--pc-text-muted, #718096); }
.pc-sreg-review-row span:last-child { text-align: right; font-weight: 600; }

.pc-sreg-feedback { padding: .6rem .9rem; border-radius: 6px; margin: 1rem 0; font-size: .92rem; }
.pc-sreg-feedback--error { background: #FED7D7; color: #C53030; }
.pc-sreg-nav { display: flex; gap: .75rem; margin-top: 1.5rem; max-width: 620px; }
.pc-sreg-nav #pc-sreg-back { margin-right: auto; }
.pc-sreg-success { background: #C6F6D5; color: #22543D; border-radius: 10px; padding: 1.5rem; }
.pc-sreg-success h2 { color: #22543D; margin-bottom: .35rem; }
.pc-sreg-success .pc-btn { margin-top: 1rem; }

/* ── Buyer-facing pages (home / account / coordination) — reuse .pc-sreg shell ── */
.pc-btn--large { padding: .85rem 1.6rem; font-size: 1.05rem; }

/* Home */
.pc-home-hero {
  background: var(--pc-bg, #F7FAFC);
  border: 1px solid var(--pc-border, #E2E8F0);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.pc-home-hero h2 { color: var(--pc-mkt-navy, #17356B); font-size: 1.5rem; margin: 0 0 .5rem; }
.pc-home-hero p  { color: var(--pc-text, #1A202C); margin: 0 0 1.1rem; max-width: 46ch; }
.pc-home-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 1.75rem;
}
.pc-home-card {
  display: flex; flex-direction: column; gap: .35rem;
  border: 1px solid var(--pc-border, #E2E8F0); border-radius: 10px;
  padding: 1.1rem; text-decoration: none; background: var(--pc-surface, #fff);
  color: var(--pc-text, #1A202C); transition: border-color .15s, box-shadow .15s;
}
.pc-home-card:hover { border-color: var(--pc-mkt-blue, #1F62C2); box-shadow: 0 4px 14px rgba(23,53,107,.08); }
.pc-home-card-ico { font-size: 1.6rem; }
.pc-home-card strong { color: var(--pc-mkt-navy, #17356B); font-size: 1.05rem; }
.pc-home-card span:last-child { color: var(--pc-text-muted, #718096); font-size: .9rem; }
.pc-home-h3 { color: var(--pc-mkt-navy, #17356B); font-size: 1.15rem; margin: 1.25rem 0 .6rem; }
.pc-home-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.pc-home-steps li { display: flex; gap: .75rem; align-items: flex-start; }
.pc-home-step-n {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--pc-mkt-blue, #1F62C2);
  color: #fff; font-weight: 700;
}
.pc-home-signin { color: var(--pc-text-muted, #718096); }
.pc-home-signin a { color: var(--pc-mkt-blue, #1F62C2); font-weight: 600; }

/* Account tabs */
.pc-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--pc-border, #E2E8F0); margin-bottom: 1.5rem; max-width: 620px; }
.pc-tab {
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: .6rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer;
  color: var(--pc-text-muted, #718096);
}
.pc-tab.is-active { color: var(--pc-mkt-navy, #17356B); border-bottom-color: var(--pc-mkt-blue, #1F62C2); }
.pc-account-form { max-width: 460px; }
.pc-account-form .pc-form-row { margin-bottom: 1rem; }
.pc-account-form .pc-label { display: block; margin-bottom: .3rem; font-weight: 600; }
.pc-account-forgot { align-self: center; margin-left: auto; color: var(--pc-mkt-blue, #1F62C2); font-size: .9rem; }
.pc-account-seller { margin-top: 1rem; color: var(--pc-text-muted, #718096); font-size: .92rem; }
.pc-account-seller a, .pc-account-forgot { text-decoration: none; }
.pc-account-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.pc-sreg-feedback--ok { background: #C6F6D5; color: #22543D; }

/* Coordination */
.pc-coord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; max-width: 900px; }
@media (max-width: 780px) { .pc-coord-grid { grid-template-columns: 1fr; } }
.pc-coord-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.pc-coord-items li { padding: .3rem 0; border-bottom: 1px solid var(--pc-border, #E2E8F0); }
.pc-coord-qty { color: var(--pc-text-muted, #718096); }
.pc-coord-contact {
  border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px; padding: .75rem 1rem; margin-bottom: .75rem;
  background: var(--pc-surface, #fff);
}
.pc-coord-contact-name { font-weight: 700; color: var(--pc-mkt-navy, #17356B); }
.pc-coord-contact a { color: var(--pc-mkt-blue, #1F62C2); text-decoration: none; }
.pc-coord-muted { color: var(--pc-text-muted, #718096); font-size: .88rem; margin-top: .25rem; }
.pc-coord-thread {
  border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px; padding: 1rem;
  max-height: 340px; overflow-y: auto; background: var(--pc-bg, #F7FAFC); margin-bottom: .75rem;
}
.pc-coord-msg { margin-bottom: .85rem; padding: .6rem .75rem; border-radius: 8px; background: #fff; border: 1px solid var(--pc-border, #E2E8F0); }
.pc-coord-msg--seller { background: #EEF5FF; }
.pc-coord-msg-head { font-size: .85rem; margin-bottom: .25rem; }
.pc-coord-msg-head strong { color: var(--pc-mkt-navy, #17356B); }
.pc-coord-msg-body { font-size: .95rem; }
.pc-coord-form textarea { width: 100%; margin-bottom: .5rem; }
.pc-coord-feedback { font-size: .9rem; margin-bottom: .5rem; color: var(--pc-text-muted, #718096); }
.pc-coord-list { list-style: none; padding: 0; margin: 0; }
.pc-coord-list li a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .85rem 1rem; border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px;
  margin-bottom: .6rem; text-decoration: none; color: var(--pc-mkt-navy, #17356B);
  background: var(--pc-surface, #fff);
}
.pc-coord-list li a:hover { border-color: var(--pc-mkt-blue, #1F62C2); }
.pc-coord-list-state { color: var(--pc-text-muted, #718096); font-size: .88rem; font-weight: 400; }

/* Receipt-decision landing (themed Accept/Deny/Did-Not-Receive) */
.pc-receipt-card {
  max-width: 560px; background: var(--pc-surface, #fff);
  border: 1px solid var(--pc-border, #E2E8F0); border-radius: 12px;
  padding: 1.75rem; box-shadow: 0 4px 14px rgba(23,53,107,.06);
}
.pc-receipt-bar { height: 6px; width: 64px; border-radius: 6px; margin-bottom: 1.1rem; }
.pc-receipt-head { color: var(--pc-mkt-navy, #17356B); font-size: 1.35rem; margin: 0 0 .5rem; }
.pc-receipt-msg { color: var(--pc-text, #1A202C); margin: 0 0 .5rem; }
.pc-receipt-order { color: var(--pc-text-muted, #718096); font-size: .9rem; margin: .5rem 0 0; }
.pc-receipt-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── Multi-seller cart ─────────────────────────────────────────────────────── */
.pc-cart { max-width: 1200px; margin: 0 auto; padding: 1.5rem 0 3rem; }
.pc-cart-title { color: var(--pc-mkt-navy, #17356B); font-size: 1.6rem; font-weight: 800; display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1.25rem; }
.pc-cart-count { color: var(--pc-text-muted, #718096); font-size: 1.1rem; font-weight: 600; }
.pc-cart-empty { color: var(--pc-text-muted, #718096); margin-bottom: 1rem; }

.pc-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .pc-cart-layout { grid-template-columns: 1fr; } }

.pc-cart-table { width: 100%; border-collapse: collapse; background: var(--pc-surface, #fff); border: 1px solid var(--pc-border, #E2E8F0); border-radius: 10px; overflow: hidden; }
.pc-cart-table thead th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--pc-text-muted, #718096); padding: .75rem 1rem; border-bottom: 1px solid var(--pc-border, #E2E8F0); }
.pc-cart-col-price, .pc-cart-col-action { text-align: right; }
.pc-cart-row td { padding: 1rem; border-bottom: 1px solid var(--pc-border, #E2E8F0); vertical-align: top; }
.pc-cart-row:last-child td { border-bottom: 0; }
.pc-cart-item { display: flex; gap: 1rem; }
.pc-cart-thumb { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #eef1f5; display: block; }
.pc-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-cart-thumb--ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg,#e4e8ee 0,#e4e8ee 10px,#eef1f5 10px,#eef1f5 20px); }
.pc-cart-item-info { display: flex; flex-direction: column; gap: .15rem; }
.pc-cart-item-title { font-weight: 700; color: var(--pc-mkt-navy, #17356B); }
.pc-cart-meta { font-size: .85rem; color: var(--pc-text-muted, #718096); }
.pc-cart-donation { font-size: .85rem; color: #276749; font-weight: 600; }
.pc-cart-price { text-align: right; font-weight: 700; color: var(--pc-mkt-navy, #17356B); white-space: nowrap; }
.pc-cart-action { text-align: right; }
.pc-cart-remove { color: var(--pc-mkt-blue, #1F62C2); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.pc-cart-remove:hover { text-decoration: underline; }
.pc-cart-continue { margin-top: 1rem; }

.pc-cart-summary-box { background: var(--pc-surface, #fff); border: 1px solid var(--pc-border, #E2E8F0); border-radius: 10px; padding: 1.25rem; }
.pc-cart-summary-title { color: var(--pc-mkt-navy, #17356B); font-size: 1.2rem; font-weight: 800; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--pc-border, #E2E8F0); }
.pc-cart-sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .95rem; }
.pc-cart-info { color: var(--pc-mkt-blue, #1F62C2); cursor: help; }
.pc-cart-sum-total { border-top: 1px solid var(--pc-border, #E2E8F0); margin-top: .35rem; padding-top: .75rem; font-size: 1.25rem; font-weight: 800; color: var(--pc-mkt-navy, #17356B); }
.pc-cart-sum-total span:last-child { color: var(--pc-mkt-blue, #1F62C2); }
.pc-cart-checkout { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin-top: 1rem; background: #1E7A3D; border-color: #1E7A3D; color: #fff; }
.pc-cart-checkout:hover, .pc-cart-checkout:focus-visible { background: #196833; border-color: #196833; color: #fff; }

/* Cart table → stacked cards on phones. */
@media (max-width: 600px) {
  .pc-cart-table, .pc-cart-table tbody, .pc-cart-row { display: block; width: 100%; }
  .pc-cart-table thead { display: none; }
  .pc-cart-row {
    display: grid; grid-template-columns: 1fr auto;
    gap: .35rem .75rem; align-items: start;
    padding: .85rem 1rem; border-bottom: 1px solid var(--pc-border, #E2E8F0);
  }
  .pc-cart-row:last-child { border-bottom: 0; }
  .pc-cart-row td { display: block; border: 0; padding: 0; }
  .pc-cart-item   { grid-column: 1; grid-row: 1; }
  .pc-cart-price  { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
  .pc-cart-action { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .pc-cart-remove { display: inline-block; min-height: 30px; }
}

.pc-cart-donation-callout { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1rem; border: 1px solid var(--pc-border, #E2E8F0); border-radius: 10px; padding: 1rem 1.25rem; }
.pc-cart-heart { color: #276749; font-size: 1.4rem; line-height: 1; }
.pc-cart-donation-callout > div { display: flex; flex-direction: column; gap: .1rem; }
.pc-cart-donation-label { font-weight: 700; color: var(--pc-mkt-navy, #17356B); }
.pc-cart-donation-amount { color: #276749; font-weight: 800; font-size: 1.4rem; }
.pc-cart-donation-note { font-size: .85rem; color: var(--pc-text-muted, #718096); }
.pc-cart-paypal {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  width: 100%; margin-top: .6rem; padding: .7rem 1rem;
  background: #FFC439; border: 1px solid #E6AC00; border-radius: 6px;
  font-size: 1rem; font-weight: 600; color: #253B80; cursor: not-allowed; opacity: .95;
}
.pc-cart-paypal strong { font-style: italic; font-weight: 800; }
.pc-cart-paypal strong span { color: #179BD7; }

/* ── Multi-step checkout ───────────────────────────────────────────────────── */
.pc-co { max-width: 760px; margin: 0 auto; padding: 1.5rem 0 3rem; }
.pc-co-title { color: var(--pc-mkt-navy, #17356B); font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
.pc-co-empty { color: var(--pc-text-muted, #718096); margin-bottom: 1rem; }
/* Sold-out / stock-capped notice on cart + checkout. */
.pc-stock-notice { max-width: 1200px; margin: 1rem auto; padding: .75rem 1rem; border: 1px solid #f0c36d; background: #fff8e6; border-radius: 8px; color: #7a4d00; font-size: 14px; }
.pc-stock-notice ul { margin: 0; padding-left: 1.1rem; }

.pc-co-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0 0 1.25rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--pc-border, #E2E8F0); }
.pc-co-steps li { display: flex; align-items: center; gap: .4rem; color: var(--pc-text-muted, #718096); font-size: .85rem; }
.pc-co-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pc-border, #E2E8F0); color: #fff; font-weight: 700; font-size: .8rem; }
.pc-co-steps li.is-active { color: var(--pc-mkt-navy, #17356B); font-weight: 700; }
.pc-co-steps li.is-active span, .pc-co-steps li.is-done span { background: var(--pc-mkt-blue, #1F62C2); }

.pc-co-panel h2 { color: var(--pc-mkt-navy, #17356B); font-size: 1.2rem; margin-bottom: .1rem; }
.pc-co-substep { color: var(--pc-mkt-blue, #1F62C2); font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.pc-co-secure { display: flex; align-items: center; gap: .4rem; color: #276749; font-size: .88rem; margin-bottom: .75rem; }
.pc-co-panel .pc-form-row { margin-bottom: 1rem; }
.pc-co-panel .pc-label { display: block; margin-bottom: .3rem; font-weight: 600; }
.pc-co-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .pc-co-row3 { grid-template-columns: 1fr; } }
.pc-co-check { display: flex; gap: .5rem; align-items: center; margin: .5rem 0 1rem; font-size: .92rem; }

.pc-co-items { border: 1px solid var(--pc-border, #E2E8F0); border-radius: 10px; overflow: hidden; margin-bottom: 1rem; }
.pc-co-item { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--pc-border, #E2E8F0); }
.pc-co-item:last-child { border-bottom: 0; }
.pc-co-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #eef1f5; }
.pc-co-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-co-thumb--ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg,#e4e8ee 0,#e4e8ee 10px,#eef1f5 10px,#eef1f5 20px); }
.pc-co-item-info { flex: 1; display: flex; flex-direction: column; }
.pc-co-item-info strong { color: var(--pc-mkt-navy, #17356B); }
.pc-co-meta { font-size: .85rem; color: var(--pc-text-muted, #718096); }
.pc-co-item-price { font-weight: 700; color: var(--pc-mkt-navy, #17356B); }

.pc-co-summary { border: 1px solid var(--pc-border, #E2E8F0); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.pc-co-sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .95rem; }
.pc-co-sum-donation span:last-child { color: #276749; font-weight: 600; }
.pc-co-sum-donation-note { margin-top: 6px; font-size: 13px; color: #276749; text-align: right; }
.pc-co-sum-total { border-top: 1px solid var(--pc-border, #E2E8F0); margin-top: .35rem; padding-top: .6rem; font-size: 1.2rem; font-weight: 800; color: var(--pc-mkt-navy, #17356B); }
.pc-co-sum-total span:last-child { color: var(--pc-mkt-blue, #1F62C2); }

.pc-co-methods { color: var(--pc-text-muted, #718096); font-size: .9rem; }
.pc-co-methods span { display: inline-block; border: 1px solid var(--pc-border, #E2E8F0); border-radius: 4px; padding: .1rem .5rem; margin-right: .35rem; font-size: .8rem; }
.pc-co-payment-note { margin: .5rem 0 1rem; padding: .6rem .9rem; border-radius: 6px; font-size: .9rem; }
.pc-co-payment-note--info { background: #FEF3C7; color: #92400E; }
/* Stripe Payment Element (wizard checkout) */
.pc-co-stripe-element { margin: .5rem 0 1rem; padding: .9rem; border: 1px solid var(--pc-border, #E2E8F0); border-radius: 8px; background: #fff; min-height: 44px; }
.pc-co-stripe-errors { display: none; color: #c0392b; font-size: .9rem; margin: -.5rem 0 1rem; }

.pc-co-confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
@media (max-width: 520px) { .pc-co-confirm-grid { grid-template-columns: 1fr; } }
.pc-co-confirm-grid h3 { color: var(--pc-mkt-navy, #17356B); font-size: 1rem; margin-bottom: .35rem; }
.pc-co-summary-text { font-size: .92rem; color: var(--pc-text, #1A202C); }
.pc-co-sellers { margin: 0; padding-left: 1.1rem; font-size: .92rem; }

.pc-co-feedback { padding: .6rem .9rem; border-radius: 6px; margin: 1rem 0; font-size: .92rem; }
.pc-co-feedback--error { background: #FED7D7; color: #C53030; }
.pc-co-nav { display: flex; gap: .75rem; margin-top: 1.5rem; }
.pc-co-nav #pc-co-back { margin-right: auto; }

.pc-co-thanks { text-align: center; padding: 1.5rem 1rem; }
.pc-co-check { width: 56px; height: 56px; border-radius: 50%; background: #276749; color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.pc-co-thanks h2 { color: var(--pc-mkt-navy, #17356B); }
.pc-co-thanks-donation { background: #C6F6D5; color: #22543D; border-radius: 8px; padding: .75rem 1rem; margin: 1rem auto; max-width: 480px; font-weight: 600; }
.pc-co-pending { color: #92400E; font-size: .9rem; }
.pc-co-thanks-actions { margin-top: 1rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.pc-co-redirect { margin: .75rem 0 0; font-size: 14px; color: #4a5568; text-align: center; }
.pc-cstore-eyebrow {
  color:          rgba(255, 255, 255, .85);
  font-size:      clamp(.85rem, 1.3vw, 1rem);
  font-weight:    700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin:         0 0 .25rem;
}
.pc-cstore-org {
  color:       #fff;
  font-size:   clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin:      0;
}
.pc-cstore-tagline {
  color:          rgba(255, 255, 255, .9);
  font-size:      clamp(1rem, 1.6vw, 1.2rem);
  font-weight:    600;
  letter-spacing: .02em;
  margin:         .4rem 0 0;
}

/* ── Dynamic black info bar ──────────────────────────────────────────────── */
.pc-cstore-bar {
  background:   #111418;
  color:        #e8ebf0;
  display:      flex;
  flex-wrap:    wrap;
  align-items:  center;
  justify-content: center;
  gap:          .35rem .5rem;
  padding:      .7rem clamp(1rem, 4vw, 3.5rem);
  font-size:    .95rem;
  text-align:   center;
}
.pc-cstore-bar-item { white-space: nowrap; }
.pc-cstore-bar-link {
  color:           #e8ebf0;
  text-decoration: none;
}
.pc-cstore-bar-link:hover,
.pc-cstore-bar-link:focus-visible { text-decoration: underline; }
.pc-cstore-bar-sep { color: #5a6270; padding: 0 .15rem; }

/* ── Secondary sidebar filters (search + condition) ──────────────────────── */
.pc-cstore-filters {
  margin-top:  1.5rem;
  padding-top: 1.25rem;
  border-top:  1px solid var(--pc-border, #E2E8F0);
}
.pc-cstore-filters .pc-filter-group { margin-bottom: 1rem; }

/* ── Data-driven footer ──────────────────────────────────────────────────── */
.pc-cstore-footer {
  margin-top:            3rem;
  background:            var(--pc-mkt-navy, #17356B);
  color:                 #eef2f8;
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:                   2rem;
  padding:               2.5rem clamp(1rem, 4vw, 3.5rem);
}
.pc-cstore-foothead {
  color:          #fff;
  font-size:      1rem;
  font-weight:    700;
  letter-spacing: .08em;
  margin:         0 0 .9rem;
}
.pc-cstore-footlist { list-style: none; margin: 0; padding: 0; }
.pc-cstore-footlist li { margin-bottom: .5rem; line-height: 1.4; }
.pc-cstore-footlist a {
  color:           #eef2f8;
  text-decoration: none;
}
.pc-cstore-footlist a:hover,
.pc-cstore-footlist a:focus-visible { text-decoration: underline; }

.pc-cstore-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.pc-cstore-social-link {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           40px;
  height:          40px;
  border-radius:   50%;
  background:      rgba(255, 255, 255, .12);
  color:           #fff;
  transition:      background .15s, transform .15s;
}
.pc-cstore-social-link:hover,
.pc-cstore-social-link:focus-visible {
  background: rgba(255, 255, 255, .28);
  transform:  translateY(-2px);
}
.pc-cstore-social-link:focus-visible {
  outline:        3px solid var(--pc-accent, #E8623A);
  outline-offset: 2px;
}
.pc-cstore-social-link svg {
  width:  20px;
  height: 20px;
  fill:   currentColor;
}

/* ════════════════════════════════════════════════════════════════════════════
   "SOLD" overlay — shown across a sold item's main image for its 3-day window,
   on marketplace cards, chapter-store cards, and the detail modal alike.
   ════════════════════════════════════════════════════════════════════════════ */
.pc-gallery-main { position: relative; }

.pc-sold-overlay {
  position:        absolute;
  inset:           0;
  z-index:         3;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(20, 24, 31, .42);
  pointer-events:  none;
  overflow:        hidden;
}
.pc-sold-overlay-text {
  width:          140%;
  text-align:     center;
  transform:      rotate(-18deg);
  background:     var(--pc-sold, #C53030);
  color:          #fff;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size:      clamp(1rem, 4.5cqw, 2rem);
  padding:        .16em 1.4em;
  box-shadow:     0 2px 10px rgba(0, 0, 0, .35);
}
/* clamp() with cqw needs a container; fall back gracefully where unsupported. */
.pc-mcard-img,
.pc-card-image,
.pc-gallery-main { container-type: inline-size; }

/* ── "None available" banner (inventory depleted, 3-day display window) ────── */
.pc-none-banner {
  position:       absolute;
  left:           0;
  right:          0;
  bottom:         0;
  z-index:        3;
  text-align:     center;
  background:     rgba(20, 24, 31, .55);
  color:          #fff;
  font-weight:    700;
  font-size:      .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding:        .32em .5em;
  pointer-events: none;
  backdrop-filter: blur(1px);
}
.pc-none-banner--detail {
  font-size: 1rem;
  padding:   .45em .6em;
}

/* Small button variant (used by the inventory variant builder). */
.pc-btn--small {
  font-size: .82rem;
  padding:   .3em .8em;
}

/* Variant picker on the product-detail page (variable listings). */
.pc-detail-cta--variable {
  display:        flex;
  flex-direction: column;
  gap:            .4rem;
  align-items:    flex-start;
}
.pc-add-variation[aria-disabled="true"] {
  opacity:        .5;
  pointer-events: none;
}

/* ── Post-Item: inventory & variant builder ────────────────────────────────── */
.pc-pai-inv-toggle {
  display:     flex;
  align-items: center;
  gap:         .5rem;
  margin:      .6rem 0 .2rem;
  font-weight: 600;
  cursor:      pointer;
}
.pc-pai-inv-variants {
  margin-top:    .5rem;
  padding:       .75rem;
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 8px;
  background:    var(--pc-bg, #F7FAFC);
}
.pc-pai-inv-table {
  width:           100%;
  border-collapse: collapse;
  margin:          .5rem 0;
}
.pc-pai-inv-table th {
  text-align:  left;
  font-size:   .8rem;
  color:       var(--pc-text-muted, #718096);
  padding:     .25rem .4rem;
}
.pc-pai-inv-table td {
  padding: .25rem .4rem;
}
.pc-pai-inv-table .pc-input--qty {
  width: 6rem;
}
.pc-pai-inv-row .delete {
  color:       var(--pc-sold, #C53030);
  font-size:   1.2rem;
  line-height: 1;
}

/* Store-visibility fee schedule under the additional-stores checklist. */
.pc-pai-fee-schedule {
  margin:      .35rem 0 0;
  padding-left: 1.1rem;
  font-size:   .82rem;
  color:       var(--pc-text-muted, #718096);
}
.pc-pai-fee-schedule li { margin: .1rem 0; }

/* Locked chapter (read-only) on the Post-an-Item form when on a chapter store. */
.pc-pai-locked-chapter {
  margin:        0;
  padding:       .55rem .75rem;
  background:    var(--pc-bg, #F7FAFC);
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 8px;
  font-weight:   600;
  color:         var(--pc-mkt-navy, #17356B);
}

/* ════════════════════════════════════════════════════════════════════════════
   Coming Soon — store-page placeholder preview + marketplace section + filter.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Coming Soon store page: grayed placeholder grid + banner overlay ─────── */
.pc-coming-soon {
  position: relative;
  padding:  .5rem clamp(1rem, 4vw, 3.5rem) 2.5rem;
}
.pc-coming-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1.5rem 1.25rem;
  opacity:               .5;
  filter:                grayscale(1);
}
@media (max-width: 900px) { .pc-coming-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pc-coming-grid { grid-template-columns: repeat(2, 1fr); } }
.pc-coming-card { display: flex; flex-direction: column; gap: .45rem; }
.pc-coming-thumb {
  display:       block;
  width:         100%;
  aspect-ratio:  1 / 1;
  border-radius: 10px;
  background:    repeating-linear-gradient(45deg,#d7dbe0 0,#d7dbe0 12px,#e6e9ee 12px,#e6e9ee 24px);
  border:        1px solid #cbd2da;
}
.pc-coming-name { font-size: .95rem; color: #4a5568; }

/* Transparent, outlined banner across the placeholders — black lettering. */
.pc-coming-banner {
  position:        absolute;
  inset:           0;
  display:         flex;
  align-items:     center;       /* centered over the placeholder grid */
  justify-content: center;
  pointer-events:  none;
}
.pc-coming-banner-text {
  width:          94%;
  box-sizing:     border-box;
  text-align:     center;
  transform:      rotate(-4deg);
  background:     rgba(255, 255, 255, .35);
  color:          #808080;       /* medium gray lettering */
  border:         5px solid #808080;
  border-radius:  10px;
  font-weight:    900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size:      clamp(2.6rem, 11vw, 7rem);
  line-height:    1.05;
  padding:        .28em .2em;
  white-space:    nowrap;
}

/* ── Marketplace "Chapters coming soon" section ──────────────────────────── */
.pc-mkt-coming {
  max-width: 1500px;
  margin:    2.5rem auto 0;
  padding:   1.75rem clamp(1rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--pc-border, #E2E8F0);
}
.pc-mkt-coming-title {
  color:         var(--pc-mkt-navy, #17356B);
  font-size:     1.4rem;
  font-weight:   800;
  margin-bottom: 1.1rem;
}
.pc-mkt-coming-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:                   1rem;
}
.pc-coming-chip {
  display:         block;
  padding:         1rem 1.1rem;
  border:          1px dashed var(--pc-mkt-blue, #1F62C2);
  border-radius:   10px;
  background:      #f6f9ff;
  text-decoration: none;
  transition:      box-shadow .15s, transform .15s;
}
.pc-coming-chip:hover,
.pc-coming-chip:focus-visible {
  box-shadow: 0 4px 14px rgba(31, 98, 194, .18);
  transform:  translateY(-2px);
}
.pc-coming-chip-badge {
  display:         inline-block;
  font-size:       .7rem;
  font-weight:     800;
  text-transform:  uppercase;
  letter-spacing:  .08em;
  color:           #fff;
  background:      var(--pc-mkt-blue, #1F62C2);
  padding:         .15rem .55rem;
  border-radius:   999px;
  margin-bottom:   .5rem;
}
.pc-coming-chip-name {
  display:     block;
  font-weight: 700;
  color:       var(--pc-mkt-navy, #17356B);
}
.pc-coming-chip-loc {
  display:   block;
  font-size: .85rem;
  color:     var(--pc-text-muted, #718096);
  margin-top: .15rem;
}

/* ── Open-a-Store live preview (store banner + footer silhouette) ─────────── */
.pc-charcount { font-size: .72rem; font-weight: 600; color: #9aa6bf; font-variant-numeric: tabular-nums; }
.pc-charcount--warn { color: #c0392b; }
.pc-input--file { padding: .4rem; }

.pc-sprev { margin: 0 0 1.5rem; }
.pc-sprev-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7688ad; margin: 0 0 .5rem; }
.pc-sprev-banner, .pc-sprev-footer {
  background:
    radial-gradient(120% 140% at 16% 6%, rgba(120,160,235,.30) 0%, rgba(60,95,185,.10) 34%, rgba(21,34,80,0) 60%),
    linear-gradient(140deg, #1b2c63 0%, #152250 52%, #101a3e 100%);
}
.pc-sprev-banner {
  position: relative; border-radius: 12px 12px 0 0; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; min-height: 180px;
  box-shadow: inset 0 0 60px rgba(8,14,38,.5);
}
.pc-sprev-badge {
  position: absolute; top: 11px; left: 13px; z-index: 3; font-size: .62rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: #fff;
  background: var(--pc-mkt-blue, #1F62C2); padding: .18rem .55rem; border-radius: 999px;
}
.pc-sprev-left { padding: 30px 16px 16px 20px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pc-sprev-name {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 800; font-size: 1.4rem; line-height: 1.05; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(4,9,26,.55), 0 3px 9px rgba(0,0,0,.4);
}
.pc-sprev-addr { font-weight: 300; font-size: .74rem; color: #d7e0f4; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sprev-ph { color: #8194bb !important; font-style: italic; font-weight: 400 !important; }
.pc-sprev-name.pc-sprev-ph { font-style: normal; }
.pc-sprev-center { display: flex; align-items: center; justify-content: center; padding: 12px; }
.pc-sprev-hero { width: 100%; height: 140px; border-radius: 9px; background: #0e1836; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc-sprev-hero svg { width: 54px; height: 54px; opacity: .5; }
.pc-sprev-hero img { width: 100%; height: 100%; object-fit: cover; }
.pc-sprev-right { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; }
.pc-sprev-fixed { position: absolute; top: 9px; right: 11px; font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8ea0c8; }
.pc-sprev-yc { display: flex; gap: 10px; }
.pc-sprev-yc-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.pc-sprev-yc-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--pc-mkt-blue, #1F62C2); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.pc-sprev-yc-item b { color: #fff; font-size: .68rem; font-weight: 700; }
.pc-sprev-yc-item span { color: #c3d0ec; font-size: .56rem; line-height: 1.15; }
.pc-sprev-donate { display: flex; align-items: center; gap: 7px; color: #e7edfb; font-size: .6rem; line-height: 1.25; }
.pc-sprev-heart { color: #E4322B; font-size: 1.15rem; flex: none; }
.pc-sprev-footer { border-radius: 0 0 12px 12px; padding: 16px 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; color: #e7edfb; }
.pc-sprev-fcol h4 { margin: 0 0 7px; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #aebbdb; }
.pc-sprev-line { font-size: .75rem; font-weight: 300; color: #dbe4f6; margin: 2px 0; word-break: break-word; }
.pc-sprev-social { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-sprev-social i { width: 28px; height: 28px; border-radius: 50%; background: #26407e; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; font-style: normal; color: #cdd9f5; }
.pc-sprev-social i.off { opacity: .25; }
@media (max-width: 680px) {
  .pc-sprev-banner { grid-template-columns: 1fr; }
  .pc-sprev-footer { grid-template-columns: 1fr; }
}

/* ── Shop by Store filter ────────────────────────────────────────────────── */
.pc-mkt-store-heading { margin-top: 1.75rem; }
.pc-mkt-storeform { display: flex; flex-direction: column; gap: .6rem; }
.pc-mkt-storeform .pc-select { width: 100%; }
.pc-store-clear {
  font-size:       .85rem;
  color:           var(--pc-mkt-blue, #1F62C2);
  text-decoration: underline;
}

/* ── "Stores in this area" band (multiple stores per city/county) ────────── */
.pc-mkt-area {
  max-width: 1500px;
  margin:    0 auto 1.5rem;
  padding:   1.25rem clamp(1rem, 4vw, 3.5rem);
  background: #f6f9ff;
  border:     1px solid var(--pc-border, #E2E8F0);
  border-radius: 12px;
}
.pc-mkt-area-title {
  color:         var(--pc-mkt-navy, #17356B);
  font-size:     1.15rem;
  font-weight:   800;
  margin-bottom: .9rem;
}
.pc-mkt-area-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:                   .75rem;
}
.pc-area-store {
  display:         block;
  padding:         .8rem 1rem;
  background:      #fff;
  border:          1px solid var(--pc-mkt-blue, #1F62C2);
  border-radius:   9px;
  text-decoration: none;
  transition:      box-shadow .15s, transform .15s;
}
.pc-area-store:hover,
.pc-area-store:focus-visible {
  box-shadow: 0 3px 12px rgba(31, 98, 194, .16);
  transform:  translateY(-1px);
}
.pc-area-store-name {
  display:     block;
  font-weight: 700;
  color:       var(--pc-mkt-navy, #17356B);
}
.pc-area-store-addr {
  display:    block;
  font-size:  .85rem;
  color:      var(--pc-text-muted, #718096);
  margin-top: .15rem;
}

/* ── Post-Item: multi-chapter checklist + hints + locked primary ──────────── */
.pc-pai-chapters {
  display:        grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:            .3rem .75rem;
  max-height:     180px;
  overflow-y:     auto;
  border:         1px solid var(--pc-border, #E2E8F0);
  border-radius:  8px;
  padding:        .6rem .75rem;
}
.pc-pai-chapter-opt {
  display:     flex;
  align-items: center;
  gap:         .4rem;
  font-size:   .9rem;
  cursor:      pointer;
}
.pc-pai-hint {
  grid-column: 1 / -1;
  font-size:   .8rem;
  color:       var(--pc-text-muted, #718096);
  margin-top:  .25rem;
}
.pc-pai-locked-chapter {
  display:       inline-block;
  background:    var(--pc-bg, #F7FAFC);
  border:        1px solid var(--pc-border, #E2E8F0);
  border-radius: 6px;
  padding:       .35rem .75rem;
  font-weight:   600;
  color:         var(--pc-mkt-navy, #17356B);
}

/* ── Marketplace attribute filter form ────────────────────────────────────── */
.pc-mkt-filter-heading { margin-top: 1.5rem; }
.pc-mkt-attrform {
  display:        flex;
  flex-direction: column;
  gap:            .5rem;
  margin-top:     .5rem;
}
.pc-mkt-attrform .pc-select { width: 100%; }

/* ═══ Mobile foundation ════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Breathing room so content isn't edge-to-edge on phones. */
  .pc-marketplace, .pc-cart, .pc-detail, .pc-checkout {
    padding-left: 1rem; padding-right: 1rem;
  }
  /* Wizard / checkout actions stack full-width, primary on top. */
  .pc-co-nav, .pc-sreg-nav, .pc-pai-nav {
    flex-direction: column-reverse; align-items: stretch; gap: .6rem;
  }
  .pc-co-nav .pc-btn, .pc-sreg-nav .pc-btn, .pc-pai-nav .pc-btn {
    width: 100%; justify-content: center; min-height: 46px;
  }
}

/* ── Buyer Accept / Deny · returns countdown · return + dispute forms ───────── */
.pc-pop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 28, 52, .55); }
.pc-pop__box { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.pc-pop__msg { margin: 0 0 16px; font-size: 1.05rem; font-weight: 700; color: var(--pc-mkt-navy, #17356B); line-height: 1.45; }
.pc-pop__ok { min-width: 120px; }

.pc-rcpt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.pc-rcpt__q { flex: 1 0 100%; margin: 0; font-size: .92rem; color: #334155; }
.pc-rcpt__btn { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; font-weight: 700; font-size: .95rem; cursor: pointer; color: #fff; }
.pc-rcpt__btn--accept { background: #2f7d46; }
.pc-rcpt__btn--deny { background: #a83f27; }
.pc-rcpt__btn--done { background: #e2e8f0; color: #64748b; cursor: not-allowed; }
.pc-rcpt__btn:disabled { opacity: .6; }

.pc-rt-list { display: grid; gap: 14px; }
.pc-rt-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; background: #fff; scroll-margin-top: 90px; }
.pc-rt-card.is-focus { border-color: #a83f27; box-shadow: 0 0 0 3px rgba(168, 63, 39, .15); }
.pc-rt-head { display: grid; gap: 2px; margin-bottom: 8px; }
.pc-rt-status { display: grid; gap: 4px; margin: 8px 0 10px; padding: 10px 12px; border-radius: 10px; background: #f1f5f9; font-size: .92rem; }
.pc-rt-status--form_pending { background: #fff4e5; }
.pc-rt-status--awaiting_seller { background: #eef4ff; }
.pc-rt-status--not_received { background: #fdecea; }
.pc-rt-status--refunded { background: #ecfbef; }
.pc-rt-label { font-weight: 700; color: var(--pc-mkt-navy, #17356B); }
.pc-rt-day { font-weight: 700; color: #1F62C2; }
.pc-rt-bar { display: block; height: 8px; border-radius: 99px; background: #dbe4f3; overflow: hidden; }
.pc-rt-bar > span { display: block; height: 100%; background: #1F62C2; border-radius: 99px; }
.pc-rt-left { color: #475569; font-size: .85rem; }
.pc-rt-form, .pc-rt-dispute { display: grid; gap: 10px; margin-top: 6px; }
.pc-rt-form h4, .pc-rt-dispute h4 { margin: 4px 0 0; font-size: 1.02rem; color: var(--pc-mkt-navy, #17356B); }
.pc-rt-seller { padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px dashed #94a3b8; }
.pc-rt-seller p { margin: 0; }
.pc-rt-seller__h { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; margin-bottom: 4px !important; }
.pc-rt-seller__addr { font-size: 1rem; line-height: 1.45; margin-bottom: 6px !important; }
.pc-rt-seller__contact { font-size: .9rem; line-height: 1.5; }
.pc-rt-field { display: grid; gap: 4px; font-size: .9rem; }
.pc-rt-field > span { font-weight: 600; color: #334155; }
.pc-rt-field select, .pc-rt-field input[type="text"], .pc-rt-field textarea { width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 16px; background: #fff; }
.pc-rt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-rt-ack { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; font-weight: 600; color: #7c2d12; background: #fff7ed; padding: 10px; border-radius: 8px; }
.pc-rt-ack input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; }
.pc-rt-note { margin: 0; font-size: .85rem; }
.pc-rt-info { margin: 0; font-size: .92rem; line-height: 1.55; }
@media (max-width: 600px) {
  .pc-rt-row { grid-template-columns: 1fr; }
  .pc-rcpt__btn { flex: 1 1 auto; }
}
.pc-return-nr-btn { margin-left: 6px; }
/* Grid items default to min-width:auto — let return cards/forms shrink to the phone width. */
.pc-rt-list > *, .pc-rt-form > *, .pc-rt-dispute > *, .pc-rt-row > *, .pc-rt-field > * { min-width: 0; }
.pc-rt-card { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.pc-rt-field input[type="file"] { max-width: 100%; font-size: 14px; }
.pc-return-card__action { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pc-return-card__action .button { min-height: 42px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: .92rem; cursor: pointer; border: 0; color: #fff; }
.pc-return-card__action .pc-mark-received-btn { background: #2f7d46; }
.pc-return-card__action .pc-return-nr-btn { background: #a83f27; margin-left: 0; }
.pc-return-card__action .button:disabled { opacity: .6; }
