/* ==========================================================================
   SPROUT THEME — collection page: banner, light-ladder filters, toolbar, grid
   Loads after theme.css. Sections: collection-banner · main-collection · collection-notes. v1
   ========================================================================== */

@keyframes cfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- banner: a greenhouse bay, arches grow from the floor ---------- */
.chead { padding-block: 1rem clamp(1.5rem, 3vw, 2.5rem); }

.bay { display: grid; gap: 2rem; background: var(--sage-tint); border-radius: var(--r-lg); overflow: hidden; padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 0; position: relative; isolation: isolate; }
.bay::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(207, 234, 106, .55), rgba(207, 234, 106, 0)); pointer-events: none; }
.bay__t { display: grid; gap: 1.25rem; align-content: center; padding-bottom: .25rem; }
.chead__title { font: 400 clamp(3.25rem, 1.6rem + 6.2vw, 7rem)/.92 var(--display); letter-spacing: -.026em; text-wrap: balance; }
.chead__title em { font-style: italic; color: var(--moss); }
.chead__desc { color: var(--text-2); font-size: var(--fs-lede); line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
.chead__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--ink-2); }
.chead__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.chead__meta .i { width: 1rem; height: 1rem; color: var(--moss); }

.kinds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 1.6vw, 1rem); align-items: end; }
.kind { display: grid; gap: .65rem; position: relative; }
.kind__arch { position: relative; display: block; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--sage); aspect-ratio: var(--ar, .72); transition: transform .6s var(--ease); }
.kind__arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.kind:hover .kind__arch img { transform: scale(1.06); }
.kind__arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--lime); transition: box-shadow .3s var(--ease); pointer-events: none; }
.kind a[aria-current="true"] .kind__arch::after { box-shadow: inset 0 0 0 4px var(--lime); }
.kind__label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .25rem 1rem; font: 400 clamp(1.125rem, .95rem + .6vw, 1.625rem)/1.05 var(--display); }
.kind__label small { font: 600 .75rem/1 var(--sans); padding: .35rem .55rem; border-radius: 999px; background: rgba(251, 249, 242, .75); color: var(--ink-2); }
.kind a { display: grid; gap: 0; }
.kind a:hover .kind__label span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.kind a[aria-current="true"] .kind__label small { background: var(--forest); color: var(--lime); }
.kind a::before { content: ""; position: absolute; inset: 0; z-index: 1; }

@media (min-width: 900px) {
  .bay { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; column-gap: clamp(2rem, 5vw, 5rem); }
  .bay__t { padding-bottom: clamp(2rem, 4vw, 3.5rem); align-self: center; }
  .kinds li:nth-child(1) { --ar: .66; }
  .kinds li:nth-child(2) { --ar: .86; }
  .kinds li:nth-child(3) { --ar: 1.06; }
}
@media (max-width: 899px) { .kinds li:nth-child(1) { --ar: .7; } .kinds li:nth-child(2) { --ar: .8; } .kinds li:nth-child(3) { --ar: .9; } }

/* ---------- collection layout ---------- */
.coll { padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--sec); }
.coll__in { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1080px) { .coll__in { grid-template-columns: 17.5rem minmax(0, 1fr); gap: clamp(2rem, 3.5vw, 3.5rem); } }
.coll__main { min-width: 0; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: .6rem .9rem; flex-wrap: wrap; position: sticky; top: calc(var(--header-h) - 1px); z-index: 40; background: var(--bg); padding-block: .75rem; margin-top: -.5rem; border-bottom: 1px solid var(--line); }
.toolbar__count { font-size: .9375rem; color: var(--text-2); margin-right: auto; }
.toolbar__count b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fbtn { position: relative; }
.fbtn__n { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--lime); color: var(--forest); font-size: .75rem; font-weight: 700; }
.fbtn__n[hidden] { display: none; }
.sort { display: inline-flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--text-3); }
.sort__sel { position: relative; }
.sort select { appearance: none; -webkit-appearance: none; min-height: 2.5rem; padding: 0 2.4rem 0 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font: 500 .875rem/1 var(--sans); color: var(--text); cursor: pointer; transition: border-color .2s; }
.sort select:hover { border-color: var(--text); }
.sort .i { position: absolute; right: .8rem; top: 50%; width: .9rem; height: .9rem; margin-top: -.45rem; pointer-events: none; }
@media (max-width: 699px) { .toolbar { flex-wrap: nowrap; gap: .5rem; } .sort > span:first-child { display: none; } .sort select { padding-right: 2rem; padding-left: .85rem; } .toolbar__count { font-size: .875rem; white-space: nowrap; } .fbtn { padding-inline: .9rem; } }
@media (min-width: 1080px) { .fbtn { display: none; } .toolbar { position: static; margin-top: 0; padding-top: 0; } }

