/* ============================================================
   SNACK PAPER — Best Sellers (page-best-sellers.php)
   ============================================================ */

.bs-intro{background:var(--k);padding:24px 18px 28px;width:100%;box-sizing:border-box}
.bs-intro-eyebrow{font-size:8px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.4);margin-bottom:6px;font-family:var(--sans)}
.bs-intro-title{font-family:var(--serif);font-size:26px;font-weight:700;color:#fff;line-height:1.05;margin-bottom:7px}
.bs-intro-title em{font-style:italic;font-weight:400;color:rgba(255,255,255,.6)}
.bs-intro-sub{font-size:10.5px;color:rgba(255,255,255,.5);font-family:var(--sans);line-height:1.5;max-width:300px}

/* Spotlight */
.sp-spotlight{padding:14px 14px 12px;border-bottom:2px solid var(--k)}
.sp-spotlight-hdr{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.sp-spot-eyebrow{font-size:7.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--gr);font-family:var(--sans)}
.sp-spot-title{font-family:var(--serif);font-size:16px;font-weight:700;color:var(--k);line-height:1.15;margin-top:2px}
.sp-spot-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.sp-spot-scroll::-webkit-scrollbar{display:none}
.sp-spot-card{flex:0 0 118px;width:118px;border:1.5px solid var(--bd);border-radius:4px;overflow:hidden;background:var(--wh);display:flex;flex-direction:column;box-sizing:border-box}
.sp-spot-card.top{border-color:var(--k);border-width:2px}
.sp-spot-img{width:100%;height:92px;background:#e8e3da;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.sp-spot-img img{width:100%;height:100%;object-fit:cover;display:block}
.sp-spot-badge{position:absolute;top:6px;left:6px;background:var(--k);color:#fff;font-size:6.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:2px 5px;border-radius:2px;font-family:var(--sans);white-space:nowrap}
.sp-spot-badge.gold{background:#b8860b}
.sp-spot-info{padding:8px 8px 9px;display:flex;flex-direction:column;flex:1}
.sp-spot-name{font-size:10px;font-weight:700;color:var(--k);line-height:1.25;margin-bottom:2px;font-family:var(--sans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(10px*1.25*2)}
.sp-spot-sold{display:inline-block;align-self:flex-start;white-space:nowrap;font-size:7.5px;font-weight:800;letter-spacing:.02em;color:#fff;font-family:var(--sans);background:var(--k);padding:2px 6px;border-radius:3px;margin-bottom:5px}
.sp-spot-price{font-family:var(--serif);font-size:13.5px;font-weight:700;color:var(--k)}
.sp-spot-from{font-size:7px;color:var(--gr);font-family:var(--sans);display:block;margin-bottom:1px}
.sp-spot-atc{width:100%;background:var(--k);color:#fff;border:none;font-family:var(--sans);font-size:8px;font-weight:800;padding:6px;cursor:pointer;letter-spacing:.05em;text-transform:uppercase;margin-top:8px;border-radius:2px;display:block;text-align:center;text-decoration:none;box-sizing:border-box}
.sp-spot-dots{display:flex;justify-content:center;gap:5px;padding:10px 0 2px}
.sp-dot{width:5px;height:5px;border-radius:50%;background:var(--bd);transition:all .2s}
.sp-dot.on{background:var(--k);width:14px;border-radius:3px}

/* Product grid */
.sp-grid-hdr{display:flex;align-items:center;justify-content:space-between;padding:16px 14px 12px;border-bottom:1px solid var(--bd)}
.sp-grid-title{font-family:var(--serif);font-size:18px;font-weight:700;color:var(--k)}
.sp-grid-count{font-size:9.5px;color:var(--gr);font-family:var(--sans)}
.sp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1px;background:var(--bd);margin:0}
.sp-prod-card{background:var(--wh);cursor:pointer;position:relative;text-decoration:none;display:flex;flex-direction:column;height:100%;box-sizing:border-box;min-width:0}
.sp-prod-info{display:flex;flex-direction:column;flex:1;min-width:0}
.sp-prod-body{flex:1;min-width:0;display:flex;flex-direction:column}
.sp-prod-price-row{margin-top:auto;padding-top:6px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.sp-prod-amt{display:inline-flex;align-items:baseline;gap:4px}
.sp-prod-name{overflow-wrap:break-word;word-break:break-word}
.sp-prod-name-link{color:inherit;text-decoration:none;display:block}
.sp-prod-usp{display:flex;flex-wrap:wrap;gap:4px;overflow:visible}
.sp-prod-info .pbtns{margin-top:6px}
.sp-prod-img{width:100%;aspect-ratio:1;background:#ede8df;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.sp-prod-img img{width:100%;height:100%;object-fit:cover;display:block}
.sp-prod-new{position:absolute;top:8px;right:8px;background:var(--k);color:#fff;font-size:7px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:2px 6px;border-radius:2px;font-family:var(--sans)}
.sp-prod-info{padding:11px 11px 13px}
.sp-prod-usp{margin:3px 0 6px}
.sp-prod-name{font-size:12.5px;font-weight:700;color:var(--k);line-height:1.3;margin-bottom:3px;font-family:var(--sans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(12.5px*1.3*2)}
.sp-prod-desc{font-size:10px;color:var(--gr);line-height:1.35;font-family:var(--sans);margin:1px 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(10px*1.35*2)}
.sp-prod-sold{display:inline-block;align-self:flex-start;white-space:nowrap;font-size:9px;font-weight:800;letter-spacing:.02em;color:#fff;font-family:var(--sans);background:var(--k);padding:3px 7px;border-radius:3px;margin-bottom:8px}
.sp-prod-price{font-family:var(--serif);font-size:17px;font-weight:700;color:var(--k);display:block;margin-bottom:1px}
.sp-prod-from{font-size:8px;color:var(--gr);font-family:var(--sans)}
.sp-prod-atc{width:100%;background:var(--k);color:#fff;border:none;font-family:var(--sans);font-size:9px;font-weight:800;padding:9px;cursor:pointer;letter-spacing:.06em;text-transform:uppercase;border-radius:2px;box-sizing:border-box;margin-top:0}
.sp-prod-view{display:block;text-align:center;font-size:8.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--k);font-family:var(--sans);margin-top:6px;padding:7px;border:1px solid var(--k);border-radius:2px;cursor:pointer;text-decoration:none}
.sp-prod-rank{position:absolute;top:7px;left:7px;z-index:2;background:var(--k);color:#fff;font-family:var(--serif);font-weight:700;font-size:12px;min-width:24px;height:24px;border-radius:3px;display:flex;align-items:center;justify-content:center;padding:0 4px}

/* Ratings (fill technique) */
.sp-prod-rating{display:flex;align-items:center;gap:4px;margin:2px 0 5px}
.sp-stars{position:relative;display:inline-block;font-size:11px;line-height:1;letter-spacing:.5px;font-family:Arial,sans-serif}
.st-bg{color:var(--bd)}
.st-fg{position:absolute;left:0;top:0;width:var(--r);overflow:hidden;white-space:nowrap;color:#0D0D0D}
.sp-rate-val{font-size:10px;font-weight:700;color:var(--k);font-family:var(--sans)}
.sp-rate-cnt{font-size:9px;color:var(--gr);font-family:var(--sans)}

/* Why Choose Us (interleaved block) */
.bs-why{grid-column:1 / -1;background:var(--k);padding:20px 16px}
.bs-why-eyebrow{font-size:8px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.4);margin-bottom:5px;font-family:var(--sans)}
.bs-why-title{font-family:var(--serif);font-size:21px;font-weight:700;color:#fff;margin-bottom:14px}
.bs-why-list{display:flex;flex-direction:column;gap:13px}
.bs-why-item{display:flex;gap:11px;align-items:flex-start}
.bs-why-ic{flex:0 0 auto;width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;color:#fff}
.bs-why-ic svg{width:15px;height:15px}
.bs-why-h{font-size:12px;font-weight:700;color:#fff;font-family:var(--sans);line-height:1.3}
.bs-why-s{font-size:10px;color:rgba(255,255,255,.5);font-family:var(--sans);line-height:1.45;margin-top:2px}

/* Video reels (interleaved block) — static placeholders, see PHP comment */
.sp-reels-sec{grid-column:1 / -1;padding:16px 0 8px;background:var(--wh);border-bottom:1px solid var(--bd)}
.sp-reels-hd{display:flex;align-items:baseline;justify-content:space-between;padding:0 14px 10px}
.sp-reels-title{font-family:var(--serif);font-size:17px;font-weight:700;color:var(--k)}
.sp-reels-sub{font-size:8.5px;color:var(--gr);text-transform:uppercase;letter-spacing:.14em;font-weight:800;font-family:var(--sans)}
.sp-reels{display:flex;gap:10px;overflow-x:auto;padding:0 14px 4px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.sp-reels::-webkit-scrollbar{display:none}
.sp-reel{flex:0 0 auto;width:128px;scroll-snap-align:start;cursor:pointer}
.sp-reel-thumb{position:relative;width:128px;height:228px;border-radius:6px;overflow:hidden;background:var(--cr);border:1px solid var(--bd)}
.sp-reel-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;background:rgba(13,13,13,.78);display:flex;align-items:center;justify-content:center}
.sp-reel-play svg{width:15px;height:15px;margin-left:2px}

/* Live order ticker bar — reuses theme.js's existing #ticker driver */
.sp-livebar{display:flex;align-items:center;gap:9px;background:var(--cr);border-bottom:1px solid var(--bd);padding:7px 14px}
.sp-live-view{flex:1 1 auto;overflow:hidden;position:relative}
.sp-live-track{display:inline-flex;white-space:nowrap;will-change:transform}

.sp-pagination ul{list-style:none;display:flex;justify-content:center;gap:6px;padding:0;margin:0}
.sp-pagination li{display:inline-block}
.sp-pagination a,.sp-pagination span{display:flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 8px;border:1.5px solid var(--bd);border-radius:2px;font-size:11px;font-weight:600;color:var(--k);text-decoration:none}
.sp-pagination .current{background:var(--k);color:#fff;border-color:var(--k)}

@media (min-width:1024px){
  .sp-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sp-spot-scroll{max-width:1140px;margin:0 auto;gap:14px}
  .sp-grid-hdr,.sp-spotlight{max-width:1180px;margin:0 auto}

  /* bs-intro stays full-bleed black (no max-width) — only the text inside gets more breathing
     room on desktop, and is now centered rather than left-aligned. */
  .bs-intro{padding:56px 44px 60px;text-align:center}
  .bs-intro-title{font-size:38px}
  .bs-intro-sub{max-width:420px;font-size:12px;margin-left:auto;margin-right:auto}

  /* Why Snack Paper: 4 points in one row instead of stacked — takes far less vertical space.
     The heading above it is dropped entirely on desktop; the row speaks for itself here. */
  .bs-why{padding:32px 44px}
  .bs-why-eyebrow,.bs-why-title{display:none}
  .bs-why-list{flex-direction:row;gap:28px;max-width:1180px;margin:0 auto}
  .bs-why-item{flex:1;flex-direction:column;align-items:flex-start;gap:10px}

  /* Spotlight cards get a little bigger than the compact mobile size, but stay small overall —
     this is a teaser row above the real grid, not the main event. Shared by both the Shop page
     and Best Sellers page spotlight rows. */
  .sp-spot-card{flex:0 0 132px;width:132px}
  .sp-spot-img{height:100px}
  .sp-spot-info{padding:9px 9px 10px}
  .sp-spot-name{font-size:11px;min-height:calc(11px*1.25*2)}
  .sp-spot-price{font-size:15px}
  .sp-spot-atc{font-size:8.5px;padding:7px}
}
