/* ============================================================
   SNACK PAPER — Shop archive / category page
   Loaded only on is_shop() / is_product_category(), on top of
   best-sellers.css (base .sp-grid/.sp-prod-card/.sp-spot-card
   spotlight-and-grid system, and the card-layout/spotlight-sizing
   fixes that are actually shared with the Best Sellers page — see
   best-sellers.css). This file adds only what's unique to the Shop
   page: the text-pill category filter and the mid-page trust break.
   ============================================================ */

/* ══ CATEGORY FILTER — text pills (first thing on the page, no hero above it) ══ */
.sp-cats{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--bd)}
.sp-cats::-webkit-scrollbar{display:none}
.sp-cat{padding:11px 16px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-family:var(--sans);color:var(--gr);white-space:nowrap;cursor:pointer;border-right:1px solid var(--bd);flex-shrink:0;transition:background .15s,color .15s;text-decoration:none}
.sp-cat.active{background:var(--k);color:#fff}
.sp-cat:first-child{border-left:none}

/* ══ MID TRUST BREAK — full-bleed black band; content centered inside via max-width on the
   flex row itself only kicks in at desktop widths (see media query) so it never gets capped
   short of the page edges. ══ */
.sp-trust-break{background:var(--k);padding:20px 18px;display:flex;flex-direction:column;gap:14px;margin:0;width:100%;box-sizing:border-box}
.sp-trust-item{display:flex;align-items:center;gap:12px}
.sp-trust-icon{width:36px;height:36px;border:1px solid rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sp-trust-text-hed{font-size:11.5px;font-weight:700;color:#fff;font-family:var(--sans)}
.sp-trust-text-sub{font-size:9.5px;color:rgba(255,255,255,.45);font-family:var(--sans);margin-top:1px}

.sp-sort{font-family:var(--sans);font-size:10.5px;font-weight:600;color:var(--k);border:1.5px solid var(--k);border-radius:2px;padding:6px 8px;background:var(--wh);max-width:120px;flex-shrink:0}

.sp-empty{text-align:center;padding:40px 14px;color:var(--gr);font-size:12.5px}

/* Breathing room between the pagination controls and the live order ticker strip right below
   them — otherwise the two sit flush against each other. */
.sp-pagination{margin-bottom:18px}

/* Grid header ("Browsing / Shop All" + sort) — guard against overflow/overlap on narrow
   screens by letting it wrap onto two lines instead of squeezing the sort select. */
.sp-grid-hdr{flex-wrap:wrap;row-gap:8px}

@media (min-width:1024px){
  .sp-cats{max-width:1140px;margin:0 auto;padding:0 44px;justify-content:center}

  /* Center the "Most Ordered / What everyone's ordering right now" header and the row of
     cards beneath it — left-aligned reads oddly once the page is wide enough that a lot of
     empty space opens up on the right. */
  .sp-spotlight-hdr{justify-content:center;text-align:center}
  .sp-spot-scroll{justify-content:center}

  /* Trust break: black band spans the full page width, content row constrained + centered. */
  .sp-trust-break{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:44px;padding:28px 44px}
  .sp-trust-item{flex:0 1 300px;max-width:340px}
}
