/* ==========================================================================
   NEST THEME — collection page
   ========================================================================== */

.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs .ico { width: 12px; height: 12px; transform: rotate(-90deg); opacity: .5; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- head ---------- */
.chead { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px clamp(32px, 5vw, 80px); align-items: end; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 3vw, 44px); }
.chead__txt { display: grid; gap: 22px; align-content: end; padding-bottom: 6px; }
.chead__txt > * { animation: lookIn .9s var(--ease-out) both; }
.chead__txt > *:nth-child(2) { animation-delay: .05s; }
.chead__txt > *:nth-child(3) { animation-delay: .1s; }
.chead__txt > *:nth-child(4) { animation-delay: .15s; }
.chead__txt > *:nth-child(5) { animation-delay: .2s; }
@keyframes lookIn { from { opacity: 0; transform: translateY(12px); } }
.chead h1 { font: 300 clamp(48px, 6vw, 96px)/.95 var(--serif); letter-spacing: -.035em; font-variation-settings: "opsz" 72; padding-top: .08em; }
.chead h1 em { font-style: italic; color: var(--dusk); }
.chead__stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.chead__stats div { display: grid; gap: 4px; padding-right: 22px; }
.chead__stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.chead__stats b { font: 400 26px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chead__stats span { font: 600 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.subcats { display: flex; gap: 6px; flex-wrap: wrap; }
.subcats .chip small { font-size: 11.5px; opacity: .55; }

.chead__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-xl); overflow: hidden; background: var(--oat); animation: headImg 1.4s var(--ease-out) both; }
@keyframes headImg { from { clip-path: inset(6% 6% 6% 6% round var(--r-xl)); } to { clip-path: inset(0 0 0 0 round var(--r-xl)); } }
.chead__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: headZoom 2s var(--ease-out) both; }
@keyframes headZoom { from { transform: scale(1.1); } }
.chead__cap {
  position: absolute; z-index: 3; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge); font: 500 13px/1 var(--sans);
}
.chead__cap i { font-style: normal; font: 600 10.5px/1 var(--sans); letter-spacing: .1em; padding: 5px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.collage { position: relative; aspect-ratio: 16 / 10; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; animation: lookIn 1s var(--ease-out) both; }
.collage figure { border-radius: var(--r-l); overflow: hidden; background: var(--oat); }
.collage figure:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; }

