#main { overflow-x: clip; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.crumbs a:hover { color: var(--forest); border-bottom-color: currentColor; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.cat-hero { position: relative; padding: 36px 0 40px; color: var(--forest); }
.cat-hero-orn { position: absolute; right: -14%; top: -40px; width: min(1100px, 80vw); opacity: .06; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(#000 30%, transparent 78%); mask-image: linear-gradient(#000 30%, transparent 78%); }
.cat-title { position: relative; margin: 26px 0 18px; display: flex; flex-wrap: wrap; column-gap: .22em; }
.cat-hero .lead { position: relative; color: var(--muted); }
.minor-note { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px; border-radius: 999px; background: var(--sage-2); color: var(--forest); font-weight: 600; font-size: 15px; }
.minor-note[hidden] { display: none; }
.minor-note::before { content: '0%'; font-family: var(--display); font-weight: 800; font-size: 13px; padding: 2px 7px; border-radius: 999px; background: var(--forest); color: var(--cream); }

.tabs-bar { position: sticky; top: 76px; z-index: 20; background: color-mix(in srgb, var(--cream) 90%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.tabs { position: relative; display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: inline-flex; align-items: flex-start; gap: 6px; padding: 20px 0 18px; border: 0; background: none; cursor: pointer; color: var(--muted); transition: color .3s; }
.tab-t { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.tab-n { font-size: 12.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; margin-top: -3px; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--forest); }
.tabs-ink { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--forest); pointer-events: none; }
.tabs.ready .tabs-ink { transition: transform .5s var(--ease), width .5s var(--ease); }

.cat-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; align-items: start; padding: 40px 0 120px; }

.filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); display: flex; flex-direction: column; }
.f-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--forest); }
.f-title { font-size: 28px; font-weight: 900; color: var(--forest); }
.f-clear { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: opacity .25s; }
.f-clear:disabled { opacity: .45; cursor: default; text-decoration: none; }
.f-close, .f-foot { display: none; }
.f-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; padding-right: 4px; margin-right: -4px; }

.sw-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.sw-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--sage-2); transition: background .3s var(--ease); }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11, 36, 20, .25); transition: transform .4s var(--ease); }
.sw-row input:checked + .sw { background: var(--forest); }
.sw-row input:checked + .sw::after { transform: translateX(20px); }
.sw-row input:focus-visible + .sw { outline: 3px solid var(--red); outline-offset: 3px; }
.sw-row.off { opacity: .5; cursor: default; }

.fg { border-bottom: 1px solid var(--line); }
.fg-h { font: inherit; text-transform: none; }
.fg-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; color: var(--forest); }
.fg-sel { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--forest); color: var(--cream); font-family: var(--body); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; letter-spacing: 0; transition: transform .35s var(--ease), opacity .25s; }
.fg-sel:empty { transform: scale(.4); opacity: 0; }
.chev { width: 16px; height: 16px; margin-left: auto; transition: transform .45s var(--ease); }
.fg.open .chev { transform: rotate(180deg); }
.fg-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.fg.open .fg-panel { grid-template-rows: 1fr; }
.fg-inner { overflow: hidden; display: grid; gap: 2px; }
.fg.open .fg-inner { padding-bottom: 14px; }
.fg-inner { transition: padding .45s var(--ease); }
.fg[hidden], .opt[hidden] { display: none; }

