/* Closo Wholesale — THE collection template (Faire look, Ivan's grant 2026-09-25,
   canvas «Collections — one template for all 73»: Collection-top / -guide / -phone /
   -noun / -seasonal). Loaded ONLY on the noun / store-type / seasonal pages
   (index.php adds it to the chrome's sheets; the hero carries the same link for a
   live swap in from a page that did not load it). Markup: views/market/_noun_page.php.

   Rhythm (Ivan's storefront invariants): the crumbs bring catbar → crumbs 22px and
   crumbs → content 24px (the shared .wsl-breadcrumb rule, wholesale-market.css), so
   the hero adds no top margin of its own; eyebrow → H1 12px; the bands under the
   grid are 64px apart on desktop, 40px on a phone. The page gutter is the shared
   centring rule's: 48px, 16px at and under 1024. Lot cards are not touched here. */

.wsc-sec { box-sizing: border-box; padding-left: var(--wm-pad); padding-right: var(--wm-pad); }
.wsc-anchor { display: block; position: relative; top: -12px; height: 0; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.wsc-hero-in {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #F7F4EF; border-radius: 24px; overflow: hidden; min-height: 380px;
}
.wsc-hero--store-type .wsc-hero-in { min-height: 420px; }
.wsc-hero-tx { display: flex; flex-direction: column; justify-content: center; padding: 44px 48px; min-width: 0; }
.wsc-eyebrow {
  margin: 0; font: 600 12px/1.3 Inter, Inter Fallback, system-ui, sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: #452B90;
}
.wsc-h1 {
  margin: 12px 0 0; font: 600 44px/1.1 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif;
  letter-spacing: -.01em; color: #1A202C;
}
.wsc-intro { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: #3A4150; max-width: 60ch; }
.wsc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wsc-btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  font: 600 15px/1.2 Inter, Inter Fallback, system-ui, sans-serif; padding: 13px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid #1A202C;
}
.wsc-btn--ink { background: #1A202C; color: #FFFFFF; }
.wsc-btn--ink:hover { background: #2E3748; color: #FFFFFF; }
.wsc-btn--line { background: transparent; color: #1A202C; }
.wsc-btn--line:hover { background: #FFFFFF; color: #1A202C; }
.wsc-hero-ph { position: relative; background: #E9E2D6; min-height: 100%; }
.wsc-hero-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── The tiles region: facts · own shelves · who / what sells / when + elsewhere ── */
.wsc-top { padding-top: 28px; padding-bottom: 18px; }   /* + the shelf bar's 10px = the mockup's 28px above the lots */
.wsc-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.wsc-fact {
  display: flex; flex-direction: column; gap: 8px; box-sizing: border-box;
  border: 1px solid #E4E2EE; border-radius: 18px; padding: 22px 22px 24px; min-width: 0;
}
.wsc-fact-ic {
  width: 44px; height: 44px; border-radius: 12px; background: #F4F1FB; color: #452B90;
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
}
.wsc-fact-t { font: 600 20px/1.25 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif; color: #1A202C; }
.wsc-fact--data .wsc-fact-t { font-size: 28px; line-height: 1.15; }
.wsc-fact-d { font-size: 14px; line-height: 1.5; color: #556070; }

.wsc-cats { margin-top: 40px; }
.wsc-cats:first-child { margin-top: 0; }
.wsc-h2 { margin: 0 0 16px; font: 600 24px/1.25 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif; color: #1A202C; }
.wsc-cats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.wsc-cat { display: flex; flex-direction: column; gap: 10px; color: #1A202C; text-decoration: none; min-width: 0; }
.wsc-cat img { width: 100%; height: 150px; object-fit: cover; border-radius: 16px; display: block; background: #F4F1FB; }
.wsc-cat span { font-weight: 600; font-size: 15px; line-height: 1.3; }
.wsc-cat:hover span { color: #452B90; }

.wsc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.wsc-pair--1 { grid-template-columns: minmax(0, 1fr); }
.wsc-top > .wsc-pair:first-child { margin-top: 0; }
.wsc-card {
  display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; min-width: 0;
  border: 1px solid #E4E2EE; border-radius: 20px; padding: 26px 30px;
}
.wsc-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #3A4150; }
.wsc-h3 { margin: 0; font: 600 20px/1.3 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif; color: #1A202C; }
.wsc-card .wsc-asof { font-size: 12.5px; color: #7A7290; }
.wsc-more { font-size: 14.5px; font-weight: 600; color: #452B90; text-decoration: none; }
.wsc-more:hover { color: #2E1C63; }
.wsc-else {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 14px; background: #F4F1FB;
  font-size: 15px; font-weight: 600; color: #452B90; text-decoration: none;
}
.wsc-else span:last-child { flex-shrink: 0; }
.wsc-else:hover { background: #ECE7F8; color: #2E1C63; }
.wsc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* its chips: the shared link chip (.relchip, wholesale-market.css, 2026-09-27) */

/* ── Under the grid: the store type's guide 01–04 + the calculator ── */
/* Inside the rail layout the column's edges are the LOT GRID's (24 / 48, the
   .hub-sf rule of wholesale-market-filters.css) and the band rhythm is 64 / 40. */
.wsc-foot:empty { display: none; }
/* The market band sits inside .wsc-foot, so the shared section rhythm (body.wm .wm-main > .wsf-faq,
   wholesale-market.css) never reached it: flush against the guide box (0 px, measured 26.09 on
   /collections/convenience-store-suppliers). The same --wm-sec as every other band: 64 / 44. */
.wsc-foot > .wsn-market { margin-top: var(--wm-sec, 64px); }
/* «Looking for something else?» under the grid (Ivan 2026-10-25): the first band of the foot, the same
   --wm-sec rhythm and the guide's column edges. */
.wsc-foot > .wsc-pair--else { margin-top: var(--wm-sec, 64px); }
.wsc-guide {
  margin: 64px 0 0; background: #F7F4EF; /* sides: the catalogue shell's column (2026-09-27) */ border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px;
  scroll-margin-top: 16px;
}
.wsc-guide-l { display: flex; flex-direction: column; min-width: 0; }
.wsc-guide-h { margin: 12px 0 0; font: 600 40px/1.12 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif; letter-spacing: -.01em; color: #1A202C; }
.wsc-guide-lead { margin: 16px 0 0; font-size: 16.5px; line-height: 1.6; color: #3A4150; }
.wsc-guide-ph { width: 100%; height: 400px; object-fit: cover; border-radius: 22px; display: block; margin-top: 28px; }
.wsc-guide-r { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wsc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wsc-step { background: #FFFFFF; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wsc-step-n { font: 600 34px/1 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif; color: #452B90; }
.wsc-step .wsn-guide-k { margin: 0; font: 600 20px/1.3 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif; color: #1A202C; }
.wsc-step p { margin: 0; font-size: 15px; line-height: 1.6; color: #3A4150; }
.wsc-roi {
  background: #1A202C; border-radius: 20px; padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wsc-roi-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wsc-roi-tx b { font: 600 20px/1.3 Poppins, Poppins Fallback, Inter, Inter Fallback, system-ui, sans-serif; color: #FFFFFF; }
.wsc-roi-tx span { font-size: 14.5px; line-height: 1.5; color: #C9C4D8; }
.wsc-roi-cta {
  flex-shrink: 0; font-size: 15px; font-weight: 600; color: #1A202C; background: #FFFFFF;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
}
.wsc-roi-cta:hover { background: #F4F1FB; color: #1A202C; }

/* ── Narrower desktops: the guide stacks, the shelves go to 3 ── */
@media (max-width: 1280px) {
  .wsc-guide { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px; }
  .wsc-guide-ph { display: none; }
  .wsc-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The shared gutter drops to 16px at 1024 (wholesale-market-faire.css). */
@media (max-width: 1024px) {
  .wsc-sec { padding-left: var(--wm-pad); padding-right: var(--wm-pad); }
  .wsc-hero-tx { padding: 36px 32px; }
  .wsc-h1 { font-size: 36px; }
  .wsc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .wsc-guide, .wsc-foot > .wsc-pair--else { margin-left: 24px; margin-right: 24px; }
}

/* ── Phone (Collection-phone.dc.html): hero stacked with the photo on top, the
   facts a sideways rail, the shelves two across, the guide stacked. ── */
@media (max-width: 760px) {
  .wsc-hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 20px; }
  .wsc-hero--store-type .wsc-hero-in { min-height: 0; }
  .wsc-hero-ph { order: -1; height: 210px; min-height: 0; }
  .wsc-hero-tx { padding: 20px; }
  .wsc-eyebrow { font-size: 11px; }
  .wsc-h1 { font-size: 28px; line-height: 1.15; }
  .wsc-intro { margin-top: 12px; font-size: 15px; }
  .wsc-ctas { margin-top: 16px; }
  .wsc-ctas .wsc-btn { flex: 1 1 100%; padding: 14px 20px; }
  .wsc-top { padding-top: 16px; padding-bottom: 12px; }
  .wsc-facts {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--wm-pad, 16px)); padding: 0 var(--wm-pad, 16px) 4px; scroll-padding-inline: var(--wm-pad, 16px); scrollbar-width: none;
  }
  .wsc-facts::-webkit-scrollbar { display: none; }
  .wsc-fact { flex: 0 0 160px; padding: 16px; gap: 6px; border-radius: 16px; scroll-snap-align: start; }
  .wsc-fact-ic { display: none; }
  .wsc-fact-t, .wsc-fact--data .wsc-fact-t { font-size: 17px; line-height: 1.25; }
  .wsc-fact-d { font-size: 13px; line-height: 1.45; }
  .wsc-facts + .wsc-cats { margin-top: 28px; }
  .wsc-h2 { font-size: 20px; margin-bottom: 12px; }
  .wsc-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wsc-cat { gap: 8px; }
  .wsc-cat img { height: 120px; border-radius: 14px; }
  .wsc-cat span { font-size: 14px; }
  .wsc-pair { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
  .wsc-card { padding: 20px; border-radius: 18px; }
  .wsc-h3 { font-size: 18px; }
  .wsc-guide { margin: 40px 0 0; padding: 24px 20px; border-radius: 22px; gap: 14px; }
  .wsc-foot > .wsc-pair--else { margin: 40px 0 0; }
  .wsc-guide-h { font-size: 26px; line-height: 1.15; }
  .wsc-guide-lead { font-size: 15px; }
  .wsc-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wsc-step { padding: 18px; gap: 6px; border-radius: 16px; }
  .wsc-step-n { font-size: 24px; }
  .wsc-step .wsn-guide-k { font-size: 17px; }
  .wsc-step p { font-size: 14px; line-height: 1.55; }
  /* the calculator card stacks; its words stay (no text is hidden on a phone) */
  .wsc-roi { flex-direction: column; align-items: stretch; padding: 20px; gap: 14px; border-radius: 16px; }
  .wsc-roi-tx b { font-size: 17px; }
  .wsc-roi-tx span { font-size: 13.5px; }
  .wsc-roi-cta { text-align: center; padding: 14px 20px; }
}
