/* The Pult listing — shop root, categories and product search results.
   Approved source: studies/discovery/. The page's <main> is a shell root (.ps),
   so it shares the shell's tokens, buttons, chips, doors and dots; only what is
   the listing's own is here. */

html { background: #F4EBDB; }
body { margin: 0; background: #F4EBDB; }
.pl { display: block; background: var(--canvas); }
.pl-in { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }
.noscript-note { max-width: 640px; margin: 24px auto; padding: 20px; border: var(--edge); border-radius: 20px; background: var(--panel); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--cocoa-soft); padding: 18px 0 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }

/* the family band: the family's colour, its title and its packs, then products */
.band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; min-height: 220px; padding: 34px 40px 30px; border-radius: 34px; border: var(--edge); background-color: var(--acc, var(--panel)); overflow: hidden; }
.band h1 { font: 400 clamp(40px, 5.6vw, 76px)/var(--display-lh) var(--display); text-transform: uppercase; }
.band.long h1 { font-size: clamp(32px, 4vw, 54px); }
.band p { max-width: 46ch; margin-top: 12px; font-size: 17px; }
.band-packs { display: flex; align-items: flex-end; margin: -10px 0 -30px; }
.band-packs img { position: relative; height: 210px; width: auto; max-width: none; filter: drop-shadow(0 16px 18px rgba(46, 28, 21, .28)); animation: pk-in .6s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
.band-packs img:first-child { z-index: 3; }
.band-packs img:nth-child(2) { z-index: 2; }
.band-packs img + img { margin-left: -56px; height: 176px; }
.band-packs img + img + img { height: 150px; }
.band.plain { background: var(--panel); min-height: 0; }
/* results: the answer, not a banner, so products lead */
.band.search { min-height: 0; border: 0; background: none; padding: 6px 0 0; border-radius: 0; grid-template-columns: 1fr; }
.band.search h1 { font-size: clamp(28px, 3vw, 42px); text-transform: none; }
.band-edit { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.band-edit .btn { box-shadow: none; }

.subnav { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 4px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); text-decoration: none; font-weight: 500; }
.subnav a:hover { border-color: var(--cocoa); }
.subnav a[aria-current="page"] { background: var(--cocoa); color: var(--panel); border-color: var(--cocoa); }
.scope-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0 0; }
.scope-row > span { font-size: 14px; color: var(--cocoa-soft); margin-right: 4px; }

.tools { display: flex; align-items: center; gap: 10px; padding: 18px 0 12px; flex-wrap: wrap; }
.count { font-weight: 500; margin-right: 8px; }
.fwrap { position: relative; }
.fbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); font-weight: 500; }
.fbtn:hover, .fbtn[aria-expanded="true"] { border-color: var(--cocoa); }
.fbtn.on { background: var(--cocoa); color: var(--panel); border-color: var(--cocoa); }
.fbtn .i { width: 16px; height: 16px; }
.fbtn .n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--amber); color: var(--cocoa); font-size: 13px; font-weight: 600; display: inline-grid; place-items: center; padding: 0 6px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sort label { font-size: 14px; color: var(--cocoa-soft); }
.sort select { min-height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%232E1C15' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; font: 500 16px var(--body); color: var(--cocoa); }
.pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 280px; padding: 14px; background: var(--panel); border: var(--edge); border-radius: 20px; box-shadow: var(--lift-big); animation: drop .12s var(--ease); }
.pop fieldset, .fs { border: 0; margin: 0; padding: 0; }
.pop legend, .fs legend { font-size: 13px; color: var(--cocoa-soft); margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; border-radius: 12px; cursor: pointer; }
.check:hover { background: var(--canvas); }
.check input { width: 20px; height: 20px; accent-color: var(--cocoa); margin: 0; }
.check small { margin-left: auto; color: var(--cocoa-soft); }
.pop-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.txt-btn { border: 0; background: none; text-decoration: underline; min-height: 44px; padding: 0 8px; font-weight: 500; }
.applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 14px; }
.applied .tag { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border-radius: 999px; border: 0; background: var(--shelf); font-size: 14px; font-weight: 500; }
.applied .tag .i { width: 14px; height: 14px; }

