/* Scoped discovery geometry; shared chrome remains owned by the parent. */
.discovery-page .wrap {width:100%;max-width:1280px;padding-inline:32px}
.discovery-page [hidden] {display:none!important}
.discovery-page .coll-title-wrap {display:flex;flex-direction:column;align-items:center;padding:32px 32px 0}
.discovery-page .coll-pills {order:1;justify-content:center;gap:10px;margin:12px 0 48px;flex-wrap:wrap}
.discovery-page .pill {border-radius:2px;padding:11px 17px;font-size:13px;letter-spacing:1px;font-weight:400}
.discovery-page .pill.active {background:#f4f4f4;color:#111;border-color:#111}
.discovery-page .pill[aria-disabled="true"] {opacity:.45;cursor:not-allowed}
.discovery-page .coll-title {font-size:26px;font-weight:800;letter-spacing:-.6px;margin:0 0 28px;text-transform:uppercase}
.discovery-page .coll-count {font-size:12px;color:#666}
.discovery-page .coll-title-sub {font-size:12px;margin-bottom:14px;color:#666}
.discovery-notice {font-size:12px;line-height:1.6;color:#595959;background:#f7f7f7;border:1px solid #e8e8e8;padding:10px 14px;margin:0 32px 28px}
.search-page .discovery-notice {margin:0 0 28px}
.discovery-page .coll-section {padding:0 0 60px}
.discovery-page .coll-layout {display:flex;align-items:flex-start;gap:64px}
.discovery-page .coll-sidebar {width:264px;flex:0 0 264px;min-width:0;padding:0;margin:0}
.discovery-page .coll-main {flex:1;min-width:0}
.discovery-page .filter-block {border-bottom:1px solid #dedede;margin:0;padding:20px 0}
.discovery-page .filter-block:first-of-type {padding-top:0;padding-bottom:22px}
.discovery-page .filter-block summary {font-size:18px;font-weight:700;padding:0;line-height:1.4;list-style:none;cursor:pointer;display:flex;justify-content:space-between}
.discovery-page .filter-block summary::-webkit-details-marker {display:none}
.discovery-page .filter-block summary:after {content:'+';font-size:22px;font-weight:400}
.discovery-page .filter-block[open] summary:after {content:'−'}
.discovery-page .sort-label {font-size:18px;font-weight:700;display:block;margin:0 0 10px;text-transform:none}
.discovery-page .sort-select {border:1px solid #bbb;border-radius:0;background:#fff;padding:10px 12px;width:100%;font-size:14px;color:#111}
.discovery-page .filter-check {display:flex;flex-direction:column;gap:10px;margin-top:18px}
.discovery-page .filter-check label {display:flex;align-items:center;gap:10px;font-size:14px;color:#111}
.discovery-page input[type="checkbox"] {width:20px;height:20px;accent-color:#111;margin:0;flex-shrink:0}
.discovery-page .filter-check label:has(input:disabled) {color:#767676}
.discovery-page .filter-sub {font-size:12px;color:#666;margin-top:16px}
.discovery-limitation {font-size:11px;line-height:1.5;color:#777;margin:10px 0 0}
.discovery-page .coll-toolbar {border-top:0;border-bottom:1px solid #ddd;padding:0 0 22px;margin:0 0 18px;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.discovery-page .coll-view-toggle {display:flex;border:0;border-radius:22px;background:#f5f5f5;margin-left:auto;overflow:hidden}
.discovery-page .toggle-btn {border:0;border-radius:22px;font-size:13px;letter-spacing:0;padding:8px 12px;white-space:nowrap;background:transparent;color:#111;font-weight:400}
.discovery-page .toggle-btn.active {background:#fff;border:1px solid #111;color:#111}
.discovery-page .toggle-btn:disabled {opacity:.45;cursor:not-allowed}
.discovery-page .coll-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:48px 20px}
.discovery-page .pcard {min-width:0}
.discovery-page .discovery-route-note {font-size:11px;line-height:1.5;color:#595959;margin:12px 0 0}
.discovery-page .pcard a[aria-disabled="true"] {cursor:default}
.discovery-page .pcard-img-link {display:block}
.discovery-page .pcard-img {position:relative;aspect-ratio:1/1;background:#f7f7f7;overflow:hidden}
.discovery-page .pcard-img img {display:block;width:100%;height:100%;object-fit:contain;transition:none}
.discovery-page .pcard:hover .pcard-img img {transform:none}
.discovery-page .pcard-badge {left:10px;top:10px;font-size:10px;padding:5px 8px}
.discovery-page .pcard-info {padding:14px 0 0;border-top:1px solid #ddd;margin-top:0}
.discovery-page .pcard-top {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}
.discovery-page .pcard-name {font-size:16px;font-weight:700;line-height:1.55;letter-spacing:0}
.discovery-page .pcard-price {font-size:15px;line-height:1.55;font-weight:400;white-space:nowrap}
.discovery-page .pcard-color {font-size:14px;line-height:1.5;color:#777;margin-bottom:12px}
.discovery-page .pcard-stars {color:#94620b;font-size:13px;line-height:1.5}
.discovery-page .pcard-stars span {font-size:11px;color:#111}
.discovery-page .pcard-swatches {margin-top:12px}
.discovery-empty {padding:48px 16px;text-align:center}
.discovery-end {margin-top:32px;font-size:12px;color:#666}
.discovery-clear {background:none;border:0;padding:18px 0;text-decoration:underline;font-size:13px;cursor:pointer}
.discovery-drawer-head,.discovery-apply,.discovery-filter-open {display:none}
.discovery-page .search-page {padding-top:32px;padding-bottom:64px}
.discovery-page .search-form {display:flex;gap:0;max-width:580px;border:1px solid #aaa;margin:0 0 36px}
.discovery-page .search-input {min-width:0;flex:1;border:0;background:white;font-size:16px;padding:14px}
.discovery-page .search-form .btn {border-radius:0}
.discovery-search-title {font-size:30px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 30px;font-weight:700}
.discovery-page .search-grid {margin:0}
.discovery-page .search-empty {padding:50px 0;text-align:left;max-width:none}
.discovery-page .search-empty-headline {font-size:22px;overflow-wrap:anywhere}
.discovery-page .search-empty-sub {font-size:14px;line-height:1.7;margin-bottom:24px}
.discovery-page .search-empty button {padding:12px;border:1px solid #111;background:#fff;cursor:pointer}
.discovery-search-terms {display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.discovery-search-terms .pill {border:1px solid #ccc;background:#fff;color:#111}
.discovery-qa {margin-top:48px;font-size:12px;color:#666}
.discovery-qa button {margin-top:12px;padding:8px;background:#fff;border:1px solid #aaa}
.discovery-sr {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.discovery-backdrop {position:fixed;inset:0;background:#0008;border:0;width:100%;height:100%;z-index:5000}
.discovery-page :focus-visible {outline:2px solid #111;outline-offset:3px}
@media (min-width: 1600px) {.discovery-page .coll-grid {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width: 1200px) and (min-width: 1101px) {.discovery-page .coll-layout {gap:32px}.discovery-page .coll-sidebar {width:200px;flex-basis:200px}}
@media (max-width: 1100px) {
  .discovery-page .coll-layout {display:block}
  .discovery-page .coll-sidebar {display:none}
  .discovery-page .coll-sidebar.is-open {display:block;position:fixed;inset:0 0 0 auto;width:min(420px,100%);height:100dvh;background:#fff;padding:24px;z-index:5001;overflow-y:auto}
  .discovery-drawer-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
  .discovery-drawer-head h2 {font-size:22px;margin:0}
  .discovery-drawer-head button {font-size:30px;border:0;background:#fff;cursor:pointer}
  .discovery-apply {display:block;background:#111;border:1px solid #111;color:white;width:100%;padding:14px;font-size:14px;margin-top:12px;cursor:pointer}
  .discovery-filter-open {display:flex;align-items:center;justify-content:center;gap:18px;border:1px solid #111;background:white;border-radius:22px;padding:9px 16px;font-size:12px;cursor:pointer}
  .discovery-page .coll-count {display:none}
  .discovery-page .coll-toolbar {border-top:1px solid #ddd;border-bottom:0;padding:30px 0;margin-bottom:4px}
  .discovery-page .coll-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .discovery-page .coll-title-wrap {align-items:flex-start;padding-top:0}
  .discovery-page .coll-pills {order:-1;flex-wrap:nowrap;justify-content:flex-start;width:100%;overflow-x:auto;margin:24px 0 40px}
  .discovery-page .pill {flex-shrink:0}
  .discovery-lock {overflow:hidden}
}
@media (max-width: 600px) {
  .discovery-page .wrap {padding-inline:16px}
  .discovery-page .coll-title-wrap {padding:0 16px;align-items:flex-start}
  .discovery-page .coll-pills {gap:8px;margin:24px 0 40px}
  .discovery-page .pill {padding:10px 12px;font-size:11px}
  .discovery-page .coll-title {font-size:26px;margin-bottom:24px}
  .discovery-notice {margin:0 16px 24px;font-size:11px;padding:8px 10px}
  .discovery-page .coll-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 16px}
  .discovery-page .pcard-name {font-size:14px;line-height:1.65}
  .discovery-page .pcard-price {font-size:14px;line-height:1.65}
  .discovery-page .pcard-color {font-size:13px;margin-bottom:8px}
  .discovery-page .pcard-badge {font-size:8px;left:5px;top:5px;padding:4px}
  .discovery-page .pcard-info {padding-top:12px}
  .discovery-page .pcard-swatches {gap:5px}
  .discovery-page .pcard-swatches .sw {width:18px;height:18px}
  .discovery-page .toggle-btn {padding:7px 10px;font-size:12px}
  .discovery-page .search-page {padding-top:24px}
  .discovery-search-title {font-size:26px;margin-bottom:24px}
  .discovery-page .search-form {margin-bottom:28px}
}
/* Reference collection rhythm; keep fixture-only controls and disclosures usable. */
.discovery-page .coll-section {padding-top:28px}
.discovery-page .coll-pills {margin-bottom:42px}
.discovery-page .pill.active {background:#111;color:#fff;border-color:#111}
.discovery-page .coll-title-sub {margin:-21px 0 24px;font-size:13px;line-height:1.4}
.discovery-page .coll-grid {margin:0;padding:0 0 0 12px;gap:44px 29px}
.discovery-page .coll-grid .pcard {padding:0}
.discovery-page .pcard-img {background:#fff}
.discovery-page .pcard-badge {background:#ededed;color:#111;text-transform:none;font-weight:400;font-size:14px;padding:4px 7px}
.discovery-page .pcard-swatches {display:none}
.discovery-page .pcard-info {padding-top:10px}
.discovery-page .discovery-notice {max-width:1280px;margin:20px auto 32px}
.discovery-page.discovery-shape-view .coll-layout {display:block;max-width:none;padding-inline:28px}
.discovery-page.discovery-shape-view .coll-sidebar {display:none}
@media(min-width:1101px) {
  .discovery-page.discovery-shape-view .coll-sidebar.is-open {display:block;position:fixed;inset:0 0 0 auto;width:min(420px,100%);height:100dvh;background:#fff;padding:24px;z-index:5001;overflow-y:auto}
  .discovery-page.discovery-shape-view .discovery-drawer-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
  .discovery-page.discovery-shape-view .discovery-drawer-head button {border:0;background:#fff;font-size:30px;cursor:pointer}
  .discovery-page.discovery-shape-view .discovery-apply {display:block;width:100%;padding:14px;background:#111;color:white;border:0;margin-top:12px}
}
.discovery-page.discovery-shape-view .coll-grid {padding-left:0;gap:44px 20px}
.discovery-page.discovery-shape-view .coll-toolbar {border:0}
.discovery-page.discovery-shape-view .discovery-filter-open {display:flex;align-items:center;justify-content:center;gap:18px;border:1px solid #111;background:#fff;border-radius:22px;padding:9px 16px;font-size:12px;cursor:pointer}
@media (max-width:1100px) {
  .discovery-page .coll-pills {margin:0 0 28px}
  .discovery-page .coll-section {padding-top:32px}
  .discovery-page .coll-grid {padding-left:0}
  .discovery-page.discovery-shape-view .coll-sidebar.is-open {display:block}
}
@media (max-width:600px) {
  .discovery-page .coll-title-wrap {padding:0 16px}
  .discovery-page .coll-pills {margin:10px 0 26px}
  .discovery-page .coll-title {margin-bottom:16px}
  .discovery-page .coll-title-sub {margin:-12px 0 16px;font-size:13px}
  .discovery-page .coll-section {padding-top:40px}
  .discovery-page .coll-grid {gap:32px 16px}
  .discovery-page .pcard-badge {font-size:13px;left:6px;top:5px;padding:3px 6px}
  .discovery-page .discovery-notice {margin:20px 16px 28px}
  .discovery-page.discovery-shape-view .coll-layout {padding-inline:16px}
}
/* Collection-specific specificity beats the later legacy second-pass stylesheet. */
@media (min-width:1101px) {
  body[data-discovery="collection"].discovery-page .coll-layout {display:flex;gap:64px}
  body[data-discovery="collection"].discovery-page .coll-sidebar {flex:0 0 264px;width:264px}
}
body[data-discovery="collection"].discovery-page .coll-grid {padding:0 0 0 13px;gap:44px 29px}
body[data-discovery="collection"].discovery-page .coll-pills {margin:12px 0 42px}
body[data-discovery="collection"].discovery-page.discovery-shape-view .coll-layout {display:block;max-width:none;padding-inline:28px}
body[data-discovery="collection"].discovery-page.discovery-shape-view .coll-grid {padding:0;gap:44px 20px}
@media (max-width:1100px) {
  body[data-discovery="collection"].discovery-page .coll-layout {display:block}
  body[data-discovery="collection"].discovery-page .coll-grid {padding:0}
  body[data-discovery="collection"].discovery-page .coll-pills {margin:20px 0 28px}
}
@media (max-width:600px) {
  body[data-discovery="collection"].discovery-page .coll-title {margin-bottom:16px}
  body[data-discovery="collection"].discovery-page .coll-pills {margin:10px 0 26px}
  body[data-discovery="collection"].discovery-page .coll-grid {gap:32px 16px}
  body[data-discovery="collection"].discovery-page.discovery-shape-view .coll-layout {padding-inline:16px}
  body[data-discovery="collection"].discovery-page.discovery-shape-view .coll-grid {gap:32px 16px}
}
@media (min-width:901px) and (max-width:1100px) {
  body.discovery-page[data-discovery] .coll-layout {display:grid;grid-template-columns:224px minmax(0,1fr);gap:32px}
  body.discovery-page[data-discovery] .coll-sidebar {display:block;position:static;width:224px;padding:0;box-shadow:none}
  body.discovery-page[data-discovery] .coll-sidebar .discovery-drawer-head {display:none}
  body.discovery-page[data-discovery] .coll-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 16px}
  body.discovery-page[data-discovery] .discovery-filter-open {display:none}
  body.discovery-page[data-discovery].discovery-shape-view .coll-layout {display:block}
  body.discovery-page.discovery-shape-view .coll-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
  body.discovery-page.discovery-shape-view .discovery-filter-open {display:flex}
  body.discovery-page.discovery-shape-view .coll-sidebar {display:none}
  body.discovery-page.discovery-shape-view .coll-sidebar.is-open {display:block;position:fixed;inset:0 0 0 auto;width:min(420px,100%);height:100dvh;background:#fff;padding:24px;z-index:5001;overflow-y:auto}
}
/* Search stays a usable local fixture search without placing a fake live search form above results. */
.discovery-page .search-page .discovery-search-title {text-align:center;font-size:21px;line-height:1.35;margin-bottom:20px}
.discovery-page .search-page .search-form {margin:48px auto 24px}
@media(min-width:1101px) {
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .coll-sidebar > .filter-block:first-of-type {display:flex;align-items:center;gap:5px;border:1px solid #e3e3e3;border-radius:22px;width:max-content;padding:0 8px;margin:0 0 28px}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .sort-label {display:inline-block;font-size:12px;font-weight:400;margin:0;white-space:nowrap}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .sort-select {width:auto;max-width:152px;border:0;padding:8px 4px;font-size:12px}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .filter-swatches {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 4px}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .fs {position:relative;display:flex;align-items:center;flex-direction:column;gap:6px;text-align:center;font-size:11px;min-width:0;cursor:pointer}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .fs-dot {width:33px;height:33px;border-radius:50%;display:block}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .fs input {position:absolute;top:0;left:50%;transform:translateX(-50%);width:33px;height:33px;opacity:0;cursor:pointer}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .fs:has(input:checked) .fs-dot {outline:2px solid #111;outline-offset:2px}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .fs:focus-within .fs-dot {outline:2px solid #111;outline-offset:2px}
  body[data-discovery="collection"].discovery-page:not(.discovery-shape-view) .fs:has(input:disabled) {opacity:.55;cursor:not-allowed}
}
body[data-discovery="collection"].discovery-page .coll-section {padding-top:40px}
body[data-discovery="collection"].discovery-page.discovery-shape-view .coll-section {padding-top:0}
@media(max-width:600px) {
  .discovery-page .search-page {padding-top:30px}
  .discovery-page .search-page .discovery-search-title {font-size:21px;margin-bottom:18px}
  body[data-discovery="collection"].discovery-page .coll-title-wrap {padding-top:12px}
  body[data-discovery="collection"].discovery-page .coll-section {padding-top:66px}
  body[data-discovery="collection"].discovery-page.discovery-shape-view .coll-section {padding-top:40px}
}