/* hotspots on head image (image is a 1.6:1 frame, so % map directly) */
.hs { position: absolute; z-index: 2; width: 0; height: 0; }
.hs button { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(250,248,243,.8); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 6px 18px rgba(28,27,25,.25); animation: hsIn .6s var(--ease-out) both; animation-delay: var(--d, .6s); transition: transform .3s var(--ease-out); }
.hs button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transition: background .3s; }
.hs button:hover { transform: scale(1.15); }
.hs button:hover::before { background: var(--dusk); }
@keyframes hsIn { from { opacity: 0; transform: scale(.4); } }
.hs__tip { position: absolute; left: 22px; top: -16px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), var(--shadow-s); font: 500 12.5px/1.2 var(--sans); opacity: 0; transform: translateX(-6px); transition: all .35s var(--ease-out); pointer-events: none; }
.hs__tip b { font-weight: 600; margin-left: 6px; }
.hs--l .hs__tip { left: auto; right: 22px; transform: translateX(6px); }
.hs:hover .hs__tip, .hs:focus-within .hs__tip { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .chead { grid-template-columns: 1fr; }
  .chead__media, .collage { order: -1; }
  .hs__tip { display: none; }
}
@media (max-width: 560px) {
  .chead__media, .collage { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
  .collage { aspect-ratio: 16 / 11; }
  .chead__stats b { font-size: 22px; }
  .chead__stats div { padding-right: 14px; }
  .chead__stats div + div { padding-left: 14px; }
}

/* ---------- room rail ---------- */
.roomrail { margin-bottom: 12px; }
.roomrail__in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.roomrail__in::-webkit-scrollbar { display: none; }
.rpill { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--sans); color: var(--text-2); transition: all .35s var(--ease); }
.rpill img, .rpill .rpill__all { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transition: transform .5s var(--ease-out); }
.rpill .rpill__all { display: grid; place-items: center; background: var(--oat); color: var(--ink); }
.rpill small { font: 600 11px var(--sans); color: var(--text-3); }
.rpill:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.rpill:hover img { transform: scale(1.08); }
.rpill.is-zero:not([aria-current]) { opacity: .45; }
.rpill[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.rpill[aria-current="page"] small { color: rgba(250,248,243,.55); }

/* ---------- toolbar ---------- */
.tbar { position: sticky; top: var(--head-h); z-index: 30; transition: top .5s var(--ease-out); }
html.head-hidden .tbar { top: 0; }
.tbar::before { content: ""; position: absolute; inset: 0; background: rgba(243, 239, 231, .82); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.tbar.is-stuck::before { border-bottom-color: var(--line); }
.tbar__in { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; }
.tbar__filters { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 13.5px/1 var(--sans); flex: none; transition: background .3s; }
.tbar__filters:hover { background: #000; }
.tbar__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--dusk-3); color: var(--ink); font: 700 11px/20px var(--sans); text-align: center; display: none; }
.tbar__badge.is-on { display: inline-block; }
.tbar__quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 4px 2px; }
.tbar__quick::-webkit-scrollbar { display: none; }
.tbar__quick .chip { flex: none; height: 38px; font-size: 13px; background: transparent; }
.tbar__quick .chip .ico { width: 14px; height: 14px; }
.tbar__quick .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tbar__r { display: flex; align-items: center; gap: 16px; flex: none; }
.tbar__count { font-size: 13px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbar__sort { position: relative; display: inline-flex; align-items: center; }
.tbar__sort select { -webkit-appearance: none; appearance: none; height: 44px; padding: 0 38px 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font: 500 13.5px var(--sans); cursor: pointer; outline: 0; }
.tbar__sort select:focus-visible { box-shadow: var(--focus); }
.tbar__sort .ico { position: absolute; right: 16px; pointer-events: none; }
.tbar__cols { display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.tbar__cols button { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; color: var(--text-3); transition: all .3s; }
.tbar__cols button:hover { color: var(--ink); }
.tbar__cols button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.tbar__cols svg { width: 16px; height: 16px; fill: currentColor; }
.tbar__chips { position: relative; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tbar__chips:not(:empty) { padding-bottom: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; animation: lookIn .4s var(--ease-out) both; }
.fchip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.fchip button:hover { background: var(--oat); color: var(--ink); }
.fchip .ico { width: 12px; height: 12px; }
.tbar__clear { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); margin-left: 6px; }
.tbar__clear:hover { color: var(--ink); }
@media (max-width: 1023px) {
  .tbar__cols, .tbar__count { display: none; }
  .tbar__in { gap: 8px; min-height: 64px; }
  .tbar__sort select { padding: 0 32px 0 14px; width: 132px; }
  .tbar__sort .ico { right: 12px; }
}
@media (max-width: 640px) {
  .tbar__in { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .tbar__quick { order: 3; flex-basis: 100%; }
  .tbar__r { margin-left: auto; }
}

/* ---------- grid ---------- */
.gridsec { padding-top: 18px; padding-bottom: clamp(64px, 7vw, 104px); }
.pgrid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 44px 22px; }
.pgrid[data-cols="2"] { --cols: 2; gap: 56px 28px; }
.pgrid[data-cols="3"] { --cols: 3; gap: 52px 24px; }
.pgrid[data-cols="2"] .card__name { font-size: 26px; }
.pgrid > * { animation: lookIn .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * .045s); }
@media (max-width: 1100px) { .pgrid, .pgrid[data-cols] { --cols: 3; gap: 40px 18px; } }
@media (max-width: 767px) { .pgrid .card__tags { top: 10px; left: 10px; } .pgrid .tag { height: 22px; padding: 0 8px; font-size: 9.5px; letter-spacing: .04em; } .pgrid .tag--ok::before { display: none; } .pgrid .card__wish { top: 6px; right: 6px; width: 36px; height: 36px; } .pgrid, .pgrid[data-cols] { --cols: 2; gap: 32px 12px; } .pgrid .card__name { font-size: 17px; } .pgrid .card__row { flex-wrap: wrap; gap: 2px 10px; } .pgrid .card__dims { display: none; } .pgrid .permo { width: 100%; } }
.card__fit { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.card__fit.is-no { color: var(--warn); }
.card__fit .ico { stroke-width: 2.2; }

/* tiles inside the grid */
.tile { grid-column: span 2; position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 100%; }
.tile--fit { background: var(--dusk); color: #fff; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: space-between; isolation: isolate; }
.tile--fit::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.025); z-index: -1; }
.tile--fit .eyebrow { color: rgba(255,255,255,.65); }
.tile--fit h3 { font: 300 clamp(30px, 2.8vw, 44px)/1.02 var(--serif); letter-spacing: -.025em; }
.tile--fit h3 em { color: rgba(255,255,255,.6); }
.tile--fit p { font-size: 14px; color: rgba(255,255,255,.72); max-width: 40ch; }
.tile__fields { display: flex; gap: 8px; flex-wrap: wrap; }
.tfield { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 16px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 13px; color: rgba(255,255,255,.88); }
.tfield input { width: 46px; background: none; border: 0; outline: 0; color: #fff; font: 600 16px var(--sans); text-align: right; -moz-appearance: textfield; }
.tfield input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tfield span { padding-right: 10px; color: rgba(255,255,255,.8); }
.tile--fit .btn--light { color: var(--dusk-2); }
.tile--look { background: var(--ink); color: var(--paper); display: grid; grid-template-rows: 1fr auto; }
.tile--look figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tile--look figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.tile--look:hover figure img { transform: scale(1.03); }
.tile__look-body { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px 20px; flex-wrap: wrap; }
.tile__look-body b { display: block; font: 400 22px/1.15 var(--serif); }
.tile__look-body span { font-size: 13px; color: rgba(250,248,243,.6); }
@media (max-width: 767px) { .tile { grid-column: 1 / -1; } }

/* load more */
.more { display: grid; justify-items: center; gap: 16px; margin-top: 64px; }
.more[hidden] { display: none; }
.more__bar { width: 220px; height: 2px; border-radius: 2px; background: var(--oat-2); overflow: hidden; }
.more__bar i { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease-out); }
.empty-c { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 72px 16px 40px; }
.empty-c[hidden] { display: none; }
.empty-c svg { width: 72px; height: 72px; color: var(--sand); }
.empty-c__ctas { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- filter drawer ---------- */
.drawer--filters { width: min(440px, calc(100% - 20px)); }
.fdraw { padding-top: 0; }
.fdraw__foot { grid-template-columns: auto 1fr; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font: 400 20px/1.2 var(--serif); letter-spacing: -.01em; text-align: left; }
.fgroup > button small { font: 600 11px var(--sans); color: var(--dusk); margin-left: 8px; letter-spacing: .04em; }
.fgroup > button .ico { width: 16px; height: 16px; transition: transform .4s var(--ease-out); color: var(--text-3); }
.fgroup > button[aria-expanded="false"] .ico { transform: rotate(-90deg); }
.fgroup__body { padding-bottom: 22px; display: grid; gap: 4px; }
.fgroup__body[hidden] { display: none; }
.fopt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 8px 6px; margin: 0 -6px; border-radius: var(--r-s); cursor: pointer; font-size: 14.5px; transition: background .2s; }
.fopt:hover { background: var(--linen); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt .box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: all .25s var(--ease); }
.fopt .box svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.4; fill: none; opacity: 0; transform: scale(.6); transition: all .25s var(--ease-out); }
.fopt input:checked + .box { background: var(--ink); box-shadow: none; }
.fopt input:checked + .box svg { opacity: 1; transform: none; }
.fopt input:focus-visible + .box { box-shadow: var(--focus); }
.fopt small { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fopt.is-zero { opacity: .38; pointer-events: none; }
.tones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tone { display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--text-2); transition: all .3s; }
.tone i { width: 34px; height: 34px; border-radius: 50%; background: var(--g); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tone small { font-size: 11px; color: var(--text-3); }
.tone:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tone[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--linen); color: var(--ink); }
.tone.is-zero { opacity: .38; pointer-events: none; }
.prange { display: grid; gap: 14px; }
.prange__vals { display: flex; justify-content: space-between; font: 400 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.prange__vals small { display: block; font: 600 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.prange__vals > div:last-child { text-align: right; }
.dual { position: relative; height: 22px; }
.dual__track { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: var(--oat-2); }
.dual__fill { position: absolute; top: 10px; height: 3px; background: var(--ink); border-radius: 3px; }
.dual input { position: absolute; inset: 0; width: 100%; -webkit-appearance: none; appearance: none; background: none; pointer-events: none; height: 22px; margin: 0; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 2px 8px rgba(38,36,33,.18); cursor: grab; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); cursor: grab; }
.dual input:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }
.quickp { display: flex; gap: 6px; flex-wrap: wrap; }
.quickp .chip { height: 32px; font-size: 12.5px; padding: 0 12px; }
.fswitch { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 6px 0; cursor: pointer; font-size: 14.5px; }
.fswitch small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.fswitch input { position: absolute; opacity: 0; pointer-events: none; }
.sw-t { width: 44px; height: 26px; border-radius: 999px; background: var(--oat-2); position: relative; transition: background .3s; }
.sw-t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .35s var(--ease-out); }
.fswitch input:checked + .sw-t { background: var(--dusk); }
.fswitch input:checked + .sw-t::after { transform: translateX(18px); }
.fswitch input:focus-visible + .sw-t { box-shadow: var(--focus); }
.fspace { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.fspace label { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.fspace input { border: 0; background: none; outline: 0; font: 400 22px/1 var(--serif); color: var(--ink); width: 100%; -moz-appearance: textfield; }
.fspace input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fspace label:focus-within { box-shadow: inset 0 0 0 1.5px var(--dusk); }

/* ---------- help band ---------- */
.helpband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: clamp(80px, 9vw, 136px); }
.hcard { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 26px 56px 26px 24px; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s var(--ease), transform .5s var(--ease-out); }
.hcard:hover { background: #fff; transform: translateY(-3px); }
.hcard .ico--l { color: var(--dusk); }
.hcard b { display: block; font: 400 21px/1.2 var(--serif); margin-bottom: 6px; }
.hcard span { font-size: 13.5px; color: var(--text-3); line-height: 1.55; }
.hcard__go { position: absolute; top: 24px; right: 22px; width: 18px; height: 18px; color: var(--text-3); transition: transform .4s var(--ease-out), color .3s; }
.hcard:hover .hcard__go { transform: translate(3px, -3px); color: var(--ink); }
@media (max-width: 1023px) { .helpband { grid-template-columns: 1fr; } }

/* ---------- reserve space until collection.js renders (no layout shift; Liquid renders these server-side) ---------- */
.chead:empty { min-height: 565px; }
.pgrid:empty { min-height: 100vh; }
@media (max-width: 767px) { .chead:empty { min-height: 810px; } }