/* active filter chips */
.active { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; padding-block: .9rem 0; }
.active:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: 0 .55rem 0 .9rem; border-radius: 999px; background: var(--forest); color: var(--cream); font: 500 .8125rem/1 var(--sans); transition: background-color .2s; animation: cfade .35s var(--ease) both; }
.achip:hover { background: var(--moss); }
.achip .i { width: .95rem; height: .95rem; color: var(--lime); }
.achip--clear { background: transparent; color: var(--text-2); border: 1px dashed var(--line-2); padding-inline: .9rem; }
.achip--clear:hover { background: var(--stone); color: var(--text); }

/* ---------- filters (sidebar on desktop, drawer on mobile) ---------- */
.facets { display: none; }
@media (min-width: 1080px) {
  .facets { display: block; position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: .25rem .5rem 1rem .1rem; margin-right: -.5rem; }
}
.filters { display: grid; gap: 0; }
.filters__head { display: none; align-items: baseline; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.facets .filters__head { display: flex; }
.filters__head h2 { font: 400 1.75rem/1 var(--display); }
.linkbtn { font-size: .875rem; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; padding: .5rem 0; transition: color .2s; }
.linkbtn:hover { color: var(--clay-d); }
.linkbtn[disabled] { opacity: .45; pointer-events: none; }

.fgroup { border-bottom: 1px solid var(--line); }
.fgroup > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; cursor: pointer; list-style: none; font: 600 .75rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .i { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.fgroup[open] > summary .i { transform: rotate(180deg); }
.fgroup__body { display: grid; gap: .15rem; padding-bottom: 1.15rem; }
.fgroup[hidden] { display: none; }
.fgroup__hint { font-size: .8125rem; color: var(--text-3); margin: -.35rem 0 .7rem; line-height: 1.45; }

/* light ladder: four sun stops, brighter as you go */
.ladder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.lstop { position: relative; display: block; }
.lstop input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.lstop__box { display: grid; gap: .3rem; padding: .75rem .8rem .8rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--paper); transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); height: 100%; }
.lstop__top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.lstop__sun { display: inline-flex; gap: 2px; color: var(--moss); }
.lstop__sun i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; opacity: .2; }
.lstop__sun i.on { opacity: 1; }
.lstop__name { font-weight: 600; font-size: .875rem; line-height: 1.15; }
.lstop__lux { font-size: .75rem; color: var(--text-3); line-height: 1.2; }
.lstop small { font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-3); }
.lstop:hover .lstop__box { border-color: var(--text); transform: translateY(-1px); }
.lstop input:checked + .lstop__box { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.lstop input:checked + .lstop__box .lstop__sun { color: var(--lime); }
.lstop input:checked + .lstop__box .lstop__lux, .lstop input:checked + .lstop__box small { color: rgba(246, 242, 231, .8); }
.lstop input:focus-visible + .lstop__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.lstop input:disabled { cursor: not-allowed; }
.lstop input:disabled + .lstop__box { opacity: .45; }
.lstop input:disabled ~ * { pointer-events: none; }
.lstop:has(input:disabled):hover .lstop__box { transform: none; border-color: var(--line-2); }

/* checkbox rows */
.opt { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding-inline: .1rem; cursor: pointer; font-size: .9375rem; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt__box { width: 1.3rem; height: 1.3rem; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--paper); display: grid; place-items: center; flex: none; transition: background-color .2s, border-color .2s; }
.opt__box .i { width: .85rem; height: .85rem; stroke-width: 2.4; color: var(--lime); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.opt input:checked + .opt__box { background: var(--forest); border-color: var(--forest); }
.opt input:checked + .opt__box .i { opacity: 1; transform: none; }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.opt:hover .opt__box { border-color: var(--text); }
.opt__t { flex: 1; min-width: 0; line-height: 1.25; }
.opt small { font-size: .8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.opt input:disabled { cursor: not-allowed; }

/* pet switch */
.tog { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .5rem .9rem; border-radius: var(--r-sm); background: var(--sage-tint); cursor: pointer; }
.tog input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.tog__t { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9375rem; }
.tog__t .i { color: var(--moss); }
.tog__t small { display: block; font-weight: 400; font-size: .75rem; color: var(--text-2); }
.tog__track { width: 2.75rem; height: 1.6rem; border-radius: 999px; background: rgba(36, 90, 55, .28); position: relative; flex: none; transition: background-color .25s; }
.tog__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 36, 27, .3); transition: transform .35s var(--ease); }
.tog input:checked ~ .tog__track { background: var(--moss); }
.tog input:checked ~ .tog__track::after { transform: translateX(1.15rem); }
.tog input:focus-visible ~ .tog__track { outline: 3px solid var(--focus); outline-offset: 3px; }

/* price */
.price-f { display: grid; gap: .6rem; }
.price-f__row { display: flex; justify-content: space-between; font-size: .9375rem; }
.price-f output { font-weight: 600; font-variant-numeric: tabular-nums; }
.price-f input[type="range"] { width: 100%; margin: 0; height: 2.25rem; accent-color: var(--moss); cursor: pointer; }
.price-f__ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-3); margin-top: -.5rem; }

