/* Will Supply Co. — category pages (tees, polos, sweatshirts, headwear). Loads after site.css. */
html { scroll-padding-top: 150px; }
.pcard[hidden], .psec[hidden], .chip[hidden] { display: none !important; }

/* hero */
.cat-hero { padding: 38px 0 58px; border-bottom: 1px solid var(--line); overflow: hidden; }
.cat-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--ink); font-weight: 650; }
.cat-hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: .98; }
.cat-hero h1 em { font-style: normal; color: var(--accent); }
.cat-hero .lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-soft); margin: 20px 0 0; max-width: 44ch; }
.stats { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; }
.stats b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.stats span { display: block; font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.brandline { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.cat-hero .hero-cta { margin-top: 26px; }

/* photo mosaic: one tall tile + two stacked, with a Will Supply stamp */
.mosaic { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 42vw, 560px); }
.mosaic figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.mosaic .m0 { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(23,19,14,.72); color: #fff; font-size: 12px; font-weight: 650; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp { position: absolute; width: 104px; height: 104px; right: -16px; top: -20px; color: var(--ink); background: var(--bg); border-radius: 50%; padding: 7px; transform: rotate(10deg); box-shadow: 0 12px 30px -12px rgba(23,19,14,.5); z-index: 2; }

/* recent work strip */
.work-band { background: var(--dark); color: var(--dark-ink); padding: 54px 0 28px; }
.work-band .eyebrow { color: var(--accent-2); }
.work-band .sec-head h2 { color: #F5F0E6; }
.wcard { margin: 0; position: relative; flex: 0 0 auto; width: clamp(220px, 24vw, 290px); aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: #222; }
.wcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.wcard:hover img { transform: scale(1.04); }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,5,.8), transparent 52%); }
.wcard figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
.wcard b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.wcard span { display: block; font-size: 13px; color: rgba(255,255,255,.78); margin-top: 2px; }

/* sticky filter bar */
.cat-bar { position: sticky; top: 76px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-bar-in { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.chip span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chip:hover, .chip.on { border-color: var(--ink); color: var(--ink); }
.tierf { flex: none; display: inline-flex; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.tierf button { appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-soft); padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.tierf button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* product sections + cards */
.psec { padding: 46px 0 8px; }
.psec-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; margin-bottom: 22px; }
.psec-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.psec-n { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.psec-head p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 60ch; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pimg { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.pimg img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tier { position: absolute; top: 12px; left: 12px; z-index: 1; font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.t-good { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line-2); }
.t-better { background: var(--ink); color: var(--bg); }
.t-best { background: var(--accent); color: #fff; }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pbrand { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: var(--muted); }
.pbody h3 { font-size: 17px; line-height: 1.2; margin-top: 4px; letter-spacing: -.01em; }
.pdesc { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pstyles { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 5px; }
.pstyles li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; font-size: 12.5px; color: var(--ink-soft); align-items: baseline; }
.pstyles b { font-family: var(--f-cond); font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.pstyles span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstyles em { font-style: normal; color: var(--muted); white-space: nowrap; }
.pstyles li.more { display: block; color: var(--muted); font-size: 12px; }
.pask { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); }
.pask:hover { color: var(--accent-2); }

/* closing CTA + other categories */
.cat-cta { padding: 56px 0 10px; }
.cat-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--dark); color: var(--dark-ink); border-radius: 24px; padding: 40px 44px; }
.cat-cta .eyebrow { color: var(--accent-2); }
.cat-cta h2 { color: #F5F0E6; font-size: clamp(28px, 3.6vw, 40px); margin-top: 8px; }
.cat-cta p { color: var(--dark-muted); max-width: 56ch; margin: 12px 0 0; }
.others { padding-top: 46px; }

@media (max-width: 960px) {
  .cat-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mosaic { height: clamp(320px, 82vw, 500px); }
  .stamp { width: 84px; height: 84px; right: -6px; top: -16px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 196px; }
  .cat-bar-in { flex-direction: column; align-items: stretch; gap: 10px; }
  .tierf { align-self: flex-start; }
  .cat-cta-in { padding: 30px 24px; }
}
@media (max-width: 560px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pimg { padding: 10px; }
  .tier { top: 8px; left: 8px; font-size: 9.5px; padding: 3px 7px; }
  .pbody { padding: 12px 12px 14px; }
  .pbody h3 { font-size: 14.5px; }
  .pdesc { display: none; }
  .pstyles li { grid-template-columns: auto 1fr; font-size: 11.5px; }
  .pstyles span { display: none; }
  .pask { font-size: 13px; }
}