.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 15.5px; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(18, 26, 20, .38); display: grid; place-items: center; color: var(--cream); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.box svg { width: 14px; height: 14px; }
.box path { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .3s var(--ease) .05s; }
.opt input:checked + .box { background: var(--forest); border-color: var(--forest); }
.opt input:checked + .box path { stroke-dashoffset: 0; }
.opt:active .box { transform: scale(.9); }
.opt input:focus-visible + .box { outline: 3px solid var(--red); outline-offset: 2px; }
.opt:hover .box { border-color: var(--forest); }
.opt-t { transition: color .25s; }
.opt:hover .opt-t { color: var(--forest); }
.opt-n { margin-left: auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt.off { opacity: .45; cursor: default; }
.opt.off:hover .box { border-color: rgba(18, 26, 20, .38); }

.results { min-width: 0; }
.r-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.r-title { color: var(--forest); }
.r-count { margin-top: 8px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-tools { display: flex; align-items: center; gap: 10px; }
.f-open { display: none; min-height: 44px; padding: 0 18px; gap: 8px; font-size: 15px; }
.f-open svg { width: 18px; height: 18px; }
.view-sw { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.view-sw button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: background .3s var(--ease), color .3s; }
.view-sw svg { width: 16px; height: 16px; fill: currentColor; }
.view-sw button:hover { color: var(--forest); }
.view-sw button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); animation: chipIn .35s var(--ease); transition: background .25s, color .25s, border-color .25s; }
.chip svg { width: 11px; height: 11px; }
.chip:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.chip-clear { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--forest); font-weight: 600; }
.chip-clear:hover { background: none; color: var(--forest); border-color: transparent; text-decoration-thickness: 2px; }
@keyframes chipIn { from { opacity: 0; transform: scale(.85); } }

.grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-top: 28px; }
.grid[hidden], .list[hidden], .empty[hidden] { display: none; }
.grid > [hidden], .l-body > [hidden] { display: none !important; }
.grid .dcard h3 { font-size: 24px; }
.ghost { pointer-events: none; z-index: 0; }