.facets__note { display: flex; gap: .75rem; align-items: start; margin-top: 1.25rem; padding: 1rem; border-radius: var(--r); background: var(--stone); font-size: .875rem; color: var(--text-2); line-height: 1.45; }
.facets__note .i { color: var(--moss); margin-top: .1rem; }
.facets__note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* drawer variant */
#filters .drawer__body { padding-top: .5rem; }
#filters .drawer__foot { grid-template-columns: 1fr auto; align-items: center; }
#filters .drawer__foot .btn { grid-column: 1; }

/* ---------- grid ---------- */
.cgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem .9rem; padding-top: 1.5rem; min-height: 24rem; outline: none; }
@media (min-width: 700px) { .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 1.25rem; } }
@media (min-width: 1500px) { .cgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cgrid > li { min-width: 0; animation: cfade .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.cgrid.is-swap > li { animation-name: none; }

/* in-grid prompt: the matchmaker, dressed as one more window */
.cpromo { position: relative; display: grid; align-content: end; gap: 1rem; height: 100%; min-height: 22rem; padding: 1.75rem 1.5rem; border-radius: 999px 999px var(--r) var(--r); background: var(--forest); color: var(--cream); overflow: hidden; isolation: isolate; text-align: center; justify-items: center; }
.cpromo::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 14%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(207, 234, 106, .5), rgba(207, 234, 106, 0)); animation: cglow 6s ease-in-out infinite alternate; }
@keyframes cglow { to { transform: translateX(-50%) scale(1.18); opacity: .7; } }
.cpromo svg.sun { width: 3.25rem; height: 3.25rem; color: var(--lime); }
.cpromo h3 { font: 400 clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem)/1 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.cpromo h3 em { font-style: italic; color: var(--lime); }
.cpromo p { font-size: .9375rem; color: rgba(246, 242, 231, .82); max-width: 26ch; }
@media (min-width: 700px) { .cgrid > li.cpromo-li { grid-column: span 1; } }

/* more + progress */
.more { display: grid; justify-items: center; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.more[hidden] { display: none; }
.more p { font-size: .9375rem; color: var(--text-2); }
.more p b { font-variant-numeric: tabular-nums; }
.more__bar { width: min(18rem, 70%); height: .4rem; border-radius: 999px; background: rgba(36, 90, 55, .16); overflow: hidden; position: relative; }
.more__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--moss), var(--lime-2)); border-radius: inherit; transition: transform .7s var(--ease); }

/* empty */
.cempty { display: grid; justify-items: center; gap: 1.1rem; text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; border-radius: var(--r-lg); background: var(--stone); margin-top: 1.5rem; }
.cempty[hidden] { display: none; }
.cempty svg { width: 6rem; height: 6rem; color: var(--sage-2); }
.cempty h2 { font: 400 var(--fs-h3)/1.05 var(--display); }
.cempty p { color: var(--text-2); max-width: 38ch; }
.cempty__acts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ---------- notes under the grid ---------- */
.cnotes { padding-bottom: var(--sec); }
.cnotes__in { display: grid; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: var(--r-lg); background: var(--sage-tint); }
.cnotes__in h2 { font: 400 var(--fs-h3)/1.05 var(--display); max-width: 14ch; }
.cnotes__in h2 em { font-style: italic; color: var(--moss); }
.cnotes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.cnotes li { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: start; }
.cnotes li .i { width: 1.5rem; height: 1.5rem; color: var(--moss); grid-row: span 2; margin-top: .1rem; }
.cnotes b { font-weight: 600; }
.cnotes li p { color: var(--text-2); font-size: .9375rem; line-height: 1.5; max-width: 40ch; }
@media (min-width: 900px) { .cnotes__in { grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 3rem; } .cnotes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .cgrid > li, .achip { animation: none; }
  .cpromo::before { animation: none; }
  .kind__arch img, .lstop__box, .more__bar i { transition: none; }
}
