/* Catalog layout and controls only. Native card styling stays in its shared master. */
.dcc-main { max-width:1540px; margin:0 auto; padding:24px clamp(18px,3vw,48px) 48px; color:#253d4e; }
.dcc-main * { box-sizing:border-box; }
.dcc-main [hidden] { display:none!important; }
.dcc-breadcrumb { display:flex; gap:10px; font-size:14px; margin:0 0 16px; }
.dcc-intro h1.wp-block-query-title { margin:0 0 8px!important; font-family:Modak,sans-serif; font-weight:400; font-size:clamp(32px,3.3vw,52px); color:#253d4e; }
.discats-catalog-pilot main.dcc-main .dcc-intro h1.wp-block-query-title { margin:0 0 8px!important; font-size:clamp(32px,3.3vw,48px)!important; line-height:1.15!important; }
.dcc-intro p { margin:0 0 24px; max-width:800px; font-size:16px; line-height:1.65; }
.dcc-intro a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.dcc-toolbar { display:flex; align-items:end; gap:20px; margin-bottom:8px; }
.dcc-search { flex:1; max-width:620px; }
.dcc-search>label,.dcc-sort,.dcc-stock,.dcc-price label { display:flex; flex-direction:column; gap:6px; font-weight:700; font-size:14px; }
.dcc-search>div { display:flex; gap:8px; }
.dcc-main :is(.dcc-search input,.dcc-option-search,.dcc-price input,.dcc-sort select,.dcc-stock select) { width:100%; min-width:0; min-height:44px; padding:9px 12px; border:1px solid #71818b; border-radius:8px; font:inherit; font-size:16px; color:#253d4e; background:#fff; box-shadow:none; }
.dcc-search input { flex:1; }
.dcc-button { cursor:pointer; flex-shrink:0; }
.dcc-main :is(button,a,input,select,summary):focus-visible { outline:3px solid #253d4e; outline-offset:3px; }
.dcc-sort { margin-left:auto; min-width:205px; }
.dcc-loading-note { min-height:24px; margin:4px 0; font-size:14px; }
.dcc-loading-note a { margin-left:8px; font-weight:700; }
.dcc-loading-note[data-settled],.dcc-loading-note:empty { min-height:0; height:0; margin:0; }
.dcc-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:32px; align-items:start; }
.dcc-filter-panel { min-width:0; padding-right:20px; border-right:1px solid #dce3e7; }
.dcc-sheet-heading { display:flex; align-items:center; gap:12px; justify-content:space-between; margin:0 0 12px; }
.dcc-sheet-heading h2 { font:700 20px/1.3 Quicksand,sans-serif; margin:0; }
.dcc-facet { border-bottom:1px solid #dce3e7; padding:12px 0; }
.dcc-facet summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; font-size:16px; font-weight:700; list-style:none; cursor:pointer; }
.dcc-facet summary::-webkit-details-marker { display:none; }
.dcc-facet-symbol::before { content:'+'; font-size:24px; font-weight:400; }
.dcc-facet[open] .dcc-facet-symbol::before { content:'−'; }
.dcc-main fieldset { border:0; padding:0; margin:0; min-width:0; }
.dcc-options { display:flex; flex-direction:column; margin:4px 0; }
.dcc-choice { display:flex; align-items:center; gap:10px; min-height:44px; margin:0; padding:4px 0; font-size:15px; line-height:1.35; cursor:pointer; }
.dcc-choice input { appearance:auto; -webkit-appearance:checkbox; width:18px; height:18px; min-width:18px; margin:0; accent-color:#253d4e; }
.dcc-choice>span:first-of-type { overflow-wrap:anywhere; }
.dcc-choice[data-unavailable] { color:#536976; }
.dcc-option-count { margin-left:auto; font-size:13px; color:#536976; font-variant-numeric:tabular-nums; }
.dcc-more { display:inline-flex; align-items:center; min-height:44px; padding:4px 0; font-size:14px; font-weight:700; color:#253d4e; text-underline-offset:3px; }
.dcc-hint { font-size:13px; line-height:1.55; color:#435c6b; margin:8px 0; }
.dcc-price { padding:18px 0!important; }
.dcc-price legend { font-size:16px; font-weight:700; padding-top:16px; }
.dcc-price-inputs { display:flex; align-items:end; gap:8px; margin-top:8px; }
.dcc-price-inputs>label { flex:1; min-width:0; }
.dcc-price-inputs>span { align-self:center; margin-top:20px; }
.dcc-stock { font-size:16px; }
.dcc-filter-footer { display:flex; flex-direction:column; gap:8px; padding:16px 0; }
.dcc-filter-footer>a { display:inline-flex; align-items:center; min-height:44px; color:#253d4e; font-size:14px; }
.dcc-preview-note { margin:0; min-height:20px; font-size:13px; }
.dcc-result-count { font-size:15px; font-weight:700; margin:0 0 6px; scroll-margin-top:80px; }
.dcc-products,.dcc-results { min-width:0; }
.dcc-active-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 12px; }
.dcc-active-filters>a { display:inline-flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:8px 12px; border:1px solid #71818b; border-radius:24px; background:#f3f9fb; color:#253d4e; font-size:14px; text-decoration:none; }
.dcc-active-filters .dcc-clear-all { background:#fff; border-color:transparent; text-decoration:underline; }
.dcc-active-filters span { font-size:20px; line-height:1; }
/* Only the collection container is configured here, never card internals. */
.discats-catalog-pilot .dcc-grid.wc-block-product-template { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:24px!important; padding:8px 0!important; margin:0!important; list-style:none; }
.discats-catalog-pilot .dcc-grid.wc-block-product-template>li { min-width:0; margin:0!important; }
.dcc-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin:32px 0; }
.dcc-empty { padding:32px 16px; margin:16px 0; background:#f3f9fb; border-radius:12px; }
.dcc-empty h2 { margin-top:0; color:#253d4e; font:400 30px/1.25 Modak,sans-serif; }
.dcc-results[aria-busy=true] { opacity:.65; }
.dcc-close { min-width:44px; min-height:44px; border:0; background:#fff; color:#253d4e; font:32px/1 sans-serif; cursor:pointer; border-radius:8px; }
.dcc-filter-panel .dcc-close { display:none; }
.dcc-sheet { padding:0; border:0; max-width:100%; max-height:100dvh; width:100%; height:100dvh; margin:0; background:#fff; color:#253d4e; }
.dcc-sheet::backdrop { background:rgba(19,19,19,.45); }
.dcc-sheet .dcc-filter-form { height:100%; display:flex; flex-direction:column; padding:0 20px; }
.dcc-sheet .dcc-sheet-heading { padding:12px 0; margin:0; flex-shrink:0; border-bottom:1px solid #dce3e7; }
.dcc-sheet .dcc-filter-fields { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 4px 12px; }
.dcc-sheet .dcc-filter-footer { flex-shrink:0; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px 16px; padding:12px 0 max(12px,env(safe-area-inset-bottom)); border-top:1px solid #dce3e7; background:#fff; }
.dcc-sheet .dcc-preview-note { grid-column:1/-1; min-height:16px; }
.dcc-sheet .dcc-filter-footer>a { font-weight:700; }
body.dcc-sheet-open { overflow:hidden; }
@media(min-width:1400px) { .discats-catalog-pilot .dcc-grid.wc-block-product-template { grid-template-columns:repeat(4,minmax(0,1fr))!important; } }
@media(max-width:1023px) {
 .dcc-main { padding-top:20px; }
 .dcc-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
 .dcc-filter-panel { border-right:0; padding-right:0; }
 .dcc-main.dcc-js .dcc-filter-panel { display:none; }
 .dcc-main.dcc-js .dcc-filter-toggle { display:inline-flex; }
 .dcc-toolbar { flex-wrap:wrap; gap:12px; }
 .dcc-search { flex-basis:100%; max-width:none; }
 .dcc-filter-toggle { flex:1; }
 .dcc-sort { flex:1; min-width:180px; }
 .dcc-sort>select { min-height:44px; }
 .dcc-intro p { margin-bottom:16px; }
 .dcc-intro h1.wp-block-query-title { font-size:36px; }
 .dcc-loading-note { margin:0; min-height:20px; }
 .discats-catalog-pilot .dcc-grid.wc-block-product-template { gap:20px!important; }
 .dcc-main:not(.dcc-js) .dcc-filter-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
@media(max-width:700px) {
 .dcc-main { padding:16px 18px 32px; }
 .dcc-breadcrumb { margin-bottom:12px; }
 .dcc-intro h1.wp-block-query-title { font-size:34px; }
 .discats-catalog-pilot main.dcc-main .dcc-intro h1.wp-block-query-title { font-size:32px!important; }
 .dcc-search>label,.dcc-sort>span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
 .dcc-intro p { font-size:15px; line-height:1.5; }
 .dcc-sort { min-width:170px; }
 .dcc-search>div { gap:6px; }
 .dcc-search .dcc-button { padding-inline:16px; }
 .discats-catalog-pilot .dcc-grid.wc-block-product-template { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:18px!important; }
 .dcc-result-count { font-size:14px; }
}
@media(max-width:359px) {
 .discats-catalog-pilot .dcc-grid.wc-block-product-template { grid-template-columns:minmax(0,280px)!important; justify-content:center; }
 .dcc-main:not(.dcc-js) .dcc-filter-fields { grid-template-columns:1fr; }
 .dcc-sort { min-width:150px; }
}
@media(prefers-reduced-motion:reduce) { .dcc-results { transition:none; } }

/* R2: a small candy-shop frame around functional filters, never the cards. */
.dcc-layout { grid-template-columns:260px minmax(0,1fr); gap:28px; }
.dcc-filter-panel { padding:14px 10px 0; border:1px solid #d4e1e5; border-top:3px solid #e93258; border-radius:14px; background:#f3f9fb; }
.dcc-sheet-heading { padding:2px 4px 10px; }
.dcc-main .dcc-sheet-heading h2 { font:400 28px/1.1 Modak,sans-serif; text-transform:none; color:#253d4e; }
.dcc-sheet-heading p { margin:5px 0 0; font-size:13px; color:#435c6b; }
.dcc-facet { margin:8px 0; padding:4px 10px; border:1px solid #d4e1e5; border-radius:10px; background:#fff; }
.dcc-facet summary { gap:8px; font-size:15px; }
.dcc-facet summary>span:first-child { margin-right:auto; }
.dcc-facet summary small { display:block; font-size:11px; font-weight:500; line-height:1.5; color:#435c6b; }
.dcc-facet-symbol { flex:0 0 26px; width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:#fff0f4; color:#253d4e; }
.dcc-facet-symbol::before { font-size:21px; line-height:1; }
.dcc-facet[open]>.dcc-facet-symbol,.dcc-facet[open]>summary .dcc-facet-symbol { background:#ccfaf5; }
.dcc-facet-count { display:grid; place-items:center; flex-shrink:0; min-width:23px; height:23px; padding:0 5px; border-radius:50%; background:#32e9d9; color:#253d4e; font-size:12px; font-variant-numeric:tabular-nums; }
.dcc-choice { padding:6px; border:1px solid transparent; border-radius:8px; gap:7px; font-size:13px; }
.dcc-choice input { accent-color:#c92147; }
.dcc-choice:hover { background:#f3f9fb; }
.dcc-choice:has(input:checked) { background:#fff0f4; border-color:#c92147; }
.dcc-choice-name { display:flex; align-items:center; gap:7px; min-width:0; flex:1; }
.dcc-choice-name>span:last-child { overflow-wrap:anywhere; }
.dcc-option-count { flex-shrink:0; min-width:20px; padding:2px 3px; border-radius:5px; text-align:center; font-size:11px; background:#f3f9fb; }
.dcc-brand-mark { display:flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:34px; padding:2px; border-radius:5px; background:#fff; }
.dcc-brand-mark--dark { background:#253d4e; }
.dcc-brand-mark img { display:block; width:40px; height:28px; object-fit:contain; }
.dcc-main [data-dcc-facet=brand] .dcc-choice { min-height:48px; padding-inline:3px; }
.dcc-main [data-dcc-facet=brand] .dcc-choice-name { gap:6px; }
.dcc-main .dcc-option-search { min-height:44px; margin:6px 0; font-size:14px; }
.dcc-main [data-dcc-options=type] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
.dcc-main [data-dcc-options=type] .dcc-choice { gap:6px; padding:6px 4px; border-color:#d4e1e5; }
.dcc-main [data-dcc-options=type] .dcc-choice-name { line-height:1.25; }
.dcc-main [data-dcc-options=type] .dcc-option-count { min-width:14px; padding:0; font-size:10px; background:transparent; }
.dcc-main .dcc-price { padding:8px 8px 18px!important; }
.dcc-stock,.dcc-stock+.dcc-hint { margin-inline:8px; }
.dcc-filter-panel .dcc-filter-footer { padding:12px 6px; }
.dcc-active-filters>a:not(.dcc-clear-all) { background:#fff0f4; border-color:#c92147; }
.dcc-main .dcc-flight { padding:12px 0; border-top:1px solid #e4eaf0; }
.dcc-range-heading { display:flex; align-items:center; gap:7px; min-height:28px; font-size:14px; }
.dcc-flight-letter { display:grid; place-items:center; width:25px; height:25px; flex-shrink:0; border-radius:7px; background:#ffd0da; color:#253d4e; font-size:12px; font-weight:700; }
.dcc-range-heading output { margin-left:auto; max-width:90px; font-size:13px; font-weight:700; text-align:right; font-variant-numeric:tabular-nums; }
.dcc-range-reset { display:grid; place-items:center; width:44px; height:44px; min-width:44px; margin:-8px -9px -8px -5px; padding:0; border:0; background:transparent; color:#253d4e; font:24px/1 sans-serif; cursor:pointer; }
.dcc-range-track { position:relative; height:48px; margin:0 -12px; }
.dcc-range-track::before { content:''; position:absolute; height:6px; inset:21px 22px auto; border-radius:8px; background:linear-gradient(to right,#71818b 0 var(--dcc-range-start),#c92147 var(--dcc-range-start) var(--dcc-range-end),#71818b var(--dcc-range-end) 100%); }
.dcc-main .dcc-range-track input[type=range] { -webkit-appearance:none; appearance:none; position:absolute; inset:0; width:100%; height:48px; margin:0; padding:0; border:0; background:transparent; pointer-events:none; box-shadow:none; z-index:2; }
.dcc-main .dcc-range-track input[data-dcc-handle=max] { z-index:3; }
.dcc-main .dcc-range-at-end input[data-dcc-handle=min],.dcc-main .dcc-range-track input:focus-visible { z-index:4; }
.dcc-range-track input::-webkit-slider-runnable-track { height:48px; background:transparent; }
.dcc-range-track input::-moz-range-track { height:6px; background:transparent; }
.dcc-range-track input::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:44px; height:44px; border:12px solid transparent; border-radius:50%; background:#c92147; background-clip:content-box; box-sizing:border-box; margin-top:2px; cursor:ew-resize; pointer-events:auto; box-shadow:none; }
.dcc-range-track input::-moz-range-thumb { width:44px; height:44px; border:12px solid transparent; border-radius:50%; background:#c92147; background-clip:content-box; box-sizing:border-box; cursor:ew-resize; pointer-events:auto; box-shadow:none; }
.dcc-range-values { display:flex; justify-content:space-between; gap:12px; }
.dcc-range-values label { display:flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:#435c6b; }
.dcc-main .dcc-range-values input { min-width:0; width:62px; min-height:44px; padding:8px 4px 8px 8px; border:1px solid #71818b; border-radius:8px; background:#fff; color:#253d4e; font:600 16px/1.4 Quicksand,sans-serif; box-shadow:none; }
.dcc-range-note { font-size:12px; line-height:1.5; color:#435c6b; }
.dcc-js .dcc-flight-legend,.dcc-js .dcc-flight [data-dcc-numeric] { display:none; }
.dcc-js .dcc-flight .dcc-options { margin:4px 0 0; }
.dcc-js .dcc-flight .dcc-choice { font-size:12px; }
.dcc-sheet .dcc-filter-form { background:#f3f9fb; }
.dcc-sheet .dcc-sheet-heading { margin-inline:-20px; padding-inline:20px; background:#fff; border-top:3px solid #e93258; }
.dcc-sheet .dcc-filter-fields { padding-top:8px; }
.dcc-sheet .dcc-filter-footer { margin-inline:-20px; padding-inline:20px; }
.dcc-sheet .dcc-facet { padding:5px 12px; }
.dcc-sheet .dcc-choice { font-size:15px; }
.dcc-sheet .dcc-range { max-width:460px; margin-inline:auto; }
.dcc-sheet .dcc-range-heading output { max-width:150px; }
.dcc-sheet .dcc-range-values input { width:80px; }
@media(max-width:1023px) { .dcc-layout { grid-template-columns:minmax(0,1fr); gap:20px; } .dcc-filter-panel { padding:10px; } }
@media(forced-colors:active) { .dcc-range-track::before { background:CanvasText; } .dcc-range-track input::-webkit-slider-thumb { background:Highlight; background-clip:content-box; forced-color-adjust:none; } .dcc-choice:has(input:checked) { outline:1px solid Highlight; } }

/* R3: metadata sits above both columns; product and filter frames share a top. */
.dcc-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; margin:12px 0 16px; }
.dcc-summary .dcc-result-count { margin:0 0 0 auto; flex-shrink:0; font-size:14px; }
.dcc-summary .dcc-active-filters { margin:0; }
.dcc-summary .dcc-active-filters>a:not(.dcc-clear-all) { border-color:transparent; }
.discats-catalog-pilot .dcc-grid.wc-block-product-template { padding:0!important; }
.dcc-sheet-heading { margin-bottom:4px; }

.dcc-color-swatch { display:inline-block; flex:0 0 22px; width:22px; height:22px; border:1px solid #536976; border-radius:50%; }
.dcc-query-note{margin:0 4px 12px;color:#435c6b;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.dcc-search-notice{flex:1 0 100%;padding:12px 16px;border-left:3px solid #253d4e;background:#f3f9fb;font-size:14px;line-height:1.6}.dcc-search-notice p{margin:0;font-weight:700}.dcc-search-notice a{color:#253d4e;text-underline-offset:3px}
@media(min-width:1024px) { .dcc-filter-panel { margin-top:var(--wp--preset--spacing--20,.44rem); } }

.dcc-pagination .wp-block-query-pagination-numbers { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.dcc-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
/* A narrow desktop rail cannot fit two legible type labels side by side. */
@media(min-width:1024px) { .dcc-main [data-dcc-options=type] { grid-template-columns:minmax(0,1fr); } }
/* A collection consumes the same controls within its existing editorial page. */
.dcc-main.dcc-embedded { max-width:none; padding:0; margin:24px 0; }
.dcc-description { max-width:850px; margin:0 0 24px; font-size:16px; line-height:1.65; }
.dcc-description p { margin:0 0 12px; }
.dcc-main [data-dcc-options=category] .dcc-choice-name>span:last-child { overflow-wrap:normal; }
/* Twenty results fill four columns on wide screens and two on other grids. */
@media(min-width:360px) and (max-width:1399px) { .discats-catalog-pilot .dcc-grid.wc-block-product-template { grid-template-columns:repeat(2,minmax(0,1fr))!important; } }
.dcc-pagination { gap:12px; }
.dcc-page-position { min-width:90px; text-align:center; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
.dcc-pagination .dcl-button { min-width:96px; padding-inline:18px; }
.dcc-pagination button:disabled { opacity:.45; cursor:default; }
#dcc-summary { scroll-margin-top:80px; }
@media(max-width:389px) { .dcc-pagination { gap:8px; } .dcc-pagination .dcl-button { min-width:82px; padding-inline:12px; } .dcc-page-position { min-width:76px; font-size:12px; } }