.list { margin-top: 28px; }
.l-head, .lrow { display: grid; grid-template-columns: 56px minmax(170px, 1.7fr) minmax(120px, 1.2fr) 92px 96px 104px 128px; align-items: center; column-gap: 18px; }
.l-head { padding: 0 18px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.l-head span:first-child { grid-column: span 2; }
.l-body { position: relative; list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lrow { padding: 10px 18px 10px 12px; border-radius: 16px; background: var(--paper); text-decoration: none; color: inherit; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s; }
.lrow:hover { transform: translateX(4px); background: #fff; box-shadow: 0 16px 34px -24px rgba(11, 36, 20, .4); }
.l-thumb { position: relative; width: 56px; height: 64px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 24%, var(--paper)); }
.l-thumb img { position: absolute; left: 50%; top: 3px; height: 58px; width: auto; max-width: none; transform: translateX(-50%); transition: transform .45s var(--ease); }
.lrow:hover .l-thumb img { transform: translateX(-50%) translateY(-4px) rotate(-5deg); }
.l-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; min-width: 0; }
.l-name b { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1; text-transform: uppercase; color: var(--forest); }
.l-name small { font-size: 13px; color: var(--muted); }
.l-new { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--forest); color: var(--cream); }
.l-style { font-size: 15px; color: var(--muted); }
.l-specs { display: contents; }
.l-spec { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-variant-numeric: tabular-nums; }
.l-spec svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.l-spec b { font-weight: 600; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(18, 26, 20, .16); }
.dots i.on { background: var(--forest); }
.l-bit b { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.l-more { justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--forest); color: var(--forest); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.l-arr { display: inline-block; transition: transform .35s var(--ease); }
.lrow:hover .l-more { background: var(--forest); color: var(--cream); }
.lrow:hover .l-arr { transform: translateX(3px); }

.empty { margin-top: 28px; display: grid; justify-items: center; text-align: center; gap: 18px; padding: 64px 24px 56px; border-radius: 24px; border: 1.5px dashed rgba(18, 26, 20, .22); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.empty img { width: 84px; height: 84px; opacity: .9; }
.empty-t { max-width: 440px; font-size: 19px; line-height: 1.45; color: var(--forest); font-weight: 500; }
.empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

.sheet-scrim { display: none; }

@media (max-width: 1180px) {
  .l-head, .lrow { grid-template-columns: 52px minmax(150px, 1.6fr) minmax(110px, 1fr) 80px 90px 92px auto; column-gap: 14px; }
  .l-more { padding: 0 12px; }
}

@media (max-width: 1000px) {
  .cat-body { grid-template-columns: 236px minmax(0, 1fr); gap: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .l-head { display: none; }
  .lrow { grid-template-columns: 52px minmax(0, 1fr) auto; row-gap: 4px; }
  .l-thumb { grid-column: 1; grid-row: 1 / 4; }
  .l-name { grid-column: 2; grid-row: 1; }
  .l-style { grid-column: 2; grid-row: 2; font-size: 14px; }
  .l-specs { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
  .l-specs .l-spec { font-size: 14px; }
  .l-more { grid-column: 3; grid-row: 1 / 4; }
}

@media (max-width: 759px) {
  .cat-hero { padding: 22px 0 26px; }
  .cat-hero-orn { right: -40%; width: 140vw; top: 0; }
  .cat-title { margin: 18px 0 12px; }
  .tabs-bar { top: 64px; }
  .tabs { gap: 24px; padding-inline: 2px; }
  .tab { padding: 16px 0 14px; }
  .tab-t { font-size: 17px; }
  .cat-body { display: block; padding: 22px 0 96px; }
  .f-open { display: inline-flex; }
  .view-sw button span { display: none; }
  .view-sw button { padding: 0 11px; }
  .r-head { align-items: center; }
  .r-tools { width: 100%; justify-content: space-between; }
  .grid { margin-top: 20px; }

  .filters {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; max-height: 88dvh;
    background: var(--cream); border-radius: 26px 26px 0 0; box-shadow: 0 -30px 80px rgba(6, 18, 10, .3);
    transform: translateY(104%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .filters.open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
  .f-head { position: relative; align-items: center; padding: 26px 20px 14px; border-bottom: 1px solid var(--line); }
  .f-head::before { content: ''; position: absolute; left: 50%; top: 9px; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(18, 26, 20, .2); }
  .f-clear { display: none; }
  .f-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
  .f-close svg { width: 18px; height: 18px; }
  .f-scroll { flex: 1; padding: 0 20px 8px; margin: 0; }
  .f-foot { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
  .f-foot .btn { min-height: 50px; padding: 0 16px; }
  .f-foot .btn:disabled { opacity: .45; cursor: default; transform: none; }
  .sheet-scrim { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(6, 18, 10, .52); opacity: 0; transition: opacity .4s var(--ease); }
  .sheet-scrim.on { opacity: 1; }
  .sheet-scrim[hidden] { display: none; }
  .opt { padding: 9px 0; }

  .l-more { padding: 0 12px; min-height: 36px; font-size: 13.5px; }
  .l-name b { font-size: 19px; }
  .lrow { column-gap: 12px; padding: 10px 12px; }
  .empty { padding: 44px 20px 40px; }
}

@media (max-width: 519px) {
  .l-more-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .l-more { width: 38px; min-height: 38px; padding: 0; justify-content: center; }
}

@media (max-width: 519px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .grid .dcard { grid-template-rows: none; grid-template-columns: 40% minmax(0, 1fr); }
  .grid .dcard-art { aspect-ratio: auto; min-height: 196px; }
  .grid .dcard-art img { height: 86%; bottom: 7%; }
  .grid .dcard-art::after { width: 50%; bottom: 5%; }
  .grid .badge { top: 10px; left: 10px; font-size: 12px; padding: 3px 9px; }
  .grid .badge.zero { left: auto; right: 10px; }
  .grid .dcard-body { padding: 16px 16px 14px; align-content: center; }
  .grid .dcard h3 { font-size: 22px; }
  .grid .dcard .taste { font-size: 14.5px; line-height: 1.4; }
  .grid .specs { flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; }
}

@media (max-width: 759px) {
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 30px; }
  .f-open { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; box-shadow: 0 16px 40px -10px rgba(6, 18, 10, .45); }
}