/* cards: the homepage's card grammar; the whole card opens the product */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 4px 0 72px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: var(--edge); border-radius: 22px; box-shadow: var(--lift); overflow: hidden; transition: translate .3s var(--spring), box-shadow .2s linear; }
.card:hover { translate: 0 -4px; box-shadow: var(--lift-big); }
.card:focus-within { outline: 3px solid var(--cocoa); outline-offset: 3px; }
.card-plate { position: relative; aspect-ratio: 1 / .92; background-color: var(--acc); margin: 8px 8px 0; border-radius: 16px; overflow: hidden; }
.card-plate img { position: absolute; inset: 8% 0 6%; margin: auto; height: 84%; width: auto; max-width: 82%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(46, 28, 21, .25)); transition: transform .22s var(--ease); }
.card:hover .card-plate img { transform: translateY(-4px) rotate(-1.5deg); }
.card-plate .nopack { position: absolute; inset: 0; display: grid; place-items: center; font: 400 22px/1.05 var(--display); text-align: center; padding: 0 18px; color: var(--ink, var(--cocoa)); opacity: .8; }
.badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--cocoa); font-size: 13px; font-weight: 600; }
.card-body { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 4px; padding: 14px 16px 16px; }
.card .brand { font-size: 13px; font-weight: 600; color: var(--ink, var(--cocoa-soft)); }
.card h3 { font: 400 20px/1.08 var(--display); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card .meta { font-size: 14px; color: var(--cocoa-soft); }
.card .why { font-size: 14px; line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.card .price { font-size: 21px; font-weight: 700; white-space: nowrap; }
.card .unit { display: block; font-size: 12.5px; font-weight: 400; color: var(--cocoa-soft); }
.card-buy .btn, .card-buy .soldout { position: relative; z-index: 2; }
.card-buy .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.card-buy .btn.ghost { box-shadow: none; }
.soldout { font-size: 14px; font-weight: 600; color: var(--coral-ink); }
.card.is-out .card-plate { filter: saturate(.4); }

.noresult { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 26px 0 72px; }
.noresult.one { grid-template-columns: minmax(0, 560px); }
.noresult h2 { font: 400 26px/1.1 var(--display); margin-bottom: 10px; }
.noresult h2.gap { margin-top: 26px; }
.noresult p + p { margin-top: 14px; }
.noresult .box { background: var(--panel); border: var(--edge); border-radius: 26px; padding: 24px; }
.noresult .ps-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.noresult .door { min-height: 200px; }
.noresult .ps-chips { padding: 8px 0 0; }
.noresult .celp-line { margin: 18px 0 0; }

.pager { display: flex; justify-content: center; gap: 8px; padding: 0 0 72px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); text-decoration: none; font-weight: 600; }
.pager span { background: var(--cocoa); color: var(--panel); border-color: var(--cocoa); }

/* phones: the bottom edge is the page's task */
.dock { display: none; }
.sheet-bottom { left: 0; right: 0; bottom: 0; max-height: 88vh; border-top: var(--edge); border-radius: 26px 26px 0 0; animation: slide-u .22s var(--ease); }
@keyframes slide-u { from { transform: translateY(40px); opacity: 0; } }
.sheet-bottom .sheet-body { padding: 8px 20px 20px; }
.sheet-bottom .fs { padding: 14px 0 8px; border-top: 1px solid var(--line); }
.sheet-bottom .fs:first-child { border-top: 0; }
.sheet-foot { flex: none; display: flex; gap: 10px; border-top: 1px solid var(--line); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
.sheet-foot .btn { box-shadow: none; padding: 0 14px; }
.sheet-foot .btn.ghost { flex: 1; }
.sheet-foot .btn.dark { flex: 2; }

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .crumbs { padding: 12px 0 10px; font-size: 13px; }
  .band { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 20px 18px 18px; border-radius: 24px; gap: 8px; }
  .band h1 { font-size: 34px; }
  .band.long h1 { font-size: 26px; }
  .band p { font-size: 14.5px; margin-top: 6px; }
  .band-packs { margin: -6px -6px -20px 0; }
  .band-packs img { height: 96px; }
  .band-packs img + img { height: 80px; margin-left: -30px; }
  .band-packs img + img + img { display: none; }
  .band.search { padding: 0; }
  .band.search h1 { font-size: 26px; }
  .band.search .btn { min-height: 44px; }
  .subnav { padding-top: 12px; }
  .scope-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 12px var(--gut) 0; }
  .scope-row::-webkit-scrollbar { display: none; }
  .scope-row > * { flex: none; }
  .tools { padding: 12px 0 8px; }
  .tools .fwrap, .tools .sort { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 18px; }
  .card-plate { margin: 6px 6px 0; border-radius: 13px; }
  .card-body { padding: 10px 10px 12px; }
  .card h3 { font-size: 16.5px; }
  .card .why { display: none; }
  .card .brand { font-size: 12px; }
  .card .meta { font-size: 12.5px; }
  .card-buy { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; padding-top: 8px; }
  .card .price { font-size: 18px; }
  .card-buy .btn { justify-content: center; }
  .noresult { grid-template-columns: 1fr; gap: 18px; }
  .noresult .ps-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock:not([hidden]) { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: var(--edge); }
  .dock .fbtn { flex: 1; min-height: 48px; justify-content: center; }
  .foot-in { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl *, .sheet-bottom { animation: none !important; transition: none !important; }
}
